Method, device and storage medium for adjusting process strategy based on numerical control machine tool
By acquiring the features and labels of multiple process parameters and adjusting the process strategy of CNC machine tools using the target model, the problem that a single parameter feature cannot cover all information is solved, and higher quality machining results are achieved.
Patent Information
- Application Number
- CN202311494440.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-09
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-11-09
AI Technical Summary
In existing technologies, when adjusting the machining process strategy of CNC machine tools based on the parameter characteristics of a single process parameter, it is impossible to cover all machining information, resulting in low product quality.
By acquiring the parameter characteristics of multiple process parameters and actual process labels, the target model is used to predict the process labels, and the initial process strategy is adjusted based on the predicted process labels, including establishing the initial model, optimizing the model parameters, and determining the target process strategy.
It improved the accuracy of process label prediction, enabled adaptive adjustment of process strategies, and improved the quality of processed products.
Smart Images

Figure CN117707056B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of CNC machine tool technology, and in particular to a method, equipment and storage medium for adjusting process strategies based on CNC machine tools. Background Technology
[0002] With the development of sensor and artificial intelligence technologies, automatic monitoring and strategy adjustment methods in CNC machine tool machining processes have been increasingly widely applied. Typically, the machining process strategy is adjusted by monitoring changes in the characteristics of individual process parameters. However, the characteristics of a single process parameter often do not cover all machining information. For example, vibration sensors can only collect the characteristics of machining parameters in a specific direction. If the machining strategy is determined solely based on the characteristics of a single process parameter, the characteristics of other machining processes will be ignored, leading to low-quality products. Summary of the Invention
[0003] This application provides at least one method, apparatus, equipment, and computer-readable storage medium for adjusting process strategies based on CNC machine tools.
[0004] The first aspect of this application provides a method for adjusting a process strategy based on a CNC machine tool, comprising: acquiring parameter features of multiple process parameters and actual process labels of each process parameter during the same time period; inputting parameter features that match a target model from the parameter features of each process parameter and the actual process labels corresponding to the matched parameter features into the target model to obtain process labels predicted by the target model; determining a target process strategy from process strategies corresponding to preset process labels based on the predicted process labels, wherein the preset process labels include the actual process labels; and adjusting the initial process strategy of the CNC machine tool to the target process strategy.
[0005] In one embodiment, before the step of inputting the parameter features of the process parameters that match the target model and the actual process labels of the matched process parameters into the target model to obtain the target label result output by the target model, the method further includes: determining multiple initial models based on the parameter features of each process parameter; inputting the parameter features of each process parameter into the corresponding initial model to obtain the process labels predicted by each initial model; and determining the target model from the multiple initial models based on the comparison result between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model.
[0006] In one embodiment, the step of determining the target model from the plurality of initial models based on the comparison results between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model includes: calculating the label similarity between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model to obtain a plurality of label similarities corresponding to each initial model; selecting a model to be optimized from the plurality of initial models based on the magnitude of the multiple label similarities corresponding to each initial model; and optimizing the model parameters in the model to be optimized to obtain the target model.
[0007] In one embodiment, the step of optimizing the model parameters in the model to be optimized to obtain the target model includes: obtaining a preset parameter range for each initial parameter of the model to be optimized; determining a new parameter range based on the parameters selected from the preset parameter range, wherein the interval length of the preset parameter range is greater than or equal to the interval length of the new parameter range; selecting model target parameters from the new parameter range according to a preset equal interval length to obtain multiple model target parameters; obtaining the label similarity corresponding to the model to be optimized, including each model target parameter; and determining the model to be optimized corresponding to the maximum label similarity as the target model.
[0008] In one embodiment, the step of selecting the model to be optimized from the multiple initial models based on the numerical values of the multiple label similarities corresponding to each initial model includes: sorting the multiple label similarities in descending order of numerical values to obtain sorted multiple label similarities; selecting at least one label similarity from the sorted multiple label similarities; and determining the initial model corresponding to the selected at least one label similarity as the model to be optimized.
[0009] In one embodiment, the step of determining a target process strategy from process strategies corresponding to a preset process tag based on the predicted process tag includes: obtaining a process strategy range corresponding to the preset process tag; determining a target process strategy range from multiple process strategy ranges based on the predicted process tag; and determining the process strategy corresponding to the target process strategy range as the target process strategy.
[0010] In one embodiment, the step of obtaining the parameter features of multiple process parameters and the actual process labels of each process parameter in the same time period includes: obtaining multiple process processing feature curves; sliding through each process processing feature curve according to a sliding window with a preset step size to obtain the parameter features of the processing parameters on each process processing feature curve; and obtaining the parameter features of the processing parameters in the same time period on each process processing feature curve.
[0011] A second aspect of this application provides a process strategy adjustment device based on a CNC machine tool, comprising: an acquisition module for acquiring parameter features of multiple process parameters and actual process labels for each process parameter; a prediction module for inputting parameter features that match a target model from the parameter features of each process parameter and the actual process labels corresponding to the matched parameter features into the target model to obtain process labels predicted by the target model; a comparison module for determining a target process strategy from process strategies corresponding to preset process labels based on the predicted process labels, wherein the preset process labels include the actual process labels; and an adjustment module for adjusting the initial process strategy of the CNC machine tool to the target process strategy.
[0012] A third aspect of this application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-described process strategy adjustment method based on CNC machine tools.
[0013] The fourth aspect of this application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implement the above-described process strategy adjustment method based on a CNC machine tool.
[0014] The above scheme obtains the process labels predicted by the target model by inputting the parameter features of multiple process parameters that match the target model into the target model. Based on the predicted process labels, the target process strategy is determined from the process strategies corresponding to the preset process labels. Then, the initial process strategy is adjusted using the target process strategy. On the one hand, it can improve the prediction accuracy of process labels based on the target model. On the other hand, by determining the target process strategy based on the predicted process labels and adjusting the initial process strategy using the target process strategy, the adaptive adjustment of the process strategy is achieved, thereby improving the quality of the processed products.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0017] Figure 1 This is a flowchart illustrating a process strategy adjustment method based on a CNC machine tool, as shown in an exemplary embodiment of this application.
[0018] Figure 2 This is a schematic diagram illustrating the effect of parameter characteristic curves in a process strategy adjustment method based on CNC machine tools, as shown in an exemplary embodiment of this application.
[0019] Figure 3 yes Figure 1 A schematic flowchart of an exemplary embodiment of the process strategy adjustment method based on CNC machine tools before step S120 is shown.
[0020] Figure 4 This is a block diagram illustrating a process strategy adjustment device based on a CNC machine tool, as shown in an exemplary embodiment of this application.
[0021] Figure 5 This is a schematic diagram of the structure of an embodiment of the electronic device of this application;
[0022] Figure 6 This is a schematic diagram of the structure of an embodiment of the computer-readable storage medium of this application. Detailed Implementation
[0023] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0024] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.
[0025] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0026] First, it's important to note that with the development of sensor and artificial intelligence technologies, automatic monitoring and strategy adjustment methods for CNC machine tool machining processes are becoming increasingly widely used. Typically, adjustments to the CNC machine tool's machining strategy are achieved by monitoring changes in the characteristics of individual process parameters during machining. However, the characteristics of a single process parameter often do not cover all machining information. For example, vibration sensors can only collect the characteristics of machining parameters in a specific direction. If the machining strategy is determined solely based on the characteristics of a single process parameter, the characteristics of other machining processes will be overlooked, leading to low-quality products.
[0027] Therefore, in order to improve the quality of processed products, embodiments of this application propose a method, apparatus, and computer-readable storage medium for adjusting process strategies based on CNC machine tools. For details, please refer to... Figure 1 , Figure 1 This is a flowchart illustrating a process strategy adjustment method based on a CNC machine tool, as shown in an exemplary embodiment of this application. Specifically, the process strategy adjustment method based on a CNC machine tool according to this embodiment includes at least steps S110 to S140, which are described in detail below:
[0028] Step S110: Obtain the parameter characteristics of multiple process parameters and the actual process labels of each process parameter during the same time period.
[0029] Process parameters include those acquired by sensors and those acquired by the CNC system. Sensors typically acquire analog signals from the CNC machine tool, usually represented as voltage or current. These analog signals require an analog-to-digital converter (ADC) to convert them into digital signals before analysis and processing. It should be noted that sensors can acquire analog signals from different signal channels. The CNC system typically monitors various parameters and status information during the machining process in real time. This information includes motion parameters such as the position of the CNC machine tool, as well as process parameters such as current and voltage during machining.
[0030] The parameter features of the process parameters are obtained based on feature extraction of the process parameters. For details, please refer to [link / reference needed]. Figure 2 , Figure 2 The image shows the parameter characteristics of four process parameters, namely parameter characteristic curve A, parameter characteristic curve B, parameter characteristic curve C, and parameter characteristic curve D. For example, regarding the acquisition method of the parameter characteristics of process parameters, the process strategy adjustment device acquires multiple process processing characteristic curves; it traverses each process processing characteristic curve by sliding a window with a preset step size to obtain the parameter characteristics of the processing parameters on each process processing characteristic curve; then, it acquires the parameter characteristics of the processing parameters on each process processing characteristic curve that are in the same time period. Figure 2 As illustrated, the process strategy adjustment device can use a sliding window with a preset step size to traverse parameter characteristic curves A, B, C, and D, and determine the parameter characteristic of a process parameter, i.e., the target parameter characteristic, from each sliding window. Then, the parameter characteristics of the process parameters determined within the same time period are used as the parameter characteristics input into the corresponding target model. The step size of the sliding window can be 1, and the sliding window size is the same for all parameter characteristic curves. It should be noted that since multiple parameter characteristics may exist in the window for each step of the sliding window across the parameter characteristic curves, the average, median, maximum, or minimum value of the parameter characteristics in the corresponding sliding window can be used as the target parameter characteristic for that window.
[0031] The actual process labels for process parameters are obtained by manually labeling the process parameters. Labeling includes key processing time markers, process experience markers, etc. For example, through historical process experiments, if it is found that the product quality processed under a specific combination of process parameters is relatively stable, it can be used as a "standard process parameter." The process corresponding to the "standard process parameter" is then used as the process label for that labeled process parameter. It should be noted that, for ease of recording, in this embodiment, the process label can be set to a numerical form such as "1," "2," or "3."
[0032] To illustrate this step in detail, an example is provided below. Specifically, the example includes four sets of characteristic curves: a1, a2, a3, a4, a5, ...; b1, b2, b3, b4, b5, ...; c1, c2, c3, c4, c5, ...; d1, d2, d3, d4, d5, ... The sequence of characteristic values can be freely combined, such as using only characteristic values a and b. Here, a1, b1, c1, d1 represent the parameter characteristics in the first time period; a2, b2, c2, d2 represent the parameter characteristics in the second time period; a3, b3, c3, d3 represent the parameter characteristics in the third time period; a4, b4, c4, d4 represent the parameter characteristics in the fourth time period; and a5, b5, c5, d5 represent the parameter characteristics in the fifth time period. The first to third time periods are labeled as "First Process Label (1)", the fourth time period is labeled as "Second Process Label (2)", and the fifth time period is labeled as "Third Process Label (3)". Therefore, we get ((a1, b1, c1, d1), 1), ((a2, b2, c2, d2), 1), ((a3, b3, c3, d3), 1), ((a4, b4, c4, d4), 2), ((a5, b5, c5, d5), 3).
[0033] Step S120: Input the parameter features that match the target model from the parameter features of each process parameter, as well as the actual process labels corresponding to the matched parameter features, into the target model to obtain the process labels predicted by the target model.
[0034] The target model can be an AI model library, which aggregates common machine learning and deep learning algorithms. Machine learning algorithms are used to handle different tasks, such as classification (Support Vector Machine, Bayesian), regression (Decision Tree, Simple Neural Network), and clustering (k-means, spectral clustering). Deep learning generally does not require additional feature engineering; common models include CNN, LSTM, and TRANSFORMER. For example, the target model in this application embodiment can specifically be a classification model in machine learning. It should be noted that the target model is at least one of multiple initial models proposed based on the parameter features of each process parameter. For example, if the parameter features of the process parameters are a, b, c, and d (a, b, c, and d each represent a class of parameter features, not just a single parameter feature), then an initial model matching parameter features a and b can be built using a and b from parameter features a, b, c, and d. Alternatively, an initial model matching parameter features a, b, and c can be built using a, b, and c from parameter features a, b, c, and d. This application embodiment does not limit this approach.
[0035] To improve the accuracy of the process labels predicted by the target model, this embodiment of the application inputs the parameter features of each process parameter that match the target model and the actual process labels corresponding to the matched parameter features into the target model to obtain the process labels predicted by the target model.
[0036] Step S130: Determine the target process strategy from the process strategies corresponding to the preset process tags based on the predicted process tags. The preset process tags include the actual process tags.
[0037] The preset process labels include a first process label, a second process label, and a third process label. For example, the first process label can be "1", the second process label can be "2", and the third process label can be "3".
[0038] The preset process labels correspond to process strategies such as "fast", "normal", and "slow". For example, the first process label "1" corresponds to fast, the second process label "2" corresponds to normal, and the third process label "3" corresponds to slow.
[0039] The process strategy adjustment device determines the target process strategy from the preset process strategies corresponding to the process labels predicted by the target model. For example, if the process label predicted by the target model is "1", then the process strategy corresponding to label "1" (fast) is determined as the target process strategy. It should be noted that different process strategies correspond to different spindle speeds, workpiece speeds, feed rates, and machining allowances. For example, if the process strategy is fast, it corresponds to increasing the spindle speed and increasing the feed rate; if the process strategy is slow, it corresponds to decreasing the spindle speed and slowing down the feed rate.
[0040] Spindle speed refers to the number of revolutions per minute (rpm) of the spindle, and is one of the important parameters in machine tool machining. The spindle speed directly affects machining efficiency, machining quality, and machining accuracy. In different machining applications, the appropriate spindle speed needs to be determined based on the different workpiece materials, machining methods, and machining requirements.
[0041] Workpiece rotational speed refers to the circumferential speed of a workpiece on a machine tool, usually expressed as the angle the workpiece rotates per unit time, and the commonly used unit is revolutions per minute (RPM). The magnitude of the machine tool workpiece axis rotational speed is related to factors such as the material of the workpiece, the material of the cutting tool, the number of cutting edges of the cutting tool, and the depth of cut. In actual machining, it is necessary to select an appropriate rotational speed according to the machining requirements to ensure machining quality and efficiency.
[0042] Feed rate refers to the speed of the workpiece relative to the cutting tool in the feed direction during machining. The magnitude of the feed rate directly affects machining efficiency and quality; therefore, it is necessary to select the feed rate reasonably based on machining requirements and machine tool performance. Common machine tool feed rates include cutting feed rate, rapid traverse feed rate, and manual feed rate.
[0043] Machining allowance refers to the difference between the machined workpiece and its designed dimensions; it is a certain dimension reserved to ensure workpiece accuracy. Machine tool machining allowances are generally divided into two types: geometric allowance and surface allowance. Geometric allowance refers to the difference between the machined workpiece and its designed dimensions, mainly caused by dimensional errors due to factors such as machine tools, fixtures, and other equipment. Surface allowance refers to the difference between the surface roughness and flatness of the machined workpiece and the design requirements, mainly caused by surface quality errors due to factors such as cutting forces, thermal deformation, and the influence of cutting fluid. The size of the machine tool machining allowance depends on the requirements of the workpiece machining and the complexity of the process, and is generally determined on a case-by-case basis. Excessive allowance will lead to reduced workpiece machining efficiency, while insufficient allowance will affect the accuracy and quality of the workpiece. Therefore, controlling the machine tool machining allowance is a very important aspect of machine tool processing.
[0044] Step S140: Adjust the initial process strategy of the data machine tool to the target process strategy.
[0045] The initial process strategy can be the default process strategy for machine tool processing.
[0046] As can be seen, the process strategy adjustment method based on CNC machine tools in this application embodiment inputs the parameter features that match the target model from the parameter features of multiple process parameters into the target model to obtain the process label predicted by the target model. Based on the predicted process label, the target process strategy is determined from the process strategies corresponding to the preset process label. Then, the initial process strategy is adjusted using the target process strategy. On the one hand, it can improve the prediction accuracy of process labels based on the target model. On the other hand, by determining the target process strategy based on the predicted process label and adjusting the initial process strategy using the target process strategy, the adaptive adjustment of the process strategy is realized, thereby improving the quality of the processed products.
[0047] Based on the above embodiments, considering that the parameter features of the process parameters used for target process label prediction in each input model do not necessarily come from the same process parameter feature curve, this application embodiment determines multiple initial models based on the parameter features of each process parameter, and then uses the corresponding initial models to predict the process labels of the corresponding process parameters, so as to determine the target process strategy based on the predicted process labels. Please refer to [link / reference] for details. Figure 3 , Figure 3 yes Figure 1 The illustrated flowchart shows an exemplary embodiment of the process strategy adjustment method based on CNC machine tools prior to step S120. Specifically, before step S120, which inputs the parameter features of each process parameter that match the target model and the actual process labels corresponding to the matched parameter features into the target model to obtain the process labels predicted by the target model, the process strategy adjustment method based on CNC machine tools of this application embodiment further includes the following steps:
[0048] Step S310: Based on at least one parameter feature among the parameter features of multiple process parameters, establish a corresponding initial model to obtain multiple initial models, and each initial model corresponds to and matches the parameter features of the process parameters for which the corresponding initial model was established.
[0049] The initial model is determined based on the parametric features of each process parameter. For example, if there are different process parameters with parametric features a, b, c, and d, a corresponding initial model can be trained based on parametric features a and b, or based on parametric features b and c, or based on parametric features b, c, and d. In other words, the number of possible combinations of parametric features a, b, c, and d corresponds to the number of corresponding initial models.
[0050] Step S320: Input the parameter features of each process parameter into the corresponding initial model to obtain the process label predicted by each initial model.
[0051] Based on the initial models determined in step S310, the process strategy adjustment device inputs the parameter characteristics of each process parameter into the corresponding initial model to obtain the process label predicted by the initial model.
[0052] Step S330: Based on the comparison results between the process labels predicted by each initial model and the actual process labels of the process parameters in the corresponding matching initial model, determine the target model from multiple initial models.
[0053] The comparison results are determined based on the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model. This can also be understood as the classification accuracy of the model. Higher classification accuracy results in higher similarity in the corresponding comparison results, while lower classification accuracy results in lower similarity. Therefore, this embodiment can determine the prediction accuracy of the target model by calculating the label similarity between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model. Specifically, the label similarity between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model is calculated to obtain multiple label similarities corresponding to each initial model. Based on the numerical values of the multiple label similarities corresponding to each initial model, a model to be optimized is selected from the multiple initial models. The model parameters in the model to be optimized are then optimized to obtain the target model. Here, the model to be optimized refers to the model whose model parameters need to be optimized, thereby determining the optimal model parameters within the model. The target model refers to at least one of the multiple models to be optimized; for example, there can be one or three target models.
[0054] Regarding the step of selecting the model to be optimized from multiple initial models based on the numerical similarity of multiple labels corresponding to each initial model, this embodiment of the application can sort the multiple label similarities from largest to smallest to obtain sorted label similarities; select at least one label similarity from the sorted label similarities; and determine the initial model corresponding to the selected at least one label similarity as the model to be optimized. In other words, this embodiment of the application can determine the initial model with the highest classification accuracy as the model to be optimized by ranking the label similarity between the process labels predicted by the initial model and the actual process labels of the process parameters input into the corresponding initial model from largest to smallest. For example, if the top three initial models are selected as the models to be optimized, the models to be optimized can be represented as x, y, and z.
[0055] For the step of determining the target model from multiple initial models based on the comparison results between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial models, this application embodiment can be implemented by: obtaining the preset parameter range of the initial parameters of each model in the model to be optimized; determining a new parameter range based on the parameters selected from the preset parameter range; selecting model target parameters from the new parameter range according to a preset equal interval length to obtain multiple model target parameters; obtaining the label similarity corresponding to the model to be optimized, including the target parameters of each model; and determining the model to be optimized corresponding to the maximum label similarity as the target model. Here, the preset parameter range refers to the range determined based on the initial parameters in the model. For example, taking model x as an example, if the parameters in model x are x_1, x_2, and x_3, then the preset parameter range is (x_1_max, x_1_min), (x_2_max, x_2_min), and (x_3_max, x_3_min). The interval length of the new parameter range is less than or equal to the interval length of the preset parameter range, that is, the preset parameter range includes the new parameter range. The new parameter range is determined based on parameters randomly selected from the preset parameter range. For example, if parameters x1_ini, x2_ini, and x3_ini are determined in the preset parameter ranges (x_1_max, x_1_min), (x_2_max, x_2_min), and (x_3_max, x_3_min), then the new parameter range is (x_1_ini_max, x_1_ini_min), (x_2_ini_max, x_2_ini_min), and (x_3_ini_max, x_3_ini_min). The preset equal interval length can be obtained by dividing the parameter range into equal parts, that is, setting grid intervals at intervals within the parameter range. For example, if at least one interval point is set at equal intervals, the parameters obtained are (x_1_search_1, x_1_search_2, x_1_search_3), (x_2_search_1, x_2_search_2, x_2_search_3), and (x_3_search_1, x_3_search_2, x_3_search_3), respectively, to obtain three sets of parameter combinations. The process labels predicted by the models to be optimized, which contain each of the three sets of parameter combinations, are used to determine which model among the three models to be optimized has the highest classification accuracy, that is, the label similarity between the predicted process label and the actual process label is the largest. The model containing the parameter combination with the largest label similarity is determined as the target model.
[0056] It should be noted that the three target models selected above can be KNN, SVN, and DT models. Further, following the example above, there are prediction results from three models, denoted as x_predict, y_predict, and z_predict. In this embodiment, the final process label can be determined by setting model weights and calculating the product of the prediction results of each target model and its corresponding weight. For example, the final process label label_predict = w1*x_predict + w2*y_predict + w3*z_predict, where w1, w2, and w3 are the weights corresponding to each model.
[0057] For step 130 of the above embodiment, determining the target process strategy from the process strategies corresponding to the preset process tags based on the predicted process tags, where the preset process tags include the actual process tags, can specifically involve determining multiple process strategy intervals based on the preset process tags; determining the target process strategy interval from the multiple process strategy intervals based on the predicted process tags; and determining the process strategy corresponding to the target process strategy interval as the target process strategy. Here, the multiple process strategy intervals correspond to the preset process tags. For example, if the preset process tags are "1", "2", and "3", then the corresponding process strategy intervals can be [0, 1.5], [1.5, 2.5], and [2.5, 5].
[0058] As can be seen, the embodiments of this application improve the accuracy of model prediction by setting multiple initial models, selecting a target model from among the multiple initial models, determining the target process strategy from the process strategies corresponding to the preset process tags based on the process tags predicted by the target model, and then adjusting the initial process strategy of the data machine tool to the target process strategy.
[0059] Figure 4 This is a block diagram illustrating a process strategy adjustment device based on a CNC machine tool, as shown in an exemplary embodiment of this application. Figure 4 As shown, this exemplary CNC machine tool-based process strategy adjustment device 400 includes: an acquisition module 410, a prediction module 420, a comparison module 430, and an adjustment module 440. Specifically:
[0060] The acquisition module 410 is used to acquire the parameter characteristics of multiple process parameters and the actual process labels of each process parameter.
[0061] The prediction module 420 is used to input the parameter features that match the target model from the parameter features of each process parameter, as well as the actual process labels corresponding to the matched parameter features, into the target model to obtain the process labels predicted by the target model.
[0062] The comparison module 430 is used to determine the target process strategy from the process strategies corresponding to the preset process tags based on the predicted process tags. The preset process tags include the actual process tags.
[0063] The adjustment module 440 is used to adjust the initial process strategy of the data machine tool to the target process strategy.
[0064] In this exemplary CNC machine tool-based process strategy adjustment device, by inputting the parameter features of multiple process parameters that match the target model into the target model, the process labels predicted by the target model are obtained. Based on the predicted process labels, the target process strategy is determined from the process strategies corresponding to the preset process labels. Then, the initial process strategy is adjusted using the target process strategy. On the one hand, the prediction accuracy of process labels can be improved based on the target model; on the other hand, by determining the target process strategy based on the predicted process labels and adjusting the initial process strategy using the target process strategy, adaptive adjustment of the process strategy is achieved, thereby improving the quality of the processed products.
[0065] The functions of each module can be found in the embodiments of the process strategy adjustment method based on CNC machine tools, and will not be repeated here.
[0066] Please see Figure 5 , Figure 5 This is a schematic diagram of an embodiment of the electronic device of this application. The electronic device 50 includes a memory 51 and a processor 52. The processor 52 is used to execute program instructions stored in the memory 51 to implement the steps in any of the above embodiments of the process strategy adjustment method based on CNC machine tools. In a specific implementation scenario, the electronic device 50 may include, but is not limited to, a microcomputer or a server. In addition, the electronic device 50 may also include mobile devices such as laptops and tablets, which are not limited here.
[0067] Specifically, processor 52 controls itself and memory 51 to implement the steps in any of the above embodiments of the process strategy adjustment method based on CNC machine tools. Processor 52 can also be called a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip with signal processing capabilities. Processor 52 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 52 can be implemented using integrated circuit chips.
[0068] The above scheme obtains the process labels predicted by the target model by inputting the parameter features of multiple process parameters that match the target model into the target model. Based on the predicted process labels, the target process strategy is determined from the process strategies corresponding to the preset process labels. Then, the initial process strategy is adjusted using the target process strategy. On the one hand, it can improve the prediction accuracy of process labels based on the target model. On the other hand, by determining the target process strategy based on the predicted process labels and adjusting the initial process strategy using the target process strategy, the adaptive adjustment of the process strategy is achieved, thereby improving the quality of the processed products.
[0069] Please see Figure 6 , Figure 6 This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer-readable storage medium 60 stores program instructions 61 that can be executed by a processor. The program instructions 61 are used to implement the steps in any of the above embodiments of the process strategy adjustment method based on CNC machine tools.
[0070] The above scheme obtains the process labels predicted by the target model by inputting the parameter features of multiple process parameters that match the target model into the target model. Based on the predicted process labels, the target process strategy is determined from the process strategies corresponding to the preset process labels. Then, the initial process strategy is adjusted using the target process strategy. On the one hand, it can improve the prediction accuracy of process labels based on the target model. On the other hand, by determining the target process strategy based on the predicted process labels and adjusting the initial process strategy using the target process strategy, the adaptive adjustment of the process strategy is achieved, thereby improving the quality of the processed products.
[0071] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0072] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.
[0073] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0074] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for adjusting process strategies based on CNC machine tools, characterized in that, The method includes: Obtain the parameter characteristics of multiple process parameters and the actual process labels of each process parameter during the same time period. The actual process labels are obtained through manual annotation or historical experience. The parameter features that match the target model from the parameter features of each process parameter, along with the actual process label corresponding to the matched parameter features, are input into the target model to obtain the process label predicted by the target model. The target model is at least one of multiple initial models established from the parameter features of each process parameter. The target process strategy is determined from the process strategies corresponding to the preset process tags based on the predicted process tags, wherein the preset process tags include the actual process tags; Adjust the initial process strategy of the CNC machine tool to the target process strategy; Before the step of inputting the parameter features of the process parameters that match the target model and the actual process labels of the matched process parameters into the target model to obtain the target label result output by the target model, the method further includes: An initial model is established based on at least one parameter feature among the parameter features of the multiple process parameters, resulting in multiple initial models. Each initial model corresponds to and matches the parameter features of the process parameters for which the corresponding initial model is established. Input the parameter features of each process parameter into the corresponding matching initial model to obtain the process label predicted by each initial model; Based on the comparison results between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model, the target model is determined from the multiple initial models; The step of determining the target model from the multiple initial models based on the comparison results between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial models includes: Calculate the label similarity between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model, and obtain multiple label similarities with each initial model; The model to be optimized is selected from the multiple initial models based on the numerical value of the similarity between the multiple labels corresponding to each initial model; The model parameters in the model to be optimized are optimized to obtain the target model.
2. The method according to claim 1, characterized in that, The step of optimizing the model parameters in the model to be optimized to obtain the target model includes: Obtain the preset parameter range of the initial parameters of each model in the model to be optimized; A new parameter range is determined based on the parameters selected from the preset parameter range, wherein the interval length of the preset parameter range is greater than or equal to the interval length of the new parameter range; Multiple model target parameters are obtained by selecting model target parameters from the new parameter range according to the preset equal interval length; Obtain the label similarity of the model to be optimized, including the target parameters of each model; The model to be optimized corresponding to the maximum label similarity is determined as the target model.
3. The method according to claim 1, characterized in that, The step of selecting the model to be optimized from the multiple initial models based on the numerical value of the similarity between the multiple labels corresponding to each initial model includes: The similarity scores of the multiple tags are sorted from largest to smallest to obtain the sorted similarity scores of the multiple tags. Select at least one label similarity from the sorted multiple label similarities; The initial model corresponding to at least one selected label similarity is determined as the model to be optimized.
4. The method according to claim 1, characterized in that, The step of determining the target process strategy from the process strategies corresponding to the preset process tags based on the predicted process tags includes: Obtain the process strategy range corresponding to the preset process label; The target process strategy interval is determined from multiple process strategy intervals based on the predicted process label; The process strategy corresponding to the target process strategy range is determined as the target process strategy.
5. The method according to claim 1, characterized in that, The method for obtaining parameter characteristics of multiple process parameters and actual process labels of each process parameter during the same time period includes: Obtain multiple process feature curves; The process characteristic curves of each process are traversed by sliding a window with a preset step size to obtain the parameter characteristics of the processing parameters on each process characteristic curve. Obtain the parameter characteristics of the processing parameters that are in the same time period on the processing characteristic curves of each process.
6. A process strategy adjustment device based on CNC machine tools, characterized in that, include: The acquisition module is used to acquire the parameter characteristics of multiple process parameters and the actual process labels of each process parameter. The actual process labels are obtained through manual annotation or historical experience. The prediction module is used to input the parameter features of each process parameter that match the target model and the actual process label corresponding to the matched parameter features into the target model to obtain the process label predicted by the target model. The target model is determined by: establishing a corresponding initial model based on at least one parameter feature of the multiple process parameters to obtain multiple initial models, each initial model being matched with the parameter features of the process parameters for which the corresponding initial model is established; inputting the parameter features of each process parameter into the corresponding matched initial model to obtain the process label predicted by each initial model. Calculate the label similarity between the process labels predicted by each initial model and the actual process labels of the process parameters input into the corresponding initial model, to obtain multiple label similarities corresponding to each initial model; select the model to be optimized from the multiple initial models according to the numerical value of the multiple label similarities corresponding to each initial model; optimize the model parameters in the model to be optimized to obtain the target model; The comparison module is used to determine the target process strategy from the process strategies corresponding to the preset process tags based on the predicted process tags, wherein the preset process tags include the actual process tags; An adjustment module is used to adjust the initial process strategy of the CNC machine tool to the target process strategy.
7. An electronic device, characterized in that, The method includes a memory and a processor, the processor being configured to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Adaptive machine tool control method based on GA-BP neural network algorithm
CN110488754A
