A workpiece surface roughness prediction method and device adaptive to working conditions and a medium

By using an adaptive fusion method of process parameters and vibration signals, the problems of vibration signals being easily interfered with under multiple working conditions and simple splicing of process parameters are solved, achieving high-precision surface roughness prediction and meeting the online quality monitoring needs of intelligent manufacturing.

CN123128618APending Publication Date: 2026-11-20HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611299788.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In high-end equipment manufacturing, existing technologies exhibit strong dynamic sensitivity to the mapping relationship between vibration signals and surface roughness under various working conditions. This makes vibration signals susceptible to interference, and the simple splicing of process parameters leads to decreased prediction accuracy and insufficient generalization ability.

Method used

By collecting process parameters and initial vibration signals for preprocessing, dynamic feature vectors are extracted, and process parameters are mapped to static operating condition embedding characterization data to generate modulation coefficients and bias coefficients. The dynamic feature vectors are then conditionally corrected, and finally, the surface roughness is predicted by combining time-series features.

Benefits of technology

It achieves adaptive fusion of vibration dynamic characteristics and static parameters of working conditions, improving the accuracy and robustness of surface roughness prediction under multiple working conditions, and meeting the needs of online quality monitoring in intelligent manufacturing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123128618A_ABST
    Figure CN123128618A_ABST
Patent Text Reader

Abstract

The application provides a workpiece surface roughness prediction method and device adaptive to working conditions, and a medium, and relates to the technical field of workpiece roughness prediction, and comprises the following steps: collecting process parameters and initial vibration signals, preprocessing, and extracting a prediction unit feature sequence; mapping the process parameters to static working condition embedded representation data, generating modulation coefficients and bias coefficients based on the static working condition embedded representation data, and then conditioning and correcting a dynamic feature vector by using the modulation coefficients and the bias coefficients to obtain a corrected dynamic feature vector; and finally, combining the prediction unit feature sequence and the corrected dynamic feature vector to predict the surface roughness. Thus, the application realizes adaptive fusion of vibration dynamic features and working condition static parameters, suppresses interference components in the vibration signal and highlights sensitive features related to the working condition, improves the accuracy and robustness of surface roughness prediction under multi-working condition and variable parameter machining conditions, and enhances the generalization ability of the model to unknown working conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention generally relates to the field of workpiece roughness prediction technology, and specifically to a workpiece surface roughness prediction method, equipment and medium that are adaptive to working conditions. Background Technology

[0002] In the field of high-end equipment manufacturing, surface roughness is a crucial indicator for measuring the processing quality of parts, directly affecting their fatigue life, assembly accuracy, and reliability. Traditional offline inspection methods are inefficient and suffer from feedback lag, making it difficult to meet the needs of online quality monitoring in intelligent manufacturing scenarios. Utilizing triaxial vibration signals for soft surface roughness measurement has become an important direction, but in actual multi-condition machining environments, this method faces a core challenge: The mapping relationship between vibration signals and surface roughness is highly sensitive to dynamic operating conditions. On the one hand, vibration signals are easily affected by machine tool structure vibration, environmental noise, and local impact interference, which can mask effective cutting features. On the other hand, surface roughness depends not only on the dynamic response of vibration, but also on the comprehensive control of static process parameters such as spindle speed, feed rate, depth of cut, and machining area.

[0003] Under different operating conditions, even the same vibration amplitude characteristics can correspond to drastically different roughness results. Existing methods either rely solely on vibration signals while ignoring differences in operating conditions, or simply concatenate process parameters with vibration characteristics, resulting in a significant decrease in prediction accuracy and insufficient generalization ability under multiple operating conditions. Summary of the Invention

