Boring mill digital twinning diagnosis method and device based on data and dynamical model

By establishing a dynamic model and digital twin system for boring machine bearings, combining sparse convolutional autoencoder and transfer learning, the problems of model robustness and data scarcity in rolling bearing fault diagnosis are solved, and high-precision fault diagnosis and real-time monitoring are achieved.

CN120493741APending Publication Date: 2025-08-15HUAZHONG UNIV OF SCI & TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510603775.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The prior art has problems such as poor model robustness, scarce data and poor diagnostic performance in rolling bearing fault diagnosis, especially when operating conditions change dramatically.

Method used

Establish a dynamic model of boring machine bearings, acquire fault data through simulation, build a multi-scale feature extraction network based on sparse convolutional autoencoder, train a fault diagnosis model with transfer learning, and establish a digital twin model for real-time data acquisition and diagnosis.

Benefits of technology

It realizes high-precision fault diagnosis under different working conditions, ensures model interpretability and applicability, and realizes real-time monitoring and synchronous display of boring machine bearing status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120493741A_ABST
    Figure CN120493741A_ABST
Patent Text Reader

Abstract

The invention provides a boring machine digital twinning diagnosis method and device based on data and a dynamical model. Comprises: establishing a dynamical model of a boring mill bearing; simulating the boring mill bearing in different fault modes based on the kinetic model to obtain fault data of the boring mill bearing; establishing a data set according to the fault data; constructing a neural network model, wherein the neural network model is a multi-scale feature extraction network based on a sparse convolution auto-encoder; training a neural network model according to the data set to obtain a first fault diagnosis model; training the first fault diagnosis model by adopting transfer learning to obtain a second fault diagnosis model; establishing a digital twinborn model of the boring machine for collecting and synchronizing state data of a boring machine bearing in real time; and determining the current state of the boring mill bearing according to the state data of the boring mill bearing acquired by the digital twinborn model and the second fault diagnosis model, and displaying the current state of the boring mill bearing in the data twinborn model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent manufacturing, and in particular relates to a digital twin diagnosis method and device for a boring machine based on data and dynamic models. Background Art

[0002] Gears, bearings and other rotating mechanical components on heavy equipment often work under high impact, continuous high temperature, heavy load or other complex working conditions, so they are prone to failure, thereby reducing the transmission accuracy, production efficiency and reliability of the equipment.

[0003] Currently, rolling bearing fault diagnosis is mainly divided into model-based methods, data-driven methods, and hybrid methods. Model-based methods aim to model the failure mechanism or degradation process of rolling bearings by establishing high-fidelity physical or mathematical models, thereby inferring whether there is a fault or the time of failure threshold. This type of method aims to derive the dynamic differential equations of the target physical system and solve them to achieve analytical modeling. Although model-based methods have strong interpretability, the parameter setting of this method requires expert experience and is highly targeted. That is, when the application scenario or object is changed, the robustness of the model is poor, which will lead to a decrease in diagnostic accuracy.

[0004] Unlike traditional model-based approaches, data-driven methods do not rely on a precise physical model of the system. Instead, they leverage machine learning, or even deep learning, and data analysis techniques to adaptively extract complex features to construct a mapping relationship between sensor signals and bearing health status, thereby building a model. Data-driven methods achieve system fault diagnosis through a complete process of data acquisition, feature extraction, model training, and evaluation. However, models built using data-driven methods require a large amount of valid data for training and evaluation, which is difficult to obtain in actual production processes.

[0005] In recent years, with the development of technologies such as cyber-physical systems, the Industrial Internet of Things (IIoT), and virtual reality (VR), the concept of digital twins (DT) has garnered widespread attention in various areas of intelligent manufacturing, such as job shop scheduling and decision optimization. DT is a technology that integrates the physical and digital worlds. Its core is to establish real-time interaction between physical and virtual models through sensors, the Internet of Things (IoT), and data analytics, thereby enabling the monitoring and optimization of physical systems. Based on accurate real-world physical models, DT can generate high-fidelity digital models, enabling the generation of realistic simulation data. This capability means that DT can provide a wealth of data for data-driven diagnostic models, addressing the scarcity of effective data in actual production. Therefore, DT has become a bridge for applying data-driven models to real-world production practices.

[0006] However, existing research faces the following challenges. First, few researchers have combined bearing mechanisms with data-driven approaches, resulting in a lack of interpretability in fault diagnosis models. Second, collecting real-world fault data during actual production is difficult, which complicates the development of diagnostic models. Third, models built using data-driven approaches exhibit poor diagnostic performance when faced with drastic changes in operating conditions, making their direct application to other scenarios difficult. Summary of the Invention

[0007] The purpose of the present invention is to provide a digital twin diagnosis method and device for a boring machine based on data and dynamic models to realize fault diagnosis of the boring machine.

[0008] First, a digital twin diagnostic method for boring machines based on data and dynamic models is provided, including: Establish the dynamic model of boring machine bearings; Based on the dynamic model, the boring machine bearing is simulated under different failure modes to obtain the failure data of the boring machine bearing; Establish a data set based on fault data; Constructing a neural network model, wherein the neural network model is a multi-scale feature extraction network based on a sparse convolutional autoencoder; The neural network model is trained based on the data set to obtain the first fault diagnosis model for the boring machine bearing; Transfer learning is used to train the first fault diagnosis model to obtain the second fault diagnosis model for boring machine bearings; Establish a digital twin model of the boring machine to collect and synchronize the status data of the boring machine bearings in real time; Based on the status data of the boring machine bearing collected by the digital twin model and the second fault diagnosis model of the boring machine bearing, the current status of the boring machine bearing is determined and displayed in the data twin model.

