Skip to Content
ElectronicsElectronics
  • Essay
  • Open Access

5 December 2026

25 Pages

Tool Life Prediction Using Swin-Fusion with Domain-Adversarial Transfer Learning

,
,
and
School of Mechanical Engineering, Inner Mongolia University of Technology, Hohhot 010051, China
*
Author to whom correspondence should be addressed.
Electronics2026, 15(23), 5733;https://doi.org/10.3390/electronics15235733 
(registering DOI)
This article belongs to the Section Artificial Intelligence

Abstract

Distribution shifts across machining platforms can impair milling tool life prediction. This study develops a dual-branch domain-adversarial model (DB-DA) by extending Swin-Fusion with multilevel feature alignment. A time-domain Transformer and a time–frequency Swin Transformer extract complementary representations, which are combined through soft gating. Domain discriminators and gradient reversal layers impose adversarial alignment constraints on time-domain, time–frequency, and fused features. Training comprises supervised source-domain pretraining followed by adaptation using labeled source data and unlabeled observations from the first 85% of each target tool record; the final 15% is reserved for testing. Cross-dataset experiments use PHM2010 as the source domain and the HMoTP thin-walled milling dataset as the target domain. The regression target is the normalized remaining flank-wear margin defined using each tool’s initial and final recorded wear values. Across the three target tools, the mean root mean square error, mean absolute error, and coefficient of determination on the held-out test partitions are 6.7872, 3.6113, and 0.9802, respectively. Ablation comparisons show lower target-domain prediction errors for the full multilevel configuration than for the no-alignment and individual single-level alignment variants. These findings support the potential of the gated dual-branch model with multilevel domain-adversarial alignment for predicting the normalized remaining flank-wear margin under the evaluated PHM2010-to-HMoTP adaptation protocol.

1. Introduction

Deep learning research on tool wear monitoring has addressed two closely related challenges: extracting degradation-sensitive information from complex machining signals and combining complementary information sources. Reviews identify signal nonstationarity, noise, and annotation costs as recurring difficulties [1,2]. Multiscale convolutional and convolutional–recurrent models learn local patterns and temporal relationships from machining signals [3,4], while multisensor fusion methods combine information from vibration, cutting force, spindle current, and other measurements [5,6,7]. These studies provide a foundation for learning tool degradation representations, while motivating further investigation of how complementary signal information should be organized and combined.
The representation-learning question concerns the relationship between temporal and spectral information. Periodic attention, sequence modeling, and physically informed Transformer methods capture different aspects of machining-signal variation [8,9,10]. Spectral-image learning provides an alternative view of signal structure [11], while adaptive fusion combines information from multiple representations [12]. These approaches motivate a dual-branch design in which time-domain sequences and time–frequency maps are processed through dedicated pathways. In the present study, the time-domain branch models dependencies within each input signal window, whereas the time–frequency branch extracts local spectral patterns. Their outputs are combined through sample-dependent branch weighting. This design provides a common backbone for examining how complementary representations can support cross-dataset prediction.
Representation learning must also account for changes in operating conditions. Existing tool-monitoring studies have explored pretrained model transfer [13], feature-based transfer [14], and meta-learning-based generalization [15,16]. These approaches address different assumptions about available training domains and target-domain information. The present study considers adaptation using labeled source-domain data and unlabeled target-domain observations. Under this setting, the relevant question is how to retain predictive information while addressing distribution differences between machining datasets.
Related machinery prognostics and health management studies have explored spatial-channel collaborative multi-scale graph-interaction transfer learning [17] and convolutional–Transformer reinforcement-learning agents [18], providing broader perspectives on feature interaction and adaptive diagnosis. More directly related to tool monitoring, domain-adversarial studies have investigated cross-process feature transfer [19], attention-guided adaptation [20], dual-path adaptation of marginal and conditional distributions [21], and dual-regression consistency [22]. These studies establish domain-adversarial learning and multiple adaptation constraints as existing foundations. The research question considered here therefore concerns the placement of alignment constraints within a gated dual-branch predictor, rather than the introduction of adversarial adaptation itself.
Two connected design questions follow from this literature. The first concerns the combination of complementary time-domain and time–frequency representations within a shared prediction framework. The second concerns whether alignment should be applied only to their fused representation or also directly to the constituent branches. Because sample-dependent gating changes the relative contributions of the two branches, alignment of the fusion output alone does not establish that distribution discrepancies in both branch representations have been adequately addressed. This motivates a controlled comparison of branch-level, fusion-level, and coordinated alignment configurations.
Accordingly, this study develops DB-DA to investigate coordinated alignment of time-domain, time–frequency, and fused representations. A time-domain Transformer and a time–frequency Swin Transformer extract complementary features, which are combined through soft gating. Separate domain discriminators impose adversarial constraints at the two branch outputs and the fusion output, jointly with source-domain regression supervision. The methodological contribution is the formulation and evaluation of this alignment configuration within the gated dual-branch predictor.

2. Materials and Methods

2.1. Development of the Swin-Fusion Dual-Branch Milling Tool Life Prediction Model

Under complex milling conditions, tool wear exhibits nonlinear, time-varying, and multiscale behavior. A single signal representation may not fully capture both temporal variations and local spectral patterns associated with tool wear. Time-domain signals describe variations in cutting loads, vibration amplitudes, and transient impacts within individual observation windows. In contrast, time–frequency energy distributions reveal localized resonance, energy redistribution, and frequency shifts associated with cutting-edge microchipping, flank friction, and changes in structural stiffness. To exploit these complementary representations, this study develops Swin-Fusion, a dual-branch model for predicting the normalized remaining flank-wear margin of milling tools.

2.1.1. Time-Domain Transformer and Time–Frequency Swin Transformer Branches

Let X ∈ RC×L denote a multichannel milling signal segment extracted using a sliding window, where C is the number of sensor channels and L is the window length. The model processes the time-domain sequence and its corresponding time–frequency representation in parallel through a time-domain Transformer branch and a time–frequency Swin Transformer branch, respectively.
The time-domain Transformer branch models temporal dependencies among tokens within each input signal window. Following resampling to 5 kHz, each 4096-sample window represents 0.8192 s of machining signals. Global self-attention alone may not adequately capture local continuity between adjacent samples in high-sampling-rate sequences. A one-dimensional convolutional patch embedding layer is therefore first applied to map local cutting segments into high-dimensional tokens, encoding load fluctuations and cutting-cycle information across neighboring time points [23]. This embedding step reduces the sequence length for subsequent attention computations while preserving local temporal variations within cutting segments. The resulting token sequence is then passed to a Transformer encoder comprising multi-head self-attention and feed-forward networks, enabling information exchange across temporal positions. The computation is expressed as follows:
Attention ( Q , K , V ) = softmax ( Q K T d k ) V
Multiple Transformer encoder layers integrate information on cutting loads and vibration-induced impacts across temporal positions within each input window. Global average pooling then aggregates the token sequence into a time-domain feature vector fa, which is subsequently normalized using layer normalization (LayerNorm) to stabilize feature scaling. This representation summarizes window-level signal patterns associated with the current tool wear state.
In parallel, the time–frequency Swin Transformer branch extracts latent degradation patterns from spectral structures and local textures. The short-time Fourier transform (STFT) [24] is first applied to the same raw signal window used by the time-domain branch. By computing spectra over local time windows, the STFT maps each one-dimensional nonstationary signal into a two-dimensional representation with time and frequency axes. This representation preserves changes in frequency-band energy across machining stages, making wear-related localized resonance, frequency shifts, and high-frequency impact signatures more readily discernible in the time–frequency plane. The transform is expressed as follows:
S ( m , ω ) = | ∑ n = − ∞ ∞ X [ n ] w [ n − m ] e − jωn | 2
The resulting time–frequency spectrograms are fed into a Swin-T backbone [25], with a patch size of 4 × 4 and an attention window of 7 × 7 tokens. The four stages contain [2, 2, 6, 2] Transformer blocks, with [3, 6, 12, 24] attention heads and channel dimensions of [96, 192, 384, 768], respectively. The MLP expansion ratio is 4. Window-based attention extracts local spectral textures, while shifted windows enable information exchange between neighboring regions. Global average pooling produces a 768-dimensional representation, which is mapped to 128 dimensions through a learnable linear projection. The projected representation is subsequently normalized using LayerNorm to obtain the time–frequency feature vector fb.