[0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a working condition adaptive workpiece surface roughness prediction method that can dynamically adjust the vibration characteristic expression according to the processing conditions, thereby improving the accuracy and generalization ability of surface roughness prediction under multiple working conditions.

[0005] This invention provides a working condition adaptive method, device, and medium for predicting workpiece surface roughness.

[0006] The first aspect, the methods, includes: S1: Collect the process parameters and initial vibration signal during workpiece processing, and preprocess the initial vibration signal to obtain the second vibration signal; S2: Extract multiple dynamic feature vectors and the time-series features satisfied by the multiple dynamic feature vectors based on the second vibration signal; S3: Map the process parameters into static operating condition embedded characterization data; S4: Generate modulation coefficients and bias coefficients based on the static operating condition embedded characterization data; S5: Conditionally modify the dynamic feature vector using the modulation coefficient and bias coefficient to obtain the modified dynamic feature vector; S6: Obtain the surface roughness of the workpiece based on the time sequence characteristics and the modified dynamic feature vector.

[0007] According to the technical solution provided by the present invention, the initial vibration signal is preprocessed to obtain a second vibration signal, including: S1-1: Remove the sampling points in the initial vibration signal that meet the invalid acquisition conditions to obtain the first vibration signal; S1-2: Extract the effective sampling length of the first vibration signal; S1-3: If the effective sampling length reaches the effective sequence length threshold, the first vibration signal is denoised to obtain the second vibration signal.

[0008] According to the technical solution provided by the present invention, the first vibration signal is sequentially subjected to convolutional encoding, learnable soft threshold sparse shrinkage, convolutional decoding and residual update to complete the denoising process and obtain the second vibration signal.

[0009] According to the technical solution provided by the present invention, S2: extracting multiple dynamic feature vectors and temporal features satisfied by the multiple dynamic feature vectors based on the second vibration signal, including: S2-1: Divide the second vibration signal into windows, and extract time-domain and frequency-domain features for each window; S2-2: Concatenate the time-domain features and frequency-domain features of a window into a dynamic feature vector; S2-3: Sort the dynamic feature vectors according to the window division order to obtain the temporal features satisfied by multiple dynamic feature vectors.

[0010] According to the technical solution provided by the present invention, S3: mapping the process parameters into static operating condition embedded characterization data includes: S3-1: Divide the process parameters into discrete parameters and continuous parameters; S3-2: Convert the discrete parameters into region category codes; normalize the continuous parameters to obtain normalized continuous parameters; S3-3: Combine the region category code with the normalized continuous parameter to form a process static parameter vector; S3-4: Map the process static parameter vector to static operating condition embedded characterization data.

[0011] According to the technical solution provided by the present invention, S3-4: mapping the process static parameter vector into static operating condition embedded characterization data includes: S3-4-1: Perform feature mapping on the process static parameter vector to obtain the mapped process features; S3-4-2: Perform nonlinear activation on the mapping process features and normalize them to obtain static operating condition embedding characterization data.

[0012] According to the technical solution provided by the present invention, S5: Conditional correction is performed on the dynamic feature vector using the modulation coefficient and the bias coefficient to obtain a corrected dynamic feature vector, including: S5-1: Perform dimension-wise weighting on the dynamic feature vector to obtain a weighted dynamic feature vector; S5-2: Scale the weighted dynamic feature vector dimensionally using the modulation coefficients to obtain the vibration dynamic features; S5-3: The vibration dynamic characteristics are translated and compensated using the bias coefficient to obtain the corrected dynamic characteristic vector.

[0013] According to the technical solution provided by the present invention, S6: obtaining the surface roughness of the workpiece based on the time sequence characteristics and the modified dynamic feature vector includes: S6-1: Based on the temporal characteristics, attention aggregation is performed on multiple modified dynamic feature vectors to obtain the initial value of surface roughness; S6-2: Statistically fuse multiple initial surface roughness values ​​to obtain the surface roughness.

[0014] Secondly, this application provides a computing device, including a memory and a processor; The memory stores one or more computer programs, the one or more computer programs including instructions; when the instructions are executed by the processor, the computing device performs the method as described in any one of the first aspects.

[0015] Thirdly, this application provides a computer-readable storage medium for storing a computer program for performing the method as described in any one of the first aspects.

[0016] The beneficial effects of this invention are as follows: To address the technical problems in existing technologies, such as the strong dynamic sensitivity of the mapping relationship between vibration signals and surface roughness, the susceptibility of effective cutting features to interference, and the fact that surface roughness is comprehensively controlled by static process parameters such as spindle speed, feed rate, depth of cut, and machining area, leading to a significant decrease in prediction accuracy and insufficient generalization ability under multiple operating conditions when relying solely on vibration signals or simply piecing together process parameters, this invention collects process parameters and initial vibration signals and preprocesses them to extract the feature sequence of prediction units to retain dynamic response information. Simultaneously, the process parameters are mapped to static condition embedding representation data, and modulation coefficients and bias coefficients are generated accordingly. The static condition embedding representation data is then conditionally corrected to obtain a corrected dynamic feature vector. Finally, the surface roughness is predicted by combining the prediction unit feature sequence and the corrected dynamic feature vector. Therefore, this invention achieves adaptive fusion of vibration dynamic features and static parameters of working conditions. Through modulation and bias correction, the model can dynamically adjust the feature expression according to different working conditions, suppress interference components in vibration signals and highlight sensitive features related to working conditions, thereby improving the accuracy and robustness of surface roughness prediction under multi-working conditions and variable parameter processing conditions. At the same time, it enhances the model's generalization ability to unknown working conditions and meets the practical needs of online quality monitoring in intelligent manufacturing. Attached Figure Description

[0017] Other features, objects, and advantages of the invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a flowchart illustrating a working condition-adaptive method for predicting workpiece surface roughness.

[0018] Figure 2 This is a schematic diagram of a computing device. Detailed Implementation

[0019] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.

[0020] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0021] In this embodiment, all steps are completed by a computer system to obtain the surface roughness of the workpiece. The computer system includes various modules: A multi-source data acquisition module is used to acquire machining samples; the machining samples include initial vibration signals of three mutually orthogonal coordinate axes (X-axis, Y-axis, Z-axis) and process parameters for machining the workpiece; the process parameters include spindle speed, feed rate, depth of cut and machining area.

