CN115829942A - Electronic circuit defect detection method based on non-negative constraint sparse self-encoder - Google Patents

Electronic circuit defect detection method based on non-negative constraint sparse self-encoder Download PDF

Info

Publication number
CN115829942A
CN115829942A CN202211408638.XA CN202211408638A CN115829942A CN 115829942 A CN115829942 A CN 115829942A CN 202211408638 A CN202211408638 A CN 202211408638A CN 115829942 A CN115829942 A CN 115829942A
Authority
CN
China
Prior art keywords
image
defect
electronic circuit
value
matrix
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
Application number
CN202211408638.XA
Other languages
Chinese (zh)
Inventor
付丽辉
石跃
吴文昊
蒋舟
李轶旻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaiyin Institute of Technology
Original Assignee
Huaiyin Institute of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huaiyin Institute of Technology filed Critical Huaiyin Institute of Technology
Priority to CN202211408638.XA priority Critical patent/CN115829942A/en
Publication of CN115829942A publication Critical patent/CN115829942A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

本发明公开了一种基于非负性约束稀疏自编码器的电子电路缺陷检测方法,包括:对电子电路图像采集、剪裁,图像数据增强及特征提取,确定缺陷数据集及缺陷类型。基于组的图模型及核规范的图像去噪方法对电子电路图像的去噪,通过优化学习策略来获得图像的拉普拉斯图矩阵,利用其封装图结构。提出非负性约束稀疏自编码器的深度学习模型,并将其用于缺陷区域的提取中。利用训练成功的自编码器模型预测出电路图像,并将该预测图像减去原始缺陷输入图像,生成缺陷检测图,设置适当阈值获得分类正确的缺陷类型。与现有技术相比,本发明可以有效地检测缺陷颜色变化较大的电子电路真缺陷以及颜色变化较小的伪缺陷,提高电子电路缺陷识别的可靠性和精度。

Figure 202211408638

The invention discloses an electronic circuit defect detection method based on a non-negativity constrained sparse self-encoder, which includes: collecting and cutting electronic circuit images, image data enhancement and feature extraction, and determining defect data sets and defect types. The image denoising method based on the group graph model and the kernel norm denoises the electronic circuit image, obtains the Laplacian graph matrix of the image by optimizing the learning strategy, and utilizes its encapsulation graph structure. A deep learning model of non-negativity constrained sparse autoencoder is proposed and used in the extraction of defect regions. The circuit image is predicted by using the successfully trained autoencoder model, and the original defect input image is subtracted from the predicted image to generate a defect detection map, and an appropriate threshold is set to obtain the correctly classified defect type. Compared with the prior art, the present invention can effectively detect the true defects of the electronic circuit with large defect color changes and the false defects with small color changes, and improve the reliability and accuracy of electronic circuit defect identification.

Figure 202211408638

Description

基于非负性约束稀疏自编码器的电子电路缺陷检测方法Electronic Circuit Defect Detection Method Based on Non-negativity Constrained Sparse Autoencoder

技术领域technical field

本发明涉及电子电路缺陷分类技术领域,具体涉及基于非负性约束稀疏自编码器的电子电路缺陷检测方法。The invention relates to the technical field of electronic circuit defect classification, in particular to an electronic circuit defect detection method based on a non-negativity constrained sparse autoencoder.

背景技术Background technique

众所周知,通过导电线路、焊盘和焊接点,电子电路板以机械方式支持电子元件的连接。随着科学技术的进步及移动电子产品市场的迅速发展,电子电路板更加多样化和复杂化,更多的电子器件被集成到电子电路板中,电子电路板的布局也日益增加,由此产生的问题也日益明显。比较典型是电路板中的信号传输轨迹缺陷对整个系统的信号产生的巨大影响,从而导致所连接电子部件性能降低,而这些电子部件又是影响整个系统功能的关键,因此,最终将引起电路故障和电路系统性能的缺陷。目前,常规通过人眼观察的方式难于辨别电子电路板的微小缺陷,因此,对能实现电子电路板缺陷自动检测方式的研究需求非常迫切,这也是控制电路质量的最重要的途径之一。Electronic circuit boards are known to mechanically support the connection of electronic components through conductive traces, pads and solder joints. With the advancement of science and technology and the rapid development of the mobile electronic product market, electronic circuit boards are more diverse and complex, more electronic devices are integrated into electronic circuit boards, and the layout of electronic circuit boards is also increasing, resulting in problems are becoming increasingly apparent. It is typical that the signal transmission track defect in the circuit board has a huge impact on the signal of the entire system, resulting in the degradation of the performance of the connected electronic components, and these electronic components are the key to the function of the entire system, so it will eventually cause circuit failure and defects in circuit system performance. At present, it is difficult to distinguish the tiny defects of electronic circuit boards by conventional methods of human eye observation. Therefore, there is an urgent need for research on automatic detection methods for electronic circuit board defects, which is also one of the most important ways to control circuit quality.

电子电路板的缺陷检测方法一般可分为两类:直接检测方式和基于摄像机的机器视觉方法。直接检测方式是通过人工操作的检查,允许操作员使用目视检查来轻松执行。然而,操作人员很容易因重复工作而感到疲劳,且每个人的检测结果有不一致的现象,这是人类判断的一个根本局限。为了克服这些局限,研究人员研究了基于机器视觉的缺陷检测,该缺陷检测系统一般包括摄像机、光源和操作系统。其主要目的是使用自动光学检测系统提高检测质量,一般利用电荷耦合器件(CCD)等工业相机获取高质量的电路缺陷图像,该方法直观且易于理解,但需要具有较高的拍摄对准精度且敏感的光环境。除了以上方法,开发人员还使用各种机器视觉和图像处理算法来完成电子电路的缺陷检测。一般情况下,这些方法都需要将所有缺陷类型提前报备。然而,我们无法保证检测系统只会遇到预先已经确定的缺陷。在实际生产环境中,经常会遇到各种突发缺陷,这是常规基于机器视觉的检测方法无法正确检测到的。在这种情况下,缺陷检查系统必须可以在面对电路制造条件发生变化时,使用新样本数据进行重新校准。这就是传统机器视觉检测系统的一个主要缺点。Defect detection methods for electronic circuit boards can generally be divided into two categories: direct detection methods and camera-based machine vision methods. Direct inspection is a manual inspection that allows the operator to perform it easily using visual inspection. However, operators are easily fatigued from repetitive tasks, and individual test results are inconsistent, which is a fundamental limitation of human judgment. To overcome these limitations, researchers have studied defect detection based on machine vision, which generally includes a camera, light source, and operating system. Its main purpose is to use an automatic optical inspection system to improve inspection quality. Generally, industrial cameras such as charge-coupled devices (CCD) are used to obtain high-quality circuit defect images. This method is intuitive and easy to understand, but requires high shooting alignment accuracy and Sensitive light environment. In addition to the above methods, developers also use various machine vision and image processing algorithms to complete the defect detection of electronic circuits. In general, these methods require all defect types to be reported in advance. However, we cannot guarantee that the inspection system will only encounter defects that have been identified in advance. In the actual production environment, various sudden defects are often encountered, which cannot be detected correctly by conventional machine vision-based inspection methods. In this case, the defect inspection system must be able to be recalibrated with new sample data in the face of changing circuit manufacturing conditions. This is a major shortcoming of traditional machine vision inspection systems.

发明内容Contents of the invention

发明目的:针对电子电路板日益多样化和复杂化,常规通过人眼观察的方式难于辨别其微小缺陷的现状,本发明提供一种基于非负性约束稀疏自编码器的电子电路缺陷检测方法,通过使用图像传感器(工业摄像头)捕获电子电路的图像,利用这些图像对深度自动编码器模型进行训练,并从缺陷电路图像中解码原始非缺陷图像,然后将解码后电路图像与输入电路图像进行比较,从而确定缺陷位置,实现对电路缺陷的有效检测,无需事先知道缺陷类型或专家系统的正常/缺陷评估标准,可以克服早期制造阶段存在的较小且不平衡数据集的问题。Purpose of the invention: In view of the fact that electronic circuit boards are increasingly diverse and complex, and it is difficult to identify tiny defects by conventional human eye observation, the present invention provides an electronic circuit defect detection method based on non-negativity constrained sparse autoencoder, By using an image sensor (industrial camera) to capture images of electronic circuits, use these images to train a deep autoencoder model, and decode the original non-defective image from the defective circuit image, and then compare the decoded circuit image with the input circuit image , so as to determine the defect location and achieve effective detection of circuit defects without prior knowledge of the defect type or the normal/defect evaluation criteria of the expert system, which can overcome the problem of small and unbalanced data sets in the early manufacturing stage.

技术方案:本发明公开一种基于非负性约束稀疏自编码器的电子电路缺陷检测方法,包括以下步骤:Technical solution: The present invention discloses a method for detecting defects in electronic circuits based on non-negativity constrained sparse autoencoders, which includes the following steps:

(1)对电子电路缺陷数据集预处理;对电子电路图像采集、剪裁,确定电子电路缺陷数据集及缺陷类型,完成图像数据的增强及特征选取;(1) Preprocessing the electronic circuit defect data set; collecting and tailoring the electronic circuit image, determining the electronic circuit defect data set and defect type, and completing image data enhancement and feature selection;

(2)完成基于组的图模型及核规范方法GNN的电子电路图像去噪,利用图像的拉普拉斯图矩阵及核规范来封装图结构;(2) Complete the electronic circuit image denoising based on the group-based graph model and kernel norm method GNN, and use the Laplacian graph matrix and kernel norm of the image to encapsulate the graph structure;

(3)构建基于非负性约束稀疏自编码器FFSAE的深度学习模型,并将其用于缺陷区域的提取中;(3) Construct a deep learning model based on non-negativity constrained sparse autoencoder FFSAE, and use it in the extraction of defect regions;

(4)生成缺陷检测图,利用训练成功的自编码器FFSAE模型预测出高质量的电路图像,并将该预测图像减去原始缺陷输入图像,生成缺陷检测图,最后通过对缺陷检测图设置适当阈值的方式来突出显示缺陷位置,从而完成对电子电路缺陷类型的正确分类。(4) Generate a defect detection map, use the successfully trained self-encoder FFSAE model to predict a high-quality circuit image, and subtract the original defect input image from the predicted image to generate a defect detection map, and finally set the defect detection map appropriately The method of threshold value is used to highlight the defect location, so as to complete the correct classification of electronic circuit defect types.

进一步地,所述步骤(1)中对电子电路缺陷数据集预处理具体步骤如下:Further, the specific steps of preprocessing the electronic circuit defect data set in the step (1) are as follows:

步骤(1)a:采集、剪裁电子电路图像,确定电子电路缺陷数据集;Step (1)a: collecting and clipping the electronic circuit image, and determining the electronic circuit defect data set;

步骤(1)b:确定电子电路缺陷类型,设定两种缺陷,一种是真缺陷,另一种是伪缺陷;其中,真缺陷真是由于引线形状改变而引起的缺陷,具体又设定为断开缺陷、连接缺陷、突出缺陷和裂纹缺陷;伪缺陷的特点是只有颜色变化,而引线及基础部件的形状特征不变,具体又设定分为氧化缺陷和灰尘缺陷;Step (1)b: Determine the type of defect in the electronic circuit, and set two kinds of defects, one is true defect and the other is false defect; among them, the true defect is really caused by the change of lead wire shape, specifically set as Disconnection defects, connection defects, protruding defects, and crack defects; false defects are characterized by only color changes, while the shape characteristics of leads and basic components remain unchanged, and are specifically divided into oxidation defects and dust defects;

步骤(1)c:完成图像数据增强及特征选取Step (1)c: Complete image data enhancement and feature selection

数据增强:应用几何变换和加入噪声的方式来完成数据增强:应用随机旋转的方式来克服图像数据的位置偏差;将具有噪声分布的随机矩阵与原始数据相乘;Data enhancement: apply geometric transformation and adding noise to complete data enhancement: apply random rotation to overcome the position deviation of image data; multiply a random matrix with noise distribution with the original data;

特征选取:确定特征参数分别为颜色信息和形状信息,其中,颜色信息共30种,分别从RGB、HSV颜色模型中进行提取以下特征,分别为1)最大值,2)最小值,3)平均值,4)比例高值,5)引线区域与候选区域和引线的比率,6)基础部件与候选部件的比率,7)数值重心与最大值之间的位置差,8)方差,9)标准偏差,10)峰度,11)偏斜度,12)熵,13)最大值和最小值之间的差值,14)中值,15)测试图像和参考图像之间的相关性;形状信息共包括8种类型,包括1)面积,2)周长,3)x方向尺寸,4)y方向尺寸,5)纵横比,6)对角线长度,7)复杂性,8)圆度。Feature selection: Determine the feature parameters as color information and shape information respectively. Among them, there are 30 kinds of color information, and the following features are extracted from RGB and HSV color models respectively, which are 1) maximum value, 2) minimum value, and 3) average value. value, 4) scale high value, 5) ratio of lead area to candidate area and lead, 6) ratio of base part to candidate part, 7) position difference between numerical center of gravity and maximum value, 8) variance, 9) standard Bias, 10) kurtosis, 11) skewness, 12) entropy, 13) difference between maximum and minimum, 14) median, 15) correlation between test image and reference image; shape information A total of 8 types are included, including 1) area, 2) perimeter, 3) size in x direction, 4) size in y direction, 5) aspect ratio, 6) diagonal length, 7) complexity, and 8) roundness.

