A tool machining path planning method suitable for curved surfaces

By using multi-sample and multi-working condition confrontation training neural network models in tool processing path planning, the problems of cumbersome path planning process and low accuracy in the existing technology are solved, and more efficient and convenient tool path planning is achieved. , adapt to different working conditions.

CN111950189BActive Publication Date: 2024-09-27HUAZHONG UNIV OF SCI & TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201910399580.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-14
Publication Date
2024-09-27
Estimated Expiration
2039-05-14

AI Technical Summary

Technical Problem

In the existing technology, the tool machining path planning process is cumbersome and the operation is complex, and the accuracy of the neural network in path planning is not high, the generalization ability is not strong, and it is difficult to adapt to different working conditions.

Method used

Using a multi-sample, multi-working condition adversarial training neural network model, by generating and comparing tool path planning images on a regular two-dimensional plane, the accuracy and generalization ability of path planning are improved, and the calculation process is simplified.

Benefits of technology

It improves the accuracy and calculation speed of path planning, simplifies the operation process, makes path planning more in line with actual production needs, and enhances the adaptability to different working conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111950189B
    Figure CN111950189B
Patent Text Reader

Abstract

The present invention discloses a tool processing path planning method suitable for curved surfaces, which is characterized by comprising obtaining a planar tool path planning image of a sample workpiece on a regular two-dimensional plane, and using it together with a corresponding real tool path planning image to form a training sample to train a tool processing path planning model; comparing the planar tool path planning image with the real tool path planning image for similarity to complete the training of the tool processing path planning model; inputting the working conditions of the workpiece to be processed and its corresponding regular two-dimensional plane into the tool processing path planning model, and correspondingly outputting the tool processing path planning of the workpiece to be processed. The technical solution of the present invention aims at the current situation that the accuracy of neural networks in tool processing path planning is not high and the generalization ability is not strong. The method of conducting multi-sample and multi-condition adversarial training on neural networks can effectively improve the accuracy of neural networks in tool processing path planning applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of machine tool processing, and in particular relates to a tool processing path planning method suitable for curved surfaces. Background Art

[0002] In the process of CNC machining, the tool path is of great significance to the machining results. It determines the roughness of the machined surface and the precision of the dead angle position processing of the workpiece. For different machining workpieces, the importance of tool path design is self-evident. Specifically, the tool machining path is the trajectory of the specified point on the cutting tool, which is usually the position point in space during tool machining. The tool path generation of surface machining is the key link in realizing surface CNC machining. In the actual workpiece machining process, the design of the tool path is to calculate the tool position and generate the machining motion trajectory based on the part geometry model, the selected machining machine, tool, tool path, machining allowance and other process methods. The ability to generate tool paths directly determines the function of the CNC programming system and the quality of the generated machining program. In addition to ensuring programming accuracy and avoiding interference, high-quality CNC machining programs should also meet the requirements of good versatility, short machining time, high programming efficiency, and small code volume.

[0003] In the prior art, for tool processing path planning, the general practice is to first construct a planning path on a plane, then project it onto a curved surface to generate a tool position trajectory, and then first parameterize the workpiece surface on the workpiece. Specifically, first unfold each curved surface of the workpiece, and re-parameterize them respectively, so as to convert the curved surface into a plane. In the parameterization process, the proportional relationship of the arc length contour of the workpiece is kept unchanged, and the parameter domain of each surface of the workpiece is transformed into a standard rectangular space through mapping of the parameter domain. The tool path is planned in the rectangular parameter domain, and then the planned path is inversely transformed to generate the path planning in the corresponding surface. In other words, in this tool path planning process, the mapping relationship between the real curved surface tool processing path and the plane tool processing path is involved. The surface to be processed first needs to be mapped into a plane according to the proportion, and then the tool path is designed on the plane. Finally, the obtained plane tool path is mapped to the surface to be processed to guide the tool to complete the processing of the workpiece.

[0004] The difficulty of this type of planning lies in the fact that for each path, multiple parameter domain transformation mappings need to be performed. According to the above process, it must be done at least twice (surface mapping to plane for design, and plane mapping to surface for processing). Furthermore, this method is cumbersome to operate, and different planning methods are required for different working conditions, such as tool feed speed, tool motion curve, and type of processed parts. Therefore, the previous path planning methods are not easy to master and are time-consuming and labor-intensive. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a tool machining path planning method suitable for curved surfaces, which can at least partially solve the above problems. The technical solution of the present invention aims at the current situation that the accuracy and generalization ability of neural networks in tool machining path planning are not high. The method of multi-sample and multi-condition adversarial training of neural networks can effectively improve the accuracy of neural networks in tool machining path planning applications.