[0022] A data preprocessing module is used to construct valid processing samples. This module removes invalid sampling points from the initial vibration signal to obtain the first vibration signal, and then performs effective length verification to obtain the second vibration signal. The second vibration signal is combined with process parameters to form a valid processing sample.

[0023] The ML-CDL signal denoising module is used to reduce noise interference in vibration signals. The module performs full-signal-level denoising on the first vibration signal through convolutional coding, learnable soft-threshold sparse shrinkage, convolutional decoding, and residual update.

[0024] A dynamic signal feature extraction module is used to construct a dynamic feature sequence of vibration. This module divides the denoised second vibration signal into sliding windows and extracts time-domain and frequency-domain features for each window. The time-domain and frequency-domain features are concatenated to form a dynamic feature vector of vibration. The dynamic feature vectors of one or more consecutive windows form a feature sequence of the prediction unit.

[0025] A process static parameter encoding module is used to construct a process static parameter characterization; this module converts spindle speed, feed rate, depth of cut and machining area into process static parameter vectors and maps them to static condition embedding characterization data.

[0026] This module is used to fuse vibration dynamic features with process static parameters. It includes a feature attention gating unit and a FiLM conditional modulation unit. The feature attention gating unit is used to perform dimension-wise weighting and scaling on the dynamic feature vector to obtain the vibration dynamic features. The FiLM conditional modulation unit is used to generate modulation coefficients and bias coefficients based on the static condition embedded characterization data, and to conditionally correct the vibration dynamic features to obtain the corrected dynamic feature vector.

[0027] A temporal attention prediction module is used to establish the temporal relationship between consecutive windows and output the roughness prediction value. This module includes a bidirectional cyclic temporal modeling unit and a static conditional cross-attention unit. The bidirectional cyclic temporal modeling unit is used to extract the forward and backward temporal features between consecutive windows within the prediction unit. The static conditional cross-attention unit uses the modified dynamic feature vector as a query, performs condition-guided attention aggregation on the modified dynamic feature vector, and outputs the initial value of surface roughness.

[0028] The prediction post-processing module is used to generate the final prediction result; this module performs statistical fusion on the initial surface roughness values ​​of the same processed sample to obtain the surface roughness.