进一步地,所述步骤(2)中完成基于组的图模型及核规范方法GNN的电路图像去噪,具体步骤如下:Further, in the step (2), the circuit image denoising based on the graphical model of the group and the kernel specification method GNN is completed, and the specific steps are as follows:

步骤(2)a:利用拉普拉斯矩阵L表征采集的补丁图像Step (2)a: Use the Laplacian matrix L to characterize the collected patch image

(1)根据图像数据获得加权相邻矩阵W(1) Obtain the weighted adjacency matrix W according to the image data

无向加权的加权邻接矩阵W图是非负的,并且具有相等的对角元素,即Wij=wji,Wij≥0,利用阈值高斯内核构成边缘的权重矩阵W,具体如下:The undirected weighted weighted adjacency matrix W graph is non-negative and has equal diagonal elements, that is, W ij = w ji , W ij ≥ 0, and the threshold Gaussian kernel is used to form the weight matrix W of the edge, as follows:

Figure BDA0003937225330000031
Figure BDA0003937225330000031

其中,

Figure BDA0003937225330000032
是在图像顶点vi和vj之间的欧几里得距离,σ是控制权重随距离增加而衰减的速度控制参数,ε是阈值参数,代表ε-邻域图;in,
Figure BDA0003937225330000032
is the Euclidean distance between image vertices v i and v j , σ is a speed control parameter that controls weight decay with increasing distance, ε is a threshold parameter, representing the ε-neighborhood graph;

(2)获取由拉普拉斯矩阵表示的图像L(2) Obtain the image L represented by the Laplacian matrix

L=Δ-WL=Δ-W

其中,Δ是对角矩阵,满足方程Δii=∑jWijAmong them, Δ is a diagonal matrix, which satisfies the equation Δ ii = ∑ j W ij ;

步骤(2)b:建立基于分组的图模型及核规范的组合优化公式Step (2)b: Establish a grouping-based graphical model and a combined optimization formula for kernel norms

(1)构建基本优化公式(1) Construct the basic optimization formula

Figure BDA0003937225330000033
是与拉普拉斯矩阵关联的正则化项,则基于图像去噪的基本优化公式如下:set up
Figure BDA0003937225330000033
is the regularization term associated with the Laplacian matrix, then the basic optimization formula based on image denoising is as follows:

Figure BDA0003937225330000034
Figure BDA0003937225330000034

其中,x和y都是代表图像块的n×1的向量,L是n×n的拉普拉斯矩阵,θ是正则化参数;Among them, x and y are both n×1 vectors representing image blocks, L is an n×n Laplacian matrix, and θ is a regularization parameter;

(2)构造基于分组对偶图的优化公式(2) Construct an optimization formula based on grouped dual graph

考虑到各组是一个矩阵,即构造包括行图和列图的对偶图Tm×n,则定义对偶图模型的优化表达式如下:Considering that each group is a matrix, that is, to construct a dual graph T m×n including row graphs and column graphs, the optimal expression for defining the dual graph model is as follows:

Figure BDA0003937225330000041
Figure BDA0003937225330000041

其中,X和Y是m×n的图像行列数据矩阵,θr和θc是正则化控制参数,用来确定正则化项的影响程度,即行图

Figure BDA0003937225330000042
和列图
Figure BDA0003937225330000043
Among them, X and Y are m×n image row and column data matrices, θ r and θ c are regularization control parameters, which are used to determine the degree of influence of the regularization term, that is, the row map
Figure BDA0003937225330000042
and column diagram
Figure BDA0003937225330000043

Figure BDA0003937225330000044
是基于组的行图正则化项,利用位于所有相似补丁图像的同一位置的像素强度的相似性来定义,具体为:
Figure BDA0003937225330000044
is a group-based line graph regularization term, defined by the similarity of pixel intensities located at the same location in all similar patch images, specifically:

Figure BDA0003937225330000045
Figure BDA0003937225330000045

Figure BDA0003937225330000046
是基于组的列图正则化项,利用位于每一个补丁图像对应所有位置的像素强度的相似性来定义,具体为:
Figure BDA0003937225330000046
is a group-based column map regularization term, defined by the similarity of pixel intensities at all locations corresponding to each patch image, specifically:

Figure BDA0003937225330000047
Figure BDA0003937225330000047

Lr和Lc分别是行拉普拉斯矩阵和列拉普拉斯阵;L r and L c are row Laplacian matrices and column Laplacian matrices, respectively;

(3)构造核规范的优化公式(3) The optimization formula for constructing the core specification

引入低阶优化处理,对低秩数据矩阵X的常规替换称为核规范或跟踪规范||X||*,具体定义如下:Introducing low-order optimization processing, the conventional replacement of low-rank data matrix X is called kernel norm or tracking norm ||X|| * , which is defined as follows:

||X||*=tr((XXT)1/2)=∑kσk ||X|| * =tr((XX T ) 1/2 )=∑ k σ k

其中,σk是X的奇异值;Among them, σ k is the singular value of X;

(4)构造基于分组的图模型及核规范的组合优化公式(4) Construct a group-based graphical model and a combined optimization formula for core norms

具体定义如下:The specific definition is as follows:

Figure BDA0003937225330000048
Figure BDA0003937225330000048

其中,θn、θr和θc是核范数、行图和列图的控制参数,可见,正则化项反映了非局部自相似性,核规范反映了能使用大量信息图像的低秩特性。Among them, θ n , θ r and θ c are the control parameters of the kernel norm, row map and column map. It can be seen that the regularization term reflects the non-local self-similarity, and the kernel norm reflects the low-rank characteristics of images that can use a large amount of information .

进一步地,对步骤(2)中基于分组的图模型及核规范的组合优化公式利用KNN算法进行优化处理求解,具体步骤如下:Further, the KNN algorithm is used to optimize the combined optimization formula based on the grouping graphical model and the core specification in step (2), and the specific steps are as follows:

(1)计算当前补丁图像与所有补丁图像之间的优化公式取值;(1) Calculate the value of the optimization formula between the current patch image and all patch images;

(2)按照优化值升序排列;(2) Arranged in ascending order according to the optimized value;

(3)选取优化值最邻近的K个补丁图像;(3) Select the K patch images closest to the optimized value;

(4)统计K个补丁图像所在类别出现的频率,将K个补丁图像中出现频率最高的类别作为去噪后的结果图像。(4) Count the occurrence frequencies of the categories of the K patch images, and use the category with the highest frequency among the K patch images as the denoised result image.

进一步地,所述步骤(3)基于非负性约束稀疏自编码器(FFSAE)的深度学习模型具体为:Further, the step (3) is based on the deep learning model of non-negativity constrained sparse autoencoder (FFSAE) specifically:

步骤(3)a:利用编码器对输入数据进行编码Step (3)a: Encode the input data with the encoder

首先,利用一组编码器θE={WE,bE}将输入数据转换为“压缩”表示的图像特征;通过以下公式将输入信号Xm∈Rd变换为隐层特征向量hm∈RsFirst, use a set of encoders θ E = {W E , b E } to convert the input data into "compressed" image features; transform the input signal X m ∈ R d into a hidden layer feature vector h m ∈ by the following formula R s :

hm=E(Xm,θE)=sigm(WEXE+bE)h m =E(X mE )=sigm(W E X E +b E )

其中,θE表示由权重矩阵WE和偏置向量bE组成的编码器参数,编码器为非线性变换函数:E():Rd→Rs(d>s);Among them, θ E represents the encoder parameters composed of weight matrix W E and bias vector b E , and the encoder is a nonlinear transformation function: E(): R d → R s (d>s);

步骤(3)b:定义成本函数ηAE(W,b)Step (3)b: Define the cost function η AE (W,b)

将所有训练样本的平均重建误差定义为成本函数ηAE(W,b),同时增加权重衰减惩罚项α,具体定义如下:The average reconstruction error of all training samples is defined as the cost function η AE (W, b), and the weight attenuation penalty term α is added at the same time, which is specifically defined as follows:

Figure BDA0003937225330000051
Figure BDA0003937225330000051

其中,W={WE,WD},b={bE,bD},M是训练样本的数量,α为控制减小权重的正规化惩罚项;Among them, W={W E , W D }, b={b E , b D }, M is the number of training samples, and α is the regularization penalty item that controls the weight reduction;

步骤(3)c:建立稀疏自动编码器Step (3)c: Build a sparse autoencoder

(1)求解隐层单元的平均激活值

Figure BDA0003937225330000052
(1) Solve the average activation value of the hidden layer unit
Figure BDA0003937225330000052

通过将稀疏性强加于自动编码器的隐层单元可以构建稀疏自编码器,稀疏自编码器期望每个隐层单元的平均激活值接近于零;设[hm]j为与Xm相关的第j个隐藏单元的激活值,则第j个隐层单元在整个训练集上平均激活值计算如下:Sparse autoencoders can be constructed by imposing sparsity on the hidden layer units of the autoencoder, and the sparse autoencoder expects the average activation value of each hidden layer unit to be close to zero; let [h m ] j be related to X m The activation value of the jth hidden unit, the average activation value of the jth hidden layer unit on the entire training set is calculated as follows:

Figure BDA0003937225330000061
Figure BDA0003937225330000061

(2)定义惩罚项

Figure BDA0003937225330000062
(2) Define the penalty item
Figure BDA0003937225330000062

稀疏自编码器的稀疏性约束由

Figure BDA0003937225330000063
强制执行,其中,ε为预定义的稀疏性参数,增加一个额外的惩罚项,用以惩罚明显偏离ε的
Figure BDA0003937225330000064
的情况,惩罚项定义为Kullback-Leibler(KL)散度,如下式所示:The sparsity constraint of sparse autoencoders is given by
Figure BDA0003937225330000063
Mandatory execution, where ε is a predefined sparsity parameter, and an additional penalty is added to punish those that deviate significantly from ε
Figure BDA0003937225330000064
In the case of , the penalty term is defined as the Kullback-Leibler (KL) divergence, as shown in the following formula:

Figure BDA0003937225330000065
Figure BDA0003937225330000065

其中,

Figure BDA0003937225330000066
是隐单元的平均激活向量,s是隐藏单元数,
Figure BDA0003937225330000067
是用于测量两个分布之间差异的标准函数;in,
Figure BDA0003937225330000066
is the average activation vector of hidden units, s is the number of hidden units,
Figure BDA0003937225330000067
is the standard function used to measure the difference between two distributions;

可见,当

Figure BDA0003937225330000068
时,
Figure BDA0003937225330000069
可以达到最小的0值,且当
Figure BDA00039372253300000610
向上偏离ε时,会导致其无效,因此,最小化此惩罚项可以使得
Figure BDA00039372253300000611
接近于ε;Visible, when
Figure BDA0003937225330000068
hour,
Figure BDA0003937225330000069
can reach the smallest value of 0, and when
Figure BDA00039372253300000610
Deviates upward from ε, making it invalid, so minimizing this penalty makes
Figure BDA00039372253300000611
close to ε;

(3)定义稀疏成本函数ηSAE(W,b)(3) Define the sparse cost function η SAE (W, b)

稀疏自编码器的训练目标优化函数是最小化平均重建误差ηAE(W,b)及稀疏性惩罚项

Figure BDA00039372253300000612
由此,稀疏成本函数ηSAE(W,b)定义为:The training objective optimization function of the sparse autoencoder is to minimize the average reconstruction error η AE (W, b) and the sparsity penalty term
Figure BDA00039372253300000612
Thus, the sparse cost function η SAE (W, b) is defined as:

Figure BDA00039372253300000613
Figure BDA00039372253300000613

其中,β是用来控制稀疏性惩罚项的权重;由于ε表示所有隐单元的平均激活,而隐单元的激活取决于参数{W,b},因此,ε项也依赖于{W,b};Among them, β is the weight used to control the sparsity penalty term; since ε represents the average activation of all hidden units, and the activation of hidden units depends on the parameters {W, b}, therefore, the ε term also depends on {W, b} ;

步骤(3)d:建立非负约束标准自动编码器的成本函数ηFFSAE(W,b)Step (3)d: Establish the cost function η FFSAE (W, b) of the non-negative constrained standard autoencoder

提出非负约束自编码器FFSAE,修改成本函数为ηFFSAE(W,b),具体如下:A non-negative constrained self-encoder FFSAE is proposed, and the cost function is modified as η FFSAE (W, b), as follows:

