CN110084804A - A kind of underwater works defect inspection method based on Weakly supervised deep learning - Google Patents

A kind of underwater works defect inspection method based on Weakly supervised deep learning Download PDF

Info

Publication number
CN110084804A
CN110084804A CN201910361732.6A CN201910361732A CN110084804A CN 110084804 A CN110084804 A CN 110084804A CN 201910361732 A CN201910361732 A CN 201910361732A CN 110084804 A CN110084804 A CN 110084804A
Authority
CN
China
Prior art keywords
strength
point
cluster
underwater structure
image
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
CN201910361732.6A
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.)
Hohai University HHU
Original Assignee
Hohai University HHU
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 Hohai University HHU filed Critical Hohai University HHU
Priority to CN201910361732.6A priority Critical patent/CN110084804A/en
Publication of CN110084804A publication Critical patent/CN110084804A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30132Masonry; Concrete

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Probability & Statistics with Applications (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种基于弱监督深度学习的水下构筑物缺陷检测方法,包括以下步骤:S1,以语义信息为标签对输入图像进行弱标注,训练弱监督下的卷积神经网络模型,对正常图像和有缺陷图像进行分类;S2,利用卷积神经网络模型的第三层卷积层信息,实现深度显著性检测算法;S3,根据深度显著性算法的检测结果,进行迭代聚类统一检测算法,训练一个可靠的水下构筑物图像异常点分类器;S4,将迭代聚类统一检测分类器用于水下构筑物图像数据集进行评估测试。本发明提供的一种基于弱监督深度学习的水下构筑物缺陷检测方法,解决了水下构筑物缺陷检测模型难以构建的问题,可以较好地辅助检测人员完成对水下构筑物目标的缺陷检测任务。

The invention discloses an underwater structure defect detection method based on weakly supervised deep learning, comprising the following steps: S1, weakly labeling an input image with semantic information as a label, training a convolutional neural network model under weak supervision, and detecting normal Classify images and defective images; S2, use the third-layer convolution layer information of the convolutional neural network model to implement a depth saliency detection algorithm; S3, according to the detection results of the depth saliency algorithm, perform an iterative clustering unified detection algorithm , train a reliable outliers classifier for underwater structure images; S4, use the iterative clustering unified detection classifier to evaluate and test the underwater structure image dataset. The invention provides an underwater structure defect detection method based on weakly supervised deep learning, which solves the problem that the underwater structure defect detection model is difficult to construct, and can better assist the inspectors to complete the defect detection task of the underwater structure target.

Description

一种基于弱监督深度学习的水下构筑物缺陷检测方法A weakly supervised deep learning-based defect detection method for underwater structures

技术领域technical field

本发明具体涉及一种基于弱监督深度学习的水下构筑物缺陷检测方法,属于图像处理分析与理解技术领域。The invention specifically relates to an underwater structure defect detection method based on weakly supervised deep learning, and belongs to the technical field of image processing analysis and understanding.

背景技术Background technique

随着水利水电建设的发展,越来越多的水利设施被应用在生产生活中。大坝、门槽等水下构筑物容易受到结构应力和水下环境的影响而产生裂缝、腐锈等缺陷。目前基于光学图像的水下成像技术因其较高的分辨率和检测精度被广泛应用于水下检测中。基于深度学习的图像检测方法可以实现对缺陷的自动检测,它根据给定的样本数据集进行训练,得到一个可以完成预期检测效果的模型,应用于图像检测中。然而,传统的深度学习方法大部分需要海量的像素标注数据集来进行训练,水下构筑物缺陷检测过程由于水下复杂环境,以及构筑物缺陷的随机多样很难获取海量标注数据。With the development of water conservancy and hydropower construction, more and more water conservancy facilities are used in production and life. Underwater structures such as dams and doorways are easily affected by structural stress and underwater environment, resulting in defects such as cracks and rust. At present, underwater imaging technology based on optical image is widely used in underwater detection because of its high resolution and detection accuracy. The image detection method based on deep learning can realize the automatic detection of defects. It trains according to the given sample data set, and obtains a model that can complete the expected detection effect, which is applied to image detection. However, most of the traditional deep learning methods require massive pixel annotation datasets for training. The underwater structure defect detection process is difficult to obtain massive labeled data due to the complex underwater environment and the random variety of structure defects.

发明内容SUMMARY OF THE INVENTION

本发明要解决的技术问题是,克服现有技术的缺陷,提供一种仅需要图像的语义信息作为标注进行训练,能够解决水下构筑物缺陷检测模型难以构建的问题的基于弱监督深度学习的水下构筑物缺陷检测方法。The technical problem to be solved by the present invention is to overcome the defects of the prior art, and to provide a weakly supervised deep learning-based underwater underwater structure that only needs the semantic information of the image as an annotation for training, and can solve the problem of difficulty in constructing a defect detection model for underwater structures. Defect detection method for lower structures.

本发明提出一种基于弱监督深度学习的水下构筑物缺陷检测方法,解决在仅有图像的语义信息作为标签的弱监督训练数据集中,构建一个辅助检测的模型,实现对所获取的水下构筑物图像的语义检测。The invention proposes a weakly supervised deep learning-based underwater structure defect detection method, which solves the problem of constructing an auxiliary detection model in the weakly supervised training data set with only the semantic information of the image as a label, so as to realize the detection of the acquired underwater structures. Semantic detection of images.

为解决上述技术问题,本发明采用的技术方案为:In order to solve the above-mentioned technical problems, the technical scheme adopted in the present invention is:

一种基于弱监督深度学习的水下构筑物缺陷检测方法,其特征在于:包括以下步骤:S1,以语义信息为标签对输入图像进行弱标注,训练弱监督下的卷积神经网络模型,对正常图像和有缺陷图像进行分类;A method for defect detection of underwater structures based on weakly supervised deep learning, which is characterized by comprising the following steps: S1, weakly labeling an input image with semantic information as a label, training a convolutional neural network model under weak supervision, Classification of images and defective images;

S2,利用卷积神经网络模型的第三层卷积层信息,实现深度显著性检测算法;S2, using the third-layer convolutional layer information of the convolutional neural network model to implement a deep saliency detection algorithm;

S3,根据深度显著性算法的检测结果,进行迭代聚类统一检测算法,训练一个可靠的水下构筑物图像异常点分类器;S3, according to the detection result of the depth saliency algorithm, perform an iterative clustering unified detection algorithm to train a reliable classifier of abnormal points of underwater structure images;

S4,将迭代聚类统一检测分类器用于水下构筑物图像数据集进行评估测试。S4, the iterative clustering unified detection classifier is used for the evaluation test on the underwater structure image dataset.

S2中深度显著性检测算法步骤如下:The steps of the depth saliency detection algorithm in S2 are as follows:

S21,将卷积神经网络模型中卷积层中的第三层t的特征图作为生成显著点的中间图像ImS21, using the feature map of the third layer t in the convolutional layer in the convolutional neural network model as the intermediate image Im for generating the salient point;

S22,使用最大过滤器查找Im中的局部最大值,并将其保存到列表L中;S22, use the maximum filter to find the local maximum value in Im , and save it in the list L;

S23,按强度的降序排序L,强度表示为strength(x),其中x为L中的每一个元素;S23, sort L in descending order of strength, and the strength is expressed as strength(x), where x is each element in L;

S24,对L中的每一个元素x做如下操作:首先,将x添加进列表γ以实现初始化,然后,遍历每个元素x的8邻接域里同属于Im的元素y,若公式strength(y)∈(strength(x)-z,strength(x))成立,则令并将标记为候选点,若则将作为有效最大值加入到列表γ中;其次,遍历元素的8邻接域里的每个元素y,若邻接点y的强度处于区间(strength(x)-z,strength(x))中,亦将其标记为候选点;继续访问该候选点的8邻接域,重复如上标记操作,直到发现某个候选点的所有邻接点y的强度满足strength(y)<strength(x)-z,结束本过程,其中,z表示本算法中对灰度值的容忍度,由在最大值附近种子填充的范围来确定,如果被访问的邻接点y已存在于列表L中,则将它作为较弱的最大值从中L移除;最后,通过计算γ中所有元素的几何中心来产生一个显著点,几何中心由较宽图像区域中的最大值表征。S24, perform the following operations on each element x in L: first, add x to the list γ to achieve initialization, then traverse the elements y that belong to the same Im in the 8 adjacent fields of each element x, if the formula strength( y)∈(strength(x)-z,strength(x)) holds, then let and will marked as candidate points, if will is added to the list γ as a valid maximum value; second, traverse the elements For each element y in the 8-adjacent domain of , if the strength of the adjacent point y is in the interval (strength(x)-z, strength(x)), it is also marked as a candidate point; continue to visit the 8-adjacency of the candidate point domain, repeat the above marking operation until it is found that the strength of all adjacent points y of a candidate point satisfies strength(y)<strength(x)-z, and the process ends, where z represents the tolerance of the gray value in this algorithm degree, determined by the range seeded around the maximum, and if the visited neighbor y already exists in the list L, it is removed from L as the weaker maximum; finally, by computing all elements in γ to generate a salient point, the geometric center is characterized by the maximum value in the wider image area.

S3中迭代聚类统一算法步骤如下:The steps of the iterative clustering unified algorithm in S3 are as follows:

S31,令In和Ia分别表示正常图像和有缺陷图像训练集;S31, let I n and I a represent the normal image and the defective image training set, respectively;

S32,设Pn和Pa为利用DSD算法从In和Ia中提取的显著点集合;S32, let P n and P a be the salient point sets extracted from In and I a by using the DSD algorithm;

S33,迭代执行下述操作S次,其中S>1:对每一幅正常图像In,提取Pn的点状交叉特征PCFM,并将其点状交叉特征采用K-means聚类为正常集簇Q,簇内元素用Nq,q=1,2,...Q表示;对每一幅有缺陷图像Ia,提取Pa的点状交叉特征表示,并将其点状交叉特征采用K-means聚类为异常集簇R,簇内元素用Ar,r=1,2,...R表示;S33, iteratively execute the following operations S times, where S>1: for each normal image I n , extract the point-like cross feature PCFM of P n , and use K-means to cluster the point-like cross feature into a normal set Cluster Q, the elements in the cluster are represented by N q , q=1, 2,...Q; for each defective image I a , the point-like cross feature representation of P a is extracted, and its point-like cross feature is adopted K-means clustering is an abnormal cluster R, and the elements in the cluster are represented by A r , r=1, 2,...R;

S34,令Q=Q·S,R=R·S;S34, let Q=Q·S, R=R·S;

S35,对异常集簇R中的每一个元素Ar,r=1,2,...R做如下操作:在Ar和Nq之间,计算各个点之间的距离drq(Ar,Nq),q=1,2,...Q,然后按升序对距离drq排序;接着,计算归一化距离drq12=drq1/drq2,其中drq1和drq2分别表示Ar到其最近的相邻集簇中点Nq1和Nq2之间的距离,即使用聚类质心之间的欧几里德距离来估计聚类之间的距离; S35 , perform the following operations on each element A r , r = 1, 2, . , N q ), q=1,2,...Q, then sort the distances d rq in ascending order; then, calculate the normalized distance d rq12 =d rq1 /d rq2 , where d rq1 and d rq2 represent A, respectively The distance between r and its nearest neighbor cluster midpoints N q1 and N q2 , that is, the distance between clusters is estimated using the Euclidean distance between cluster centroids;