[0029] refer to Figure 1 This invention provides a working condition adaptive method for predicting workpiece surface roughness, comprising: S1: Collect the process parameters and initial vibration signal during workpiece processing, and preprocess the initial vibration signal to obtain a second vibration signal, including: S1-1: Remove the sampling points in the initial vibration signal that meet the invalid acquisition conditions to obtain the first vibration signal; For an initial vibration signal x along any axis, it is expressed as:

[0030] in, Let T represent the set of real numbers, and let T represent the sampling length of the initial vibration signal in the upward direction of the axis.

[0031] Specifically, invalid sampling conditions are: a certain data in the initial vibration signal is a null value, a non-numeric character, data that cannot be converted into a numerical value, an infinite value, or other abnormal values.

[0032] The data preprocessing module reads the process parameters and initial vibration signals contained in the processing sample, and uses the initial vibration signals as the raw input sequence. Then, it performs numerical conversion and validity checks on the values ​​of the initial vibration signals corresponding to each sampling time. For any sampling time, if any axial data in the X, Y, or Z axis meets the invalid acquisition conditions (i.e., there are null values, non-numeric characters, data that cannot be converted to numerical values, infinite values, or other abnormal values), then that sampling time is determined to be an invalid sampling point, and the corresponding X, Y, and Z axis data are completely discarded.

[0033] This invention does not delete abnormal data in a single axis, but rather uses the overall validity of the three-axis data at the same sampling time as the criterion for complete row removal. This method maintains the time synchronization of the three-axis vibration signals while cleaning abnormal sampling points, avoiding misalignment of the three-axis signals caused by the deletion of single-axis data. After removal, the data preprocessing module re-obtains the first vibration signal and retains its sampling timing relationship, which serves as input for subsequent effective length verification and signal denoising modules.

[0034] S1-2: Extract the effective sampling length of the first vibration signal; S1-3: If the effective sampling length does not reach the effective sequence length threshold, it is determined to be an invalid sample and no subsequent steps are performed; If the effective sampling length reaches the effective sequence length threshold, the first vibration signal is denoised to obtain the second vibration signal.

[0035] After removing invalid sampling points, the data preprocessing module counts the number of remaining valid sampling points for the current processed sample and uses this number as the effective sampling length of the first vibration signal. Subsequently, based on the preset sampling frequency, preset effective sampling duration, and the minimum window length required for subsequent sliding window division, the effective sequence length threshold that each processed sample should meet is determined.

[0036] For example, the effective sequence length threshold is set to 256 to 2048.

[0037] If the effective sampling length of the first vibration signal is less than the effective sequence length threshold, it means that the processing sample corresponding to the first vibration signal cannot form a complete sliding window or prediction unit. Therefore, the processing sample is determined to be an invalid sample and will not proceed to the subsequent steps. The reason for its removal is recorded.

[0038] If the effective sampling length of the first vibration signal is greater than or equal to the effective sequence length threshold, then the processed sample is retained to form a record of the effective processed sample.

[0039] Furthermore, the first vibration signal is sequentially subjected to convolutional encoding, learnable soft-threshold sparse contraction, convolutional decoding, and residual update to complete the denoising process and obtain the second vibration signal.

[0040] The convolutional coding process is used to map the original one-dimensional first vibration signal to a high-dimensional latent feature space. For the first vibration signal along any axis, let the input signal before the k-th unrolling update be denoted as . First, local temporal features in the first vibration signal are extracted using a first-layer one-dimensional convolutional encoder to obtain the first-layer hidden features. Subsequently, the first layer of features, after sparse shrinkage, is fed into the second layer of the convolutional encoder to obtain deeper hidden features. .

[0041] This process can extract local impact, periodic fluctuation and short-term change features from vibration signals, providing a feature expression basis for subsequent noise suppression.

[0042] It can be expressed by the following formula:

[0043]

[0044] in, and These represent the first and second layer convolutional encoding operations, respectively. This represents the result of sparse shrinkage of the first layer of features.