Figure BDA0003937225330000071
Figure BDA0003937225330000071

其中,

Figure BDA0003937225330000072
in,
Figure BDA0003937225330000072

步骤(3)e:利用梯度下降方法更新

Figure BDA0003937225330000073
Figure BDA0003937225330000074
Step (3)e: Utilize the gradient descent method to update
Figure BDA0003937225330000073
and
Figure BDA0003937225330000074

首先初始化参数

Figure BDA0003937225330000075
Figure BDA0003937225330000076
为接近零的随机值,然后应用梯度下降优化算法进行训练,在每次迭代中更新参数
Figure BDA0003937225330000077
Figure BDA0003937225330000078
具体如下式:Initialize the parameters first
Figure BDA0003937225330000075
and
Figure BDA0003937225330000076
is a random value close to zero, and then applies the gradient descent optimization algorithm for training, updating the parameters in each iteration
Figure BDA0003937225330000077
and
Figure BDA0003937225330000078
The specific formula is as follows:

Figure BDA0003937225330000079
Figure BDA0003937225330000079

Figure BDA00039372253300000710
Figure BDA00039372253300000710

其中,λ>0是学习率;Among them, λ>0 is the learning rate;

步骤(3)f:利用解码器来重建输入信号Step (3)f: Use the decoder to reconstruct the input signal

利用解码器θD={WD,bD}来反向恢复隐藏特征,从而重建输入信号,具体实现时,通过解码器D():Rs→Rd,将隐藏的特征向量hm反向恢复为具有类似结构的重建向量

Figure BDA00039372253300000711
实现公式如下:Use the decoder θ D ={W D , b D } to reversely restore the hidden features, thereby reconstructing the input signal. In specific implementation, the hidden feature vector h m is reversed through the decoder D(): R s →R d is restored to a reconstruction vector with a similar structure
Figure BDA00039372253300000711
The implementation formula is as follows:

Figure BDA00039372253300000712
Figure BDA00039372253300000712

其中,θD表示由权重矩阵WD和偏差向量bD组成的解码器参数。where θD denotes the decoder parameters consisting of weight matrix WD and bias vector bD .

进一步地,所述步骤(4)在利用缺陷检测图确定缺陷类型时,需要定义性能评价指标,采用结构相似性测量指数SSI作为评价指标,用以衡量某个图像结构信息相对另一个图像结构信息的退化程度,具体计算如下:Further, in the step (4), when using the defect detection map to determine the defect type, it is necessary to define a performance evaluation index, and use the structural similarity measurement index SSI as the evaluation index to measure the structural information of a certain image relative to the structural information of another image. The degree of degradation is calculated as follows:

Figure BDA0003937225330000081
Figure BDA0003937225330000081

式中,μ和σ分别表示各个像素参数的平均值和方差;σxy为协方差;c1、c2是防止除数为零的常数。In the formula, μ and σ respectively represent the average value and variance of each pixel parameter; σ xy is the covariance; c 1 and c 2 are constants to prevent the divisor from being zero.

有益效果:Beneficial effect:

1、本发明利用非负性约束稀疏自编码器(FFSAE)以及基于组的图模型及核规范图像去噪方法(GNN),实现了对电子电路缺陷类型的自动有效检测。通过使用图像传感器(工业摄像头)捕获电子电路的图像,利用这些图像对深度自动编码器模型进行训练,并从缺陷电路图像中解码原始非缺陷图像,然后将解码后电路图像与输入电路图像进行比较,从而确定缺陷位置,实现对电路缺陷的有效检测。因此,该方法无需事先知道缺陷类型或专家系统的正常/缺陷评估标准,可以克服早期制造阶段存在的较小且不平衡数据集的问题。1. The present invention utilizes a non-negativity constrained sparse autoencoder (FFSAE) and a group-based graphical model and kernel norm image denoising method (GNN) to realize automatic and effective detection of electronic circuit defect types. By using an image sensor (industrial camera) to capture images of electronic circuits, use these images to train a deep autoencoder model, and decode the original non-defective image from the defective circuit image, and then compare the decoded circuit image with the input circuit image , so as to determine the defect location and realize the effective detection of circuit defects. Therefore, the method does not require prior knowledge of the defect type or the normal/defective evaluation criteria of the expert system, which can overcome the problem of small and unbalanced datasets in the early manufacturing stage.

2、本发明通过适当的预处理过程,可以设计出适合训练的数据集,从而提高分类模型的性能。完成对电路图像的裁剪、增强等预处理技术,并采用基于组的图模型及核规范方法(GNN)对图像进行去噪。该方法通过优化学习策略来获得图像的拉普拉斯图矩阵,拉普拉斯矩阵封装了数据矩阵的图结构,因而可以反映图像的拓扑结构,从而保证其在图像平滑及去噪方面具有良好的应用效果,进一步有效提高电路图像的质量,保证建立更为完善的缺陷数据集。本发明采用非负性约束稀疏自动编码器(FFSAE)提取缺陷区域。FFSAE算法强调神经元权重为非负值,将输入编码转换为低维空间的编码形式,并通过解码对原始数据进行重建。该方法允许从未标记数据中提取有用特征,可以通过潜在向量扩展再现原始输入数据,基于神经元的权重的非负值特点,FFSAE算法可以提高识别网络运行的可解释性,能增强所学特征的可辨别性,进一步地,可以提高电子电路缺陷识别的可靠性和精度。2. The present invention can design a data set suitable for training through an appropriate preprocessing process, thereby improving the performance of the classification model. Complete the preprocessing techniques such as cropping and enhancement of the circuit image, and use the group-based graph model and the kernel norm method (GNN) to denoise the image. This method obtains the Laplacian graph matrix of the image by optimizing the learning strategy. The Laplacian matrix encapsulates the graph structure of the data matrix, so it can reflect the topological structure of the image, thereby ensuring its good performance in image smoothing and denoising. The application effect can further effectively improve the quality of the circuit image and ensure the establishment of a more complete defect data set. The invention uses a non-negativity constrained sparse autoencoder (FFSAE) to extract defect regions. The FFSAE algorithm emphasizes that the weight of neurons is non-negative, converts the input code into a coded form of low-dimensional space, and reconstructs the original data through decoding. This method allows to extract useful features from unlabeled data, and can reproduce the original input data through latent vector expansion. Based on the non-negative value characteristics of neuron weights, the FFSAE algorithm can improve the interpretability of the recognition network operation and enhance the learned features. Further, the reliability and accuracy of electronic circuit defect identification can be improved.

附图说明Description of drawings

图1是基于非负性约束稀疏自编码器(FFSAE)的电子电路缺陷检测方法处理过程;Fig. 1 is the processing process of the electronic circuit defect detection method based on non-negativity constrained sparse autoencoder (FFSAE);

图2是真缺陷图像;Figure 2 is a true defect image;

图3是伪缺陷图像;Figure 3 is a pseudo-defect image;

图4是基于组的图模型及核规范方法(GNN)的电子电路图像去噪过程;Fig. 4 is the electronic circuit image denoising process based on the graphical model of the group and the kernel specification method (GNN);

图5是基于组的图模型及核规范的图像去噪过程;Fig. 5 is the image denoising process based on the graphical model of the group and the kernel specification;

图6是自动编码器在图像去噪恢复应用中的结构;Fig. 6 is the structure of automatic encoder in image denoising restoration application;

图7是标准自编码器结构;Figure 7 is a standard autoencoder structure;

图8是基于FFSAE的电路缺陷检测实验结果图像。Fig. 8 is an image of the experimental result of circuit defect detection based on FFSAE.

具体实施方式Detailed ways

为了更好解释本发明,以便于理解,下面对本发明的技术方案作详细描述。以下实施例是对本发明的解释,而本发明并不局限于以下实施例。In order to better explain the present invention and facilitate understanding, the technical solutions of the present invention are described in detail below. The following examples are for explanation of the present invention, but the present invention is not limited to the following examples.

本发明提出一种基于非负性约束稀疏自编码器(FFSAE)的电子电路缺陷检测方法。电子电路缺陷检测过程有两个主要目的,其一是对电子电路缺陷数据集进行预处理。由于训练数据量决定了缺陷检测分类模型的性能,因此,通过适当的预处理过程,可以设计出适合训练的数据集,从而提高分类模型的性能。针对这个问题,本专利完成对电路图像的裁剪、增强等预处理技术,并采用基于组的图模型及核规范方法(GNN)对图像进行去噪。该方法通过优化学习策略来获得图像的拉普拉斯图矩阵,拉普拉斯矩阵封装了数据矩阵的图结构,因而可以反映图像的拓扑结构,从而保证其在图像平滑及去噪方面具有良好的应用效果,进一步有效提高电路图像的质量,保证建立更为完善的缺陷数据集。其二是提取缺陷区域并对其进行正确识别。本专利采用非负性约束稀疏自动编码器(FFSAE)提取缺陷区域。FFSAE算法强调神经元权重为非负值,将输入编码转换为低维空间的编码形式,并通过解码对原始数据进行重建。该方法允许从未标记数据中提取有用特征,可以通过潜在向量扩展再现原始输入数据,基于神经元的权重的非负值特点,FFSAE算法可以提高识别网络运行的可解释性,能增强所学特征的可辨别性,进一步地,可以提高的电子电路缺陷识别的可靠性和精度。The invention proposes an electronic circuit defect detection method based on a non-negativity constrained sparse autoencoder (FFSAE). The electronic circuit defect detection process has two main purposes, one is to preprocess the electronic circuit defect dataset. Since the amount of training data determines the performance of the defect detection classification model, through an appropriate preprocessing process, a data set suitable for training can be designed to improve the performance of the classification model. In response to this problem, this patent completes preprocessing technologies such as cropping and enhancement of circuit images, and uses a group-based graphical model and kernel norm method (GNN) to denoise the image. This method obtains the Laplacian graph matrix of the image by optimizing the learning strategy. The Laplacian matrix encapsulates the graph structure of the data matrix, so it can reflect the topological structure of the image, thereby ensuring its good performance in image smoothing and denoising. The application effect can further effectively improve the quality of the circuit image and ensure the establishment of a more complete defect data set. The second is to extract defect regions and correctly identify them. This patent uses a non-negativity constrained sparse autoencoder (FFSAE) to extract defect regions. The FFSAE algorithm emphasizes that the weight of neurons is non-negative, converts the input code into a coded form of low-dimensional space, and reconstructs the original data through decoding. This method allows to extract useful features from unlabeled data, and can reproduce the original input data through latent vector expansion. Based on the non-negative value characteristics of neuron weights, the FFSAE algorithm can improve the interpretability of the recognition network operation and enhance the learned features. The discriminability, further, can improve the reliability and accuracy of electronic circuit defect identification.

整个电子电路缺陷检测处理过程主要包括模型训练阶段和缺陷识别阶段。在模型训练阶段,首先对图像进行预处理,通过对图像的剪裁操作,将原始电子电路图像分割成大小为500×500像素的补丁图像,然后对各图像进行噪声抑制处理,采用基于组的图模型及核规范方法(GNN)来完成对图像的噪声抑制,用以提高原始电子电路图像数据集的质量。接下来,将去噪后的电子电路图像进行数据增强。在数据增强模块中,通过对缺陷补丁图像进行随机旋转、翻转以及加入噪声等操作来完成对图像数据集的增强,用以有效克服由于数据不足造成数据类不平衡的问题。最后,利于增强后的补丁图像来训练非负约束稀疏自编码器模型(FFSAE),用以预测输入的非缺陷补丁图像。在模型训练成功后,即可进入电子电路缺陷的识别阶段。将检测用缺陷电子电路图像送入已经训练成功的模型中,一旦从经过训练的模型从缺陷电子电路图像中预测出高质量的图像,再将该预测图像减去缺陷输入图像,即可生成缺陷检测图。最后通过对缺陷检测图阈值进行适当设置,从而突出显示缺陷位置,完成对缺陷的有效且直观的识别。The entire electronic circuit defect detection process mainly includes the model training stage and the defect identification stage. In the model training stage, the image is firstly preprocessed, and the original electronic circuit image is divided into patch images with a size of 500×500 pixels through the image clipping operation, and then the noise suppression processing is performed on each image, and the group-based graph is adopted. Model and kernel norm method (GNN) to complete the image noise suppression to improve the quality of the original electronic circuit image dataset. Next, data augmentation is performed on the denoised electronic circuit image. In the data enhancement module, the enhancement of the image data set is completed by randomly rotating, flipping, and adding noise to the defect patch image to effectively overcome the problem of data class imbalance due to insufficient data. Finally, the enhanced patch image is used to train a non-negative constrained sparse autoencoder model (FFSAE) to predict the input non-defective patch image. After the model is trained successfully, it can enter the identification stage of electronic circuit defects. Send the defective electronic circuit image for detection into the model that has been successfully trained. Once a high-quality image is predicted from the defective electronic circuit image from the trained model, the defect input image can be subtracted from the predicted image to generate a defect Detection map. Finally, by properly setting the threshold of the defect detection map, the position of the defect is highlighted, and the effective and intuitive identification of the defect is completed.