[0006] To achieve the above object, according to one aspect of the present invention, a tool machining path planning method suitable for curved surfaces is provided, which is characterized by comprising:

[0007] S1 obtains a planar tool path planning image of a sample workpiece on a regular two-dimensional plane according to working conditions, and uses it together with the corresponding real tool path planning image to form a training sample to train the tool processing path planning model;

[0008] S2 inputs the working condition of the sample workpiece and its corresponding two-dimensional plane into the neural network, controls the corresponding output plane tool path planning image and compares it with the real tool path planning image for similarity. If it meets the similarity judgment condition, it goes to step S3, otherwise it goes to step S1;

[0009] S3 traverses all training samples and completes the training of the tool processing path planning model;

[0010] S4 constructs a three-dimensional structural model of the workpiece to be processed according to its shape, and unfolds each surface of the three-dimensional structural model into a regular two-dimensional plane through parameter domain transformation;

[0011] S5 inputs the working condition of the workpiece to be processed and the corresponding regular two-dimensional plane into the tool processing path planning model, and correspondingly outputs the tool processing path planning of the workpiece to be processed.

[0012] As a preferred embodiment of the technical solution of the present invention, the similarity condition in step S2 is preferably that the similarity between the planar tool path planning image and the real tool path planning image reaches a certain threshold.

[0013] As a preferred embodiment of the technical solution of the present invention, the regular two-dimensional plane is preferably a standard rectangular plane.

[0014] As a preferred embodiment of the technical solution of the present invention, the parameter domain transformation between the planar tool path planning image and the real tool path planning image is the inverse transformation of the parameter domain transformation between the three-dimensional structure model and the regular two-dimensional plane.

[0015] As a preferred embodiment of the technical solution of the present invention, the sample workpiece and the workpiece to be processed complete the transformation of the three-dimensional model structure into a regular two-dimensional plane in the same parameter domain.

[0016] According to one aspect of the present invention, there is provided a tool processing path planning system suitable for curved surfaces, characterized in that it comprises:

[0017] A sample module is used to obtain a planar tool path planning image of a sample workpiece on a regular two-dimensional plane according to working conditions, and use it together with the corresponding real tool path planning image to form a training sample to train the tool processing path planning model;

[0018] The training module is used to input the working conditions of the sample workpiece and its corresponding two-dimensional plane into the neural network, control the corresponding output plane tool path planning image and compare it with the real tool path planning image for similarity. If it meets the similarity judgment condition, it enters the traversal module, otherwise it enters the sample module;

[0019] The traversal module is used to traverse all training samples and complete the training of the tool processing path planning model;

[0020] A model module, used to construct a three-dimensional structural model of the workpiece to be processed according to its shape, and to unfold each surface of the three-dimensional structural model into a regular two-dimensional plane through parameter domain transformation;

[0021] The planning module is used to input the working conditions of the workpiece to be processed and the corresponding regular two-dimensional plane into the tool processing path planning model, and correspondingly output the tool processing path planning of the workpiece to be processed.

[0022] As a preferred embodiment of the technical solution of the present invention, the similarity condition in the training module is preferably that the similarity between the planar tool path planning image and the real tool path planning image reaches a certain threshold.

[0023] As a preferred embodiment of the technical solution of the present invention, the regular two-dimensional plane is preferably a standard rectangular plane.

[0024] As a preferred embodiment of the technical solution of the present invention, the parameter domain transformation between the planar tool path planning image and the real tool path planning image is the inverse transformation of the parameter domain transformation between the three-dimensional structure model and the regular two-dimensional plane.

[0025] As a preferred embodiment of the technical solution of the present invention, the sample workpiece and the workpiece to be processed complete the transformation of the three-dimensional model structure into a regular two-dimensional plane in the same parameter domain.

[0026] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art:

[0027] 1) The technical solution of the present invention aims at the characteristics of cumbersome calculation and complicated operation of traditional path planning. The present invention utilizes an improved neural network model to simplify the calculation process and improve the calculation speed, making path planning simpler and more convenient.

[0028] 2) The technical solution of the present invention adds working conditions to the neural network, making path planning more in line with actual production and improving the generalization ability of path planning.

