Cutting surface dynamic detection method and system applied to cutting part

Real-time monitoring and analysis of cutting surface data through the variational autoencoder model solves the problems of data processing delay and inaccuracy in the existing technology, improves cutting accuracy and production efficiency, and reduces scrap rates and safety risks.

CN118559501AInactive Publication Date: 2024-08-30GAOMI NUODE MASCH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410813778.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing dynamic surface measurement technology has delays in processing complex data and real-time feedback, and cannot accurately reflect the state of the cutting surface, resulting in possible errors and uncertainties in high-speed production environments. Especially in the field of high-precision manufacturing, it increases the need for manual inspection. dependencies and security risks.

Method used

The variational autoencoder model is used to monitor and analyze cutting surface data in real time. Tool wear is judged through reconstruction errors, anomaly detection and root cause analysis are performed, and model parameters are updated to adapt to changes in the production environment to achieve dynamic monitoring.

Benefits of technology

It significantly improves cutting accuracy and production efficiency, reduces scrap rate, improves product performance and safety standards, and ensures instant feedback and high-precision control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118559501A
    Figure CN118559501A
Patent Text Reader

Abstract

The invention relates to the technical field of dynamic surface measurement, in particular to a cutting surface dynamic detection method and system applied to a cutting piece, and the method comprises the following steps: collecting real-time cutting surface data, inputting the real-time cutting surface data into a deployed variational auto-encoder model to obtain coded data, learning the surface roughness by using the coded data, and determining the surface roughness according to the learned surface roughness. And adjusting and determining model parameters, and establishing a training model. According to the method, the variational auto-encoder model is adopted for real-time monitoring and analysis of the cutting face data, the remarkable self-adaptive learning capacity is achieved, the cutting precision is improved, production parameters are adjusted in real time, the rejection rate is reduced, and the machining precision is improved by continuously monitoring the surface roughness and recognizing potential defects. The requirement for subsequent correction is remarkably reduced, the performance and the safety standard of products can be directly improved, due to introduction of real-time root cause analysis, problem diagnosis is more accurate, the problem solving process is accelerated, and the operation efficiency of a production line is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of dynamic surface measurement, and in particular to a cutting surface dynamic detection method and system applied to a cutting piece. Background Art

[0002] Dynamic surface measurement technology focuses on the technology of real-time monitoring and evaluation of the surface of an object during production and processing. This technology is widely used in precision manufacturing, automated production lines, and mechanical processing, where surface quality directly affects the performance and quality of the final product. Dynamic surface measurement technology involves the use of various sensors and measuring devices, such as laser scanners, optical sensors, tactile probes, etc., to capture key parameters such as surface geometry and roughness in real time. The development of this technology enables timely detection of problems during the processing process and adjustments to be made, thereby improving production efficiency and reducing scrap rates.

[0003] Among them, the dynamic detection method of the cutting surface applied to cutting parts involves a specific dynamic surface measurement application, that is, real-time monitoring of the state and quality of the cutting surface during the cutting process. The main purpose of this method is to ensure the accuracy and efficiency of the cutting process, avoid processing errors, and reduce the number of workpieces that require subsequent corrections. By dynamically detecting the cutting surface, the cutting parameters (such as cutting speed, feed rate, cutting depth, etc.) can be adjusted in real time to optimize the processing process and ensure that the workpiece meets the design specifications. This technology is particularly suitable for fields with high precision requirements, such as aviation, automobile manufacturing and high-end machinery and equipment production, where even a small processing error can lead to major performance problems.

[0004] Although existing dynamic surface measurement technologies are capable of capturing surface characteristics, they are still limited in processing complex data and real-time feedback. Traditional methods often fail to provide immediate feedback in high-speed production environments due to data processing delays, which may lead to the accumulation of errors and product quality issues in precision manufacturing. Especially when dealing with irregular or complex surfaces, these technologies may not accurately reflect the actual cutting status, increasing uncertainty in the production process. This delay and inaccuracy limits its application in modern manufacturing industries that require instant feedback and high-precision control, leading to reliance on manual inspection and potential safety risks, especially in key areas such as aviation and precision equipment manufacturing. In addition, existing technologies lack sufficient adaptability to cope with rapidly changing production needs, which is particularly prominent in modern manufacturing environments with high efficiency and high quality requirements. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a method and system for dynamically detecting the cutting surface of a cutting piece.

[0006] In order to achieve the above object, the present invention adopts the following technical solution: a dynamic detection method for the cutting surface of a cutting piece, comprising the following steps:

[0007] S1: collect real-time cutting surface data, input it into the deployed variational autoencoder model, obtain encoded data, use the encoded data to learn the surface roughness, adjust and determine the model parameters, and establish a training model;

[0008] S2: reconstruct the current cutting surface data using the training model, calculate and record the difference between the reconstructed data and the original input data, obtain the reconstruction error, determine whether the reconstruction error is associated with tool wear based on statistical analysis, and determine the abnormal detection result;

[0009] S3: Analyze the abnormality detection results, identify and record the data points marked as abnormal, collect the marked abnormal data, perform root cause analysis on the marked abnormal data in combination with cutting parameters and tool wear data, and verify the problem source analysis results;