S36,从S35得到的所有距离drq12中估计出平均归一化距离dq12S36, the average normalized distance d q12 is estimated from all the distances d rq12 obtained in S35;

S37,对异常集簇中的每一个元素Ar做如下操作:若公式drq12<dq12成立,则将该元素Ar从异常集簇中剔除,归入正常集簇。S37, perform the following operations on each element Ar in the abnormal cluster: if the formula d rq12 <d q12 is established, remove the element Ar from the abnormal cluster and classify it into the normal cluster.

S4中,评估测试通过K-means聚类方法把与水下构筑物缺陷相关的显著点检测并标识出来。In S4, the evaluation test detects and identifies the salient points related to the defects of underwater structures through the K-means clustering method.

具体步骤为:将被分类为有缺陷的水下构筑物图像设置为输入图像,对中的每一个显著点m做如下操作:提取点m的点状交叉特征PCFM特征;然后计算m到所有集簇即Ar∪Nq聚类中各点的距离;根据m的K个最近邻接点中所属的类进行多数表决,将检测到的显著点分类为正常或异常点。The specific steps are as follows: images of underwater structures that are classified as defective set to the input image, right Do the following operations for each salient point m in: extract the point-like cross feature PCFM feature of point m; then calculate the distance from m to all clusters, that is, each point in the A r ∪ N q cluster; according to the K nearest neighbors of m The classes to which the points belong are voted by majority to classify detected salient points as normal or abnormal.