2.1.2. Dual-Branch Feature Fusion Based on Soft-Gated Regression

Swin-Fusion combines the time-domain and time–frequency branch outputs through feature normalization, soft gating, and regression. LayerNorm addresses differences in feature scales, whereas soft gating introduces an explicit sample-dependent coefficient for weighting the two branches. These operations serve complementary purposes: normalization adjusts numerical scales, while gating regulates the relative branch contributions before regression.
Let fa ∈ RM and fb ∈ RM denote the time-domain and projected time–frequency feature vectors, respectively, with M = 128. Their concatenation produces a 256-dimensional joint representation, and the gated fused representation also has 256 dimensions. Because the two branches process raw time series and two-dimensional time–frequency spectrograms, they may produce features with different numerical scales and statistical properties. LayerNorm [26] is therefore applied separately to each branch output before fusion to normalize feature scales. For either branch k ∈ {a, b}, the normalization is expressed as follows:
f ~ k = γ k ⊙ f k − μ k σ k 2 + ε + β k ,   k ∈ { a , b }
Here, fk denotes the branch feature vector to be normalized, and μ k and ( σ k 2 ) are its mean and variance computed across the feature dimensions, respectively. The constant ε ensures numerical stability when the variance is close to zero. The learnable parameters γ k and β k provide element-wise scaling and shifting, respectively, and ⊙ denotes element-wise multiplication.
LayerNorm centers and rescales each feature vector, while the learnable parameters γ k and β k allow the network to adjust the resulting feature scales and offsets for prediction. This operation does not enforce identical feature distributions. This normalization can reduce variation in feature magnitudes across samples and branches, providing comparable numerical scales for subsequent fusion. It can also facilitate gradient propagation through the deep network and reduce the risk of one branch dominating the other because of disproportionately large feature magnitudes. The normalized feature vectors f a ~ and f b ~ retain degradation-related representations learned by the time-domain and time–frequency branches, respectively.
After normalization, the two feature vectors are concatenated along the feature dimension to form the joint representation h, which is used to compute the gating coefficient:
h = [ f ~ a ; f ~ b ]
Here, [⋅;⋅] denotes vector concatenation, yielding a joint representation h ∈ R2M. Concatenation preserves all components of both branch feature vectors without dimensionality reduction. The resulting representation enables the subsequent gating network to jointly analyze temporal degradation trends and local time–frequency variations.
To enable adaptive weighting, a gating multilayer perceptron (MLP) with two fully connected layers is applied to the joint representation h. The gating MLP has dimensions 256–64–1. The first layer linearly projects the joint features into a hidden space, combining information across time-domain and time–frequency feature dimensions. A Gaussian error linear unit (GELU) activation then introduces a smooth nonlinearity [27]. GELU smoothly modulates activations according to their input values, providing a flexible nonlinear mapping for features associated with gradual degradation and abrupt local changes. The second fully connected layer maps the hidden representation to a gating score, which is transformed by a sigmoid function into a gating coefficient g ∈ (0, 1). The two branch feature vectors are then weighted by g and 1 − g, respectively. The gating and weighting operations are expressed as follows:
g = σ ( W g 2 GELU ( W g 1 h + b g 1 ) + b g 2 ) ,     g ∈ ( 0 , 1 )
f fusion = [ g ⊙ f ~ a ; ( 1 − g ) ⊙ f ~ b ]
Here, Wg1 and bg1 denote the weight matrix and bias of the first fully connected layer in the gating MLP, while Wg2 and bg2 denote those of the second layer. The function σ denotes the sigmoid function, g is a scalar gating coefficient computed from the joint features of the current sample, and ffusion denotes the resulting gated feature representation. Because g and 1 − g sum to one, the two branches receive complementary weights.
The concatenation in Equation (4) provides information from both normalized branch representations for computing the gate. The regression head does not receive this unweighted joint representation directly. Instead, Equation (6) applies the complementary scalar weights g and 1 − g to the two branch vectors and concatenates the weighted features for regression. Thus, concatenation constructs the joint representation, while the learned gate introduces sample-dependent branch weighting. LayerNorm adjusts feature scales, while the gating MLP is trained endtoend to compute sample-dependent weights for the two normalized branch representations.
After gating, the fused features are passed to an MLP regression head to learn a nonlinear mapping from high-level degradation representations to RUL. The regression head has dimensions 256–64–1, with a dropout probability of 0.1 after the hidden-layer GELU activation. A fully connected layer first projects the 2M-dimensional fused feature vector into a lower-dimensional hidden space. GELU activation then introduces nonlinearity to model feature combinations associated with decreasing RUL. During training, dropout [28] randomly sets hidden activations to zero with a specified probability, reducing excessive reliance on individual features and helping mitigate overfitting. During inference, dropout is disabled, and all hidden activations are retained to produce deterministic predictions. The regression process can be summarized as follows:
y ^ = W r 2 Dropout { GELU ( W r 1 f fusion + b r 1 ) } + b r 2
Here, Wr1 and br1 denote the weight matrix and bias of the first fully connected layer in the regression head, while Wr2 and br2 denote those of the final output layer. The scalar output y ^ estimates the normalized remaining flank-wear margin associated with the current signal window. The first layer combines the gated time-domain and time–frequency features, and GELU introduces nonlinearity. Dropout provides regularization to support generalization, while the final linear layer maps the hidden representation to a single scalar. No bounded activation function, such as sigmoid, is applied to the output layer. The output scale is therefore learned from the training labels through the RUL regression loss, without an explicit bound on the prediction range.
Figure 1 illustrates the dual-branch feature fusion and soft-gating workflow, highlighting the connection between the gating and regression paths. The joint representation is used to compute the sample-dependent gating coefficient, while the weighted fused representation is passed to the regression head to estimate the normalized remaining flank-wear margin.
Figure 1. Dual-branch feature fusion and soft-gating mechanism. Orange, purple, and green denote gating, fusion, and regression, respectively; blue to yellow indicates increasing spectrogram intensity.
Figure 2 presents the overall Swin-Fusion architecture, showing the time-domain and time–frequency feature extraction branches and their connection to the soft-gated fusion and regression module. The two branches process paired representations of the same signal window, and their features are combined to estimate the normalized remaining flank-wear margin.
Figure 2. Swin-Fusion dual-branch milling tool life prediction model.

2.2. Model Transfer Learning Through Multilevel Domain-Adversarial Alignment

Domain-adversarial learning encourages features that remain informative for the prediction task while reducing their ability to distinguish the source and target domains [29,30]. In the present dual-branch architecture, the choice of alignment location is particularly relevant because the time-domain features fa, time–frequency features fb, and gated fused features ffusion represent different stages of information processing. Alignment at one location does not, by itself, establish that distribution discrepancies have been adequately addressed at the other locations.
This study therefore applies separate domain discriminators DA, DB, and DF to the time-domain, time–frequency, and fused representations, respectively. The branch-level objectives directly constrain the features supplied to the fusion module, while the fusion-level objective constrains the representation used by the regression head. Their weighted combination is optimized jointly with the source-domain regression objective. The design is motivated by the hypothesis that complementary constraints at these locations can improve predictive transfer compared with alignment at an individual location. This hypothesis is examined through the ablation comparisons in Section 3.4.