[0010] S4: Based on the problem source analysis results, update the parameters of the variational autoencoder model, implement online learning to match changes in the production environment, update the training model, and continue to monitor the cutting surface to obtain dynamic monitoring results.

[0011] As a further solution of the present invention, the step of establishing a training model is specifically:

[0012] S111: Collect real-time cutting surface data and input it into the deployed variational autoencoder model using the formula:

[0013] z=σ(W·x+b+∈·norm(x))

[0014] Calculate and obtain the encoded data;

[0015] Among them, x represents the input cutting surface data, W represents the model weight, b represents the model bias, ∈ represents the noise resistance coefficient, norm(x) represents the norm of the input data, and z represents the encoded data;

[0016] S112: Using the encoded data, learning the surface roughness, using the formula:

[0017]

[0018] Calculate the surface roughness prediction value and obtain the roughness learning result;

[0019] Among them, β1 and β0 represent regression coefficients, max(z) represents the maximum value of the encoded data, and y represents the roughness learning result;

[0020] S113: Optimize model parameters according to the roughness learning result, using the formula:

[0021]

[0022] Get the updated model parameters;

[0023] Among them, φ represents the original model parameters, λ represents the learning rate, and L represents the loss function. represents the gradient of the loss function with respect to the parameter φ, α represents the regularization coefficient, and φ new represents the updated model parameters;

[0024] S114: Use the updated model parameters to rebuild the training model using the formula:

[0025]

[0026] Build a training model;

[0027] Among them, X represents the training data set and M represents the training model.

[0028] As a further solution of the present invention, the step of obtaining the reconstruction error is specifically as follows:

[0029] S211: Reconstruct the current cutting surface data using the training model, using the formula:

[0030] R d =M(W,X cur +ΔX)

[0031] Calculate and generate reconstruction data;

[0032] Among them, X cur represents the current cutting surface data, W represents the model parameters, ΔX represents the perturbation term, R d Represents reconstructed data;

[0033] S212: Calculate the difference between the reconstructed data and the current cutting surface data using the formula:

[0034]

[0035] The reconstruction error is calculated;

[0036] Where n represents the total number of data points and ∈ represents the reconstruction error.

[0037] As a further solution of the present invention, the step of determining the abnormality detection result is specifically:

[0038] S221: Perform statistical analysis on the reconstruction error using the formula:

[0039]

[0040] Calculate and generate the standard deviation of the reconstruction error;

[0041] Among them, ∈ i represents the i-th reconstruction error value, μ ∈ represents the mean of the reconstruction error, N represents the number of samples, σ ∈ represents the standard deviation of the reconstruction error, κ and γ are adjustment coefficients;

[0042] S222: Compare the standard deviation of the reconstruction error with a preset tool wear threshold θ, using the formula:

[0043]

[0044] The difference is calculated and used to make a preliminary judgment on the tool wear and generate a preliminary judgment result;

[0045] Among them, D represents the comparison result with the threshold, and α is a smoothing parameter to avoid zero division errors;

[0046] S223: Based on the preliminary judgment result, a logic function is used to determine whether there is an abnormality, using the formula:

[0047] R=max(0,sign(D))

[0048] If D is greater than zero, R returns 1 to indicate an abnormality, otherwise it returns 0 to indicate normality, generating an anomaly detection result;

[0049] Among them, R represents the anomaly detection result, the sign function is used to return the sign of D, and the max function ensures that the output is non-negative.

[0050] As a further solution of the present invention, the step of verifying the problem source analysis result is specifically:

[0051] S311: Analyze the anomaly detection results, mark abnormal data points, and use the formula:

[0052] A={x i ∈X|R(xi)>δ+∈·σ R}

[0053] Generate a set of data points A marked with anomalies;

[0054] Where X is the data set, x i is a data point, R(x i ) is the anomaly score, δ,∈,σ R are the threshold, adjustment coefficient, and standard deviation of anomaly scores, respectively;

[0055] S312: Collect the marked abnormal data point set and the associated cutting parameters p i , using the formula:

[0056] B={(x i ,p i )|x i ∈A∧p i >τ×mean(P)}

[0057] Generate data and parameter set B;

[0058] Among them, τ is the sensitive threshold of cutting parameters, mean(P) is the average value of cutting parameters;

[0059] S313: Root cause analysis is performed using the data and parameter set, combined with tool wear data W, using the formula:

[0060] C=analyze(B,W,λ·var(W))

[0061] Analyze the estimated problem sources and verify the problem source analysis results C;

[0062] Where λ is the sensitivity parameter of the analysis and var(W) is the variance of the tool wear data.

[0063] As a further solution of the present invention, the steps of obtaining the dynamic monitoring results are specifically as follows:

[0064] S411: Based on the problem source analysis result, update the parameters of the variational autoencoder model using the formula:

[0065]

[0066] generating updated model parameters;

[0067] Among them, θ old represents the current model parameters, L represents the loss function, represents the gradient of the loss function, α represents the learning rate, β represents the regularization coefficient, κ represents the periodic adjustment intensity, ω represents the adjustment frequency, t represents the time variable, and θ new represents the updated model parameters;