用矩形框指示水下构筑物的缺陷区域。Defective areas of underwater structures are indicated by rectangular boxes.

本发明的有益效果:本发明提供的一种基于弱监督深度学习的水下构筑物缺陷检测方法,仅需要图像的语义信息作为标注进行训练,便可得到一个理想的图像检测模型。该架构包括深度显著性检测和迭代聚类统一算法,在仅有图像的语义信息作为标签的弱监督训练数据集中,解决了水下构筑物缺陷检测模型难以构建的问题,可以较好地辅助检测人员完成对水下构筑物目标的缺陷检测任务。Beneficial effects of the present invention: The invention provides a weakly supervised deep learning-based underwater structure defect detection method, which only needs the semantic information of the image as an annotation for training, and an ideal image detection model can be obtained. The architecture includes a unified algorithm of deep saliency detection and iterative clustering. In the weakly supervised training dataset with only the semantic information of images as labels, it solves the problem of difficulty in building a defect detection model for underwater structures, and can better assist the inspectors. Complete the task of defect detection for underwater structure targets.

附图说明Description of drawings

图1基于弱监督深度学习的水下构筑物缺陷检测方法的训练流程图;Fig. 1 is a training flow chart of a weakly supervised deep learning-based underwater structure defect detection method;

图2基于弱监督深度学习的水下构筑物缺陷检测方法的测试流程图。Figure 2. The test flow chart of the weakly supervised deep learning-based defect detection method for underwater structures.

具体实施方式Detailed ways

下面结合附图对本发明作进一步描述,以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention, and cannot be used to limit the protection scope of the present invention.

如图1和图2所示,本发明提供一种基于弱监督深度学习的水下构筑物缺陷检测方法,包括以下步骤:As shown in Figure 1 and Figure 2, the present invention provides a weakly supervised deep learning-based underwater structure defect detection method, comprising the following steps:

步骤一,以语义信息为标签对输入图像进行弱标注,训练弱监督下的卷积神经网络模型(WCNN),实现对正常和异常图像训练集的分类。Step 1: Weakly label the input images with semantic information as labels, and train a weakly supervised convolutional neural network model (WCNN) to classify normal and abnormal image training sets.

步骤二,利用卷积神经网络模型的第三层卷积层信息,实现深度显著性检测算法,用于检测有缺陷水下构筑物图像和无缺陷图像的显著点,深度显著性检测算法(DSD)步骤如下:The second step is to use the information of the third convolution layer of the convolutional neural network model to realize the depth saliency detection algorithm, which is used to detect the salient points of the defective underwater structure image and the non-defective image. The depth saliency detection algorithm (DSD) Proceed as follows:

a,将卷积神经网络模型中卷积层中的第三层t的特征图作为生成显著点的中间图像Ima, the feature map of the third layer t in the convolutional layer in the convolutional neural network model is used as an intermediate image Im for generating salient points;

b,使用最大过滤器查找Im中的局部最大值,并将其保存到列表L中;b, use the max filter to find the local maximum in Im and save it to the list L;

c,按强度的降序排序L,强度表示为strength(x),其中x为L中的每一个元素;c, sort L in descending order of strength, and the strength is expressed as strength(x), where x is each element in L;

d,对L中的每一个元素x做如下操作:首先,将x添加进列表γ以实现初始化,然后,遍历每个元素x的8邻接域里同属于Im的元素y,若公式strength(y)∈(strength(x)-z,strength(x))成立,则令并将标记为候选点,若则将作为有效最大值加入到列表γ中;其次,遍历元素的8邻接域里的每个元素y,若邻接点y的强度处于区间(strength(x)-z,strength(x))中,亦将其标记为候选点;继续访问该候选点的8邻接域,重复如上标记操作,直到发现某个候选点的所有邻接点y的强度满足strength(y)<strength(x)-z,结束本过程,其中,z表示本算法中对灰度值的容忍度,由在最大值附近种子填充的范围来确定,如果被访问的邻接点y已存在于列表L中,则将它作为较弱的最大值从中L移除;最后,通过计算γ中所有元素的几何中心来产生一个显著点,几何中心由较宽图像区域中的最大值表征。d. Do the following for each element x in L: first, add x to the list γ to achieve initialization, then traverse the 8 adjacent fields of each element x that belong to the same element y of Im , if the formula strength( y)∈(strength(x)-z,strength(x)) holds, then let and will marked as candidate points, if will is added to the list γ as a valid maximum value; second, traverse the elements For each element y in the 8-adjacent domain of , if the strength of the adjacent point y is in the interval (strength(x)-z, strength(x)), it is also marked as a candidate point; continue to visit the 8-adjacency of the candidate point domain, repeat the above marking operation until it is found that the strength of all adjacent points y of a candidate point satisfies strength(y)<strength(x)-z, and the process ends, where z represents the tolerance of the gray value in this algorithm degree, determined by the range seeded around the maximum, and if the visited neighbor y already exists in the list L, it is removed from L as the weaker maximum; finally, by computing all elements in γ to generate a salient point, the geometric center is characterized by the maximum value in the wider image area.

步骤三,根据深度显著性算法的检测结果,进行迭代聚类统一算法(ICU)检测,迭代聚类统一算法提取由显著点构成的点状交叉特征(PCFM),并标记为异常或正常,训练一个可靠的水下构筑物图像异常点分类器。通过在弱监督环境下利用大规模水下构筑物图像数据对WCNN网络模型和ICU分类器进行训练,得到一个理想的检测模型。迭代聚类统一算法步骤如下:Step 3: According to the detection results of the depth saliency algorithm, perform the iterative clustering unified algorithm (ICU) detection, and the iterative clustering unified algorithm extracts the point-like cross feature (PCFM) composed of salient points, and marks it as abnormal or normal. A Reliable Outlier Classifier for Images of Underwater Structures. An ideal detection model is obtained by training the WCNN network model and ICU classifier with large-scale underwater structure image data in a weakly supervised environment. The steps of the iterative clustering unified algorithm are as follows:

a,令In和Ia分别表示正常图像和有缺陷图像训练集;a, let In and Ia denote the normal image and the defective image training set, respectively;