2.2.1. Domain Discriminators

The domain-adversarial neural network (DANN) framework comprises three functional modules: a feature extractor, a regression predictor (regression head), and a domain discriminator. For domain classification, a binary label d ∈ {0,1} indicates sample origin, with d = 0 denoting the source domain and d = 1 denoting the target domain. The domain discriminator takes the extracted features as input and outputs the estimated probability that a sample belongs to the target domain. If the discriminator readily distinguishes the two domains, the features retain substantial domain-specific information. Conversely, poor domain discrimination may indicate more domain-invariant representations, provided that the discriminator is sufficiently expressive and adequately trained. The domain classification loss is defined using binary cross-entropy as follows:
L dom θ g , θ d = − 1 N s + N t [ ∑ i = 1 N s log 1 − D G x i s + ∑ j = 1 N t log D G x j t ]
For the primary RUL regression task, the model is trained under supervision using source-domain samples with ground-truth RUL labels. Mean squared error (MSE) is used as the regression loss to minimize prediction errors.
L reg ( θ g , θ r ) = 1 N s ∑ i = 1 N s ( y i s − y ^ i s ) 2
Here, Ns denotes the number of source-domain samples, while y s i and y s i ^ denote the ground-truth and predicted RUL values for the i-th source-domain sample, respectively.
The domain discriminator minimizes L dom by updating its parameters θd to better distinguish source- from target-domain features. Conversely, the feature extractor seeks to maximize the domain classification loss while minimizing the source-domain regression loss, balancing reduced domain discriminability against predictive fitting on the labeled source data. These opposing domain classification objectives establish an adversarial optimization framework between the feature extractor and the domain discriminator in DANN.
Combining the RUL regression objective with domain-adversarial learning yields the following minimax formulation for DANN:
min θ g , θ r , max θ d L reg θ g , θ r − λ L dom θ g , θ d
Here, λ weights the domain-adversarial objective relative to the source-domain regression objective. Equation (10) expresses the conceptual minimax formulation. In the implementation, the opposing optimization directions are realized through gradient reversal, while the multilevel training loss is written in the positive-sum form given in Equation (14).
This objective combines source-domain regression supervision with adversarial domain classification. The regression term encourages features useful for predicting the source-domain labels, whereas the adversarial term encourages representations that are less distinguishable by the domain discriminator. Their joint optimization aims to balance predictive fitting and domain alignment. It does not guarantee the removal of all domain-specific information or the preservation of all degradation-relevant information, particularly when domain-dependent and predictive characteristics overlap.
In domain-adversarial transfer learning, the above minimax objective is difficult to optimize directly using standard gradient descent in neural networks. Conventional joint minimization may encourage the feature extractor to retain domain-specific information, thereby limiting cross-domain generalization [29,30]. To implement adversarial training, a gradient reversal layer (GRL) is introduced. During the forward pass, the GRL leaves ·the input features unchanged; during backpropagation, it reverses the gradients of the domain classification loss passed to the feature extractor. Gradient reversal implements the feature-side adversarial update, encouraging representations that are less distinguishable by the domain discriminator. Source-domain regression supplies the predictive supervision. Their combined effect on target-domain prediction is assessed experimentally. This process can be expressed as follows:
∂ L dom ∂ f ← − α ∂ L dom ∂ f
Here, f denotes the feature representation supplied to the domain discriminator, L dom is the domain classification loss, and α controls the strength of adversarial training.
To introduce adversarial constraints gradually, the three GRLs share the coefficient α p = 2 / 1 + exp − 10 p − 1 during domain adaptation. Here, p = t/(T − 1), where (t = 0,…,T − 1) is the optimization-step index within the adaptation stage and T > 1 is the total number of adaptation steps. The coefficient is updated at every optimization step, starting at zero and reaching approximately 0.99991 at the final step. The domain-loss weight λ remains fixed, while only the GRL coefficient is scheduled. Each GRL multiplies the domain-loss gradients passed to its upstream feature representation by − α , without applying this coefficient to the domain discriminator gradients. The coefficient α is therefore implemented through gradient reversal rather than as an additional multiplier of the forward domain loss.
The dual-branch architecture produces three feature representations for each sample: the time-domain features fa, the time–frequency features fb, and the fused features ffusion. Accordingly, three independent domain discriminators, DA, DB, and DF, are introduced to promote domain alignment of fa, fb, and ffusion, respectively. This multilevel alignment strategy is designed to jointly reduce domain discrepancies in the branch-specific and fused representations.
The domain discriminators attached to the time-domain and time–frequency branches each use a 128–64–1 architecture, while the fusion-level discriminator uses a 256–64–1 architecture. Each discriminator contains a hidden fully connected layer with GELU activation and a scalar output for binary domain classification. A sigmoid transformation converts the output logit into the target-domain probability. No additional dropout is applied in these discriminators.
Previous studies motivate feature-space alignment for distribution shifts in industrial time series [31,32,33]. The specific design choice here is to apply direct constraints to both branch outputs in addition to the gated fusion output. The branch-level losses constrain the representations supplied to the fusion module, whereas the fusion-level loss acts on the weighted joint representation used for regression. Because the gating coefficient varies between samples, reduced domain discriminability at the fusion output does not establish that both constituent branches are similarly aligned. The experiments therefore examine whether adding branch-level constraints provides predictive value beyond fusion-level alignment alone.

2.2.2. Loss Functions

At each feature level k ∈ {A,B,F}, a separate domain discriminator Dk(⋅) predicts the probability associated with the binary domain label d ∈ {0,1}, where d = 0 denotes the source domain and d = 1 denotes the target domain. The corresponding domain classification loss is defined using binary cross-entropy as follows:
L dom k = − E x s ∼ D s log 1 − D k f k s − E x t ∼ D t log D k f k t
Here, f k s and f k t denote the source- and target-domain feature representations at level k, respectively.
Multilevel domain alignment is formulated as a weighted sum of the three domain classification losses. Let L dom A , L dom B , and L dom F denote the domain classification losses for the time-domain, time–frequency, and fused features, respectively. The overall domain alignment loss is defined as follows:
L dom = ω A L dom A + ω B L dom B + ω F L dom F
Here, ωA, ωB, and ωF control the relative contributions of the three alignment losses. In the full model, ω A = ω B = ω F = 1 , so the domain losses are summed with equal weights.
To address distribution shifts and feature drift in milling tool RUL prediction across operating conditions, this study extends Swin-Fusion with domain-adversarial adaptation and multilevel feature alignment to develop a dual-branch prediction model. The Dual-Branch Domain-Adversarial RUL model (DB-DA) comprises four components: dual-branch feature extraction, feature fusion and RUL regression, adversarial training through gradient reversal, and multilevel alignment using domain discriminators. The joint objective combines source-domain predictive supervision with adversarial constraints that encourage reduced domain discriminability at the selected feature levels.
The domain discriminator parameters are updated through standard gradient descent to improve discrimination between the source and target domains. Meanwhile, the reversed gradients drive the feature extractor to oppose domain discrimination at the representation level. The RUL regression task and domain-adversarial constraints are integrated into a unified optimization framework. Combining the regression loss Lreg with the multilevel domain classification loss Ldom, the overall training objective Ltotal is defined as follows:
L total = L reg + λ · L dom = L reg + λ · ( ω A L dom A + ω B L dom B + ω F L dom F )
The overall training loss combines the regression loss with positively weighted domain classification losses. The adversarial sign is introduced by the GRLs during backpropagation. For alignment level k, the domain loss contributes a factor of − λα ω k to the upstream feature gradient, whereas the corresponding discriminator gradient is weighted by λ ω k , without gradient reversal. These opposing update directions are consistent with the minimax formulation in Equation (10), while the scheduled coefficient α progressively scales the feature-side adversarial contribution. During domain adaptation, λ = 0.95 and ω A = ω B = ω F = 1 remain fixed, and only α is scheduled. During source-domain pretraining, the domain-adversarial objectives are disabled.
This study extends the Swin-Fusion model with domain-adversarial adaptation and multilevel feature alignment to develop DB-DA, a dual-branch model for milling tool RUL prediction across operating conditions. Figure 3 illustrates the overall architecture of DB-DA.
Figure 3. DB-DA RUL prediction model based on multilevel domain alignment. The ellipses represent additional sensor channels or feature components in the schematic.