[0068] S412: Using the updated model parameters, online learning is performed to match changes in the production environment, using the formula:

[0069] θ adapt =θ new +γ·Δθ env ·e -λ·t

[0070] Generate the matched model parameters θadapt ;

[0071] Among them, Δθ env is the parameter adjustment amount obtained according to environmental changes, γ is the adjustment factor, λ is the attenuation factor, and t is the time variable;

[0072] S413: Based on the matched model parameters, continue to monitor the cutting surface using the formula:

[0073] M result =monitor(S,θ adapt ,ξ)

[0074] Generate dynamic monitoring results;

[0075] Among them, S represents the cutting surface state data, ξ represents the monitoring sensitivity parameter, and M result Represents dynamic monitoring results.

[0076] A cutting surface dynamic detection system applied to a cutting piece, the cutting surface dynamic detection system applied to a cutting piece is used to execute the above-mentioned cutting surface dynamic detection method applied to a cutting piece, the system comprises:

[0077] The data acquisition module collects real-time cutting surface data, performs standardized processing, and uses the standardized data for subsequent module input to establish a data interface;

[0078] The encoding training module uses a variational autoencoder based on the data interface to learn the cutting surface characteristics, adjust the model parameters, obtain the training model, use the training model to initialize the model, and establish the model parameters;

[0079] The data reconstruction module reconstructs the newly collected cutting surface data based on the training model, analyzes the difference between the reconstructed data and the original data, identifies the data points of the difference, obtains the reconstruction error, uses the reconstruction error for anomaly detection, and establishes anomaly indicators;

[0080] The anomaly detection module performs statistical analysis based on the anomaly indicators, determines whether the reconstruction error indicates tool wear, marks the anomaly data points, and establishes an anomaly detection result;

[0081] The problem analysis module performs root cause analysis based on the abnormal detection results in combination with cutting parameters and tool wear data, identifies the problem source, uses the problem source for model update and system adjustment, and establishes a problem source analysis result;

[0082] Based on the problem source analysis results, the online learning module updates the training parameters of the variational autoencoder to match the changes in the production environment, obtains an updated training model, and uses the updated training model to continue dynamic monitoring to obtain dynamic monitoring results.

[0083] Compared with the prior art, the advantages and positive effects of the present invention are:

[0084] In the present invention, the variational autoencoder model used has significant adaptive learning capabilities for real-time monitoring and analysis of cutting surface data. This method not only improves cutting accuracy, but also adjusts production parameters in real time, thereby reducing scrap rates. By continuously monitoring surface roughness and identifying potential defects, the solution significantly reduces the need for subsequent corrections, especially in manufacturing areas with extremely high precision requirements, which can directly improve product performance and safety standards. The introduction of real-time root cause analysis makes the diagnosis of problems more accurate, accelerates the problem-solving process, and enhances the operational efficiency of the production line. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] Figure 1 It is a schematic diagram of the workflow of the present invention;

[0086] Figure 2 A flowchart of the steps of establishing a training model of the present invention;

[0087] Figure 3 is a flow chart of the steps of obtaining the reconstruction error of the present invention;

[0088] Figure 4 A flowchart of the steps of determining an abnormal detection result of the present invention;

[0089] Figure 5 A flowchart of the steps of verifying the problem source analysis result of the present invention;

[0090] Figure 6 The figure is a flow chart of the steps for obtaining the dynamic monitoring results of the present invention. DETAILED DESCRIPTION

[0091] 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 accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0092] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.

[0093] Embodiment 1

[0094] See also Figure 1 The present invention provides a technical solution: a method for dynamically detecting a cutting surface of a cutting piece, comprising the following steps:

[0095] S1: Collect real-time cutting surface data and input it into the deployed variational autoencoder model to obtain encoded data. Use the encoded data to learn the surface roughness, adjust and determine the model parameters, and establish a training model.

[0096] S2: Reconstruct the current cutting surface data using the training model, calculate and record the difference between the reconstructed data and the original input data, obtain the reconstruction error, and determine whether the reconstruction error is associated with tool wear based on statistical analysis to determine the abnormal detection result;

[0097] S3: Analyze the abnormal detection results, identify and record the data points marked as abnormal, collect the marked abnormal data, perform root cause analysis on the marked abnormal data in combination with cutting parameters and tool wear data, and verify the problem source analysis results;

[0098] S4: Based on the results of the problem source analysis, update the parameters of the variational autoencoder model, implement online learning to match changes in the production environment, update the training model, and continue to monitor the cutting surface to obtain dynamic monitoring results.

[0099] The training model includes potential feature extraction, decoder accuracy, and encoder efficiency. The anomaly detection results include error level, anomaly frequency, and sensitivity index. The problem source analysis results include problem type, impact level, and emergency response level. The dynamic monitoring results include update frequency, system stability, and error feedback.

[0100] See also Figure 2 , the steps to build a training model are as follows:

[0101] S111: Collect real-time cutting surface data and input it into the deployed variational autoencoder model using the formula:

[0102] z=σ(W·x+b+∈·norm(x))

[0103] Calculate and obtain the encoded data;