[0009] Optionally, the failure modes of the boring machine bearing include rolling element defects, inner race failures and outer race failures.

[0010] Optionally, the kinetic model includes: Kinetic equation:

[0011] in, Indicates the mass of the inner ring shaft in the boring machine bearing; Indicates the quality of the outer ring base of the boring machine bearing; Indicates the horizontal displacement of the inner ring; Represents the second derivative of the horizontal displacement of the inner ring with respect to time; Indicates the vertical displacement of the inner ring, The second derivative of the horizontal displacement of the outer ring with respect to time, Indicates the horizontal displacement of the outer ring; Indicates the vertical displacement of the outer ring; Indicates the external load applied to the inner and outer rings in the horizontal direction; Indicates the external load applied to the inner and outer rings in the vertical direction; Indicates the contact force between the ball and the inner and outer rings in the horizontal direction; Indicates the contact force between the ball and the inner and outer rings in the vertical direction; Indicates the damping coefficient of the inner ring; Indicates the damping coefficient of the outer ring; Indicates the elastic modulus of the inner ring; Indicates the elastic modulus of the outer ring; Nonlinear contact force equation:

[0012]

[0013]

[0014] in, Indicates the contact force between the ball and the raceway in the horizontal direction; Indicates the contact force between the ball and the raceway in the horizontal direction; ; Indicates the total contact stiffness of the bearing; The contact deformation between the ball and the inner ring raceway and the outer ring raceway; Indicates the angular position of the ball; Indicates the additional deformation caused by the fault; The total contact stiffness equation of the bearing is:

[0015]

[0016]

[0017] in, Indicates the contact stiffness of the inner ring; Indicates the contact stiffness of the outer ring; Indicates the elastic modulus of the material; represents the Poisson's ratio of the material; Indicates the contact displacement characteristics of the inner ring raceway, Indicates the raceway contact displacement characteristics of the outer ring; Indicates the raceway curvature of the inner ring and; Indicates the raceway curvature of the outer ring and; The additional deformation equations caused by faults include the additional deformation equations caused by inner ring faults, the additional deformation equations caused by outer ring faults, and the additional deformation equations caused by ball faults; The additional deformation equation caused by inner ring fault is:

[0018] in, is the fault angle of the inner race fault; The additional deformation equation caused by outer ring fault is:

[0019] in, is the fault angle of the outer race fault; The additional deformation equation caused by ball failure is:

[0020] in, is the failure angle of rolling element failure, Indicates the angular velocity of the rolling element's rotation.

[0021] Optionally, the step of establishing a data set based on the fault data includes: The fault data is converted into time-frequency images through continuous wavelet transform, and a data set is constructed based on the time-frequency images.

[0022] Optionally, the multi-scale feature extraction network based on the sparse convolutional autoencoder includes: The first multi-scale feature extraction network, the second multi-scale feature extraction network and the third multi-scale feature extraction network are respectively used to extract features at different scales; The first multi-scale feature extraction network includes: A first encoder, comprising: a convolutional layer with a 7*7 convolution kernel, a batch normalization layer, a pooling layer, a convolutional layer with a 3*3 convolution kernel, a batch normalization layer, a pooling layer, a convolutional layer with a 3*3 convolution kernel, a batch normalization layer, a pooling layer, and a sigmoid layer; A first decoder, comprising: a deconvolution layer with a convolution kernel of 7*7, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer; The second multi-scale feature extraction network includes: The second encoder includes: a convolution layer with a convolution kernel of 5*5, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, and a sigmoid layer; A second decoder, comprising: a deconvolution layer with a convolution kernel of 5*5, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer; The third multi-scale feature extraction network includes: a third encoder, comprising: a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, and a sigmoid layer; The third decoder includes: a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer.

[0023] Optionally, the loss functions of the first multi-scale feature extraction network, the second multi-scale feature extraction network, and the third multi-scale feature extraction network are:

[0024] in, represents the total loss function, represents the first sub-loss function, represents the second sub-loss function calculated by KL divergence, represents the weight of the second sub-loss function, Represents the first The probability of a neuron being activated is Indicates the probability of a preset neuron being activated; The calculation formula of the second sub-loss function is as follows:

[0025] The calculation formula is as follows:

[0026] in, Indicates the The activation of neurons, Represents a high-dimensional feature input vector; The formula is as follows:

[0027] The formula is as follows: .

[0028] Optionally, the step of using transfer learning to train the first fault diagnosis model to obtain a second fault diagnosis model for the boring machine bearing includes: Select time-frequency data under two different working conditions as the source domain and target domain respectively as the transfer learning dataset; The transfer learning dataset is input into the first fault diagnosis model to obtain encodings of the source domain and target domain at three different scales; The encodings at three different scales are mapped into a specific reproducing kernel Hilbert space, and the features of the source and target domains are aligned through the maximum mean difference and covariance matrix; The clustering algorithm is used as a specific domain classifier at each scale to train the first fault diagnosis model to obtain the second fault diagnosis model; the loss function is defined as , represents the classification loss, represents the migration loss calculated by maximizing the mean difference, represents the migration loss calculated by the covariance matrix, represents the weight of the migration loss calculated by maximizing the mean difference, Represents the weight of the migration loss calculated by the covariance matrix.