b,设Pn和Pa为利用DSD算法从In和Ia中提取的显著点集合;b, let P n and P a be the salient point sets extracted from In and I a by the DSD algorithm;

c,迭代执行下述操作S次,其中S>1:对每一幅正常图像In,提取Pn的点状交叉特征PCFM,并将其点状交叉特征采用K-means聚类为正常集簇Q,簇内元素用Nq,q=1,2,...Q表示;对每一幅有缺陷图像Ia,提取Pa的点状交叉特征表示,并将其点状交叉特征采用K-means聚类为异常集簇R,簇内元素用Ar,r=1,2,...R表示;c, iteratively perform the following operations S times, where S>1: for each normal image I n , extract the point-like cross feature PCFM of P n , and use K-means to cluster the point-like cross feature into a normal set Cluster Q, the elements in the cluster are represented by N q , q=1, 2,...Q; for each defective image I a , the point-like cross feature representation of P a is extracted, and its point-like cross feature is adopted K-means clustering is an abnormal cluster R, and the elements in the cluster are represented by A r , r=1, 2,...R;

d,令Q=Q·S,R=R·S;d, let Q=Q·S, R=R·S;

e,对异常集簇R中的每一个元素Ar,r=1,2,...R做如下操作:在Ar和Nq之间,计算各个点之间的距离drq(Ar,Nq),q=1,2,...Q,然后按升序对距离drq排序;接着,计算归一化距离drq12=drq1/drq2,其中drq1和drq2分别表示Ar到其最近的相邻集簇中点Nq1和Nq2之间的距离,即使用聚类质心之间的欧几里德距离来估计聚类之间的距离;e. Do the following for each element Ar, r =1, 2,...R in the anomaly cluster R : Between Ar and Nq , calculate the distance d rq (A r , N q ), q=1,2,...Q, then sort the distances d rq in ascending order; then, calculate the normalized distance d rq12 =d rq1 /d rq2 , where d rq1 and d rq2 represent A, respectively The distance between r and its nearest neighbor cluster midpoints N q1 and N q2 , that is, the distance between clusters is estimated using the Euclidean distance between cluster centroids;

f,从步骤e得到的所有距离drq12中估计出平均归一化距离dq12f, the average normalized distance d q12 is estimated from all the distances d rq12 obtained in step e;

g,对异常集簇中的每一个元素Ar做如下操作:若公式drq12<dq12成立,则将该元素Ar从异常集簇中剔除,归入正常集簇。 g . Perform the following operations on each element Ar in the abnormal cluster: if the formula d rq12 <d q12 is established, remove the element Ar from the abnormal cluster and classify it into the normal cluster.

步骤四,将迭代聚类统一检测分类器用于水下构筑物图像数据集进行评估测试。评估测试通过K-means聚类方法把与水下构筑物缺陷相关的显著点检测并标识出来。具体步骤为:将被分类为有缺陷的水下构筑物图像设置为输入图像,对中的每一个显著点m做如下操作:提取点m的点状交叉特征PCFM特征;然后计算m到所有集簇即Ar∪Nq聚类中各点的距离;根据m的K个最近邻接点中所属的类进行多数表决,将检测到的显著点分类为正常或异常点。用矩形框指示水下构筑物的缺陷区域。In step 4, the iterative clustering unified detection classifier is used for the evaluation test on the underwater structure image data set. The evaluation test detects and identifies the salient points related to the defects of underwater structures through K-means clustering method. The specific steps are as follows: images of underwater structures that are classified as defective set to the input image, right Do the following operations for each salient point m in: extract the point-like cross feature PCFM feature of point m; then calculate the distance from m to all clusters, that is, each point in the A r ∪ N q cluster; according to the K nearest neighbors of m The classes to which the points belong are voted by majority to classify detected salient points as normal or abnormal. Defective areas of underwater structures are indicated by rectangular boxes.

本发明的一种基于弱监督深度学习的水下构筑物缺陷检测方法,在模型训练阶段,DSD应用于无缺陷和有缺陷图像,使用从WCNN卷积层的特征图提取的信息来表示水下构筑物图像中的显著性特征。在测试阶段,DSD应用于经WCNN分类后的缺陷图像,得到显著点表征的缺陷。本发明的一种新颖的迭代聚类统一算法,基于聚类方法对在弱监督下的DSD算法检测出的显著点进行分类,涉及训练和测试阶段。在训练过程中,接收有缺陷和正常的构筑物图像,通过K-means聚类将它们的显著点聚集在它们的矢量表示上。在测试阶段,主要负责对存在缺陷的异常图像进行处理,得到水下构筑物缺陷的若干异常点,并用矩形框指示构筑物的缺陷区域。In a weakly supervised deep learning-based underwater structure defect detection method of the present invention, in the model training stage, DSD is applied to defect-free and defective images, and the information extracted from the feature map of the WCNN convolutional layer is used to represent the underwater structure salient features in an image. In the testing phase, DSD is applied to the defect images classified by WCNN to obtain defects represented by salient points. A novel iterative clustering unification algorithm of the present invention classifies the salient points detected by the DSD algorithm under weak supervision based on the clustering method, involving training and testing stages. During training, images of defective and normal structures are received and their salient points are clustered on their vector representations by K-means clustering. In the testing stage, it is mainly responsible for processing the abnormal images with defects, obtaining some abnormal points of the defects of underwater structures, and indicating the defect areas of the structures with a rectangular frame.

