CN116778260A - Aerospace rivet flushness detection method, device and system based on AdaBoost integrated learning - Google Patents
Aerospace rivet flushness detection method, device and system based on AdaBoost integrated learning Download PDFInfo
- Publication number
- CN116778260A CN116778260A CN202311038170.4A CN202311038170A CN116778260A CN 116778260 A CN116778260 A CN 116778260A CN 202311038170 A CN202311038170 A CN 202311038170A CN 116778260 A CN116778260 A CN 116778260A
- Authority
- CN
- China
- Prior art keywords
- rivet
- point
- training set
- point cloud
- flushness
- 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.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Image Analysis (AREA)
Abstract
本发明公开了一种基于AdaBoost集成学习的航空铆钉齐平度检测方法,包括:获取已标注铆钉区域的点云模型训练集,计算单点局部特征;基于AdaBoost集成学习算法,使用训练集生成用于分割铆钉区域的强分类器;获取待测含铆钉区域的点云模型,对点云模型的每个单点进行临近点查询,并计算局部特征,记为数据集合;将集合输入强分类器中进行铆钉区域分割,得到分割后的铆钉区域和非铆钉区域;对铆钉区域和非铆钉区域进行目标面的齐平度计算。本发明使用多次迭代的弱分类器形成的强分类器对蒙皮表面的点云数据进行语义分割,进而实现高精度的铆钉齐平度计算,从而更好地控制飞机铆接质量。
The invention discloses a method for detecting the flushness of aviation rivets based on AdaBoost integrated learning, which includes: obtaining a point cloud model training set of marked rivet areas , calculate the local features of a single point; based on the AdaBoost integrated learning algorithm, using the training set Generate a strong classifier for segmenting rivet areas; obtain a point cloud model of the rivet-containing area to be tested , for the point cloud model every single point of Perform nearby point query and calculate local features, recorded as a data set ;will gather Input the strong classifier to segment the rivet area and obtain the segmented rivet area. and non-rivet areas ;For rivet area and non-rivet areas Calculate the flushness of the target surface. The present invention uses a strong classifier formed by multiple iterations of weak classifiers to semantically segment point cloud data on the skin surface, thereby achieving high-precision rivet flushness calculation, thereby better controlling aircraft riveting quality.
Description
技术领域Technical field
本发明涉及飞机铆钉数字化检测的技术领域,具体而言涉及一种基于AdaBoost集成学习的航空铆钉齐平度检测方法、装置及系统。The present invention relates to the technical field of digital detection of aircraft rivets, and specifically relates to an aviation rivet flushness detection method, device and system based on AdaBoost integrated learning.
背景技术Background technique
在飞机制造过程中,铆接是一项关键的工艺,用于将不同部件或结构元素牢固连接在一起。然而,由于制造和装配的复杂性,飞机铆接中可能存在铆钉的齐平度问题。铆钉的齐平度指的是铆接表面与铆钉头之间的平面度或垂直度差异。这对飞机的气动外形和性能有着重要的影响。目前,飞机蒙皮上的铆钉数量众多,使用传统人工方法进行检测效率低、可靠性低,并且无法实现定量检测,过于依赖经验。虽然基于图像处理的方法可以识别铆钉,但图像缺乏三维信息,无法进行齐平度的检测。In aircraft manufacturing, riveting is a key process used to securely join different parts or structural elements together. However, due to the complexity of manufacturing and assembly, rivet flushness issues may exist in aircraft riveting. Rivet flushness refers to the difference in flatness or verticality between the riveting surface and the rivet head. This has an important impact on the aerodynamic shape and performance of the aircraft. At present, there are a large number of rivets on the aircraft skin. The traditional manual method for detection is inefficient and reliable. It cannot achieve quantitative detection and relies too much on experience. Although methods based on image processing can identify rivets, the images lack three-dimensional information and cannot detect flushness.
三维激光扫描技术可以高效获取飞机蒙皮表面的三维信息,具有高精度和准确反映真实形状的优势。然而,由于蒙皮表面的铆钉点与非铆钉点之间的差异微小,传统的点云分割算法难以有效区分铆钉区域,从而进行齐平度的计算。因此,本研究旨在针对飞机蒙皮表面的铆钉齐平度定量检测问题;因此,本发明提出了一种基于数字孪生的装配间隙实时测量方法来解决以上问题。Three-dimensional laser scanning technology can efficiently obtain three-dimensional information on the aircraft skin surface, with the advantages of high precision and accurate reflection of the true shape. However, due to the small difference between rivet points and non-rivet points on the skin surface, it is difficult for traditional point cloud segmentation algorithms to effectively distinguish rivet areas to calculate flushness. Therefore, this research aims to solve the problem of quantitative detection of rivet flushness on the aircraft skin surface; therefore, the present invention proposes a real-time measurement method of assembly gaps based on digital twins to solve the above problems.
发明内容Contents of the invention
为解决上述问题,提出一种基于AdaBoost集成学习的航空铆钉齐平度检测方法、装置及系统,旨在解决传统的点云分割算法对蒙皮表面的铆钉点与非铆钉点之间的微小差异难以有效区分铆钉区域,从而进行齐平度的计算的问题;本发明基于AdaBoost集成学习算法,使用多次迭代的弱分类器形成的强分类器对蒙皮表面的点云数据进行语义分割,进而实现高精度的铆钉齐平度计算,从而更好地控制飞机铆接质量,提高飞机性能。In order to solve the above problems, a method, device and system for aerospace rivet flushness detection based on AdaBoost integrated learning are proposed, aiming to solve the small differences between rivet points and non-rivet points on the skin surface caused by the traditional point cloud segmentation algorithm. It is difficult to effectively distinguish the rivet area to calculate flushness; this invention is based on the AdaBoost integrated learning algorithm and uses a strong classifier formed by multiple iterations of weak classifiers to semantically segment the point cloud data on the skin surface, and then Achieve high-precision rivet flush calculation to better control aircraft riveting quality and improve aircraft performance.
为达成上述目的,本发明提供如下技术方案:本发明提出的一种基于AdaBoost集成学习的航空铆钉齐平度检测方法,包括以下步骤:In order to achieve the above objectives, the present invention provides the following technical solutions: The invention proposes an aviation rivet flushness detection method based on AdaBoost integrated learning, which includes the following steps:
S1、获取已标注铆钉区域的点云模型训练集,计算训练集/>中单点局部特征;S1. Obtain the point cloud model training set with marked rivet area , calculate the training set/> Single point local features;
S2、基于AdaBoost集成学习算法,使用训练集中单点局部特征生成用于分割铆钉区域的强分类器;S2, based on the AdaBoost integrated learning algorithm, using the training set The single-point local feature in the medium generates a strong classifier for segmenting rivet regions;
S3、获取待测的含铆钉区域的点云模型,对点云模型/>的每个单点/>进行临近点查询,并计算点云模型/>的单点局部特征,记为数据集合/>;S3. Obtain the point cloud model of the rivet-containing area to be tested. , for point cloud model/> Every single point/> Perform nearby point query and calculate point cloud model/> The single-point local feature of is recorded as a data set/> ;
S4、将数据集合输入强分类器中进行铆钉区域分割,得到分割后的铆钉区域和非铆钉区域;S4. Collect data Input the strong classifier to segment the rivet area, and obtain the segmented rivet area and non-rivet area;
S5、对铆钉区域和非铆钉区域/>进行目标面的齐平度计算得到检测结果。S5, rivet area and non-rivet areas/> Calculate the flushness of the target surface to obtain the detection results.
进一步地,步骤S1中获取已标注铆钉区域的点云模型训练集,计算训练集/>中单点局部特征,具体包括以下步骤:Further, in step S1, the point cloud model training set of the marked rivet area is obtained. , calculate the training set/> Single-point local features include the following steps:
S11、对训练集的第i个点/>使用kd-tree进行临近点查询;S11. For the training set The i-th point/> Use kd-tree for nearby point query;
S12、基于临近点计算目标点的局部特征,包括高斯曲率/>,PFH描述子/>和密度/>;S12. Calculate target points based on nearby points local features, including Gaussian curvature/> , PFH descriptor/> and density/> ;
S13、记单点的样本特征为 />,记训练集/>的数据集为,其中/>是训练集中样本数量,/>,为第i点的样本特征,/>为第i点的标记集合,/>。S13. Record single points The sample characteristics are/> , record the training set/> The data set is , of which/> is the number of samples in the training set,/> , is the sample feature of point i,/> is the mark set of point i,/> .
进一步地,步骤S2中使用训练集中单点局部特征生成用于分割铆钉区域的强分类器,具体包括以下步骤:Further, in step S2, the training set is used The single-point local feature in the medium generates a strong classifier for segmenting the rivet area, which specifically includes the following steps:
S21、初始化样本权重,将训练集中每个样本的权重初始化为/>;S21. Initialize the sample weight and set the weight of each sample in the training set Initialized to/> ;
S22、开始迭代训练弱分类器模型,为第t次迭代的弱分类器模型,其中/>是样本特征的集合,/>,设需要迭代T次,则/>;S22. Start iterative training of the weak classifier model. is the weak classifier model of the t-th iteration, where/> is a set of sample features,/> , assuming it needs to be iterated T times, then/> ;
S23、计算弱分类器模型的分类误差率,其计算公式如下所示:S23. Calculate the classification error rate of the weak classifier model , its calculation formula is as follows:
; ;
其中,是样本特征 />的真实类别,/>是弱分类器模型/>对样本特征的分类结果,/>为当前样本权重;in, Is the sample feature/> The true category of /> Is a weak classifier model/> Characteristics of the sample classification results,/> is the current sample weight;
S24、计算弱分类器模型的权重,其计算公式如下所示:S24. Calculate the weight of the weak classifier model , its calculation formula is as follows:
; ;
S25、根据当前弱分类器模型的分类准确率更新样本权重,其计算公式如下所示:S25. Update the sample weight according to the classification accuracy of the current weak classifier model. , its calculation formula is as follows:
; ;
S26、重复S22~S25进行T轮迭代,得到了个弱分类器模型和对应的权重/>,再将它们组合成一个强分类器,其计算公式如下所示:S26. Repeat S22~S25 for T rounds of iterations, and get weak classifier model and corresponding weights/> , and then combine them into a strong classifier, whose calculation formula is as follows:
; ;
其中,表示将/>为其符号,即当/>时为+1,当/>时为 -1。in, Indicates that/> is its symbol, that is, when/> +1 when /> time is -1.
进一步地,步骤S22中的弱分类器模型包括两个卷积层和/>,每个卷积层后有一个最大池化层/>、/>,在/>后配置一个全连接层FC。Further, the weak classifier model in step S22 includes two convolutional layers and/> , there is a max pooling layer after each convolutional layer/> ,/> , in/> Then configure a fully connected layer FC.
进一步地,所述卷积层的卷积核大小为3x3,卷积核深度为6,步长为1,所述最大池化层/>的卷积核大小为2x2,步长为2,所述卷积层/>的卷积核大小为3x3,卷积核深度为6,步长为1,所述最大池化层/>的卷积核大小为2x2,步长为2。Further, the convolutional layer The convolution kernel size is 3x3, the convolution kernel depth is 6, the stride is 1, and the maximum pooling layer/> The convolution kernel size is 2x2, the stride is 2, and the convolution layer/> The convolution kernel size is 3x3, the convolution kernel depth is 6, the stride is 1, and the maximum pooling layer/> The convolution kernel size is 2x2 and the stride is 2.
进一步地,步骤S3中点云模型的单点局部特征包括计算该点高斯曲率/>和PFH描述子/>和局部密度/>,记为数据集合/>。Further, in step S3, the point cloud model The single-point local characteristics include calculating the Gaussian curvature of the point/> and PFH descriptor/> and local density/> , recorded as data set/> .
进一步地,对铆钉区域和非铆钉区域/>进行目标面的齐平度计算得到检测结果,具体包括以下步骤:Furthermore, for the rivet area and non-rivet areas/> Calculate the flushness of the target surface to obtain the detection results, which includes the following steps:
S51、使用区域增长算法对铆钉区域进行分割,将/>分割成/>个独立铆钉区域,/>;S51. Use the region growing algorithm to map the rivet area To split, ///> Split into/> independent rivet area ,/> ;
S52、使用RANSAC对非铆钉区域进行平面拟合,拟合出的平面记为/>;S52. Use RANSAC for non-rivet areas Perform plane fitting, and the fitted plane is recorded as/> ;
S53、计算中的每个点/>对平面/>的垂直距离/>,/>,/>为/>中点的数量;S53. Calculation every point in/> To the plane/> vertical distance/> ,/> ,/> for/> number of midpoints;
S54、计算区域中每个点对平面/>的垂直距离/>的平均值/>,即得到第i个铆钉/>的高度。S54, calculation Each point in the region is aligned with the plane/> vertical distance/> average/> , that is, get the i-th rivet/> the height of.
该技术方案还提供了一种用于实现所述的基于AdaBoost集成学习的航空铆钉齐平度检测方法的装置,包括:The technical solution also provides a device for implementing the aviation rivet flushness detection method based on AdaBoost integrated learning, including:
训练集局部特征提取模块,所述训练集局部特征提取模块用于获取已标注铆钉区域的点云模型训练集,计算训练集/>中单点局部特征;A training set local feature extraction module. The training set local feature extraction module is used to obtain a point cloud model training set with annotated rivet areas. , calculate the training set/> Single point local features;
强分类器生成模块,所述强分类器生成模块用于基于AdaBoost集成学习算法,使用训练集中单点局部特征生成用于分割铆钉区域的强分类器;Strong classifier generation module, the strong classifier generation module is used based on the AdaBoost integrated learning algorithm, using the training set The single-point local feature in the medium generates a strong classifier for segmenting rivet regions;
点云模型局部特征提取模块,所述点云模型局部特征提取模块用于获取待测的含铆钉区域的点云模型,对点云模型/>的每个单点/>进行临近点查询,并计算点云模型的单点局部特征,记为数据集合/>;The point cloud model local feature extraction module is used to obtain the point cloud model of the rivet-containing area to be measured. , for point cloud model/> Every single point/> Perform nearby point query and calculate point cloud model The single-point local feature of is recorded as a data set/> ;
铆钉区域分割模块,所述铆钉区域分割模块用于将数据集合输入强分类器中进行铆钉区域分割,得到分割后的铆钉区域和非铆钉区域/>;The rivet area segmentation module is used to input the data set into a strong classifier to segment the rivet area and obtain the segmented rivet area. and non-rivet areas/> ;
获取检测结果模块,所述获取检测结果模块用于对铆钉区域和非铆钉区域进行目标面的齐平度计算得到检测结果。Acquire the detection result module, which is used to detect the rivet area and non-rivet areas Calculate the flushness of the target surface to obtain the detection results.
该技术方案还提供了一种用于实现所述的基于AdaBoost集成学习的航空铆钉齐平度检测方法的系统,包括:The technical solution also provides a system for implementing the aviation rivet flushness detection method based on AdaBoost integrated learning, including:
处理器;processor;
存储器;memory;
以及一个或多个程序,其中所述一个或多个程序被存储在存储器中,并且被配置成由所述处理器执行,所述程序用于计算机执行上述的方法。and one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by the processor, the program being used by the computer to perform the above-mentioned method.
由上述技术方案,本发明提供了基于AdaBoost集成学习的航空铆钉齐平度检测方法、装置及系统。至少具备以下有益效果:Based on the above technical solution, the present invention provides an aviation rivet flushness detection method, device and system based on AdaBoost integrated learning. It has at least the following beneficial effects:
飞机蒙皮上的铆钉齐平度对飞机的气动外形和性能有着重要的影响,使用传统人工方法进行检测效率低、可靠性低,并且无法实现定量检测,过于依赖经验。基于图像处理的方法可以识别铆钉,但图像缺乏三维信息,无法进行齐平度的检测;三维激光扫描技术可以高效获取飞机蒙皮表面的三维信息,具有高精度和准确反映真实形状的优势;然而,由于蒙皮表面的铆钉点与非铆钉点之间的差异微小,传统的点云分割算法难以有效区分铆钉区域,从而进行齐平度的计算;因此,本发明利用三维激光扫描技术进行铆钉齐平度检测,基于AdaBoost集成学习算法,使用多次迭代的弱分类器形成的强分类器对蒙皮表面的点云数据进行语义分割,可实现对铆钉区域的准确分割,提高检测精度和效率,通过该方法,并进行齐平度计算,进而实现高精度的铆钉齐平度计算,从而更好地控制飞机铆接质量,提高飞机性能。The flushness of rivets on the aircraft skin has an important impact on the aerodynamic shape and performance of the aircraft. The use of traditional manual methods for inspection has low efficiency and low reliability, and it is impossible to achieve quantitative inspection and relies too much on experience. Methods based on image processing can identify rivets, but the image lacks three-dimensional information and cannot detect flushness; three-dimensional laser scanning technology can efficiently obtain three-dimensional information on the aircraft skin surface, and has the advantages of high precision and accurately reflecting the true shape; however, , due to the small difference between rivet points and non-rivet points on the skin surface, it is difficult for the traditional point cloud segmentation algorithm to effectively distinguish the rivet area to calculate the flushness; therefore, the present invention uses three-dimensional laser scanning technology to perform rivet flushness calculation. Flatness detection, based on the AdaBoost integrated learning algorithm, uses a strong classifier formed by multiple iterations of weak classifiers to semantically segment the point cloud data on the skin surface, which can achieve accurate segmentation of the rivet area and improve detection accuracy and efficiency. Through this method and flushness calculation, high-precision rivet flushness calculation can be achieved, thereby better controlling the quality of aircraft riveting and improving aircraft performance.
附图说明Description of drawings
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:The drawings are used to provide a further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. In the attached picture:
图1为本发明的一种基于AdaBoost集成学习的铆钉平齐度检测方法流程图;Figure 1 is a flow chart of a rivet flushness detection method based on AdaBoost integrated learning of the present invention;
图2为本发明提出的弱分类器网络结构图;Figure 2 is a structural diagram of the weak classifier network proposed by the present invention;
图3为本发明实施提供的铆钉提取结果图;Figure 3 is a rivet extraction result diagram provided by the implementation of the present invention;
图4为本发明实施提供的铆钉齐平度计算结果图;Figure 4 is a diagram showing the calculation results of rivet flushness provided by the implementation of the present invention;
图5为本发明实施提供的基于AdaBoost集成学习的铆钉平齐度检测方法的装置原理框图。Figure 5 is a schematic block diagram of the device of the rivet flushness detection method based on AdaBoost integrated learning provided by the implementation of the present invention.
图中:100训练集局部特征提取模块;200强分类器生成模块;300点云模型局部特征提取模块;400铆钉区域分割模块;500获取检测结果模块。In the picture: 100 training set local feature extraction module; 200 top classifier generation module; 300 point cloud model local feature extraction module; 400 rivet area segmentation module; 500 detection result acquisition module.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图 和具体实施方式对本发明作进一步详细的说明。借此对本申请如何应用技术手段来解决技术问题并达成技术功效的实现过程能充分理解并据以实施。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. In this way, the implementation process of how this application applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those of ordinary skill in the art can understand that all or part of the steps in implementing the methods of the above embodiments can be completed by instructing relevant hardware through programs. Therefore, this application can adopt a complete hardware embodiment, a complete software embodiment, or a combination of software and Hardware embodiments. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
请参照图1-图5,示出了本实施例的一种具体实施方式,本实施例该方法基于AdaBoost集成学习算法,使用多次迭代的弱分类器形成的强分类器对蒙皮表面的点云数据进行语义分割,进而实现高精度的铆钉齐平度计算,从而更好地控制飞机铆接质量,提高飞机性能,解决传统的点云分割算法对蒙皮表面的铆钉点与非铆钉点之间的微小差异难以有效区分铆钉区域,从而进行齐平度的计算的问题。Please refer to Figures 1 to 5, which illustrate a specific implementation of this embodiment. In this embodiment, the method is based on the AdaBoost ensemble learning algorithm and uses a strong classifier formed by multiple iterations of weak classifiers to classify the skin surface. The point cloud data is semantically segmented to achieve high-precision rivet flushness calculation, thereby better controlling the quality of aircraft riveting, improving aircraft performance, and solving the problem of traditional point cloud segmentation algorithms between rivet points and non-rivet points on the skin surface. It is difficult to effectively distinguish the rivet area due to the small differences between the rivets, so as to calculate the flushness.
请参照图1,一种基于AdaBoost集成学习的铆钉平齐度检测方法,包括如下步骤:Please refer to Figure 1, a rivet flushness detection method based on AdaBoost integrated learning, including the following steps:
S1、获取已标注铆钉区域的点云模型训练集,计算训练集/>中单点局部特征;S1. Obtain the point cloud model training set with marked rivet area , calculate the training set/> Single point local features;
具体的,步骤S1包括以下步骤:Specifically, step S1 includes the following steps:
S11、对训练集的第i个点/>使用kd-tree进行临近点查询; 查询到的/>个最近邻点记为点集/>,其中/>是目标点/>的最近邻点;S11. For the training set The i-th point/> Use kd-tree to query nearby points; query/> The nearest neighbor points are recorded as point sets/> ,of which/> Is the target point/> nearest neighbor point;
S12、基于临近点计算目标点的局部特征,包括高斯曲率/>,PFH描述子/>和密度/>;S12. Calculate target points based on nearby points local features, including Gaussian curvature/> , PFH descriptor/> and density/> ;
其中,计算目标点的高斯曲率/>,PFH描述子/>和密度/>,具体包括以下步骤:Among them, calculate the target point Gaussian curvature/> , PFH descriptor/> and density/> , specifically including the following steps:
S121、对于的第j个邻域点/>,计算其相对于目标点/>的坐标偏移向量/>:S121. For The jth neighborhood point/> , calculate its relative to the target point/> coordinate offset vector/> :
; ;
S122、对邻域点计算协方差矩阵:S122. Calculate covariance matrix for neighborhood points :
; ;
S123、对协方差矩阵进行特征值分解,得到特征值/>和/>,以及它们对应的特征向量/>和/>,计算可得高斯曲率/>:S123. Covariance matrix Perform eigenvalue decomposition to obtain eigenvalues/> and/> , and their corresponding feature vectors/> and/> , the Gaussian curvature can be calculated/> :
; ;
S124、在目标点上定义坐标系:S124, at the target point Define the coordinate system above:
; ;
其中为目标点/>的法向量,/>为/>上定义的坐标系的三个轴向;in as target point/> The normal vector of ,/> for/> The three axes of the coordinate system defined above;
; ;
其中为点/>的法向量;in for point/> normal vector;
S125、利用构成PFH算子/>;S125, use Constitute the PFH operator/> ;
S126、对步骤S121中计算出的坐标偏移向量,取/>,,计算/>处的点云密度/>,其计算公式表示如下:S126. Offset the coordinate vector calculated in step S121 , take/> , , calculate/> Point cloud density at/> , its calculation formula is expressed as follows:
; ;
S13、记单点的样本特征为 />,记训练集/>的数据集为,其中/>是训练集中样本数量,/>,为第i点的样本特征,/>为第i点的标记集合,/>。S13. Record single points The sample characteristics are/> , record the training set/> The data set is , of which/> is the number of samples in the training set,/> , is the sample feature of point i,/> is the mark set of point i,/> .
S2、基于AdaBoost集成学习算法,使用训练集中单点局部特征生成用于分割铆钉区域的强分类器;S2, based on the AdaBoost integrated learning algorithm, using the training set The single-point local feature in the medium generates a strong classifier for segmenting rivet regions;
具体的,步骤S2包括以下步骤:Specifically, step S2 includes the following steps:
S21、初始化样本权重,将训练集中每个样本的权重初始化为/>,其中/>是训练集中样本数量;S21. Initialize the sample weight and set the weight of each sample in the training set Initialized to/> , of which/> is the number of samples in the training set;
S22、开始迭代训练弱分类器模型,将当前样本权重归一化,使用当前样本权重/>训练一个弱分类器模型,/>为第t次迭代的弱分类器模型,其中/>是样本特征的集合,/>,设需要迭代T次,则/>;S22. Start iteratively training the weak classifier model and normalize the current sample weight. , using the current sample weight/> Train a weak classifier model,/> is the weak classifier model of the t-th iteration, where/> is a set of sample features,/> , assuming it needs to be iterated T times, then/> ;
具体的,弱分类器模型包括两个卷积层和/>,如图2所示,每个卷积层后有一个最大池化层/>、/>,在/>后配置一个全连接层FC;Specifically, the weak classifier model includes two convolutional layers and/> , as shown in Figure 2, there is a maximum pooling layer after each convolutional layer/> ,/> , in/> Then configure a full connection layer FC;
具体的,卷积层的卷积核大小为3x3,卷积核深度为6,步长为1,最大池化层/>的卷积核大小为2x2,步长为2,卷积层/>的卷积核大小为3x3,卷积核深度为6,步长为1,最大池化层/>的卷积核大小为2x2,步长为2;Specifically, the convolutional layer The convolution kernel size is 3x3, the convolution kernel depth is 6, the stride is 1, and the maximum pooling layer/> The convolution kernel size is 2x2, the stride is 2, and the convolution layer/> The convolution kernel size is 3x3, the convolution kernel depth is 6, the stride is 1, and the maximum pooling layer/> The convolution kernel size is 2x2 and the stride is 2;
S23、计算弱分类器模型的分类误差率,其计算公式如下所示:S23. Calculate the classification error rate of the weak classifier model , its calculation formula is as follows:
; ;
其中,是样本特征 />的真实类别,/>是弱分类器模型/>对样本特征的分类结果,/>为当前样本权重;in, Is the sample feature/> The true category of /> Is a weak classifier model/> Characteristics of the sample classification results,/> is the current sample weight;
S24、计算弱分类器模型的权重,其计算公式如下所示:S24. Calculate the weight of the weak classifier model , its calculation formula is as follows:
; ;
S25、根据当前弱分类器模型的分类准确率更新样本权重,其计算公式如下所示:S25. Update the sample weight according to the classification accuracy of the current weak classifier model. , its calculation formula is as follows:
; ;
S26、重复S22~S25进行T轮迭代,得到了个弱分类器模型和对应的权重/>,再将它们组合成一个强分类器,其计算公式如下所示:S26. Repeat S22~S25 for T rounds of iterations, and get weak classifier model and corresponding weights/> , and then combine them into a strong classifier, whose calculation formula is as follows:
; ;
其中,表示将/>为其符号,即当/>时为+1,当/>时为 -1。in, Indicates that/> is its symbol, that is, when/> +1 when /> time is -1.
S3、获取待测的含铆钉区域的点云模型,对点云模型/>的每个单点/>进行临近点查询,并计算点云模型/>的单点局部特征,记为数据集合/>;S3. Obtain the point cloud model of the rivet-containing area to be tested. , for point cloud model/> Every single point/> Perform nearby point query and calculate point cloud model/> The single-point local feature of is recorded as a data set/> ;
具体的,步骤S3中计算点云模型的单点局部特征包括计算该点高斯曲率/>和PFH描述子/>和局部密度/>,记为数据集合/>;Specifically, the point cloud model is calculated in step S3 The single-point local characteristics include calculating the Gaussian curvature of the point/> and PFH descriptor/> and local density/> , recorded as data set/> ;
首先,使用激光扫描仪获取含铆钉区域的飞机蒙皮点云模型,其次对点云模型的每个单点使用kd-tree算法进行固定数量/>的临近点查询,基于临近点计算该点高斯曲率/>,PFH描述子/>和局部密度/>,具体计算过程同S121~S126,计算结果记为集合/>。First, use a laser scanner to obtain a point cloud model of the aircraft skin in the rivet area. , secondly, for the point cloud model Each single point uses the kd-tree algorithm for a fixed number/> Query the adjacent points, calculate the Gaussian curvature of the point based on the adjacent points/> , PFH descriptor/> and local density/> , the specific calculation process is the same as S121~S126, and the calculation results are recorded as sets/> .
S4、将数据集合输入已训练好的强分类器中进行铆钉区域分割,得到每个单点样本的分类结果,即为铆钉分割结果,如图3所示,图3为本发明实施提供的铆钉提取结果图,输出分割后的点云组/>,点云组/>中包括铆钉区域/>和非铆钉区域/>,最终得到分割后的铆钉区域/>和非铆钉区域/>,如图2所示, 图中Rivet region为铆钉区域/>,Non-rivet region为非铆钉区域/>。S4. Collect data Input the trained strong classifier to perform rivet area segmentation, and obtain the classification result of each single point sample, which is the rivet segmentation result, as shown in Figure 3. Figure 3 is a rivet extraction result diagram provided by the implementation of the present invention, and the output Segmented point cloud group/> , point cloud group/> Includes rivet area/> and non-rivet areas/> , finally get the divided rivet area/> and non-rivet areas/> , as shown in Figure 2, the Rivet region in the figure is the rivet area/> , Non-rivet region is the non-rivet region/> .
S5、对铆钉区域和非铆钉区域/>进行目标面的齐平度计算得到检测结果;S5, rivet area and non-rivet areas/> Calculate the flushness of the target surface to obtain the detection results;
具体的,对铆钉区域和非铆钉区域/>进行目标面的齐平度计算得到检测结果包括以下步骤:Specifically, for the rivet area and non-rivet areas/> Calculating the flushness of the target surface to obtain the detection results includes the following steps:
S51、使用区域增长算法对铆钉区域进行分割,将/>分割成/>个独立铆钉区域,/>;S51. Use the region growing algorithm to map the rivet area To split, ///> Split into/> independent rivet area ,/> ;
S52、使用RANSAC对非铆钉区域进行平面拟合,拟合出的平面记为/>,记/>的方程为:/>;S52. Use RANSAC for non-rivet areas Perform plane fitting, and the fitted plane is recorded as/> , note/> The equation of is:/> ;
S53、对独立铆钉区域中的每个点/>计算其距离平面/>的垂直距离/>,/>,/>为/>中点的数量,其垂直距离/>的计算公式如下:S53, for independent rivet area every point in/> Calculate its distance from the plane/> vertical distance/> ,/> ,/> for/> The number of midpoints and their vertical distance/> The calculation formula is as follows:
; ;
S54、计算区域中每个点对平面/>的垂直距离/>的平均值/>,即为第i个铆钉的高度,如图4所示,图4 为本发明实施提供的铆钉齐平度计算结果图,其中平均值/>的计算公式如下:S54, calculation Each point in the region is aligned with the plane/> vertical distance/> average/> , which is the i-th rivet The height, as shown in Figure 4, Figure 4 is a diagram of the calculation results of rivet flushness provided by the implementation of the present invention, where the average value/> The calculation formula is as follows:
; ;
该技术方案还提供了一种用于实现所述的基于AdaBoost集成学习的航空铆钉齐平度检测方法的装置,如图5所示,图5为本发明实施提供的基于AdaBoost集成学习的铆钉平齐度检测方法的装置原理框图,包括:The technical solution also provides a device for implementing the aerospace rivet flushness detection method based on AdaBoost integrated learning, as shown in Figure 5. Figure 5 shows the rivet flushness detection method based on AdaBoost integrated learning provided by the implementation of the present invention. The device principle block diagram of the homogeneity detection method includes:
训练集局部特征提取模块100,所述训练集局部特征提取模块100用于获取已标注铆钉区域的点云模型训练集,计算训练集/>中单点局部特征;Training set local feature extraction module 100. The training set local feature extraction module 100 is used to obtain a point cloud model training set with labeled rivet areas. , calculate the training set/> Single point local features;
强分类器生成模块200,所述强分类器生成模块200用于基于AdaBoost集成学习算法,使用训练集中单点局部特征生成用于分割铆钉区域的强分类器;Strong classifier generation module 200. The strong classifier generation module 200 is used to use the training set based on the AdaBoost integrated learning algorithm. The single-point local feature in the medium generates a strong classifier for segmenting rivet regions;
点云模型局部特征提取模块300,所述点云模型局部特征提取模块300用于获取待测的含铆钉区域的点云模型,对点云模型/>的每个单点/>进行临近点查询,并计算点云模型/>的单点局部特征,记为数据集合/>;Point cloud model local feature extraction module 300. The point cloud model local feature extraction module 300 is used to obtain a point cloud model of the rivet-containing area to be measured. , for point cloud model/> Every single point/> Perform nearby point query and calculate point cloud model/> The single-point local feature of is recorded as a data set/> ;
铆钉区域分割模块400,所述铆钉区域分割模块400用于将数据集合输入强分类器中进行铆钉区域分割,得到分割后的铆钉区域和非铆钉区域/>;Rivet area segmentation module 400. The rivet area segmentation module 400 is used to input the data set into a strong classifier to perform rivet area segmentation and obtain the segmented rivet area. and non-rivet areas/> ;
获取检测结果模块500,所述获取检测结果模块500用于对铆钉区域和非铆钉区域/>进行目标面的齐平度计算得到检测结果。Acquire the detection result module 500, which is used to obtain the detection result module 500 for rivet area and non-rivet areas/> Calculate the flushness of the target surface to obtain the detection results.
该技术方案还提供了一种用于实现所述的基于AdaBoost集成学习的航空铆钉齐平度检测方法的系统,包括:The technical solution also provides a system for implementing the aviation rivet flushness detection method based on AdaBoost integrated learning, including:
处理器;processor;
存储器;memory;
以及一个或多个程序,其中所述一个或多个程序被存储在存储器中,并且被配置成由所述处理器执行,所述程序用于计算机执行上述的方法。and one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by the processor, the program being used by the computer to perform the above-mentioned method.
本发明基于AdaBoost集成学习算法,使用多次迭代的弱分类器形成的强分类器对蒙皮表面的点云数据进行语义分割,进而实现高精度的铆钉齐平度计算,从而更好地控制飞机铆接质量,提高飞机性能。This invention is based on the AdaBoost integrated learning algorithm and uses a strong classifier formed by multiple iterations of weak classifiers to semantically segment point cloud data on the skin surface, thereby achieving high-precision rivet flushness calculation, thereby better controlling the aircraft. riveting quality, improving aircraft performance.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. As for the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For relevant details, please refer to the description in the method section.
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and the core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the present invention There will be changes in the specific implementation methods and application scope of the ideas. In summary, the contents of this description should not be construed as limitations of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311038170.4A CN116778260B (en) | 2023-08-17 | 2023-08-17 | Aviation rivet flushness detection method, device and system based on AdaBoost ensemble learning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311038170.4A CN116778260B (en) | 2023-08-17 | 2023-08-17 | Aviation rivet flushness detection method, device and system based on AdaBoost ensemble learning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116778260A true CN116778260A (en) | 2023-09-19 |
CN116778260B CN116778260B (en) | 2023-11-17 |
Family
ID=87994793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311038170.4A Active CN116778260B (en) | 2023-08-17 | 2023-08-17 | Aviation rivet flushness detection method, device and system based on AdaBoost ensemble learning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116778260B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100287125A1 (en) * | 2008-05-21 | 2010-11-11 | Sony Corporation | Information processing unit, information processing method, and program |
CN204152918U (en) * | 2014-10-08 | 2015-02-11 | 江苏神州碳制品有限公司 | A kind of wind-force carbon brush joint rivet |
CN111028220A (en) * | 2019-12-11 | 2020-04-17 | 南京航空航天大学 | A point cloud rivet flushness automatic detection method |
CN112053426A (en) * | 2020-10-15 | 2020-12-08 | 南京航空航天大学 | Deep learning-based large-scale three-dimensional rivet point cloud extraction method |
CN114626470A (en) * | 2022-03-18 | 2022-06-14 | 南京航空航天大学深圳研究院 | Aircraft skin key feature detection method based on multi-type geometric feature operator |
CN115409886A (en) * | 2022-11-02 | 2022-11-29 | 南京航空航天大学 | A method, device and system for measuring geometric features of parts based on point cloud |
-
2023
- 2023-08-17 CN CN202311038170.4A patent/CN116778260B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100287125A1 (en) * | 2008-05-21 | 2010-11-11 | Sony Corporation | Information processing unit, information processing method, and program |
CN204152918U (en) * | 2014-10-08 | 2015-02-11 | 江苏神州碳制品有限公司 | A kind of wind-force carbon brush joint rivet |
CN111028220A (en) * | 2019-12-11 | 2020-04-17 | 南京航空航天大学 | A point cloud rivet flushness automatic detection method |
CN112053426A (en) * | 2020-10-15 | 2020-12-08 | 南京航空航天大学 | Deep learning-based large-scale three-dimensional rivet point cloud extraction method |
CN114626470A (en) * | 2022-03-18 | 2022-06-14 | 南京航空航天大学深圳研究院 | Aircraft skin key feature detection method based on multi-type geometric feature operator |
CN115409886A (en) * | 2022-11-02 | 2022-11-29 | 南京航空航天大学 | A method, device and system for measuring geometric features of parts based on point cloud |
Non-Patent Citations (3)
Title |
---|
WANG, H. L: "Quality verification of a riveting process by statistical analysis and neural network", 《EXPERIMENTAL TECHNIQUES 》, pages 34 - 42 * |
国荣辉等: "基于图像-点云映射的铆钉平齐度高效检测", 《激光与光电子学进展》, vol. 58, no. 20, pages 320 - 328 * |
杨坤等: "基于三维点云的机械加工精度自动检测方法", 《工具技术》, vol. 53, no. 4, pages 112 - 116 * |
Also Published As
Publication number | Publication date |
---|---|
CN116778260B (en) | 2023-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112101430B (en) | Anchor box generation method and lightweight target detection method for image target detection processing | |
CN112053426B (en) | A large-scale 3D rivet point cloud extraction method based on deep learning | |
CN111652216A (en) | Multi-scale object detection model method based on metric learning | |
Xie et al. | RRCNet: Rivet region classification network for rivet flush measurement based on 3-D point cloud | |
CN110663060B (en) | Method, device, system and vehicle/robot for representing environmental elements | |
CN110533716B (en) | Semantic SLAM system and method based on 3D constraint | |
CN111539422B (en) | Flight target cooperative identification method based on fast RCNN | |
CN109284779A (en) | Object detection method based on deep full convolution network | |
CN115130644A (en) | Method and device for self-supervised learning of detection network based on deep learning | |
JP5870011B2 (en) | Point cloud analysis device, point cloud analysis method, and point cloud analysis program | |
CN114493975A (en) | Method and system for target detection of seedling rotating frame | |
CN117419719A (en) | IMU-fused three-dimensional laser radar positioning and mapping method | |
CN115311502A (en) | A small sample scene classification method for remote sensing images based on multi-scale dual-stream architecture | |
Sahloul et al. | An accurate and efficient voting scheme for a maximally all-inlier 3D correspondence set | |
CN111812670B (en) | A single-photon lidar spatial transformation noise judgment, filtering method and device | |
CN115147834B (en) | Point cloud-based plane feature extraction method, device and equipment for airplane stringer | |
CN107578448B (en) | A CNN-based method for identifying the number of spliced surfaces contained in uncalibrated surfaces | |
Durasov et al. | Enabling uncertainty estimation in iterative neural networks | |
CN116778260B (en) | Aviation rivet flushness detection method, device and system based on AdaBoost ensemble learning | |
Hou et al. | Robust dense registration of partial nonrigid shapes | |
CN110942077A (en) | Feature line extraction method based on weight local change degree and L1 median optimization | |
CN107220589A (en) | A kind of sequence Aircraft Target Recognition based on ELM and HMM | |
CN113311430A (en) | Swarm unmanned aerial vehicle quantity estimation and track generation method | |
CN117974566A (en) | Transmission line key component defect detection method and system and electronic equipment | |
CN113316080B (en) | Indoor positioning method based on Wi-Fi and image fusion fingerprint |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |