Geometric feature recognition and extraction method for complex thin-walled part
Through the geometric feature recognition method combined with preprocessing and multi-view and three-dimensional point cloud technology, the problem of insufficient recognition accuracy of complex thin-walled parts is solved, efficient recognition and extraction is achieved, and the reuse rate and manufacturing efficiency of part geometric features are improved.
Patent Information
- Application Number
- CN202411172645.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-23
AI Technical Summary
Traditional geometric feature recognition methods are difficult to efficiently and accurately identify the complex geometric shapes of complex thin-walled parts, resulting in insufficient recognition accuracy and inefficient efficiency, which cannot meet the needs of modern manufacturing for high-precision and diversified parts.
Using pre-processing, voxelization, multi-view and three-dimensional point cloud extraction technology, combined with navigable small-world network algorithm, the geometric feature vectors of complex thin-walled parts are identified and extracted, and the geometric feature library is constructed to achieve rapid identification and rapid identification of similar parts and extract.
It improves the accuracy and efficiency of identification of geometric features of complex thin-walled parts, enhances the reuse rate of part geometric features, shortens design and processing time, reduces design costs, and improves manufacturing efficiency.
Smart Images

Figure CN119007185A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of complex thin-walled parts and part geometric feature recognition, and in particular to a method for recognizing and extracting geometric features of complex thin-walled parts. Background Art
[0002] In modern manufacturing, especially in aerospace, precision instruments and other fields, complex thin-walled parts have attracted much attention due to their unique structural characteristics and wide application needs. Such parts usually have the characteristics of multiple product categories and large structural differences. Their geometric shapes are complex and changeable, which puts extremely high demands on processing accuracy and manufacturing technology. Therefore, efficiently and accurately identifying and extracting the geometric features of these complex thin-walled parts has become a key technical challenge in the design, manufacturing and quality control links.
[0003] Traditional geometric feature recognition methods are mostly simple shape rules, such as cylinders, planes, etc., and have limited processing capabilities for complex free-form surfaces and thin-walled structures. With the rapid development of computer-aided design (CAD) and computer graphics, model feature recognition methods have gradually emerged, but when faced with highly complex and irregular geometric shapes, there are still problems such as insufficient recognition accuracy and low efficiency.
[0004] In recent years, with the innovative design and precision manufacturing of a large number of high-precision spacecraft, how to effectively reuse the geometric features of diverse parts and ensure that design engineers can quickly and accurately locate the required features has become the key to improving R&D efficiency and innovation capabilities. In this context, the revolutionary leap in artificial intelligence and machine learning technology has opened up a new path to solve the problem of geometric feature recognition and extraction of complex thin-walled parts.
[0005] The invention with the publication number CN118351127A discloses a three-dimensional point cloud segmentation method for production line part identification, including the following steps: for a certain production line to be identified, a VFH sample library containing all part point clouds of the production line scene is constructed in advance; the two-dimensional image data of the production line is collected, and the target detection based on deep learning is performed to obtain the region of interest, and the three-dimensional point cloud is restored and preprocessed; the preprocessed production line point cloud is input into the supervoxel clustering algorithm combined with edge information to generate supervoxels; the supervoxels are input into the regional growth segmentation algorithm based on the combination of point cloud color and concave-convex features to segment the production line part point cloud; the segmented production line part point cloud is matched with the production line part point cloud in the VFH sample library to realize the production line part point cloud identification. The method can generate supervoxels with boundaries that better adhere to the object boundaries, and the regional growing algorithm has better effects, and a technical route for production line part identification is proposed. Summary of the invention
[0006] The purpose of the present invention is to disclose a method for identifying and extracting geometric features of complex thin-walled parts, which realizes the reuse of existing part geometric feature models and the rapid identification and extraction of similar part geometric feature models. It can identify similar part geometric features of an input complex thin-walled part model and push part geometric feature models with high similarity to operators, thereby improving the operator's reuse rate of existing part geometric features and providing important data support for subsequent process optimization design.
[0007] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0008] A method for identifying and extracting geometric features of complex thin-walled parts, the method comprising the following steps:
[0009] S1, preprocessing the input complex thin-walled part model and the existing part geometric feature model; specifically, classifying the part geometric features according to the function and structure of the complex thin-walled part geometric features in the part, encoding all the classified part geometric features to form their own unique ID numbers, integrating the encoded part geometric features to form a part geometric feature library;
[0010] S2, voxelize the preprocessed part model and extract the multi-view and three-dimensional point cloud modes of the part geometric feature model respectively; specifically, voxelize the preprocessed complex thin-walled part model to obtain the voxelized mode of the complex thin-walled part model; set the projection viewpoints from different angles, use the projection method to obtain the multi-view mode of the complex thin-walled part model, and then use the three-dimensional modeling software to convert the part model format, and use Open3D to obtain the three-dimensional point cloud mode of the complex thin-walled part model;
[0011] S3, extracting feature vectors of voxelized mode, multi-view mode and 3D point cloud mode of complex thin-walled part model, and fusing the extracted feature vectors of the three modes;
[0012] S4, based on the part geometric feature library, uses the navigable small-world network algorithm to identify similar geometric features of the input complex thin-walled part model;
[0013] S5, traverse all the part geometric feature models in the part geometric feature library, obtain geometric feature models similar to the features of the input complex thin-walled part model, and output and extract the ID number of the part geometric feature with the highest similarity.
[0014] Step S1 further comprises:
[0015] Step S11, performing a standardization operation on the preprocessed complex thin-walled part model, includes the following sub-steps:
[0016] Translate the complex thin-walled part model to place the center of gravity of the complex thin-walled part model at the origin of the absolute coordinate system; rotate and flip the complex thin-walled part model at different angles with the center of gravity of the part model as the center to align the complex thin-walled part model in the standard coordinate plane; scale the complex thin-walled part model proportionally to normalize the complex thin-walled part model so that the dimensions of the complex thin-walled part model are all of the standard unit size; the standardization process of the complex thin-walled part model is defined as:
[0017] ω(x, y, z) = a -1 ·D·R·(I - m p )
[0018] where a is the magnitude of the scaling factor of the complex thin-walled part model, D represents a diagonal matrix with flip invariance, R represents a rotation matrix after rotation transformation, I represents the identity matrix, and m p is the center of gravity of the complex thin-walled part model;
[0019] Step S12: For the feature structure of the complex thin-walled part geometry in the part, construct a classification rule for part geometric features based on the part geometric features carried in the solid part machining, encode and classify the part geometric features, and combine them to form a part geometric feature library.
[0020] Furthermore, in step S2, the process of voxelizing the preprocessed complex thin-walled part model includes:
[0021] Convert a continuous three-dimensional space R 3 into a discrete space D in a block form 3 , where each voxel in the discrete space is a cube, and the voxel point (x, y, z) corresponds to all points in a continuous space (u, v, w) in the original three-dimensional coordinate system, where x - 1 < u ≤ x, y - 1 < v ≤ y, z - 1 < w ≤ z, to obtain the spatial distribution information of a three-dimensional model. Assign a binary value to each voxel, and use 0 or 1 to mark whether the voxel is occupied by the model;
[0022] Preset the width of a single voxel, and the size R of the voxel space is used as the voxelization granularity. The larger R is, the finer and more realistic the model is, and the smaller R is, the coarser the model is;
[0023] Use the selected voxelization granularity R value to magnify the model in the original unit space;
[0024] According to the size of each voxel, map the continuous points (x, y, z) on the three-dimensional grid model to the voxel (x′, y′, z′);
[0025] Different processing strategies are adopted for edges of different lengths: if the length l of the edge is less than the preset voxel width, when the two endpoints of the edge fall in the same voxel, only the voxel point is included in the edge voxel set; if the two endpoints are distributed in two adjacent voxels, both voxel points are added to the set; if the length l of the edge exceeds the preset voxel width, the edge is divided into n equal parts by the equal division method. l Segments, ensure that the length of each edge is not greater than the voxel width, then voxelize the segmented segments and summarize all related voxel points into the edge voxel set;
[0026] For each triangular facet, two strategies are adopted according to the relationship between the facet edge length and the voxel width: if the lengths of all three sides of the facet do not exceed the voxel width, all the vertices constituting the facet are directly voxelized, and the obtained voxel points are collected and added to the face voxel set; if there is at least one edge in the facet that exceeds the voxel width, starting from the longest edge, the scan line algorithm is used to advance along the longest edge, and gradually go deeper into the facet in a direction parallel to the other set of edges, and then the edge voxelization method is used for voxelization, and all the points finally obtained are added to the face voxel set, and deduplication is performed.
[0027] Furthermore, in step S2, the process of obtaining the multi-view mode of the complex thin-walled part model by using the projection method includes:
[0028] Taking the center of gravity of the complex thin-walled part model as the origin, multiple viewpoints are set. The viewpoints are located at the center of the six faces of the complex thin-walled part model, namely, the top, bottom, left, right, front, and back. Two auxiliary viewpoints are set on both sides of the diagonal line.
[0029] Multiple viewpoints of the complex thin-walled part model are set, and the complex thin-walled part model is projected using the projection view method to obtain a multi-view two-dimensional view of the complex thin-walled part model.
[0030] Furthermore, in step S2, the process of obtaining the three-dimensional point cloud modality of the complex thin-walled part model using Open3D includes the following steps:
[0031] The file format of the input complex thin-walled part model is converted into the obj file format using the 3D modeling software UG, and the obj format file of the mesh model is read using Open3D. The 3D coordinate position information of all mesh vertices is obtained from the mesh 3D model through the vertices array, and the point cloud data is obtained by downsampling.
[0032] Create a new PointCloud object, fill it with the 3D coordinate position information of all mesh vertices, save the converted point cloud data to a file, and output it in pcd file format.
[0033] Furthermore, in step S3, the process of extracting the feature vector of the voxelized mode of the complex thin-walled part model includes the following steps:
[0034] The voxelized modality is input into the VoxNet network. The voxel features are extracted through the first 3D convolution layer and the feature map is output. Then, the voxel features are reduced in dimension and key information is retained through the pooling layer. By repeatedly stacking convolutional layers and pooling layers, the voxel feature extraction is deepened and the feature dimension is reduced. Finally, the voxel features are integrated and nonlinearly transformed through the fully connected layer with ReLU as the activation function, and the final voxel feature vector is output through the output layer.
[0035] Furthermore, in step S3, the process of extracting the feature vector of the multi-view mode of the complex thin-walled part model includes the following steps:
[0036] Construct a convolutional neural network with multi-channel input to extract multiple two-dimensional images. Figure 1 The image is input into multiple channels one by one, and the image enters the convolution layer from the input layer and obtains the feature map output value through the activation function. The formula for the obtained feature map is:
[0037] x l =f(w l x l +b l )
[0038] Among them, l represents the number of layers, ω represents the weight, b represents the offset, and f represents the activation function;
[0039] The pooling layer and the convolutional layer are connected adjacently to reduce the dimension of the feature map. The calculation method of the pooling layer is as follows:
[0040]
[0041] In the formula, x j l represents the output value of the jth feature map of the lth layer, f represents the activation function, β j l down represents the downsampling function, down represents the downsampling operation, x j l-1 represents the output value of the jth feature map of the l-1th layer, b j l Represents the bias value of the jth feature map of the lth layer;
[0042] By stacking multiple convolutional layers and pooling layers, the multi-view feature vector of the part model is obtained.
[0043] Furthermore, in step S3, the process of extracting the feature vector of the three-dimensional point cloud mode of the complex thin-walled part model includes the following steps:
[0044] Pointconv network is used to extract the model point cloud feature vector. The input part 3D point cloud data set is {p i |i=1,...n}, where each point contains a position vector (x,y,z) and its features, n represents the number of points in the point cloud data, and the calculation formula of the PointConv network is as follows:
[0045]
[0046] In the formula, F(x+δ x ,y+δ y , z+δ z ) is the feature of the point in the local area centered at point p = (x, y, z), (δ x , δ y , δ z ) is the coordinate of any position in the local area, W(δ x , δ y , δ z ) is the coordinate (δ x , δ y , δ z ), S(δ x , δ y , δ z ) is the point (δ x , δ y , δ z )’s inverse density;
[0047] By stacking multiple layers of PointConv networks, the three-dimensional point cloud feature vector of the part is extracted.
[0048] Furthermore, in step S3, the Concat fusion method is used to connect the feature vectors of the three modes extracted along the same dimension to form a feature vector with a higher dimension. The calculation formula is as follows:
[0049]
[0050] In the formula, the number of feature channels used for fusion is voxel feature X i ={X1, X2, ..., X s}, Multi-view feature Y i ={Y1, Y2, ..., Y s} and 3D point cloud feature Z i ={Z1, Z2, ..., Z s}, s represents the number of arbitrary feature channels of the feature, C i Represents the convolution operation on the i-th voxel.
[0051] Step S4 further comprises:
[0052] Input feature element q, given a multi-layer HNSW graph structure, given the number of nearest neighbors k to be found, set a dynamic candidate list ef for controlling the accuracy of the search; set an empty list W to store the closest feature element currently found, and set the entry point ep for the start search;
[0053] When searching, search from the highest layer downwards, use the specified layer query to perform a search at each layer, find the feature element closest to the query point q, and update the entry point ep to the feature element closest to q in the search result. When the search reaches the bottom layer, stop searching and return the K closest feature elements in the bottom layer search results.
[0054] Returns a list W containing the K nearest neighbor feature elements of the input feature element q.
[0055] Compared with the prior art, the present invention has the following beneficial effects:
[0056] First, the complex thin-walled parts geometric feature recognition and extraction method of the present invention realizes the recognition and extraction of the geometric feature model of complex thin-walled parts through a practical and effective method. The object of the retrieval method is mainly the geometric features of complex thin-walled parts, and the geometric features of such parts are rich in variety and easy to classify. The present invention is more accurate in identifying the geometric feature model of complex thin-walled parts, and can also meet the needs of designers to reuse the existing part geometric feature models.
[0057] Second, the complex thin-walled part geometric feature recognition and extraction method of the present invention pre-processes the part model when inputting the complex thin-walled part model to ensure that the relative positions of all models in space are consistent, and also shortens the time for subsequent model voxelization and extraction of multi-views and three-dimensional point clouds of the part model.
[0058] Third, the method for identifying and extracting geometric features of complex thin-walled parts of the present invention utilizes the structural position of part geometric features in the part model to formulate classification rules for part geometric structure adjustment, clarifies the classification standards for part geometric features, and constructs a part geometric feature library, thereby improving the utilization rate of existing part geometric features, shortening the design time and design cost of designers, and improving the accuracy of part geometric feature recognition and the efficiency of subsequent part processing and production.
[0059] Fourth, the complex thin-walled parts geometric feature recognition and extraction method of the present invention adopts the advanced navigable small world HNSW algorithm when identifying the geometric features of the parts. Due to its multi-layer navigation graph structure, it can realize the rapid recognition of the geometric features of the parts. In the algorithm recognition process, a heuristic search strategy is adopted to realize the efficient search and recognition of the geometric features of the parts.
[0060] Fifth, the complex thin-walled parts geometric feature recognition and extraction method of the present invention, after recognizing the part geometric features through the advanced HNSW algorithm, finally outputs and extracts the part geometric feature coding ID number with the highest similarity, providing the operator with a more accurate similar part geometric feature model, which not only improves the utilization rate of the part geometric features, but also reduces the cost of new part design. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 A flow chart of a method for identifying and extracting geometric features of complex thin-walled parts according to an embodiment of the present invention;
[0062] Figure 2 A schematic diagram of the classification of the part geometric feature library provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0064] like Figure 1 and Figure 2 As shown, the method for identifying and extracting part geometric features of the present invention comprises:
[0065] Step 1: Preprocess the input complex thin-walled part model and the existing part geometry feature model, the function and structure of the complex thin-walled part geometry features in the part, build a part geometry feature library, and encode all part geometry features
[0066] First, preprocess the input complex thin-walled part model: Due to different designers, even for the same part model, due to different spatial positions and different angles, etc., the part 3D model will have multiple forms of expression output in different coordinate systems. The specific steps of preprocessing are as follows:
[0067] 1. Translation processing: To translate the part model, the origin position of the part model needs to be normalized. In the coordinate axis (x, y, z), let the new part model be A(x, y, z), and the model after translation processing be I(x, y, z), and its expression is:
[0068] I(x,y,z)=A(xm p ,ym p , zm p )
[0069] In the formula, m p It is the center of gravity of the 3D model of the part.
[0070] 2. Rotation processing: Rotation processing usually rotates the part model at different angles around its center of gravity to ensure that the model can maintain its inherent geometric characteristics and structural integrity at all angles. Its main purpose is to correct the deviation of the model at different angles. During the rotation process, the covariance matrix C of the point set needs to be calculated. p , in order to achieve the final rotation processing of the part model. Its expression is:
[0071]
[0072] In the formula, p i , p j Respectively represent the centroid of each triangular mesh, s i ,s j Represents the area of each triangle mesh.
[0073] 3. Scaling: Scaling refers to scaling the 3D model of the part in proportion to the 3D space coordinate system to ensure that the part model can be scaled to a uniform scale without any deformity. Suppose the part model A (x, y, z) of size L × W × H is transformed into I (x, y, z), as shown in formula (4):
[0074] I(x,y,z)=A(int(a×x), int(a×y), int(a×z))
[0075] Wherein, int represents the rounding function, the scaling factor a=1 / n, when the scaling ratio n>1, the three-dimensional model of the part is reduced; when the scaling ratio n<1, the three-dimensional model of the part is enlarged, thereby obtaining a three-dimensional model with rotation invariance.
[0076] After the above three processes, the preprocessing operation of the part model is completed. The operation process is defined as:
[0077] ω(x, y, z) = a -1 ·D·R·(Im p )
[0078] Among them, a is the size of the scaling factor of the three-dimensional model, D represents the diagonal matrix with flip invariance, R represents the rotation matrix after the rotation transformation, and m p It is the center of gravity of the 3D model of the part.
[0079] Secondly, the functionality of part geometric features classifies the existing geometric feature models of complex thin-walled parts and encodes them to form a part geometric feature library.
[0080] Part geometry classification Figure 2As shown in the figure, taking the frame segment type as an example, it is divided into a shape unit and a transition unit, and continues to be classified according to the features carried in the functional features. The shape unit is divided into a profile surface and an end surface, and the transition unit is divided into a chamfer and a transition fillet. After completing the model classification, encode all the geometric feature models of complex thin-walled parts. Taking the geometric features of the frame segment part as an example, such as "frame segment - front end surface - hole", where the feature code consists of three parts: "part name - feature position - feature name", and then form their respective exclusive ID numbers, and integrate all the encoded part geometric feature models to form a part geometric feature library.
[0081] Step 2: Voxelize the preprocessed part model and extract the multi-view and three-dimensional point cloud modalities of the part geometric feature model respectively
[0082] 1. For the part model preprocessed in Step 1, voxelize the part model: Convert a continuous three-dimensional space R3 into a discrete space D in a block form 3 , assuming that a voxel in the discrete space is a 1×1×1 cube, then the voxel point (x, y, z) corresponds to all points in a continuous space (u, v, w) in the original three-dimensional coordinate system, where x - 1 < u ≤ x, y - 1 < v ≤ y, z - 1 < w ≤ z. After such processing, the spatial distribution information of a three-dimensional model can be obtained. For each voxel, a binary value is assigned, and 0 or 1 is used to mark whether the voxel is occupied by the model.
[0083] (1) Voxelization granularity
[0084] SEWR is used to better describe the fineness of the model after voxelization. In order to ensure that the three-dimensional spatial features are not lost too much after voxelizing the model, we fix the width of a single voxel to l = 1 and let the size of the voxel space change. In this way, the size R of the voxel space is the voxelization granularity. The larger R is, the finer and more realistic the model is, and the smaller R is, the rougher the model is. In order to make the measurement lengths of the voxel coordinate system and the three-dimensional vertex coordinate system exactly correspond for convenient subsequent voxelization calculations, we magnify the model in the original unit space. Assuming that we have selected the granularity R value, for each vertex v = (x, y, z), we have:
[0085] (2) Vertex voxelization
[0086] Assume that the three-dimensional model after coordinate scale normalization can just be surrounded by a cube bounding box of L×L×L. If the cube bounding box is divided into: n×n×n voxels, then the size of each voxel is w×w×w, where w = L / n.
[0087] Therefore, for the continuous point (x, y, z) on the three-dimensional mesh model, the process of mapping to the voxel (x′, y′, z′) is shown in the following formula.
[0088]
[0089] (3) Edge voxelization
[0090] In the process of voxelizing the edges of the 3D mesh model, different processing strategies are adopted for edges of different lengths: if the length l of the edge is less than the preset voxel width (set to 1), there are two situations: when the two endpoints of the edge fall in the same voxel, only the voxel point is included in the edge voxel set; if the two endpoints are distributed in two adjacent voxels, both voxel points are added to the set. For the case where the edge length exceeds the voxel width, that is, l>1, the edge is divided into n equal parts by the equal division method. l Segments are divided into two parts, ensuring that the length of each edge is no greater than the voxel width. These subdivided segments are then voxelized according to the first two rules, and all related voxel points are summarized into edge voxel sets.
[0091] (4) Surface voxelization
[0092] When processing the voxelization of each triangular patch in the three-dimensional mesh model, two strategies are mainly adopted based on the relationship between the patch edge length and the voxel width: if the length of all three edges of the patch does not exceed the voxel width, the patch may completely or partially cover one or several adjacent voxels. At this time, all the vertices that constitute the patch are directly voxelized, and the obtained voxel points are collected and added to the face voxel set. On the contrary, if there is at least one edge in the patch that exceeds the voxel width, a more detailed method is further adopted - starting with the longest edge, using the scan line algorithm to advance along this edge, and gradually going deeper into the patch in a direction parallel to the other set of edges, and then using the edge voxelization method for voxelization. All the points finally obtained are added to the face voxel set and deduplication is performed.
[0093] 2. Extract multi-view 2D views of part models
[0094] Taking the frame part as an example, when extracting the two-dimensional view of the frame segment to the part model, the center of gravity of the part model is used as the origin, and 8 viewpoints are set. The viewpoints are located at the center of the six faces of the part model, namely the top, bottom, left, right, front, and back. In order to increase the diversity of the view data, 2 auxiliary viewpoints are set on both sides of the diagonal. The 8 viewpoints of the part model are set, and the part model is projected using the projection view method to obtain a multi-view two-dimensional view of the part model.
[0095] 3. Extract the 3D point cloud of the part model
[0096] The file format of the input complex thin-walled part model is converted into an obj file format that can be processed as a point cloud using the 3D modeling software UG. The obj format file of the mesh model is read using Open3D, and then the 3D coordinate position information of all mesh vertices is obtained from the mesh 3D model through the vertices array. When obtaining point cloud data, due to the complex structure of complex thin-walled parts and the large amount of mesh vertex data, downsampling is used to reduce data complexity and improve the speed of subsequent processing. Secondly, a new PointCloud object is created, all vertex coordinates are filled into it, and finally the converted point cloud data is saved to a file and output in pcd file format.
[0097] Step 3: Extract the feature vectors of the three modes of the part geometric feature model and fuse them together
[0098] Taking the frame part as an example, in step 2, the part model has been voxelized. First, the voxel model is input into the VoxNet network. After the first 3D convolution layer, the voxel features are extracted and the feature map is output. Then, it enters the pooling layer to reduce the dimension of the voxel features and retain the key information. By repeatedly stacking convolution layers and pooling layers, the voxel feature extraction is deepened and the feature dimension is reduced. Finally, the voxel features are integrated and nonlinearly transformed through the fully connected layer with ReLU as the activation function, and the final voxel feature vector is output through the output layer.
[0099] Secondly, a convolutional neural network with multi-channel input is constructed. The eight two-dimensional views extracted in step 2 are input into eight channels respectively. The image enters the convolution layer from the input layer and obtains the feature map output value through the activation function. The formula of the obtained feature map is:
[0100] x l =f(w l x l +b l )
[0101] Among them, l represents the number of layers, ω represents the weight, b represents the offset, and f represents the activation function.
[0102] After the pooling layer and the convolution layer are connected adjacently, the dimension of the feature map is reduced. The calculation method of the pooling layer is as follows:
[0103]
[0104] In the formula, β j l down represents the downsampling function, and down represents the downsampling operation.
[0105] By stacking multiple convolutional layers and pooling layers, the multi-view feature vector of the part model is obtained.
[0106] Then, the model 3D point cloud obtained in step 2 is used to extract the model point cloud feature vector using the Pointconv network. The input part 3D point cloud data set is {p i |i=1,...n}, where each point contains a position vector (x,y,z) and its features. In a continuous space, point cloud data can be regarded as a non-uniform sample. Therefore, PointConv is defined as follows:
[0107]
[0108] In the formula, F(x+δ x ,y+δ y , z+δ z ) is the feature of the point in the local area centered at point p = (x, y, z), (δ x , δ y , δ z ) is the coordinate of any position in the local area, W(δ x , δ y , δ z ) is the coordinate (δ x , δ y , δ z ), S(δ x , δ y , δ z ) is the point (δ x , δ y , δ z ) is the inverse density of .
[0109] Therefore, by stacking multiple layers of PointConv networks, the three-dimensional point cloud feature vector of the part is extracted.
[0110] Finally, the Concat fusion method is used to fuse the above three part feature vectors, connect the three feature vectors along the same dimension, and form a feature vector with a higher dimension, that is, to merge the feature channel numbers of the three modal feature vectors of the part geometric feature model. The calculation formula is as follows:
[0111]
[0112] In the formula, the number of feature channels used for fusion is voxel feature X i ={X1, X2, ..., X s}, Multi-view feature Y i ={Y1, Y2, ..., Y s} and 3D point cloud feature Z i ={Z1, Z2, ..., Z s}, s represents the number of arbitrary feature channels of the feature, C iRepresents the convolution operation on the i-th voxel.
[0113] Step 4: Part geometry library, using HNSW algorithm to identify similar geometry features of the input complex thin-walled part geometry model
[0114] Taking the frame segment part model as an example, step four integrates the feature vector of the part model, and uses the HNSW algorithm to perform similarity recognition on the part geometric features carried by the part model.
[0115] First, input the feature element q, given a multi-layer HNSW graph structure, given the number of nearest neighbors k to be found, set the dynamic candidate list ef used to control the accuracy of the search; then set an empty list W to store the closest feature element currently found, and set the entry point ep for the initial search, which is usually a feature element in the highest layer; secondly, when searching, search from the highest layer downward, use SEARCH-LAYER (specified layer query) to perform a search at each layer to find the feature element closest to the query point q, and update the entry point ep to the feature element in the search result that is closest to q. When the search reaches the zero layer (i.e. the bottom layer), stop the search and return the K closest feature elements in the bottom search result; finally, return a list W containing the K nearest neighbor feature elements of the input feature element q.
[0116] Step 5: The similar part geometry feature models have been compared, and the geometry feature code ID number of the part with the highest similarity has been output and extracted
[0117] By traversing all the part geometric feature models in the part geometric feature library, a geometric feature model similar to the features of the input complex thin-walled part model is obtained, and finally the ID number of the similar part geometric model is output and extracted.
[0118] The method for identifying and extracting geometric features of complex thin-walled parts of the present invention, by finely extracting multi-dimensional information of part geometric features and using advanced nearest neighbor search algorithms, quickly and accurately matches similar geometric shapes in the geometric feature library. This method not only greatly enhances the accuracy and efficiency of feature recognition, but also significantly reduces the processing cycle, laying a solid data foundation for subsequent manufacturing process planning, process strategy optimization and even quality monitoring system construction, accelerating the intelligent transformation and upgrading of the aerospace manufacturing industry.
[0119] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0120] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0123] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0124] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for geometric feature recognition and extraction of complex thin-walled parts. It is characterized in that The method for identifying and extracting geometric features of complex thin-walled parts comprises the following steps: S1, preprocessing the input complex thin-walled part model and the existing part geometric feature model; specifically, classifying the part geometric features according to the function and structure of the complex thin-walled part geometric features in the part, encoding all the classified part geometric features to form their own unique ID numbers, integrating the encoded part geometric features to form a part geometric feature library; S2, voxelize the preprocessed part model and extract the multi-view and three-dimensional point cloud modes of the part geometric feature model respectively; specifically, voxelize the preprocessed complex thin-walled part model to obtain the voxelized mode of the complex thin-walled part model; set the projection viewpoints from different angles, use the projection method to obtain the multi-view mode of the complex thin-walled part model, and then use the three-dimensional modeling software to convert the part model format, and use Open3D to obtain the three-dimensional point cloud mode of the complex thin-walled part model; S3, extracting feature vectors of voxelized mode, multi-view mode and 3D point cloud mode of complex thin-walled part model, and fusing the extracted feature vectors of the three modes; S4, based on the part geometric feature library, uses the navigable small-world network algorithm to identify similar geometric features of the input complex thin-walled part model; S5, traverse all the part geometric feature models in the part geometric feature library, obtain geometric feature models similar to the features of the input complex thin-walled part model, and output and extract the ID number of the part geometric feature with the highest similarity.
2. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that Step S1 further comprises: Step S11, performing a standardization operation on the preprocessed complex thin-walled part model, includes the following sub-steps: The complex thin-walled part model is translated so that the center of gravity of the complex thin-walled part model is placed at the origin of the absolute coordinate system; the complex thin-walled part model is rotated and flipped at different angles with the center of gravity of the part model as the center so that the complex thin-walled part model is aligned in the standard coordinate plane; the complex thin-walled part model is scaled proportionally and normalized so that the size of the complex thin-walled part model is the standard unit size; the standardization process of the complex thin-walled part model is defined as: ω(x,y,z)=a -1 ·D·R·(I-m p ) Among them, a is the size of the scaling factor of the complex thin-walled part model, D represents the diagonal matrix with flip invariance, R represents the rotation matrix after the rotation transformation, I represents the unit matrix, and m p It is the center of gravity of the complex thin-walled part model; Step S12, for the characteristic structure of the geometric features of complex thin-walled parts in the parts, according to the geometric features of the parts carried in the processing of the solid parts, construct part geometric feature classification rules, encode and classify the part geometric features and combine them to form a part geometric feature library.
3. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that In step S2, the process of voxelizing the preprocessed complex thin-walled part model includes: Convert a continuous three-dimensional space R 3 into a discrete space D in a block form 3 , where each voxel in the discrete space is a cube, and the voxel point (x, y, z) corresponds to all points in a piece of continuous space (u, v, w) in the original three-dimensional coordinate system, where x - 1 < u ≤ x, y - 1 < v ≤ y, z - 1 < w ≤ z, to obtain the spatial distribution information of a three-dimensional model. For each voxel, a binary value is assigned, and 0 or 1 is used to mark whether the voxel is occupied by the model; The width of a single voxel is preset, and the size R of the voxel space is used as the voxelization granularity. The larger R is, the finer and more realistic the model is, and the smaller R is, the coarser the model is. The model in the original unit space is enlarged using the selected voxelization granularity R value; According to the size of each voxel, the continuous points (x, y, z) on the 3D grid model are mapped to voxels (x′, y′, z′); Different processing strategies are adopted for edges of different lengths: if the length l of the edge is less than the preset voxel width, when the two endpoints of the edge fall in the same voxel, only the voxel point is included in the edge voxel set; if the two endpoints are distributed in two adjacent voxels, both voxel points are added to the set; if the length l of the edge exceeds the preset voxel width, the edge is divided into n equal parts by the equal division method. l Segments, ensure that the length of each edge is not greater than the voxel width, then voxelize the segmented segments and summarize all related voxel points into the edge voxel set; For each triangular facet, two strategies are adopted according to the relationship between the facet edge length and the voxel width: if the lengths of all three sides of the facet do not exceed the voxel width, all the vertices constituting the facet are directly voxelized, and the obtained voxel points are collected and added to the face voxel set; if there is at least one edge in the facet that exceeds the voxel width, starting from the longest edge, the scan line algorithm is used to advance along the longest edge, and gradually go deeper into the facet in a direction parallel to the other set of edges, and then the edge voxelization method is used for voxelization, and all the points finally obtained are added to the face voxel set, and deduplication is performed.
4. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that In step S2, the process of obtaining the multi-view mode of the complex thin-walled part model by using the projection method includes: Taking the center of gravity of the complex thin-walled part model as the origin, multiple viewpoints are set. The viewpoints are located at the center of the six faces of the complex thin-walled part model, namely, the top, bottom, left, right, front, and back. Two auxiliary viewpoints are set on both sides of the diagonal line. Multiple viewpoints of the complex thin-walled part model are set, and the complex thin-walled part model is projected using the projection view method to obtain a multi-view two-dimensional view of the complex thin-walled part model.
5. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that In step S2, the process of obtaining the three-dimensional point cloud modality of the complex thin-walled part model using Open3D includes the following steps: The file format of the input complex thin-walled part model is converted into the obj file format using the 3D modeling software UG, and the obj format file of the mesh model is read using Open3D. The 3D coordinate position information of all mesh vertices is obtained from the mesh 3D model through the vertices array, and the point cloud data is obtained by downsampling. Create a new PointCloud object, fill it with the 3D coordinate position information of all mesh vertices, save the converted point cloud data to a file, and output it in pcd file format.
6. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that In step S3, the process of extracting the feature vector of the voxelized mode of the complex thin-walled part model includes the following steps: The voxelized modality is input into the VoxNet network. The voxel features are extracted through the first 3D convolution layer and the feature map is output. Then, the voxel features are reduced in dimension and key information is retained through the pooling layer. By repeatedly stacking convolutional layers and pooling layers, the voxel feature extraction is deepened and the feature dimension is reduced. Finally, the voxel features are integrated and nonlinearly transformed through the fully connected layer with ReLU as the activation function, and the final voxel feature vector is output through the output layer.
7. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that In step S3, the process of extracting the feature vector of the multi-view mode of the complex thin-walled part model includes the following steps: Construct a convolutional neural network with multi-channel input, input the extracted multiple two-dimensional views into multiple channels one by one, the image enters the convolution layer from the input layer and obtains the feature map output value through the activation function. The formula for the obtained feature map is: x l =f(w l x l +b l ) Among them, l represents the number of layers, ω represents the weight, b represents the offset, and f represents the activation function; The pooling layer and the convolutional layer are connected adjacently to reduce the dimension of the feature map. The calculation method of the pooling layer is as follows: In the formula, x j l represents the output value of the jth feature map of the lth layer, f represents the activation function, β j l down represents the downsampling function, down represents the downsampling operation, x j l-1 represents the output value of the jth feature map of the l-1th layer, b j l Represents the bias value of the jth feature map of the lth layer; By stacking multiple convolutional layers and pooling layers, the multi-view feature vector of the part model is obtained.
8. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that In step S3, the process of extracting the feature vector of the three-dimensional point cloud mode of the complex thin-walled part model includes the following steps: Pointconv network is used to extract the model point cloud feature vector. The input part 3D point cloud data set is {p i |i=1,...n}, where each point contains a position vector (x,y,z) and its features, n represents the number of points in the point cloud data, and the calculation formula of the PointConv network is as follows: In the formula, F(x+δ x ,y+δ y , z+δ z ) is the feature of the point in the local area centered at point p = (x, y, z), (δ x , δ y , δ z ) is the coordinate of any position in the local area, W(δ x , δ y , δ z ) is the coordinate (δ x , δ y , δ z ), S(δ x , δ y , δ z ) is the point (δ x , δ y , δ z )’s inverse density; By stacking multiple layers of PointConv networks, the three-dimensional point cloud feature vector of the part is extracted.
9. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that In step S3, the Concat fusion method is used to connect the feature vectors of the three modes extracted along the same dimension to form a feature vector with a higher dimension. The calculation formula is as follows: In the formula, the number of feature channels used for fusion is voxel feature X i ={X 1 , X 2 , ..., X s }, Multi-view feature Y i = {Y 1 ,Y 2 ,……,Y s } and 3D point cloud feature Z i = {Z 1 , Z 2 , ..., Z s }, s represents the number of arbitrary feature channels of the feature, C i Represents the convolution operation on the i-th voxel.
10. The method for geometric feature recognition and extraction of complex thin-walled parts according to claim 1, It is characterized in that Step S4 further comprises: Input feature element q, given a multi-layer HNSW graph structure, given the number of nearest neighbors k to be found, set a dynamic candidate list ef for controlling the accuracy of the search; set an empty list W to store the closest feature element currently found, and set the entry point ep for the start search; When searching, search from the highest layer downwards, use the specified layer query to perform a search at each layer, find the feature element closest to the query point q, and update the entry point ep to the feature element closest to q in the search result. When the search reaches the bottom layer, stop searching and return the K closest feature elements in the bottom layer search results. Returns a list W containing the K nearest neighbor feature elements of the input feature element q.
Citation Information
Patent Citations
Geometric neural network model construction method and device, equipment and storage medium
CN116011515A
Knowledge graph construction method and system based on thin-wall parts
CN116028571A
Geometric adaptive point cloud classification and segmentation method and device based on point cloud-voxel
CN116452866A
Complex thin-wall structure optimization design method based on embedded component
CN116484509A
Voxel-oriented scale perception feature extraction architecture, application and 3D target detection
CN118506020A
Cited By
Aircraft paired part identification method, system, equipment and medium
CN120470339A
