Tool feature point recognition method and device combining lateral geometric features of adjacent tool paths
By analyzing the G01 program segment and constructing the geometric feature matrix, combined with the graph neural network model to identify the lateral geometric features of adjacent tool paths, the problem of difficulty in extracting part geometric feature information in the existing technology is solved, and the accuracy and efficiency of milling finishing are improved. .
Patent Information
- Application Number
- CN202111406872.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-11-24
AI Technical Summary
It is difficult to effectively extract and utilize the geometric feature information of the part from the G code with the existing technology, resulting in low processing accuracy and efficiency of the CNC system in milling finishing, especially in the processing of free-form surface parts, where there is a risk of processing defects.
The three-dimensional coordinates of the tool position point are obtained by parsing the G01 program segment, and the geometric feature matrix of the tool position point is constructed. The greedy projection triangulation algorithm and the graph neural network model are used to combine the lateral geometric feature information of the adjacent tool path to identify the tool path. Feature points.
It improves the accuracy and recall rate of feature point identification, can better handle points with unobvious features in the direction of tool travel, and improves processing accuracy and efficiency, especially in the processing of free-form surface parts.
Smart Images

Figure CN114202662B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to milling finishing and deep learning, and more specifically, to a tool feature point recognition method and device combining lateral geometric features of adjacent tool paths. Background Art
[0002] In modern manufacturing, CNC machining is one of the most important and popular manufacturing methods, and is widely used in industries such as automobiles, aviation, and consumer electronics. In the actual milling process, the CAM software post-processing generates the machining G01 program segment, such as Figure 2 As shown in the figure, the CNC system processes parts by reading G code, but G code is a relatively simple language that mainly contains the position information of the tool path and cannot express the geometric features of the part model. Therefore, the CNC system cannot obtain the geometric feature information of the part in this process. With the development of the manufacturing industry, higher requirements are placed on the machining accuracy of machine tools. Therefore, how to extract the geometric feature information of parts from G code and allow the CNC system to read and utilize it has become one of the core issues to further improve the machining accuracy of machine tools. In the G01 program segment, the point where the lateral machining information of the tool position point is inconsistent is the feature point. The feature point is located at the boundary of the part's geometric features, or at the connection point of adjacent tool paths, such as Figure 3 As shown. It is crucial for the CNC system to identify these feature points in the tool path. First, the CNC system can divide the geometric feature area of the part according to the identified feature points, and divide the speed interval reasonably according to the geometric feature area of the part, which can improve the processing accuracy and efficiency at the same time. On the other hand, maintaining the lateral speed consistency of the feature points can greatly ensure the processing quality of the parts and avoid processing defects, especially in the processing of some free-form surface parts. This shows the importance of feature point recognition to the CNC system.
[0003] Due to the diversity of machined part features and the geometric defects expressed by G code, it is difficult to solve the problem of feature point recognition of tool paths using traditional methods. Traditional methods require artificial extraction and summary of feature patterns of feature points, and it is difficult to combine the lateral geometric feature information of adjacent tool paths. As a result, the applicability and effect of traditional methods on feature point recognition problems are poor. Summary of the invention
[0004] In response to the above defects or improvement needs of the prior art, the present invention provides a tool feature point recognition method and device that combines the lateral geometric features of adjacent tool paths. By identifying the feature points in the tool path, the CNC system can provide reference for further optimization of the part processing process. The invention combines the lateral geometric features of the tool position points of adjacent tool paths, and has higher recognition accuracy and recall rate than the previous tool path feature point recognition.
[0005] To achieve the above object, according to one aspect of the present invention, a method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths is provided, the method mainly comprising the following steps:
[0006] (1) Analyze the G01 program segment of the target part to obtain the three-dimensional coordinates of the tool position points in the machining tool path, and sort the obtained tool position point coordinates according to the tool travel direction to obtain the tool position point cloud;
[0007] (2) Determine and calculate the geometric parameters of the tool position point, and construct the geometric feature vector of the tool position point;
[0008] (3) Generate a tool point geometric feature matrix based on the neighboring tool points in the tool travel direction;
[0009] (4) Using the greedy projection triangulation algorithm to topologically transform the tool point cloud into a graph data structure;
[0010] (5) The connectivity relationship between the cutter points is constructed through the adjacent cutter point index of each cutter point, and then the cutter point cloud adjacency matrix is calculated;
[0011] (6) The tool point cloud data of the feature points to be predicted and the tool point cloud adjacency matrix are input into the trained graph neural network model, and the graph neural network model completes the tool feature point recognition.
[0012] Furthermore, step (6) includes the following sub-steps:
[0013] (S1) determining and calculating the geometric similarity coefficients between the knife point locations, and then constructing a knife point cloud geometric similarity adjacency matrix in combination with the knife point cloud adjacency matrix;
[0014] (S2) constructing a knife point cloud walking probability matrix;
[0015] (S3) for each knife position point's walking probability vector, obtain m related knife position points according to the walking probability from large to small probability, where m is a positive integer;
[0016] (S4) selecting a geometric feature matrix of a related tool point through a related tool point index set, combining the geometric feature matrix of a target tool point, and constructing a comprehensive geometric feature matrix of the target tool point;
[0017] (S5) The comprehensive geometric feature matrix of the knife point locations is input into the hidden layer of the graph neural network model to extract abstract features and predict the output feature point labels.
[0018] Furthermore, the output feature point labels are differentiated according to the probability. The ones with predicted probability greater than 0.8 are feature points. The label 1 indicates that the knife point is a feature point, and the label 0 indicates that the knife point is not a feature point.
[0019] Furthermore, in step (2), each row of the cutter point cloud geometric similarity adjacency matrix is the geometric similarity coefficient between the cutter point corresponding to the index and its adjacent cutter point, and the geometric similarity coefficient with the non-adjacent cutter point is 0, and the adjacency similarity vector of the cutter point is extracted; then, the walk probability vector of the cutter point is calculated by normalizing the adjacency similarity vector of the cutter point; then, the walk probability between the cutter points is calculated, and the cutter point cloud walk probability matrix A is constructed. p and the knife point wandering probability vector Next, according to the number of steps c required to walk, the knife point cloud walking probability matrix after walking c steps and the knife point walking probability vector after walking c steps are calculated.
[0020] Furthermore, in step (S3), the walk probability vectors of each tool point are sorted from large to small, and the index values of the adjacent tool points are saved from large to small according to the walk probability; the adjacent tool point index is selected, and the selected index value is the relative tool point index of the target tool point, and the relative tool point index set of the tool point i is recorded as S i The related tool position point is the tool position point in the adjacent tool path of the target tool position point that is connected with the target tool position point and has the most similar geometric features.
[0021] Furthermore, the geometric parameters include point distance, external angle, internal angle and curvature.
[0022] Furthermore, in step (5), for each tool point cloud, after the tool point cloud is triangulated, the tool points connected to each tool point are obtained, i.e., the adjacent tool points, and the indexes of the adjacent tool points are recorded; the adjacency matrix A of the tool point cloud is constructed by the adjacent point index vectors of the tool points, where A ij Indicates the connectivity between tool point i and tool point j. If there is a connectivity relationship A ij =1, otherwise A ij =0.
[0023] Furthermore, the graph neural network model includes an input layer, a comprehensive geometric feature extraction layer, a hidden layer and an output layer; the input layer reads the graph data structure, and then the comprehensive geometric feature extraction layer in the graph neural network model aggregates the longitudinal and lateral geometric features of the tool position points, generates a comprehensive geometric feature matrix of the tool position points and preliminarily extracts the comprehensive geometric features of the tool position points, and then the hidden layer in the graph neural network model extracts deep-level features of the feature points, and finally the output layer performs aggregation calculations and outputs feature point labels.
[0024] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths as described above is implemented.
[0025] The present invention also provides a tool feature point recognition device combining lateral geometric features of adjacent tool paths, the device comprising the computer-readable storage medium as described above and a processor, the processor being used to call and process a computer program stored in the computer-readable storage medium.
[0026] In general, compared with the prior art, the above technical solution conceived by the present invention, the tool feature point recognition method and device combined with the lateral geometric features of adjacent tool paths provided by the present invention mainly have the following beneficial effects:
[0027] 1. The invention establishes a connectivity relationship between the knife point and its adjacent knife point through triangulation, determines the wandering probability by calculating the geometric similarity between the knife point and its adjacent knife points, determines the lateral relationship knife point through the wandering probability, and constructs a comprehensive geometric feature matrix as the input of the hidden layer of the graph neural network by combining the geometric features of the knife point and its related knife points, thereby using the graph neural network model to solve the problem of feature point recognition. Compared with the existing methods, this method can extract and combine the geometric feature information of the neighborhood knife point and the lateral geometric feature information of the knife point. The generated feature matrix has a stronger feature expression ability, which is conducive to the graph neural network to extract its deep-level features.
[0028] 2. This method combines the lateral geometric feature information of the tool path adjacent to the tool position point, which makes it show better effect when processing the tool position point with unclear features in the tool travel direction, especially in some parts with more free-form surface features.
[0029] 3. Compared with traditional neural networks, graph neural networks can act on non-Euclidean spaces, and therefore have feature learning capabilities. As a result, the present invention has higher recognition accuracy and recall rate, stronger robustness and applicability, and can effectively identify feature points in tool paths in free-form surface parts. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a flow chart of a method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths provided by the present invention;
[0031] Figure 2 It is a schematic diagram of the tool position points in the milling finishing part machining tool path;
[0032] Figure 3 It is a schematic diagram of tool position points and feature points in the machining path of milling finishing parts;
[0033] Figure 4 (a) and (b) are schematic diagrams of regular data and graph data, respectively, to show the differences between regular data and graph data;
[0034] Figure 5(a) and (b) are schematic diagrams of the tool position midpoint distance, external angle, internal angle, vector and curvature respectively;
[0035] Figure 6 It is a schematic diagram of solving the curvature of the tool position point;
[0036] Figure 7 It is a schematic diagram of generating the geometric feature matrix of a single tool position point;
[0037] Figure 8 This is a schematic diagram of the basic principle of greedy projection triangulation;
[0038] Fig. 9 It is a schematic diagram of the structure of the graph neural network provided by the present invention;
[0039] Fig.10 This is a schematic diagram of the result of walking one step from the target point;
[0040] Fig.11 This is a schematic diagram of the result of triggering multiple steps of walking from the target point;
[0041] Fig.12 It is a schematic diagram of the generation of the comprehensive geometric feature matrix of a single unit point;
[0042] Fig.13 is a test case of this method, where (a) is the CAD model of the test case, and (b) is the finishing tool path of the test case;
[0043] Fig.14 It is an example of generating the geometric feature matrix of the tool position point in the test case of this method, corresponding to steps 1 to 4 in the specific implementation method;
[0044] Fig.15 This is an example of selecting the lateral associated points of the tool position in the test case of this method, corresponding to steps 5 to 6 in the specific implementation method;
[0045] Fig.16 is the test result of the method under the test case, wherein (a) is the CAD model of the test case, (b) is the result of manually marked feature points, (c) is the recognition result of the feature point recognition function in the ISurfine software, and (d) is the feature point recognition result of the method described in the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0047] See also Figure 4 ,With the development of deep learning theory and big data related technologies, graph neural networks came into being. Graph neural networks are neural network structures used to process graph data. They can directly read non-Euclidean structure data and provide ideas for solving the problem of tool feature point recognition.
[0048] See also Figure 1 , Fig.13 , Fig.14 and Fig.15 The present invention provides a tool feature point recognition method combining the lateral geometric features of adjacent tool paths, and the method mainly includes the following steps:
[0049] Step 1: Starting from the CAD model of the machined part, any CAD / CAM software can be used to generate the machining tool path of the target part, and the post-processing system is used to obtain the G01 program segment of the machined part. Specifically, there is no special requirement for the type of tool, and no special requirement for line cutting and circular cutting. The G code obtained by post-processing is a simple G01 program segment, that is, the interpolation instruction is only the G code of G01. In this embodiment, the CAD / CAM software NX of Siemens of Germany is used to generate and post-process the part milling finishing tool path.
[0050] Step 2: parse the G01 program segment of the target part, obtain the three-dimensional coordinates of the tool position point in the machining tool path, and sort the parsed tool position point coordinates according to the tool travel direction and save them as the tool position point cloud, which is set as P N , N represents the number of tool positions, and each tool position is denoted by P i , knife point P i The three-dimensional coordinates are labeled [x i ,y i ,z i ], where i is the knife point index.
[0051] Specifically, the order of each line of instructions in the G01 program segment is used as the index of the tool position point, and the three-dimensional coordinates of the tool position point under the index value are updated according to the corresponding G01 instruction, and finally the tool position point cloud data is obtained, which includes the three-dimensional coordinates of the tool position point and its index. In this embodiment, the above data is saved as a Numpy matrix.
[0052] Step 3: Determine and calculate the geometric parameters of the tool position. Figure 5 and Figure 6 Specifically, the geometric parameters include point distance, external angle, internal angle, curvature, etc. i Set the point distance d i 、External angle θ i , interior angle θ i ′, curvature k i, and construct the geometric feature vector of the tool position point, where the geometric feature vector of the tool position point i is recorded as f i .
[0053] For knife point P i =[x i ,y i ,z i ], calculate the point distance d of the tool position point i The formula is:
[0054]
[0055] For knife point P i =[x i ,y i ,z i ], calculate the external angle θ of the tool position point i , interior angle θ i The formula for ′ is:
[0056]
[0057]
[0058] For knife point P i =[x i ,y i ,z i ], the formula for calculating its vector is:
[0059] v i =P i -P i-1
[0060] Calculate plane P i-1 P i P i+1 The normal vector formula is:
[0061] v t =v i ×v i+1 =[x t ,y t ,z t ]
[0062] The formula for calculating the center of the interpolation circle is:
[0063]
[0064] The curvature radius and curvature formula for calculating the tool position point are:
[0065] r i =||P i -P c ||2
[0066]
[0067] Construct the geometric feature vector of the tool position point, and i , whose geometric eigenvector f i The construction formula is:
[0068] f i =[d i ,minθ i ,θ′ i ,max i ,θ′ i ,k i ].
[0069] Step 4: For each tool position point, the tool position point geometric feature matrix is generated by combining the neighboring tool positions in the tool travel direction. For tool position point i, its geometric feature matrix is recorded as Gram i . See Figure 7 , specifically including the following sub-steps:
[0070] (4.1) Select the tool positions of the target point and the front and rear neighbors of the machining tool moving direction to form a sliding window queue. i The sliding window queue is denoted as SW i .
[0071] (4.2) Let the length of the sliding window queue be l, which is usually set to an odd length, and let the neighborhood length be In this embodiment, l=9, Take the target knife position P i The sl knife positions before and after the sliding window queue SW i , so that the target tool position point is located at the center of the sliding window queue. If the number of front and rear tool positions is less than sl, it will be filled with 0.
[0072] (4.3) For the sliding window queue SW i =[P i-sl ,…,P i-1 ,P i , P i+1 ,…,P i+sl ] Construct point distance vectors respectively Exterior Angle Vector Curvature vector As mentioned before, if a parameter does not exist, it is replaced by 0.
[0073] (4.4) For the above geometric parameter vector, the normalization method is used to preprocess its data. The formula is as follows: For example:
[0074]
[0075] For the exterior angle vector Curvature vector The same logic applies.
[0076] (4.5) The normalized geometric parameter vector generates the corresponding Gram matrix components according to the following formula:
[0077]
[0078] For the exterior angle vector Curvature vector The same applies to the generation of applications
[0079] (4.6) For each target point P i Generated Gram matrix components Construct the geometric feature matrix Gram of the tool position point i :
[0080]
[0081] (4.7) After the geometric feature matrix of the current tool position is constructed, the sliding window queue deletes the tool position at the head of the queue and adds a new tool position at the tail of the queue according to the order of the tool position index, which is the new sliding window queue SW i+1 .
[0082] (4.8) Until the entire tool point cloud is traversed, the geometric feature matrix of all tool points is generated.
[0083] Step 5: Use the greedy projection triangulation algorithm to topologically transform the tool point cloud into a graph data structure. Figure 8 This step establishes the connectivity between the tool point location and its adjacent tool point location, paving the way for combining the lateral geometric features of the tool path adjacent to the tool point location. In this embodiment, the greedy projection direction is the tool axis normal, and the Scipy library is used to complete the triangulation of the tool point cloud.
[0084] Step 6: Construct the connectivity relationship between the cutter points through the adjacent cutter point index of each cutter point. The connectivity relationship between the cutter point i and the cutter point j is recorded as A ij , and use this to calculate the knife point cloud adjacency matrix A.
[0085] It includes the following sub-steps:
[0086] (6.1) For each tool point location, after the tool point cloud is triangulated, for each tool point location, the tool points that are connected to it, i.e., the adjacent tool points, are obtained, and the indexes of the adjacent tool points are recorded.
[0087] (6.2) The adjacency matrix A of the knife point cloud is constructed by the adjacent point index vector of the knife point, where Aij Indicates the connectivity between tool point i and tool point j. If there is a connectivity relationship A ij =1, otherwise A ij = 0, in particular, the connectivity between each knife point and itself is recorded as 0, that is, A ii =0.
[0088] Step 7: Build and train the graph neural network model, and input the tool point cloud data and tool point cloud adjacency matrix of the feature points to be predicted into the trained graph neural network model to realize tool feature point recognition. Fig. 9 and Fig.16 , specifically including the following steps:
[0089] (7.1) Build a graph neural network model. The graph neural network model mainly includes four modules, namely input layer, comprehensive geometric feature extraction layer, hidden layer and output layer. In this embodiment, the hidden layer is a fully connected neural network layer, the activation function between neural networks is set to ReLU function, the activation function of the output layer is Sigmoid function, and the loss function is cross entropy function.
[0090] ReLU x=max x,0
[0091]
[0092]
[0093] (7.2) Create a dataset for training graph neural networks.
[0094] (7.3) Starting from the CAD model of the part, the feature points in the tool path are first manually marked, distinguished by 1 / 0. In particular, the processing features of the part model as a data set should be as diverse as possible. In this embodiment, ISurfine software is used to manually mark the feature points in the tool path.
[0095] (7.4) Calculate the geometric parameters and geometric feature vectors of the tool point locations, generate the tool point geometric feature matrix, triangulate to establish the tool point cloud adjacency matrix, and maintain the mapping with the feature point labels.
[0096] (7.5) Input the labeled data set into the graph neural network model and complete the training process of the graph neural network model. In this embodiment, the number of training rounds is 100, the batch size is 16, and a dynamic learning rate is used.
[0097] (7.6) The tool point cloud data and the tool point cloud adjacency matrix that need to be predicted are input into the trained graph neural network model to realize the recognition of tool feature points.
[0098] Among them, the problem of feature point recognition in the tool path can be solved by topologically transforming the tool point cloud into a graph structure and constructing a corresponding graph neural network model to complete the graph vertex classification. First, the tool point cloud is topologically transformed into a graph structure through triangulation, and the graph data structure is read by the input layer. Then, the comprehensive geometric feature extraction layer in the graph neural network model aggregates the longitudinal and lateral geometric features of the tool point movement, generates the tool point comprehensive geometric feature matrix and preliminarily extracts the tool point comprehensive geometric features. Then, the hidden layer in the network model extracts the deep-level features of the feature points, and finally the output layer aggregates and calculates the output feature point labels.
[0099] See also Fig.10 , Fig.11 and Fig.12 , using the graph neural network model to identify tool feature points includes the following sub-steps:
[0100] (S1) Define and calculate the geometric similarity coefficients between the tool point locations, and then construct the tool point cloud geometric similarity adjacency matrix in combination with the tool point cloud adjacency matrix. In this embodiment, the matrix is generated according to the following steps:
[0101] (S1.1) Define and calculate the geometric similarity coefficient between tool positions, where the geometric similarity coefficient between tool position i and tool position j is denoted as ω ij , then ω ij The calculation formula is as follows:
[0102]
[0103] Where k is equal to the size of the geometric feature vector of the tool position point.
[0104] (S1.2) According to the calculation formula of the geometric similarity coefficient between the knife point locations given above, combined with the adjacency matrix of the knife point cloud, the knife point cloud geometric similarity adjacency matrix A is calculated s , then A s The calculation formula is as follows:
[0105]
[0106] in It is Hadamard.
[0107] (S2) Construct a knife point cloud walking probability matrix. In this embodiment, c=1 is taken and generated according to the following steps:
[0108] (S2.1) Each row of the knife point cloud geometric similarity adjacency matrix is the geometric similarity coefficient between the knife point with the corresponding index and its adjacent knife points, and the geometric similarity coefficient with the non-adjacent knife points is 0. The adjacency similarity vector of the knife point is extracted, and the adjacency similarity vector of the knife point with index value i is recorded as W i :
[0109]
[0110]
[0111] (S2.2) The adjacency similarity vector of the normalized knife point is recorded as W i , calculate the walking probability vector of the knife position, p ij represents the probability that the knife position i moves to the knife position j, and the calculation formula is as follows:
[0112]
[0113] (S2.3) The walking probability between the knife point locations is calculated by the above formula, and the knife point cloud walking probability matrix A is constructed p and the knife point wandering probability vector The calculation formula is as follows:
[0114]
[0115] (S2.4) According to the number of steps c required to walk, the probability matrix of the knife point cloud after walking c steps is recorded as The probability vector of knife point movement after walking c steps The calculation formula is as follows:
[0116]
[0117] (S3) For each tool position point's wandering probability vector, m related tool position points are obtained according to the wandering probability from large to small probability, where m can be determined according to the actual situation. In this embodiment, the number of related tool position points selected for each tool position point is m=2.
[0118] (S3.1) Sort the walk probability vectors of each knife point from large to small, and save the index values of adjacent knife points from large to small according to the walk probability:
[0119]
[0120] in, The index values of the adjacent tool positions of tool position i are arranged from large to small according to the wandering probability.
[0121] (S3.2) Determine the required number of relational tool positions m according to the actual situation, and n The adjacent tool point index is selected in the order of , and the selected index value is the relative tool point index of the target tool point. The relative tool point index set of tool point i is recorded as S i, the related tool point is the tool point in the adjacent tool path of the target tool point that has a connectivity relationship with the target tool point and has the most similar geometric features:
[0122]
[0123] (S4) Select the geometric feature matrix of the related tool point through the above-mentioned related tool point index set, combine it with the geometric feature matrix of the target tool point, and construct the comprehensive geometric feature matrix of the target tool point, denoted as F i , then the size of the comprehensive geometric feature matrix of the tool position point generated in this embodiment is 9×9×3×2:
[0124]
[0125] (S5) The knife point integrated geometric feature matrix is input into the hidden layer of the graph neural network model to extract abstract features, and predict the output feature point labels. In this embodiment, the output feature point labels are distinguished according to probability, and the ones with a predicted probability greater than 0.8 are feature points, and the label 1 indicates that the knife point is a feature point, otherwise it is indicated by 0 that the knife point is not a feature point.
[0126] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths as described above is implemented.
[0127] The present invention also provides a tool feature point recognition device combining lateral geometric features of adjacent tool paths, the device comprising the computer-readable storage medium as described above and a processor, the processor being used to call and process a computer program stored in the computer-readable storage medium.
[0128] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A tool feature point recognition method combining the lateral geometric features of adjacent tool paths, characterized in that: The method comprises the following steps: (1) Analyze the G01 program segment of the target part to obtain the three-dimensional coordinates of the tool position points in the machining tool path, and sort the obtained tool position point coordinates according to the tool travel direction to obtain the tool position point cloud; (2) Determine and calculate the geometric parameters of the tool position point, and construct the geometric feature vector of the tool position point; (3) Generate a tool point geometric feature matrix based on the neighboring tool points in the tool travel direction; (4) Using the greedy projection triangulation algorithm to topologically transform the tool point cloud into a graph data structure; (5) The connectivity relationship between the cutter points is constructed through the adjacent cutter point index of each cutter point, and then the cutter point cloud adjacency matrix is calculated; (6) inputting the tool point cloud data and the tool point cloud adjacency matrix of the feature points to be predicted into the trained graph neural network model, and the graph neural network model completes the tool feature point recognition; Step (6) includes the following sub-steps: (S1) determining and calculating the geometric similarity coefficients between the knife point locations, and then constructing a knife point cloud geometric similarity adjacency matrix in combination with the knife point cloud adjacency matrix; (S2) constructing a knife point cloud walking probability matrix; (S3) for each knife position point's walking probability vector, obtain m related knife position points according to the walking probability from large to small probability, where m is a positive integer; (S4) selecting a geometric feature matrix of a related tool point through a related tool point index set, combining the geometric feature matrix of a target tool point, and constructing a comprehensive geometric feature matrix of the target tool point; (S5) The comprehensive geometric feature matrix of the knife point locations is input into the hidden layer of the graph neural network model to extract abstract features and predict the output feature point labels.
2. The method for identifying tool feature points in combination with the lateral geometric features of adjacent tool paths according to claim 1, characterized in that: The output feature point labels are distinguished according to the probability. The ones with predicted probability greater than 0.8 are feature points. The label 1 indicates that the knife point is a feature point, otherwise it is 0 to indicate that the knife point is not a feature point.
3. The method for identifying tool feature points in combination with the lateral geometric features of adjacent tool paths according to claim 1, characterized in that: In step (2), each row of the cutter point cloud geometric similarity adjacency matrix is the geometric similarity coefficient between the cutter point corresponding to the index and its adjacent cutter point, and the geometric similarity coefficient with the non-adjacent cutter point is 0, and the adjacency similarity vector of the cutter point is extracted; then, the walk probability vector of the cutter point is calculated by normalizing the adjacency similarity vector of the cutter point; then, the walk probability between the cutter points is calculated, and the cutter point cloud walk probability matrix A is constructed. p and the knife point wandering probability vector p i ; Then, according to the determined number of steps c required to walk, calculate the knife point cloud walking probability matrix after walking c steps and the knife point walking probability vector p after walking c steps i c .
4. The method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths according to claim 1, characterized in that: In step (S3), the walk probability vectors of each tool point are sorted from large to small, and the index values of the adjacent tool points are saved from large to small according to the walk probability; the adjacent tool point index is selected, and the selected index value is the relative tool point index of the target tool point, and the relative tool point index set of tool point i is recorded as S i The related tool position point is the tool position point in the adjacent tool path of the target tool position point that is connected with the target tool position point and has the most similar geometric features.
5. The method for identifying tool feature points in combination with the lateral geometric features of adjacent tool paths according to claim 1, characterized in that: Geometric parameters include point spacing, exterior angle, interior angle, and curvature.
6. The method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths according to claim 1, characterized in that: In step (5), for each tool point cloud, after the tool point cloud is triangulated, the tool points connected to each tool point are obtained, i.e., the adjacent tool points, and the indexes of the adjacent tool points are recorded; the adjacency matrix A of the tool point cloud is constructed through the adjacent point index vectors of the tool points, where A ij Indicates the connectivity between tool point i and tool point j. If there is a connectivity relationship A ij =1, otherwise A ij =0.
7. The method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths according to any one of claims 1 to 6, characterized in that: The graph neural network model includes an input layer, a comprehensive geometric feature extraction layer, a hidden layer and an output layer; the input layer reads the graph data structure, and then the comprehensive geometric feature extraction layer in the graph neural network model aggregates the longitudinal and lateral geometric features of the tool position points, generates a comprehensive geometric feature matrix of the tool position points and preliminarily extracts the comprehensive geometric features of the tool position points, and then the hidden layer in the graph neural network model extracts the deep-level features of the feature points, and finally the output layer performs aggregation calculations and outputs the feature point labels.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for identifying tool feature points in combination with lateral geometric features of adjacent tool paths as described in any one of claims 1 to 7 is implemented.
9. A tool feature point recognition device combining the lateral geometric features of adjacent tool paths, characterized in that: The device comprises the computer-readable storage medium as claimed in claim 8 and a processor, wherein the processor is used to call and process a computer program stored in the computer-readable storage medium.