[0029] Secondly, a digital twin diagnostic device for a boring machine based on data and dynamic models is provided, including: Dynamic model building module, used to build the dynamic model of boring machine bearings; A simulation module is used to simulate the boring machine bearing under different failure modes based on the dynamic model to obtain the failure data of the boring machine bearing; A data set building module is used to build a data set based on fault data; A neural network model construction module is used to construct a neural network model, wherein the neural network model is a multi-scale feature extraction network based on a sparse convolutional autoencoder; A first training module is used to train a neural network model according to the data set to obtain a first fault diagnosis model for the boring machine bearing; A second training module is used to train the first fault diagnosis model using transfer learning to obtain a second fault diagnosis model for the boring machine bearing; A digital twin model building module is used to build a digital twin model of the boring machine, which is used to collect and synchronize the status data of the boring machine bearings in real time; The diagnostic module is used to determine the current status of the boring machine bearing based on the status data of the boring machine bearing collected by the digital twin model and the second fault diagnosis model of the boring machine bearing, and display the current status of the boring machine bearing in the data twin model.

[0030] In a third aspect, an electronic device is provided, comprising the digital twin diagnostic device for a boring machine based on data and dynamic models as described above.

[0031] In a fourth aspect, a computer-readable storage medium is provided, characterized in that at least one program code is stored in the computer-readable storage medium, and the program code is executed by a processor to implement the digital twin diagnosis method of a boring machine based on data and dynamic models as described in any one of the above items.

[0032] The technical solution provided by the present invention has the following beneficial effects: The present invention proposes a digital twin diagnosis method for boring machines based on data and dynamic models. By building a dynamic model of the bearing to describe the motion state of the bearing, and solving the dynamic model, simulated fault data is obtained to form a data set. Multiple sparse convolutional autoencoder networks are built to adaptively extract multi-scale fault features of the bearing time-frequency image, and the performance of the improved neural network model will be better. In addition, the construction of the second fault diagnosis model is realized by using the feature migration method, which can ensure that the model can be applied to fault diagnosis under different working conditions. Finally, a high-fidelity digital twin model of the boring machine and its spindle is established to achieve real-time synchronization between the twin boring machine and the physical boring machine; the data of the physical boring machine is synchronously collected through the data twin, and diagnosis is performed through the diagnostic model, so that the status of each component of the boring machine can be updated in real time in the data twin model. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 A flow chart of a digital twin diagnostic method for a boring machine based on data and dynamic models provided by the present invention; Figure 2 A schematic diagram of a kinetic model provided by the present invention; Figure 3 A schematic diagram of another kinetic model provided by the present invention; Figure 4 The simulated signal and real signal and their envelope diagrams under the healthy state provided by the present invention; Figure 5 The simulated signal and real signal and their envelope diagram under the outer ring fault state provided by the present invention; Figure 6 The simulated signal and real signal and their envelope diagram under the inner ring fault condition provided by the present invention; Figure 7 The simulated signal and the real signal and their envelope diagram under the rolling element fault condition provided by the present invention; Figure 8 A schematic diagram of the training process of an autoencoder provided by the present invention; Figure 9 A schematic diagram of a multi-scale feature extraction network based on a sparse convolutional autoencoder provided by the present invention; Figure 10 A schematic diagram of the training process of a multi-scale feature extraction network provided by the present invention; Figure 11 This is a training process of a second fault diagnosis model provided by the present invention.

[0035] Figure 12 A schematic diagram of a digital twin model provided by the present invention; Figure 13 A schematic diagram of another digital twin model provided by the present invention; Figure 14 A schematic diagram of another digital twin model provided by the present invention; Figure 15 A schematic diagram of another digital twin model provided by the present invention; Figure 16 A schematic diagram of another digital twin model provided by the present invention; Figure 17 This is a structural block diagram of a digital twin diagnostic device for a boring machine based on data and dynamic models provided by the present invention; Figure 18 This is a structural block diagram of an electronic device provided by the present invention.

[0036] The reference numerals are as follows: 11: Dynamic model construction module; 12: Simulation module; 13: Dataset construction module; 14: Neural network model construction module; 15: First training module; 16: Second training module; 17: Digital twin model construction module; 18: Diagnosis module; 21: Processor; 22: Memory. DETAILED DESCRIPTION

[0037] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0038] Figure 1 This is a flow chart of the digital twin diagnosis method for boring machines based on data and dynamic models provided by the present invention. Figure 1 ,include: S101. Establish a dynamic model of boring machine bearings.

[0039] In one example, the kinetic model includes: Kinetic equation:

[0040] in, Indicates the mass of the inner ring shaft in the boring machine bearing; Indicates the quality of the outer ring base of the boring machine bearing; Indicates the horizontal displacement of the inner ring; Represents the second derivative of the horizontal displacement of the inner ring with respect to time; Indicates the vertical displacement of the inner ring, The second derivative of the horizontal displacement of the outer ring with respect to time, Indicates the horizontal displacement of the outer ring; Indicates the vertical displacement of the outer ring; Indicates the external load applied to the inner and outer rings in the horizontal direction; Indicates the external load applied to the inner and outer rings in the vertical direction; Indicates the contact force between the ball and the inner and outer rings in the horizontal direction; Indicates the contact force between the ball and the inner and outer rings in the vertical direction; Indicates the damping coefficient of the inner ring; Indicates the damping coefficient of the outer ring; Indicates the elastic modulus of the inner ring; Indicates the elastic modulus of the outer ring; Nonlinear contact force equation:

[0041]

[0042]

[0043] in, Indicates the contact force between the ball and the raceway in the horizontal direction; Indicates the contact force between the ball and the raceway in the horizontal direction; ; Indicates the total contact stiffness of the bearing; The contact deformation between the ball and the inner ring raceway and the outer ring raceway; Indicates the angular position of the ball; Indicates the additional deformation caused by the fault; The total contact stiffness equation of the bearing is:

[0044]

[0045]