图1所示为本发明实施例中的所提出的基于非负性约束稀疏自编码器(FFSAE)的电子电路缺陷检测方法处理过程,结合图1,本发明公开的一种基于非负性约束稀疏自编码器(FFSAE)的电子电路缺陷检测方法具体包括以下步骤:Fig. 1 shows the processing process of the proposed electronic circuit defect detection method based on non-negativity constrained sparse autoencoder (FFSAE) in the embodiment of the present invention. In conjunction with Fig. 1, a non-negativity constraint-based The electronic circuit defect detection method of the sparse self-encoder (FFSAE) specifically includes the following steps:

步骤1,实现对电子电路缺陷图像的预处理。具体步骤如下:Step 1, realize the preprocessing of the electronic circuit defect image. Specific steps are as follows:

步骤(1)a:采集、剪裁电子电路图像,确定电子电路缺陷数据集Step (1)a: Collect and crop the electronic circuit image, and determine the electronic circuit defect data set

为验证电子电路缺陷检测方法的有效性,需要创建电子电路缺陷图像数据集。实施中,采集十种参考电子电路图像数据集,每个数据集都由配备CMOS传感器的百万像素高清工业摄像头来采集。原始图像为4608*3456像素,数据集包含600个电子电路板缺陷图像,具体又可以分为彩色图像和灰度图像。由于工业级摄像机采集的电子电路图像为高分辨率图像,处理这些图像的数据量众多,处理的计算量非常大,从而会导致训练分类模型的处理时间较长。为提高其计算能力,在预处理中,根据每个电子电路大小进行调整,对电子电路图像进行剪裁,缺陷区域被裁剪成尺寸为500×500的补丁图像。In order to verify the effectiveness of the electronic circuit defect detection method, it is necessary to create an electronic circuit defect image dataset. In the implementation, ten reference electronic circuit image data sets were collected, each data set was captured by a megapixel high-definition industrial camera equipped with a CMOS sensor. The original image is 4608*3456 pixels, and the data set contains 600 electronic circuit board defect images, which can be divided into color images and grayscale images. Since the electronic circuit images collected by industrial-grade cameras are high-resolution images, the amount of data to process these images is large, and the amount of calculation for processing is very large, which will result in a long processing time for training the classification model. In order to improve its computing power, in the preprocessing, the size of each electronic circuit is adjusted, and the electronic circuit image is cropped, and the defect area is cropped into a patch image with a size of 500×500.

步骤(1)b:确定电子电路缺陷类型Step (1)b: Determine the type of electronic circuit defect

在采集电子电路图像后,需要对缺陷图像进行人工处理,确定电子电路板中存在的缺陷类型。实施中,设定两种缺陷,一种是真缺陷,另一种是伪缺陷。其中,真缺陷真是由于引线形状改变而引起的缺陷,真缺陷图像如图3,具体又设定为断开缺陷(参见图2(a))、连接缺陷(参见图2(b))、突出缺陷(参见图2(c))和裂纹缺陷(参见图2(d))。伪缺陷的特点是只有颜色变化,而引线及基础部件的形状特征不变,伪缺陷定义图像如图3,具体分为氧化缺陷(参见图3(a))和灰尘缺陷(参见图3(b))。After the electronic circuit image is collected, it is necessary to manually process the defect image to determine the type of defect existing in the electronic circuit board. In implementation, two kinds of defects are set, one is true defect and the other is false defect. Among them, the true defect is really a defect caused by the change of the shape of the lead wire. The image of the true defect is shown in Figure 3, and it is specifically set to be a disconnection defect (see Figure 2(a)), a connection defect (see Figure 2(b)), and a protruding defect. defects (see Figure 2(c)) and crack defects (see Figure 2(d)). Pseudo-defects are characterized by only color changes, while the shape characteristics of leads and basic components remain unchanged. The definition image of pseudo-defects is shown in Figure 3, which is specifically divided into oxidation defects (see Figure 3(a)) and dust defects (see Figure 3(b) )).

步骤(1)c:完成图像数据增强及特征选取Step (1)c: Complete image data enhancement and feature selection

通常,训练深层分类算法需要大规模的训练数据。然而,在电子电路制造过程中,产生电路缺陷的几率通常很小,并且,在电子电路批量生产中,缺陷的类型也会发生变化。这种数据的不平衡是限制电子电路缺陷检测系统应用的一个基本问题,如果将这些不平衡数据应用于深度缺陷检测模型,会导致过拟合和性能下降等问题,为了避免这些问题,我们应用数据增强来补充少量缺陷数据,从而改进模型性能。考虑到增强图像的冗余性,应用几何变换和加入噪声的方式来完成数据增强。几何变换是有效使用形状、方向或零件特征位置的方法,应用随机旋转的方式来克服图像数据的位置偏差。加入噪声是对原始图像添加噪声,将具有噪声分布的随机矩阵与原始数据相乘。通过以上数据增强技术,可以帮助分类模型学习更多的鲁棒性特征。Typically, training deep classification algorithms requires large-scale training data. However, in the manufacturing process of electronic circuits, the probability of circuit defects is usually very small, and, in the mass production of electronic circuits, the types of defects will also change. This data imbalance is a basic problem that limits the application of electronic circuit defect detection systems. If these imbalanced data are applied to deep defect detection models, it will lead to problems such as overfitting and performance degradation. In order to avoid these problems, we apply Data augmentation to supplement small amounts of defective data to improve model performance. Considering the redundancy of the enhanced image, the data enhancement is completed by applying geometric transformation and adding noise. Geometric transformations are methods that effectively use shape, orientation, or position of part features, applying random rotations to overcome positional deviations in image data. Adding noise is adding noise to the original image, multiplying a random matrix with noise distribution with the original data. Through the above data enhancement techniques, it can help the classification model to learn more robust features.

在预处理后,需要从缺陷候选区域提取图像特征,并送入非负约束自编码器(FFSAE)中进行学习和分类。实施中,确定特征参数分别为颜色信息和形状信息。其中,第一种为颜色信息,共30种,分别从RGB、HSV颜色模型中进行提取以下特征,分别为(1)最大值,(2)最小值,(3)平均值,(4)比例高值,(5)引线区域与候选区域和引线的比率,(6)基础部件与候选部件的比率,(7)数值重心与最大值之间的位置差,(8)方差,(9)标准偏差,(10)峰度,(11)偏斜度,(12)熵,(13)最大值和最小值之间的差值,(14)中值,(15)测试图像和参考图像之间的相关性。第二种为形状信息,共包括8种类型,包括(1)面积,(2)周长,(3)x方向尺寸,(4)y方向尺寸,(5)纵横比,(6)对角线长度,(7)复杂性,(8)圆度。After preprocessing, image features need to be extracted from defect candidate regions, and sent to non-negative constrained autoencoder (FFSAE) for learning and classification. In implementation, the determined feature parameters are color information and shape information respectively. Among them, the first one is color information, a total of 30 kinds, the following features are extracted from the RGB and HSV color models, respectively (1) maximum value, (2) minimum value, (3) average value, (4) ratio High value, (5) ratio of lead area to candidate area and lead, (6) ratio of base part to candidate part, (7) position difference between numerical center of gravity and maximum value, (8) variance, (9) standard Bias, (10) kurtosis, (11) skewness, (12) entropy, (13) difference between maximum and minimum, (14) median, (15) between test image and reference image relevance. The second is shape information, including 8 types in total, including (1) area, (2) perimeter, (3) x-direction size, (4) y-direction size, (5) aspect ratio, (6) diagonal Line length, (7) complexity, (8) roundness.

步骤(2),完成基于组的图模型及核规范方法(GNN)的电子电路图像去噪。In step (2), the electronic circuit image denoising based on the group graph model and the kernel norm method (GNN) is completed.

图像去噪中,提出基于组的图模型及核规范的图像去噪方法(GNN)。首先,利用分组采样的方式,将原始带噪图像转换为补丁图像向量,再利用GNN对其进行处理。构造基于分组的对偶图及核规范优化公式,利用KNN算法搜索相似的补丁,即通过将每个带噪声补丁图像进行块匹配,搜索获得与原始图像相似的m个补丁图像,最后将所有相似的补丁图像堆叠起来构建基于组的图模型。在构建分组的图模型中,提出拉普拉斯矩阵图策略,先通过优化公式来建立学习策略,再利用优化学习策略获得拉普拉斯图矩阵。拉普拉斯加权矩阵图将数据矩阵中的每个像素视为一个节点,探索补丁图像像素间的相似性,因此,可以反映图像的拓扑结构,实现对图像的有效平滑,进一步增强电子电路图像的去噪平滑效果。In image denoising, an image denoising method based on group graph model and kernel specification (GNN) is proposed. First, the original noisy image is converted into a patch image vector by group sampling, and then processed by GNN. Construct a group-based dual graph and kernel norm optimization formula, use the KNN algorithm to search for similar patches, that is, search for m patch images similar to the original image by performing block matching on each noisy patch image, and finally combine all similar patches Patch images are stacked to build a group-based graph model. In constructing the grouped graph model, a Laplacian matrix graph strategy is proposed. Firstly, the learning strategy is established by optimizing the formula, and then the Laplacian graph matrix is obtained by using the optimized learning strategy. The Laplacian weighted matrix graph regards each pixel in the data matrix as a node, and explores the similarity between pixels in the patch image. Therefore, it can reflect the topological structure of the image, achieve effective smoothing of the image, and further enhance the electronic circuit image denoising smoothing effect.

如图4是基于组的图模型及核规范方法(GNN)的电子电路图像去噪过程,具体步骤如下:As shown in Figure 4, the electronic circuit image denoising process based on the group graph model and the kernel norm method (GNN), the specific steps are as follows:

步骤(2)a:利用拉普拉斯矩阵L表征采集的补丁图像Step (2)a: Use the Laplacian matrix L to characterize the collected patch image

(1)根据图像数据获得加权相邻矩阵W(1) Obtain the weighted adjacency matrix W according to the image data

一个无向加权图可以用G=(V,E,W)表示。其中,V是一个由N个顶点组成的顶点集,E是由多个V×N加权边缘组成的边缘集合,W是加权相邻矩阵。加权相邻矩阵W反映了顶点vi和vj之间的相似性,一般来说,无向加权的加权邻接矩阵W图是非负的,并且具有相等的对角元素,即Wij=wji,Wij≥0。An undirected weighted graph can be represented by G=(V, E, W). Among them, V is a vertex set composed of N vertices, E is an edge set composed of multiple V×N weighted edges, and W is a weighted adjacency matrix. The weighted adjacency matrix W reflects the similarity between vertices v i and v j , in general, the undirected weighted weighted adjacency matrix W graph is non-negative and has equal diagonal elements, i.e. W ij = w ji , W ij ≥0.

基于此,利用阈值高斯内核构成边缘的权重矩阵W,具体如下:Based on this, the threshold Gaussian kernel is used to form the weight matrix W of the edge, as follows:

Figure BDA0003937225330000121
Figure BDA0003937225330000121

其中,

Figure BDA0003937225330000122
是在图像顶点vi和vj之间的欧几里得距离,σ是控制权重随距离增加而衰减的速度控制参数,ε是阈值参数,代表ε-邻域图。in,
Figure BDA0003937225330000122
is the Euclidean distance between image vertices v i and v j , σ is a speed control parameter that controls weight decay with increasing distance, and ε is a threshold parameter, representing the ε-neighborhood graph.

(2)获取由拉普拉斯矩阵表示的图像L(2) Obtain the image L represented by the Laplacian matrix

拉普拉斯矩阵L在描述图数据特征中起着至关重要的作用。L封装了数据矩阵的图结构。在无向加权图中,L的计算方式是由W决定的,具体如下:The Laplacian matrix L plays a crucial role in describing the characteristics of graph data. L encapsulates the graph structure of the data matrix. In an undirected weighted graph, the calculation method of L is determined by W, as follows:

L=Δ-W (2)L=Δ-W (2)

其中,Δ是对角矩阵,满足方程Δii=∑jWijWherein, Δ is a diagonal matrix, which satisfies the equation Δ ii =∑ j W ij .

步骤(2)b:建立基于分组的图模型及核规范的组合优化公式Step (2)b: Establish a grouping-based graphical model and a combined optimization formula for kernel norms

(1)构建基本优化公式(1) Construct the basic optimization formula

Figure BDA0003937225330000123
是与拉普拉斯矩阵关联的正则化项。则基于图像去噪的基本优化公式如下:set up
Figure BDA0003937225330000123
is the regularization term associated with the Laplacian matrix. The basic optimization formula based on image denoising is as follows:

Figure BDA0003937225330000124
Figure BDA0003937225330000124

其中,x和y都是代表图像块的n×1的向量,L是n×n的拉普拉斯矩阵,θ是正则化参数。Among them, both x and y are n×1 vectors representing image blocks, L is an n×n Laplacian matrix, and θ is a regularization parameter.

(2)构造基于分组对偶图的优化公式(2) Construct an optimization formula based on grouped dual graph

为了构造对偶图,传统的方法是将每个数据矩阵Xm×n视为n维度的列向量X=(x1,…,xn)或m维度的行向量X=((x′1)T,…,(x′m)T)T。因此,矩阵中的每一个向量(每一列或每一行)都被看做是计算加权相邻矩阵W的一个节点。则加权相邻矩阵Wm×m的行的欧几里得距离函数为

Figure BDA0003937225330000131
列的欧几里得距离函数为
Figure BDA0003937225330000132
因此,利用Wm×m和Wn×n可以获得行拉普拉斯矩阵Lr和列拉普拉斯矩阵Lc。In order to construct a dual graph, the traditional method is to regard each data matrix X m×n as an n-dimensional column vector X=(x 1 ,…,x n ) or an m-dimensional row vector X=((x′ 1 ) T ,...,(x′ m ) T ) T . Therefore, each vector (each column or each row) in the matrix is regarded as a node for computing the weighted adjacency matrix W. Then the Euclidean distance function of the rows of the weighted adjacency matrix W m×m is
Figure BDA0003937225330000131
The Euclidean distance function for a column is
Figure BDA0003937225330000132
Therefore, a row Laplacian matrix L r and a column Laplacian matrix L c can be obtained using W m×m and W n×n .

考虑到各组是一个矩阵,即构造包括行图和列图的对偶图Tm×n,则定义对偶图模型的优化表达式如下:Considering that each group is a matrix, that is, to construct a dual graph T m×n including row graphs and column graphs, the optimal expression for defining the dual graph model is as follows:

Figure BDA0003937225330000133
Figure BDA0003937225330000133

其中,X和Y是m×n的图像行列数据矩阵,θr和θc是正则化控制参数,用来确定正则化项的影响程度,即行图

Figure BDA0003937225330000134
和列图
Figure BDA0003937225330000135
Among them, X and Y are m×n image row and column data matrices, θ r and θ c are regularization control parameters, which are used to determine the degree of influence of the regularization term, that is, the row map
Figure BDA0003937225330000134
and column diagram
Figure BDA0003937225330000135

Figure BDA0003937225330000136
是基于组的行图正则化项,利用位于所有相似补丁图像的同一位置的像素强度的相似性来定义,具体为:
Figure BDA0003937225330000136
is a group-based line graph regularization term, defined by the similarity of pixel intensities located at the same location in all similar patch images, specifically:

Figure BDA0003937225330000137
Figure BDA0003937225330000137

Figure BDA0003937225330000138
是基于组的列图正则化项,利用位于每一个补丁图像对应所有位置的像素强度的相似性来定义,具体为:
Figure BDA0003937225330000138
is a group-based column map regularization term, defined by the similarity of pixel intensities at all locations corresponding to each patch image, specifically:

Figure BDA0003937225330000139
Figure BDA0003937225330000139

Lr和Lc分别是行拉普拉斯矩阵和列拉普拉斯阵。L r and L c are row Laplacian matrices and column Laplacian matrices, respectively.

(3)构造核规范的优化公式(3) The optimization formula for constructing the core specification

考虑到分组图像强的低秩性质,进一步引入了低阶优化处理。对低秩数据矩阵X的常规替换称为核规范或跟踪规范||X||*,具体定义如下:Considering the strong low-rank nature of grouped images, a low-order optimization process is further introduced. The conventional replacement for low-rank data matrix X is called kernel norm or trace norm ||X|| * , which is defined as follows:

||X||*=tr((XXT)1/2)=∑kσk (7)||X|| * =tr((XX T ) 1/2 )=∑ k σ k (7)

其中,σk是X的奇异值。Among them, σ k is the singular value of X.

(4)构造基于分组的图模型及核规范的组合优化公式(4) Construct a group-based graphical model and a combined optimization formula for core norms

具体定义如下:The specific definition is as follows:

Figure BDA0003937225330000141
Figure BDA0003937225330000141

其中,θn、θr和θc是核范数、行图和列图的控制参数。在(7)式子中,正则化项反映了非局部自相似性,核规范反映了可以使用大量信息图像的低秩特性。Among them, θ n , θ r and θ c are the control parameters of kernel norm, row plot and column plot. In (7), the regularization term reflects the non-local self-similarity, and the kernel norm reflects the low-rank properties of images that can use a lot of information.

步骤(2)c:利用KNN算法进行优化处理求解,具体步骤如下:Step (2)c: use the KNN algorithm to optimize the solution, the specific steps are as follows:

(1)计算当前补丁图像与所有补丁图像之间的优化公式取值;(1) Calculate the value of the optimization formula between the current patch image and all patch images;

(2)按照优化值升序排列;(2) Arranged in ascending order according to the optimized value;

(3)选取优化值最邻近的K个补丁图像;(3) Select the K patch images closest to the optimized value;

(4)统计K个补丁图像所在类别出现的频率,将K个补丁图像中出现频率最高的类别作为去噪后的结果图像。(4) Count the occurrence frequencies of the categories of the K patch images, and use the category with the highest frequency among the K patch images as the denoised result image.

如图5是基于组的图模型及核规范的图像去噪过程。Figure 5 is the image denoising process based on the group graph model and kernel specification.

步骤(3),实现基于非负性约束稀疏自编码器(FFSAE)的深度学习模型,并将其用于缺陷区域的提取。In step (3), implement a deep learning model based on non-negativity constrained sparse autoencoder (FFSAE), and use it to extract defect regions.

自动编码器是一种旨在将输入编码变为低维空间的编码形式,可以通过解码器对原始数据进行重建。该方法允许从未标记数据中提取有用特征,能通过潜在向量扩展再现原始输入数据。通常用于数据压缩,去噪、异常检测、图像恢复等方面。An autoencoder is a form of encoding that aims to transform an input encoding into a low-dimensional space that can be reconstructed from the original data by a decoder. The method allows extracting useful features from unlabeled data, which reproduces the original input data through latent vector expansion. It is usually used in data compression, denoising, anomaly detection, image restoration, etc.

图6是自动编码器在图像去噪恢复应用中的结构。Figure 6 is the structure of the autoencoder in the application of image denoising and restoration.

自动编码器网络是一种无监督的学习算法。本质上,自动编码器学习函数MW,b(X)≈X,换句话说,通过学习特征函数的估计值,可以获得与X类似的

Figure BDA0003937225330000142
在具体实现时,自动编码器通过强制隐藏单元数量小于输入维度,从而可以保证网络学习输入数据的压缩特征,利用该压缩特征即可发现输入数据中的特征结构。标准自编码器由编码器和解码器两部分组成。Autoencoder networks are an unsupervised learning algorithm. Essentially, the autoencoder learns the function M W, b(X) ≈ X, in other words, by learning the estimated value of the feature function, it is possible to obtain a function similar to X
Figure BDA0003937225330000142
In the specific implementation, the autoencoder can ensure that the network learns the compressed features of the input data by forcing the number of hidden units to be smaller than the input dimension, and the feature structure in the input data can be discovered by using the compressed features. A standard autoencoder consists of two parts: an encoder and a decoder.

图7是标准自编码器结构,在本专利实施中,提出非负性约束稀疏自动编码器(FFSAE),用以提取缺陷区域并对其进行正确识别。FFSAE算法强调神经元权重为非负值,将输入编码转换为低维空间的编码形式,并通过解码对原始数据进行重建。该方法允许从未标记数据中提取有用特征,可以通过潜在向量扩展再现原始输入数据,基于神经元的权重的非负值特点,FFSAE算法可以提高识别网络运行的可解释性,能增强所学特征的可辨别性,进一步地,可以提高的电子电路缺陷识别的可靠性和精度。FFSAE算法具体实现过程如下:Figure 7 is a standard autoencoder structure. In the implementation of this patent, a non-negativity constrained sparse autoencoder (FFSAE) is proposed to extract defect regions and correctly identify them. The FFSAE algorithm emphasizes that the weight of neurons is non-negative, converts the input code into a coded form of low-dimensional space, and reconstructs the original data through decoding. This method allows to extract useful features from unlabeled data, and can reproduce the original input data through latent vector expansion. Based on the non-negative value characteristics of neuron weights, the FFSAE algorithm can improve the interpretability of the recognition network operation and enhance the learned features. The discriminability, further, can improve the reliability and accuracy of electronic circuit defect identification. The specific implementation process of the FFSAE algorithm is as follows:

步骤(3)a:利用编码器对输入数据进行编码Step (3)a: Encode the input data with the encoder

首先,利用一组编码器θE={WE,bE}将输入数据转换为“压缩”表示的图像特征。编码器可以理解为非线性变换函数:E():Rd→Rs(d>s),通过公式(9)将输入信号Xm∈Rd变换为隐层特征向量hm∈RsFirst, the input data is converted into a "compressed" representation of image features using a set of encoders θ E = {W E , b E }. The encoder can be understood as a nonlinear transformation function: E(): R d → R s (d>s), transforming the input signal X m ∈ R d into the hidden layer feature vector h m ∈ R s by formula (9):

hm=E(Xm,θE)=sigm(WEXE+bE) (9)h m =E(X m , θ E )=sigm(W E X E +b E ) (9)

其中,θE表示由权重矩阵WE和偏置向量bE组成的编码器参数。Among them, θ E represents the encoder parameters composed of weight matrix W E and bias vector b E.

步骤(3)b:定义成本函数ηAE(W,b)Step (3)b: Define the cost function η AE (W,b)

自编码器的本质是学习处于隐层的图像压缩特性,利用所有训练样本中的最小平均误差来重构输入。由此,将所有训练样本的平均重建误差定义为成本函数ηAE(W,b),同时,增加权重衰减惩罚项α,用以将过拟合风险降至最低,提高算法泛化能力。具体定义如式(10):The essence of the autoencoder is to learn the image compression characteristics in the hidden layer, and use the minimum average error in all training samples to reconstruct the input. Therefore, the average reconstruction error of all training samples is defined as the cost function η AE (W, b), and at the same time, the weight decay penalty term α is added to minimize the risk of overfitting and improve the generalization ability of the algorithm. The specific definition is as formula (10):

Figure BDA0003937225330000151
Figure BDA0003937225330000151

其中,W={WE,WD},b={bE,bD},M是训练样本数量,α为控制减小权重的正规化惩罚项。Among them, W={W E , W D }, b={b E , b D }, M is the number of training samples, and α is the regularization penalty item that controls the weight reduction.

步骤(3)c:建立稀疏自动编码器Step (3)c: Build a sparse autoencoder

(1)求解隐层单元的平均激活值

Figure BDA0003937225330000152
(1) Solve the average activation value of the hidden layer unit
Figure BDA0003937225330000152

通过将稀疏性强加于自动编码器的隐层单元可以构建稀疏自编码器,稀疏自编码器期望每个隐层单元的平均激活值接近于零。设[hm]j为与Xm相关的第j个隐藏单元的激活值,则第j个隐层单元在整个训练集上平均激活值计算如式子(11):Sparse autoencoders can be constructed by imposing sparsity on the hidden layer units of the autoencoder, and the sparse autoencoder expects the average activation value of each hidden layer unit to be close to zero. Let [h m ] j be the activation value of the jth hidden unit related to X m , then the average activation value of the jth hidden layer unit on the entire training set is calculated as formula (11):

Figure BDA0003937225330000153
Figure BDA0003937225330000153

(2)定义惩罚项

Figure BDA0003937225330000154
(2) Define the penalty item
Figure BDA0003937225330000154

稀疏自编码器的稀疏性约束由

Figure BDA0003937225330000161
强制执行。其中,ε为预定义的稀疏性参数,通常为接近0的较小值(例如0.05)。为了满足稀疏性约束,隐层单位的激活必须大多接近于零。为实现这一点,增加一个额外的惩罚项,用以惩罚明显偏离ε的
Figure BDA0003937225330000162
的情况,惩罚项定义为Kullback-Leibler(KL)散度,如(12)式所示:The sparsity constraint of sparse autoencoders is given by
Figure BDA0003937225330000161
enforced. Wherein, ε is a predefined sparsity parameter, usually a small value close to 0 (for example, 0.05). To satisfy the sparsity constraint, the activations of hidden units must be mostly close to zero. To achieve this, an additional penalty term is added to penalize significant deviations from ε
Figure BDA0003937225330000162
In the case of , the penalty term is defined as the Kullback-Leibler (KL) divergence, as shown in formula (12):

Figure BDA0003937225330000163
Figure BDA0003937225330000163