[0045] Learnable soft-threshold sparse contraction: The learnable soft-threshold sparse contraction process is used to suppress weak noise responses in latent features while preserving effective vibrational features with larger amplitudes. For features obtained through convolutional encoding... Set the learnable threshold parameter And sparsification is performed using a soft threshold function.

[0046] When the feature amplitude is less than the threshold, the feature is compressed to zero or close to zero; when the feature amplitude is greater than the threshold, the portion exceeding the threshold is retained. In this way, the model can adaptively suppress environmental noise, machine tool background vibration, and transient abnormal disturbances.

[0047]

[0048] The sparse contraction of the first and second layers can be written as follows:

[0049]

[0050] in, This represents a soft-threshold sparse contraction function. and This represents the learnable threshold parameter for the corresponding layer. This represents element-wise operations. When the amplitude of a certain latent feature is less than a threshold, the feature is compressed to zero or close to zero; when its amplitude is greater than the threshold, only the portion exceeding the threshold is retained. In this way, the model can adaptively suppress weak responses corresponding to environmental noise, machine tool background vibration, and instantaneous abnormal disturbances, while retaining effective vibration features related to the cutting state.

[0051] Convolutional Decoding: The convolutional decoding process is used to remap the sparsed deep latent features back to the original temporal domain. Specifically, it maps the second layer of sparse features... The input signal is fed into a convolutional decoder, which, through decoding operations, obtains a noise perturbation estimate with the same length as the original vibration signal. In this invention, the convolutional decoder does not directly output the final denoised signal, but is instead used to estimate the noise components in the current input signal that need to be attenuated.

[0052]

[0053] in, This represents the global convolutional decoder. Indicates the first The noise perturbation components estimated in the next unfold update.

[0054] Residual update process: The residual update process is used to subtract the estimated noise disturbance component from the current input signal to obtain the updated denoised signal. Specifically, the 1st... Input signal before the second expansion Noise estimation term from the output of the convolutional decoder Subtracting, we get the first Signal after the next update :

[0055] After multiple updates, the denoised vibration signal was finally obtained:

[0056] in, Indicates the number of times updates have been expanded. This represents the second vibration signal after final noise reduction.

[0057] S2: Extract multiple dynamic feature vectors and the temporal features satisfied by the multiple dynamic feature vectors based on the second vibration signal, including: S2-1: Divide the second vibration signal into windows, and extract time-domain and frequency-domain features for each window; Window length is typically between 256 and 2048 sampling points. The process of extracting time-domain and frequency-domain features is as follows: The time-domain features include: root mean square value, peak value, kurtosis, and peak factor. The frequency-domain feature extraction process involves: first, performing a Fourier transform on the window signal to obtain its spectrum; then calculating the spectral centroid, energy spectrum of each frequency band, principal axis rotation frequency, and amplitude characteristics at second and third harmonics. The specific calculation methods for the time-domain and frequency-domain features are existing technologies and will not be elaborated upon.

[0058] S2-2: Concatenate the time-domain features and frequency-domain features of a window into a dynamic feature vector; The stitching process involves concatenating the extracted time-domain features and frequency-domain features from the X, Y, and Z axes sequentially to form the original dynamic feature vector of the window. For example, if m time-domain features and n frequency-domain features are extracted from each axis, the vector dimension of a single window after stitching the three axes will be 3(m+n).

[0059] S2-3: Sort the dynamic feature vectors according to the window division order to obtain the temporal features satisfied by multiple dynamic feature vectors.

[0060] The feature sequence of the prediction unit is represented as follows:

[0061] in This represents the vibration dynamic characteristic sequence of the i-th processed sample. Let represent the time-frequency feature vector of the t-th window in the i-th processing sample. This indicates the number of windows corresponding to the processed sample.

[0062] S3: Mapping the process parameters into static operating condition embedded characterization data, including: S3-1: Divide the process parameters into discrete parameters and continuous parameters; The spindle speed, feed rate, and depth of cut are continuous process parameters, while the machining area is a discrete process parameter.