以上所述仅是本发明的优选实施方式,应当指出:对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only the preferred embodiment of the present invention, it should be pointed out that: for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made, and these improvements and modifications are also It should be regarded as the protection scope of the present invention.

Claims (6)

1.一种基于弱监督深度学习的水下构筑物缺陷检测方法,其特征在于:包括以下步骤:1. a method for detecting defects of underwater structures based on weakly supervised deep learning, is characterized in that: comprise the following steps: S1,以语义信息为标签对输入图像进行弱标注,训练弱监督下的卷积神经网络模型,对正常图像和有缺陷图像进行分类;S1, weakly label the input image with semantic information as the label, train a convolutional neural network model under weak supervision, and classify normal images and defective images; S2,利用卷积神经网络模型的第三层卷积层信息,实现深度显著性检测算法;S2, using the third-layer convolutional layer information of the convolutional neural network model to implement a deep saliency detection algorithm; S3,根据深度显著性算法的检测结果,进行迭代聚类统一检测算法,训练一个可靠的水下构筑物图像异常点分类器;S3, according to the detection result of the depth saliency algorithm, perform an iterative clustering unified detection algorithm to train a reliable classifier of abnormal points of underwater structure images; S4,将迭代聚类统一检测分类器用于水下构筑物图像数据集进行评估测试。S4, the iterative clustering unified detection classifier is used for the evaluation test on the underwater structure image dataset. 2.根据权利要求1所述的一种基于弱监督深度学习的水下构筑物缺陷检测方法,其特征在于:S2中深度显著性检测算法步骤如下:2. a kind of underwater structure defect detection method based on weak supervision deep learning according to claim 1, is characterized in that: in S2, the step of depth saliency detection algorithm is as follows: S21,将卷积神经网络模型中卷积层中的第三层t的特征图作为生成显著点的中间图像ImS21, using the feature map of the third layer t in the convolutional layer in the convolutional neural network model as the intermediate image Im for generating the salient point; S22,使用最大过滤器查找Im中的局部最大值,并将其保存到列表L中;S22, use the maximum filter to find the local maximum value in Im , and save it in the list L; S23,按强度的降序排序L,强度表示为strength(x),其中x为L中的每一个元素;S23, sort L in descending order of strength, and the strength is expressed as strength(x), where x is each element in L; S24,对L中的每一个元素x做如下操作:首先,将x添加进列表γ以实现初始化,然后,遍历每个元素x的8邻接域里同属于Im的元素y,若公式strength(y)∈(strength(x)-z,strength(x))成立,则令并将标记为候选点,若则将作为有效最大值加入到列表γ中;其次,遍历元素的8邻接域里的每个元素y,若邻接点y的强度处于区间(strength(x)-z,strength(x))中,亦将其标记为候选点;继续访问该候选点的8邻接域,重复如上标记操作,直到发现某个候选点的所有邻接点y的强度满足strength(y)<strength(x)-z,结束本过程,其中,z表示本算法中对灰度值的容忍度,由在最大值附近种子填充的范围来确定,如果被访问的邻接点y已存在于列表L中,则将它作为较弱的最大值从中L移除;最后,通过计算γ中所有元素的几何中心来产生一个显著点,几何中心由较宽图像区域中的最大值表征。S24, perform the following operations on each element x in L: first, add x to the list γ to achieve initialization, then traverse the elements y that belong to the same Im in the 8 adjacent fields of each element x, if the formula strength( y)∈(strength(x)-z,strength(x)) holds, then let and will marked as candidate points, if will is added to the list γ as a valid maximum value; second, traverse the elements For each element y in the 8-adjacent domain of , if the strength of the adjacent point y is in the interval (strength(x)-z, strength(x)), it is also marked as a candidate point; continue to visit the 8-adjacency of the candidate point domain, repeat the above marking operation until it is found that the strength of all adjacent points y of a candidate point satisfies strength(y)<strength(x)-z, and the process ends, where z represents the tolerance of the gray value in this algorithm degree, determined by the range seeded around the maximum, and if the visited neighbor y already exists in the list L, it is removed from L as the weaker maximum; finally, by computing all elements in γ to generate a salient point, the geometric center is characterized by the maximum value in the wider image area. 3.根据权利要求1所述的一种基于弱监督深度学习的水下构筑物缺陷检测方法,其特征在于:S3中迭代聚类统一算法步骤如下:3. a kind of underwater structure defect detection method based on weak supervision deep learning according to claim 1, is characterized in that: in S3, iterative clustering unified algorithm steps are as follows: S31,令In和Ia分别表示正常图像和有缺陷图像训练集;S31, let I n and I a represent the normal image and the defective image training set, respectively; S32,设Pn和Pa为利用DSD算法从In和Ia中提取的显著点集合;S32, let P n and P a be the salient point sets extracted from In and I a by using the DSD algorithm; S33,迭代执行下述操作S次,其中S>1:对每一幅正常图像In,提取Pn的点状交叉特征PCFM,并将其点状交叉特征采用K-means聚类为正常集簇Q,簇内元素用Nq,q=1,2,...Q表示;对每一幅有缺陷图像Ia,提取Pa的点状交叉特征表示,并将其点状交叉特征采用K-means聚类为异常集簇R,簇内元素用Ar,r=1,2,...R表示;S33, iteratively execute the following operations S times, where S>1: for each normal image I n , extract the point-like cross feature PCFM of P n , and use K-means to cluster the point-like cross feature into a normal set Cluster Q, the elements in the cluster are represented by N q , q=1, 2,...Q; for each defective image I a , the point-like cross feature representation of P a is extracted, and its point-like cross feature is adopted K-means clustering is an abnormal cluster R, and the elements in the cluster are represented by A r , r=1, 2,...R; S34,令Q=Q·S,R=R·S;S34, let Q=Q·S, R=R·S; S35,对异常集簇R中的每一个元素Ar,r=1,2,...R做如下操作:在Ar和Nq之间,计算各个点之间的距离drq(Ar,Nq),q=1,2,...Q,然后按升序对距离drq排序;接着,计算归一化距离drq12=drq1/drq2,其中drq1和drq2分别表示Ar到其最近的相邻集簇中点Nq1和Nq2之间的距离,即使用聚类质心之间的欧几里德距离来估计聚类之间的距离; S35 , perform the following operations on each element A r , r = 1, 2, . , N q ), q=1,2,...Q, then sort the distances d rq in ascending order; then, calculate the normalized distance d rq12 =d rq1 /d rq2 , where d rq1 and d rq2 represent A, respectively The distance between r and its nearest neighbor cluster midpoints N q1 and N q2 , that is, the distance between clusters is estimated using the Euclidean distance between cluster centroids; S36,从S35得到的所有距离drq12中估计出平均归一化距离dq12S36, the average normalized distance d q12 is estimated from all the distances d rq12 obtained in S35; S37,对异常集簇中的每一个元素Ar做如下操作:若公式drq12<dq12成立,则将该元素Ar从异常集簇中剔除,归入正常集簇。S37, perform the following operations on each element Ar in the abnormal cluster: if the formula d rq12 <d q12 is established, remove the element Ar from the abnormal cluster and classify it into the normal cluster. 4.根据权利要求1所述的一种基于弱监督深度学习的水下构筑物缺陷检测方法,其特征在于:S4中,评估测试通过K-means聚类方法把与水下构筑物缺陷相关的显著点检测并标识出来。4. a kind of underwater structure defect detection method based on weakly supervised deep learning according to claim 1, is characterized in that: in S4, the evaluation test passes the K-means clustering method to the salient points relevant to the underwater structure defect detected and identified. 5.根据权利要求4所述的一种基于弱监督深度学习的水下构筑物缺陷检测方法,其特征在于:具体步骤为:将被分类为有缺陷的水下构筑物图像设置为输入图像,对中的每一个显著点m做如下操作:提取点m的点状交叉特征PCFM特征;然后计算m到所有集簇即Ar∪Nq聚类中各点的距离;根据m的K个最近邻接点中所属的类进行多数表决,将检测到的显著点分类为正常或异常点。5. A weakly supervised deep learning-based underwater structure defect detection method according to claim 4, characterized in that: the concrete steps are: to be classified as a defective underwater structure image set to the input image, right Do the following operations for each salient point m in: extract the point-like cross feature PCFM feature of point m; then calculate the distance from m to all clusters, that is, each point in the A r ∪ N q cluster; according to the K nearest neighbors of m The classes to which the points belong are voted by majority to classify detected salient points as normal or abnormal. 6.根据权利要求5所述的一种基于弱监督深度学习的水下构筑物缺陷检测方法,其特征在于:用矩形框指示水下构筑物的缺陷区域。6 . A weakly supervised deep learning-based defect detection method for underwater structures according to claim 5 , wherein a rectangular frame is used to indicate the defect area of the underwater structures. 7 .
CN201910361732.6A 2019-04-30 2019-04-30 A kind of underwater works defect inspection method based on Weakly supervised deep learning Pending CN110084804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910361732.6A CN110084804A (en) 2019-04-30 2019-04-30 A kind of underwater works defect inspection method based on Weakly supervised deep learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910361732.6A CN110084804A (en) 2019-04-30 2019-04-30 A kind of underwater works defect inspection method based on Weakly supervised deep learning