[0104] Among them, x represents the input cutting surface data, W represents the model weight, b represents the model bias, ∈ represents the noise resistance coefficient, norm(x) represents the norm of the input data, and z represents the encoded data;

[0105] S112: Use the encoded data to learn the surface roughness using the formula:

[0106]

[0107] Calculate the surface roughness prediction value and obtain the roughness learning result;

[0108] Among them, β1 and β0 represent regression coefficients, max(z) represents the maximum value of the encoded data, and y represents the roughness learning result;

[0109] S113: According to the roughness learning results, optimize the model parameters using the formula:

[0110]

[0111] Get the updated model parameters;

[0112] Among them, φ represents the original model parameters, λ represents the learning rate, and L represents the loss function. represents the gradient of the loss function with respect to the parameter φ, α represents the regularization coefficient, and φ new represents the updated model parameters;

[0113] S114: Use the updated model parameters to rebuild the training model using the formula:

[0114]

[0115] Build a training model;

[0116] Among them, X represents the training data set and M represents the training model.

[0117] Detailed explanation and derivation of the formula for step 1

[0118] formula:

[0119] z=σ(W·x+b+∈·norm(x))

[0120] Parameter Description:

[0121] W: model weight, assumed to be [0.5, -0.2]

[0122] x: input cutting surface data, assumed to be [10,20]

[0123] b: Model bias, assumed to be 0.1

[0124] ∈: Noise resistance coefficient, assumed to be 0.01

[0125] norm(x): the norm of the input data, here we use the Euclidean norm to calculate σ: activation function, here we use the sigmoid function

[0126] Calculation process:

[0127] Compute norm(x):

[0128]

[0129] Calculate W x:

[0130] W·x=0.5×10+(-0.2)×20=5-4=1Add noise and bias for activation:

[0131] z = σ(1+0.1+0.01×22.36) = σ(1.1+0.2236) = σ(1.3236) Using the sigmoid function:

[0132]

[0133] Example results:

[0134] z=0.79 represents the characteristic value of the data after being encoded by the variational autoencoder.

[0135] Detailed explanation and derivation of the formula for step 2

[0136] formula:

[0137]

[0138] Parameter Description:

[0139] β1: regression coefficient, assumed to be 2

[0140] β0: regression bias, assumed to be 0.5

[0141] z: the encoded data obtained from step 1, which is 0.79

[0142] max(z): The maximum value of the encoded data. Assume that the maximum encoding value of the current batch is 1. Calculation process:

[0143] calculate

[0144]

[0145] Apply the regression formula:

[0146] y=2×0.79+0.5=1.58+0.5=2.08Calculation results:

[0147] y = 2.08 represents the predicted surface roughness value.

[0148] Detailed explanation and derivation of the formula for step 3

[0149] formula:

[0150]

[0151] Parameter Description:

[0152] φ: original model parameter, assumed to be 1.5

[0153] λ: learning rate, assumed to be 0.01

[0154] The gradient of the loss function, assumed to be 0.05

[0155] α: regularization coefficient, assumed to be 0.1

[0156] |φ|: the absolute value of the parameter, which is 1.5

[0157] Calculation process:

[0158] Calculate the gradient adjustment term:

[0159]

[0160] Update parameters:

[0161] φ new =1.5-0.01×0.2=1.5-0.002=1.498

[0162] Example results:

[0163] φ new =1.498 represents the updated model parameters.

[0164] Detailed explanation and derivation of the formula for step 4

[0165] formula:

[0166]

[0167] Parameter Description:

[0168] φ new : The model parameters updated in step 3 are 1.498

[0169] X: training data set, assuming it contains multiple sample data

[0170] Calculation process:

[0171] because It is the calculation process of the model function, which depends on the model structure. Here it is simplified to retrain or apply the model under new parameters.

[0172] Example results:

[0173] M represents the reconstructed training model.

[0174] See also Figure 3 , the steps to obtain the reconstruction error are as follows:

[0175] S211: Reconstruct the current cutting surface data using the training model using the formula:

[0176] R d =M(W,X cur +ΔX)

[0177] Calculate and generate reconstruction data;

[0178] Among them, X cur represents the current cutting surface data, W represents the model parameters, ΔX represents the perturbation term, R d Represents reconstructed data;

[0179] S212: Calculate the difference between the reconstructed data and the current cutting surface data using the formula:

[0180]

[0181] The reconstruction error is calculated;

[0182] Where n represents the total number of data points and ∈ represents the reconstruction error.

[0183] Detailed explanation and derivation of the formula for step 1

[0184] formula:

[0185] R d =M(W,X cur +ΔX)

[0186] X cur : The current cutting surface data is set as the cutting force measurement result. Assume that the current data is 150N (Newton).

[0187] ΔX: Perturbation term, used to simulate the estimated data fluctuation or noise, assumed to be 5N.

[0188] W: Model parameter, here it is assumed to be a simple coefficient of 1.2, which means that the model has a 1.2 times amplification effect on the input data. |

[0189] M: training model function, here it is assumed to simply multiply the parameters and input data.

[0190] Calculation process:

[0191] Input data processing: Add the current cutting surface data to the perturbation term, X cur +ΔX=150+5=155N.