[0046] in, Indicates the contact stiffness of the inner ring; Indicates the contact stiffness of the outer ring; Indicates the elastic modulus of the material; represents the Poisson's ratio of the material; Indicates the contact displacement characteristics of the inner ring raceway, Indicates the raceway contact displacement characteristics of the outer ring; Indicates the raceway curvature of the inner ring and; Indicates the raceway curvature of the outer ring and; In this embodiment, , .

[0047] in, , , , , , , .

[0048] In the above formula, 、 represents the ball curvature function; 、 represents the inner raceway curvature function; 、 represents the outer raceway curvature function; 、 Indicates the curvature factor of the inner and outer raceways; Indicates the ball diameter; Indicates the bearing pitch diameter; Indicates the raceway inclination angle.

[0049] The additional deformation equations caused by faults include the additional deformation equations caused by inner ring faults, the additional deformation equations caused by outer ring faults, and the additional deformation equations caused by ball faults; The additional deformation equation caused by inner ring fault is:

[0050] in, is the fault angle of the inner race fault; The additional deformation equation caused by outer ring fault is:

[0051] in, is the fault angle of the outer race fault; The additional deformation equation caused by ball failure is:

[0052] in, is the failure angle of rolling element failure, Indicates the angular velocity of the rolling element's rotation.

[0053] In this embodiment, , , .

[0054] S102. Simulate the boring machine bearing under different failure modes based on the dynamic model to obtain failure data of the boring machine bearing.

[0055] In one example, the fault data of the boring machine bearing includes the vibration data of the boring machine bearing. In the dynamic model in step S101, the vibration data is reflected as the second-order derivative of the displacement of the inner ring in the horizontal direction relative to time. , the second derivative of the vertical displacement of the inner ring with respect to time , and the second derivative of the horizontal displacement of the outer ring with respect to time , the second derivative of the vertical displacement of the outer ring with respect to time .

[0056] The simulation step in step S102 is to simulate the 、 、 、 The solution process.

[0057] In this embodiment, a four-degree-of-freedom fault simulation model of the rolling bearing failure mechanism (i.e., the dynamic model in step S101) is established in MATLAB. The ODE45 solver based on the Runge-Kutta method is used to solve the dynamic equations. By inputting various bearing parameters according to actual conditions, the vibration response signals of the rolling bearing containing various failure modes can be obtained.

[0058] In one example, the process of establishing a rolling bearing dynamics simulation model is illustrated using a rolling bearing experiment conducted at Case Western Reserve University (CWRU). The test bench primarily consists of a motor, a rolling bearing on the motor drive end, a dynamometer, and a torque sensor. The rolling bearing on the motor drive end is an SKF-6205. An accelerometer is mounted on the motor housing at the drive end to collect vibration signals from the rolling bearing. The CWRU bearing experiment tests rolling bearings in four health states: normal, inner race fault, outer race fault, and rolling element fault. Defects in faulty rolling bearings are obtained by electrospark machining.

[0059] See Figure 2 , which is a schematic diagram of a dynamic simulation model provided by the present invention, in which the structure of the bearing is specifically shown.

[0060] In one example, failure modes of a boring machine bearing include rolling element defects, inner race failure, and outer race failure.

[0061] See Figure 3 , Figure 3 (a) in the figure specifically shows the location of the fault point when the bearing inner ring fails. Figure 3 (b) in the figure specifically shows the location of the fault point when the bearing inner ring fails.

[0062] The rolling bearing experiments conducted at Case Western Reserve University (CWRU) primarily involved four operating conditions. The simulations used a rotational speed of 1750 RPM, with cracks measuring 0.007, 0.014, and 0.021 inches (approximately 0.18, 0.36, and 0.54 mm) wide. The sampling frequency at the drive end was 12 kHz. To accurately reflect the sampling conditions of the sensor located at the drive end during the experiment, the simulation data used the vibration acceleration signal at the inner ring shaft and added a certain amount of noise to closely replicate the actual conditions.

[0063] In the above dynamic model, the actual parameters of the CWRU bearing experimental platform are set, and the solution step size is set to 8.33×10 -5 s, the acceleration vibration signals of the rolling bearing in healthy state, inner and outer ring fault state and rolling element fault state can be obtained respectively.

[0064] According to the dynamics theory, the failure frequencies of the main components of rolling bearings are as follows: Outer race fault characteristic frequency:

[0065] Inner race fault characteristic frequency:

[0066] Rolling element failure characteristic frequency:

[0067] By comparing the distribution patterns of simulation data and real data in the time-frequency domain, the reliability of the finite element dynamics simulation model can be further explored.

[0068] See also Figure 4 , Figure 4 The simulated signal and its envelope diagram, and the actual signal and its envelope diagram in the healthy state are shown. Figure 4 (a) is the simulated signal in the healthy state. Figure 4 (b) is the actual signal in a healthy state. Figure 4 (c) in the figure is the envelope spectrum analysis of the simulation signal under healthy conditions. Figure 4 (d) in the figure is the envelope spectrum analysis of the actual signal under healthy conditions.

[0069] It can be seen that both the simulated signal and the actual signal can clearly show the rotational frequency and its multiple frequencies, which can illustrate the high reliability of the dynamic simulation model under a healthy and normal motion state and the high credibility of the simulation data.

[0070] See also Figure 5 , Figure 5 The simulated signal and its envelope diagram, and the actual signal and its envelope diagram under the outer race fault state are shown. Figure 5 (a) is the simulation signal under the outer ring fault state. Figure 5 (b) is the actual signal in the outer ring fault state. Figure 5 (c) in the figure is the envelope spectrum analysis of the simulation signal under the outer race fault state. Figure 5 (d) in the figure is the envelope spectrum analysis of the actual signal under the outer race fault state.

[0071] It can be observed that in the simulated signal, the interval between two adjacent shock wave peaks is 9.5ms; in the real signal, the interval between two adjacent shock wave peaks is 9.6ms, which is basically consistent with the theoretical calculation formula. In addition, the frequency domain distribution of the envelope spectrum of the two is basically the same, which is also consistent with the theoretical calculation results. This shows that the constructed dynamic model clearly reflects the outer race fault and the difference between it and the actual situation is very small, showing high reliability.

[0072] Figure 6 The simulated signal and its envelope diagram, and the actual signal and its envelope diagram under the inner race fault state are shown. Figure 6 (a) is the simulation signal under the inner ring fault state. Figure 6 (b) is the actual signal under the inner ring fault condition. Figure 6(c) is the envelope spectrum analysis of the simulation signal under the inner race fault state. Figure 6 (d) in the figure is the envelope spectrum analysis of the actual signal under the inner race fault state.

[0073] It can be observed that the interval between the two shock wave peaks in the simulated signal and the actual signal is around 6.1-6.4ms, which is very close to the 6.3ms obtained by theoretical calculation. In addition, by observing its waveform and envelope spectrum distribution, on the basis of its characteristic frequency, the characteristic frequency caused by the inner ring rotation can also be found. Both the simulated signal and the actual signal have relatively obvious characteristics, which further demonstrates the high reliability of the simulation model.

[0074] Figure 7 The simulated signal and its envelope diagram, and the actual signal and its envelope diagram under the rolling element fault condition are shown. Figure 7 (a) is the simulation signal under rolling element failure condition. Figure 7 (b) is the actual signal under rolling element failure condition. Figure 7 (c) is the envelope spectrum analysis of the simulation signal under the condition of rolling element failure. Figure 7 (d) in the figure is the envelope spectrum analysis of the actual signal under rolling element fault conditions.

[0075] Observing the envelope spectrum frequency domain distribution, it can be found that the vibration signal caused by the rolling element failure is relatively messy and weak, whether in simulation or in practice, but it can still be found that the vibration signal caused by the rolling element failure is relatively messy and weak, but it can still be found that the vibration signal caused by the rolling element failure is relatively weak, which is not obvious in the cage rotation frequency. Under the influence of , the characteristics at its frequency doubling are more obvious, and the simulated signal is also highly consistent with the actual signal.

[0076] The bearing simulation fault data obtained through the dynamic model proposed in the present invention is highly similar to the real data, laying the foundation for the subsequent fault diagnosis model obtained by training based on simulation data to be used in actual scenarios.

[0077] S103: Create a data set based on the fault data.

[0078] In one example, step S103 includes: The fault data is converted into time-frequency images through continuous wavelet transform, and a data set is constructed based on the time-frequency images.

[0079] Fault data can be converted into time-frequency images in Matlab. The specific steps are as follows: Step 1: Calculate the time scale t according to the sampling frequency.

[0080] The sampling frequency here is the sampling frequency of the sensor used to collect data in the subsequent data twin model.

[0081] In one example, step 1 includes: In the first step, the complex Gaussian wavelet cgau8 is selected as the wavelet basis function, and the wavelet scale is set to 128.

[0082] The second step is to calculate the center frequency corresponding to cgau8 through the centfrq function, and convert the scale to frequency according to scal2freq.

[0083] Step 2: Input the vibration signal, time scale, and wavelet function into the cwt function to obtain the continuous wavelet coefficients, and use the imagesc function to select every 1024 vibration signal data to generate a time-frequency image.

[0084] It should be noted that, in order to further conform to the actual scenario, the time-frequency image dataset generated based on the time-frequency image does not contain sample labels.

[0085] S104: Construct a neural network model, where the neural network model is a multi-scale feature extraction network based on a sparse convolutional autoencoder.

[0086] See also Figure 8 ,Autoencoder (AE) is an unsupervised learning neural network model, which consists of two parts: encoder (Encoder) and decoder (Decoder). It is usually used for tasks such as feature extraction, dimensionality reduction, and data denoising.

[0087] AE will input It acts as a supervisor, and a mapping relationship is established through training to obtain a reconstructed signal In the encoder part, high-dimensional feature input is mapped to a low-dimensional feature space and encoded in the hidden layer. This mapping process can be expressed as:

[0088] Where, is the activation function of Encoder, and are the weights and biases of the neurons.

[0089] In the decoder part, the encoding in the low-dimensional feature space is remapped to the original feature space to obtain the reconstructed input . This mapping process can be expressed as:

[0090] Where, is the activation function of Encoder, and are the weights and biases of the neurons, and:

[0091] The code carries The most important information is that AE is essentially a feature extraction network.

[0092] The present invention replaces all the linear layers in the traditional encoder structure with convolutional layers with stronger information extraction capabilities, and builds corresponding deconvolution layers in the decoder to construct a convolutional autoencoder (CAE); by setting different numbers of convolutional layers and convolution kernel sizes to construct a multi-scale convolutional autoencoder (Multi-CAE); KL divergence (Kullback-Leibler Divergence, KL Divergence) is used in the loss function of Multi-CAE as a sparsity measure to obtain Multi-SCAE.

[0093] Specifically, the average activation of neurons in the hidden layer A smaller value makes most neurons inhibited and a small number activated, thus achieving sparsity of the encoded output.