[0063] S3-2: Convert the discrete parameters into region category codes; normalize the continuous parameters to obtain normalized continuous parameters; In this embodiment, the processing area is converted into a region category code using a one-hot encoding method.

[0064] Normalizing continuous parameters can convert process parameters with different dimensions and numerical ranges to a relatively consistent numerical scale, thus avoiding the excessive influence of a certain parameter on the model due to its large numerical range.

[0065] In this embodiment, each processing area is marked with a region category code; therefore, discrete parameters are converted into their corresponding region category codes to represent the processing area to which they belong.

[0066] S3-3: Combine the region category code with the normalized continuous parameters to form a process static parameter vector, which is used to uniformly represent the working conditions of the current processing sample.

[0067] The process static parameter vector s is represented as:

[0068] in , , These represent the standardized spindle speed, feed rate, and depth of cut, respectively. , , This indicates the unique thermal encoding of the processing area.

[0069] S3-4: Mapping the process static parameter vector into static operating condition embedded characterization data, including: S3-4-1: Perform feature mapping on the process static parameter vector to obtain the mapped process features; Specifically, let the dimension of the process static parameter vector s be d. s The feature mapping module maps it to d eThe process can be represented as: a latent feature space of dimension . h expand =W e ×s+b e Among them, W e Let b be the weight matrix. e For d e The bias vector, h expand This refers to the mapping process characteristics. In this embodiment, d s =6, d e =128.

[0070] This process transforms raw operating condition information such as spindle speed, feed rate, depth of cut, and machining area into higher-dimensional operating condition characteristics.

[0071] S3-4-2: Perform nonlinear activation on the mapping process features and normalize them to obtain static operating condition embedding characterization data.

[0072] In this embodiment, the process of performing nonlinear activation on the mapping process features includes: inputting the mapping process features into an activation function to complete the nonlinear activation. In this embodiment, the activation function used is ReLU.

[0073] The process static parameter vector s is mapped to static operating condition embedded representation data via a static parameter encoding network:

[0074] in This represents a static parameter encoding network. This represents static operating condition embedded characterization data. This static operating condition embedded characterization data is used to describe the operating conditions of the currently processed sample.

[0075] Nonlinear activation enables the static parameter encoding network to express the combined influence relationship between different process parameters; finally, the transformed features are normalized to maintain a stable numerical distribution of the static operating condition features of different processing samples.

[0076] Through the above mapping process, process parameters with different numerical ranges and types are transformed into static operating condition features in a unified form. This static operating condition embedded representation data can reflect the comprehensive operating condition state of the current processing sample and serve as the condition input for the subsequent multi-operating condition fusion module. It guides the model to determine which vibration dynamic features are more important under the current operating condition and how to adjust the expression weights of the vibration dynamic features.

[0077] S4: Generate modulation coefficients and bias coefficients based on the static operating condition embedded characterization data; Among them, the modulation coefficient is used to control the importance of each feature dimension in the vibration dynamic features, and the bias coefficient is used to compensate and correct the overall expression position of the vibration dynamic features.

[0078] The modulation coefficients and bias coefficients are generated using the FiLM conditional modulation unit based on the embedded characterization data of the static operating condition:

[0079] Where γ and β represent the modulation coefficient and bias coefficient, respectively. This indicates the FiLM parameter generation network.

[0080] S5: Conditionally modify the dynamic feature vector using the modulation coefficient and bias coefficient to obtain a modified dynamic feature vector, including: S5-1: Perform dimension-wise weighting on the dynamic feature vector to obtain a weighted dynamic feature vector; For the dynamic feature vector of the t-th window Feature attention weights are generated using a feature attention gating unit. :

[0081] And perform dimension-wise weighting on the dynamic feature vector:

[0082] in, Represents the feature attention weights. This represents the Sigmoid activation function. and Indicates learnable parameters, This represents element-wise multiplication. This is a weighted dynamic feature vector.

[0083] Through this process, the model can enhance key vibration features related to the current processing state and suppress redundant or noise features.

[0084] S5-2: Scale the weighted dynamic feature vector dimensionally using the modulation coefficients to obtain the vibration dynamic features; S5-3: The vibration dynamic characteristics are translated and compensated using the bias coefficient to obtain the corrected dynamic characteristic vector.

