Milling machining cutting force monitoring method and system based on mechanism and data hybrid driving
Through a mechanism- and data-driven hybrid method, CNC machine tool signals and mechanical force models are used, combined with convolutional neural network and other technologies, to realize real-time cutting force monitoring of milling processing, solving the problems of high cost and poor environmental adaptability in the existing technology. Improved monitoring accuracy and efficiency.
Patent Information
- Application Number
- CN202410960736.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing cutting force monitoring methods in milling processes are expensive and difficult to maintain optimal performance in harsh environments. The application of external sensors is difficult, and the data-driven method lacks real labels for cutting forces and makes it difficult to achieve accurate monitoring.
Using a mechanism- and data-driven hybrid method, a data-driven model is established by monitoring the servo motor signal of the feed axis of the CNC machine tool, and the mechanical force model is used to calculate the cutting force, and through the convolutional neural network, long-short-term memory network and self-attention mechanism Build a predictive model to obtain cutting forces in real time.
It realizes real-time cutting force monitoring without external sensors, reduces costs, improves processing efficiency and quality, simplifies the process flow, and enhances the accuracy and reliability of monitoring.
Smart Images

Figure CN118720853A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to but is not limited to the technical field of numerically controlled machine tools, and in particular relates to a method and system for monitoring cutting force in milling machining driven by a hybrid mechanism and data. Background Art
[0002] As the modern processing industry continues to increase its requirements for the quality, processing efficiency and economy of high-performance products, processing status monitoring is of great significance in the processing of high-quality products. Milling processing removes fixed workpieces by moving a high-speed rotating milling cutter to produce the required shape and contour. It is suitable for processing various grooves, special-shaped surfaces, threads and gears, and is widely used in aerospace, shipbuilding and vehicle manufacturing. In milling processing, each tooth is in intermittent rotational motion, generating changing cutting forces, which can provide the most sensitive and rapid response to the processing status. Therefore, milling force is an important indicator for machine tool design and optimization of processing process parameters, which directly affects tool life, milling vibration, cutting deformation, cutting heat and processed surface quality.
[0003] Installing external sensors is currently the most important solution for monitoring cutting force, by capturing the strain, voltage, acceleration or displacement signals caused by cutting force and converting them into cutting force signals. Piezoelectric dynamometers are widely used as the main method for measuring cutting force, including bench dynamometers, rotating dynamometers and spindle integrated sensors. Bench dynamometers have high frequency bandwidth and accuracy. However, they are not suitable for monitoring large-sized parts that exceed the size of the dynamometer and the processing of horizontal machine tools. Rotating dynamometers eliminate the limitation of part size, but their reconfigurability is poor, and the measurement is based on the tool rotation coordinate system. Therefore, it is inconvenient to measure the cutting force in a fixed direction with a rotating dynamometer. Integrating sensors on the spindle to indirectly reflect the cutting force is a feasible method. However, sensor integration requires modification of the spindle system, and the modification and maintenance of the sensor are difficult. The cost of the above methods is relatively expensive, and it is difficult to maintain optimal performance in harsh machining environments with chips, cutting fluids and vibrations for a long time. Therefore, it is difficult to apply cutting force monitoring methods based on external sensors in actual industrial production with high reliability, practicality and economy requirements. As for the method of indirectly measuring cutting force using the spindle and feed drive current signals, its application range is limited by the bandwidth of the feed drive system, and complex identification and post-compensation strategies are required to accurately measure the force.
[0004] Data-driven methods can use the obtained data to learn the complex nonlinear relationship between input and output, and can establish a model to map the relationship between machine tool monitoring signals and cutting force. However, it is difficult to obtain the real label cutting force during part milling. Therefore, there is an urgent need for a method to obtain the cutting force during part milling and establish a data-driven model to realize milling force monitoring.
[0005] In view of the above analysis, the technical problems that urgently need to be solved in the prior art are: the existing methods are relatively expensive, and it is difficult to maintain optimal performance in a harsh machining environment with chips, cutting fluid and vibration for a long time. Summary of the invention
[0006] In view of the problems existing in the prior art, the present invention provides a method and system for monitoring the cutting force of milling processing driven by a hybrid mechanism and data. By monitoring the servo motor signals of each feed axis of the CNC machine tool, the dynamic nonlinear relationship between the monitoring signal of a single feed axis and the cutting force calculated using a mechanical force model is modeled as a data-driven model. During actual processing, the monitored inherent signal is input into the established prediction model for iterative prediction, so as to obtain the real-time cutting force.
[0007] The present invention is implemented as follows: a milling cutting force monitoring method driven by a hybrid mechanism and data, comprising:
[0008] S1, using the prepared tool path and the proposed machining process parameters to conduct cutting experiments and collect machine tool monitoring signals;
[0009] S2, using machining process parameters, tool and workpiece information, cutting force coefficient, combined with the mechanical cutting force model of the mechanism to calculate the instantaneous cutting force, and compare it with the measured actual cutting force to verify the accuracy of the model;
[0010] S3, analyzing and processing the machine tool monitoring signal and the calculated cutting force signal into a time-series aligned data set and dividing it into a training set and a test set for use in a data-driven algorithm;
[0011] S4, uses the created data set to train the proposed data-driven algorithm. During actual machining, the monitoring signal is input into the trained prediction model for iterative prediction, and the cutting force during machining can be obtained in real time.
[0012] Further, in step S1, during the cutting experiment, the servo monitoring signals of the motors of each feed axis of the machine tool are recorded in real time using the CNC inherent signal monitoring software, and the measured cutting force is collected at the same time;
[0013] Further, in step S2, the instantaneous cutting force is calculated using the actual machining process parameters, the calibrated cutting force coefficient, the tool and workpiece information combined with the mechanical cutting force model, and compared with the actual cutting force measured in step S1 to verify the accuracy of the mechanical cutting force model;
[0014] Furthermore, in step S3, the non-cutting segment data of the first and last collected original monitoring signals are first removed. For the calculated cutting force signal, it is necessary to roughly synchronize it with the cutting starting point of the monitoring signal, and resample the cutting force signal so that it has the same time series data length as the monitoring data to form a data set; before model training, the data needs to be processed according to the time lag order between the input and output. The cutting force value at a certain moment is related to the monitoring signal at that moment and the previous moments and the cutting force value at the previous moments, and its dynamic nonlinear relationship can be characterized as follows:
[0015]
[0016] Among them, t represents the current time, F a (t) represents the cutting force in the feed axis direction at the current moment, Indicates the feed axis drive current, speed and acceleration at previous and current times, F a (tj),(j=1,2,...,O l ) represents the cutting force value of the feed axis at the previous moment, O n and O l Respectively represent the time lag order related to the input and output, and use the data-driven model to construct the nonlinear relationship F between the input and output; when training the model, the data after rough alignment of the time series is converted into multidimensional data according to the above formula. Then the cutting data of different process parameter groups are divided into training set, verification set and test set for training and verifying the network and testing the network performance.
[0017] Further, in step S4, the proposed convolutional neural network-long short-term memory-self-attention (CNN-LSTM-SA) data-driven model is trained using the converted multidimensional data set; the CNN module calculates the convolution result of the local area of the data by sliding the convolution kernel to extract the local feature representation of the monitoring data area; the Relu function is used as the activation function, and the maximum pooling layer is used to envelop the most important feature information to reduce the model parameters; the LSTM module is used to capture the inherent long-term dependencies in the time series, and the feature information extracted by the CNN module is input into the LSTM layer, and the output of the LSTM layer is input into the SA layer; the SA mechanism focuses on the key information in the LSTM output by assigning different hidden state probability weights to the LSTM, and the SA layer captures the intrinsic correlation between the monitoring data, compensates for the information loss caused by the long sequence in the LSTM, and helps to improve the accuracy of cutting force prediction; the LSTM and SA layers obtain the intrinsic pattern of cutting force changes from the extracted features, thereby realizing the prediction function; then, the SA layer passes the result of processing the data to the output layer, and finally generates the predicted cutting force result;
[0018] Since the milling process is performed by using a milling cutter with multiple cutting edges, the machining process generates an impact cyclic cutting force signal when the rotating cutting edge cuts in and out of the workpiece; the maximum pooling layer is used to perform a sliding window operation on the features and output the maximum value within the window, so that the key features related to the cutting force peak in the input data can be extracted. The association between the input data and the CNN layer is shown in the following formula:
[0019]
[0020] Where K represents the convolution kernel, x represents the input data, c represents the sliding processing of the input data, and b represents the bias vector;
[0021] After convolution and pooling of the input data, the extracted feature information is passed to the LSTM layer. The relationship between the features and the LSTM network is as follows:
[0022] O t =sigmoid(W O ·[h t-1 ,c t ]+b O )
[0023] Among them, t represents the features of the LSTM layer output, W O represents the weight matrix, h t-1 Indicates the output at the previous moment, c t is the neuron state at the current moment, b O is the bias vector;
[0024] The nodes in the LSTM layer and the CNN layer are fully connected to integrate the extracted features. The self-attention mechanism consists of three main vectors: query vector, key vector, and value vector. These vectors are obtained by multiplying the input time series by three matrices. The correlation between the LSTM layer output and the SA mechanism is described as follows:
[0025] q=W Q ·O t +b Q
[0026] k=W K ·O t +b K
[0027] v=W V ·O t +b V
[0028] Where W Q , W K and W Vrepresents the weight matrix corresponding to the query vector (q), key vector (k) and value vector (v), b Q , b K and b V represents the bias vector corresponding to the query vector (q), key vector (k), and value vector (v);
[0029] By continuously updating the weights and bias vectors during the training process, the self-attention mechanism quantifies the correlation of the input time series. The output of the self-attention layer can be calculated using the scaled dot product of the attention function, expressed as:
[0030]
[0031] where K, Q, and V are matrices of query vector, key vector, and value vector, respectively. k represents the dimension of the key vector. Softmax is a cross entropy function that normalizes Q and K T The inner product of
[0032] The output of the SA layer is the cutting force value predicted by the FC layer output, and the relationship is as follows:
[0033] O FC =W FC ·O SA +b FC
[0034] Among them, FC is the output of the FC layer, W FC is the weight vector of the FC layer, O SA is the output of the SA layer, b FC is the bias vector of the FC layer;
[0035] The key feature information extracted by the multi-layer network is mapped to the cutting force. This study uses the mean square error (MSE) as the target loss function for network parameter update, which is defined as:
[0036]
[0037] where x s is the input monitoring signal, F CNN , F LSTM , F SA and F FC Represents CNN layer, LSTM layer, SA layer and FC layer respectively. CNN , Q LSTM , Q SA and Q FC Respectively represent the corresponding model parameters, n s is the number of samples in the training set, Represents the predicted value, y s is the measured value, represents error calculation;
[0038] Finally, the network parameters are updated by minimizing the regression loss to obtain the cutting force prediction model. During actual processing, the monitoring signal is input into the established prediction model for training and iterative prediction to obtain the real-time cutting force of milling processing.
[0039] Another object of the present invention is to provide a mechanism and data hybrid driven milling cutting force monitoring system that implements the mechanism and data hybrid driven milling cutting force monitoring method, comprising:
[0040] The detection signal acquisition module is used to perform cutting experiments using the prepared tool paths and the proposed machining process parameters and collect machine tool monitoring signals;
[0041] Model accuracy verification module, which is used to calculate the instantaneous cutting force by using machining process parameters, tool and workpiece information, cutting force coefficient, and mechanical cutting force model combined with the mechanism, and compare it with the measured actual cutting force to verify the model accuracy;
[0042] A training set and test set partitioning module is used to analyze and process the machine tool monitoring signal and the calculated cutting force signal into a time-series aligned data set and partition the data into a training set and a test set for use in a data-driven algorithm;
[0043] The cutting force acquisition module is used to train the proposed data-driven algorithm using the created data set. During actual processing, the monitoring signal is input into the trained prediction model for iterative prediction, so that the cutting force during the processing can be obtained in real time.
[0044] Another object of the present invention is to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the milling cutting force monitoring method driven by a hybrid mechanism and data.
[0045] Another object of the present invention is to provide a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the milling cutting force monitoring method driven by a hybrid mechanism and data.
[0046] Another object of the present invention is to provide an information data processing terminal, which includes the milling cutting force monitoring system driven by the mechanism and data hybrid.
[0047] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:
[0048] First, the method proposed in the present invention utilizes the inherent monitoring signal of the machine tool to monitor the cutting force, realizing the cutting force monitoring of milling processing without the need for external sensors such as dynamometers. It is of great significance for monitoring tool wear and chipping during rough machining, improving machining efficiency, and improving part quality, and has the potential to be promoted to actual industrial applications.
[0049] The method proposed in the present invention utilizes a data-driven model to establish a mapping relationship between machine tool monitoring signals and cutting forces, without the need for a complex parameter identification process or compensation strategy.
[0050] Second, the expected benefits and commercial value of the technical solution of the present invention after transformation are:
[0051] Existing methods use sensors such as dynamometers to measure cutting force, which is relatively expensive and difficult to maintain optimal performance in harsh machining environments with chips, cutting fluids and vibrations for a long time. The scope of application of the method of indirectly measuring cutting force using internal signals of the machine tool is limited by the bandwidth of the feed transmission system, and requires complex identification and post-compensation strategies to accurately measure the force. After the technical solution of the present invention is converted, the cutting force calculated by the mechanical force model is used as the training label of the data-driven model. After the model is trained, it can be used for real-time and accurate monitoring of the cutting force. It has the potential to replace commercial sensors such as dynamometers for cutting force measurement, thereby reducing processing costs and increasing profits.
[0052] The technical solution of the present invention overcomes technical prejudice: the field of cutting force monitoring technology to which the present invention relates currently has problems such as high prices and poor practicality of commercial sensors such as dynamometers used. The technical solution proposed by the present invention uses the theoretically calculated cutting force as the training label of the data-driven model, and the trained model can be used to accurately monitor the cutting force. It breaks through technical prejudice and is a new cutting force monitoring method and cutting force monitoring process. The technical prejudices overcome include the simplification of complex process flows, the reduction of processing costs, and the improvement of processing operation safety and reliability of use.
[0053] Third, the present invention proposes an efficient cutting force monitoring method for milling by combining mechanism and data-driven methods. The existing technology mainly relies on a single mechanism model or data-driven model to predict cutting force, but these methods are often limited by the complexity of the model and the accuracy of the data, and it is difficult to provide accurate cutting force monitoring in the actual processing process. During the milling process, the present invention utilizes the inherent signal of the CNC machine tool and the measured cutting force signal, and realizes accurate prediction and monitoring of real-time cutting force through multi-step signal processing and model training.
[0054] First, the present invention uses the actual processing parameters and cutting test data to calculate the instantaneous cutting force through the mechanical cutting force model, and compares it with the measured real cutting force to verify the accuracy of the mechanism model. Through multiple experimental verifications, the reliability of the model is ensured, providing a solid foundation for the subsequent data-driven algorithm. At the same time, advanced signal processing technology is used to perform time alignment and resampling processing on the collected monitoring signals and cutting force signals, constructing a high-quality data set, which greatly improves the effect of model training.
[0055] Secondly, the present invention constructs a data-driven model by combining convolutional neural network (CNN), long short-term memory network (LSTM) and self-attention mechanism (SA). The CNN module is used to extract local features of monitoring data, the LSTM module captures long-term dependencies in time series, and the SA mechanism enhances the model's ability to focus on key information. The design of the multi-layer network structure effectively extracts and integrates key feature information, significantly improving the accuracy and stability of cutting force prediction.
[0056] Finally, the present invention uses mean square error (MSE) as the target loss function in the model training process, and updates the network parameters by minimizing the regression loss, thereby ensuring the high accuracy and efficiency of the prediction model. In actual processing, by inputting the real-time monitoring signal into the trained prediction model, it is possible to iteratively predict and obtain the cutting force in the processing process in real time, thereby realizing accurate monitoring of the milling process. This method not only improves the efficiency and quality of the processing process, but also reduces the need for manual intervention, and has significant technological progress and practical application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a flow chart of a method for monitoring cutting force in milling driven by a hybrid mechanism and data provided by an embodiment of the present invention;
[0058] Figure 2 It is a schematic diagram of the principle of predicting cutting force using machine tool monitoring signals provided by an embodiment of the present invention;
[0059] Figure 3 is a schematic diagram of a milling processing experiment provided by an embodiment of the present invention;
[0060] Figure 4 is a schematic diagram of end milling provided by an embodiment of the present invention;
[0061] Figure 5 is a schematic diagram comparing the instantaneous cutting force calculated by the mechanical cutting force model provided in an embodiment of the present invention and the cutting force measured by the dynamometer;
[0062] Figure 6 It is a schematic diagram of a CNN-LSTM-SA data-driven model established according to an embodiment of the present invention;
[0063] Figure 7 is a schematic diagram of comparison between the predicted cutting force and the measured cutting force of the third test set under the straight line trajectory provided by an embodiment of the present invention;
[0064] Figure 8 is a schematic diagram comparing the predicted cutting force and the measured cutting force of the fourth test set under the straight line trajectory provided by an embodiment of the present invention;
[0065] Fig. 9 is a schematic diagram comparing the predicted cutting force and the measured cutting force of the seventh test set under the straight line trajectory provided by an embodiment of the present invention;
[0066] Fig.10 is a schematic diagram comparing the predicted cutting force in the X direction and the measured cutting force of the third test set under the arc trajectory provided by an embodiment of the present invention;
[0067] Fig.11 is a schematic diagram comparing the predicted cutting force in the Y direction and the measured cutting force of the third test set under the arc trajectory provided by an embodiment of the present invention;
[0068] Fig.12 4 is a schematic diagram showing a comparison between the predicted cutting force in the X direction and the measured cutting force of the fourth test set under the arc trajectory provided by an embodiment of the present invention;
[0069] Fig.13 is a schematic diagram comparing the predicted cutting force in the Y direction and the measured cutting force of the fourth test set under the arc trajectory provided by an embodiment of the present invention;
[0070] Fig.14 is a schematic diagram comparing the predicted cutting force in the X direction and the measured cutting force of the seventh test set under the arc trajectory provided by an embodiment of the present invention;
[0071] Fig.15 is a schematic diagram comparing the predicted cutting force in the Y direction and the measured cutting force of the seventh test set under the arc trajectory provided by an embodiment of the present invention;
[0072] Fig.16 It is a structural diagram of a milling cutting force monitoring system driven by a hybrid mechanism and data provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0074] like Figure 1As shown, the present invention provides a mechanism and data hybrid driven milling cutting force monitoring method. In the feed drive system, the control signal is applied to the current amplifier to generate a drive current and a drive torque in the motor armature. The motor shaft is also affected by the friction torque of the guide rail, ball screw, and bearing and the disturbance torque of the cutting force. The feed shaft uses the difference between the drive torque and the disturbance torque to drive a mechanical system with equivalent inertia and viscous damping relative to the motor shaft, such as Figure 2 As shown in the figure, the driving torque is proportional to the motor current, the friction torque is related to the motor angular velocity, and the inertia moment is related to the motor angular acceleration. Therefore, the motor driving current, feed speed, and feed acceleration can be used to monitor the cutting force.
[0075] In the nonlinear dynamic prediction model, the cutting force value at a certain moment is related to the monitoring signal at that moment and the previous moments and the cutting force value at the previous moments, and the dynamic nonlinear relationship can be characterized as follows:
[0076]
[0077] Among them, t represents the current time, F a (t) represents the cutting force in the feed axis direction at the current moment, Indicates the feed axis drive current, speed and acceleration at previous and current times, F a (tj),(j=1,2,...,O l ) represents the cutting force value of the feed axis at the previous moment, O n and O l They represent the time lag orders related to the input and output respectively, and the nonlinear relationship F between the input and output is constructed using the data-driven model.
[0078] According to the prepared milling path and the proposed processing parameters, five-axis milling processing is performed on the five-axis machining center. The machine tool monitoring signal is measured and recorded in real time by the data acquisition software, and the acquisition interval is 0.6ms. The cutting force signal is measured by a high-precision dynamometer, and the acquisition frequency is set to 25kHz. The dynamometer is installed on the machine tool workbench, and the workpiece is installed on the dynamometer. The cutting processing method of the typical implementation method of this application is a straight line and circular arc trajectory milling experiment, and its processing method experiment diagram is as follows Figure 3 As shown in Figure 1, the workpiece is aluminum alloy 7075, the tool is a carbide solid end mill with a diameter of 12 mm, and the processing parameters are shown in Table 1.
[0079] Table 1 Milling process parameters
[0080]
[0081] Taking the collected signals of the X-axis and Y-axis feed directions as an example, the data processing flow is described:
[0082] First, the mechanical force model is used to calculate the instantaneous milling force during end milling, and it is used as the marker value of the data-driven model. The end milling process diagram is shown in Figure 4 shown.
[0083] The method is implemented by dividing the end mill into many equal discrete units dz along the axial direction. The mechanical force model first calculates the given tool rotation angle φ (including the feed direction F x and the normal direction F y ) Single blade k f The instantaneous cutting force of the discrete axial unit dz on is shown in the following equation.
[0084]
[0085] The total cutting force at a given tool rotation angle is the accumulation of all discrete elements on each blade and is expressed as follows:
[0086]
[0087] Among them, f pt and h c (φ,k f ,z) respectively represent the tool rotation angle φ i Corresponding to the kth f The feed per tooth and instantaneous uncut chip thickness of each discrete element dz of the cutting edge. The cutting force coefficient relates the instantaneous uncut chip thickness to the cutting force and can be calibrated through milling experiments for a specific tool-workpiece combination. M represents the rotational transformation matrix. The radial position angle of the axial discrete micro-element can be determined by the following formula.
[0088]
[0089] where ψ picth and β represent the pitch angle between two consecutive cutting edges of a tool with radius R and the helix angle of the tool.
[0090] The total cutting force at a given tool rotation angle is obtained by the sum of the side cutting force and the bottom cutting force as shown in the following formula.
[0091]
[0092] In the formula, and They represent the side cutting force and bottom cutting force respectively.
[0093] At a specific tool rotation angle, the side cutting force of a single blade unit and the total side cutting force can be calculated using the following equations respectively.
[0094]
[0095]
[0096] With other conditions unchanged, two sets of milling experiments with different cutting depths were conducted. After synchronizing the cutting force signals, the cutting force value at high cutting depth was subtracted from the cutting force value at low cutting depth, and the difference was used to calculate the side cutting coefficient. df (φ,k f ,z)(d=T,R) and h c (φ,k f ,z) adopts the nonlinear curve fitting formula, as shown in the following formula.
[0097]
[0098] Estimating the side cutting coefficient K of the tool using empirical relations df (φ,k f ,z)(d=T,R) and bottom edge coefficient K db (φ,k f ,z)(d=T,R). The cutting force data related to the calibrated bottom cutting force coefficient are obtained by deducting the side cutting force calculated using the above formula from the measured cutting force at high cutting depth. Assuming h c It is linearly related to the force coefficient as shown in the following formula.
[0099]
[0100] The bottom cutting force of a single infinitesimal element and the total bottom cutting force can be calculated using the following two formulas respectively.
[0101]
[0102] The milling force coefficient was calibrated using the above method using the cutting force data of the 3rd and 5th experimental sets in Table 1. The milling force coefficient of the carbide end mill and the 7075 aluminum alloy workpiece material is shown in the following formula.
[0103] K tc =1184*exp(-57.94*h c )+868.8K te =32.25
[0104] K rc =2208*exp(-74.56*h c )+215.6K re =-21.45
[0105] K ac =-264.7*exp(-187.8*h c )-226.7K ae=-0.51
[0106] The instantaneous cutting force calculated by the mechanical cutting force model is compared with the actual cutting force measured by the dynamometer. The comparison results are as follows: Figure 5 As shown by Figure 5 It can be seen that the instantaneous cutting force calculated by the mechanical cutting force model is consistent with the measured actual cutting force peak in both amplitude and phase, which verifies the accuracy of the mechanical cutting force model calculation. However, the mechanical cutting force model based on tool workpiece engagement (CWE) calculation has a large amount of calculation and is usually used for offline calculation, and cannot be used in scenarios where real-time monitoring of cutting force is required. Therefore, it is used as the label value of the model to train the model, and then the trained model is further used to monitor the cutting force.
[0107] According to the recording time of the monitoring signal saved by the machine tool, the starting and ending data points of the monitoring signal are found, the non-cutting segment data at the beginning and end are removed, and the outliers are eliminated. The monitoring signal is collected from the CNC system with a sampling time interval of 0.6ms. The calculated instantaneous cutting force, under the working condition of 2000rpm, has a rotation time of 0.03s, 360 data points within one rotation time, and a sampling time interval of 0.083ms. The cutting force data is resampled so that the machine tool monitoring signal and the cutting force signal have the same length to meet the time series data requirements of the data-driven model. During model training, the data after rough alignment of the time series is converted into multidimensional data according to the time series relationship. Then the cutting data of different process parameter groups are divided into training set, validation set and test set, among which groups 2, 5, and 6 are used as training sets, group 1 is used as validation set, and groups 3, 4, and 7 are used as test sets. It is used to train and verify the proposed convolutional neural network-long short-term memory-self-attention (CNN-LSTM-SA) data-driven model and test network performance, such as Figure 6As shown in the figure. The CNN module calculates the convolution result of the local area of the data by sliding the convolution kernel, and extracts the local feature representation of the monitoring data area. The Relu function is used as the activation function, and the maximum pooling layer is used to envelop the most important feature information to reduce the model parameters. However, due to the limitation of the kernel size, CNN extracts features locally at each layer of the convolution kernel, which brings challenges to capturing the long-term dependencies embedded in the time series. At the same time, the convolution kernel has spatial invariance, does not consider the sequence order between different samples, and ignores the temporal data relationship. This causes it to lose sequence information, thereby reducing the prediction performance and generalization ability. In order to solve the above problems, the LSTM module is used to capture the inherent long-term dependencies in the time series. The feature information extracted by the CNN module is input into the LSTM layer, and the output of the LSTM layer is input into the SA layer. The SA mechanism focuses on the key information in the LSTM output by giving different hidden state probability weights to the LSTM. The SA layer captures the intrinsic correlation between the monitoring data, makes up for the information loss caused by the long sequence in the LSTM, and helps to improve the accuracy of cutting force prediction. The LSTM and SA layers obtain the intrinsic pattern of cutting force changes from the extracted features, thereby realizing the prediction function. Subsequently, the SA layer passes the result of processed data to the output layer, which finally produces the predicted cutting force results.
[0108] Since the milling process is performed by using a milling cutter with multiple cutting edges, the machining process generates an impact cyclic cutting force signal when the rotating cutting edge cuts in and out of the workpiece. The maximum pooling layer is used to perform a sliding window operation on the features and output the maximum value within the window, so that the key features related to the cutting force peak in the input data can be extracted. The association between the input data and the CNN layer is shown in the following formula:
[0109]
[0110] Where K represents the convolution kernel, x represents the input data, c represents the sliding processing of the input data, and b represents the bias vector.
[0111] After convolution and pooling of the input data, the extracted feature information is passed to the LSTM layer. The relationship between the features and the LSTM network is as follows:
[0112] O t =sigmoid(W O ·[h t-1 ,c t ]+b O )
[0113] Among them, t represents the features of the LSTM layer output, W O represents the weight matrix, h t-1 Indicates the output at the previous moment, ct is the neuron state at the current moment, b O is the bias vector.
[0114] The nodes in the LSTM layer and the CNN layer are fully connected to integrate the extracted features. The self-attention mechanism consists of three main vectors: query vector, key vector, and value vector. These vectors are obtained by multiplying the input time series by three matrices. The correlation between the LSTM layer output and the SA mechanism is described as follows:
[0115] q=W Q ·O t +b Q
[0116] k=W K ·O t +b K
[0117] v=W V ·O t +b V
[0118] Where W Q , W K and W V represents the weight matrix corresponding to the query vector (q), key vector (k) and value vector (v), b Q , b K and b V Denotes the bias vector corresponding to the query vector (q), key vector (k), and value vector (v).
[0119] By continuously updating the weights and bias vectors during the training process, the self-attention mechanism quantifies the correlation of the input time series. The output of the self-attention layer can be calculated using the scaled dot product of the attention function, expressed as:
[0120]
[0121] where K, Q, and V are matrices of query vector, key vector, and value vector, respectively. k represents the dimension of the key vector. Softmax is a cross entropy function that normalizes Q and K T The inner product of .
[0122] The output of the SA layer is the cutting force value predicted by the FC layer output, and the relationship is as follows:
[0123] O FC =W FC ·O SA +b FC
[0124] Among them, FC is the output of the FC layer, WFC is the weight vector of the FC layer, O SA is the output of the SA layer, b FC is the bias vector of the FC layer.
[0125] The key feature information extracted by the multi-layer network is mapped to the cutting force. This study uses the mean square error (MSE) as the target loss function for network parameter update, which is defined as:
[0126]
[0127] where x s is the input monitoring signal, F CNN , F LSTM , F SA and F FC Represents CNN layer, LSTM layer, SA layer and FC layer respectively. CNN , Q LSTM , Q SA and Q FC Respectively represent the corresponding model parameters, n s is the number of samples in the training set, Represents the predicted value, y s is the measured value, Represents error calculation.
[0128] The dimension of the input monitoring data is determined according to the rotation speed and sampling frequency. The experimental rotation speed is 2000rpm, and the time for one revolution is 0.03s. According to the sampling frequency of the monitoring signal, the sampling points for one revolution are determined to be 1 / 0.0006×0.03=50. The time window is set to exceed the number of sampling points during one revolution of the tool, which is set to 100 in this paper. The model hyperparameters are optimized according to the Bayesian optimization algorithm, and the output layer size is set to 1, which represents the predicted cutting force. The CNN network consists of two CNN layers. The kernel size of the first CNN layer is 4, and a maximum pooling layer with a kernel size of 3 is used. The kernel size of the second CNN layer is 3, and a maximum pooling layer with a kernel size of 2 is used. The LSTM network contains two LSTM layers, each with 32 neurons. The self-attention network obtains the query, key, and value matrices through three FC layers, each containing 32 neurons. Finally, these matrices are mapped to the output values through an FC layer containing 16 neurons.
[0129] Before model training, the initial weight matrix and bias vector are automatically assigned. The network model is trained through the input and output data of the training set. During the training process, the loss function is used as the objective function, and the network parameters are continuously updated iteratively to reduce the loss function. Until the iteration ends, the loss value calculated by the loss function is reduced to the minimum, which is equivalent to the following minimum problem:
[0130]
[0131] The network uses the ADAptive Moment Estimation (Adam) optimization algorithm, the number of network iterations is set to 100, the batch size is 32, the initial learning rate of the CNN feature extractor is set to 0.0005, and the initial learning rate of the LSTM network and the self-attention layer is set to 0.001. The network parameters are continuously updated until the maximum number of iterations is reached.
[0132] Adam is an adaptive learning rate optimization algorithm. The parameter update steps are as follows:
[0133] First, calculate the gradient of the loss function with respect to the network parameters at time step t:
[0134]
[0135] in, and They are the gradients of the loss functions of the CNN layer, LSTM layer, SA layer and FC at time step t relative to the network parameters.
[0136] Then the first-order moment estimate and the second-order moment estimate in momentum form are updated as:
[0137]
[0138] Where the subscript t represents the current time step, and β1 and β2 represent the exponential decay rates of the moment estimates, which can effectively smooth the fluctuations in the gradient calculation and make the optimization results more accurate and stable.
[0139] Next, calculate the bias-corrected first- and second-order moment estimates:
[0140]
[0141] in, and represents β1 and β2 raised to the power of t.
[0142] Finally, update the network parameters:
[0143]
[0144] Where Q t is the network parameter vector, η is the learning rate, the initial learning rate can be set, and after a certain number of iterations, the learning rate can be automatically updated according to the program. This learning rate optimization strategy is conducive to the rapid convergence of the training model and the improvement of model performance. ε represents a small constant equal to 10e-8 to avoid the denominator being equal to 0. The network parameters are continuously updated until the maximum time step is reached.
[0145] After the iteration, the cutting force prediction model is obtained:
[0146] g(x)=F FC (F SA (F LSTM (F CNN (xs; Q CNN ),Q LSTM ),Q SA ),Q FC )
[0147] where x s is the input monitoring signal, F CNN , F LSTM , F SA and F FC Represents CNN layer, LSTM layer, SA layer and FC layer respectively. CNN , Q LSTM , Q SA and Q FC They represent the corresponding model parameters respectively.
[0148] According to the training process described above, the regression prediction model is evaluated. After the model is trained, the input signal of the test set is input into the model for iterative prediction to obtain the predicted values of all cutting forces. Figure 7-9 The figure shows the comparison between the predicted cutting force and the measured cutting force of the three test sets under the straight trajectory. The predicted results of the arc trajectory test group are shown in Figure 10-15 As shown in the figure. The results show that the proposed model also has effective prediction performance in the case of circular trajectories where the peak cutting force changes during milling. The predicted and measured values have significant consistency in both amplitude and phase. Only in the X direction of the linear trajectory, the ratio of the predicted RMSE to the peak cutting force is between 10% and 15%. The RMSE of other predictions remains below 10% of the peak cutting force, showing good prediction accuracy. Although there are local deviations in the peak and phase between the predicted and measured values, these deviations are within an acceptable range. The experimental results show that the proposed CNN-LSTM-SA model has excellent accuracy in predicting the cutting force under different cutting conditions.
[0149] The results show that the cutting force curve predicted by the proposed method fits well within the tool revolution period, and the overall envelope line is consistent with the measured value envelope contour, that is, the cutting force peak value and phase are consistent well, and the cutting force prediction accuracy is high, which is of great significance for cutting force monitoring in milling processing.
[0150] like Fig.16 As shown, the mechanism and data hybrid driven milling cutting force monitoring system provided by the embodiment of the present invention includes:
[0151] The detection signal acquisition module is used to perform cutting experiments using the prepared tool paths and the proposed machining process parameters and collect machine tool monitoring signals;
[0152] Model accuracy verification module, which is used to calculate the instantaneous cutting force by using machining process parameters, tool and workpiece information, cutting force coefficient, and mechanical cutting force model combined with the mechanism, and compare it with the measured actual cutting force to verify the model accuracy;
[0153] A training set and test set partitioning module is used to analyze and process the machine tool monitoring signal and the calculated cutting force signal into a time-series aligned data set and partition the data into a training set and a test set for use in a data-driven algorithm;
[0154] The cutting force acquisition module is used to train the proposed data-driven algorithm using the created data set. During actual processing, the monitoring signal is input into the trained prediction model for iterative prediction, so that the cutting force during the processing can be obtained in real time.
[0155] An application embodiment of the present invention provides a computer device, which includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of a milling cutting force monitoring method driven by a mixed mechanism and data.
[0156] The application embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of a milling cutting force monitoring method driven by a hybrid mechanism and data.
[0157] The application embodiment of the present invention provides an information data processing terminal, which includes a milling cutting force monitoring system driven by a hybrid mechanism and data.
[0158] Specific application areas include but are not limited to the following aspects:
[0159] Smart manufacturing and industrial automation: In smart manufacturing, accurate monitoring and control of cutting force during cutting is crucial to improving machining quality, reducing energy consumption and extending tool life. The present invention can be applied to automated machine tool monitoring systems to predict and optimize cutting force during cutting by real-time analysis of current signals monitored by machine tools, thus achieving intelligent cutting processing.
[0160] Precision machining and efficient production: In machining scenarios that require high precision and high efficiency, such as aerospace, automobile manufacturing and other fields, accurate control of cutting force can avoid workpiece deformation and machining errors, and improve machining efficiency and product quality.
[0161] Tool life and resource utilization: Accurate monitoring of cutting forces helps optimize tool life and avoid premature tool wear or damage, thereby saving tool costs and reducing waste of raw materials.
[0162] Energy saving, emission reduction and environmental protection: By precisely controlling the cutting force, the processing parameters can be optimized, energy consumption and waste generation can be reduced, thereby reducing the negative impact on the environment, which meets the modern industrial requirements of energy saving and emission reduction.
[0163] Real-time monitoring and feedback control: The present invention can be applied to real-time monitoring and feedback control systems. Through real-time analysis of the cutting force monitored based on signals such as machine tool current, the processing parameters can be adjusted in time to maintain the stability and consistency of the cutting process.
[0164] In general, the present invention is applicable to any industrial processing scenario that requires precise control of the cutting process, improvement of processing efficiency and quality, and reduction of costs and resource waste.
[0165] The cutting force predicted by the data-driven model established by the present invention is consistent with the cutting force measured by existing dynamometers and other sensors in terms of amplitude and phase, showing good prediction accuracy. Specific evidence is as follows: Figure 7-15 As shown in the figure. The results show that the proposed model has effective prediction performance under both linear trajectory and circular trajectory conditions where the cutting force peak value changes during milling. The predicted values and measured values have significant consistency in both amplitude and phase. Only in the X direction of the linear trajectory, the ratio of the RMSE between the predicted and measured values to the peak cutting force is between 10% and 15%. The RMSE between other predicted and measured values remains below 10% of the peak cutting force, showing good prediction accuracy. Although there are local deviations in the peak and phase between the predicted and measured values, these deviations are within an acceptable range and can meet the requirements of cutting force monitoring. The experimental results show that the proposed CNN-LSTM-SA model has excellent accuracy in predicting the cutting force under different cutting conditions.
[0166] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0167] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A mechanism and data hybrid driven milling cutting force monitoring method, It is characterized in that include: S1, using the prepared tool path and the proposed machining process parameters to conduct cutting experiments and collect machine tool monitoring signals; S2, using machining process parameters, tool and workpiece information, cutting force coefficient, combined with the mechanical cutting force model of the mechanism to calculate the instantaneous cutting force, and compare it with the measured actual cutting force to verify the accuracy of the model; S3, analyzing and processing the machine tool monitoring signal and the calculated cutting force signal into a time-series aligned data set and dividing it into a training set and a test set for use in a data-driven algorithm; S4, uses the created data set to train the proposed data-driven algorithm. During actual machining, the monitoring signal is input into the trained prediction model for iterative prediction, and the cutting force during machining can be obtained in real time.
2. The milling cutting force monitoring method driven by a hybrid mechanism and data as claimed in claim 1, It is characterized in that In step S1, during the cutting experiment, the CNC inherent signal monitoring software is used to record the servo monitoring signals of the motors of each feed axis of the machine tool in real time, and the measured cutting force is collected at the same time.
3. The mechanism and data hybrid driven milling cutting force monitoring method as claimed in claim 1, It is characterized in that In step S2, the instantaneous cutting force is calculated using the actual machining process parameters, the calibrated cutting force coefficient, the tool and workpiece information combined with the mechanical cutting force model, and compared with the actual cutting force measured in step S1 to verify the accuracy of the mechanical cutting force model.
4. The method for monitoring cutting force in milling driven by hybrid mechanism and data as claimed in claim 1, It is characterized in that In step S3, the first and last non-cutting segment data of the collected original monitoring signal are first removed. For the calculated cutting force signal, it is necessary to roughly synchronize it with the cutting starting point of the monitoring signal, and resample the cutting force signal so that it has the same time series data length as the monitoring data to form a data set; before model training, the data also needs to be processed according to the time lag order between the input and output; The cutting force value at a certain moment is related to the monitoring signal at that moment and the previous moments and the cutting force value at the previous moments. Its dynamic nonlinear relationship can be characterized as follows: Among them, t represents the current time, F a (t) represents the cutting force in the feed axis direction at the current moment, I d (tj),ω(tj), (j=0,1,...,O n ) represents the feed axis drive current, speed and acceleration at previous and current times, F a (tj),(j=1,2,...,O l ) represents the cutting force value of the feed axis at the previous moment, O n and O l They represent the time lag order related to the input and output respectively, and the nonlinear relationship F between the input and output is constructed using the data-driven model; during model training, the data after rough alignment of the time series is converted into multidimensional data according to the above formula; Then the cutting data of different process parameter groups are divided into training set, validation set and test set for training and validating the network and testing the network performance.
5. The milling cutting force monitoring method driven by a hybrid mechanism and data as claimed in claim 1, It is characterized in that In step S4, the proposed convolutional neural network-long short-term memory-self-attention data-driven model is trained using the converted multidimensional data set; the CNN module calculates the convolution result of the local area of the data by sliding the convolution kernel to extract the local feature representation of the monitoring data area; the Relu function is used as the activation function, and the maximum pooling layer is used to envelop the most important feature information to reduce the model parameters; the LSTM module is used to capture the inherent long-term dependencies in the time series, and the feature information extracted by the CNN module is input into the LSTM layer, and the output of the LSTM layer is input into the SA layer; the SA mechanism focuses on the key information in the LSTM output by assigning different hidden state probability weights to the LSTM, and the SA layer captures the intrinsic correlation between the monitoring data, compensates for the information loss caused by the long sequence in the LSTM, and helps to improve the accuracy of cutting force prediction; the LSTM and SA layers obtain the intrinsic pattern of cutting force changes from the extracted features, thereby realizing the prediction function; then, the SA layer passes the result of processing the data to the output layer, and finally generates the predicted cutting force result; Since the milling process is performed by using a milling cutter with multiple cutting edges, the machining process generates an impact cyclic cutting force signal when the rotating cutting edge cuts in and out of the workpiece; the maximum pooling layer is used to perform a sliding window operation on the features and output the maximum value within the window, so that the key features related to the cutting force peak in the input data can be extracted. The association between the input data and the CNN layer is shown in the following formula: Where K represents the convolution kernel, x represents the input data, c represents the sliding processing of the input data, and b represents the bias vector; After convolution and pooling of the input data, the extracted feature information is passed to the LSTM layer; the relationship between the features and the LSTM network is as follows: O t =sigmoid(W O ·[h t-1 ,c t ]+b O ) Among them, t represents the features of the LSTM layer output, W O represents the weight matrix, h t-1 Indicates the output at the previous moment, c t is the neuron state at the current moment, b O is the bias vector; The nodes in the LSTM layer and the CNN layer are fully connected to integrate the extracted features; the self-attention mechanism consists of three main vectors: query vector, key vector and value vector; these vectors are obtained by multiplying the input time series by three matrices; the correlation between the LSTM layer output and the SA mechanism is described as follows: q=W Q ·O t +b Q k=W K ·O t +b K v=W V ·O t +b V Where W Q , W K and W V represents the weight matrix corresponding to the query vector q, key vector k and value vector v, b Q , b K and b V represents the bias vector corresponding to the query vector q, key vector k and value vector v; By continuously updating the weights and bias vectors during the training process, the self-attention mechanism quantifies the correlation of the input time series. The output of the self-attention layer can be calculated using the scaled dot product of the attention function, expressed as: where K, Q, and V are matrices of query vector, key vector, and value vector, respectively. k represents the dimension of the key vector; Softmax is the cross entropy function, which normalizes Q and K T The inner product of The output of the SA layer is the cutting force value predicted by the FC layer output, and the relationship is as follows: O FC =W FC O SA +b FC Among them, FC is the output of the FC layer, W FC is the weight vector of the FC layer, O SA is the output of the SA layer, b FC is the bias vector of the FC layer; The key feature information extracted by the multi-layer network is mapped to the cutting force; the mean square error is used as the target loss function for network parameter update, which is defined as: where x s is the input monitoring signal, F CNN , F LSTM , F SA and F FC Respectively represent CNN layer, LSTM layer, SA layer and FC layer; Q CNN , Q LSTM , Q SA and Q FC Represent the corresponding model parameters, n s is the number of samples in the training set, Represents the predicted value, y s is the measured value, represents error calculation; Finally, the network parameters are updated by minimizing the regression loss to obtain the cutting force prediction model. During actual processing, the monitoring signal is input into the established prediction model for training and iterative prediction to obtain the real-time cutting force of milling processing.
6. A mechanism and data hybrid driven milling cutting force monitoring system that implements the mechanism and data hybrid driven milling cutting force monitoring method as claimed in any one of claims 1 to 5, include: The detection signal acquisition module is used to perform cutting experiments using the prepared tool paths and the proposed machining process parameters and collect machine tool monitoring signals; Model accuracy verification module, which is used to calculate the instantaneous cutting force by using machining process parameters, tool and workpiece information, cutting force coefficient, and mechanical cutting force model combined with the mechanism, and compare it with the measured actual cutting force to verify the model accuracy; A training set and test set partitioning module is used to analyze and process the machine tool monitoring signal and the calculated cutting force signal into a time-series aligned data set and partition the data into a training set and a test set for use in a data-driven algorithm; The cutting force acquisition module is used to train the proposed data-driven algorithm using the created data set. During actual processing, the monitoring signal is input into the trained prediction model for iterative prediction, so that the cutting force during the processing can be obtained in real time.
7. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the milling cutting force monitoring method driven by a hybrid mechanism and data as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the milling cutting force monitoring method driven by a hybrid mechanism and data as described in any one of claims 1 to 5.
9. An information data processing terminal, comprising the mechanism and data hybrid driven milling cutting force monitoring system as claimed in claim 6.
Citation Information
Patent Citations
Cutting force monitoring method and equipment based on unsupervised domain confrontation algorithm
CN117086696A
Milling machining cutting force monitoring method and system and electronic equipment
CN117428573A
Data-driven machine tool spindle cutting torque monitoring method
CN117733646A
Data Augmentation Method Based On Generative Adversarial Networks In Tool Condition Monitoring
US20210197335A1
Cited By
Cutter cutting parameter optimization recommendation method and device
CN118951884A
Intelligent monitoring method for cutter cutting force data of numerical control boring and milling
CN119282820A
Image data driven numerical control machining cutting force prediction and standard test tool path generation method
CN119356210A
Physical information embedded instantaneous cutting force prediction method and system
CN119475268A
Grinding force real-time prediction method based on informed machine learning
CN119577378A