其中,

Figure BDA0003937225330000164
是隐单元的平均激活向量,s是隐藏单元数。
Figure BDA0003937225330000165
是用于测量两个分布之间差异的标准函数。in,
Figure BDA0003937225330000164
is the average activation vector of hidden units, and s is the number of hidden units.
Figure BDA0003937225330000165
is the standard function used to measure the difference between two distributions.

可见,当

Figure BDA0003937225330000166
时,
Figure BDA0003937225330000167
可以达到最小的0值,且当
Figure BDA0003937225330000168
向上偏离ε时,会导致其无效,因此,最小化此惩罚项可以使得
Figure BDA0003937225330000169
接近于ε。Visible, when
Figure BDA0003937225330000166
hour,
Figure BDA0003937225330000167
can reach the smallest value of 0, and when
Figure BDA0003937225330000168
Deviates upward from ε, making it invalid, so minimizing this penalty makes
Figure BDA0003937225330000169
close to ε.

(3)定义稀疏成本函数ηSAE(W,b)(3) Define the sparse cost function η SAE (W, b)

稀疏自编码器的训练目标优化函数是最小化等式(10)中的平均重建误差ηAE(W,b)及等式(12)中的稀疏性惩罚项

Figure BDA00039372253300001610
由此,稀疏成本函数ηSAE(W,b)定义为(13)式:The training objective optimization function for sparse autoencoders is to minimize the average reconstruction error η AE (W,b) in Equation (10) and the sparsity penalty in Equation (12)
Figure BDA00039372253300001610
Thus, the sparse cost function η SAE (W, b) is defined as (13) formula:

Figure BDA00039372253300001611
Figure BDA00039372253300001611

其中,β是用来控制稀疏性惩罚项的权重。可见,由于ε表示所有隐单元的平均激活,而隐单元的激活取决于参数{W,b},因此,ε项也依赖于{W,b}。where β is the weight used to control the sparsity penalty. It can be seen that since ε represents the average activation of all hidden units, and the activation of hidden units depends on the parameters {W, b}, therefore, the ε term also depends on {W, b}.

步骤(3)d:建立非负约束标准自动编码器(FFSAE)的成本函数ηFFSAE(W,b)Step (3)d: Establish the cost function η FFSAE (W,b) of the non-negative constrained standard autoencoder (FFSAE)

当强化神经元的权重为非负值时,可以提高网络运行的可解释性,还可以增强所学特征的可辨别性。因此,我们提出非负约束自编码器(FFSAE),为了实现权重的非负性,修改式(13)中的成本函数为ηFFSAE(W,b),具体如式(14):When the weights of reinforced neurons are non-negative, the interpretability of network operation can be improved, and the discriminability of learned features can also be enhanced. Therefore, we propose a non-negative constrained autoencoder (FFSAE). In order to realize the non-negativity of the weights, the cost function in the modified formula (13) is η FFSAE (W, b), as shown in the formula (14):

Figure BDA0003937225330000171
Figure BDA0003937225330000171

其中,

Figure BDA0003937225330000172
in,
Figure BDA0003937225330000172

FFSAE训练的目标是将ηFFSAE(W,b)最小化,并作为W和b的函数。根据公式(15),分配给负权重的惩罚值为对应项的平方值,而分配给非负值权重均为0。因此,最小化成本函数ηFFSAE(W,b)可以更好地减少负权重的数量。另外,作为非负约束自编码器(FFSAE)的正规化项的ηFFSAE(W,b),方程(14)将同时具有减少重建误差,鼓励学习稀疏特征的特点,还可以减少非负权重的数量。The goal of FFSAE training is to minimize η FFSAE (W,b) as a function of W and b. According to formula (15), the penalty value assigned to negative weights is the square value of the corresponding item, while the weights assigned to non-negative values are all 0. Therefore, minimizing the cost function η FFSAE (W,b) can better reduce the number of negative weights. In addition, as the regularization term η FFSAE (W,b) of the non-negative constrained autoencoder (FFSAE), Equation (14) will simultaneously reduce the reconstruction error, encourage the learning of sparse features, and reduce the non-negative weight. quantity.

步骤(3)e:利用梯度下降方法更新

Figure BDA0003937225330000173
Figure BDA0003937225330000174
Step (3)e: Utilize the gradient descent method to update
Figure BDA0003937225330000173
and
Figure BDA0003937225330000174

为了完成以上优化的目标,首先初始化参数

Figure BDA0003937225330000175
Figure BDA0003937225330000176
为接近零的随机值,然后应用梯度下降优化算法进行训练,在每次迭代中更新参数
Figure BDA0003937225330000177
Figure BDA0003937225330000178
具体如(16)、(17)式:In order to achieve the above optimization goals, first initialize the parameters
Figure BDA0003937225330000175
and
Figure BDA0003937225330000176
is a random value close to zero, and then applies the gradient descent optimization algorithm for training, updating the parameters in each iteration
Figure BDA0003937225330000177
and
Figure BDA0003937225330000178
Specifically, such as formulas (16) and (17):

Figure BDA0003937225330000179
Figure BDA0003937225330000179

Figure BDA00039372253300001710
Figure BDA00039372253300001710

其中,λ>0是学习率。Among them, λ>0 is the learning rate.

步骤(3)f:利用解码器来重建输入信号Step (3)f: Use the decoder to reconstruct the input signal

利用解码器θD={WD,bD}来反向恢复隐藏特征,从而重建输入信号。具体实现时,通过解码器D():Rs→Rd,将隐藏的特征向量hm反向恢复为具有类似结构的重建向量

Figure BDA00039372253300001711
实现公式如下:Utilize the decoder θ D ={W D , b D } to inversely recover the hidden features, thereby reconstructing the input signal. In specific implementation, through the decoder D(): R s → R d , the hidden feature vector h m is reversely restored to a reconstruction vector with a similar structure
Figure BDA00039372253300001711
The implementation formula is as follows:

Figure BDA0003937225330000181
Figure BDA0003937225330000181

其中,θD表示由权重矩阵WD和偏差向量bD组成的解码器参数。where θD denotes the decoder parameters consisting of weight matrix WD and bias vector bD .

步骤(4),生成缺陷检测图。Step (4), generating a defect detection map.

在所提出的方法中,最后需要生成缺陷检测图,获得正确的缺陷类型。具体实施中,先利用分类模型生成一个无缺陷的输出图像,再将其减去输入图像,用以获取缺陷检测图。这种图像减法是一种数值计算,即从整个图像的数值中减去另一图像的数值。通过这种方法,我们可以检测两幅图像之间的变化,并将其用于电路缺陷的识别中。具体步骤如下:In the proposed method, defect detection maps need to be generated at the end to obtain the correct defect types. In the specific implementation, the classification model is used to generate a defect-free output image, and then the input image is subtracted from it to obtain the defect detection map. This type of image subtraction is a numerical calculation that subtracts the value of another image from the value of the entire image. With this approach, we can detect changes between the two images and use them in the identification of circuit defects. Specific steps are as follows:

步骤(4)a:预测电路图像Step (4)a: Predict the circuit image

将检测用的缺陷电子电路图像送入己训练成功的自编码器(FFSAE)模型中,通过训练模型从缺陷电路图像中预测出高质量的电路图像。Send the defective electronic circuit image for detection into the self-encoder (FFSAE) model that has been trained successfully, and predict a high-quality circuit image from the defective circuit image through the training model.

步骤(4)b:生成缺陷检测图Step (4)b: Generate defect detection map

将该预测图像减去原始缺陷输入图像,即可生成缺陷检测图。最后通过对缺陷检测图设置适当阈值的方式来突出显示缺陷位置,从而完成对电子电路缺陷类型的正确分类。This predicted image is subtracted from the original defect input image to generate a defect detection map. Finally, the defect position is highlighted by setting an appropriate threshold value on the defect detection map, so as to complete the correct classification of electronic circuit defect types.

在利用缺陷检测图确定缺陷类型时,需要定义性能评价指标。该性能指标用以衡量预测图像与目标图像的相似程度。本专利采用结构相似性测量指数(SSI)作为评价指标,用以衡量某个图像结构信息相对另一个图像结构信息的退化程度,SSI是通过比较亮度、对比度和结构来计算两张图片的相似性。具体计算如下:When using the defect detection map to determine the defect type, it is necessary to define the performance evaluation index. This performance metric is used to measure how similar the predicted image is to the target image. This patent uses the Structural Similarity Measurement Index (SSI) as an evaluation index to measure the degree of degradation of an image's structural information relative to another image's structural information. SSI calculates the similarity of two images by comparing brightness, contrast, and structure. . The specific calculation is as follows:

Figure BDA0003937225330000182
Figure BDA0003937225330000182

式中,μ和σ分别表示各个像素参数的平均值和方差;σxy为协方差;c1、c2是防止除数为零的常数。In the formula, μ and σ respectively represent the average value and variance of each pixel parameter; σ xy is the covariance; c 1 and c 2 are constants to prevent the divisor from being zero.

步骤5,基于以上技术,搭建实验平台,完成对电机故障分类的具体实施,主要完成以下测试实验:Step 5. Based on the above technologies, build an experimental platform to complete the specific implementation of motor fault classification, and mainly complete the following test experiments:

(1)基于FFSAE的电路缺陷检测实验(1) Circuit defect detection experiment based on FFSAE

在电子电路图像数据集中随机抽样生成子集,随机选择颜色特征和形状特征,并送入非负约束自编码器(FFSAE),最后获得检测效果见图8。可见,该方法可以高精度地检测缺陷颜色变化较大的样品,如断线和氧化缺陷,除此以外,所提出的方法也可以检测出颜色变化较小的灰尘伪缺陷。Randomly sample and generate subsets in the electronic circuit image data set, randomly select color features and shape features, and send them to the non-negative constrained autoencoder (FFSAE), and finally obtain the detection effect as shown in Figure 8. It can be seen that the method can detect samples with large defect color changes with high precision, such as broken wires and oxidation defects. In addition, the proposed method can also detect dust pseudo-defects with small color changes.

(2)真缺陷与伪缺陷检测比较实验(2) Comparison experiment between real defect and false defect detection

为了验证所提出方法的正确性,将FFSAE与常规算法(SVM,BP,RBF)进行比较。所用的电子电路数据集共包括500个缺陷图像,其中300个是真缺陷,200个是伪缺陷。每种方法都用到灰色图像和彩色图像。取灰度图像的亮度值与彩色图像RGB相对应15种特征。最后获得各方法的真缺陷和伪缺陷测试结果如表1。在测试过程中,由于各子集和特征选取具有随机性,该方法被执行10次,并取平均值作为最后结果。To verify the correctness of the proposed method, FFSAE is compared with conventional algorithms (SVM, BP, RBF). The electronic circuit dataset used includes a total of 500 defect images, of which 300 are true defects and 200 are false defects. Each method uses gray and color images. Take the 15 features corresponding to the brightness value of the grayscale image and RGB of the color image. Finally, the test results of real defects and false defects of each method are shown in Table 1. During the testing process, due to the randomness of each subset and feature selection, this method is executed 10 times, and the average value is taken as the final result.

表1不同方法分类结果Table 1 Classification results of different methods

Figure BDA0003937225330000191
Figure BDA0003937225330000191

表1结果表明,与已有方法相比,本方法给出了更好的真实缺陷和伪缺陷的判别结果。The results in Table 1 show that, compared with the existing methods, this method gives better discrimination results of real defects and false defects.

(3)彩色图像与灰色图像的缺陷检测比较实验(3) Comparison experiment of defect detection between color image and gray image

在实验中,选取彩色缺陷图像200个,灰色缺陷图像200,分别用不同方法进行缺陷测量,获得表2的实验结果。In the experiment, 200 color defect images and 200 gray defect images were selected, and different methods were used to measure the defects, and the experimental results in Table 2 were obtained.

表2不同图像分类结果Table 2 Different image classification results

Figure BDA0003937225330000192
Figure BDA0003937225330000192

表2表明,当单独使用彩色图像,测量结果比表1的测量结果好,而当单独使用灰色图像,测量结果比表1的测量结果要差。另一方面,总体来看,使用彩色图像时,所有方法的正确比率都比灰度图像得到提高。也就是说,彩色图像的有效性体现在由多种颜色表示的特征组合,比如比率、RGB中熵、测试图像与参考图像的相关性等,组合颜色对缺陷分类效果更好,由此进一步说明彩色图像在缺陷测量及分类中的重要作用。Table 2 shows that when the color image is used alone, the measurement results are better than those in Table 1, and when the gray image is used alone, the measurement results are worse than those in Table 1. On the other hand, overall, the correct ratios of all methods are improved when using color images compared to grayscale images. That is to say, the effectiveness of color images is reflected in the combination of features represented by multiple colors, such as ratios, entropy in RGB, correlation between test images and reference images, etc. The combination of colors is better for defect classification, which further explains The important role of color images in defect measurement and classification.