[0085] The conditional modification of the weighted dynamic eigenvector is expressed as follows:

[0086] in, This indicates a modified dynamic feature vector. Instead of simply concatenating vibration features with process parameters, this method utilizes static process parameters to modulate and fuse the dynamic vibration features under specific operating conditions, thereby improving the adaptability and accuracy of surface roughness prediction across multiple operating scenarios.

[0087] In this step, the vibration dynamic features are scaled dimension-by-dimensionally using modulation coefficients: for vibration features that better reflect changes in surface roughness under the current working conditions, a larger modulation effect is applied to enhance their expression; for features that are less correlated with the current working conditions or are easily affected by noise, a smaller modulation effect is applied to suppress their expression. After scaling, the bias coefficients are used to compensate for the translation of each dimension of the features, so that the corrected vibration dynamic features can better fit the current processing conditions.

[0088] S6: Obtain the surface roughness of the workpiece based on the time-series features and the corrected dynamic feature vector, including: S6-1: Based on the temporal characteristics, attention aggregation is performed on multiple modified dynamic feature vectors to obtain the initial value of surface roughness; S6-2: Statistically fuse multiple initial surface roughness values ​​to obtain the surface roughness.

[0089] The initial value of surface roughness is expressed as:

[0090] in, This represents the initial surface roughness value corresponding to the j-th window sequence in the i-th processing sample. This represents the feature sequence of the prediction unit for the j-th window sequence. This represents the static working condition embedding representation corresponding to the i-th processing sample. This represents the trained temporal attention prediction model.

[0091] The static condition cross-attention unit uses the static condition embedding representation as the query information, and the prediction unit feature sequence as the query object. The static condition embedding representation represents the working conditions of the current machining sample, such as the comprehensive state of spindle speed, feed rate, depth of cut, and machining area.

[0092] By calculating the correlation between the static working condition embedded representation data and the modified dynamic feature vectors of each window, the importance weight of each window under the current working condition is obtained.

[0093] Subsequently, based on the obtained importance weights, the modified dynamic feature vectors of each window are weighted and aggregated. Windows that are more closely related to the surface roughness changes under the current working conditions are assigned higher weights, making them account for a larger proportion in the aggregation results; windows that are less related to the current working conditions, more affected by local disturbances, or contribute less to the prediction are assigned lower weights, thereby reducing their impact on the final prediction results.

[0094] The prediction post-processing module uses an average fusion method to statistically summarize the initial surface roughness values, that is, to average all the initial surface roughness values ​​under the same valid processing sample to obtain the surface roughness corresponding to that processing sample.

[0095] This invention also provides a computing device in which one or more computer programs are stored in the memory, the one or more computer programs including instructions; when the instructions are executed by the processor, the computing device performs the method described in any of the above embodiments.

[0096] like Figure 2 As shown in the figure, this is a schematic diagram of a computing device provided in an embodiment of the present invention. The computing device 400 includes a bus 401, a processor 402, a communication interface 403, and a memory 404. The processor 402, the memory 404, and the communication interface 403 communicate with each other via the bus 401.

[0097] Bus 401 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 2 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0098] Processor 402 can be any one or more of the following processors: central processing unit (CPU), graphics processing unit (GPU), microprocessor (MP), or digital signal processor (DSP).

[0099] Communication interface 403 is used for communication with external devices.

[0100] Memory 404 may include volatile memory, such as random access memory (RAM). Memory 404 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0101] The memory 404 stores executable code, and the processor 402 executes the executable code to perform the steps of the aforementioned method.

[0102] This invention also provides a computer-readable storage medium for storing a computer program that performs the method described in any of the above embodiments.

[0103] The computer-readable storage medium can be any available medium that a computing device can store, or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to perform the steps of the method described above.

[0104] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention is not limited to the specific combination of the above-described technical features, but also includes other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in this invention.

Claims