[0192] Model application: Use model parameters W to amplify the processed data, R d =1.2×155=186N.

[0193] Result interpretation:

[0194] Generated reconstructed data R d It is 186N, which means that the output of the model predicts the cutting force, which includes the combined influence of the original data and the perturbation term.

[0195] Detailed explanation and derivation of the formula for step 2

[0196] formula:

[0197]

[0198] R d : The reconstructed data obtained from step 1 is 186N.

[0199] X cur : Current cutting surface data is 150N.

[0200] n: The total number of data points. Here, it is assumed that there is only one data point.

[0201] Calculation process:

[0202] Difference calculation: Calculate the difference between the reconstructed data and the original data, R d -X cur =186-150=36N.

[0203] Error calculation: Square the difference and divide it by the number of data points, then take the square root to get the error.

[0204] Result interpretation:

[0205] The calculated reconstruction error ∈ is 36N, which indicates the degree of deviation between the model and the actual data.

[0206] See also Figure 4 ,The specific steps for determining the anomaly detection results are:

[0207] S221: Perform statistical analysis on the reconstruction error using the formula:

[0208]

[0209] Calculate and generate the standard deviation of the reconstruction error;

[0210] Among them, ∈ i represents the i-th reconstruction error value, μ ∈ represents the mean of the reconstruction error, N represents the number of samples, σ ∈ represents the standard deviation of the reconstruction error, κ and γ are adjustment coefficients;

[0211] S222: Compare the standard deviation of the reconstruction error with a preset tool wear threshold θ, using the formula:

[0212]

[0213] The difference is calculated and used to make a preliminary judgment on the tool wear and generate a preliminary judgment result;

[0214] Among them, D represents the comparison result with the threshold, and α is a smoothing parameter to avoid zero division errors;

[0215] S223: Based on the preliminary judgment result, use the logic function to determine whether there is an abnormality, using the formula:

[0216] R=max(0,sign(D))

[0217] If D is greater than zero, R returns 1 to indicate an abnormality, otherwise it returns 0 to indicate normality, generating an anomaly detection result;

[0218] Among them, R represents the anomaly detection result, the sign function is used to return the sign of D, and the max function ensures that the output is non-negative.

[0219] Hypothetical scenario

[0220] Assume that the wear state of a tool is being monitored by measuring its reconstruction error under specific operating conditions. The following parameters and data points will be used for demonstration:

[0221] N (total number of samples): 10

[0222] ∈ i (Observed values ​​of reconstruction error): [0.1, 0.2, 0.1, 0.3, 0.2, 0.1, 0.2, 0.3, 0.1, 0.2]

[0223] μ ∈ (mean value of reconstruction error): by calculating ∈ i The average of

[0224] θ (preset tool wear threshold): 0.15

[0225] α (smoothing parameter): 0.01 to avoid division by zero errors

[0226] Detailed explanation and derivation of formula

[0227] Step 1: Calculate the standard deviation σ of the reconstruction error ∈

[0228] Calculate the mean value μ ∈

[0229]

[0230] Apply the formula to calculate the standard deviation

[0231]

[0232] Step 2: Compare the standard deviation of the reconstruction error with the threshold

[0233]

[0234] Interpretation of results

[0235] The calculated result of D is -0.467, which means that the standard deviation of the reconstruction error is less than the preset threshold (taking into account the smoothing parameter), so it is judged that there is no abnormal wear.

[0236] Step 3: Determine the abnormality

[0237] R=max(0,sign(D))=max(0,-1)=0

[0238] An R value of 0 indicates that the test result is normal and no abnormality is detected.

[0239] See also Figure 5 , the steps to verify the problem source analysis results are as follows:

[0240] S311: Analyze the anomaly detection results and mark the abnormal data points using the formula:

[0241] A={x i ∈X|R(x i )>δ+∈·σ R}

[0242] Generate a set of data points A marked with anomalies;

[0243] Where X is the data set, x i is a data point, R(x i ) is the anomaly score, δ,∈,σ R are the threshold, adjustment coefficient, and standard deviation of anomaly scores, respectively;

[0244] S312: Collecting a set of marked abnormal data points and associated cutting parameters p i , using the formula:

[0245] B={(x i ,p i )|x i ∈A∧p i >τ×mean(P)

[0246] Generate data and parameter set B;

[0247] Among them, τ is the sensitive threshold of cutting parameters, mean(P) is the average value of cutting parameters;

[0248] S313: Root cause analysis is performed using data and parameter sets, combined with tool wear data W, using the formula:

[0249] C=analyze(B,W,λ·var(W))

[0250] Analyze the estimated problem sources and verify the problem source analysis results C;

[0251] Where λ is the sensitivity parameter of the analysis and var(W) is the variance of the tool wear data.

[0252] Step 1: Labeling of abnormal data points

[0253] formula:

[0254] A={x i ∈X|R(x i )>δ+∈·σ R}

[0255] Parameter interpretation and derivation

[0256] X is the set of all data points.

[0257] x i is a single data point.

[0258] R(x i ) is the data point x i The abnormal score.

[0259] δ is the base threshold, assumed to be 0.5.

[0260] ∈ is the adjustment coefficient, which is set to 0.1.

[0261] σ R is the standard deviation of the outlier scores, assuming the scores are concentrated at 0.5 and the standard deviation is 0.05.

[0262] Calculation example

[0263] Suppose there is a data point x i , its anomaly score R(x i )=0.56. Calculate δ+∈·σ R :

[0264] 0.5+0.1×0.05=0.505

[0265] Because R(x i )=0.56>0.505, this data point x i Marked as abnormal.

[0266] Step 2: Exception parameter collection

[0267] formula:

[0268] B={(x i ,p i )|x i ∈A∧p i >τ×mean(P)}

[0269] Parameter interpretation and derivation

[0270] p i is with x i Associated cutting parameters.

[0271] τ is the sensitivity threshold, which is set to 1.2.

[0272] mean(P) is the average value of all cutting parameters, assuming the average value is 100.

[0273] Calculation example

[0274] Assume that for the abnormal data point x marked above i , its cutting parameter p i = 125. Calculate τ×mean(P)

[0275] 1.2×100=120

[0276] Because p i =125>120, so this is true for (x i ,p i ) is included in set B.

[0277] Step 3: Problem source analysis

[0278] formula:

[0279] C=analyze(B,W,λ·var(W))

[0280] Parameter interpretation and derivation

[0281] W is the tool wear data, set as an array [0.1, 0.2, 0.15, 0.18].

[0282] λ is the sensitivity parameter and is set to 1.5.

[0283] var(W) is the variance of W, calculated as follows:

[0284] Calculation example

[0285] Calculate the variance of W:

[0286]

[0287] λ·var(W)=1.5×0.0015375=0.00230625

[0288] Using these parameters, further analysis of the relationship between B and W can be performed and the source of the problem can be determined.

[0289] See also Figure 6 , the specific steps for obtaining dynamic monitoring results are:

[0290] S411: Based on the problem source analysis results, update the parameters of the variational autoencoder model using the formula:

[0291]

[0292] generating updated model parameters;

[0293] Among them, θ old represents the current model parameters, L represents the loss function, represents the gradient of the loss function, α represents the learning rate, β represents the regularization coefficient, κ represents the periodic adjustment intensity, ω represents the adjustment frequency, t represents the time variable, and θ new represents the updated model parameters;

[0294] S412: Use the updated model parameters to implement online learning to match changes in the production environment, using the formula:

[0295] θ adapt =θ new +γ·Δθ env ·e -λ·t

[0296] Generate the matched model parameters θ adapt ;

[0297] Among them, Δθ env is the parameter adjustment amount obtained according to environmental changes, γ is the adjustment factor, λ is the attenuation factor, and t is the time variable;

[0298] S413: Based on the matched model parameters, continue to monitor the cutting surface using the formula:

[0299] M result =monitor(S,θ adapt ,ξ)

[0300] Generate dynamic monitoring results;

[0301] Among them, S represents the cutting surface state data, ξ represents the monitoring sensitivity parameter, and M result Represents dynamic monitoring results.

[0302] Step 1: Detailed explanation and derivation of formula

[0303] formula:

[0304]

[0305] Parameter explanation:

[0306] θ old : Current model parameter, assumed to be 0.5.

[0307] α: learning rate, assumed to be 0.01.

[0308] The gradient of the loss function L with respect to the parameter θ, assuming that the loss function is L(θ) = (θ-1) 2 ,but

[0309] β: Regularization coefficient, used to avoid overfitting, assumed to be 0.001.

[0310] regularization(θ): Regularization term, assuming that θ is simply used 2 ,therefore

[0311] κ: Periodic adjustment strength, assumed to be 0.05.

[0312] ω: Adjustment frequency, assumed to be π (radians / second).

[0313] t: time variable, assuming the current time is 1 second.

[0314] Calculation process:

[0315] Compute the gradient:

[0316] Calculate the regularization term: regularization(θ old) =0.5 2 =0.25

[0317] Calculate the periodic adjustment: κ·sin(ω·t)=0.05·sin(π·1)=0.05·0

[0318] Update model parameters: θ new =0.5+0.01·(-1)-0.001·0.25+0=0.5-0.01-0.00025=0.48975

[0319] Explanation of the example results:

[0320] Updated model parameters θ newIt is 0.48975, which means that the model parameters are slightly reduced after one update, considering the negative direction of the gradient and the regularization effect.

[0321] Step 2: Detailed explanation and derivation of formula

[0322] formula:

[0323] θ adapt =θ new +γ·Δθ env ·e -λ·t

[0324] Parameter explanation:

[0325] θ new : Obtained from step 1, it is 0.48975.

[0326] γ: adjustment factor, assumed to be 0.02.

[0327] Δθ env : Parameter adjustment caused by environmental changes, assumed to be 0.1.

[0328] λ: attenuation factor, assumed to be 0.5.

[0329] t: time variable, still 1 second.

[0330] Calculation process:

[0331] Parameter explanation:

[0332] θ new : Obtained from step 1, it is 0.48975.

[0333] γ: adjustment factor, assumed to be 0.02.

[0334] Δθ env : Parameter adjustment caused by environmental changes, assumed to be 0.1.

[0335] λ: attenuation factor, assumed to be 0.5.

[0336] t: time variable, still 1 second.

[0337] Calculation process:

[0338] Calculate environmental impact:

[0339] γ·Δθ env ·e -λ·t =0.02·0.1·e -0.5·1 =0.002·0.60653≈0.001213

[0340] Update the adaptation parameters: θ adapt=0.48975+0.001213=0.490963

[0341] Explanation of the example results:

[0342] The model parameters after adaptation are adapt is 0.490963, which means that the parameter increases slightly after considering the environmental changes.

[0343] Step 3: Detailed explanation and derivation of formula

[0344] formula:

[0345] M result =monitor(S,θ adapt ,ξ)

[0346] Parameter explanation:

[0347] S: cutting surface state data, assumed to be a series of measured values, here assuming S = 0.8.

[0348] θ adapt : From the above calculation, it is 0.490963.

[0349] ξ: Monitoring sensitivity parameter, assumed to be 0.1.

[0350] Calculation process and result interpretation:

[0351] The monitoring function can be assumed to be M result =S·θ adapt ·ξ, then M result =0.8·0.490963.0.1=0.039277.

[0352] This result M result =0.039277 represents the adjusted monitoring results according to the current model parameters and cutting surface status, which is used to evaluate the cutting efficiency or predict the cutting surface quality.

[0353] A cutting surface dynamic detection system applied to a cutting piece, the cutting surface dynamic detection system applied to a cutting piece is used to execute the above-mentioned cutting surface dynamic detection method applied to a cutting piece, the system comprises:

[0354] The data acquisition module collects real-time cutting surface data, performs standardized processing, and uses the standardized data for subsequent module input to establish a data interface;

[0355] The encoding training module is based on the data interface and uses the variational autoencoder to learn the cutting surface characteristics, adjust the model parameters, obtain the training model, use the training model to initialize the model, and establish the model parameters;

[0356] The data reconstruction module reconstructs the newly collected cutting surface data based on the training model, analyzes the difference between the reconstructed data and the original data, identifies the different data points, obtains the reconstruction error, uses the reconstruction error for anomaly detection, and establishes anomaly indicators;

[0357] The anomaly detection module performs statistical analysis based on the anomaly indicators to determine whether the reconstruction error indicates tool wear, marks the anomaly data points, and establishes the anomaly detection results;

[0358] The problem analysis module conducts root cause analysis based on the abnormal detection results, combined with cutting parameters and tool wear data, identifies the source of the problem, uses the source of the problem for model update and system adjustment, and establishes the problem source analysis results;

[0359] Based on the problem source analysis results, the online learning module updates the training parameters of the variational autoencoder to match the changes in the production environment, obtains the updated training model, and uses the updated training model to continue dynamic monitoring and obtain dynamic monitoring results.

[0360] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A dynamic detection method for a cutting surface of a cutting piece, characterized in that: The following steps are involved: Collecting real-time cutting surface data, inputting it into the deployed variational autoencoder model to obtain encoded data, using the encoded data to learn the surface roughness, adjust and determine the model parameters, and establish a training model; Reconstructing the current cutting surface data using the training model, calculating and recording the difference between the reconstructed data and the original input data, obtaining the reconstruction error, judging whether the reconstruction error is associated with tool wear based on statistical analysis, and determining the abnormal detection result; Analyze the abnormality detection results, identify and record the data points marked as abnormal, collect the marked abnormal data, perform root cause analysis on the marked abnormal data in combination with cutting parameters and tool wear data, and verify the problem source analysis results; Based on the problem source analysis results, the parameters of the variational autoencoder model are updated, online learning is implemented to match changes in the production environment, the training model is updated, and the cutting surface monitoring is continued to obtain dynamic monitoring results.

2. The method for dynamic detection of cutting surface of a cutting piece according to claim 1, characterized in that: The steps of establishing the training model are specifically as follows: Collect real-time cutting surface data and input it into the deployed variational autoencoder model using the formula: z=σ(W·x+b+∈·norm(x)) Calculate and obtain the encoded data; Among them, x represents the input cutting surface data, W represents the model weight, b represents the model bias, ∈ represents the noise resistance coefficient, norm(x) represents the norm of the input data, and z represents the encoded data; Using the encoded data, the surface roughness is learned using the formula: Calculate the surface roughness prediction value and obtain the roughness learning result; Among them, β1 and β0 represent regression coefficients, max(z) represents the maximum value of the encoded data, and y represents the roughness learning result; According to the roughness learning results, the model parameters are optimized using the formula: Get the updated model parameters; Among them, φ represents the original model parameters, λ represents the learning rate, and L represents the loss function. represents the gradient of the loss function with respect to the parameter φ, α represents the regularization coefficient, and φ new represents the updated model parameters; Using the updated model parameters, the training model is rebuilt using the formula: Build a training model; Among them, X represents the training data set and M represents the training model.

3. The method for dynamic detection of cutting surface of a cutting piece according to claim 1, characterized in that: The steps for obtaining the reconstruction error are specifically as follows: The current cutting surface data is reconstructed using the training model, using the formula: R d =M(W,X cur +ΔX) Calculate and generate reconstruction data; Among them, X cur represents the current cutting surface data, W represents the model parameters, ΔX represents the perturbation term, R d Represents reconstructed data; The difference between the reconstructed data and the current cutting surface data is calculated using the formula: The reconstruction error is calculated; Where n represents the total number of data points and ∈ represents the reconstruction error.

4. The method for dynamic detection of cutting surface of a cutting piece according to claim 1, characterized in that: The steps of determining the abnormality detection result are specifically as follows: The reconstruction error is statistically analyzed using the formula: Calculate and generate the standard deviation of the reconstruction error; Among them, ∈ i represents the i-th reconstruction error value, μ ∈ represents the mean of the reconstruction error, N represents the number of samples, σ ∈ represents the standard deviation of the reconstruction error, κ and γ are adjustment coefficients; The standard deviation of the reconstruction error is compared with the preset tool wear threshold θ, using the formula: The difference is calculated and used to make a preliminary judgment on the tool wear and generate a preliminary judgment result; Among them, D represents the comparison result with the threshold, and α is a smoothing parameter to avoid zero division errors; Based on the preliminary judgment results, a logical function is used to determine whether there is an abnormality, using the formula: R=max(0,sign(D)) If D is greater than zero, R returns 1 to indicate an abnormality, otherwise it returns 0 to indicate normality, generating an anomaly detection result; Among them, R represents the anomaly detection result, the sign function is used to return the sign of D, and the max function ensures that the output is non-negative.

5. The method for dynamic detection of cutting surface of a cutting piece according to claim 1, characterized in that: The steps of verifying the problem source analysis results are specifically as follows: Analyze the anomaly detection results and mark the abnormal data points using the formula: A={x i ∈X∣R(x i )>δ+∈·σ R } Generate a set of data points A marked with anomalies; Where X is the data set, x i is a data point, R(x i ) is the anomaly score, δ,∈,σ R are the threshold, adjustment coefficient, and standard deviation of anomaly scores, respectively; Collect the marked abnormal data points and the associated cutting parameters p i , using the formula: B={(x i ,p i )∣x i ∈A∧p i >τ×mean(P)) Generate data and parameter set B; Among them, τ is the sensitive threshold of cutting parameters, mean(P) is the average value of cutting parameters; The root cause analysis is performed using the data and parameter set, combined with the tool wear data W, using the formula: C=analyze(B,W,λ·var(W)) Analyze the estimated problem sources and verify the problem source analysis results C; Where λ is the sensitivity parameter of the analysis and var(W) is the variance of the tool wear data.

6. The method for dynamic detection of cutting surface of a cutting piece according to claim 1, characterized in that: The steps for obtaining the dynamic monitoring results are specifically as follows: Based on the problem source analysis results, update the parameters of the variational autoencoder model using the formula: generating updated model parameters; Among them, θ old represents the current model parameters, L represents the loss function, represents the gradient of the loss function, α represents the learning rate, β represents the regularization coefficient, κ represents the periodic adjustment intensity, ω represents the adjustment frequency, t represents the time variable, and θ new represents the updated model parameters; Using the updated model parameters, online learning is implemented to match the changes in the production environment using the formula: i adapt =θ new +γ·Δθ env ·e -λ·t Generate the matched model parameters θ adapt ; Among them, Δθ env is the parameter adjustment amount obtained according to environmental changes, γ is the adjustment factor, λ is the attenuation factor, and t is the time variable; Based on the matched model parameters, the cutting surface is continuously monitored using the formula: M result =monitor(S,θ adapt ,x) Generate dynamic monitoring results; Among them, S represents the cutting surface state data, ξ represents the monitoring sensitivity parameter, and M result Represents dynamic monitoring results.

7. A dynamic detection system for cutting surfaces of cutting parts, characterized in that: According to the method for dynamic detection of cutting surface of a cutting piece according to any one of claims 1 to 6, the system comprises: The data acquisition module collects real-time cutting surface data, performs standardized processing, and uses the standardized data for subsequent module input to establish a data interface; The encoding training module uses a variational autoencoder based on the data interface to learn the cutting surface characteristics, adjust the model parameters, obtain the training model, use the training model to initialize the model, and establish the model parameters; The data reconstruction module reconstructs the newly collected cutting surface data based on the training model, analyzes the difference between the reconstructed data and the original data, identifies the data points of the difference, obtains the reconstruction error, uses the reconstruction error for anomaly detection, and establishes anomaly indicators; The anomaly detection module performs statistical analysis based on the anomaly indicators, determines whether the reconstruction error indicates tool wear, marks the anomaly data points, and establishes an anomaly detection result; The problem analysis module performs root cause analysis based on the abnormal detection results in combination with cutting parameters and tool wear data, identifies the problem source, uses the problem source for model update and system adjustment, and establishes a problem source analysis result; Based on the problem source analysis results, the online learning module updates the training parameters of the variational autoencoder to match the changes in the production environment, obtains an updated training model, and uses the updated training model to continue dynamic monitoring to obtain dynamic monitoring results.