Publications (1)

Publication Number Publication Date
CN110084804A true CN110084804A (en) 2019-08-02

Family

ID=67418083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910361732.6A Pending CN110084804A (en) 2019-04-30 2019-04-30 A kind of underwater works defect inspection method based on Weakly supervised deep learning

Country Status (1)

Country Link
CN (1) CN110084804A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508106A (en) * 2020-12-08 2021-03-16 大连海事大学 Underwater image classification method based on convolutional neural network
CN112700435A (en) * 2021-01-12 2021-04-23 华南理工大学 Wall defect detection method based on deep learning
CN114372983A (en) * 2022-03-22 2022-04-19 武汉市富甸科技发展有限公司 Shielding box coating quality detection method and system based on image processing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097315A (en) * 2016-06-03 2016-11-09 河海大学常州校区 A kind of underwater works crack extract method based on sonar image
CN108399406A (en) * 2018-01-15 2018-08-14 中山大学 The method and system of Weakly supervised conspicuousness object detection based on deep learning

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097315A (en) * 2016-06-03 2016-11-09 河海大学常州校区 A kind of underwater works crack extract method based on sonar image
CN108399406A (en) * 2018-01-15 2018-08-14 中山大学 The method and system of Weakly supervised conspicuousness object detection based on deep learning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DIMITRIS K. IAKOVIDIS等: "Detecting and Locating Gastrointestinal Anomalies Using Deep Learning and Iterative Cluster Unification", 《IEEE TRANSACTIONS ON MEDICAL IMAGING》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508106A (en) * 2020-12-08 2021-03-16 大连海事大学 Underwater image classification method based on convolutional neural network
CN112508106B (en) * 2020-12-08 2024-05-24 大连海事大学 Underwater image classification method based on convolutional neural network
CN112700435A (en) * 2021-01-12 2021-04-23 华南理工大学 Wall defect detection method based on deep learning
CN112700435B (en) * 2021-01-12 2023-04-07 华南理工大学 Wall defect detection method based on deep learning
CN114372983A (en) * 2022-03-22 2022-04-19 武汉市富甸科技发展有限公司 Shielding box coating quality detection method and system based on image processing
CN114372983B (en) * 2022-03-22 2022-05-24 武汉市富甸科技发展有限公司 Shielding box coating quality detection method and system based on image processing