[0094] See also Figure 9 In one example, a multi-scale feature extraction network based on a sparse convolutional autoencoder includes: The first multi-scale feature extraction network, the second multi-scale feature extraction network and the third multi-scale feature extraction network are respectively used to extract features at different scales; The first multi-scale feature extraction network includes: A first encoder, comprising: a convolutional layer with a 7*7 convolution kernel, a batch normalization layer, a pooling layer, a convolutional layer with a 3*3 convolution kernel, a batch normalization layer, a pooling layer, a convolutional layer with a 3*3 convolution kernel, a batch normalization layer, a pooling layer, and a sigmoid layer; A first decoder, comprising: a deconvolution layer with a convolution kernel of 7*7, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer; The second multi-scale feature extraction network includes: The second encoder includes: a convolution layer with a convolution kernel of 5*5, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, and a sigmoid layer; A second decoder, comprising: a deconvolution layer with a convolution kernel of 5*5, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer; The third multi-scale feature extraction network includes: a third encoder, comprising: a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, and a sigmoid layer; The third decoder includes: a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer.

[0095] In this embodiment, each SCAE model is developed based on Pytorch and inherits the nn.Module class. The encoder of each SCAE consists of three Conv1d (convolutional) layers. The convolution kernel size of the first Conv1d layer of the first SCAE is set to 7*7, and the remaining layers are set to 3*3. In addition, a batch normalization layer (BatchNorm1d layer) and a pooling layer (MaxPool1d layer) are added between every two convolutional layers to maximize the network's learning representation capabilities while ensuring overfitting. The decoder only contains the deconvolutional layers ConvTranspose1d corresponding to the convolutional layers in the encoder. Therefore, the convolution kernel size of the first and second ConvTranspose1d layers is set to 3*3, and the convolution kernel size of the last ConvTranspose1d is set to 7*7. Similarly, a ReLU layer is added between every two deconvolutional layers. The convolution kernel size of the first Conv1d layer of the second SCAE is set to 5*5, and the remaining layers are set to 3*3. Similarly, the convolution kernels of the first two ConvTranspose1d layers in the Decoder are set to 3*3, and the convolution kernel of the last ConvTranspose1d layer is set to 5*5. And so on, we get the third SCAE.

[0096] The loss functions of the first multi-scale feature extraction network, the second multi-scale feature extraction network, and the third multi-scale feature extraction network are:

[0097] in, represents the total loss function, represents the first sub-loss function, represents the second sub-loss function calculated by KL divergence, represents the weight of the second sub-loss function, Represents the first The probability of a neuron being activated is Indicates the probability of a preset neuron being activated.

[0098] The calculation formula of the second sub-loss function is as follows:

[0099] The calculation formula is as follows:

[0100] in, Indicates the The activation of neurons, Represents a high-dimensional feature input vector; The formula is as follows:

[0101] The formula is as follows: .

[0102] S105: Train a neural network model according to the data set to obtain a first fault diagnosis model for the boring machine bearing.

[0103] In one example, step S105 includes: In the training part of SCAE, Select the mean squared error loss function (MSELoss):

[0104] In terms of hyperparameter selection, the number of training epochs was set to 100, and an early stopping strategy was implemented. This strategy terminates training early if the model converges before the specified number of training epochs. Each SCAE uses the Adam optimizer, with the learning rate initialized to 0.01. The ReduceLROnPlateau learning rate decay strategy from the lr_scheduler package is used to avoid getting stuck in local optima during training. The core idea is to automatically reduce the learning rate when test set metrics (such as loss and accuracy) stop improving, thereby helping the model converge.

[0105] Specifically, at the end of each epoch, the algorithm checks the monitor. If there is no significant improvement within the specified number of epochs, the learning rate is decayed at a certain rate, followed by a cool-down period to avoid frequent triggering of learning rate decay. The Dataloader (data iterator) in torch.utils.data is referenced as a batch loader to read a certain number of samples from the dataset for training (or testing), where batch_size is set to 16 and shuffle=True. The trained model is saved in pth format as a dictionary.

[0106] See also Figure 10 , specifically showing the training process of the multi-scale feature extraction network.

[0107] S106. Use transfer learning to train the first fault diagnosis model to obtain a second fault diagnosis model for the boring machine bearing.

[0108] In one example, step S106 includes: In the first step, time-frequency data under two different working conditions are selected as the source domain and target domain respectively as the transfer learning dataset.

[0109] In the second step, the transfer learning dataset is input into the first fault diagnosis model to obtain encodings of the source domain and target domain at three different scales.

[0110] In the third step, the encodings at three different scales are mapped to a specific reproducing kernel Hilbert space, and the features of the source and target domains are aligned through the maximum mean difference and covariance matrix.

[0111] In the fourth step, the clustering algorithm is used as a specific domain classifier at each scale to train the first fault diagnosis model to obtain the second fault diagnosis model; the loss function is defined as , represents the classification loss, represents the migration loss calculated by maximizing the mean difference, represents the migration loss calculated by the covariance matrix, represents the weight of the migration loss calculated by maximizing the mean difference, Represents the weight of the migration loss calculated by the covariance matrix. and The value range is 0~1.

[0112] The calculation formula is as follows:

[0113] in, represents the kernel function mapping, Represents the characteristics of the source domain, Represents the characteristics of the target domain, represents the reproducing kernel Hilbert space.

[0114] The calculation formula is as follows:

[0115] in, is the covariance matrix of the source domain, is the covariance matrix of the target domain, is the Frobenius norm, is the feature dimension.

[0116] The training strategy and hyperparameter settings are the same as those of Multi-SCAEs. After obtaining the final classification results, the model is saved, thus completing the construction of the second fault diagnosis model for boring machine bearings.

[0117] See also Figure 12 , specifically showing the training process of the second fault diagnosis model.

[0118] S107. Establish a digital twin model of the boring machine to collect and synchronize the status data of the boring machine bearings in real time.

[0119] In one example, step S107 includes: The first step is to build a 3D model of the boring machine.