1. A working condition adaptive method for predicting workpiece surface roughness, characterized in that, include: S1: Collect the process parameters and initial vibration signal during workpiece processing, and preprocess the initial vibration signal to obtain the second vibration signal; S2: Extract multiple dynamic feature vectors and the time-series features satisfied by the multiple dynamic feature vectors based on the second vibration signal; S3: Map the process parameters into static operating condition embedded characterization data; S4: Generate modulation coefficients and bias coefficients based on the static operating condition embedded characterization data; S5: Conditionally modify the dynamic feature vector using the modulation coefficient and bias coefficient to obtain the modified dynamic feature vector; S6: Obtain the surface roughness of the workpiece based on the time sequence characteristics and the modified dynamic feature vector.

2. The workpiece surface roughness prediction method with adaptive working conditions according to claim 1, characterized in that, The initial vibration signal is preprocessed to obtain a second vibration signal, including: S1-1: Remove the sampling points in the initial vibration signal that meet the invalid acquisition conditions to obtain the first vibration signal; S1-2: Extract the effective sampling length of the first vibration signal; S1-3: If the effective sampling length reaches the effective sequence length threshold, the first vibration signal is denoised to obtain the second vibration signal.

3. The adaptive workpiece surface roughness prediction method according to claim 2, characterized in that, The first vibration signal is sequentially subjected to convolutional encoding, learnable soft-threshold sparse shrinkage, convolutional decoding, and residual update to complete the denoising process and obtain the second vibration signal.

4. The workpiece surface roughness prediction method with adaptive working conditions according to claim 1, characterized in that, S2: Extract multiple dynamic feature vectors and temporal features satisfied by the multiple dynamic feature vectors based on the second vibration signal, including: S2-1: Divide the second vibration signal into windows, and extract time-domain and frequency-domain features for each window; S2-2: Concatenate the time-domain features and frequency-domain features of a window into a dynamic feature vector; S2-3: Sort the dynamic feature vectors according to the window division order to obtain the temporal features satisfied by multiple dynamic feature vectors.

5. The adaptive workpiece surface roughness prediction method according to claim 1, characterized in that, S3: Mapping the process parameters into static operating condition embedded characterization data, including: S3-1: Divide the process parameters into discrete parameters and continuous parameters; S3-2: Convert the discrete parameters into region category codes; normalize the continuous parameters to obtain normalized continuous parameters; S3-3: Combine the region category code with the normalized continuous parameter to form a process static parameter vector; S3-4: Map the process static parameter vector to static operating condition embedded characterization data.

6. The adaptive workpiece surface roughness prediction method according to claim 5, characterized in that, S3-4: Mapping the process static parameter vector into static operating condition embedded characterization data, including: S3-4-1: Perform feature mapping on the process static parameter vector to obtain the mapped process features; S3-4-2: Perform nonlinear activation on the mapping process features and normalize them to obtain static operating condition embedding characterization data.

7. The adaptive workpiece surface roughness prediction method according to claim 1, characterized in that, S5: Conditionally modify the dynamic feature vector using the modulation coefficient and bias coefficient to obtain a modified dynamic feature vector, including: S5-1: Perform dimension-wise weighting on the dynamic feature vector to obtain a weighted dynamic feature vector; S5-2: Scale the weighted dynamic feature vector dimensionally using the modulation coefficients to obtain the vibration dynamic features; S5-3: The vibration dynamic characteristics are translated and compensated using the bias coefficient to obtain the corrected dynamic characteristic vector.

8. The workpiece surface roughness prediction method with adaptive working conditions according to claim 1, characterized in that, S6: Obtain the surface roughness of the workpiece based on the time-series features and the corrected dynamic feature vector, including: S6-1: Based on the temporal characteristics, attention aggregation is performed on multiple modified dynamic feature vectors to obtain the initial value of surface roughness; S6-2: Statistically fuse multiple initial surface roughness values ​​to obtain the surface roughness.

9. A computing device, characterized in that, Including memory and processor; The memory stores one or more computer programs, the one or more computer programs including instructions; when the instructions are executed by the processor, the computing device performs the method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program for performing the method as described in any one of claims 1 to 8.