CN114355173B - A Fault Diagnosis Method of Analog Filter Circuit Based on Multi-input Residual Network - Google Patents
A Fault Diagnosis Method of Analog Filter Circuit Based on Multi-input Residual Network Download PDFInfo
- Publication number
- CN114355173B CN114355173B CN202210004437.7A CN202210004437A CN114355173B CN 114355173 B CN114355173 B CN 114355173B CN 202210004437 A CN202210004437 A CN 202210004437A CN 114355173 B CN114355173 B CN 114355173B
- Authority
- CN
- China
- Prior art keywords
- input
- model
- residual network
- filter circuit
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000003745 diagnosis Methods 0.000 title claims abstract description 20
- 238000012549 training Methods 0.000 claims abstract description 51
- 238000004458 analytical method Methods 0.000 claims abstract description 11
- 238000004088 simulation Methods 0.000 claims abstract description 6
- 238000007619 statistical method Methods 0.000 claims abstract description 6
- 238000012795 verification Methods 0.000 claims description 16
- 238000010200 validation analysis Methods 0.000 claims description 7
- 238000005070 sampling Methods 0.000 claims description 5
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 claims description 4
- 238000011176 pooling Methods 0.000 claims description 4
- 238000004422 calculation algorithm Methods 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims description 2
- 238000012360 testing method Methods 0.000 abstract description 7
- 230000009466 transformation Effects 0.000 abstract 1
- 238000000605 extraction Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000000354 decomposition reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000007500 overflow downdraw method Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000010206 sensitivity analysis Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/316—Testing of analog circuits
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
- Y04S10/52—Outage or fault management, e.g. fault detection or location
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
- Measurement Of Resistance Or Impedance (AREA)
Abstract
Description
技术领域technical field
本发明属于模拟电路故障诊断技术领域,更为具体地讲,涉及一种基于多输入残差网络的模拟滤波电路故障诊断方法。The invention belongs to the technical field of fault diagnosis of analog circuits, and more specifically relates to a fault diagnosis method of an analog filter circuit based on a multi-input residual network.
背景技术Background technique
随着电子电路行业的快速发展,电子电路的集成度不断提高,其功能性和模块化要求越来越明显,对电子电路系统运行可靠性的要求也越来越高。据统计显示,电路中近80%是数字电路,但电路近80%的故障由模拟电路产生。模拟滤波电路因其良好的性能常被作为滤波模块应用在电子电路的模拟部分。若模拟滤波电路在使用时出现故障,必然会影响模拟电路整体的性能,造成不可避免的损失,因此及时地对模拟滤波电路进行故障诊断是非常必要的。With the rapid development of the electronic circuit industry, the degree of integration of electronic circuits continues to increase, the requirements for functionality and modularization are becoming more and more obvious, and the requirements for the reliability of electronic circuit systems are also getting higher and higher. According to statistics, nearly 80% of the circuits are digital circuits, but nearly 80% of the faults in the circuits are generated by analog circuits. Because of its good performance, the analog filter circuit is often used as a filter module in the analog part of the electronic circuit. If the analog filter circuit fails during use, it will inevitably affect the overall performance of the analog circuit and cause unavoidable losses. Therefore, it is very necessary to diagnose the fault of the analog filter circuit in time.
近年来,大量基于特征提取和分类器相结合的模拟滤波电路故障诊断方法被相继提出,但这类方法需要进行特征的提取、选择或融合,相比于自适应提取特征的神经网络算法,该方法更加的冗杂。但传统的基于神经网络的模拟滤波电路故障诊断方法仅对原始信号进行处理,未充分考虑电路故障时滤波性能与原始信号分量之间的联系,限制了模拟滤波电路故障诊断准确率的提升。In recent years, a large number of analog filter circuit fault diagnosis methods based on the combination of feature extraction and classifiers have been proposed, but these methods need to extract, select or fuse features. Compared with neural network algorithms for adaptive feature extraction, this The method is more complicated. However, the traditional neural network-based analog filter circuit fault diagnosis method only processes the original signal, and does not fully consider the relationship between the filter performance and the original signal component when the circuit is faulty, which limits the improvement of the accuracy of analog filter circuit fault diagnosis.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,提供一种基于多输入残差网络的模拟滤波电路故障诊断方法,通过将经验小波变换与多输入残差网络(Residual network,ResNet)相结合,实现模拟滤波电路的故障诊断,提高故障诊断的精度。The purpose of the present invention is to overcome the deficiencies in the prior art, provide a kind of analog filter circuit fault diagnosis method based on multi-input residual network, by combining empirical wavelet transform with multi-input residual network (Residual network, ResNet), realize Fault diagnosis of analog filter circuit improves the accuracy of fault diagnosis.
为实现上述发明目的,本发明一种基于多输入残差网络的模拟滤波电路故障诊断方法,其特征在于,包括以下步骤:In order to realize the above-mentioned purpose of the invention, a kind of analog filter circuit fault diagnosis method based on multi-input residual network of the present invention is characterized in that, comprises the following steps:
(1)、利用蒙特卡洛分析方法对待测模拟滤波电路进行仿真分析,获取k种故障状态下电路输出端k×n组采样点数为M的电压信号vij(t),i=1,2,…,k,j=1,2,…,n,n表示在待测模拟滤波电路的输出端采集电压信号的组数;(1), use the Monte Carlo analysis method to carry out simulation analysis on the analog filter circuit to be tested, and obtain the voltage signal v ij (t) of k × n groups of sampling points at the output end of the circuit under k kinds of fault states, i=1,2 ,...,k,j=1,2,...,n, n represents the group number of voltage signals collected at the output end of the analog filter circuit to be tested;
(2)、利用传统的经验小波变换算法对电压信号vij(t)进行分解,得到的m个模态分量,其中第q个模态分量表示为ewtijq(t),q=1,2,…,m,然后将m个模态分量组成特征向量ewtij=[ewtij1;ewtij2;…;ewtijq(t);…;ewtijm];(2), use the traditional empirical wavelet transform algorithm to decompose the voltage signal v ij (t), and obtain m modal components, wherein the qth modal component is expressed as ewt ijq (t), q=1,2 ,...,m, and then m modal components are composed of eigenvectors ewt ij =[ewt ij1 ; ewt ij2 ;...;ewt ijq (t);...;ewt ijm ];
(3)、将k种故障状态下的n个ewtij按照r1:r2的比例随机分配,分别组成训练数据集验证数据集 (3), randomly distribute n ewt ij under k kinds of fault states according to the ratio of r 1 :r 2 to form training data sets respectively Validation dataset
(4)、将ewtij所对应的故障状态的序号i作为标签,为训练数据集和验证数据集分别加载标签,构建多输入残差网络模型的训练集和验证集 (4), use the serial number i of the fault state corresponding to ewt ij as a label, load the labels for the training data set and the verification data set respectively, and construct the training set of the multi-input residual network model and validation set
(5)、搭建多输入残差网络,用train_set进行多输入残差网络模型的训练,用validation_set对train_set训练的模型进行验证,得到最优的多输入残差网络模型modelmax;(5), build a multi-input residual network, use train_set to train the multi-input residual network model, use validation_set to verify the model trained by train_set, and obtain the optimal multi-input residual network model model max ;
(5.1)、设置多输入残差网络模型的训练轮次为N,每一轮训练时输入的样本大小设置为batch_size;train_set完全输入到多输入残差网络需t次迭代,每次迭代向多输入残差网络输入记为train_setp,p=1…t, (5.1), set the training rounds of the multi-input residual network model to N, and set the input sample size to batch_size in each round of training; it takes t iterations for the train_set to be completely input into the multi-input residual network, and each iteration is multi-input Input residual network input is recorded as train_set p , p=1...t,
(5.2)、train_setp输入至多输入残差网络,通过Softmax函数预测出train_setp中第q个样本的预测标签属于加载标签i的概率proqi,q=1…batch_size,计算本次迭代中train_setp训练多输入残差网络所得到的训练损失TLmp,m=1…N;(5.2), train_set p is input to the multi-input residual network, and the predicted label of the qth sample in train_set p is predicted by the Softmax function to be the probability pro qi of the loaded label i, q=1...batch_size, and the train_set p in this iteration is calculated The training loss TL mp obtained by training the multi-input residual network, m=1...N;
其中,yqi等于0或1,当yqi等于1时表示train_setp中第q个样本加载的标签为i,当yqi等于0时表示train_setp中第q个样本加载的标签不为i;Among them, y qi is equal to 0 or 1. When y qi is equal to 1, it means that the label loaded by the qth sample in train_set p is i, and when y qi is equal to 0, it means that the label loaded by the qth sample in train_set p is not i;
(5.3)、利用LPt进行反向传播更新多输入残差网络;(5.3), utilize L Pt to carry out backpropagation and update multi-input residual network;
(5.4)、重复步骤(5.2)-(5.3)t次,直至将train_set中的样本全部输入至多输入残差网络,从而完成本轮训练,然后保存本轮训练完成后的训练损失和多输入残差网络模型modelm;(5.4), repeat steps (5.2)-(5.3) t times, until all the samples in the train_set are input to the input residual network to complete the current round of training, and then save the training loss after the completion of the current round of training And multi-input residual network model model m ;
(5.5)、将validation_set输入至本轮保存的多输入残差网络模型modelm,预测出标签值,再计算验证精度Vaccm;(5.5), input the validation_set to the multi-input residual network model model m saved in this round, predict the label value, and then calculate the verification accuracy Vacc m ;
其中,er等于1或0,若validation_set中第r个样本通过模型modelm预测得到的标签与validation_set中该样本所加载的标签相同则取值为1,否则取值为0;Among them, e r is equal to 1 or 0. If the label of the rth sample in the validation_set predicted by the model model m is the same as the label loaded by the sample in the validation_set, the value is 1, otherwise the value is 0;
(5.6)、重复步骤(5.2)-(5.5)N轮,得到N个多输入残差网络模型及验证精度,记为model=[model1…modelm…modelN],Vacc=[Vacc1…Vaccm…VaccN];(5.6), repeat steps (5.2)-(5.5) for N rounds to obtain N multi-input residual network models and verification accuracy, recorded as model=[model 1 ...model m ...model N ], Vacc=[Vacc 1 ... Vacc m ... Vacc N ];
(5.7)、利用Vacc中最大值所在的索引indexmax,得到N轮训练后的最优模型modelmax=model[indexmax],并作为待测模拟滤波电路的故障预测模型;(5.7), utilizing the index index max where the maximum value is located in Vacc, obtain the optimal model model max =model[index max ] after N rounds of training, and as the failure prediction model of the analog filter circuit to be tested;
(6)、按照步骤(1)-(2)所述方法获取待测模拟滤波电路在未知故障状态下的一组特征向量,然后输入至故障预测模型,从而得到待测模拟滤波电路所处的故障状态i。(6), according to the method described in step (1)-(2), obtain a group of eigenvectors of the analog filter circuit to be tested under the unknown fault state, then input to the fault prediction model, thereby obtaining the location of the analog filter circuit to be tested Fault state i.
本发明的发明目的是这样实现的:The purpose of the invention of the present invention is achieved like this:
本发明基于多输入残差网络的模拟滤波电路故障诊断方法,先设置蒙特卡洛分析相关参数,通过蒙特卡洛统计分析方法对模拟滤波电路进行仿真分析,得到不同故障状态下模拟滤波电路输出端的电压信号;再利用经验小波变换得到电压信号的模态分量,将其分别组成训练集和测试集,将训练集用于训练多输入ResNet,将测试集用于测试,并保存测试精度最高时对应的多输入ResNet模型及参数Parameters;最后通过训练好的多输入ResNet模型和Parameters诊断模拟滤波电路未知的故障状态。The present invention is based on the multi-input residual network fault diagnosis method for analog filter circuits. Firstly, the relevant parameters of Monte Carlo analysis are set, and the simulation analysis of the analog filter circuit is carried out through the Monte Carlo statistical analysis method, so as to obtain the output of the analog filter circuit under different fault states. Voltage signal; then use the empirical wavelet transform to obtain the modal components of the voltage signal, and form them into a training set and a test set respectively, use the training set for training multi-input ResNet, use the test set for testing, and save the corresponding The multi-input ResNet model and parameters Parameters; finally, the unknown fault state of the analog filter circuit is diagnosed through the trained multi-input ResNet model and Parameters.
本发明基于多输入残差网络的模拟滤波电路故障诊断方法还具有以下有益效果:The fault diagnosis method of the analog filter circuit based on the multi-input residual network of the present invention also has the following beneficial effects:
当模拟滤波电路中元件出现故障时,电路的滤波性能受到影响,通过多输入ResNet可以充分学习到输出端电压信号的每一个模态分量的特征,无需特征提取、选取和融合方法,不仅降低了模拟滤波电路故障诊断的复杂性,而且提高了故障诊断的准确性。When a component in the analog filter circuit fails, the filtering performance of the circuit is affected. The characteristics of each modal component of the output voltage signal can be fully learned through the multi-input ResNet, without the need for feature extraction, selection and fusion methods, which not only reduces the Simulate the complexity of filter circuit fault diagnosis, and improve the accuracy of fault diagnosis.
附图说明Description of drawings
图1是本发明基于多输入残差网络的模拟滤波电路故障诊断方法流程图;Fig. 1 is the flow chart of the present invention's analog filter circuit fault diagnosis method based on multi-input residual network;
图2是本发明实施例中针对四运放二阶高通滤波电路的仿真原理图;Fig. 2 is the simulation schematic diagram for the second-order high-pass filter circuit of four operational amplifiers in the embodiment of the present invention;
图3是四运放二阶高通滤波电路正常状态下输出端的电压信号;Fig. 3 is the voltage signal at the output terminal of the second-order high-pass filter circuit of four operational amplifiers under normal state;
图4是经验小波变换分解所得四运放二阶高通滤波电路正常状态下输出端电压信号的模态分量;Fig. 4 is the modal component of the output terminal voltage signal under the normal state of the four-op-amp second-order high-pass filter circuit obtained from empirical wavelet transform decomposition;
图5是本发明中多输入ResNet的具体结构;Fig. 5 is the specific structure of multi-input ResNet in the present invention;
图6是本发明中多输入ResNet的训练损失、验证精度随训练轮数变化的曲线图;Fig. 6 is a graph of the training loss and verification accuracy of multi-input ResNet in the present invention as a function of the number of training rounds;
图7是传统的单输入ResNet的训练损失、验证精度随训练轮数变化的曲线图。Figure 7 is a graph of the training loss and verification accuracy of the traditional single-input ResNet as a function of the number of training rounds.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
实施例Example
图1是本发明基于多输入残差网络的模拟滤波电路故障诊断方法流程图。FIG. 1 is a flow chart of the method for diagnosing faults of an analog filter circuit based on a multi-input residual network in the present invention.
在本实施例中,如图1所示,本发明一种基于多输入残差网络的模拟滤波电路故障诊断方法,包括以下步骤:In this embodiment, as shown in Figure 1, a method for diagnosing faults of an analog filter circuit based on a multi-input residual network of the present invention comprises the following steps:
S1、利用蒙特卡洛分析方法对待测模拟滤波电路进行仿真分析,获取k种故障状态下电路输出端k×n组采样点数为M的电压信号vij(t),i=1,2,…,k,j=1,2,…,n,n表示在待测模拟滤波电路的输出端采集电压信号的组数;S1. Use the Monte Carlo analysis method to simulate and analyze the analog filter circuit to be tested, and obtain the voltage signal v ij (t) of k × n sets of sampling points at the circuit output terminal under k fault states, where i=1,2,... , k, j=1, 2,..., n, n represents the group number of voltage signals collected at the output end of the analog filter circuit to be tested;
具体方法如下:The specific method is as follows:
S1.1、设置待测模拟滤波电路中电阻和电容的容差以及第i种故障状态下的故障参数;S1.1, setting the tolerance of resistance and capacitance in the analog filter circuit to be tested and the fault parameters in the i-th fault state;
S1.2、设置蒙特卡洛分析的起始时间结束时间/>时间步长TSTEP为/>运行次数为n,f表示待测模拟滤波电路输入端输入的信号的频率;S1.2. Set the start time of Monte Carlo analysis end time/> The time step TSTEP is /> The number of times of operation is n, and f represents the frequency of the signal input by the input terminal of the analog filter circuit to be tested;
S1.3、在k种故障状态下,将待测模拟滤波电路输出端的电压信号作为蒙特卡洛统计方法所分析的输出变量,从而得到k×n组采样点数为M的电压信号vij(t),其中 S1.3. Under k kinds of fault states, the voltage signal at the output terminal of the analog filter circuit to be tested is used as the output variable analyzed by the Monte Carlo statistical method, thereby obtaining a voltage signal v ij (t ),in
在本实施例中,利用蒙特卡洛统计方法对四运放二阶高通滤波电路进行仿真分析,获得故障数据集。In this embodiment, the Monte Carlo statistical method is used to simulate and analyze the second-order high-pass filter circuit with four operational amplifiers to obtain a fault data set.
四运放二阶高通滤波电路的仿真原理图如图2所示,将频率2K HZ,幅值为5V,占空比为50%的方波信号从电路的输入端输入,正常状态下四运放二阶高通滤波电路中的电阻和电容值如图3所示;经过灵敏度分析,四运放二阶高通滤波电路主要有12种故障模式,分别为R1↓,R1↑,R2↓,R2↑,R3↓,R3↑,R4↓,R4↑,C1↓,C1↑,C2↓,C2↑,分别用F1~F12表示,F0表示电路处于正常状态,表1是本实施例中具体故障的设置。将四运放二阶高通滤波电路中电阻和电容的容差均设置为5%,设置蒙特卡洛统计分析中的起始时间为0.005s,结束时间0.01s,时间步长均设置为6.25×10-6s,运行次数为400,分别得到F1~F12与F0组成的13种不同故障状态下采样点数为800的电压信号vij(t),i=1,…,13,j=1,2,…,400;The simulation schematic diagram of the second-order high-pass filter circuit of four operational amplifiers is shown in Figure 2. A square wave signal with a frequency of 2K HZ, an amplitude of 5V, and a duty cycle of 50% is input from the input terminal of the circuit. The resistance and capacitance values in the second-order high-pass filter circuit are shown in Figure 3; after sensitivity analysis, the second-order high-pass filter circuit with four operational amplifiers mainly has 12 failure modes, which are R1↓, R1↑, R2↓, R2↑ , R3↓, R3↑, R4↓, R4↑, C1↓, C1↑, C2↓, C2↑, represented by F1~F12 respectively, F0 indicates that the circuit is in a normal state, Table 1 is the setting of specific faults in this embodiment . Set the tolerances of resistors and capacitors in the second-order high-pass filter circuit of four operational amplifiers to 5%, set the start time of Monte Carlo statistical analysis to 0.005s, end time to 0.01s, and set the time step to 6.25× 10 -6 s, the number of operations is 400, and the voltage signals v ij (t) with 800 sampling points under 13 different fault states composed of F1~F12 and F0 are respectively obtained, i=1,...,13,j=1, 2,...,400;
表1Table 1
S2、利用传统的经验小波变换对电压信号vij(t)进行分解,得到6个模态分量ewtijq(t),q=1,2,…,6,分别将400组模态分量ewtijq(t)组成特征向量ewtij,传统经验小波变换分解所得四运放二阶高通滤波电路正常状态下输出端电压信号的模态分量如图4所示;S2. Use the traditional empirical wavelet transform to decompose the voltage signal v ij (t) to obtain 6 modal components ewt ijq (t), q=1,2,...,6, respectively divide 400 groups of modal components ewt ijq (t) constitutes the eigenvector ewt ij , and the modal components of the output terminal voltage signal of the four-op-amp second-order high-pass filter circuit under normal conditions obtained by traditional empirical wavelet transform decomposition are shown in Figure 4;
S3、将13种故障状态下的ewtij按照3:1的比例,分别组成训练数据集验证数据集/> S3. The ewt ij under 13 kinds of fault states are composed of training data sets according to the ratio of 3:1 validation dataset />
S4、将ewtij所对应的故障状态的序号i作为标签,为训练数据集和验证数据集分别加载标签,构建多输入残差网络模型的训练集和验证集 S4. Use the serial number i of the fault state corresponding to ewt ij as a label, load labels for the training data set and the verification data set respectively, and construct a training set for a multi-input residual network model and validation set
S5、搭建多输入残差网络;S5. Building a multi-input residual network;
如图5所示,多输入残差网络模型包括输入层、6个结构相同残差块net-block、全连接层和输出层;As shown in Figure 5, the multi-input residual network model includes an input layer, 6 residual block net-blocks with the same structure, a fully connected layer and an output layer;
其中,每个net-block均包括1层卷积单元、4层结构相同残差单元和1层平均池化层;Among them, each net-block includes 1 layer of convolution unit, 4 layers of residual units with the same structure and 1 layer of average pooling layer;
卷积单元中先通过核大小为5、输出通道为16、步长为2的一维卷积层,再经过批正则化层和Relu层,最后经过核大小3、步长为2的一维平均池化层;In the convolution unit, it first passes through a one-dimensional convolution layer with a kernel size of 5, an output channel of 16, and a step size of 2, then passes through a batch regularization layer and a Relu layer, and finally passes through a one-dimensional convolutional layer with a kernel size of 3 and a step size of 2. average pooling layer;
所述残差单元先通过核大小为3、输入通道为channell=23+l,l=1,2,3,4、输出通道为channell、步长为2的一维卷积层,再经过正则化层和Relu层;然后通过核大小为3、输入、输出通道均为channell、步长为1的一维卷积层,再经过正则化层和Relu层,其中l表示残差单元对应的层数;The residual unit first passes through a one-dimensional convolutional layer with a kernel size of 3, an input channel of channel l = 2 3+l , l = 1, 2, 3, 4, an output channel of channel l , and a step size of 2, Then go through the regularization layer and the Relu layer; then go through the one-dimensional convolution layer with a kernel size of 3, input and output channels of channel l , and a step size of 1, and then go through the regularization layer and the Relu layer, where l represents the residual The number of layers corresponding to the unit;
将6个net-block的输出串接在一起,通过全连接层到输出层;Concatenate the output of 6 net-blocks together, through the fully connected layer to the output layer;
S6、训练多输入残差网络;S6. Training a multi-input residual network;
用train_set进行多输入残差网络模型的训练,用validation_set对train_set训练的模型进行验证,得到最优的多输入残差网络模型modelmax;Use train_set to train the multi-input residual network model, use validation_set to verify the model trained by train_set, and obtain the optimal multi-input residual network model model max ;
S6.1、设置多输入残差网络模型的训练轮次为N,每一轮训练时输入的样本大小设置为batch_size;train_set完全输入到多输入残差网络需t次迭代,每次迭代向多输入残差网络输入记为train_setp,p=1…t, S6.1. Set the number of training rounds of the multi-input residual network model to N, and set the input sample size to batch_size in each round of training; it takes t iterations for the train_set to be completely input into the multi-input residual network, and each iteration is multi-input Input residual network input is recorded as train_set p , p=1...t,
S6.2、train_setp输入至多输入残差网络,通过sofmax函数预测出train_setp中第q个样本的预测标签属于加载的标签i的概率proqi,q=1…batch_size,计算本次迭代中train_setp训练多输入残差网络所得到的训练损失TLmp,m=1…N;S6.2. Train_set p is input to the multi-input residual network, and the sofmax function is used to predict the probability pro qi that the predicted label of the qth sample in train_set p belongs to the loaded label i, q=1...batch_size, and calculate the train_set in this iteration The training loss TL mp obtained by p training the multi-input residual network, m=1...N;
其中,yqi等于0或1,当yqi等于1时表示train_setp中第q个样本加载的标签为i,当yqi等于0时表示train_setp中第q个样本加载的标签不为i;Among them, y qi is equal to 0 or 1. When y qi is equal to 1, it means that the label loaded by the qth sample in train_set p is i, and when y qi is equal to 0, it means that the label loaded by the qth sample in train_set p is not i;
S6.3、利用LPt进行反向传播更新多输入残差网络;S6.3, using L Pt to perform backpropagation to update the multi-input residual network;
S6.4、重复步骤S6.2-S6.3共计t次,直至将train_set中的样本全部输入至多输入残差网络,从而完成本轮训练,然后保存本轮训练完成后的训练损失和多输入残差网络模型modelm;S6.4. Repeat steps S6.2-S6.3 for a total of t times until all the samples in the train_set are input to the residual network at most, thus completing the current round of training, and then save the training loss after the completion of the current round of training And multi-input residual network model model m ;
S6.5、将validation_set输入至本轮保存的多输入残差网络模型modelm,预测出标签值,再计算验证精度Vaccm;S6.5. Input the validation_set into the multi-input residual network model model m saved in this round, predict the label value, and then calculate the verification accuracy Vacc m ;
其中,er等于1或0,若validation_set中第r个样本通过模型modelm预测得到的标签与validation_set中该样本所加载的标签相同则取值为1,否则取值为0;Among them, e r is equal to 1 or 0. If the label of the rth sample in the validation_set predicted by the model model m is the same as the label loaded by the sample in the validation_set, the value is 1, otherwise the value is 0;
S6.6、重复步骤S6.2-S6.5共计N轮,得到N个多输入残差网络模型及验证精度,记为model=[model1…modelm…modelN],Vacc=[Vacc1…Vaccm…VaccN];S6.6. Repeat steps S6.2-S6.5 for a total of N rounds to obtain N multi-input residual network models and verification accuracy, recorded as model=[model 1 ...model m ...model N ], Vacc=[Vacc 1 ...Vacc m ...Vacc N ];
S6.7、利用Vacc中最大值所在的索引indexmax,得到N轮训练后的最优模型modelmax=model[indexmax],并作为待测模拟滤波电路的故障预测模型;S6.7. Utilize the index index max where the maximum value is located in Vacc to obtain the optimal model model max =model[index max ] after N rounds of training, and use it as the failure prediction model of the analog filter circuit to be tested;
将多输入残差网络的训练轮数设置为100,每轮训练时输入的样本大小设置为128,train_set完全输入到多输入残差网络需进行31次迭代,每次迭代向多输入残差网络输入记为train_setp,p=1…31;利用train_set和validation_set得到的基于本实施例中多输入残差网络的训练损失TL、验证精度Vacc随训练轮数的变化曲线如图6所示,基于传统的单输入残差网络的训练损失STL和验证精度SVacc随训练轮数的变化曲线如图7所示,两种残差网络模型分别进行100轮验证所得的最大验证精度如表2所示。Set the number of training rounds of the multi-input residual network to 100, and the input sample size for each round of training is set to 128. It takes 31 iterations for the train_set to be completely input to the multi-input residual network, and each iteration to the multi-input residual network The input is recorded as train_set p , p=1...31; the training loss TL based on the multi-input residual network in this embodiment obtained by using train_set and validation_set, the variation curve of verification accuracy Vacc with the number of training rounds is shown in Figure 6, based on The variation curves of the training loss STL and verification accuracy SVacc of the traditional single-input residual network with the number of training rounds are shown in Figure 7. The maximum verification accuracy of the two residual network models after 100 rounds of verification is shown in Table 2.
表2Table 2
通过图6、图7以及表2可知,多输入残差网络相比于传统的单输入残差网络训练损失的收敛效果更好,验证精度更高,泛化能力更强,能更加充分的学习到模拟滤波电路在不同的故障状态下的故障特征,有利于提高故障诊断的效率和准确度;From Figure 6, Figure 7 and Table 2, it can be seen that compared with the traditional single-input residual network, the multi-input residual network has better convergence effect on training loss, higher verification accuracy, stronger generalization ability, and can learn more fully To simulate the fault characteristics of the filter circuit in different fault states, it is beneficial to improve the efficiency and accuracy of fault diagnosis;
S7、按照步骤S1-S2所述方法获取待测模拟滤波电路在未知故障状态下的一组特征向量,然后输入至故障预测模型,从而得到待测模拟滤波电路所处的故障状态i。S7. Obtain a set of eigenvectors of the analog filter circuit to be tested in an unknown fault state according to the method described in steps S1-S2, and then input them into the fault prediction model to obtain the fault state i of the analog filter circuit to be tested.
尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention have been described above, so that those skilled in the art can understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, As long as various changes are within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions and creations using the concept of the present invention are included in the protection list.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210004437.7A CN114355173B (en) | 2022-01-04 | 2022-01-04 | A Fault Diagnosis Method of Analog Filter Circuit Based on Multi-input Residual Network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210004437.7A CN114355173B (en) | 2022-01-04 | 2022-01-04 | A Fault Diagnosis Method of Analog Filter Circuit Based on Multi-input Residual Network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114355173A CN114355173A (en) | 2022-04-15 |
CN114355173B true CN114355173B (en) | 2023-05-30 |
Family
ID=81107229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210004437.7A Active CN114355173B (en) | 2022-01-04 | 2022-01-04 | A Fault Diagnosis Method of Analog Filter Circuit Based on Multi-input Residual Network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114355173B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114325352B (en) * | 2022-01-04 | 2023-04-18 | 电子科技大学 | Analog filter circuit fault diagnosis method based on empirical wavelet transform |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6636823B1 (en) * | 1999-09-30 | 2003-10-21 | Rockwell Automation Technologies, Inc. | Method and apparatus for motor fault diagnosis |
JP2015099047A (en) * | 2013-11-18 | 2015-05-28 | 日立オートモティブシステムズ株式会社 | Failure diagnosis rate calculation device, failure diagnosis rate calculation method, and electronic circuit device |
CN110308384A (en) * | 2019-07-11 | 2019-10-08 | 电子科技大学 | Fault Diagnosis Method of Analog Circuit Based on Circle Model and Neural Network |
EP3651366A1 (en) * | 2018-11-09 | 2020-05-13 | STMicroelectronics Srl | Analog-to-digital converter circuit, corresponding device and method |
CN112748368A (en) * | 2020-10-28 | 2021-05-04 | 上海交通大学 | Three-level inverter IGBT open-circuit fault diagnosis method |
CN113111618A (en) * | 2021-03-09 | 2021-07-13 | 电子科技大学 | Analog circuit fault diagnosis method based on improved empirical wavelet transform |
CN113409284A (en) * | 2021-06-28 | 2021-09-17 | 北京百度网讯科技有限公司 | Circuit board fault detection method, device, equipment and storage medium |
CN115186564A (en) * | 2022-05-12 | 2022-10-14 | 山东大学 | A Fault Diagnosis Method for Analog Circuits Based on Feature Fusion and Improved Particle Swarm Optimization |
-
2022
- 2022-01-04 CN CN202210004437.7A patent/CN114355173B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6636823B1 (en) * | 1999-09-30 | 2003-10-21 | Rockwell Automation Technologies, Inc. | Method and apparatus for motor fault diagnosis |
JP2015099047A (en) * | 2013-11-18 | 2015-05-28 | 日立オートモティブシステムズ株式会社 | Failure diagnosis rate calculation device, failure diagnosis rate calculation method, and electronic circuit device |
EP3651366A1 (en) * | 2018-11-09 | 2020-05-13 | STMicroelectronics Srl | Analog-to-digital converter circuit, corresponding device and method |
CN110308384A (en) * | 2019-07-11 | 2019-10-08 | 电子科技大学 | Fault Diagnosis Method of Analog Circuit Based on Circle Model and Neural Network |
CN112748368A (en) * | 2020-10-28 | 2021-05-04 | 上海交通大学 | Three-level inverter IGBT open-circuit fault diagnosis method |
CN113111618A (en) * | 2021-03-09 | 2021-07-13 | 电子科技大学 | Analog circuit fault diagnosis method based on improved empirical wavelet transform |
CN113409284A (en) * | 2021-06-28 | 2021-09-17 | 北京百度网讯科技有限公司 | Circuit board fault detection method, device, equipment and storage medium |
CN115186564A (en) * | 2022-05-12 | 2022-10-14 | 山东大学 | A Fault Diagnosis Method for Analog Circuits Based on Feature Fusion and Improved Particle Swarm Optimization |
Non-Patent Citations (3)
Title |
---|
LIpeng ji.Soft Fault Diagnosis of Analog Circuits Based on a ResNet With Circuit Spectrum Map.《IEEE Transactions on Circuits and Systems I: Regular Papers》.2021,第68卷(第7期),全文. * |
傅晨琦.基于深度残差网络的模拟电路软故障诊断方法.《飞控与探测》.2021,第4卷(第4期),全文. * |
刘雪梅.基于经验小波变换和残差网络的模拟电路故障诊断方法研究.刘雪梅.2023,(第1期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN114355173A (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112685961B (en) | Method and system for predicting remaining service life of analog circuit | |
CN111985155B (en) | Circuit health state prediction method and system based on integrated deep neural network | |
CN107894564B (en) | A Fault Diagnosis Method for Analog Circuits Based on Cross Wavelet Features | |
CN106483449B (en) | Analog circuit fault diagnosis method based on deep learning and complex features | |
CN113805064B (en) | Lithium ion battery pack health state prediction method based on deep learning | |
CN102636742B (en) | Large-scale analogue circuit fault diagnosis method based on wavelet neural network | |
CN108520301A (en) | A Deep Belief Network Based Intermittent Fault Diagnosis Method for Circuits | |
CN111256965B (en) | A Stacked Sparse Autoencoder Fault Diagnosis Method for Rotating Machinery Based on Multiscale Information Fusion | |
CN108303632A (en) | Circuit failure diagnosis method based on random forests algorithm | |
CN106291233B (en) | A kind of fault phase-selecting method based on convolutional neural networks | |
CN106980073A (en) | A kind of two ends of electric transmission line fault recorder data matching process based on convolutional neural networks | |
CN103267941B (en) | Method for testing fault modes of integrated switching current circuit | |
CN110308384B (en) | Analog circuit fault diagnosis method based on circle model and neural network | |
CN115062538B (en) | Method and system for diagnosing faults of converter based on attention mechanism and convolution NN | |
CN105572572A (en) | WKNN-LSSVM-based analog circuit fault diagnosis method | |
CN114355173B (en) | A Fault Diagnosis Method of Analog Filter Circuit Based on Multi-input Residual Network | |
CN116362123A (en) | Chip layout pre-training and optimization method based on improved reward function | |
CN118311434A (en) | Lithium-ion battery SOH estimation method and system based on electrochemical impedance spectroscopy | |
CN102608519A (en) | Circuit failure diagnosis method based on node information | |
CN104635146A (en) | Analog circuit fault diagnosis method based on random sinusoidal signal test and HMM (Hidden Markov Model) | |
CN111639471A (en) | Electromagnetic interference filter design method based on recurrent neural network | |
CN106383951B (en) | Fault diagnosis method and system for an electric drive vehicle | |
CN113156303A (en) | Analog circuit fault diagnosis and positioning method based on output response matrix characteristic analysis | |
CN107798343A (en) | One kind is based on the improved SVM analog-circuit fault diagnosis methods of manifold structure | |
CN109948267B (en) | Linear analog circuit fault diagnosis method based on circular model parameters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |