CN105866664A - Intelligent fault diagnosis method for analog circuit based on amplitude frequency features - Google Patents
Intelligent fault diagnosis method for analog circuit based on amplitude frequency features Download PDFInfo
- Publication number
- CN105866664A CN105866664A CN201610447694.2A CN201610447694A CN105866664A CN 105866664 A CN105866664 A CN 105866664A CN 201610447694 A CN201610447694 A CN 201610447694A CN 105866664 A CN105866664 A CN 105866664A
- Authority
- CN
- China
- Prior art keywords
- amplitude
- fault diagnosis
- classifier
- diagnosis method
- analog circuits
- 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.)
- Pending
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract 17
- 238000000034 method Methods 0.000 title claims abstract 17
- 230000005284 excitation Effects 0.000 claims abstract 3
- 239000002245 particle Substances 0.000 claims 11
- 238000010606 normalization Methods 0.000 claims 5
- 238000012545 processing Methods 0.000 claims 4
- 238000000605 extraction Methods 0.000 claims 2
- 238000005457 optimization Methods 0.000 claims 2
- 238000012549 training Methods 0.000 claims 2
- 238000002790 cross-validation Methods 0.000 claims 1
- 238000011156 evaluation Methods 0.000 claims 1
- 238000012847 principal component analysis method Methods 0.000 claims 1
- 238000012706 support-vector machine Methods 0.000 claims 1
- 238000012360 testing method Methods 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 230000000694 effects Effects 0.000 abstract 1
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2411—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/285—Selection of pattern recognition techniques, e.g. of classifiers in a multi-classifier system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/12—Computing arrangements based on biological models using genetic models
- G06N3/126—Evolutionary algorithms, e.g. genetic algorithms or genetic programming
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Genetics & Genomics (AREA)
- Physiology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
本发明提供了一种基于幅频特征的模拟电路智能化故障诊断方法。所述基于幅频特征的模拟电路智能化故障诊断方法包括如下步骤:a、对待诊断电路施加激励信号,并采集所述待诊断电路输出的幅频响应信息作为故障特征信息;b、对所述幅频响应信息进行分析和处理,并根据所述幅频响应信息获得分类器的优化样本输入参数;c、将所述优化样本输入参数输入相对应的所述分类器进行故障分类识别,并获得最终诊断结果。本发明的有益效果在于:所述基于幅频特征的模拟电路智能化故障诊断方法能自动诊断模拟电路故障,并显著提高模拟电路故障诊断的精度和效果。
The invention provides an intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics. The method for intelligent fault diagnosis of analog circuits based on amplitude-frequency characteristics includes the following steps: a. Applying an excitation signal to the circuit to be diagnosed, and collecting the amplitude-frequency response information output by the circuit to be diagnosed as fault feature information; b. Analyze and process the amplitude-frequency response information, and obtain the optimized sample input parameters of the classifier according to the amplitude-frequency response information; c, input the optimized sample input parameters into the corresponding classifier to perform fault classification and identification, and obtain final diagnosis. The beneficial effect of the present invention is that: the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics can automatically diagnose analog circuit faults, and significantly improve the accuracy and effect of analog circuit fault diagnosis.
Description
技术领域technical field
本发明属于集成电路测试技术领域,具体地涉及一种可以提高模拟电路的故障诊断率和效率,并且能够诊断出更多故障类型的基于幅频特征的模拟电路智能化故障诊断方法。The invention belongs to the technical field of integrated circuit testing, and in particular relates to an intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics, which can improve the fault diagnosis rate and efficiency of analog circuits and can diagnose more fault types.
背景技术Background technique
随着微电子技术的发展,大规模数模混合集成电路在各行各业广泛应用,研究如何准确、快速的诊断出模拟电路中的故障成为实际工程中迫切需要解决的问题;由于模拟电路的非线性、元件的容差性、故障种类多样性等特点导致模拟电路故障诊断技术发展缓慢,传统的故障诊断理论和方法在实际工程中很难达到预期的效果。With the development of microelectronics technology, large-scale digital-analog hybrid integrated circuits are widely used in all walks of life. Research on how to accurately and quickly diagnose faults in analog circuits has become an urgent problem in practical engineering; The characteristics of linearity, tolerance of components, and diversity of fault types lead to the slow development of analog circuit fault diagnosis technology. Traditional fault diagnosis theories and methods are difficult to achieve the expected results in actual engineering.
模拟电路是处理模拟信号,即时间和幅值都是连续信号的电子线路,其在故障诊断中表现出诸多复杂的特点。尽管国内外许多专家学者对模拟电路故障诊断展开了大量的研究,涌现出许多模拟电路故障诊断的方法,但正是由于模拟电路的自身特点导致现有的模拟电路故障诊断方法还不够完善。通过对现有的国内外模拟电路故障诊断的研究基础上进行分析和总结,发现现有的模拟电路故障诊断方法中主要还存在以下一些问题:Analog circuits are electronic circuits that process analog signals, that is, continuous signals in both time and amplitude, which exhibit many complex characteristics in fault diagnosis. Although many experts and scholars at home and abroad have carried out a lot of research on analog circuit fault diagnosis, and many analog circuit fault diagnosis methods have emerged, it is precisely because of the characteristics of analog circuit that the existing analog circuit fault diagnosis methods are not perfect. Based on the analysis and summary of the existing domestic and foreign analog circuit fault diagnosis research, it is found that there are still some problems in the existing analog circuit fault diagnosis methods:
(1)模拟电路故障诊断的准确性还有待进一步提高。由于模拟电路元件中存在着容差,使得某些故障模式的特征非常相似,从而增加了故障分类的模糊性和不确定性。现有的方法通常是把这些难以区分的故障模式合并为一类故障对待或是通过对电路的可测性分析只诊断电路中的可诊断元件,因此这些方法还不能完全实现对所有故障模式的正确诊断。(1) The accuracy of analog circuit fault diagnosis needs to be further improved. Due to the presence of tolerances in analog circuit components, the characteristics of some failure modes are very similar, thereby increasing the ambiguity and uncertainty of failure classification. Existing methods usually combine these indistinguishable failure modes into one type of failure treatment or only diagnose the diagnosable components in the circuit through the testability analysis of the circuit. Therefore, these methods cannot fully realize the detection of all failure modes. correct diagnosis.
(2)模拟电路故障模型的确定不合理,故障设置区间过大,没有一个统一的标准,造成模拟电路故障诊断的不严谨性。根据模拟电路的故障程度,有软故障和硬故障之分。目前,对于硬故障通常是用串联或并联一个电阻的方式模拟电路的开路或短路,如用1的电阻并联在故障元件的两端模拟元件的短路故障;用一个100M的电阻串联在故障元件所在的支路模拟元件的开路故障。通常认为元件参数值偏移了其容差范围引起的软故障的原则是元件参数大于或者小于其标称值的10倍以内。现有的方法在设置故障模式的时候具有很大的随意性,对偏离标称值较大的软故障能有较好的诊断效果,但若将软故障设置接近标称值的话,将大大降低模拟电路故障诊断的精度。(2) The determination of the analog circuit fault model is unreasonable, the fault setting interval is too large, and there is no unified standard, resulting in imprecise diagnosis of analog circuit faults. According to the fault degree of the analog circuit, there are soft faults and hard faults. At present, for hard faults, the open circuit or short circuit of the circuit is usually simulated by connecting a resistor in series or in parallel. The branch simulates an open-circuit fault of the component. It is generally believed that the principle of soft faults caused by component parameter values deviating from its tolerance range is that the component parameters are greater than or less than 10 times their nominal values. The existing method has great randomness in setting the fault mode, and it can have a better diagnostic effect on soft faults that deviate greatly from the nominal value, but if the soft fault is set close to the nominal value, it will be greatly reduced. Accuracy of analog circuit fault diagnosis.
(3)模拟电路中非线性电路广泛存在,再加上元件的容差性等原因,模拟电路的输出响应在一定范围内动态变化,使得电路的某些故障特征表现出非常相似特点,而只在局部有微小的区别,非常难以区分,这使故障诊断难以进行。因此,模拟电路故障特征提取这一环节尤为重要,它是获得好的故障诊断效果关键之一。目前特征提取方法大多数基于信号处理的方法,对模拟电路局部信号进行特征提取,但效果差强人意,相似故障仍旧难以区分,模糊故障的误诊率仍然很高。(3) Non-linear circuits widely exist in analog circuits, coupled with the tolerance of components and other reasons, the output response of analog circuits changes dynamically within a certain range, making some fault characteristics of the circuit show very similar characteristics, and only There are small differences locally, which are very difficult to distinguish, which makes fault diagnosis difficult. Therefore, the feature extraction of analog circuit faults is particularly important, and it is one of the keys to obtain good fault diagnosis results. Most of the current feature extraction methods are based on signal processing methods to extract features from the local signals of analog circuits, but the effect is not satisfactory, similar faults are still difficult to distinguish, and the misdiagnosis rate of fuzzy faults is still high.
(4)模拟电路故障样本获取困难,模拟电路故障诊断是一个典型的小样本模式识别问题,故障样本的缺乏已成为严重影响模拟电路故障诊断技术发展的重要原因之一。现有的故障分类方法对小样本问题的效果不是很好。(4) It is difficult to obtain analog circuit fault samples. Analog circuit fault diagnosis is a typical small-sample pattern recognition problem. The lack of fault samples has become one of the important reasons that seriously affect the development of analog circuit fault diagnosis technology. Existing fault classification methods do not work well for small sample problems.
因此,有必要提供一种可以提高模拟电路的故障诊断率和效率,并且能够诊断出更多故障类型的基于幅频特征的模拟电路智能化故障诊断方法。Therefore, it is necessary to provide an intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics that can improve the fault diagnosis rate and efficiency of analog circuits and can diagnose more fault types.
发明内容Contents of the invention
本发明的目的在于提供一种可以提高模拟电路的故障诊断率和效率,并且能够诊断出更多故障类型的基于幅频特征的模拟电路智能化故障诊断方法。The purpose of the present invention is to provide an intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics, which can improve the fault diagnosis rate and efficiency of analog circuits and can diagnose more fault types.
本发明的技术方案如下:一种基于幅频特征的模拟电路智能化故障诊断方法包括如下步骤:The technical scheme of the present invention is as follows: a method for intelligent fault diagnosis of analog circuits based on amplitude-frequency characteristics comprises the following steps:
a、对待诊断电路施加激励信号,并采集所述待诊断电路输出的幅频响应信息作为故障特征信息;a. Apply an excitation signal to the circuit to be diagnosed, and collect the amplitude-frequency response information output by the circuit to be diagnosed as fault characteristic information;
b、对所述幅频响应信息进行分析和处理,并根据所述幅频响应信息获得分类器的优化样本输入参数;b. Analyzing and processing the amplitude-frequency response information, and obtaining optimized sample input parameters of the classifier according to the amplitude-frequency response information;
c、将所述优化样本输入参数输入相对应的所述分类器进行故障分类识别,并获得最终诊断结果。c. Inputting the optimized sample input parameters into the corresponding classifier to perform fault classification and identification, and obtain a final diagnosis result.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,在步骤a中,所述激励信号是幅度为1V的正弦电压信号。In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, in step a, the excitation signal is a sinusoidal voltage signal with an amplitude of 1V.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,所述步骤b具体包括如下步骤:In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, the step b specifically includes the following steps:
b1、利用主成分分析方法(Principal Component Analysis,PCA)对所述幅频响应信息进行特征提取和降维处理;b1. Using Principal Component Analysis (PCA) to perform feature extraction and dimensionality reduction processing on the amplitude-frequency response information;
b2、对特征提取和降维处理后的所述幅频响应信息进行归一化处理;b2. Perform normalization processing on the amplitude-frequency response information after feature extraction and dimensionality reduction processing;
b3、利用粒子群算法(particle swarm optimization,PSO)对归一化后的所述幅频响应信息进行优化,从而获得分类器的优化样本输入参数。b3. Optimizing the normalized amplitude-frequency response information by using particle swarm optimization (PSO), so as to obtain the optimized sample input parameters of the classifier.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,在步骤b2中,根据贡献率选取多个属性构成故障特征,并对所述故障特征进行归一化处理。In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, in step b2, a plurality of attributes are selected according to the contribution rate to form fault features, and the fault features are normalized.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,所述归一化处理是把所有的数据转化为[0,1]之间的数,而且,所述归一化处理所采用的数据归一化函数如下:In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, the normalization process is to convert all data into numbers between [0,1], and the normalization The data normalization function used in the processing is as follows:
其中,xmax为数据序列中的最大数;xmin为序列中的最小数,xk和x′k分别为归一化前后的值。Among them, x max is the maximum number in the data sequence; x min is the minimum number in the sequence, and x k and x′ k are the values before and after normalization respectively.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,所述步骤b3具体包括如下步骤:In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, the step b3 specifically includes the following steps:
确定适应度函数,对训练样本进行交叉验证下的准确率作为粒子群优化算法中的适应度函数值;Determine the fitness function, and the accuracy rate under the cross-validation of the training samples is used as the fitness function value in the particle swarm optimization algorithm;
粒子群初始化,在解空间中随机生成规模大小适中的粒子群,粒子群个体代表分类器的参数;Particle swarm initialization, random generation of particle swarms of moderate size in the solution space, individual particle swarms represent the parameters of the classifier;
计算粒子适应度值,设置分类器的惩罚参数C和核函数参数σ,将样本集输入分类器进行训练,得到测试样本的识别率,根据分类器分类性能的评价函数计算粒子适应度;Calculate the particle fitness value, set the penalty parameter C of the classifier and the kernel function parameter σ, input the sample set into the classifier for training, obtain the recognition rate of the test sample, and calculate the particle fitness according to the evaluation function of the classification performance of the classifier;
确定个体极值Pbest和全局极值gbest,将更新后的粒子适应度值与所述个体极值Pbest对应的适应值比较,若优则更新所述个体极值Pbest,否则保留原值;将更新后的每个粒子的所述个体极值Pbest与所述全局极值gbest比较,若优,更新所述全局极值gbest,否则保留原值;Determine the individual extremum P best and the global extremum g best , compare the updated particle fitness value with the fitness value corresponding to the individual extremum P best , if it is better, update the individual extremum P best , otherwise keep the original value; compare the updated individual extremum P best of each particle with the global extremum g best , if superior, update the global extremum g best , otherwise retain the original value;
更新粒子的位置和速度信息;Update the position and velocity information of the particles;
判断是否满足终止条件,即是否满足最大迭代次数或设置的其他终止条件,如果满足则输出分类器参数,此参数即为最优参数,算法结束;否则返回计算粒子适应度值步骤直到满足终止条件,输出最优的分类器参数值。Judging whether the termination condition is met, that is, whether the maximum number of iterations or other termination conditions set are met, and if so, output the classifier parameters, which are the optimal parameters, and the algorithm ends; otherwise, return to the step of calculating the particle fitness value until the termination condition is met , output the optimal classifier parameter values.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,所述分类器采用支持向量机(support vector machine,SVM)。In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, the classifier adopts a support vector machine (SVM).
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,所述分类器的优化样本输入参数包括与所述支持向量机相对应地惩罚参数C和核函数参数σ。In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, the optimized sample input parameters of the classifier include penalty parameter C and kernel function parameter σ corresponding to the support vector machine.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,在步骤c中根据一对多组合方式构造多个分类器。In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, in step c, multiple classifiers are constructed according to a one-to-many combination method.
在本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法中,在步骤a之前,还包括步骤c:根据所述待诊断电路确定电路的故障模式。In the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics provided by the embodiment of the present invention, before step a, further includes step c: determining the fault mode of the circuit according to the circuit to be diagnosed.
本发明的有益效果在于:所述基于幅频特征的模拟电路智能化故障诊断方法中,采集模拟电路幅频响应作为故障特征,然后利用主成分分析进行故障特征提取和降维处理,从而可以有效地减少故障特征中的冗余和干扰成分。而且,故障分类器采用的是支持向量机,并且采用粒子群优化算法寻优得到所述支持向量机的核函数参数和惩罚参数,从而提高模拟电路故障诊断的精度。因此,所述基于幅频特征的模拟电路智能化故障诊断方法能自动诊断模拟电路故障,并显著提高模拟电路故障诊断的精度和效果。The beneficial effect of the present invention is that: in the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics, the amplitude-frequency response of the analog circuit is collected as fault characteristics, and then principal component analysis is used for fault feature extraction and dimension reduction processing, thereby effectively The redundancy and interference components in the fault signature can be reduced as much as possible. Moreover, the fault classifier adopts a support vector machine, and uses a particle swarm optimization algorithm to obtain the kernel function parameters and penalty parameters of the support vector machine, thereby improving the accuracy of analog circuit fault diagnosis. Therefore, the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics can automatically diagnose analog circuit faults, and significantly improve the accuracy and effect of analog circuit fault diagnosis.
附图说明Description of drawings
图1是本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法的流程示意图;Fig. 1 is a schematic flow chart of an analog circuit intelligent fault diagnosis method based on amplitude-frequency characteristics provided by an embodiment of the present invention;
图2是本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法的流程框图;Fig. 2 is a block flow diagram of an analog circuit intelligent fault diagnosis method based on amplitude-frequency characteristics provided by an embodiment of the present invention;
图3是四运放双二次高通滤波器的电路结构示意图;Fig. 3 is the schematic diagram of the circuit structure of the double quadratic high-pass filter of four operational amplifiers;
图4是图2所示基于幅频特征的模拟电路智能化故障诊断方法的步骤S3的流程框图;Fig. 4 is a flow chart of step S3 of the analog circuit intelligent fault diagnosis method based on amplitude-frequency characteristics shown in Fig. 2;
图5是图4所示步骤S3中粒子群优化支持向量机流程示意图。FIG. 5 is a schematic flow diagram of the particle swarm optimization support vector machine in step S3 shown in FIG. 4 .
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
除非上下文另有特定清楚的描述,本发明中的元件和组件,数量既可以单个的形式存在,也可以多个的形式存在,本发明并不对此进行限定。本发明中的步骤虽然用标号进行了排列,但并不用于限定步骤的先后次序,除非明确说明了步骤的次序或者某步骤的执行需要其他步骤作为基础,否则步骤的相对次序是可以调整的。可以理解,本文中所使用的术语“和/或”涉及且涵盖相关联的所列项目中的一者或一者以上的任何和所有可能的组合。Unless the context clearly states otherwise, the number of elements and components in the present invention can exist in a single form or in multiple forms, and the present invention is not limited thereto. Although the steps in the present invention are arranged with labels, they are not used to limit the order of the steps. Unless the order of the steps is clearly stated or the execution of a certain step requires other steps as a basis, the relative order of the steps can be adjusted. It can be understood that the term "and/or" used herein refers to and covers any and all possible combinations of one or more of the associated listed items.
请同时参阅图1和图2,图1是本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法的流程示意图,图2是本发明实施例提供的基于幅频特征的模拟电路智能化故障诊断方法的流程框图。本发明提供的基于幅频特征的模拟电路智能化故障诊断方法100包括如下步骤:Please refer to Fig. 1 and Fig. 2 at the same time. Fig. 1 is a schematic flowchart of an analog circuit intelligent fault diagnosis method based on amplitude-frequency characteristics provided by an embodiment of the present invention, and Fig. 2 is an analog circuit based on amplitude-frequency characteristics provided by an embodiment of the present invention Flow chart of intelligent fault diagnosis method. The intelligent fault diagnosis method 100 for analog circuits based on amplitude-frequency characteristics provided by the present invention includes the following steps:
S1、根据待诊断电路确定电路的故障模式。S1. Determine the failure mode of the circuit according to the circuit to be diagnosed.
具体地,根据待诊断电路的电子元器件的型号和性能,可以确定所述待诊断电路可能发生的故障模式。Specifically, according to the type and performance of the electronic components of the circuit to be diagnosed, the possible failure mode of the circuit to be diagnosed can be determined.
例如,以图3所示的四运放双二次高通滤波器为例,电路中各元件的标称值如图3中所示,其中电阻和电容各具有5%的容差。元件偏离其标称值的±50%时,电路发生软故障,即元件发生软故障时的值应该在[50%X,95%X)∪(105%X,150%X]区间内(X为元件的标称值)。表1给出了四运放双二次高通滤波器正常值、软故障值及对应的故障类别。其中,表示元件发生了偏大故障,表示元件发生了偏小故障,包括无故障状态之内共有13种故障模式。For example, taking the quadratic high-pass filter with four operational amplifiers as shown in Figure 3 as an example, the nominal values of the components in the circuit are shown in Figure 3, where the resistors and capacitors each have a tolerance of 5%. When the component deviates from its nominal value by ±50%, the circuit has a soft fault, that is, the value of the component when the soft fault occurs should be in the interval [50%X, 95%X)∪(105%X, 150%X] (X is the nominal value of the component). Table 1 shows the normal value, soft fault value and corresponding fault category of the quadratic high-pass filter of the four operational amplifiers. Among them, Indicates that the component has an oversized fault, Indicates that the component has a small fault, and there are 13 fault modes including the non-fault state.
表1故障模式设置表Table 1 Failure mode setting table
S2、对待诊断电路施加激励信号,并采集所述待诊断电路输出的幅频响应信息作为故障特征信息。S2. Apply an excitation signal to the circuit to be diagnosed, and collect amplitude-frequency response information output by the circuit to be diagnosed as fault characteristic information.
具体地,给待诊断电路的输入端施加一幅度为1V的正弦电压信号作为激励信号,进行参数分析(AC Sweep),在所述待诊断电路的输出端分别采集幅频响应信号作为电路的故障特征。而且,设置起始频率为1kHz,终止频率为25kHz,60个采样点,对所有故障模式分别进行50次的Monte Carlo分析,得到每种故障模式分别具有60个属性的50个样本。Specifically, a sinusoidal voltage signal with an amplitude of 1V is applied to the input terminal of the circuit to be diagnosed as an excitation signal, and a parameter analysis (AC Sweep) is performed, and amplitude-frequency response signals are respectively collected at the output terminal of the circuit to be diagnosed as a fault of the circuit feature. Moreover, set the start frequency to 1kHz, the stop frequency to 25kHz, and 60 sampling points, and conduct Monte Carlo analysis 50 times on all failure modes, and obtain 50 samples with 60 attributes for each failure mode.
S3、对所述幅频响应信息进行分析和处理,并根据所述幅频响应信息获得分类器的优化样本输入参数。S3. Analyze and process the amplitude-frequency response information, and obtain optimized sample input parameters of the classifier according to the amplitude-frequency response information.
具体地,请参阅图4,是图2所示基于幅频特征的模拟电路智能化故障诊断方法的步骤S3的流程框图。所述步骤S3包括如下步骤:Specifically, please refer to FIG. 4 , which is a flowchart of step S3 of the intelligent fault diagnosis method for analog circuits based on amplitude-frequency characteristics shown in FIG. 2 . Described step S3 comprises the following steps:
S31、利用主成分分析方法对所述幅频响应信息进行特征提取和降维处理;S31. Using a principal component analysis method to perform feature extraction and dimensionality reduction processing on the amplitude-frequency response information;
S32、对特征提取和降维处理后的所述幅频响应信息进行归一化处理;S32. Perform normalization processing on the amplitude-frequency response information after feature extraction and dimensionality reduction processing;
S33、利用粒子群算法对归一化后的所述幅频响应信息进行优化,从而获得分类器的优化样本输入参数。S33. Using the particle swarm optimization algorithm to optimize the normalized amplitude-frequency response information, so as to obtain the optimized sample input parameters of the classifier.
在步骤S31和步骤S32中,由于所述幅频响应信息的样本中含有大量的冗余成分,会影响到最终的诊断结果和性能,需要将得到的样本用主成分分析方法进行特征提取和降维处理。优选地,在使用主成分分析方法过程中,根据贡献率选取多个属性构成故障特征,并对所述故障特征进行归一化处理。例如,选取贡献率最大的前7个属性构成故障特征,并对故障特征值进行归一化处理。In step S31 and step S32, because the sample of the amplitude-frequency response information contains a large number of redundant components, which will affect the final diagnosis result and performance, it is necessary to use the principal component analysis method for feature extraction and reduction of the obtained samples. dimension processing. Preferably, in the process of using the principal component analysis method, a plurality of attributes are selected according to the contribution rate to form the fault feature, and normalization processing is performed on the fault feature. For example, the first seven attributes with the largest contribution rate are selected to form fault features, and the fault feature values are normalized.
而且,所述归一化处理是把所有的数据转化为[0,1]之间的数,其目的是取消各维数据间数量级差别,避免因为输入输出数据数量级差别较大而造成识别效果不佳。Moreover, the normalization process is to convert all the data into numbers between [0,1], the purpose of which is to cancel the magnitude difference between the data of each dimension, and avoid the recognition effect being poor due to the large difference in the magnitude of the input and output data. good.
在本实施例中,所述归一化处理所采用的数据归一化函数如下:In this embodiment, the data normalization function used in the normalization processing is as follows:
其中,xmax为数据序列中的最大数;xmin为序列中的最小数,xk和x′k分别为归一化前后的值。Among them, x max is the maximum number in the data sequence; x min is the minimum number in the sequence, and x k and x′ k are the values before and after normalization respectively.
例如,如果以图3所示的四运放双二次高通滤波器为例,根据步骤S31可以得到具有7个属性的50个样本。For example, if the biquadratic high-pass filter with four operational amplifiers shown in FIG. 3 is taken as an example, 50 samples with 7 attributes can be obtained according to step S31.
在步骤S33中,将步骤S32处理后的故障特征分为训练样本和测试样本两部分,并将所述训练样本输入支持向量机进行训练,同时用粒子群算法寻优支持向量机的核函数参数和惩罚参数。In step S33, the fault features processed in step S32 are divided into training samples and test samples, and the training samples are input into the support vector machine for training, and the kernel function parameters of the support vector machine are optimized by the particle swarm optimization algorithm and penalty parameters.
例如,将步骤S31得到的50个样本分为两部分:前30个样本作为训练样本,后20个样本作为测试样本,由于有13种故障模式,最终得到390个训练样本和260个测试样本。将样本输入支持向量机进行训练,同时用粒子群算法优化支持向量机的核函数参数和惩罚参数。将粒子群算法产生的初始种群作为支持向量机的参数输入支持向量机模型进行训练和测试,通过更新粒子位置和速度信息迭代寻优产生下一代种群参数,直到满足粒子群算法中设置的终止条件,最终得到最优的惩罚参数C和核函数参数σ。For example, the 50 samples obtained in step S31 are divided into two parts: the first 30 samples are used as training samples, and the last 20 samples are used as testing samples. Since there are 13 failure modes, 390 training samples and 260 testing samples are finally obtained. The samples are input into the support vector machine for training, and the kernel function parameters and penalty parameters of the support vector machine are optimized by the particle swarm optimization algorithm. The initial population generated by the particle swarm optimization algorithm is used as the parameter of the support vector machine to input the support vector machine model for training and testing, and iterative optimization is performed to generate the next generation of population parameters by updating the particle position and velocity information until the termination condition set in the particle swarm optimization algorithm is met. , and finally get the optimal penalty parameter C and kernel function parameter σ.
具体地,请参阅图5,是图4所示步骤S3中粒子群优化支持向量机流程示意图。所述步骤S33具体包括如下步骤:Specifically, please refer to FIG. 5 , which is a schematic flow chart of the particle swarm optimization support vector machine in step S3 shown in FIG. 4 . The step S33 specifically includes the following steps:
确定适应度函数,对训练样本进行交叉验证下的准确率作为粒子群优化算法中的适应度函数值;Determine the fitness function, and the accuracy rate under the cross-validation of the training samples is used as the fitness function value in the particle swarm optimization algorithm;
粒子群初始化,在解空间中随机生成规模大小适中的粒子群,粒子群个体代表分类器的参数;Particle swarm initialization, random generation of particle swarms of moderate size in the solution space, individual particle swarms represent the parameters of the classifier;
计算粒子适应度值,设置分类器的惩罚参数C和核函数参数σ,将样本集输入分类器进行训练,得到测试样本的识别率,根据分类器分类性能的评价函数计算粒子适应度;Calculate the particle fitness value, set the penalty parameter C of the classifier and the kernel function parameter σ, input the sample set into the classifier for training, obtain the recognition rate of the test sample, and calculate the particle fitness according to the evaluation function of the classification performance of the classifier;
确定个体极值Pbest和全局极值gbest,将更新后的粒子适应度值与所述个体极值Pbest对应的适应值比较,若优则更新所述个体极值Pbest,否则保留原值;将更新后的每个粒子的所述个体极值Pbest与所述全局极值gbest比较,若优,更新所述全局极值gbest,否则保留原值;Determine the individual extremum P best and the global extremum g best , compare the updated particle fitness value with the fitness value corresponding to the individual extremum P best , if it is better, update the individual extremum P best , otherwise keep the original value; compare the updated individual extremum P best of each particle with the global extremum g best , if superior, update the global extremum g best , otherwise retain the original value;
更新粒子的位置和速度信息;Update the position and velocity information of the particles;
判断是否满足终止条件,即是否满足最大迭代次数或设置的其他终止条件,如果满足则输出分类器参数,此参数即为最优参数,算法结束;否则返回计算粒子适应度值步骤直到满足终止条件,输出最优的分类器参数值。Judging whether the termination condition is met, that is, whether the maximum number of iterations or other termination conditions set are met, and if so, output the classifier parameters, which are the optimal parameters, and the algorithm ends; otherwise, return to the step of calculating the particle fitness value until the termination condition is met , output the optimal classifier parameter values.
S4、将所述优化样本输入参数输入相对应的所述分类器进行故障分类识别,并获得最终诊断结果。S4. Input the optimized sample input parameters into the corresponding classifier to perform fault classification and identification, and obtain a final diagnosis result.
具体地,在步骤S4中,所述分类器采用支持向量机,因此所述分类器的优化样本输入参数包括与所述支持向量机相对应地惩罚参数C和核函数参数σ。Specifically, in step S4, the classifier adopts a support vector machine, so the optimized sample input parameters of the classifier include a penalty parameter C and a kernel function parameter σ corresponding to the support vector machine.
而且,由于所述支持向量机的参数对最终分类结果的影响较大,只有找到最优参数才能提高故障诊断精度。因此,通过采用所述粒子群优化算法寻优得到所述支持向量机的惩罚参数C和核函数参数,可以提高了模拟电路故障诊断的精度。Moreover, since the parameters of the support vector machine have a great influence on the final classification result, only by finding the optimal parameters can the fault diagnosis accuracy be improved. Therefore, by using the particle swarm optimization algorithm to obtain the penalty parameter C and the kernel function parameter of the support vector machine, the accuracy of fault diagnosis of the analog circuit can be improved.
在本实施例中,模拟电路故障诊断是一个多分类问题,需要构造多分类器,本发明采用一对多组合方式构造多个分类器。例如对K分类,则先构造个分类器,再将样本输入模型中对结果投票,票数最多的即为最终分类结果。In this embodiment, fault diagnosis of analog circuits is a multi-classification problem, and multi-classifiers need to be constructed. The present invention adopts a one-to-many combination method to construct multiple classifiers. For example, for K classification, first construct classifiers, and then input the samples into the model to vote on the results, and the one with the most votes is the final classification result.
又例如,以图3所示的四运放双二次高通滤波器为例,如表2所示,只有2类故障中的4个样本诊断错误,故障诊断率达到98.5%。As another example, taking the quadratic high-pass filter with four op amps as shown in Figure 3 as an example, as shown in Table 2, only 4 samples of Type 2 faults were diagnosed incorrectly, and the fault diagnosis rate reached 98.5%.
表2故障诊断结果Table 2 Fault diagnosis results
相较于现有技术,本发明提供的基于幅频特征的模拟电路智能化故障诊断方法100中,采集模拟电路幅频响应作为故障特征,然后利用主成分分析进行故障特征提取和降维处理,从而可以有效地减少故障特征中的冗余和干扰成分。而且,故障分类器采用的是支持向量机,并且采用粒子群优化算法寻优得到所述支持向量机的核函数参数和惩罚参数,从而提高模拟电路故障诊断的精度。因此,基于幅频特征的模拟电路智能化故障诊断方法100能自动诊断模拟电路故障,并显著提高模拟电路故障诊断的精度和效果。Compared with the prior art, in the intelligent fault diagnosis method 100 for analog circuits based on amplitude-frequency characteristics provided by the present invention, the amplitude-frequency response of analog circuits is collected as fault features, and then principal component analysis is used to extract fault features and reduce dimensionality. Thereby, redundancy and interference components in fault signatures can be effectively reduced. Moreover, the fault classifier adopts a support vector machine, and uses a particle swarm optimization algorithm to obtain the kernel function parameters and penalty parameters of the support vector machine, thereby improving the accuracy of analog circuit fault diagnosis. Therefore, the analog circuit intelligent fault diagnosis method 100 based on amplitude-frequency characteristics can automatically diagnose analog circuit faults, and significantly improve the accuracy and effect of analog circuit fault diagnosis.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.
此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described according to implementation modes, not each implementation mode only includes an independent technical solution, and this description in the specification is only for clarity, and those skilled in the art should take the specification as a whole , the technical solutions in the various embodiments can also be properly combined to form other implementations that can be understood by those skilled in the art.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610447694.2A CN105866664A (en) | 2016-06-20 | 2016-06-20 | Intelligent fault diagnosis method for analog circuit based on amplitude frequency features |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610447694.2A CN105866664A (en) | 2016-06-20 | 2016-06-20 | Intelligent fault diagnosis method for analog circuit based on amplitude frequency features |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105866664A true CN105866664A (en) | 2016-08-17 |
Family
ID=56650155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610447694.2A Pending CN105866664A (en) | 2016-06-20 | 2016-06-20 | Intelligent fault diagnosis method for analog circuit based on amplitude frequency features |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105866664A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106778694A (en) * | 2017-01-18 | 2017-05-31 | 北京工业大学 | A kind of gear transmission noises analysis method based on set empirical mode decomposition and SVMs |
CN107202950A (en) * | 2017-05-12 | 2017-09-26 | 南京邮电大学 | Analog-circuit fault diagnosis method based on LMD approximate entropies and SVM |
CN110096927A (en) * | 2018-01-30 | 2019-08-06 | 西安交通大学 | Contactor diagnostic method and diagnostic system based on particle group optimizing support vector machines |
CN111461208A (en) * | 2020-03-31 | 2020-07-28 | 贵州电网有限责任公司 | Development scale prediction method and system suitable for distributed energy supply system |
CN113487019A (en) * | 2021-07-06 | 2021-10-08 | 湖南第一师范学院 | Circuit fault diagnosis method and device, computer equipment and storage medium |
CN118501671A (en) * | 2024-07-18 | 2024-08-16 | 江西机电职业技术学院 | A Fault Detection Method and Fault Detection Device for LC Resonance Circuit |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02254377A (en) * | 1989-03-29 | 1990-10-15 | Sharp Corp | Inspection of signal processor |
CN101221213A (en) * | 2008-01-25 | 2008-07-16 | 湖南大学 | Neural Network Method for Fault Diagnosis of Analog Circuits Based on Particle Swarm Optimization |
CN101231673A (en) * | 2008-02-02 | 2008-07-30 | 湖南大学 | An Analog Circuit Fault Diagnosis Method Using Immune Ant Algorithm Optimization |
CN101251579A (en) * | 2008-03-05 | 2008-08-27 | 湖南大学 | A Method of Analog Circuit Fault Diagnosis Based on Support Vector Machine |
CN103245907A (en) * | 2013-01-30 | 2013-08-14 | 中国人民解放军海军航空工程学院 | Artificial circuit fault diagnosis pattern sorting algorithm |
-
2016
- 2016-06-20 CN CN201610447694.2A patent/CN105866664A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02254377A (en) * | 1989-03-29 | 1990-10-15 | Sharp Corp | Inspection of signal processor |
CN101221213A (en) * | 2008-01-25 | 2008-07-16 | 湖南大学 | Neural Network Method for Fault Diagnosis of Analog Circuits Based on Particle Swarm Optimization |
CN101231673A (en) * | 2008-02-02 | 2008-07-30 | 湖南大学 | An Analog Circuit Fault Diagnosis Method Using Immune Ant Algorithm Optimization |
CN101251579A (en) * | 2008-03-05 | 2008-08-27 | 湖南大学 | A Method of Analog Circuit Fault Diagnosis Based on Support Vector Machine |
CN103245907A (en) * | 2013-01-30 | 2013-08-14 | 中国人民解放军海军航空工程学院 | Artificial circuit fault diagnosis pattern sorting algorithm |
Non-Patent Citations (3)
Title |
---|
左磊等: "基于粒子群-支持向量机的模拟电路故障诊断", 《系统工程与电子技术》 * |
李璇,彭继刚,王凯歌: "基于粒子群优化的LSSVM在模拟电路故障诊断中的应用", 《贵州师范大学学报(自然科学版)》 * |
鲁昌华,汪涌,王玲飞: "基于PCA和SVM的模拟电路故障诊断", 《电子测量与仪器学报》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106778694A (en) * | 2017-01-18 | 2017-05-31 | 北京工业大学 | A kind of gear transmission noises analysis method based on set empirical mode decomposition and SVMs |
CN107202950A (en) * | 2017-05-12 | 2017-09-26 | 南京邮电大学 | Analog-circuit fault diagnosis method based on LMD approximate entropies and SVM |
CN110096927A (en) * | 2018-01-30 | 2019-08-06 | 西安交通大学 | Contactor diagnostic method and diagnostic system based on particle group optimizing support vector machines |
CN111461208A (en) * | 2020-03-31 | 2020-07-28 | 贵州电网有限责任公司 | Development scale prediction method and system suitable for distributed energy supply system |
CN113487019A (en) * | 2021-07-06 | 2021-10-08 | 湖南第一师范学院 | Circuit fault diagnosis method and device, computer equipment and storage medium |
CN118501671A (en) * | 2024-07-18 | 2024-08-16 | 江西机电职业技术学院 | A Fault Detection Method and Fault Detection Device for LC Resonance Circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105866664A (en) | Intelligent fault diagnosis method for analog circuit based on amplitude frequency features | |
CN107884706B (en) | Analog circuit fault diagnosis method based on vector value regular kernel function approximation | |
CN105548862B (en) | A fault diagnosis method for analog circuits based on generalized multi-core support vector machines | |
CN103064008B (en) | A kind of Nolinear analog circuit soft fault diagnostic method based on Hilbert-Huang transform | |
WO2017024691A1 (en) | Analogue circuit fault mode classification method | |
CN101477172B (en) | A Fault Diagnosis Method for Analog Circuits Based on Neural Network | |
CN102520341B (en) | Analog circuit fault diagnosis method based on Bayes-KFCM (Kernelized Fuzzy C-Means) algorithm | |
US10539613B2 (en) | Analog circuit fault diagnosis method using single testable node | |
CN108303632A (en) | Circuit failure diagnosis method based on random forests algorithm | |
CN114818579B (en) | Analog circuit fault diagnosis method based on one-dimensional convolution long-short-term memory network | |
CN112151067B (en) | Digital audio tampering passive detection method based on convolutional neural network | |
CN108052974B (en) | A fault diagnosis method, system, device and storage medium | |
CN105572572B (en) | Analog-circuit fault diagnosis method based on WKNN-LSSVM | |
CN111260063B (en) | Fault Location and Parameter Identification Method of Analog Circuit Based on Genetic Algorithm | |
CN110443117B (en) | Wind turbine generator fault diagnosis method | |
CN101894296B (en) | Method for realizing analogue circuit fault diagnosis based on standard deviation and skewness by neural network | |
CN110208702B (en) | Neural network-based lithium battery ultrasonic information characteristic extraction method | |
CN102279358A (en) | MCSKPCA based neural network fault diagnosis method for analog circuits | |
CN106874950A (en) | A kind of method for identifying and classifying of transient power quality recorder data | |
CN105678343A (en) | Adaptive-weighted-group-sparse-representation-based diagnosis method for noise abnormity of hydroelectric generating set | |
CN103018660A (en) | Multi-fault intelligent diagnosing method for artificial circuit utilizing quantum Hopfield neural network | |
CN105606914A (en) | IWO-ELM-based Aviation power converter fault diagnosis method | |
CN105241665A (en) | Rolling bearing fault diagnosis method based on IRBFNN-AdaBoost classifier | |
CN109753762A (en) | Two-stage network topology identification method and device for distribution network based on category correction | |
CN109726770A (en) | A kind of analog circuit fault test and diagnosis method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160817 |