上述实施方式只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人能够了解本发明的内容并据以实施,并不能以此限制本发明的保护范围。凡根据本发明精神实质所做的等效变换或修饰,都应涵盖在本发明的保护范围之内。The above-mentioned embodiments are only for illustrating the technical concept and characteristics of the present invention, and its purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly, and not to limit the scope of protection of the present invention. All equivalent changes or modifications made according to the spirit of the present invention shall fall within the protection scope of the present invention.

Claims (6)

1.一种基于非负性约束稀疏自编码器的电子电路缺陷检测方法,其特征在于,包括以下步骤:1. An electronic circuit defect detection method based on non-negativity constraint sparse autoencoder, is characterized in that, comprises the following steps: (1)对电子电路缺陷数据集预处理;对电子电路图像采集、剪裁,确定电子电路缺陷数据集及缺陷类型,完成图像数据的增强及特征选取;(1) Preprocessing the electronic circuit defect data set; collecting and tailoring the electronic circuit image, determining the electronic circuit defect data set and defect type, and completing image data enhancement and feature selection; (2)完成基于组的图模型及核规范方法GNN的电子电路图像去噪,利用图像的拉普拉斯图矩阵及核规范来封装图结构;(2) Complete the electronic circuit image denoising based on the group-based graph model and kernel norm method GNN, and use the Laplacian graph matrix and kernel norm of the image to encapsulate the graph structure; (3)构建基于非负性约束稀疏自编码器FFSAE的深度学习模型,并将其用于缺陷区域的提取中;(3) Construct a deep learning model based on non-negativity constrained sparse autoencoder FFSAE, and use it in the extraction of defect regions; (4)生成缺陷检测图,利用训练成功的自编码器FFSAE模型预测出高质量的电路图像,并将该预测图像减去原始缺陷输入图像,生成缺陷检测图,最后通过对缺陷检测图设置适当阈值的方式来突出显示缺陷位置,从而完成对电子电路缺陷类型的正确分类。(4) Generate a defect detection map, use the successfully trained self-encoder FFSAE model to predict a high-quality circuit image, and subtract the original defect input image from the predicted image to generate a defect detection map, and finally set the defect detection map appropriately The method of threshold value is used to highlight the defect location, so as to complete the correct classification of electronic circuit defect types. 2.根据权利要求1所述的非负性约束稀疏自编码器的电子电路缺陷检测方法,其特征在于,所述步骤(1)中对电子电路缺陷数据集预处理具体步骤如下:2. The electronic circuit defect detection method of the non-negativity constrained sparse autoencoder according to claim 1, characterized in that, in the step (1), the specific steps of preprocessing the electronic circuit defect data set are as follows: 步骤(1)a:采集、剪裁电子电路图像,确定电子电路缺陷数据集;Step (1)a: collecting and clipping the electronic circuit image, and determining the electronic circuit defect data set; 步骤(1)b:确定电子电路缺陷类型,设定两种缺陷,一种是真缺陷,另一种是伪缺陷;其中,真缺陷真是由于引线形状改变而引起的缺陷,具体又设定为断开缺陷、连接缺陷、突出缺陷和裂纹缺陷;伪缺陷的特点是只有颜色变化,而引线及基础部件的形状特征不变,具体又设定分为氧化缺陷和灰尘缺陷;Step (1)b: Determine the type of defect in the electronic circuit, and set two kinds of defects, one is true defect and the other is false defect; among them, the true defect is really caused by the change of lead wire shape, specifically set as Disconnection defects, connection defects, protruding defects, and crack defects; false defects are characterized by only color changes, while the shape characteristics of leads and basic components remain unchanged, and are specifically divided into oxidation defects and dust defects; 步骤(1)c:完成图像数据增强及特征选取Step (1)c: Complete image data enhancement and feature selection 数据增强:应用几何变换和加入噪声的方式来完成数据增强:应用随机旋转的方式来克服图像数据的位置偏差;将具有噪声分布的随机矩阵与原始数据相乘;Data enhancement: apply geometric transformation and adding noise to complete data enhancement: apply random rotation to overcome the position deviation of image data; multiply a random matrix with noise distribution with the original data; 特征选取:确定特征参数分别为颜色信息和形状信息,其中,颜色信息共30种,分别从RGB、HSV颜色模型中进行提取以下特征,分别为1)最大值,2)最小值,3)平均值,4)比例高值,5)引线区域与候选区域和引线的比率,6)基础部件与候选部件的比率,7)数值重心与最大值之间的位置差,8)方差,9)标准偏差,10)峰度,11)偏斜度,12)熵,13)最大值和最小值之间的差值,14)中值,15)测试图像和参考图像之间的相关性;形状信息共包括8种类型,包括1)面积,2)周长,3)x方向尺寸,4)y方向尺寸,5)纵横比,6)对角线长度,7)复杂性,8)圆度。Feature selection: Determine the feature parameters as color information and shape information respectively. Among them, there are 30 kinds of color information, and the following features are extracted from RGB and HSV color models respectively, which are 1) maximum value, 2) minimum value, and 3) average value. value, 4) scale high value, 5) ratio of lead area to candidate area and lead, 6) ratio of base part to candidate part, 7) position difference between numerical center of gravity and maximum value, 8) variance, 9) standard Bias, 10) kurtosis, 11) skewness, 12) entropy, 13) difference between maximum and minimum, 14) median, 15) correlation between test image and reference image; shape information A total of 8 types are included, including 1) area, 2) perimeter, 3) size in x direction, 4) size in y direction, 5) aspect ratio, 6) diagonal length, 7) complexity, and 8) roundness. 3.根据权利要求1所述的基于非负性约束稀疏自编码器的电子电路缺陷检测方法,其特征在于,所述步骤(2)中完成基于组的图模型及核规范方法GNN的电路图像去噪,具体步骤如下:3. the electronic circuit defect detection method based on non-negativity constrained sparse self-encoder according to claim 1, is characterized in that, in described step (2), finish the circuit image based on group graph model and kernel specification method GNN Denoising, the specific steps are as follows: 步骤(2)a:利用拉普拉斯矩阵L表征采集的补丁图像Step (2)a: Use the Laplacian matrix L to characterize the collected patch image (1)根据图像数据获得加权相邻矩阵W(1) Obtain the weighted adjacency matrix W according to the image data 无向加权的加权邻接矩阵W图是非负的,并且具有相等的对角元素,即Wij=wji,Wij≥0,利用阈值高斯内核构成边缘的权重矩阵W,具体如下:The undirected weighted weighted adjacency matrix W graph is non-negative and has equal diagonal elements, that is, W ij = w ji , W ij ≥ 0, and the threshold Gaussian kernel is used to form the weight matrix W of the edge, as follows:
Figure FDA0003937225320000021
Figure FDA0003937225320000021
其中,
Figure FDA0003937225320000022
是在图像顶点vi和vj之间的欧几里得距离,σ是控制权重随距离增加而衰减的速度控制参数,ε是阈值参数,代表ε-邻域图;
in,
Figure FDA0003937225320000022
is the Euclidean distance between image vertices v i and v j , σ is a speed control parameter that controls weight decay with increasing distance, ε is a threshold parameter, representing the ε-neighborhood graph;
(2)获取由拉普拉斯矩阵表示的图像L(2) Obtain the image L represented by the Laplacian matrix L=Δ-WL=Δ-W 其中,Δ是对角矩阵,满足方程Δii=∑jWijAmong them, Δ is a diagonal matrix, which satisfies the equation Δ ii = ∑ j W ij ; 步骤(2)b:建立基于分组的图模型及核规范的组合优化公式Step (2)b: Establish a grouping-based graphical model and a combined optimization formula for kernel norms (1)构建基本优化公式(1) Construct the basic optimization formula
Figure FDA0003937225320000023
是与拉普拉斯矩阵关联的正则化项,则基于图像去噪的基本优化公式如下:
set up
Figure FDA0003937225320000023
is the regularization term associated with the Laplacian matrix, then the basic optimization formula based on image denoising is as follows:
Figure FDA0003937225320000024
Figure FDA0003937225320000024
其中,x和y都是代表图像块的n×1的向量,L是n×n的拉普拉斯矩阵,θ是正则化参数;Among them, x and y are both n×1 vectors representing image blocks, L is an n×n Laplacian matrix, and θ is a regularization parameter; (2)构造基于分组对偶图的优化公式(2) Construct an optimization formula based on grouped dual graph 考虑到各组是一个矩阵,即构造包括行图和列图的对偶图Tm×n,则定义对偶图模型的优化表达式如下:Considering that each group is a matrix, that is, to construct a dual graph T m×n including row graphs and column graphs, the optimal expression for defining the dual graph model is as follows:
Figure FDA0003937225320000031
Figure FDA0003937225320000031
其中,X和Y是m×n的图像行列数据矩阵,θr和θc是正则化控制参数,用来确定正则化项的影响程度,即行图
Figure FDA0003937225320000032
和列图
Figure FDA0003937225320000033
Among them, X and Y are m×n image row and column data matrices, θ r and θ c are regularization control parameters, which are used to determine the degree of influence of the regularization term, that is, the row map
Figure FDA0003937225320000032
and column diagram
Figure FDA0003937225320000033
Figure FDA0003937225320000034
是基于组的行图正则化项,利用位于所有相似补丁图像的同一位置的像素强度的相似性来定义,具体为:
Figure FDA0003937225320000034
is a group-based line graph regularization term, defined by the similarity of pixel intensities located at the same location in all similar patch images, specifically:
Figure FDA0003937225320000035
Figure FDA0003937225320000035
Figure FDA0003937225320000036
是基于组的列图正则化项,利用位于每一个补丁图像对应所有位置的像素强度的相似性来定义,具体为:
Figure FDA0003937225320000036
is a group-based column map regularization term, defined by the similarity of pixel intensities at all locations corresponding to each patch image, specifically:
Figure FDA0003937225320000037
Figure FDA0003937225320000037
Lr和Lc分别是行拉普拉斯矩阵和列拉普拉斯阵;L r and L c are row Laplacian matrices and column Laplacian matrices, respectively; (3)构造核规范的优化公式(3) The optimization formula for constructing the core specification 引入低阶优化处理,对低秩数据矩阵X的常规替换称为核规范或跟踪规范||X||*,具体定义如下:Introducing low-order optimization processing, the conventional replacement of low-rank data matrix X is called kernel norm or tracking norm ||X|| * , which is defined as follows: ||X||*=tr((XXT)1/2)=∑kσk ||X|| * =tr((XX T ) 1/2 )=∑ k σ k 其中,σk是X的奇异值;Among them, σ k is the singular value of X; (4)构造基于分组的图模型及核规范的组合优化公式(4) Construct a group-based graphical model and a combined optimization formula for core norms 具体定义如下:The specific definition is as follows:
Figure FDA0003937225320000038
Figure FDA0003937225320000038
其中,θn、θr和θc是核范数、行图和列图的控制参数,可见,正则化项反映了非局部自相似性,核规范反映了能使用大量信息图像的低秩特性。Among them, θ n , θ r and θ c are the control parameters of the kernel norm, row map and column map. It can be seen that the regularization term reflects the non-local self-similarity, and the kernel norm reflects the low-rank characteristics of images that can use a large amount of information .
4.根据权利要求3所述的基于非负性约束稀疏自编码器的电子电路缺陷检测方法,其特征在于,对步骤(2)中基于分组的图模型及核规范的组合优化公式利用KNN算法进行优化处理求解,具体步骤如下:4. the electronic circuit defect detection method based on non-negativity constrained sparse self-encoder according to claim 3, is characterized in that, utilizes KNN algorithm to the combined optimization formula based on the graphical model of grouping and core specification in step (2) Perform optimization processing to solve the problem, the specific steps are as follows: (1)计算当前补丁图像与所有补丁图像之间的优化公式取值;(1) Calculate the value of the optimization formula between the current patch image and all patch images; (2)按照优化值升序排列;(2) Arranged in ascending order according to the optimized value; (3)选取优化值最邻近的K个补丁图像;(3) Select the K patch images closest to the optimized value; (4)统计K个补丁图像所在类别出现的频率,将K个补丁图像中出现频率最高的类别作为去噪后的结果图像。(4) Count the occurrence frequencies of the categories of the K patch images, and use the category with the highest frequency among the K patch images as the denoised result image. 5.根据权利要求1所述的基于非负性约束稀疏自编码器的电子电路缺陷检测方法,其特征在于,所述步骤(3)基于非负性约束稀疏自编码器(FFSAE)的深度学习模型具体为:5. the electronic circuit defect detection method based on non-negativity constrained sparse autoencoder according to claim 1, is characterized in that, described step (3) is based on the deep learning of non-negativity constrained sparse autoencoder (FFSAE) The model is specifically: 步骤(3)a:利用编码器对输入数据进行编码Step (3)a: Encode the input data with the encoder 首先,利用一组编码器θE={WE,bE}将输入数据转换为“压缩”表示的图像特征;通过以下公式将输入信号Xm∈Rd变换为隐层特征向量hm∈RsFirst, use a set of encoders θ E = {W E , b E } to convert the input data into "compressed" image features; transform the input signal X m ∈ R d into a hidden layer feature vector h m ∈ by the following formula R s : hm=E(Xm,θE)=sigm(WEXE+bE)h m =E(X mE )=sigm(W E X E +b E ) 其中,θE表示由权重矩阵WE和偏置向量bE组成的编码器参数,编码器为非线性变换函数:E():Rd→Rs(d>s);Among them, θ E represents the encoder parameters composed of weight matrix W E and bias vector b E , and the encoder is a nonlinear transformation function: E(): R d → R s (d>s); 步骤(3)b:定义成本函数ηAE(W,b)Step (3)b: Define the cost function η AE (W,b) 将所有训练样本的平均重建误差定义为成本函数ηAE(W,b),同时增加权重衰减惩罚项α,具体定义如下:The average reconstruction error of all training samples is defined as the cost function η AE (W, b), and the weight attenuation penalty term α is added at the same time, which is specifically defined as follows:
Figure FDA0003937225320000041
Figure FDA0003937225320000041
其中,W={WE,WD},b={bE,bD},M是训练样本的数量,α为控制减小权重的正规化惩罚项;Among them, W={W E , W D }, b={b E , b D }, M is the number of training samples, and α is the regularization penalty item that controls the weight reduction; 步骤(3)c:建立稀疏自动编码器Step (3)c: Build a sparse autoencoder (1)求解隐层单元的平均激活值
Figure FDA0003937225320000042
(1) Solve the average activation value of the hidden layer unit
Figure FDA0003937225320000042
通过将稀疏性强加于自动编码器的隐层单元可以构建稀疏自编码器,稀疏自编码器期望每个隐层单元的平均激活值接近于零;设[hm]j为与Xm相关的第j个隐藏单元的激活值,则第j个隐层单元在整个训练集上平均激活值计算如下:Sparse autoencoders can be constructed by imposing sparsity on the hidden layer units of the autoencoder. The sparse autoencoder expects the average activation value of each hidden layer unit to be close to zero ; let [h m ] j be the The activation value of the jth hidden unit, the average activation value of the jth hidden layer unit on the entire training set is calculated as follows:
Figure FDA0003937225320000051
Figure FDA0003937225320000051
(2)定义惩罚项
Figure FDA0003937225320000052
(2) Define the penalty term
Figure FDA0003937225320000052
稀疏自编码器的稀疏性约束由
Figure FDA0003937225320000053
强制执行,其中,ε为预定义的稀疏性参数,增加一个额外的惩罚项,用以惩罚明显偏离ε的
Figure FDA0003937225320000054
的情况,惩罚项定义为Kullback-Leibler(KL)散度,如下式所示:
The sparsity constraint of sparse autoencoders is given by
Figure FDA0003937225320000053
Mandatory execution, where ε is a predefined sparsity parameter, and an additional penalty is added to punish those that deviate significantly from ε
Figure FDA0003937225320000054
In the case of , the penalty term is defined as the Kullback-Leibler (KL) divergence, as shown in the following formula:
Figure FDA0003937225320000055
Figure FDA0003937225320000055
其中,
Figure FDA0003937225320000056
是隐单元的平均激活向量,s是隐藏单元数,
Figure FDA0003937225320000057
是用于测量两个分布之间差异的标准函数;
in,
Figure FDA0003937225320000056
is the average activation vector of hidden units, s is the number of hidden units,
Figure FDA0003937225320000057
is the standard function used to measure the difference between two distributions;
可见,当
Figure FDA0003937225320000058
时,
Figure FDA0003937225320000059
可以达到最小的0值,且当
Figure FDA00039372253200000510
向上偏离ε时,会导致其无效,因此,最小化此惩罚项可以使得
Figure FDA00039372253200000511
接近于ε;
Visible, when
Figure FDA0003937225320000058
hour,
Figure FDA0003937225320000059
can reach the smallest value of 0, and when
Figure FDA00039372253200000510
Deviates upward from ε, making it invalid, so minimizing this penalty makes
Figure FDA00039372253200000511
close to ε;
(3)定义稀疏成本函数ηSAE(W,b)(3) Define the sparse cost function η SAE (W, b) 稀疏自编码器的训练目标优化函数是最小化平均重建误差ηAE(W,b)及稀疏性惩罚项
Figure FDA00039372253200000512
由此,稀疏成本函数ηSAE(W,b)定义为:
The training objective optimization function of the sparse autoencoder is to minimize the average reconstruction error η AE (W, b) and the sparsity penalty term
Figure FDA00039372253200000512
Thus, the sparse cost function η SAE (W, b) is defined as:
Figure FDA00039372253200000513
Figure FDA00039372253200000513
其中,β是用来控制稀疏性惩罚项的权重;由于ε表示所有隐单元的平均激活,而隐单元的激活取决于参数{W,b},因此,ε项也依赖于{W,b};Among them, β is the weight used to control the sparsity penalty term; since ε represents the average activation of all hidden units, and the activation of hidden units depends on the parameters {W, b}, therefore, the ε term also depends on {W, b} ; 步骤(3)d:建立非负约束标准自动编码器的成本函数ηFFSAE(W,b)Step (3)d: Establish the cost function η FFSAE (W, b) of the non-negative constrained standard autoencoder 提出非负约束自编码器FFSAE,修改成本函数为ηFFSAE(W,b),具体如下:A non-negative constrained self-encoder FFSAE is proposed, and the cost function is modified as η FFSAE (W, b), as follows:
Figure FDA0003937225320000061
Figure FDA0003937225320000061
其中,
Figure FDA0003937225320000062
in,
Figure FDA0003937225320000062
步骤(3)e:利用梯度下降方法更新
Figure FDA0003937225320000063
Figure FDA0003937225320000064
Step (3)e: Utilize the gradient descent method to update
Figure FDA0003937225320000063
and
Figure FDA0003937225320000064
首先初始化参数
Figure FDA0003937225320000065
Figure FDA0003937225320000066
为接近零的随机值,然后应用梯度下降优化算法进行训练,在每次迭代中更新参数
Figure FDA0003937225320000067
Figure FDA0003937225320000068
具体如下式:
Initialize the parameters first
Figure FDA0003937225320000065
and
Figure FDA0003937225320000066
is a random value close to zero, and then applies the gradient descent optimization algorithm for training, updating the parameters in each iteration
Figure FDA0003937225320000067
and
Figure FDA0003937225320000068
The specific formula is as follows:
Figure FDA0003937225320000069
Figure FDA0003937225320000069
Figure FDA00039372253200000610
Figure FDA00039372253200000610
其中,λ>0是学习率;Among them, λ>0 is the learning rate; 步骤(3)f:利用解码器来重建输入信号Step (3)f: Use the decoder to reconstruct the input signal 利用解码器θD={WD,bD}来反向恢复隐藏特征,从而重建输入信号,具体实现时,通过解码器D():Rs→Rd,将隐藏的特征向量hm反向恢复为具有类似结构的重建向量
Figure FDA00039372253200000611
实现公式如下:
Use the decoder θ D ={W D , b D } to restore the hidden features in reverse, so as to reconstruct the input signal. In the specific implementation, the hidden feature vector h m is reversed through the decoder D(): R s →R d is restored to a reconstruction vector with a similar structure
Figure FDA00039372253200000611
The implementation formula is as follows:
Figure FDA00039372253200000612
Figure FDA00039372253200000612
其中,θD表示由权重矩阵WD和偏差向量bD组成的解码器参数。where θD denotes the decoder parameters consisting of weight matrix WD and bias vector bD .
6.根据权利要求1所述的的基于非负性约束稀疏自编码器的电子电路缺陷检测方法,其特征在于,所述步骤(4)在利用缺陷检测图确定缺陷类型时,需要定义性能评价指标,采用结构相似性测量指数SSI作为评价指标,用以衡量某个图像结构信息相对另一个图像结构信息的退化程度,具体计算如下:6. The electronic circuit defect detection method based on non-negativity constrained sparse autoencoder according to claim 1, characterized in that, the step (4) needs to define the performance evaluation when using the defect detection map to determine the defect type Index, using the Structural Similarity Measurement Index (SSI) as an evaluation index to measure the degree of degradation of a certain image structure information relative to another image structure information, the specific calculation is as follows:
Figure FDA0003937225320000071
Figure FDA0003937225320000071
式中,μ和σ分别表示各个像素参数的平均值和方差;σxy为协方差;c1、c2是防止除数为零的常数。In the formula, μ and σ respectively represent the average value and variance of each pixel parameter; σ xy is the covariance; c 1 and c 2 are constants to prevent the divisor from being zero.
CN202211408638.XA 2022-11-10 2022-11-10 Electronic circuit defect detection method based on non-negative constraint sparse self-encoder Pending CN115829942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211408638.XA CN115829942A (en) 2022-11-10 2022-11-10 Electronic circuit defect detection method based on non-negative constraint sparse self-encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211408638.XA CN115829942A (en) 2022-11-10 2022-11-10 Electronic circuit defect detection method based on non-negative constraint sparse self-encoder