[0120] The physical boring machine is surveyed and mapped, and the structural dimensions of key parts and various components are measured. Based on the structural dimensions of the key parts and various components of the boring machine, the parts are drawn and assembled in SolidWorks to obtain a three-dimensional model of the boring machine.

[0121] The second step is to render the 3D model.

[0122] The three-dimensional model is rendered in color using 3Dmax software.

[0123] The third step is to adjust the size of the rendered 3D model to obtain the digital twin model.

[0124] Since the sizes of the actually obtained three-dimensional model and the actual boring machine model are different, the sizes of the three-dimensional model and the actual boring machine model need to be synchronized.

[0125] Sensors are installed on the spindle's X, Y, and Z axes and on the spindle's gearbox housing to detect vibration signals (i.e., acceleration), synchronizing the data twin model with the actual boring machine's status. Finally, the vibration signals collected by the sensors are input into a second diagnostic model to diagnose the boring machine's condition. The status of the boring machine's components can also be displayed in the data twin model using different colors.

[0126] See also Figures 12 to 16 , which is a schematic diagram of the digital twin model provided by the present invention.

[0127] S108. Determine the current state of the boring machine bearing based on the state data of the boring machine bearing collected by the digital twin model and the second fault diagnosis model of the boring machine bearing, and display the current state of the boring machine bearing in the data twin model.

[0128] Figure 17 This is a structural diagram of a digital twin diagnostic device for boring machines based on data and dynamic models provided by the present invention. Figure 17 ,include: Dynamic model building module, used to build the dynamic model of boring machine bearings; A simulation module 12 is used to simulate the boring machine bearing under different failure modes based on the dynamic model, obtain the failure data of the boring machine bearing and establish the dynamic model of the boring machine bearing; The data set construction module 13 is used to construct a data set based on the fault data; A neural network model construction module 14 is used to construct a neural network model, wherein the neural network model is a multi-scale feature extraction network based on a sparse convolutional autoencoder; A first training module 15 is used to train a neural network model according to the data set to obtain a first fault diagnosis model for the boring machine bearing; A second training module 16 is used to train the first fault diagnosis model using transfer learning to obtain a second fault diagnosis model for the boring machine bearing; A digital twin model building module 17 is used to build a digital twin model of the boring machine, and is used to collect and synchronize the status data of the boring machine bearings in real time; The diagnostic module 18 is used to determine the current state of the boring machine bearing based on the state data of the boring machine bearing collected by the digital twin model and the second fault diagnosis model of the boring machine bearing, and display the current state of the boring machine bearing in the data twin model.

[0129] Figure 18 This is a structural block diagram of an electronic device provided by the present invention. Figure 18 , electronic devices may include Figure 17 The digital twin diagnostic device for boring machines based on data and dynamic models generally includes a processor 21 and a memory 22 .

[0130] The processor 21 may include one or more processing cores, such as a quad-core processor or an octal-core processor. The processor 21 may be implemented in hardware using at least one of the following: a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. The memory 22 may include one or more computer-readable storage media, which may be non-transitory. The memory 22 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 22 is used to store at least one instruction, which is executed by the processor 21 to implement the digital twin diagnostic method for boring machines based on data and dynamic models, performed by an electronic device, as provided in the method embodiments of this application.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A digital twin diagnosis method for boring machines based on data and dynamic models, characterized in that: include: Establish the dynamic model of boring machine bearings; Based on the dynamic model, the boring machine bearing is simulated under different failure modes to obtain the failure data of the boring machine bearing; Establish a data set based on fault data; Constructing a neural network model, wherein the neural network model is a multi-scale feature extraction network based on a sparse convolutional autoencoder; The neural network model is trained based on the data set to obtain the first fault diagnosis model for the boring machine bearing; Transfer learning is used to train the first fault diagnosis model to obtain the second fault diagnosis model for boring machine bearings; Establish a digital twin model of the boring machine to collect and synchronize the status data of the boring machine bearings in real time; Based on the status data of the boring machine bearing collected by the digital twin model and the second fault diagnosis model of the boring machine bearing, the current status of the boring machine bearing is determined and displayed in the data twin model.

2. The digital twin diagnosis method for boring machines based on data and dynamic models according to claim 1 is characterized in that: The failure modes of boring machine bearings include rolling element defects, inner ring failures and outer ring failures.

3. The digital twin diagnosis method for boring machines based on data and dynamic models according to claim 1 is characterized in that: The kinetic model includes: Kinetic equation: in, Indicates the mass of the inner ring shaft in the boring machine bearing; Indicates the quality of the outer ring base of the boring machine bearing; Indicates the horizontal displacement of the inner ring; Represents the second derivative of the horizontal displacement of the inner ring with respect to time; Indicates the vertical displacement of the inner ring, The second derivative of the horizontal displacement of the outer ring with respect to time, Indicates the horizontal displacement of the outer ring; Indicates the vertical displacement of the outer ring; Indicates the external load applied to the inner and outer rings in the horizontal direction; Indicates the external load applied to the inner and outer rings in the vertical direction; Indicates the contact force between the ball and the inner and outer rings in the horizontal direction; Indicates the contact force between the ball and the inner and outer rings in the vertical direction; Indicates the damping coefficient of the inner ring; Indicates the damping coefficient of the outer ring; Indicates the elastic modulus of the inner ring; Indicates the elastic modulus of the outer ring; Nonlinear contact force equation: in, Indicates the contact force between the ball and the raceway in the horizontal direction; Indicates the contact force between the ball and the raceway in the horizontal direction; ; Indicates the total contact stiffness of the bearing; The contact deformation between the ball and the inner ring raceway and the outer ring raceway; Indicates the angular position of the ball; Indicates the additional deformation caused by the fault; The total contact stiffness equation of the bearing is: in, Indicates the contact stiffness of the inner ring; Indicates the contact stiffness of the outer ring; Indicates the elastic modulus of the material; represents the Poisson's ratio of the material; Indicates the contact displacement characteristics of the inner ring raceway, Indicates the raceway contact displacement characteristics of the outer ring; Indicates the raceway curvature of the inner ring and; Indicates the raceway curvature of the outer ring and; The additional deformation equations caused by faults include the additional deformation equations caused by inner ring faults, the additional deformation equations caused by outer ring faults, and the additional deformation equations caused by ball faults; The additional deformation equation caused by inner ring fault is: in, is the fault angle of the inner race fault; The additional deformation equation caused by outer ring fault is: in, is the fault angle of the outer race fault; The additional deformation equation caused by ball failure is: in, is the failure angle of rolling element failure, Indicates the angular velocity of the rolling element's rotation.

