This application claims the priority benefit of China application serial no. 202010134689.2, filed on Mar. 2, 2020. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure belongs to the field of electronic circuit engineering and computer vision, and more specifically, relates to a method and system for extracting fault features of analog circuit based on an optimal wavelet basis function.
Analog circuits are commonly applied to industrial electronic equipment, agricultural electronic equipment, avionics and household electronic equipment. The failure of analog circuits will cause performance degradation, slow response, and malfunction of the electronic equipment. The accurate fault diagnosis of the analog circuit helps to maintain the circuit in time, thus ensuring the normal operation of the electronic equipment.
The fault diagnosis of analog circuit can be classified into two parts, feature extraction and classifier recognition. Specifically, feature extraction is the basis of fault diagnosis. Extracting features that are easy to classify is essential for accurate fault diagnosis of analog circuits. The current commonly adopted fault feature extraction method is the wavelet transform method. However, it is required that the wavelet basis function be set in the wavelet transform method. Typically, the wavelet basis function is selected by using an empirical method, and it is difficult to determine the optimal wavelet basis function, which reduces the efficiency and accuracy of analog circuit fault diagnosis.
In view of the above defects or requirements for improvement of related art, the disclosure provides a method and system for extracting fault features of analog circuits based on optimal wavelet basis functions, thereby solving the difficulty in determining the optimal wavelet basis function in the wavelet transform method currently adopted for extracting fault features.
In order to achieve the above purpose, according to one aspect of the disclosure, a method for extracting fault features of an analog circuit based on an optimal wavelet basis function is provided, including:
The output signal of the analog circuit during different faults is obtained;
The wavelet transform method based on different wavelet basis functions is applied in sequence to extract the feature of each output signal;
For the features extracted based on each wavelet basis function, the center position of each fault and the distance between each fault data point and the center position are calculated, the farthest position of the fault data point and the average position of the fault data point are also calculated;
According to the center position of each fault, the distance between each fault data point and the center position, the farthest position of the fault data point and the average position of the fault data point, the score of features extracted based on each wavelet basis function is obtained, thereby determining the optimal wavelet basis function for extracting fault features of analog circuit according to the score.
Preferably, the center position of each fault is obtained based on
the distance between each fault data point and the center position is obtained based on Oj,k,i=Distance(Meanj,k, Pj,k,i), the farthest position of the fault data point is obtained based on max Oj,k=arg max{Oj,k,i}, and the average position of the fault data point is obtained based on
wherein j=1 . . . J, J is the number of wavelet basis functions; k=1 . . . K, K is the number of faults; i=1 . . . N, N is the number of data points for a single fault; Pj,k,i is the coordinate position of the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function, Distance is the Euclidean distance calculation function, and Oj,k,i is the distance between the i-th data point Pj,k,i of the k-th fault in the feature extracted based on the j-th wavelet basis function and the center position Meanj,k.
Preferably, the score of the feature extracted based on the j-th wavelet basis function is obtained based on
wherein m=1 . . . C(K, 2), which is the m-th combination of two faults among the K types of faults, and Judgej,m is the score of m-th combination of two faults, and
wherein k1, k2 indicate two different faults.
Preferably, the wavelet basis function with the highest score is determined based on Scoret=arg max {Scorej}. If there is only one wavelet basis function with the highest score, the wavelet basis function with the highest score is used as the optimal wavelet basis function for extracting fault features of analog circuit.
If there are S types of wavelet basis functions satisfying the highest score, the s-th type of wavelet basis function among the S types of wavelet basis functions that satisfy
is taken as the optimal wavelet basis function for extracting the fault features of analog circuit.
Preferably, the number of wavelet basis functions is equal to the number of features; the coordinate position of the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function is the value of the i-th data point of the k-th faults in the feature extracted based on the j-th wavelet basis function.
According to another aspect of the disclosure, a system for extracting fault features of an analog circuit based on an optimal wavelet basis function is provided, which includes:
A data acquisition module is configured to acquire the output signal of the analog circuit during different faults;
A feature extraction module is configured to sequentially apply wavelet transform method based on different wavelet basis functions to extract the feature of each output signal;
A calculation module is configured to calculate, for the feature extracted based on each wavelet basis function, the center position of each fault, the distance between each fault data point and the center position, the farthest position of the fault data point and the average position of the fault data point;
A feature score discriminating module is configured to obtain the score of the feature extracted based on each wavelet basis function according to the center position of each fault, the distance between each fault data point and the center position, the farthest position of the fault data point and the average position of the fault data point;
A wavelet basis function determining module is configured to determine the optimal wavelet basis function for extracting fault features of an analog circuit according to the score.
Preferably, the calculation module is configured to obtain the center position of each fault based on
obtain the distance between each fault data point and the center position based on Oj,k,i=Distance(Meanj,k, Pj,k,i), obtain the farthest position of the fault data point based on max Oj,k=arg max{Oj,k,i}, and obtain the average position of the fault data point based on
wherein j=1 . . . J, J is the number of wavelet basis functions; k=1 . . . K, K is the number of faults; i=1 . . . N, N is the number of data points for a single fault; Pj,k,i is the coordinate position of the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function, Distance is the Euclidean distance calculation function, and Oj,k,i is the distance between the i-th data point Pj,k,i of the k-th fault in the feature extracted based on the j-th wavelet basis function and the center position Meanj,k.
Preferably, the feature score discriminating module is configured to obtain the score of the feature extracted based on the j-th wavelet basis function based on
wherein m=1 . . . C(K, 2), which is the m-th combination of two faults among the K types of faults, and Judgej,m is the score of m-th combination of two faults, and
wherein k1, k2 indicate two different faults.
Preferably, the wavelet basis function determining module is configured to determine the wavelet basis function with the highest score based on Scorei=arg max{Scorej}. If there is only one wavelet basis function satisfying the highest score, the wavelet basis function satisfying the highest score is used as the optimal wavelet basis function for extracting fault features of analog circuit.
If there are S types of wavelet basis functions satisfying the highest score, the s-th type of wavelet basis function among the S types of wavelet basis functions that satisfy
is taken as the optimal wavelet basis function for extracting the fault features of analog circuit.
Preferably, the number of wavelet basis functions is equal to the number of features; the coordinate position of the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function is the value of the i-th data point of the k-th faults in the feature extracted based on the j-th wavelet basis function.
According to another aspect of the disclosure, a computer-readable storage medium having program instructions stored therein is provided. When the program instructions are executed by a processor, any one of the methods for extracting fault features of analog circuit based on an optimal wavelet basis function is realized.
In general, compared with the related art, the above technical solutions conceived by the disclosure can achieve the following advantageous effects:
The method for extracting fault features of analog circuit based on optimal wavelet basis functions provided by the disclosure is superior to the conventional method of using empirical methods to set wavelet basis functions to extract fault features of analog circuits, and can effectively find the optimal wavelet basis functions, and thus can effectively improve the efficiency and accuracy for diagnosing faults of analog circuits.
In order to make the purpose, technical solutions, and advantages of the disclosure clearer, the disclosure is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the disclosure, but not to limit the disclosure. In addition, the technical features involved in the various embodiments of the disclosure described below can be combined with each other as long as they do not conflict with each other.
The disclosure provides a method for extracting fault features of an analog circuit based on an optimal wavelet basis function. First, the output signal of the analog circuit during different faults is obtained. Then, the wavelet transform method based on different wavelet basis functions is applied in sequence to extract the feature of each output signal. For each of the features, the center position of each fault and the distance between each fault data point and the center position are calculated, the farthest position of the fault data point and the average position of the fault data point are also calculated. The optimal wavelet basis function for extracting fault features of an analog circuit is determined according to the score discriminating method. The features extracted based on the optimal wavelet basis function can achieve a higher accuracy rate for fault diagnosis.
As shown in
S1: The output signal of the analog circuit during different faults is obtained.
In the embodiment of the disclosure, the output signal may be a voltage signal sampled at the output terminal of the analog circuit.
S2: The wavelet transform method based on different wavelet basis functions is applied in sequence to extract the feature of each output signal.
In the embodiment of the disclosure, different wavelet basis functions are sequentially adopted to perform wavelet transformation on each output signal, and the generated scale coefficients are used as features. The calculation method is as follows:
It is set that f(x) is the collected output signal, in the wavelet transformation, it is set that {Vk}k∈Z is the orthogonal multi-resolution analysis, {Wk}k∈Z is the correspondingly decomposed wavelet space, wherein f(x) in the orthogonal projection on Vk is expressed as:
Specifically, PV
S3: For the features extracted based on each wavelet basis function, the center position of each fault and the distance between each fault data point and the center position are calculated, the farthest position of the fault data point and the average position of the fault data point are also calculated.
In the embodiment of the disclosure, the calculation formula for the center position of each fault is:
Specifically, j=1 . . . J, J is the number of wavelet basis functions; k=1 . . . K, K is the number of faults; i=1 . . . N, N is the number of data points for a single fault; Pj,k,i is the coordinate position of the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function, that is, the value of the i-th data point of the k-th faults in the feature extracted based on the j-th wavelet basis function.
Specifically, one type of wavelet basis function can be used to extract one type of feature, and one type of feature can be used to identify K faults. Therefore, wavelet basis functions and features have a one-to-one correspondence, and the number of wavelet basis functions is equal to the number of features.
The calculation of the distance between each fault data point and the center position is to calculate the Euclidean distance between each fault data point and the fault center position:
O
j,k,i=Distance(Meanj,k,Pj,k,i) (2)
Specifically, Distance is the Euclidean distance calculation function, and Oj,k,i obtained through calculation is the distance between the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function and the center position.
The farthest distance of the fault data point is:
max Oj,k=arg max{Oj,k,i} (3)
The average distance of fault data points is:
S4: The optimal wavelet basis function for extracting fault features of an analog circuit is determined according to the score discriminating method.
In the embodiment of the disclosure, the discriminating process of the score discriminating method is as follows:
The score Scorej corresponding to the j-th wavelet basis function is:
Specifically, m=1 . . . C(K, 2), which is the m-th combination of two faults among the K types of faults, and Judgej,m is the score of m-th combination of two faults, and the calculation method is as follows:
The basis for choosing the t-th wavelet basis function is:
Scoret=arg max{Scorej} (7)
If there are S types of wavelet basis functions that satisfy formula (7), then the s-th type of wavelet basis function in formula (8) is satisfied among S types of wavelet basis functions:
In the following, an example of fault diagnosis of an analog circuit is adopted to illustrate the method for extracting fault features of an analog circuit based on the optimal wavelet basis function in the disclosure.
200 data for each type of fault are collected and the data are divided into two parts. The first half of 200 data utilizes the same support vector machine to establish a fault diagnosis model, and the second half of 200 data are adopted to calculate the accuracy rate of fault diagnosis, so as to test the advantages and disadvantages of the optimal wavelet basis function for extracting fault features of analog circuit provided in the disclosure. The wavelet transform method that is applied utilizes Haar, Daubechies, Coiflets, Fejer-Korovkin filters, and Biorthogonal respectively as wavelet basis functions to extract features respectively. The score of each feature extracted is calculated by using the method provided in the disclosure. The result is shown in Table 2. Specifically, the feature extracted by using the wavelet transform method based on Fejer-Korovkin filters as the wavelet basis function satisfying the highest score, which is 20.6542, and the corresponding accuracy rate of fault diagnosis is also the highest, which is 100%. The above example illustrates that the optimal wavelet basis function provided in the disclosure has inventiveness and novelty for use in the method of extracting fault features of analog circuits.
A data acquisition module is configured to acquire the output signal of the analog circuit during different faults;
The feature extraction module is configured to sequentially apply wavelet transform method based on different wavelet basis functions to extract the feature of each output signal;
A calculation module is configured to calculate, for the feature extracted based on each wavelet basis function, the center position of each fault, the distance between each fault data point and the center position, the farthest position of the fault data point and the average position of the fault data point;
A feature score discriminating module is configured to obtain the score of the feature extracted based on each wavelet basis function according to the center position of each fault, the distance between each fault data point and the center position, the farthest position of the fault data point and the average position of the fault data point;
A wavelet basis function determining module is configured to determine the optimal wavelet basis function for extracting fault features of an analog circuit according to the score.
In the embodiment of the disclosure, the calculation module is configured to obtain the center position of each fault based on
obtain the distance between each fault data point and the center position based on Oj,k,i=Distance(Meanj,k, Pj,k,i), obtain the farthest position of the fault data point based on max Oj,k=arg max{Oj,k,i}, and obtain the average position of the fault data point based on
wherein j=1 . . . J, J is the number of wavelet basis functions; k=1 . . . K, K is the number of faults; i=1 . . . N, N is the number of data points for a single fault; Pj,k,i is the coordinate position of the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function, Distance is the Euclidean distance calculation function, and Oj,k,i is the distance between the i-th data point Pj,k,i of the k-th fault in the feature extracted based on the j-th wavelet basis function and the center position Meanj,k.
In the embodiment of the disclosure, the feature score discriminating module is configured to obtain the score of the feature extracted based on the j-th wavelet basis function based on
wherein m=1 . . . C(K, 2), which is the m-th combination of two faults among the K types of faults, and Judgej,m is the score of m-th combination of two faults, and
wherein k1, k2 indicate two different faults.
In the embodiment of the disclosure, the wavelet basis function determining module is configured to determine the wavelet basis function satisfying the highest score based on Scoret=arg max{Scorej}. If there is only one wavelet basis function satisfying the highest score, the wavelet basis function satisfying the highest score is used as the optimal wavelet basis function for extracting fault features of analog circuit.
If there are S types of wavelet basis functions satisfying the highest score, the s-th type of wavelet basis function among the S types of wavelet basis functions that satisfy
is taken as the optimal wavelet basis function for extracting the fault features of analog circuit.
In the embodiment of the disclosure, the number of wavelet basis functions is equal to the number of features; the coordinate position of the i-th data point of the k-th fault in the feature extracted based on the j-th wavelet basis function is the value of the i-th data point of the k-th faults in the feature extracted based on the j-th wavelet basis function.
For the specific implementation of each module, reference may be made to the description of the foregoing embodiment of method, and no repetition will be incorporated in the following embodiment.
Another embodiment of the disclosure provides a computer-readable storage medium in which program instructions are stored. When the program instructions are executed by a processor, the method for extracting fault features of analog circuit based on an optimal wavelet basis function is realized.
It should be pointed out that depending on the needs of implementation, each step/component described in this disclosure can be split into more steps/components. Alternatively, two or more steps/components or part of steps/components can be operated and combined into new ones to achieve the purpose of the disclosure.
The above method in the disclosure can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or implemented as computer code that can be downloaded through the Internet and is originally stored in the remote recording medium or non-transitory machine-readable medium and will be stored in the local recording medium. As such, the method described here can be processed by software that is stored in a general-purpose computer or a specific-purpose processor or programmable recording medium or recording medium for specific hardware (such as ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or a programmable hardware includes a storage element (for example, RAM, ROM, flash memory, etc.) that can store or receive software or computer code. When the software or the computer code is accessed and executed by a computer, processor, or hardware, the processing method described here is implemented. In addition, when a general-purpose computer accesses the code for implementing the processing shown here, the execution of the code converts the general-purpose computer into a specific-purpose computer for implementing the processing described here.
Those skilled in the art can easily understand that the above descriptions are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modification, equivalent replacement and improvement, etc. made within the spirit and principle of the disclosure should fall within the protection scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202010134689.2 | Mar 2020 | CN | national |