Publications (1)

Publication Number Publication Date
CN115829942A true CN115829942A (en) 2023-03-21

Family

ID=85527648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211408638.XA Pending CN115829942A (en) 2022-11-10 2022-11-10 Electronic circuit defect detection method based on non-negative constraint sparse self-encoder

Country Status (1)

Country Link
CN (1) CN115829942A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117474836A (en) * 2023-09-27 2024-01-30 深圳市长盈精密技术股份有限公司 Deformation defect detection method and device
CN117853453A (en) * 2024-01-10 2024-04-09 苏州矽行半导体技术有限公司 Defect filtering method based on gradient lifting tree
CN119379645A (en) * 2024-10-23 2025-01-28 江西红板科技股份有限公司 High-density circuit board and method based on electroplating eclipse process
CN120047349A (en) * 2025-04-23 2025-05-27 湖南芒果数智艺术科技有限责任公司 A method for reducing noise of digital model of cultural relics and related device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117474836A (en) * 2023-09-27 2024-01-30 深圳市长盈精密技术股份有限公司 Deformation defect detection method and device
CN117853453A (en) * 2024-01-10 2024-04-09 苏州矽行半导体技术有限公司 Defect filtering method based on gradient lifting tree
CN119379645A (en) * 2024-10-23 2025-01-28 江西红板科技股份有限公司 High-density circuit board and method based on electroplating eclipse process
CN120047349A (en) * 2025-04-23 2025-05-27 湖南芒果数智艺术科技有限责任公司 A method for reducing noise of digital model of cultural relics and related device

Similar Documents

Publication Publication Date Title
CN110619618B (en) Surface defect detection method and device and electronic equipment
CN115829942A (en) Electronic circuit defect detection method based on non-negative constraint sparse self-encoder
CN108765412B (en) A method for classifying surface defects of strip steel
CN119006469B (en) Automatic detection method and system for surface defects of substrate glass based on machine vision
CN114972213A (en) A two-stage motherboard image defect detection and localization method based on machine vision
CN112446869B (en) Unsupervised industrial product defect detection method and device based on deep learning
CN114862838B (en) Defect detection method and equipment based on unsupervised learning
CN114170184A (en) Product image anomaly detection method and device based on embedded feature vector
CN114494780A (en) Semi-supervised industrial defect detection method and system based on feature comparison
CN118837366A (en) PCB (printed circuit board) quality detection and control method and device based on computer vision
CN115830004A (en) Surface defect detection method, device, computer equipment and storage medium
Shit et al. An encoder‐decoder based CNN architecture using end to end dehaze and detection network for proper image visualization and detection
CN115239672A (en) Defect detection method and device, equipment and storage medium
CN115861226A (en) A deep neural network intelligent recognition method for surface defects based on eigenvalue gradient changes
CN117876842A (en) A method and system for detecting anomalies of industrial products based on generative adversarial networks
CN119559187B (en) Electric energy meter appearance defect detection method and system based on neural network
CN118628477A (en) Industrial quality inspection method and device
CN117636045B (en) Wood defect detection system based on image processing
CN117132592B (en) Industrial defect detection method based on entropy fusion
CN117789139A (en) Method, system, terminal and medium for identifying abnormal event based on road
CN114897909B (en) Crankshaft surface crack monitoring method and system based on unsupervised learning
CN114612434B (en) Method and system for detecting surface defects of bellows
CN117668686A (en) Product detection model training method, product detection method, device and storage medium
CN116977315A (en) Abnormality detection model processing method, abnormality object detection method, abnormality detection device and abnormality detection equipment
CN116109627A (en) Defect detection method, device and medium based on migration learning and small sample learning

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