2.2.3. Model Prediction Workflow

Figure 4 summarizes the training and prediction workflow of DB-DA, from data input and adversarial training to parameter updates and target-domain inference. It illustrates how supervised source-domain regression and source–target feature alignment support target-domain RUL prediction. During adversarial training, labeled source-domain samples and unlabeled target-domain samples are jointly sampled and preprocessed. The time-domain and time–frequency branches extract degradation-related features, which are adaptively combined by the soft gating fusion module. The RUL regression loss is computed exclusively from source-domain predictions and their ground-truth labels. Features from both domains at the time-domain, time–frequency, and fusion levels are passed through gradient reversal layers to their corresponding domain discriminators to promote multilevel distribution alignment. The regression and domain alignment objectives jointly guide backpropagation and parameter updates. After convergence, the trained parameters are fixed, and target-domain samples are passed through the prediction network to estimate RUL. Model performance is then evaluated against target-domain ground-truth labels, which are used only for evaluation.
Figure 4. Training and inference flowchart of the dual-branch domain-adversarial RUL prediction model.
The DB-DA training and prediction workflow comprises five stages: data preprocessing, dual-branch feature extraction, multilevel domain-adversarial alignment, joint optimization, and target-domain inference. Source- and target-domain data are first sampled into batches and processed using a common pipeline for data cleaning, segmentation, normalization, and STFT-based time–frequency transformation. The resulting time-domain sequences and time–frequency representations are fed into their respective branches to extract degradation-related features. A soft gating module then adaptively fuses the branch outputs. The fused source-domain features are used for RUL prediction, and the supervised regression loss is computed from the predictions and source-domain labels. In parallel, features from both domains at the time-domain, time–frequency, and fusion levels are passed through GRLs to their corresponding domain discriminators to compute the multilevel domain classification losses. The losses are combined using their respective weights to form the total training loss, and the network parameters are updated through backpropagation. Once the specified number of training epochs is reached or the convergence criterion is met, the model parameters are fixed for inference. Target-domain samples are then processed by the trained prediction network to obtain RUL estimates and predicted RUL trajectories over the machining sequence.

2.3. Datasets and Cross-Domain Experimental Protocol

2.3.1. PHM2010 Source Dataset

The publicly available PHM2010 milling dataset from the Center for Intelligent Maintenance Systems at the University of Cincinnati, USA, is used as the source dataset for the transfer learning experiments. The dataset comprises dry milling experiments on Inconel 718 using a ball-end carbide cutter. The experimental setup includes a CNC vertical milling machine, cutting force sensors, accelerometers, a spindle current sensor, and a data acquisition system. Milling tests are conducted at a constant spindle speed and feed rate. Multichannel monitoring signals are recorded across wear stages and paired with corresponding tool wear measurements, capturing degradation from initial to severe wear. Its controlled experimental conditions, comprehensive monitoring signals, and well-defined wear labels provide a basis for learning tool degradation patterns. The dataset is therefore used for supervised source-domain training and feature transfer across operating conditions [34].
The setup comprises an RFM760 high-speed CNC milling machine (Röders GmbH, Soltau, Germany), a workholding fixture, sensors, amplifiers, and a data acquisition system. Inconel 718 workpieces are machined under dry cutting conditions using a 6 mm diameter ball-end carbide cutter. The machining parameters are held constant: a spindle speed of 10,400 rpm, a feed rate of 1555 mm/min, a radial depth of cut of 0.125 mm, and an axial depth of cut of 0.2 mm. Figure 5 illustrates the milling and signal acquisition setup used in the PHM2010 experiments.
Figure 5. PHM2010 Cutting Tool Test Platform.
Multiple milling tools undergo successive passes under identical conditions. Cutting-edge flank wear is measured offline after each pass using a Leica MZ12 microscope (Leica Microsystems, Heerbrugg, Switzerland). These measurements link cutting passes and monitoring signals to tool degradation. Table 1 summarizes the PHM2010 machining parameters.
Table 1. Main milling parameters of the PHM2010 dataset.
The source-domain dataset records three-axis cutting forces and vibrations using a 9265B dynamometer beneath the workpiece and 8636C accelerometers, respectively. An AE sensor detects high-frequency elastic waves from tool–workpiece contact. These sensors and the 5019A charge amplifiers are from Kistler Instrumente AG (Winterthur, Switzerland). Signals are sampled synchronously at 50 kHz using NI acquisition equipment (National Instruments Corporation, Austin, TX, USA). Each pass yields seven channels: three cutting force signals (Fx, Fy, and Fz), three vibration signals (Vx, Vy, and Vz), and an acoustic emission root mean square (AE-RMS) signal. Together, these channels form multichannel observation sequences spanning tool wear progression.

2.3.2. HMoTP Target Dataset

The publicly available HMoTP tool wear monitoring dataset for high-speed milling of thin-walled workpieces, released by a research team at Shandong University, is used as the target dataset in the transfer learning experiments. The dataset comprises high-speed end milling experiments on Ti–6Al–4V thin-walled workpieces. As material is progressively removed, structural stiffness decreases, increasing susceptibility to fluctuations in cutting forces and vibrations. These effects can produce signal distributions that differ substantially from those observed under conventional rigid machining conditions. The domain shifts associated with structural flexibility and high-speed cutting make this dataset suitable for evaluating the proposed adversarial domain adaptation method and its predictive performance across operating conditions [35].
The DMU70V five-axis machining center (DECKEL MAHO Pfronten GmbH, Pfronten, Germany) machines 150 mm × 100 mm × 5 mm Ti–6Al–4V thin-walled workpieces with a 14 mm end mill fitted with two AlTiN-coated APMT1135PDER inserts. The constant machining parameters are a spindle speed of 8000 rpm, a feed rate of 1280 mm/min, a radial depth of cut of 0.2 mm, and an axial depth of cut of 4 mm. With two cutting teeth, these settings correspond to a feed per tooth of 0.08 mm/tooth. Figure 6 illustrates the experimental setup for high-speed milling of thin-walled workpieces at Shandong University.
Figure 6. Shandong University’s experimental platform for high-speed milling of thin-walled components.
To limit interference associated with workpiece deformation and machining instability, thin-walled workpieces are replaced after a specified number of cutting passes. This procedure supports signal repeatability and the traceability of tool wear measurements. Table 2 summarizes the key experimental parameters of the HMoTP dataset.
Table 2. High-speed milling parameters for thin-walled components at Shandong University.
The target-domain dataset records both cutting loads and structural responses. Cutting forces and moments are measured using a Kistler rotating dynamometer (Kistler Instrumente AG, Winterthur, Switzerland) and transmitted through a Kistler 5347A4 wireless acquisition module. Vibration signals are collected using a Dytran 3263A1 (Dytran Instruments, Inc., Chatsworth, CA, USA) triaxial accelerometer mounted on the rear surface of the thin-walled workpiece, with an NI PXIe-4464 (National Instruments Corporation, Austin, TX, USA) data acquisition card used for synchronized sampling. All channels are sampled at a common frequency of 5000 Hz. Each cutting pass yields seven synchronized signals: three cutting force components (Fx, Fy, and Fz), the moment about the z-axis (Mz), and three vibration components (Vx, Vy, and Vz). Together, these signals form multichannel observation sequences for characterizing tool wear progression.