4. The digital twin diagnosis method for boring machines based on data and dynamic models according to claim 1 is characterized in that: Based on the fault data, the steps to build a data set include: The fault data is converted into time-frequency images through continuous wavelet transform, and a data set is constructed based on the time-frequency images.

5. The digital twin diagnosis method for boring machines based on data and dynamic models according to any one of claims 1 to 4, characterized in that: The multi-scale feature extraction network based on sparse convolutional autoencoder includes: The first multi-scale feature extraction network, the second multi-scale feature extraction network and the third multi-scale feature extraction network are respectively used to extract features at different scales; The first multi-scale feature extraction network includes: A first encoder, comprising: a convolutional layer with a 7*7 convolution kernel, a batch normalization layer, a pooling layer, a convolutional layer with a 3*3 convolution kernel, a batch normalization layer, a pooling layer, a convolutional layer with a 3*3 convolution kernel, a batch normalization layer, a pooling layer, and a sigmoid layer; A first decoder, comprising: a deconvolution layer with a convolution kernel of 7*7, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer; The second multi-scale feature extraction network includes: The second encoder includes: a convolution layer with a convolution kernel of 5*5, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, and a sigmoid layer; A second decoder, comprising: a deconvolution layer with a convolution kernel of 5*5, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer; The third multi-scale feature extraction network includes: a third encoder, comprising: a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, a convolution layer with a convolution kernel of 3*3, a batch normalization layer, a pooling layer, and a sigmoid layer; The third decoder includes: a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, a ReLU layer, a deconvolution layer with a convolution kernel of 3*3, and a Sigmoid layer.

6. The digital twin diagnosis method for boring machines based on data and dynamic models according to claim 5 is characterized in that: The loss functions of the first multi-scale feature extraction network, the second multi-scale feature extraction network, and the third multi-scale feature extraction network are: in, represents the total loss function, represents the first sub-loss function, represents the second sub-loss function calculated by KL divergence, represents the weight of the second sub-loss function, Represents the first The probability of a neuron being activated is Indicates the probability of a preset neuron being activated; The calculation formula of the second sub-loss function is as follows: The calculation formula is as follows: in, Indicates the The activation of neurons, Represents a high-dimensional feature input vector; The formula is as follows: The formula is as follows: 。 7. The digital twin diagnosis method for boring machines based on data and dynamic models according to claim 5 is characterized in that: The steps of using transfer learning to train the first fault diagnosis model to obtain a second fault diagnosis model for the boring machine bearing include: Select time-frequency data under two different working conditions as the source domain and target domain respectively to form a transfer learning dataset; The transfer learning dataset is input into the first fault diagnosis model to obtain encodings of the source domain and target domain at three different scales; The encodings at three different scales are mapped into a specific reproducing kernel Hilbert space, and the features of the source and target domains are aligned through the maximum mean difference and covariance matrix; The clustering algorithm is used as a specific domain classifier at each scale to train the first fault diagnosis model to obtain the second fault diagnosis model; the loss function is defined as , represents the classification loss, represents the migration loss calculated by maximizing the mean difference, represents the migration loss calculated by the covariance matrix, represents the weight of the migration loss calculated by maximizing the mean difference, Represents the weight of the migration loss calculated by the covariance matrix.

8. A digital twin diagnostic device for boring machines based on data and dynamic models, characterized in that: include: Dynamic model building module, used to build the dynamic model of boring machine bearings; A simulation module is used to simulate the boring machine bearing under different failure modes based on the dynamic model to obtain the failure data of the boring machine bearing; A data set building module is used to build a data set based on fault data; A neural network model construction module is used to construct a neural network model, wherein the neural network model is a multi-scale feature extraction network based on a sparse convolutional autoencoder; A first training module is used to train a neural network model according to the data set to obtain a first fault diagnosis model for the boring machine bearing; A second training module is used to train the first fault diagnosis model using transfer learning to obtain a second fault diagnosis model for the boring machine bearing; A digital twin model building module is used to build a digital twin model of the boring machine, which is used to collect and synchronize the status data of the boring machine bearings in real time; The diagnostic module is used to determine the current status of the boring machine bearing based on the status data of the boring machine bearing collected by the digital twin model and the second fault diagnosis model of the boring machine bearing, and display the current status of the boring machine bearing in the data twin model.

9. An electronic device, characterized in that: Including the digital twin diagnostic device of a boring machine based on data and dynamic models as described in claim 8.

10. A computer-readable storage medium, characterized in that At least one program code is stored in the computer-readable storage medium, and the program code is executed by a processor to implement the digital twin diagnosis method for a boring machine based on data and a dynamic model as described in any one of claims 1 to 7.