Machining surface quality prediction method based on multi-modal data
Through multi-modal data analysis, including process parameters, image processing and acoustic emission signal characteristics, the random forest model is trained to solve the problem of insufficient surface quality prediction accuracy during CNC machine tool processing and improve the accuracy of prediction.
Patent Information
- Application Number
- CN202410665139.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-27
AI Technical Summary
In the existing technology, during the CNC machine tool processing process, the accuracy of the workpiece surface quality prediction is insufficient, resulting in the production of substandard products.
A multi-modal data analysis method is adopted, including obtaining the process parameters of the workpiece, real-time image processing, feature extraction of cutting force and acoustic emission signals, and training a random forest model for surface quality prediction.
The accuracy of the prediction of machined surface quality is improved. Through the comprehensive analysis of multi-modal data, the factors affecting the surface quality of the workpiece can be more comprehensively evaluated and the uncertainty of the prediction results can be reduced.
Smart Images

Figure CN118551297A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of mechanical processing, and in particular relates to a method for predicting mechanical processing surface quality based on multi-modal data. Background Art
[0002] In the process of CNC machine tool processing, the surface quality of the workpiece has a direct impact on its performance. Especially in the processing of precision instrument parts, the requirements for surface quality are particularly strict, and any deficiency may cause the instrument to malfunction.
[0003] In order to reduce the output of workpieces with unqualified surface machining quality, the current measures include using machining surface quality prediction technology to pre-evaluate the surface machining quality of workpieces so that operators can promptly discover potential problems and adjust the machining parameters accordingly. Among them, the offline prediction method based on image processing and the online prediction method based on multiple sensors are two more common prediction methods, both of which can predict the surface machining quality of workpieces. However, since both methods may lack certain key factors during implementation, the prediction results may be inaccurate. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for predicting the quality of machining surfaces based on multimodal data in view of the deficiencies of the above-mentioned prior art, so as to improve the accuracy of the prediction of the quality of machining surfaces through the analysis of multimodal data.
[0005] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0006] A method for predicting machining surface quality based on multimodal data, comprising:
[0007] S1, obtain the process parameters used for the current workpiece processing from the CNC machine tool;
[0008] S2, acquiring the image of the workpiece processing in real time and processing it using the image processing model to obtain the surface processing quality grade of the workpiece;
[0009] S3, obtaining the cutting force and the acoustic emission signal of the material during workpiece processing and preprocessing them to obtain the characteristics of the cutting force and the acoustic emission signal;
[0010] S4, taking the surface machining quality grade of the workpiece, the characteristics of the cutting force and the acoustic emission signal and the process parameters as input and the corresponding machining surface quality as output, training the random forest model;
[0011] S5. Use the trained random forest model to predict the surface quality of each processing.
[0012] To optimize the above technical solutions, the specific measures taken also include:
[0013] The process parameters obtained by S1 above include spindle speed n, feed per tooth f z , cutting depth a p and cutting width a e .
[0014] The image processing model described in S2 is obtained by training the swin-transformer model using an industrial camera to obtain images of the workpiece surface during processing. The specific process includes the following steps:
[0015] S201, installing an industrial camera on a CNC machine tool, taking b images of the workpiece surface during processing during each workpiece processing, and taking the b images as a surface image group;
[0016] S202, classifying the surface quality of the workpiece into a grades; the worst processing quality is defined as grade 1, and the best processing quality is defined as grade a;
[0017] S203, selecting a large number of surface image groups, and defining the processing quality level corresponding to each group of images, using the image groups and their corresponding processing quality levels as input and output of the swin-transformer model for training, to obtain an image processing model.
[0018] The above S3 specifically includes the following steps:
[0019] S301, installing a force sensor under the workpiece to obtain the cutting force during the workpiece processing; installing an acoustic emission sensor near the workpiece to obtain the acoustic emission signal of the material during the processing;
[0020] S302, intercepting the obtained cutting force and acoustic emission signal;
[0021] S303, performing bandpass filtering on the intercepted data;
[0022] S304, extracting the features of the cutting force and acoustic emission signals after bandpass filtering.
[0023] When the above S302 intercepts the obtained cutting force and acoustic emission signal, the minimum cutting force F in the working stage is selected. min and minimum acoustic emission signal I min As the signal interception threshold, from the first time greater than F min and I min The analysis starts at the point where the data drops beyond the set value and the time from the end of the data is t, which is the cutoff condition. t is the average time consumed in the deburring stage.
[0024] The process of performing bandpass filtering on the intercepted data in S303 is as follows:
[0025] Assuming that the sampling intervals of the force sensor and acoustic emission sensor are λ1 and λ2 respectively, the highest frequency of the data is and Set the low pass frequency of the bandpass filter to f l , the high pass frequency is f h , so the data frequency f(λ) after bandpass filtering is:
[0026]
[0027] Among them, λ is λ1 or λ2.
[0028] The above characteristics of S304 include the mean cutting force F a The mean value of the acoustic emission signal I a , and the variance F of the cutting force and acoustic emission signal σ ,I σ and the root mean square of cutting force and acoustic emission signal F rms ,I rms .
[0029] The above-mentioned S4 specifically includes the following steps:
[0030] The input and output are matched one by one and divided into a group; each group is numbered, with a total of w groups of data; a random interval [w1, w] is set, and v groups of data are randomly selected for training during training. The expression of v is as follows: v = rand (w1 ~ w), and a total of m times are taken, and the results of m times are input into m random forest models for training. Among the m random forest models that have been trained, the result with the largest number of identical test results is taken as the final random forest model.
[0031] The training process of the above single random forest model is:
[0032] 1) Assume that the mth i A random forest model is input with vi sets of data, where vi is a random number between [w1, w], and the input feature matrix X is a k×vi feature matrix. In this model, there are k×vi data, and each data is used as a node to divide the overall data into two sub-datasets X1 and X2, where k is the dimension of the input variable.
[0033] 2) Calculate the information entropy after division into X1 and X2 and the information entropy before division respectively. The formula of information entropy is as follows:
[0034]
[0035] Among them, p i is the probability of processing quality under this group of parameters;
[0036] Then the objective function is to maximize the information gain:
[0037]
[0038] Among them, x n is the parameter type currently used, x nj To divide the nodes;
[0039] Treat all k×vi data as partition nodes, and find the node that satisfies the objective function as the first-level root node T 11 ;
[0040] 3) Use the first-level root node T 11 Split the data into two first-level sub-datasets X 11 , X 12 , for the first-level sub-dataset X after segmentation 11 , X 12 Repeat the root node query and the division of the sub-dataset to obtain X 11 The secondary root node T 21 and the secondary sub-datasets X 12 The secondary root node T 22 and secondary sub-datasets
[0041] 4) Continue to repeat the root node query and sub-dataset division for all secondary sub-datasets in 3), and continue to divide them down according to steps 1)-3) until there are d-level sub-datasets. If the information gain after partitioning is less than G, then The sub-dataset division stops, and other sub-datasets continue to be divided until the information gain of all levels of sub-datasets after division is less than the threshold G, then the mth sub-dataset is completed. i A random forest model was trained.
[0042] The present invention has the following beneficial effects:
[0043] The process parameters used in the current workpiece processing are obtained from the CNC machine tool; the two-dimensional image of the workpiece processing is obtained in real time using an industrial camera in an online monitoring manner; the magnitude of the cutting force during workpiece processing is obtained through a force sensor; the acoustic emission signal of the material during the machine tool processing is obtained through an acoustic emission sensor; multimodal data and its corresponding processing surface quality are used as input and output, and an improved random forest algorithm is used as a training model to obtain the mathematical relationship between each parameter and the processing surface quality, thereby realizing the prediction of the processing surface quality. Based on the processing of multimodal data, the present invention can analyze the factors affecting the quality of the mechanical processing surface from many aspects, thereby improving the accuracy of the prediction.
[0044] By analyzing multimodal data of images, acoustic emission signals and process parameters, the present invention can more comprehensively analyze all factors affecting the surface processing quality of workpieces, and can improve the accuracy of prediction results.
[0045] The present invention aims at the fact that the random forest algorithm does not set a termination condition, which will lead to a long training time when the sample is too large; an improved random forest algorithm is proposed, which sets an information gain threshold as a termination condition, and can improve the training speed and prediction speed of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart of the method for predicting the quality of machining surface of the present invention;
[0047] Figure 2 Schematic diagram for installation of industrial camera and cutting force sensor;
[0048] Figure 3 This is the structural diagram of swin-transformer;
[0049] Figure 4 Flowchart of the prediction algorithm. DETAILED DESCRIPTION
[0050] 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 used to limit the present invention.
[0051] Although the steps in the present invention are arranged with numbers, they are not used to limit the order of the steps. Unless the order of the steps is clearly stated or the execution of a certain step requires other steps as a basis, the relative order of the steps can be adjusted. It is understood that the term "and / or" used in this article involves and covers any and all possible combinations of one or more of the associated listed items.
[0052] Reference Figure 1-Figure 4The present invention provides a method for predicting machining surface quality based on multimodal data, characterized in that the method comprises the following steps:
[0053] S1, obtain the process parameters used for the current workpiece processing from the CNC machine tool;
[0054] S2, acquiring the image of the workpiece processing in real time and processing it using the image processing model to obtain the surface processing quality grade of the workpiece;
[0055] S3, obtaining the cutting force and the acoustic emission signal of the material during workpiece processing and preprocessing them to obtain the characteristics of the cutting force and the acoustic emission signal;
[0056] S4, taking the surface machining quality grade of the workpiece, the characteristics of the cutting force and the acoustic emission signal and the process parameters as input and the corresponding machining surface quality as output, training the random forest model;
[0057] S5. Use the trained random forest model to predict the surface quality of each processing.
[0058] In the embodiment, the data source has three parts: the first part is the process parameter combination obtained directly from the CNC machine tool; the second part is to obtain the surface image of the workpiece during the processing through an industrial camera, use the swin-transformer algorithm to process the image, classify it according to different processing qualities and assign corresponding grades; the third part is to obtain the cutting force and acoustic emission signal during processing from the force sensor and acoustic emission sensor, intercept useless data, filter noise and extract features from the acquired data, and obtain the mean, variance and root mean square of the cutting force and acoustic emission signal. Then measure the surface processing quality of the workpiece under each set of data, use each set of data and the corresponding surface processing quality as input and output, train the prediction model, and finally obtain a multi-modal mechanical processing surface quality prediction model. Each time the workpiece surface is processed, the prediction result can be passed to the operator to guide the operator to adjust the parameters.
[0059] In S1, the workpiece surface processing quality mainly includes surface defects, surface roughness, surface waviness, surface cold work hardening, surface metallographic structure changes, surface residual stress, etc. Since the machine tool cutting process mainly affects the surface defects, surface roughness and surface waviness of the workpiece, the processing surface quality prediction method described in the present invention is mainly used to predict the surface defects, surface roughness and surface waviness of the workpiece.
[0060] Get the current process parameters from the CNC machine tool; including spindle speed n, feed per tooth f z , cutting depth a p and cutting width a eThese parameters can be directly obtained from the operation panel of the CNC machine tool, so this article will not elaborate on them.
[0061] In S2, the images obtained by the industrial camera are used to train the swin-transformer model to obtain an image processing model. For example, an industrial camera is installed on a machine tool to obtain images of the workpiece surface during processing, and the surface processing quality of the current workpiece is measured. After obtaining a large amount of image data and processing quality data of the workpiece processing process, the surface processing quality of the workpiece is graded. For example, workpieces with obvious defects are classified as level 1, and workpieces with the best processing quality are classified as the highest level. After the surface processing quality of all workpieces is divided, the image data is used as input and the processing quality level is used as output to be put into the swin-transformer model for training to obtain an image processing model. The specific process includes the following steps:
[0062] S201, such as Figure 2 As shown, an industrial camera is installed obliquely above the workpiece on the CNC machine tool to obtain images of the workpiece surface during processing. During each workpiece processing process, b images are taken and the b images are taken as a group.
[0063] S202, the surface quality of the workpiece is graded into a levels; the worst quality is defined as level 1, and the best quality is defined as level a. The range of the model output is
[0064] A={1,2,…,a}
[0065] S203, select a large number of surface image groups of workpieces in the CNC machine tool processing process, and define the processing quality level corresponding to each group of images; then use the image group and the processing quality level as the input and output of swin-transformer for training, and obtain a reliable image processing model.
[0066] S2031, assuming that the original pixel of the image is H×W×3, such as Figure 3 As shown in the figure, the image is first passed through a PatchPartition module and flattened in the channel direction using a 4×4 adjacent pixel patch. The dimension of the image then becomes Then, a Linear Embedding layer is used to linearly change the channel data of each pixel, so that the image becomes Where C is the hyperparameter of swin-transformer.
[0067] S2032, input the image processed in step S2021 into a Swin Transformer Block. The Swin Transformer Block is mainly composed of a W-MSA and a SW-MSA connection, which can reduce the amount of calculation of the transformer algorithm and enable information from different windows to interact with each other, thereby improving the accuracy of classification.
[0068] S2033, input the image processed by step S2022 into a Patch Merging layer, and the Patch Merging layer will merge each The adjacent pixels of the image are divided into a patch, and then the pixels at the same position in the patch are spliced together to obtain four feature maps. Then these four feature maps are concat spliced in the depth direction and passed through a LayerNorm layer. Finally, a fully connected layer is used to make a linear change in the depth direction of the feature map, changing the depth of the feature map from C to The image now becomes
[0069] S2034, then input the image processed by step S2023 into a Swin TransformerBlock; then pass through a Patch Merging layer to transform the image into Then it goes through 3 SwinTransformer Blocks; and then goes through a Patch Merging layer to transform the image into Then it passes through a Swin Transformer Block, and finally passes through a Layer Norm layer, a global pooling layer, and a fully connected layer to get the final output.
[0070] In S3, the cutting force and the acoustic emission signal of the material during processing are obtained by the force sensor and the acoustic emission sensor respectively, and the data are analyzed and processed, mainly intercepting, denoising and extracting features of the data; the specific process includes the following steps:
[0071] S301, such as Figure 2 A force sensor is installed under the workpiece to be processed to measure the cutting force during the processing of the workpiece; an acoustic emission sensor is installed near the workpiece to measure the acoustic emission signal of the material during the processing.
[0072] S302: Since there is no-load data before processing, and the deburring step after processing has no effect on the cutting force, it is necessary to intercept the obtained cutting force data and acoustic emission signals.
[0073] In the no-load stage, the cutting force and acoustic emission signal are relatively small, which is significantly different from the working stage. Therefore, the minimum cutting force F in the working stage is selected. min and minimum acoustic emission signal I min As the threshold for signal interception, the first time a signal is greater than F min and I min Start the analysis.
[0074] In the deburring stage, since the time of the whole process is relatively fixed, the average time t consumed in the deburring stage is taken; and the cutting force and acoustic emission signal in the deburring stage are lower than the values in the working stage, so the data shows a significant decline and the time t from the end of the data is taken as the cutoff condition.
[0075] S303. Since the noise in the processing process will affect the accuracy of the data, the intercepted data is subjected to bandpass filtering. Assuming that the sampling intervals of the force sensor and the acoustic emission sensor are λ1 and λ2 respectively, the highest frequency of the data is and Set the low pass frequency of the bandpass filter to f l , the high pass frequency is f h , so the frequency expression f(λ) of the filtered data is:
[0076]
[0077] S304, extracting the features of the processed cutting force and acoustic emission signal, including the cutting force mean F a The mean value of the acoustic emission signal I a , and the variance F of the cutting force and acoustic emission signal σ ,I σ and the root mean square of cutting force and acoustic emission signal F rms ,I rms , as follows:
[0078]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084] Wherein, N is the number of data collected during the processing after processing, i is the sequence number of the data, i=1, 2, ..., N.
[0085] In S4, the above-obtained data (such as Figure 4 As shown, the CNC machine tool, swin-transformer model and sensor-processed data are used as input, and the final surface processing quality is used as output to train the improved random forest prediction model; the specific process includes the following steps:
[0086] (1) The image information of the current workpiece during processing is input into the swin-transformer model of step S203 to obtain the surface processing quality level of the current workpiece; then, each feature of the current force sensor and acoustic emission sensor after processing is obtained through S304.
[0087] (2) Process parameters obtained from CNC machine tools: spindle speed n, feed per tooth f z , cutting depth a p and cutting width a e ; The surface processing quality grade A obtained in step S203, the cutting force mean F obtained in step S304 a The mean value of the acoustic emission signal I a , the variance F of cutting force and acoustic emission signal σ ,I σ and the root mean square of cutting force and acoustic emission signal F rms ,I rms As input, the surface processing quality of the current workpiece is taken as output.
[0088] (3) The above inputs and outputs are matched one by one and divided into a group; each group is numbered, and there are w groups of data in total. Then a random interval [w1, w] is set, where w1≤w. When training, v groups of data are randomly selected for training. The expression of v is as follows:
[0089] v = rand (w1 ~ w)
[0090] A total of m times are taken, and the results of m times are input into m models for training.
[0091] (4) The training process of the model is:
[0092] 1) Assume that the mth i A set of vi data is input into the model, where vi is a random number between [w1, w], then the input feature matrix X is:
[0093]
[0094] In this model, there are 11×vi data, each of which is used as a node, and the overall data is divided into two sub-datasets X1 and X2. Taking the speed n as an example, assuming that n is selected j As nodes, the data set is divided into:
[0095] X1={n l |n i ≤n j ,i∈[1,vi]}
[0096] X2={n h |n i >n j ,i∈[1,vi]}
[0097] Where i is the row number of the overall data, then the current number is n j The two sub-datasets X1 and X2 obtained as nodes are:
[0098]
[0099]
[0100] Among them, l1, l2, …, lk and h1, h2, …h (vi-k) are the row numbers of the newly divided data sets.
[0101] 2) Calculate the information entropy after division into X1 and X2 and the information entropy before division. If the information entropy is larger, it means that the degree of information confusion is higher. The formula of information entropy is as follows:
[0102]
[0103] Among them, p i is the probability of processing quality under this set of parameters. Subtracting the information entropy before and after the division can obtain the information gain formula; the greater the information gain, the better the segmentation process. In order to maximize the information gain, the objective function should be:
[0104]
[0105] Among them, x n is the parameter type currently used, x nj Then repeat the above steps until all 11×vi data are used as partition nodes, and find the node with the largest information gain as the first-level root node T 11 .
[0106] 3) When two sub-datasets are close, the information gain will be small. At the same time, the surface processing quality that is close can be classified into one category. Therefore, in order to improve the running speed of the model, an information gain threshold G is set. Use the first-level root node T 11 Split the data into two first-level sub-datasets X 11 , X 12 , in the first-level sub-dataset X after segmentation 11 , X 12 Repeat the root node query and the division of the sub-dataset to obtain X 11 The secondary root node T 21 and secondary sub-datasets X 12 The secondary root node T 22 and secondary sub-datasets The first number in the subscript is the level of the subdataset, the second number in the subscript is the subdataset sequence number, and the superscript is the sequence number of the upper subdataset.
[0107] 4) Continue to repeat the root node query and sub-dataset division for all secondary sub-datasets in step 3), and continue to divide according to the method of steps 1)-3) until there are d-level sub-datasets If the information gain after partitioning is less than G, then the sub-dataset Stop the division and continue to divide other sub-datasets until the information gain of all levels of sub-datasets after division is less than the threshold G, and the model training is completed.
[0108] (5) Input the parameters corresponding to the workpiece to be predicted into the m trained models, and take the result with the largest number of identical test results as the final output.
[0109] In S5, the surface processing quality is predicted each time processing is performed, and the prediction results are transmitted to the CNC machine tool control panel to guide the operator to make adjustments. The operator can adjust the parameters used according to the prediction results.
[0110] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
[0111] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A method for predicting machining surface quality based on multimodal data, characterized in that: include: S1, obtain the process parameters used for the current workpiece processing from the CNC machine tool; S2, acquiring the image of the workpiece processing in real time and processing it using the image processing model to obtain the surface processing quality grade of the workpiece; S3, obtaining the cutting force and the acoustic emission signal of the material during workpiece processing and preprocessing them to obtain the characteristics of the cutting force and the acoustic emission signal; S4, taking the surface machining quality grade of the workpiece, the characteristics of the cutting force and the acoustic emission signal and the process parameters as input and the corresponding machining surface quality as output, training the random forest model; S5. Use the trained random forest model to predict the surface quality of each processing.
2. The method for predicting machining surface quality based on multimodal data according to claim 1, characterized in that: The process parameters obtained by S1 include spindle speed n, feed per tooth f z , cutting depth a p and cutting width a e .
3. The method for predicting machining surface quality based on multimodal data according to claim 1, characterized in that: S2 The image processing model is obtained by using an industrial camera to obtain images of the workpiece surface during processing to train the swin-transformer model. The specific process includes the following steps: S201, installing an industrial camera on a CNC machine tool, taking b images of the workpiece surface during processing during each workpiece processing, and taking the b images as a surface image group; S202, classifying the surface quality of the workpiece into a grades; the worst processing quality is defined as grade 1, and the best processing quality is defined as grade a; S203, selecting a large number of surface image groups, and defining the processing quality level corresponding to each group of images, using the image groups and their corresponding processing quality levels as input and output of the swin-transformer model for training, to obtain an image processing model.
4. The method for predicting machining surface quality based on multimodal data according to claim 1, characterized in that: The S3 specifically includes the following steps: S301, installing a force sensor under the workpiece to obtain the cutting force during the workpiece processing; installing an acoustic emission sensor near the workpiece to obtain the acoustic emission signal of the material during the processing; S302, intercepting the obtained cutting force and acoustic emission signal; S303, performing bandpass filtering on the intercepted data; S304, extracting the features of the cutting force and acoustic emission signals after bandpass filtering.
5. The method for predicting machining surface quality based on multimodal data according to claim 4, characterized in that: When S302 intercepts the obtained cutting force and acoustic emission signal, the minimum cutting force F in the working stage is selected. min and minimum acoustic emission signal I min As the signal interception threshold, from the first time greater than F min and I min The analysis starts at the point where the data drops beyond the set value and the time from the end of the data is t, which is the cutoff condition. t is the average time consumed in the deburring stage.
6. The method for predicting machining surface quality based on multimodal data according to claim 4, characterized in that: The process of performing bandpass filtering on the intercepted data in S303 is as follows: Assuming that the sampling intervals of the force sensor and acoustic emission sensor are λ1 and λ2 respectively, the highest frequency of the data is and Set the low pass frequency of the bandpass filter to f l , the high pass frequency is f h , so the data frequency f(λ) after bandpass filtering is: Among them, λ is λ1 or λ2.
7. The method for predicting machining surface quality based on multimodal data according to claim 4, characterized in that: The characteristics of S304 include the mean cutting force F a The mean value of the acoustic emission signal I a , and the variance F of the cutting force and acoustic emission signal σ ,I σ and the root mean square of cutting force and acoustic emission signal F rms ,I rms .
8. The method for predicting machining surface quality based on multimodal data according to claim 1, characterized in that: The S4 specifically comprises the following steps: The input and output are matched one by one and divided into a group; each group is numbered, with a total of w groups of data; a random interval [w1, w] is set, and v groups of data are randomly selected for training during training. The expression of v is as follows: v = rand (w1 ~ w), and a total of m times are taken, and the results of m times are input into m random forest models for training. Among the m random forest models that have been trained, the result with the largest number of identical test results is taken as the final random forest model.
9. The method for predicting machining surface quality based on multimodal data according to claim 8, characterized in that: The training process of a single random forest model is: 1) Assume that the mth i A random forest model is input with vi sets of data, where vi is a random number between [w1, w], and the input feature matrix X is a k×vi feature matrix. In this model, there are k×vi data, and each data is used as a node to divide the overall data into two sub-datasets X1 and X2, where k is the dimension of the input variable. 2) Calculate the information entropy after division into X1 and X2 and the information entropy before division respectively. The formula of information entropy is as follows: Among them, p i is the probability of processing quality under this group of parameters; Then the objective function is to maximize the information gain: Among them, x n is the parameter type currently used, x nj To divide the nodes; Treat all k×vi data as partition nodes, and find the node that satisfies the objective function as the first-level root node T 11 ; 3) Use the first-level root node T 11 Split the data into two first-level sub-datasets X 11 , X 12 , for the first-level sub-dataset X after segmentation 11 , X 12 Repeat the root node query and the division of the sub-dataset to obtain X 11 The secondary root node T 21 and secondary sub-datasets X 12 The secondary root node T 22 and secondary sub-datasets 4) Continue to repeat the root node query and sub-dataset division for all secondary sub-datasets in 3), and continue to divide according to steps 1)-3) until there are d-level sub-datasets If the information gain after partitioning is less than G, then The sub-dataset division stops, and other sub-datasets continue to be divided until the information gain of all levels of sub-datasets after division is less than the threshold G, then the mth sub-dataset is completed. i A random forest model was trained.
Citation Information
Patent Citations
Surface roughness monitoring model based on data mining and construction method
CN109753632A
Precision prediction method and system for machining size of high-frequency element
CN112528955A
Numerical control milling multi-working-condition surface roughness online prediction method based on SSAE
CN116415191A
Multi-working-condition multi-source data tool wear prediction method
CN116619136A
Method and system for generating roughness prediction model based on adversarial transfer learning
CN116824338A
Cited By
Surface quality real-time monitoring and classifying system
CN120363024A