[0029] 3) The technical solution of the present invention utilizes an adversarial neural network model to eliminate the shortcomings of blurry and inaccurate images generated by previous neural network models, and improves the accuracy of output images through adversarial training of the generator and the discriminator. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of a three-dimensional structural model of a workpiece to be processed according to an embodiment of the technical solution of the present invention unfolded into a plane;

[0031] Figure 2 It is a schematic diagram of converting the unfolded irregular plane diagram into a regular plane diagram according to the proportion in the embodiment of the technical solution of the present invention;

[0032] Figure 3 It is a specific embodiment of the parameter domain transformation process in the technical solution embodiment of the present invention;

[0033] Figure 4 It is a schematic diagram of proportional consistency during the parameter domain change process in the embodiment of the technical solution of the present invention;

[0034] Figure 5 is a flow chart of a tool processing path planning method in an embodiment of the technical solution of the present invention;

[0035] Figure 6 It is a flow chart of tool processing path planning performed by a generator in a standard rectangular parameter domain in an embodiment of the technical solution of the present invention. DETAILED DESCRIPTION

[0036] 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 each embodiment of the present invention described below can be combined with each other as long as they do not conflict with each other. The present invention is further described in detail below in conjunction with specific embodiments.

[0037] A tool processing path planning method is disclosed in an embodiment of the technical solution of the present invention, specifically, a tool processing path planning method suitable for surface processing is disclosed, which proposes an effective solution to the problem that the current surface tool path planning method is low in efficiency and poor generalization ability. The tool processing path planning method implemented in this embodiment is preferably implemented by the following steps: first, the initial coordinate domain parameters of the workpiece are obtained, and then the initial parameter domain is transformed into a quasi-rectangular parameter domain by a mathematical calculation method to obtain the planned path image. Then, a deep neural network model is established based on the path planning images in the two parameter domains and the working conditions. The tool processing path planning method in this embodiment can realize path planning and drawing in a rectangular parameter domain, and directly generate an image in the original parameter domain. At the same time, the method can also generate corresponding path planning according to different working conditions.

[0038] In the prior art, the processing of mechanical parts generally requires multiple steps, in which the details of the parts to be processed in each step are not the same. Some require plane cutting, some require grooves, and some require arc surface processing... In these processing processes, it is inevitable to encounter different forms of the same workpiece, and the corresponding three-dimensional structural model will have different processing planes. Among them, the processing on the curved surface is the key problem to be solved by the tool processing path planning method of this embodiment. It should be particularly noted that the tool processing path planning method of the technical solution of this application is not limited to curved surface processing, and is also applicable to the processing of workpieces in non-curved states. In this embodiment, only the curved surface is used as an example to illustrate the technical solution of the present invention.

[0039] The tool processing path planning method of this embodiment is specifically described below according to the implementation steps:

[0040] Step 1: Obtain the 3D structural model of the workpiece to be processed, and then expand each surface of the 3D structural model of the workpiece to be processed (i.e., the original parameter domain of the workpiece to be processed), including the curved surface, to form a two-dimensional plane with a regular shape (such as Figures 1 to 3 It should be noted that, according to the requirements, the above three-dimensional structural model can be unfolded into a two-dimensional plane along a certain structural line, or can be unfolded into multiple planes according to multiple structural lines. The structural line in this embodiment can be the intersection line between the surfaces of the three-dimensional structural model, or other straight lines or curves on the surface of the three-dimensional structural model selected according to the design requirements.

[0041] As mentioned above, the three-dimensional structural model of the workpiece to be processed may be in multiple different processing stages, so the processing surfaces to be processed may be different structural surfaces. In this embodiment, after obtaining the specific unit structural model of the workpiece to be processed, each surface of the three-dimensional structural model is first unfolded into a two-dimensional plane structure. In this embodiment, the parameter domain of each surface of the three-dimensional structural model is preferably converted into a standard rectangular parameter domain through at least one parameter domain transformation. Among them, converting the non-rectangular plane of the three-dimensional structural model into a standard rectangle is a conventional parameter domain transformation, which is not repeated in this embodiment. Specifically, in order to ensure the accuracy of the parameter domain transformation, in the process of parameter change, in this embodiment, a unified parameter domain space is used for each surface of the three-dimensional structural model of the workpiece to be processed, and at the same time, the common edges between adjacent surfaces have a consistent parameter distribution. Further, for the sample workpiece and the workpiece to be processed, the parameter domain space taken by both in each identical step is also the same.

[0042] like Figure 4 As shown in the process of parameter domain transformation, not only the proportional relationship of the lengths of L1, L2, L3, and L4 must be kept unchanged, but also the proportional relationship of the points on E1 and E2 must be kept unchanged.

[0043] Step 2: Perform tool path planning in the standard rectangular parameter domain (i.e., standard rectangular plane) to obtain the initial tool path planning image in the standard rectangular parameter domain, and then map the tool path planning image to the corresponding original parameter domain to generate the actual tool path planning image under the three-dimensional structure model. As can be seen from step 1, the standard rectangular parameter domain is obtained by performing parameter domain transformation on the original parameter domain. Correspondingly, the standard rectangular parameter domain can be transformed into the original parameter domain by using the corresponding inverse parameter domain transformation method, thereby realizing the planning and design of the tool path in the original parameter domain. Among them, in the process of inverse transformation of the standard rectangular parameter domain, it is still necessary to follow the problems of unified parameter domain space and transformation ratio listed in step 1.

[0044] Step 3: For different working conditions, obtain the corresponding tool path planning images of the standard rectangular parameter domain and the original parameter domain, that is, the plane tool path planning image and the real tool path planning image, and use them as training samples for neural network training. Specifically, Figure 5As shown, the neural network training process of this embodiment is to compare the real path planning image with the path planning image generated by the generator in the standard rectangular parameter domain, and make a judgment based on the comparison result. If the path planning image generated in the standard rectangular parameter domain meets the judgment threshold of the discriminator, it means that the path planning image generated in the standard rectangular parameter domain meets the tool path planning design requirements. Otherwise, the path planning image is re-generated in the standard rectangular parameter domain until the path planning image generated in the standard rectangular parameter domain is reversely mapped to the tool path planning image in the actual parameter domain, and the similarity between the real path planning image meets the recognition threshold of the discriminator, that is, the training process of this group of training samples is completed.

[0045] Among them, it should be particularly noted that for the training samples under different working conditions, the tool path planning images of the standard rectangular parameter domain and the original parameter domain corresponding to one working condition are used as a group of training samples, and the training samples change when the working condition changes, and the training samples also change accordingly when the three-dimensional structure model of the workpiece to be processed changes. In this embodiment, training is performed separately for different working conditions, which can enhance the generalization ability of the neural network for different working conditions, improve the accuracy of the neural network for the tool path planning images in the machining process, and thus improve the precision of the machining.

[0046] In other words, if Figure 5 As shown, the input of the generator in this embodiment is the tool path planning image in the rectangular parameter domain and the corresponding working conditions, and the output is the tool path planning image in the original parameter domain. The discriminator is used to discriminate the generated image from the image in the data set, and in the confrontation between the generator and the discriminator, the quality of the output image of the generator is improved. Figure 6 As shown, the generator is divided into an image encoder and a decoder, where the encoder input is a tool path planning image in a rectangular parameter domain, and the output is the tool path planning image information; the decoder input is an image matrix and corresponding working conditions, and the output is a path planning image in the original parameter domain.

[0047] That is to say, the method of the technical solution of the present invention can be summarized into the following steps:

[0048] (1) Read the initial coordinate data of the workpiece and establish a plane mapping for each three-dimensional surface. During the mapping process, ensure that the side length ratio of each surface remains unchanged, and complete the conversion from the three-dimensional model parameter domain to the original plane parameter domain.

[0049] (2) The parameter domain of each curved surface is transformed using traditional methods for the original plane parameter domain. After multiple parameter domain transformations, the parameter domain of each surface of the workpiece becomes a standard rectangular space. Path planning is performed in the standard rectangular space to generate a path planning image.

[0050] (3) Using traditional mathematical calculation methods, a path planning image is generated in the original plane parameter domain.

[0051] (4) The obtained images and corresponding working conditions are used for training. In order to make the generated images clearer and more realistic, an adversarial generative network model is adopted, that is, an image generator and a discriminator are established. The image output quality of the generator model is improved through the mutual confrontation between the generator and the discriminator.

[0052] (5) Perform path planning in a standard rectangular parameter domain and input the planned path image into a neural network to obtain a planned path image in an initial parameter domain.

[0053] It can be seen that the tool processing path planning method in this embodiment, in addition to improving the existing tool processing path planning method by using a neural network, is also specially designed for the generalization ability of the neural network in this field. Its characteristics are that, on the one hand, the tool processing path design is realized by a neural network, and on the other hand, the generalization ability of the model is improved through neural network adversarial training, making it more adaptable to various working conditions.

[0054] 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 processing path planning method suitable for curved surfaces, characterized in that: include S1 obtains a planar tool path planning image of a sample workpiece on a regular two-dimensional plane according to working conditions, and uses it together with the corresponding real tool path planning image to form a training sample to train the tool processing path planning model; S2 inputs the working condition of the sample workpiece and its corresponding two-dimensional plane into the neural network, controls the corresponding output plane tool path planning image and compares it with the real tool path planning image for similarity. If it meets the similarity judgment condition, it goes to step S3, otherwise it goes to step S1; S3 traverses all training samples and completes the training of the tool processing path planning model; S4 constructs a three-dimensional structural model of the workpiece to be processed according to its shape, and unfolds each surface of the three-dimensional structural model into a regular two-dimensional plane through parameter domain transformation; S5 inputs the working condition of the workpiece to be processed and the corresponding regular two-dimensional plane into the tool processing path planning model, and correspondingly outputs the tool processing path planning of the workpiece to be processed.

2. A tool machining path planning method suitable for curved surfaces according to claim 1, wherein: The similarity judgment condition in step S2 is preferably that the similarity between the planar tool path planning image and the real tool path planning image reaches a certain threshold.

3. A tool machining path planning method applicable to a curved surface according to claim 1 or 2, wherein: The regular two-dimensional plane is preferably a standard rectangular plane.

4. A tool machining path planning method applicable to curved surfaces according to claim 1 or 2, wherein: The parameter domain transformation between the planar tool path planning image and the real tool path planning image is the inverse transformation of the parameter domain transformation between the three-dimensional structure model and the regular two-dimensional plane.

5. A tool machining path planning method applicable to curved surfaces according to claim 1 or 2, wherein: The sample workpiece and the workpiece to be processed complete the transformation from the three-dimensional model structure to a regular two-dimensional plane in the same parameter domain.

6. A tool processing path planning system suitable for curved surfaces, characterized in that: include A sample module is used to obtain a planar tool path planning image of a sample workpiece on a regular two-dimensional plane according to working conditions, and use it together with the corresponding real tool path planning image to form a training sample to train the tool processing path planning model; The training module is used to input the working conditions of the sample workpiece and its corresponding two-dimensional plane into the neural network, control the corresponding output plane tool path planning image and compare it with the real tool path planning image for similarity. If it meets the similarity judgment condition, it enters the traversal module, otherwise it enters the sample module; The traversal module is used to traverse all training samples and complete the training of the tool processing path planning model; A model module, used to construct a three-dimensional structural model of the workpiece to be processed according to its shape, and to unfold each surface of the three-dimensional structural model into a regular two-dimensional plane through parameter domain transformation; The planning module is used to input the working conditions of the workpiece to be processed and the corresponding regular two-dimensional plane into the tool processing path planning model, and correspondingly output the tool processing path planning of the workpiece to be processed.

7. A tool processing path planning system suitable for curved surfaces according to claim 6, wherein: The similarity judgment condition in the training module is preferably that the similarity between the plane tool path planning image and the real tool path planning image reaches a certain threshold.

8. A tool processing path planning system suitable for curved surfaces according to claim 6 or 7, wherein: The regular two-dimensional plane is preferably a standard rectangular plane.

9. A tool processing path planning system suitable for curved surfaces according to claim 6 or 7, wherein: The parameter domain transformation between the planar tool path planning image and the real tool path planning image is the inverse transformation of the parameter domain transformation between the three-dimensional structure model and the regular two-dimensional plane.

10. A tool processing path planning system suitable for curved surfaces according to claim 6 or 7, wherein: The sample workpiece and the workpiece to be processed complete the transformation from the three-dimensional model structure to a regular two-dimensional plane in the same parameter domain.

Citation Information

Patent Citations

  • On-line detection method of curved surface machining precision of complex part

    CN102785129A

  • A helix guidance surfaces numerical control processing method

    CN1967423A

  • Numerically controlled curved surface working device

    JP2001092516A

  • Three-dimensional curve-forming method and system

    JP2010271829A

  • Five-axis flank milling system for machining curved surface and a toolpath planning method thereof

    US20130144425A1