Similar Documents

Publication Publication Date Title
Cao et al. A pixel-level segmentation convolutional neural network based on deep feature fusion for surface defect detection
Deng et al. Concrete crack detection with handwriting script interferences using faster region‐based convolutional neural network
Wen et al. A novel method based on deep convolutional neural networks for wafer semiconductor surface defect inspection
KR102749767B1 (en) Detecting defects in semiconductor specimens using weak labeling
Xu et al. Recognition of rust grade and rust ratio of steel structures based on ensembled convolutional neural network
Yao et al. A feature memory rearrangement network for visual inspection of textured surface defects toward edge intelligent manufacturing
CN110648310B (en) Weak supervision casting defect identification method based on attention mechanism
Wu et al. Surface crack detection based on image stitching and transfer learning with pretrained convolutional neural network
CN111860106B (en) Unsupervised bridge crack identification method
CN110084804A (en) A kind of underwater works defect inspection method based on Weakly supervised deep learning
Fan et al. Pavement defect detection with deep learning: A comprehensive survey
Wang et al. Pixel-wise fabric defect detection by CNNs without labeled training data
CN109543676A (en) A kind of print-wheel type water meter Number character recognition method based on image procossing
CN109165643A (en) A kind of licence plate recognition method based on deep learning
WO2020211823A1 (en) Model training method and device, and defect detection method and device
Li et al. A grid‐based classification and box‐based detection fusion model for asphalt pavement crack
CN112488128A (en) Bezier curve-based detection method for any distorted image line segment
Liu et al. AFDet: Toward more accurate and faster object detection in remote sensing images
CN111833313A (en) Method and system for surface defect detection of industrial products based on deep active learning
Cheng et al. TL-SDD: A transfer learning-based method for surface defect detection with few samples
CN110349119B (en) Pavement disease detection method and device based on edge detection neural network
CN115035081B (en) Industrial CT-based metal internal defect dangerous source positioning method and system
CN116486231A (en) Concrete crack detection method based on improved YOLOv5
Li et al. Surface Defect Detection of Seals Based on K‐Means Clustering Algorithm and Particle Swarm Optimization
Huang et al. Drone-based car counting via density map 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802

RJ01 Rejection of invention patent application after publication