The present invention relates of the field of analog circuit fault diagnosis, and more particularly, to an analog circuit fault mode classification method.
The rapid development of modern electronic and computer technologies drives more and more complicated composition and structure of electronic equipment as well as increasingly large scale thereof. To improve system safety and reliability, higher and newer requirements are raised on circuit test and diagnosis. Analog circuits in an electronic system are prone to get wrong, and analog circuit fault diagnosis has also been a “bottleneck” that restricts the circuit industry of China. It is of great theoretical values and practical significance to develop the analog circuit industry in order to conform to the new development of modern microelectronics technologies and information technologies.
At present, an analog circuit fault model classifier based on a support vector machine has the advantages that it is suitable for small sample decision, has lower requirements on the number of learning samples and can mine the classification information hidden in data under the circumstance of limited characteristic information. But its defects are that the dimensionality of the fault characteristic vectors is too large, which will increase the difficulty of learning and training of the support vector machine. In addition, different processing methods on the training data will also affect the classification accuracy of the fault mode classifier.
A technical problem to be solved by the present invention is to provide an analog circuit fault mode classification method to overcome the above defects of the prior art, so as to facilitate lightening the learning and training difficulties of the fault mode classifier and improving the classification accuracy of the fault mode classifier.
According to the present invention, a fault mode classifier is constructed on the basis of a support vector machine, and fault characteristics are extracted by using a subspace projection method, then the fault characteristics are standardized, and finally the standardized fault characteristics are utilized to train the support vector machine, so that the analog circuit fault mode classifier is constructed.
A technical solution to be adopted by the present invention to solve the technical problems thereof is as follows:
An analog circuit fault mode classification method comprises the following steps:
An analog circuit fault mode classification method is characterized by comprising the following steps:
(1) collecting M groups of voltage signal sample vectors Vij at a node to be tested under each of fault modes Fi of the analog circuit by using a data collection board, wherein i=1, 2, . . . , N, j=1, 2, . . . , Vij represents a jth voltage signal sample vector of a ith fault mode, and N represents a total number of the fault modes;
(2) sequentially extracting fault characteristic vectors VijF of the voltage signal sample vectors Vij working under the fault modes Fi by using subspace projection, wherein i=1, 2, . . . , N, j=1, 2, . . . , M, and VijF represents a fault characteristic vector of the jth voltage signal sample under the ith fault mode;
(3) standardizing the extracted fault characteristic vectors VijF to obtain standardized fault characteristic vectors {circumflex over (V)}ijF, wherein a computing method thereof is
(4) sequentially constructing a binary-class support vector machine with respect to two different fault modes Fi
(5) simultaneously feeding a standardized fault characteristic vectors to be tested into the N(N−1)/2 binary-class support vector machines for classification and determination, and counting votes according to classification results of each binary-class support vector machine; if a fault mode to be tested belongs to the fault mode Fi, and i=1, 2, . . . , N, then adding 1 to the votes of Fi, wherein a fault mode obtaining the most votes finally is the fault mode that the circuit to be tested belongs to.
Further, the step of extracting the fault characteristic vectors VijF by using the subspace projection in step (2) is:
(2.1) computing dimensionality of the voltage signal sample vectors Vij: L=length (vij);
(2.2) generating an L×L dimensional Toeplitz transformation matrix Φ:
(2.3) computing a projected vector of the voltage signal sample vectors Vij in the Toeplitz transformation matrix Φ: Vp=ΦTVij, wherein T represents to transpose a matrix;
(2.4) computing maximum projection subspace and the fault characteristic vectors VijF:
(2.4.1) initializing a subspace projection coordinate dimensionality K: K=┌ log2(N)┐, wherein ┌•┐ represents rounding up to an integer, and N is the total number of the fault modes of the circuit to be tested;
(2.4.2) constructing a maximum projection subspace index vector I with a dimensionality of 1×K, and initializing the vector into a 1×K dimensional null vector, i.e., I=[00 . . . 0], and meanwhile constructing a counting variable p and initializing p=1;
(2.4.3) updating the maximum projection subspace index vector I: I(p)=Index(Max(|Vp|)), wherein I(p) herein represents the pth vector value in the vector I, Max (•) represents to compute a maximum vector element, Vp represents the projected vector of the voltage signal sample vectors Vij in the Toeplitz transformation matrix Φ, and Index(•) represents to calculate an index;
(2.4.4) determining whether p<K; if no, then performing step (2.4.5); otherwise, performing p=p+1 and using 0 to replace the maximum element in the projected vector VP, and retuning to step (2.4.3);
(2.4.5) using I vector elements as row index values of the Toeplitz transformation matrix Φ to extract corresponding row vectors to constitute a matrix ΦA with a dimensionality of K×L;
(2.4.6) computing the maximum projection subspace ΦΛ†:ΦΛ†=(ΦΛΦΛT)−1ΦΛ; and
(2.4.7) computing the fault characteristic vector VijF with subspace projection: VijF=ΦΛ†Vij.
Further, the specific step of constructing each binary-class support vector machine in step (4) is:
(4.1) constructing a binary classifier decision model
wherein
(4.2) dividing a training sample set: constituting the standardized fault characteristic vectors {right arrow over (V)}i
(4.3) using the training sample set S to train the binary classifier decision model so as to determine parameters αi and b of the binary-class support vector machine;
(4.4) outputting a determination function of the binary-class support vector machine:
wherein sgn (•) is a sign function, and
(4.5) completing a mode determination for a characteristic to be tested according to the decision function: determination votes during test process are performed according to the determination function; if y=1 is outputted, then the votes of the fault mode Fi
Further, the specific step of using the training sample set S to train the binary classifier decision model so as to determine the parameters αi and b of the binary-class support vector machine in step (4.3) is:
(4.3.1) standardizing a kernel matrix:
wherein
D=di ag (1/sqrt (di ag (
(4.3.2) training a binary classifier, which a training pseudo-code is as follows:
inputting the training sample set S={{S+}, {S−}};
treating process: if a class identifier yi=+1, then
otherwise, αi+=0;
if a class identifier yi=−1, then
otherwise, αi−=0; M represents the number of the voltage signal sample vectors collected;
α+=[α1+, α2+, . . . , α2M+], α−=[α1−, α2−, . . . , α2M−]; and
(4.3.2) computing classifier parameters:
wherein the real number αi=αi+−αi−; and
the bias b=0.5((α+)T
Compared with the prior art, the present invention has the following advantages.
(1) The present invention extracts the fault characteristic vectors by using a subspace projection method in the present invention, and determines a proper dimensionality of the fault characteristic vectors according to the length of the voltage signal sample vectors, ensures the integrality of the fault characteristic information and also reduces redundant fault characteristics, and is beneficial for decreasing the learning and training difficulties of the fault mode classifier.
(2) The present invention uses a standardizing processing method to process the fault characteristic vectors, which has more apparent effects on improving the classification accuracy of the fault mode classifier.
The invention will be described in details hereinafter with reference to the drawings and embodiments.
Referring to
(1) collecting M groups of voltage signal sample vectors Vij at a node to be tested under each of the fault modes Fi of the analog circuit by using a data collection board, wherein i=1, 2, . . . , N, j=1, 2, . . . , M, Vij represents a jth voltage signal sample vector of a ith fault mode, and N represents a total number of the fault modes;
(2) sequentially extracting fault characteristic vectors VijF of the voltage signal sample vectors Vij working under the fault modes Fi by using subspace projection, wherein i=1, 2, . . . , N, j=1, 2, . . . , M, and VijF represents a fault characteristic vector of the jth voltage signal sample under the ith fault mode;
(3) standardizing the extracted fault characteristic vectors VijF to obtain standardized fault characteristic vectors {circumflex over (V)}ijF, wherein a computing method thereof is
(4) sequentially constructing a binary-class support vector machine with respect to two different fault modes Fi
(5) simultaneously feeding a standardized fault characteristic vectors to be tested into the N(N−1)/2 binary-class support vector machines for classification and determination, and counting votes according to classification results of each binary-class support vector machine; if a fault mode to be tested belongs to the fault mode Fi, and i=1, 2, . . . , N, then adding 1 to the votes of Fi wherein a fault mode obtaining the most votes finally is the fault mode that the circuit to be tested belongs to.
The step of extracting the fault characteristic vectors VijF by using the subspace projection in step (2) is:
(2.1) computing dimensionality of the voltage signal sample vectors Vij: L=length(Vij);
(2.2) generating an L×L dimensional Toeplitz transformation matrix Φ:
(2.3) computing a projected vector of the voltage signal sample vectors Vij in the Toeplitz transformation matrix Φ: Vp=ΦTVij, wherein T represents to transpose a matrix;
(2.4) computing maximum projection subspace and the fault characteristic vectors VijF:
(2.4.1) initializing a subspace projection coordinate dimensionality K: K=┌ log2(N)┐, wherein ┌•┐ represents rounding up to an integer, and N is the total number of the fault modes of the circuit to be tested;
(2.4.2) constructing a maximum projection subspace index vector I with a dimensionality of 1×K, and initializing the vector into a 1×K dimensional null vector, i.e., I=[00 . . . 0], and meanwhile constructing a counting variable p and initializing p=1;
(2.4.3) updating the maximum projection subspace index vector I: I(p)=Index (Max(|Vp|)), wherein I(p) herein represents the pth vector value in the vector I, Max(•) represents to compute a maximum vector element, Vp represents the projected vector of the voltage signal sample vectors Vij in the Toeplitz transformation matrix Φ, and Index(•) represents to calculate an index;
(2.4.4) determining whether p<K; if no, then performing step (2.4.5); otherwise, p=p+1 and using 0 to replace the maximum element in the projected vector Vp, and retuning to step (2.4.3);
(2.4.5) using I vector elements as row index values of the Toeplitz transformation matrix Φ to extract corresponding row vectors to constitute a matrix ΦA with a dimensionality of K×L;
(2.4.6) computing the maximum projection subspace ΦΛ†: ΦΛ†=(ΦΛΦΛT)−1ΦΛ; and
(2.4.7) computing the fault characteristic vector VijF with subspace projection: VijF=ΦΛ†Vij.
Referring to
(4.1) constructing a binary classifier decision model
wherein
(4.2) dividing a training sample set: constituting the standardized fault characteristic vectors {right arrow over (V)}i
(4.3) using the training sample set S to train the binary classifier decision model so as to determine parameters αi and b of the binary-class support vector machine;
(4.4) outputting a determination function of the binary-class support vector machine:
wherein sgn (.) is a sign function, and
(4.5) completing a mode determination for a characteristic to be tested according to the decision function: determination votes during test are performed according to the determination function; if y=1 is outputted, then the votes of the fault mode Fi
The specific step of using the training sample set S to train the binary classifier decision model so as to determine the parameters αi and b of the binary-class support vector machine in step (4.3) is:
(4.3.1) standardizing a kernel matrix:
wherein
D=di ag (1/sqrt (di ag (
(4.3.2) training a binary classifier, which a training pseudo-code thereof is as follows:
inputting the training sample set S={{S+}, {S−}};
treating process: if a class identifier yi=+1, then
otherwise, αi+=0;
if a class identifier yi=−1, then
otherwise, αi−=0; M represents the number of the voltage signal sample vectors collected;
α+=[α1+, α2+, . . . ,α2M+], α−=[α1−, α2−, . . . , α2M−]; and
(4.3.2) computing classifier parameters:
wherein the real number αi=αi+−αi−; and
the bias b=0.5((α+)T
Number | Date | Country | Kind |
---|---|---|---|
201510482928.2 | Aug 2015 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2015/095424 | 11/24/2015 | WO | 00 |