2.3.3. Preprocessing, Relative Life Labels, and Training Protocol

A cross-dataset transfer learning task is established using PHM2010 as the source dataset and the HMoTP tool wear dataset for high-speed milling of thin-walled workpieces from Shandong University as the target dataset. Both datasets capture progressive tool wear during machining and support a common RUL prediction task, providing a basis for learning transferable degradation representations. However, the datasets differ substantially in machining equipment, workpiece materials, tool geometries, cutting parameters, sensor configurations, and sampling conditions. PHM2010 represents conventional milling of rigid Inconel 718 workpieces, whereas the target dataset concerns high-speed milling of Ti–6Al–4V thin-walled workpieces. In the latter, structural stiffness changes as material is removed, potentially increasing nonstationarity in vibration and cutting load distributions. These differences can induce shifts in signal magnitudes, spectral content, noise levels, and degradation feature distributions, creating a challenging setting for evaluating predictive transfer across equipment, materials, and operating conditions.
To establish a consistent channel configuration across datasets, the model uses the six shared sensing channels: three cutting-force components and three vibration components. These channels are arranged in the order [Fx,Fy,Fz,Vx,Vy,Vz], according to the documented axis labels. The AE-RMS channel in PHM2010 and the z-axis moment channel in HMoTP are excluded from the model inputs because they represent different sensing modalities.
Before sample segmentation, the retained PHM2010 signals are downsampled from 50 kHz to 5 kHz using polyphase FIR resampling with anti-alias filtering. The HMoTP signals retain their original sampling rate of 5 kHz. Each machining record is processed separately, with the same resampling operation applied to all synchronized channels. This establishes a common sampling interval across the two datasets.
Following resampling, each retained channel is standardized independently using Z-score normalization. For each domain, the channel-wise mean and standard deviation are estimated exclusively from its training partition, before sliding-window segmentation. In the target domain, these statistics are obtained from the unlabeled adaptation data without using RUL labels. The resulting parameters are fixed and applied to the corresponding test partition.
After resampling and standardization, both datasets are segmented into 4096-sample windows with a stride of 2048 samples, corresponding to a common window duration of 0.8192 s and a segmentation interval of 0.4096 s. The time-domain branch processes these standardized segments directly. For the time–frequency branch, the same segments are transformed using a 512-sample Hann window, a 512-point FFT, and a hop length of 128 samples. These settings provide a common analysis-window duration of 102.4 ms, a temporal step of 25.6 ms, and a frequency-bin spacing of approximately 9.7656 Hz. Identical boundary handling and spectral scaling are applied, and the one-sided spectrograms cover the common frequency range of 0–2.5 kHz. The resulting maps are resized to 224 × 224 pixels using the same interpolation procedure. This processing establishes comparable physical time–frequency coordinates within the analyzed band; source-domain frequency content above that band is excluded.
Flank wear width VB is used to characterize tool degradation. Because a predefined operational end-of-life wear criterion is unavailable for the present experiments, each tool’s final recorded wear value is adopted as an experimental endpoint reference for label construction. This reference corresponds to the wear measured at the 315th machining pass in PHM2010 and the 100th machining pass in HMoTP. It marks the end of the observed record and is not assumed to represent an independently verified physical failure point. Let VBj,i denote the flank wear width of tool j after machining pass i. The tool-specific endpoint reference is defined as follows:
V B lim , j = { V B j , 315 ,   j ∈ D s , V B j , 100 ,   j ∈ D t ,
Here, D s and D t denote the sets of tools in the source and target domains, respectively. The normalized relative RUL label is defined from the remaining wear margin as follows:
RU L j , i wear = clip ( V B lim , j − V B j , i V B lim , j − V B ini , j , 0 , 1 ) ,
Here, VBini,j denotes the first valid flank-wear measurement for tool j, with VBlim,j > VBini,j. The clipping operation restricts the label to [0, 1]. The label equals one at the initial reference state and zero when wear reaches the experimental endpoint reference. It serves as the regression target and is multiplied by 100 for presentation in the figures. Physically, Equation (16) represents the normalized remaining flank-wear margin, rather than the remaining machining time or number of cutting passes.
The final recorded wear values are used retrospectively to construct the reference labels and are not supplied as input variables to the prediction network. During inference, the network receives monitoring signals and can therefore produce a normalized prediction without knowing the new tool’s final wear value.
Transfer learning proceeds in two stages: source-domain pretraining and domain adaptation. During pretraining, only PHM2010 samples with RUL labels are used to learn the relationship between tool degradation and RUL by minimizing the regression loss. During domain adaptation, source- and target-domain samples are jointly processed in batches. Source samples contribute to both supervised RUL regression and domain classification, whereas target training samples contribute only to domain classification and feature alignment using domain labels, without their ground-truth RUL labels. Gradient reversal layers and multilevel domain discriminators jointly promote alignment of the time-domain, time–frequency, and fused features to reduce distribution discrepancies between the source and target domains.
The data are divided chronologically within each tool record at the machining-file level before sliding-window segmentation [36]. Each machining file is assigned exclusively to either the training/adaptation partition or the test partition. Sliding windows are then generated separately within each partition, ensuring that no machining file or raw signal sample is shared between training and testing.
During domain adaptation, unlabeled samples from the first 85% of each target tool’s record are used for feature alignment, while the remaining 15% are reserved for testing. This evaluation focuses on later-stage prediction following adaptation using preceding observations from the same target tools, without using their RUL labels for training. Further tool-level holdout experiments would help establish the framework’s generalization capability for entirely unseen target tools.
The batch size is set to 16. The time-domain branch uses a hidden dimension of 128, four attention heads, and three Transformer encoder layers. The time–frequency branch employs a Swin Transformer to extract local time–frequency texture features. AdamW is used for optimization [37,38]. Source-domain pretraining runs for eight epochs with a learning rate of 7 × 10−4, followed by ten epochs of domain adaptation with a learning rate of 5 × 10−4. Weight decay is applied to help mitigate overfitting. Window-level predictions within each cutting file are aggregated to obtain a file-level estimate of the normalized remaining flank-wear margin. These estimates are arranged in machining order to construct the predicted degradation trajectory. The Transformer operates within individual signal windows, rather than processing the complete tool-life sequence as a single input.

3. Results

3.1. Prediction Performance

After training, predictive performance is quantitatively evaluated on the held-out source- and target-domain test sets using RMSE, MAE, and the coefficient of determination (R2).
Complete recorded tool sequences are shown for visualization, whereas the reported test metrics are calculated exclusively from the final 15% of chronologically ordered machining files. The preceding 85% are used for supervised training in the source domain and, where applicable, unlabeled adaptation in the target domain. In the direct-transfer and no-alignment settings, target-domain observations do not participate in model parameter updates. Trajectory portions outside the held-out test interval provide visual context and are excluded from the reported test metrics.
Figure 7 presents the RUL predictions over the complete life sequences of the three target-domain tools (T1, T2, and T3), while Figure 8 shows the corresponding results for the three source-domain tools (c1, c4, and c6). In both figures, the horizontal axis denotes the sample index, and the vertical axis denotes normalized RUL. The curves compare the ground-truth and predicted RUL trajectories.
Figure 7. RUL prediction results for the DB-DA model across the entire target domain lifecycle.
Figure 8. RUL prediction results for the DB-DA model across the entire source-domain lifecycle.
On the target-domain test set, DB-DA tracks the overall RUL trend, with predictions closely following the ground-truth trajectory. This agreement supports its ability to model tool degradation across operating conditions. Although deviations remain during periods of rapid local change, the model captures the overall decline in RUL. Together with the source-domain test results, these findings suggest that domain-adversarial learning and multilevel feature alignment help mitigate the effects of distribution shifts and support predictive transfer across operating conditions.
Table 3 reports RMSE, MAE, and R2 against the endpoint-referenced labels for the source- and target-domain test sets. These metrics assess prediction accuracy for the normalized remaining flank-wear margin using each tool’s own initial and final recorded wear references. These results suggest that domain-adversarial transfer learning supports prediction of the normalized remaining flank-wear margin across the evaluated operating conditions.
Table 3. RUL prediction metrics of the DB-DA model in the source and target domains.

3.2. Source-Domain Backbone Comparison

Comparative experiments on the PHM2010 source-domain test set assess the ability of the Swin-Fusion dual-branch architecture to represent tool degradation. These experiments help distinguish the contribution of the architecture from that of domain adaptation to subsequent cross-domain prediction performance. The comparison models include CNN-LSTM [39], Transformer [23], and ResNet18 [40]. CNN-LSTM combines convolutional feature extraction with recurrent temporal modeling. Transformer evaluates global temporal dependency modeling through a single pathway, whereas ResNet18 assesses local pattern extraction using a deep convolutional architecture. All models use the same data split, input samples, and evaluation metrics. RMSE and MAE quantify prediction errors, while the coefficient of determination (R2) measures goodness of fit.
Table 4 summarizes the prediction metrics averaged across the source-domain tools c1, c4, and c6 for each model. Figure 9 presents the per-tool results alongside their averages. The averaged metrics assess overall predictive performance, while the per-tool metrics reveal variation in performance across tool degradation sequences.
Table 4. Average prediction performance of different models on the PHM2010 source-domain test set.
Figure 9. Performance comparison of different models on the PHM2010 source-domain test set.
Table 4 and Figure 9 show that Swin-Fusion achieves lower prediction errors than the evaluated comparison models under the source-domain protocol. Its dedicated pathways allow temporal relationships within each signal window and local time–frequency patterns to be represented separately before fusion. This offers a plausible explanation for the observed advantage over the comparison architectures. Prediction errors are generally lower for c4 than for c1 and c6, indicating that the relative difficulty of the tool records is also reflected across different models. These results support selecting Swin-Fusion as the backbone for the subsequent adaptation experiments.

3.3. Direct Cross-Domain Transfer

To assess direct cross-domain transfer before domain adaptation, Swin-Fusion is evaluated immediately after eight epochs of source-domain pretraining. The resulting checkpoint is applied directly to tools T1, T2, and T3 in the HMoTP dataset from Shandong University, without further parameter updates or target-domain adaptation. Figure 10 and Table 5 present the RUL prediction results. In Figure 10, the horizontal axis denotes the sample index, and the vertical axis denotes normalized RUL. The curves compare the ground-truth and predicted RUL trajectories.
Figure 10. Prediction results of the Swin-Fusion model under direct cross-condition transfer.
Table 5. RUL prediction metrics of the Swin-Fusion model under direct cross-condition transfer.
As shown in Figure 10, without domain adaptation, the predicted RUL trajectories deviate substantially from the ground truth and fail to adequately capture the overall degradation trend in the target domain. Table 5 reports high RMSE and MAE values for all three tools (T1, T2, and T3), indicating poor predictive performance. These results suggest that representations learned under a single operating condition may not transfer effectively to data acquired under different conditions.
The contrast between Table 3 and Table 5 indicates that source-domain predictive accuracy alone is insufficient for effective transfer to the evaluated target tools. The lower errors after adaptation are consistent with the value of incorporating unlabeled target observations into representation learning. However, this comparison includes both additional training and domain-adversarial adaptation, so the entire improvement should not be attributed to alignment alone. The additionally trained source-only variant in Table 6 provides a more closely matched comparison for examining the contribution of the alignment objectives.
Table 6. Performance metrics of different ablation settings.

3.4. Ablation Study

The ablation study examines the choice of domain-alignment locations within the dual-branch predictor. Its purpose is to determine whether the coordinated constraints on the time-domain, time–frequency, and fused representations provide additional predictive value beyond the evaluated individual alignment configurations.
Three questions guide the comparisons. First, does introducing domain-adversarial alignment improve target-domain prediction relative to source-only regression? Second, does adding both branch-level constraints provide additional value beyond fusion-level alignment alone? Third, how does the complete configuration compare with alignment restricted to either the time-domain or the time–frequency branch?
To address these questions, the complete DB-DA model is compared with four variants: no domain-adversarial alignment, fusion-level alignment only, time-domain alignment only, and time–frequency alignment only. Performance is evaluated for T1, T2, and T3 using RMSE, MAE, and R2. The full-model comparison with fusion-only alignment examines the combined contribution of the two branch-level constraints. Comparisons with the individual branch-level variants assess the complete configuration against alternative alignment locations. These comparisons do not independently quantify every interaction among the three alignment objectives.
(1)
Removal of Domain-Adversarial Alignment
The no-alignment variant in Table 6 is initialized from the same source-domain pretrained checkpoint used for direct transfer. Unlike the direct-transfer baseline, it undergoes ten additional epochs of supervised training on labeled source-domain data, using the second-stage learning rate of 5 × 10−4. The GRLs and domain discriminators are removed, and no target-domain samples contribute to parameter updates. The preprocessing and target-domain evaluation protocol remain unchanged. Thus, Table 5 and Table 6 evaluate different training endpoints: immediate transfer after pretraining and transfer after additional source-only training, respectively. Their performance difference should therefore be interpreted in the context of these distinct training budgets.
(2)
Comparison of Multilevel and Single-Level Alignment
Because the dual-branch network contains both branch-specific and fused representations, three single-level alignment variants are evaluated against the full multilevel alignment model. This comparison assesses how the choice of alignment level affects cross-domain RUL prediction performance.
(i)
Fusion-Layer Alignment Only (Only DF Retained)
This variant applies domain-adversarial alignment only to the fused features, removing the domain discriminators from the time-domain and time–frequency branches. This experiment assesses whether aligning the high-level fused representation alone provides sufficient alignment between the source and target domains.
(ii)
Time-Domain Branch Alignment Only (Only DA Retained)
This variant applies adversarial alignment only to the time-domain branch features, removing the domain discriminators from the time–frequency branch and the fusion layer. This experiment assesses the contribution of aligning time-domain degradation features to cross-domain RUL prediction.
(iii)
Time–Frequency Branch Alignment Only (Only DB Retained)
This variant applies domain-adversarial alignment only to the time–frequency branch features, removing the domain discriminators from the time-domain branch and the fusion layer. This experiment examines how alignment of the time–frequency representations affects target-domain prediction accuracy relative to the other evaluated alignment configurations.
These ablation experiments systematically assess the proposed multilevel domain alignment strategy by evaluating the overall benefit of adversarial alignment and the contribution of alignment at different feature levels.
Figure 11, Figure 12, Figure 13 and Figure 14 show that DB-DA more consistently follows the monotonic decline in ground-truth RUL for the target-domain tools T1, T2, and T3. Agreement is particularly strong during the middle and late life stages and periods of accelerated degradation. Removing adversarial alignment produces larger local deviations across all three tools, supporting its role in mitigating the effects of domain shifts. The single-level variants, which align only the fused, time-domain, or time–frequency features, also show less consistent agreement with the ground truth than the full model. The quantitative comparisons in Table 3 and Table 6 show higher prediction errors for the evaluated single-level variants than for the full configuration. This supports the predictive benefit of coordinated alignment under the evaluated protocol, rather than directly establishing the degree of feature-distribution alignment. Overall, the ablation comparisons support the predictive value of multilevel domain-adversarial alignment under the evaluated PHM2010-to-HMoTP transfer protocol, as reflected in the lower RMSE and MAE and higher R2 reported for the full model.
Figure 11. Prediction results without domain-adversarial alignment.
Figure 12. Prediction results with fusion-layer alignment only.
Figure 13. Prediction results with temporal-branch alignment only.
Figure 14. Prediction results with time–frequency-branch alignment only.
Table 6 reports the prediction metrics of the alignment ablation variants across the three target-domain tools, while Table 3 provides the corresponding results for the full DB-DA model. The full model achieves average RMSE, MAE, and R2 values of 6.7872, 3.6113, and 0.9802, respectively. Removing domain-adversarial alignment increases RMSE and MAE and reduces R2 on all three tools. The single-level variants retaining only DA, DB, or DF also yield higher prediction errors than the full model across the three tools.
The comparison with fusion-only alignment supports the additional predictive value of the two branch-level constraints when applied together. Comparisons with the individual branch-level variants further support the complete alignment configuration among the settings evaluated. Figure 15 presents the three evaluation metrics for visual comparison. These results support coordinated multilevel alignment for predicting the normalized remaining flank-wear margin under the evaluated PHM2010-to-HMoTP chronological within-tool adaptation protocol.
Figure 15. Comparison of different ablation settings.

4. Discussion

The evaluated PHM2010-to-HMoTP transfer task combines differences in workpiece material, machining equipment, cutter configuration, and signal acquisition. The reported comparisons suggest that source-domain accuracy alone does not ensure effective target-domain prediction. Alignment of both branch-specific and fused representations offers a plausible means of reducing residual domain discrepancies, while soft gating combines complementary temporal and time–frequency information.
The prediction target is a normalized remaining flank-wear margin defined using each tool’s final recorded wear value as an experimental endpoint reference. It should therefore be interpreted as a relative degradation index rather than a direct estimate of remaining machining time or cutting passes. The endpoint-based definition also limits direct deployment when the eventual tool-specific endpoint is unknown.
For application to tools with unknown terminal flank-wear thresholds, the proposed framework could be extended to predict the remaining machining time or cutting passes. An operational end-of-life criterion would first be established from application requirements and verified historical tool records, independently of the new tool’s eventual wear value. Historical records would provide the remaining-life labels for training the regression head, while the feature extraction and domain-adaptation framework could be retained. During operation, predictions would use only the monitoring signals available at the prediction time. The new tool’s final wear value would therefore not be required as an input.
The conclusions are limited to the evaluated transfer direction and chronological within-tool split. Full-sequence plots include observations outside the held-out evaluation interval and should be interpreted as trajectory visualizations. Further validation on independent target tools, additional transfer directions, and variable cutting conditions is needed to assess broader deployment. Repeated runs, uncertainty estimates, and measurements of computational cost would strengthen the assessment of robustness and practical feasibility.

5. Conclusions

This study develops DB-DA by extending the dual-branch Swin-Fusion model with gradient reversal and multilevel domain-adversarial alignment to predict the normalized remaining flank-wear margin of milling tools. The method combines time-domain and time–frequency branches to extract complementary degradation features and applies adversarial alignment to both branch-specific and fused representations. This design aims to reduce feature distribution discrepancies associated with differences in equipment, materials, and machining conditions. PHM2010-to-HMoTP experiments support the predictive value of the proposed configuration for later-stage observations following adaptation using earlier unlabeled observations from the same target tools. The following conclusions are drawn:
(1)
Time-domain signals and time–frequency representations provide complementary perspectives on tool degradation. The time-domain branch models temporal dependencies associated with cutting-load and vibration variations within each input signal window, while the time–frequency branch extracts local spectral patterns and time–frequency textures. Soft gating computes a sample-dependent scalar coefficient and applies complementary weights to the two branch representations before concatenation and regression.
(2)
Gradient reversal layers enable adversarial optimization of multilevel domain objectives jointly with supervised source-domain regression of the normalized remaining flank-wear margin. Separate domain discriminators are introduced at the time-domain, time–frequency, and fused feature levels to implement multilevel adversarial alignment. These objectives are designed to reduce source–target separability while retaining predictive information through source-domain supervision. Their contribution is supported by the prediction ablations, although these comparisons do not directly quantify feature-distribution alignment.
(3)
DB-DA achieves favorable predictive performance on both the source- and target-domain test sets. Across the held-out final 15% of the records for target-domain tools T1, T2, and T3, the arithmetic means of the per-tool RMSE, MAE, and R2 values are 6.7872, 3.6113, and 0.9802, respectively. The corresponding averages for the source-domain tools C1, C4, and C6 are 3.3348, 1.9051, and 0.9835. In the source-domain backbone comparison, Swin-Fusion achieves lower average RMSE and MAE than CNN-LSTM, Transformer, and ResNet18. These results support the predictive performance of Swin-Fusion relative to the evaluated source-domain baselines, although they do not isolate the contributions of the individual branches or the soft gating mechanism. DB-DA yields lower target-domain prediction errors than direct transfer from the source-pretrained checkpoint, although this comparison includes both additional training and domain adaptation. Ablation experiments show that removing adversarial alignment or restricting alignment to a single feature level degrades prediction performance to varying degrees. The controlled alignment ablations support the predictive value of the complete multilevel configuration for the normalized remaining flank-wear margin under the evaluated chronological within-tool protocol.
The results support the potential of the proposed framework for cross-dataset prediction of a relative tool degradation index; however, its endpoint-referenced labels and chronological within-tool evaluation limit conclusions about operational remaining life and generalization to entirely unseen target tools. Future work will prioritize operational end-of-life criteria independent of each new tool’s eventual wear value, tool-level holdout validation, and additional transfer directions. Further studies will examine variable cutting conditions, repeated-run uncertainty, computational cost, online adaptation, and model compression.

Author Contributions

Conceptualization, R.Z. and R.P.; methodology, R.Z.; software, R.Z.; validation, R.Z.; formal analysis, R.Z. and X.Z.; investigation, R.Z. and Z.W.; resources, R.P.; data curation, R.Z., X.Z. and Z.W.; writing—original draft preparation, R.Z.; writing—review and editing, R.P., X.Z. and Z.W.; visualization, R.Z.; supervision, R.P.; project administration, R.P.; funding acquisition, R.P. All authors have read and agreed to the published version of the manuscript.

Funding

This study was funded by the Natural Science Foundation of Inner Mongolia Autonomous Region (grant number 2024LHMS05029).

Data Availability Statement

The PHM2010 dataset used in this study is publicly available from the PHM Society at https://phmsociety.org/phm_competition/2010-phm-society-conference-data-challenge/ (accessed on 14 October 2026). The HMoTP dataset is publicly available from the research team at Shandong University through Mendeley Data at https://data.mendeley.com/datasets/6j9gdnfffj/1 (accessed on 14 October 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Chen, X.; Song, Y.; Kong, W.; Chen, D.; Yang, X. Overview of tool wear detection based on deep learning. Oper. Res. Fuzziol. 2023, 13, 1186–1203. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Yuan, J.; Liu, L.; Zhang, Y.; Yang, Z. Survey of research on detection methods for tool wear condition. Mod. Manuf. Eng. 2021, 3, 152–160. [Google Scholar] [CrossRef]
  3. Xu, X.; Wang, J.; Zhong, B.; Ming, W.; Chen, M. Deep learning-based tool wear prediction and its application for machining process using multi-scale feature fusion and channel attention mechanism. Measurement 2021, 177, 109254. [Google Scholar] [CrossRef] [Scilit]
  4. Liu, H.; Zhang, S.; Li, J.; Luan, X. Tool wear detection based on improved CNN-BiLSTM model. China Mech. Eng. 2022, 33, 1940–1947, 1956. [Google Scholar]
  5. Wang, K.; Wang, A.; Wu, L.; Xie, G. Machine tool wear prediction technology based on multi-sensor information fusion. Sensors 2024, 24, 2652. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. He, Z.; Shi, T.; Xuan, J. Milling tool wear prediction using multi-sensor feature fusion based on stacked sparse autoencoders. Measurement 2022, 190, 110719. [Google Scholar] [CrossRef] [Scilit]
  7. Jones, T.; Cao, Y. Tool wear prediction based on multisensor data fusion and machine learning. Int. J. Adv. Manuf. Technol. 2025, 137, 5213–5225. [Google Scholar] [CrossRef] [Scilit]
  8. Guo, H.; Zhang, Y.; Zhu, K. Interpretable deep learning approach for tool wear monitoring in high-speed milling. Comput. Ind. 2022, 138, 103638. [Google Scholar] [CrossRef] [Scilit]
  9. Li, W.; Fu, H.; Han, Z.; Zhang, X.; Jin, H. Intelligent tool wear prediction based on Informer encoder and stacked bidirectional gated recurrent unit. Robot. Comput.-Integr. Manuf. 2022, 77, 102368. [Google Scholar] [CrossRef] [Scilit]
  10. Hao, C.; Mao, X.; Ma, T.; He, S.; Li, B.; Liu, H.; Peng, F.; Zhang, L. A novel deep learning method with partly explainable: Intelligent milling tool wear prediction model based on Transformer informed physics. Adv. Eng. Inform. 2023, 58, 102106. [Google Scholar] [CrossRef] [Scilit]
  11. Si, S.; Mu, D.; Si, Z. Intelligent tool wear prediction based on deep learning PSD-CVT model. Sci. Rep. 2024, 14, 20754. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Hou, K.; Li, R.; Liu, X.; Yue, C.; Wang, Y.; Liu, X.; Xia, W. Swin-Fusion: An adaptive multi-source information fusion framework for enhanced tool wear monitoring. J. Manuf. Syst. 2025, 79, 435–454. [Google Scholar] [CrossRef] [Scilit]
  13. Marei, M.; El Zaatari, S.; Li, W. Transfer learning enabled convolutional neural networks for estimating health state of cutting tools. Robot. Comput.-Integr. Manuf. 2021, 71, 102145. [Google Scholar] [CrossRef] [Scilit]
  14. Li, J.; Lu, J.; Chen, C.; Ma, J.; Liao, X. Tool wear state prediction based on feature-based transfer learning. Int. J. Adv. Manuf. Technol. 2021, 113, 3283–3301. [Google Scholar] [CrossRef] [Scilit]
  15. Wang, D.; Liu, Q.; Wu, D.; Wang, L. Meta domain generalization for smart manufacturing: Tool wear prediction with small data. J. Manuf. Syst. 2022, 62, 441–449. [Google Scholar] [CrossRef] [Scilit]
  16. Liu, C.; Li, Y.; Li, J.; Hua, J. A meta-invariant feature space method for accurate tool wear prediction under cross conditions. IEEE Trans. Ind. Inform. 2022, 18, 922–931. [Google Scholar] [CrossRef] [Scilit]
  17. Wang, X.; Jiang, H.; Dong, Y.; Mu, M. Spatial-channel collaborative multi-scale graph interaction deep transfer learning for unsupervised rotating machinery fault diagnosis. Eng. Appl. Artif. Intell. 2026, 176, 114691. [Google Scholar] [CrossRef] [Scilit]
  18. Li, Z.; Jiang, H.; Dong, Y. A convolutional-transformer reinforcement learning agent for rotating machinery fault diagnosis. Expert Syst. Appl. 2025, 271, 126669. [Google Scholar] [CrossRef] [Scilit]
  19. Huang, Z.; Shao, J.; Zhu, J.; Zhang, W.; Li, X. Tool wear condition monitoring across machining processes based on feature transfer by deep adversarial domain confusion network. J. Intell. Manuf. 2024, 35, 1079–1105. [Google Scholar] [CrossRef] [Scilit]
  20. He, J.; Sun, Y.; Yin, C.; He, Y.; Wang, Y. Cross-domain adaptation network based on attention mechanism for tool wear prediction. J. Intell. Manuf. 2023, 34, 3365–3387. [Google Scholar] [CrossRef] [Scilit]
  21. Li, K.; Chen, M.; Lin, Y.; Li, Z.; Jia, X.; Li, B. A novel adversarial domain adaptation transfer learning method for tool wear state prediction. Knowl.-Based Syst. 2022, 254, 109537. [Google Scholar] [CrossRef] [Scilit]
  22. Zhu, Y.; Zi, Y.; Xu, J.; Li, J. An unsupervised dual-regression domain adversarial adaption network for tool wear prediction in multi-working conditions. Measurement 2022, 200, 111644. [Google Scholar] [CrossRef] [Scilit]
  23. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Volume 30, pp. 5998–6008. [Google Scholar]
  24. Allen, J.B. Short term spectral analysis, synthesis, and modification by discrete Fourier transform. IEEE Trans. Acoust. Speech Signal Process. 1977, 25, 235–238. [Google Scholar] [CrossRef] [Scilit]
  25. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical vision Transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar]
  26. Ba, J.L.; Kiros, J.R.; Hinton, G.E. Layer normalization. arXiv 2016, arXiv:1607.06450. [Google Scholar]
  27. Hendrycks, D.; Gimpel, K. Gaussian error linear units (GELUs). arXiv 2016, arXiv:1606.08415. [Google Scholar]
  28. Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A simple way to prevent neural networks from overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
  29. Ganin, Y.; Ustinova, E.; Ajakan, H.; Germain, P.; Larochelle, H.; Laviolette, F.; Marchand, M.; Lempitsky, V. Domain-adversarial training of neural networks. J. Mach. Learn. Res. 2016, 17, 1–35. [Google Scholar]
  30. Long, M.; Cao, Z.; Wang, J.; Jordan, M.I. Conditional adversarial domain adaptation. In Proceedings of the Advances in Neural Information Processing Systems, Montréal, QC, Canada, 2–8 December 2018; Volume 31, pp. 1645–1655. [Google Scholar]
  31. Pan, S.J.; Yang, Q. A survey on transfer learning. IEEE Trans. Knowl. Data Eng. 2010, 22, 1345–1359. [Google Scholar] [CrossRef] [Scilit]
  32. Shi, Y.; Ying, X.; Yang, J. Deep unsupervised domain adaptation with time series sensor data: A survey. Sensors 2022, 22, 5507. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Zhang, S.; Su, L.; Gu, J.; Li, K.; Zhou, L.; Pecht, M. Rotating machinery fault detection and diagnosis based on deep domain adaptation: A survey. Chin. J. Aeronaut. 2023, 36, 45–74. [Google Scholar] [CrossRef] [Scilit]
  34. PHM Society. 2010 PHM Society Conference Data Challenge. 18 May 2010. Available online: https://phmsociety.org/phm_competition/2010-phm-society-conference-data-challenge/ (accessed on 15 July 2026).
  35. Wang, R.; Song, Q.; Peng, Y.; Qin, J.; Liu, Z.; Liu, Z. Toward digital twins for high-performance manufacturing: Tool wear monitoring in high-speed milling of thin-walled parts using domain knowledge. Robot. Comput.-Integr. Manuf. 2024, 88, 102723. [Google Scholar] [CrossRef] [Scilit]
  36. Bergmeir, C.; Benítez, J.M. On the use of cross-validation for time series predictor evaluation. Inf. Sci. 2012, 191, 192–213. [Google Scholar] [CrossRef] [Scilit]
  37. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations, San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  38. Loshchilov, I.; Hutter, F. Decoupled weight decay regularization. In Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  39. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  40. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 26 June–1 July 2016; pp. 770–778. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.