Physics guided semantic consistency learning for bearing fault diagnosis in agricultural machinery under operating condition shifts Authors: Zhenlong Li, Shanyu Piao, Haowei Li Published: 2026 ABSTRACT AbstractRolling bearings in agricultural machinery operate under pronounced operating-condition shifts, such as speed and load fluctuations and contamination-related noise, which often induce a distribution mismatch between training and deployment signals. This work studies bearing fault diagnosis under a source-only, single-source domain generalization (DG) setting, where the model is trained and selected using only source-domain data, and samples from the target operating condition or target dataset are not used for training, validation, hyperparameter selection, band-pass selection, or early stopping. We formulate cross-condition robustness as a semantic consistency problem between two complementary representations: an analytic mechanism-oriented representation emphasizing impact-related resonance demodulation, and a data-driven temporal representation learned from raw waveforms. A dual-path framework is developed accordingly. The analytic path learns a differentiable soft band-pass mask to localize an informative resonance band and constructs an impulse-oriented descriptor from statistics of the band-pass signal, its Hilbert envelope, and squared-envelope energy. The temporal path encodes normalized raw segments using a lightweight dilated one-dimensional convolutional network with temporal-attention pooling. The two embeddings are fused by a sample-wise gate, with an entropy penalty used to discourage near-uniform averaging. This design aims to improve cross-condition generalization by using the analytic path as a mechanism-oriented semantic anchor, constraining the temporal path through cross-view agreement, and allowing the fused representation to adapt to sample-dependent reliability changes. To reduce representation drift under regime changes, the two views are aligned using a bidirectional InfoNCE objective with a learnable temperature that adapts similarity scaling across operating conditions. A mechanism-critical control is also reported: replacing the analytic path with same-dimensional non-mechanistic features consistently degrades cross-condition performance, indicating that the analytic anchor is not interchangeable with generic auxiliary branches. Experiments on CWRU, SEU, and an agricultural-machinery-relevant test-rig dataset show in-domain accuracies of 99.48%, 98.50%, and 97.53%, respectively. In strict cross-speed evaluation on the test-rig dataset, the method achieves 98.22% accuracy when trained at 1500 r/min and tested at 2000 r/min, and 98.03% accuracy in the reverse setting. In cross-dataset evaluation using the shared normal, inner-race, outer-race, and rolling-element fault classes, the proposed method achieves the best average performance among the evaluated source-only baselines, including generic DG methods and recent bearing-diagnosis generalization methods. These comparisons include DPICEN and a protocol-matched single-source adaptation of FARNet, denoted FARNet-SS, both evaluated without target-domain access during training or model selection. The model remains lightweight, with 0.1348 M parameters and 127.11 M FLOPs for the neural forward pass.Keywords: Agricultural machinery, Rolling bearing fault diagnosis, Cross-condition generalization, Dual-channel complementary representation, Learnable band-pass mask, Hilbert envelope squared (env²), Entropy-sparse gating, Bidirectional InfoNCE alignmentSubject terms: Engineering, Mathematics and computing Introduction Agricultural machinery (e.g., tractors, combine harvesters, seeding equipment, and plant-protection equipment) typically operates with strong seasonality, short service windows, and high-intensity duty cycles. Rolling bearings in transmission, travel, and working mechanisms are exposed to impact loads, frequent start–stop cycles, and speed/load fluctuations, while operating in contamination-rich environments (dust, mud-water mixtures, and straw debris)1. Compared with general industrial settings, agricultural bearings are more susceptible to seal-related contaminant ingress, abrasive wear, and lubrication deterioration caused by grease contamination with dust and plant fibers, which can accelerate the progression from incipient spalling/pitting to failure events2. Long-term operation under such conditions poses risks to system safety and stability3. In addition, variable-speed and variable-load regimes can attenuate fault-related impulsive components and increase masking by operating components and noise4, aggravating feature extraction for complex bearing structures under harsh environments5. Consequently, agricultural bearing diagnosis requires not only high classification accuracy but also stable generalization under strong noise and wide-range speed fluctuations. Early mechanical fault diagnosis largely relied on handcrafted features and conventional classifiers. Time-domain statistics (e.g., mean, variance, crest factor, kurtosis) remain practical baselines due to their simplicity and interpretability6. However, under wide speed ranges and strong noise, static statistics are often insufficient to disentangle operating-condition-induced amplitude/band migration from fault-induced impact modulation, motivating a shift toward mechanism-oriented modulation extraction and robust enhancement. For speed-varying signals, time–angle conversion techniques (time synchronous averaging, angular resampling, and order analysis) can align speed-dependent components in the angular domain and reduce harmonic smearing, thereby emphasizing periodic disturbances associated with defects7. Their applicability in agricultural scenarios is constrained by limited availability of accurate speed references and an increased proportion of transients under abrupt load changes, which can degrade synchronization quality. To reduce reliance on speed references, resonance demodulation and modulation feature extraction (e.g., envelope analysis and cepstrum) have been used to highlight impact modulation within resonance bands8. Nevertheless, strong background noise, weak impacts, and resonance-band drift due to structural/assembly variations can lead to suboptimal band selection and ineffective demodulation. Cyclostationary analysis provides an alternative mechanism-oriented route by characterizing correlations among modulation bands (e.g., spectral correlation/cyclic spectrum), which can preserve defect-related criteria under strong noise and interference9. Related approaches such as spectral kurtosis and kurtogram exploit impact-induced non-Gaussianity to localize resonance intervals favorable for demodulation, reducing dependence on manual band selection10. Practical challenges remain under wide-range operating variations: modulation structures vary with speed/load, affecting the discriminative power of fixed-scale criteria; and multi-source field excitations (working mechanisms, road/soil inputs, gear meshing) can generate pseudo-impulses that confound non-Gaussianity indicators. To recover weak fault impacts in low-SNR conditions, enhancement-first strategies have been developed, including minimum entropy deconvolution and its variants11, as well as correlation-kurtosis enhancement targeting periodic impacts12. Sparse representation and dictionary learning further decompose signals into transient-sensitive atoms to improve noise robustness13. These approaches introduce additional hyperparameters (regularization strength, iteration stopping criteria) and may require stronger adaptivity under wide operating ranges to avoid over- or mis-enhancement14. As operating conditions become more complex, multi-source feature fusion is frequently adopted to improve information coverage. However, direct concatenation or fixed-weight aggregation cannot accommodate condition-dependent variation in feature reliability. Related industrial monitoring studies have also explored structure-aware modeling and staged decision pipelines (e.g., two-stage graph-convolution frameworks for detection and identification) to improve robustness under complex noise and interference15. Under low-speed heavy-load regimes, impact modulation and resonance-band energy may be more informative, whereas under high-speed light-load or strongly noisy segments, more robust statistics or temporal textures may dominate. Without per-sample adaptivity, feature fusion may either introduce condition-specific noise or increase redundancy, thereby exacerbating overfitting and reducing interpretability16. Optimization algorithms have been used for feature selection and hyperparameter tuning to balance performance, robustness, and complexity17. Differential evolution and CMA-ES provide effective search over continuous spaces18; multi-objective strategies such as NSGA-II jointly consider accuracy and complexity19; Bayesian optimization improves sample efficiency when evaluations are costly. StMA (Sterna Migration Algorithm) has also been explored for feature selection and parameter search in complex spaces20. In agricultural monitoring, the relevant question is whether the optimization objective aligns with deployment constraints, including robustness under operating variations, computational cost, and interpretability. Traditional machine learning methods (e.g., SVM and tree ensembles) remain competitive for small-sample, high-dimensional settings21. Deep learning has advanced fault diagnosis toward end-to-end representation learning, with CNN-based models extracting discriminative features from raw signals or transformed representations22. However, under strong noise and wide-range speed fluctuations, distribution shifts across speed, load, machine type, and sensor installation can cause end-to-end models to confound operating-condition differences with class semantics, leading to unstable generalization23. Recent deployment-oriented studies therefore emphasize mechanism-consistent inductive bias together with discriminability, under constraints of stability, efficiency, and interpretability24. Despite these advances, several issues remain for agricultural field conditions. Speed and load fluctuations across working objects, terrain, and process stages change impact intervals, spectral energy distributions, and modulation structures within the same fault type. Mechanism-based analytical methods often require condition-specific reconfiguration (e.g., resonance bands, regularization strength, cyclic-frequency resolution) and may degrade under joint wide-range variability and noise. End-to-end models reduce manual configuration but remain sensitive to distribution mismatch between training and deployment conditions25. Multi-domain fusion can improve information coverage, yet direct concatenation or fixed-weight aggregation makes it difficult to handle the reality that “feature contributions vary with operating-condition drift.” If the fusion mechanism cannot adaptively adjust weights, two consequences commonly occur: first, weak-contribution features introduce noise under certain operating conditions and dilute discriminative information; second, the expansion of composite feature dimensionality leads to redundant accumulation, making training more prone to overfitting and reducing interpretability26. Online monitoring of agricultural machinery is typically constrained by edge-side computing resources, power supply, and maintenance convenience. Meanwhile, downtime losses during the operation season are substantial, and false alarms—leading to “unnecessary maintenance and spare-part waste”—also carry clear cost attributes. Hence, diagnostic algorithms must not only improve accuracy, but also reduce false-alarm/missed-detection rates, and achieve stable generalization under controllable computational costs. Deep models often require large amounts of labeled data and relatively high training/inference costs; under data scarcity or strong field noise, model robustness and real-time performance may be limited27. Which has motivated data-efficient paradigms such as optimized few-shot learning for fault diagnosis in other machining domains28.In addition, certain robustness-enhancing strategies (e.g., heavier backbones or complex generative models) may further increase deployment difficulty, conflicting with the economic objectives of edge monitoring for agricultural machinery29. The principal limitation in existing cross-condition diagnosis studies is not the absence of individual components such as filtering, attention, fusion, or contrastive learning, but the lack of an explicitly stated source-only generalization setting and a testable mechanism hypothesis explaining why stable cross-condition performance can be obtained without using target-domain data. In this study, each speed condition or dataset is treated as a domain, and the target domain is completely held out during training and model selection. The present framework addresses this limitation by coupling a mechanism-oriented analytic descriptor with a high-capacity temporal encoder through an explicit cross-view semantic-consistency objective, while using an entropy-regularized gate to prevent degenerate near-uniform fusion under condition-dependent feature-reliability changes. To strengthen the comparison with recent task-relevant methods, two bearing-diagnosis generalization baselines are included. DPICEN31 is used as a physical-information-consistency-based baseline for unknown-domain bearing fault diagnosis. FARNet is originally formulated for multi-source domain generalization30; therefore, we implement a protocol-matched single-source variant, denoted FARNet-SS, by retaining its frequency-guided representation design while removing the multi-source training assumption. In this setting, FARNet-SS, DPICEN, and the proposed method are all trained and selected using only the labeled source domain. This design allows recent bearing-diagnosis generalization methods to be compared under the same source-only assumption. In this study, “toward agricultural machinery reliability” refers to the target application scenario and component relevance. The proposed framework is developed to handle operating-condition shifts motivated by agricultural use, while full in-field validation is discussed as future work. Unlike hybrid pipelines that treat resonance demodulation as fixed pre-processing, resonance selection is parameterized as a differentiable band-pass mask and optimized jointly with the classifier under cross-condition protocols. In addition, rather than concatenating analytic and deep features or imposing a one-way teacher–student constraint, bidirectional cross-path agreement is enforced using InfoNCE, where same-sample pairs across the two paths are positives and other samples in the mini-batch act as negatives. A sample-wise gate with entropy regularization is used to avoid near-uniform fusion and to expose which path dominates the decision on each sample. To address operating-condition drift in bearing vibrations and the limited generalization of single-path representations, we develop a dual-channel complementary representation learning framework. The framework integrates a mechanism-consistent analytical pathway with an end-to-end discriminative temporal pathway. The analytical pathway captures impact-related resonance-demodulation statistics through learnable band-pass localization and squared-envelope-energy descriptors, whereas the temporal pathway learns discriminative representations directly from normalized raw waveforms. These two representations are then adaptively fused and constrained by cross-channel semantic consistency to improve robust diagnostic performance under strong noise and wide-range speed variations. In the analytical feature channel (Channel A), resonance-band selection is parameterized as a differentiable soft band-pass mask and optimized end-to-end, and an impulse-oriented env² statistical descriptor is constructed from the band-pass signal, its Hilbert envelope, and squared-envelope energy to yield a compact, interpretable, and noise-robust representation. In the end-to-end temporal channel (Channel B), normalized raw segments are encoded by a lightweight dilated one-dimensional convolutional network with temporal-attention pooling, enabling the extraction of discriminative temporal embeddings under non-stationary operating regimes. The two embeddings are integrated through sample-wise gated fusion, and an entropy-based regularization term is introduced to discourage near-uniform averaging, promoting clearer dominance of the more reliable pathway and improving interpretability. In addition, bidirectional cross-view alignment is enforced using an InfoNCE objective with a learnable temperature, adapting similarity scaling across operating conditions and strengthening semantic consistency between the two channels for each sample. The main contributions are summarized as follows: 1. Semantic-consistency formulation for cross-condition diagnosis. Cross-condition robustness is cast as maintaining semantic agreement between a mechanism-oriented analytic representation and a data-driven temporal representation, trained without target-domain access. A bidirectional InfoNCE objective is used to align the two views, and a learnable temperature is introduced to adapt similarity scaling across operating regimes. 2. Differentiable resonance demodulation with an impulse-oriented env² descriptor. Resonance-band selection is parameterized as a low-parameter soft band-pass mask and optimized end-to-end. Based on the learned band-pass signal, a compact 12-D descriptor is constructed from statistics of the band-pass signal, its Hilbert envelope, and squared envelope energy (env²), providing an interpretable mechanism-consistent anchor. 3. Sample-wise gated fusion with entropy regularization. The analytic and temporal embeddings are fused by a per-sample gate. An entropy penalty discourages near-uniform weighting, promoting clearer dominance of the more reliable pathway under operating-condition drift and improving interpretability. 4. Rigorous cross-condition evaluation and mechanism-oriented controls. Cross-speed and cross-dataset tasks are evaluated under strict protocols with unified label mapping for cross-dataset transfer. Domain gap and representation drift are quantified, and an anchor-replacement control shows that substituting the analytic branch with same-dimensional non-mechanistic features degrades cross-condition performance, supporting the role of a mechanism-consistent anchor beyond generic multi-branch modeling. The remainder of this paper is organized as follows: Section 2 introduces the overall framework and key module designs (resonance-band localization and env² statistical representation, dilated convolutions and temporal attention, gated fusion and entropy sparsity, and cross-channel InfoNCE alignment). Section 3 presents the datasets, experimental settings, and the cross-operating-condition evaluation protocol, and conducts comparative experiments, ablation studies, and robustness analyses. Section 4 concludes the paper and discusses future work. Problem definition and overall framework Let the raw vibration signal be segmented into samples via a sliding window, yielding The corresponding fault-class label is Source-only single-source DG setting. In this study, each operating condition or dataset is treated as a domain, denoted by , where eindexes a speed condition, platform, or dataset. The model is trained on a source domain , whereas the target domain corresponds to an unseen speed condition or an unseen dataset. The source and target domains follow different data distributions, namely , while sharing the same diagnostic label semantics after task-specific label mapping. No target-domain samples, including unlabeled target samples, are used for model training, validation, hyperparameter selection, band-pass selection, or early stopping. The target domain is used only once for final testing. Therefore, the considered protocol is a source-only, single-source DG setting rather than an unsupervised domain adaptation setting. The goal is to learn a diagnostic classifier that predicts the fault label yfrom the input signal x, minimizes the source-domain classification risk, and preserves fault-class semantics under distribution shifts. To address the problem that, under cross-speed and cross-operating-condition settings, the distribution of bearing fault features varies markedly with operating states and the generalization capability of a single representation pathway is limited, this paper proposes a dual-channel complementary representation learning framework. The framework constructs two feature-representation pathways in parallel: one explicitly models the mechanism of bearing impact faults in a data-driven manner, and the other performs end-to-end temporal modeling on the raw vibration waveform. The embedding representations output by the two channels are fused through an adaptive gating mechanism, and a cross-channel alignment constraint is introduced to enhance the modeling of semantic consistency for the same sample. The overall model is jointly optimized in an end-to-end manner. To intuitively illustrate the module composition and information flow of the proposed method, an overall structural schematic is provided in Fig. 1. Overall framework of the proposed dual-channel complementary representation learning model. Building on the overall architecture shown in Fig. 1, we next provide a detailed description of the data segmentation and normalization procedure, the learnable resonance-band localization and envelope-energy statistical representation in Channel A, the dilated-convolution and temporal-attention modeling in Channel B, as well as the joint optimization strategy involving gated fusion and cross-channel alignment. Data segmentation and preprocessing A long vibration sequence s is segmented using a sliding window to obtain a set of samples: Where L is the window length and S is the stride. To eliminate amplitude-scale differences and improve training stability, each segmented sample is independently normalized as Here, and denote the sample mean and standard deviation, respectively, and is a numerical-stability constant. Dual-channel complementary feature modeling To improve robust generalization under cross-speed and cross-operating-condition settings, this paper constructs two complementary representation pathways in parallel: Channel A explicitly incorporates the resonance mechanism of impact faults and outputs low-dimensional, interpretable statistical representations; Channel B performs end-to-end temporal modeling on the raw waveform to learn high-capacity discriminative representations. The embeddings from the two channels are subsequently fused via gated fusion, and a cross-channel alignment constraint is employed to enhance the semantic consistency for the same sample. From the perspective of representation learning, the central challenge of cross-operating-condition bearing fault identification lies in the fact that both the statistical properties and temporal structures of vibration signals can change markedly across operating states. A single feature-extraction pathway often becomes biased toward certain feature patterns, thereby weakening the model’s generalization capability under unseen operating conditions. Particularly in variable-speed and cross-platform scenarios, methods that rely on fixed time–frequency structures or purely end-to-end temporal modeling may be insufficient in terms of either robustness or discriminability. Based on the above considerations, we develop a dual-channel feature modeling framework from two complementary perspectives, namely “mechanism consistency” and “data-driven representational capacity.” Channel A introduces the physical mechanism of bearing impact faults into the model in an explicit, low-dimensional, and interpretable manner through learnable resonance-band localization and envelope-energy statistics. This helps suppress redundant frequency bands that are highly correlated with operating-condition variations and strengthens stable characterization of impact features. Channel B, in contrast, directly performs end-to-end temporal modeling on the raw vibration waveform, learning high-capacity and context-dependent discriminative features via dilated convolutions and a temporal-attention mechanism, thereby compensating for the limited expressive power of mechanism-based statistical features in complex pattern modeling. This paper does not assume that the two channels achieve a strict functional division or are fully decoupled. Instead, complementarity mainly arises from differences in modeling assumptions and structural inductive biases between the two representation pathways: Channel A outputs a low-dimensional, mechanism-oriented descriptor derived from resonance-demodulated env² statistics; Channel B outputs a high-capacity temporal embedding learned from raw segments. The two paths are not assumed to be functionally independent; instead, they are trained to be semantically consistent for the same sample through an explicit alignment objective, while a gate selects the dominant contribution on a per-sample basis. Channel A: Data-driven resonance-band localization and envelope-energy statistical representation. This channel aims to explicitly incorporate the physical mechanism of bearing impact faults into the model. First, the input signal is transformed into the frequency domain: To automatically locate the most discriminative resonance band during end-to-end training, a low-parameter learnable band-pass mask is constructed on the normalized frequency axis : Wheredenotes the Sigmoid function, and s > 0 controls the smoothness of the transition band. The frequency variable is defined via Nyquist normalization: , whereis the sampling frequency. For the k-th rFFT bin ,the corresponding normalized frequency is ,and thus the mask on discrete frequency bins can be written as .To reduce the number of learnable parameters and facilitate the incorporation of differentiable constraints, this paper adopts a “center-frequency–bandwidth” parameterization: letdenote the band-pass center frequency and denote the normalized bandwidth. The low/high cutoff frequencies are then given by Whereis a numerical-stability constant (e.g.,) anddenotes the clipping operator. This parameterization corresponds to the constraint, which effectively avoids degeneration of the mask into two extreme cases (“all-pass/all-stop”), thereby ensuring the interpretability of band-pass selection and training stability. Furthermore, the band-pass mask in (6) forms a “soft rectangular window” as the difference of two Sigmoid functions, where s controls the smoothness of the transition band. Smaller yields steeper transitions and band edges closer to hard cutoffs, but also makes gradient saturation more likely. The filtering process is given by (8), where g is a learnable gain used to adaptively adjust the amplitude scale of the mask, facilitating alignment of the frequency-domain energy range under different operating conditions: For reproducibility, the band-pass parameters are initialized with fixed values on the Nyquist-normalized axis . The implementation constructs the frequency grid on (cycles/sample), which maps to via ; thus the initialization corresponds to,, and(i.e.,,, s=0.02on ). The gain is initialized as and applied through ; the learnable parameters are then optimized end-to-end, with c and b clamped to avoid degenerate bands, so the final band location is data-driven rather than predetermined. An analytic signal is constructed from the band-pass signal to extract the envelope: A squared-envelope energy operator is further defined as Where denotes the Hilbert transform. Compared with a differential envelope, the squared envelope can more directly characterize the energy-release process induced by impacts and exhibits more stable statistical properties under noisy backgrounds. For the band-pass signal , the envelope , and the squared-envelope energy , four types of statistics—Energy, root mean square (RMS), Peak, and Kurtosis (Kurt)—are computed, respectively: They are concatenated to form the low-dimensional feature vector of Channel A: A lightweight encoder is then used to obtain the embedding representation: Where, denotes the Hadamard product, and is the normalized embedding of Channel A. In the implementation, the descriptor input to Channel A has 12 dimensions. The MLP encoder contains two fully connected layers. The first layer maps the 12-dimensional descriptor to a 64-dimensional hidden representation, followed by a ReLU activation. The second layer maps the 64-dimensional hidden representation to a 128-dimensional embedding. The embedding dimension of both channels is therefore fixed at D=128. The intra-channel attention gate is implemented by a fully connected layer that preserves the 128-dimensional feature size, followed by a Sigmoid activation. The gated embedding is then normalized by L2 normalization to obtain . Channel B directly performs end-to-end modeling on the normalized raw segments. A multi-layer one-dimensional convolutional network is adopted with dilated convolutions, whose output at layer is Where, is the kernel length and is the dilation rate. and are learnable parameters. In this paper, the stride of each layer is set to 1 and no downsampling is used. By progressively increasing , the effective receptive field (Receptive Field, RF) of the network can be expanded without a substantial increase in parameter count. For a 1D-CNN formed by stacking multiple dilated convolution layers, under the condition that all layer strides are 1 and no downsampling is used, if the effective expansion at layer l is approximated as being dominated by the dilation rate , then the RF (in samples) of the top-layer neuron can be estimated using the following verifiable recursion: , . To facilitate consistent interpretation across datasets with different sampling rates, the receptive field can be converted to a time scale as . In the adopted implementation, the local receptive field characterizes short-time impact responses, while the subsequent temporal-attention pooling aggregates information over the full 2048-sample segment. This design allows the temporal path to combine local transient modeling with segment-level discriminative representation. To highlight key time segments, a temporal-attention weighted pooling is introduced: The final embedding representation is In the implementation, Channel B uses four one-dimensional dilated convolutional layers. The number of hidden channels is fixed at 64 in all convolutional layers. The first convolutional layer maps the single-channel input waveform to 64 feature channels, with a kernel size of 7, a dilation rate of 1, and a padding size of 3. The second convolutional layer takes 64 input channels and outputs 64 channels, with a kernel size of 5, a dilation rate of 1, and a padding size of 2. The third convolutional layer also keeps 64 channels, with a kernel size of 5, a dilation rate of 2, and a padding size of 4. The fourth convolutional layer keeps 64 channels, with a kernel size of 5, a dilation rate of 4, and a padding size of 8. A ReLU activation is applied after each convolutional layer. All convolutional layers use a stride of 1, and no temporal downsampling is applied. The convolutional output is transposed and then fed into the temporal-attention pooling module. The attention module first maps each 64-dimensional temporal feature vector to a 64-dimensional hidden representation by a fully connected layer, applies a tanh activation, and then maps the hidden representation to a scalar attention score. A time-wise softmax is used to obtain the attention weights. The attention-weighted feature is projected to a 128-dimensional embedding by a fully connected layer and then normalized by L2 normalization to obtain . Under this configuration, the local receptive field of the top convolutional feature is 35 samples. The dilated convolutional layers capture short-time impact responses, while temporal-attention pooling aggregates sample-level information over the full 2048-sample segment. Gated fusion and cross-channel alignment optimization Adaptive gated fusion and entropy sparsity constraint For each sample, Channel A and Channel B output L2-normalized embeddings with the same embedding dimension D. The gating network maps the concatenated vector to two logits, which are converted to per-sample scalar weights by a two-way softmax so that . Given the two-channel embeddings , the gating network outputs the fusion weights: Here, and are per-sample scalar gating coefficients produced for each input sample, indicating the relative contributions of Channel A (analytical embedding) and Channel B (temporal embedding) in the fusion. The two weights are normalized (e.g., via a two-way softmax) such that for each sample. The input to the gating network is the concatenation of and , whose dimension is 256. The gating network contains two fully connected layers. The first layer maps the 256-dimensional concatenated embedding to a 128-dimensional hidden representation, followed by a ReLU activation. The second layer maps the hidden representation to two scalar logits. A softmax operation is then applied to obtain the sample-wise channel weights and , with the constraint that their sum equals one for each sample. The fused representation is defined as To improve the interpretability of the fusion result, an entropy-based sparsity regularization term is introduced: Where, denotes the gating weight of channel for the i-th sample in a mini-batch. Minimizing this term is equivalent to maximizing the certainty of the gating weights, such that each sample exhibits a single-channel-dominant decision path, which facilitates analyzing whether the model relies more on resonance-band features or on raw waveform features. Cross-channel alignment: bidirectional InfoNCE with a learnable temperature Since the scale of embedding similarity may vary across operating conditions, we introduce a learnable temperature parameter to adaptively adjust the degree of softening in contrastive learning: Where, is a learnable scalar; is used to ensure , and is a numerical-stability constant. In implementation, is initialized as and is jointly optimized with the network parameters during training. The cross-channel similarity is defined as: The bidirectional InfoNCE alignment loss is defined as Where, and are constructed using the standard InfoNCE form, where the representations of the same sample across the two channels serve as positive pairs, and all other samples serve as negative pairs. In summary, model training is jointly driven by three types of supervision/constraint signals: (i) classification supervision based on the fused embedding, which ensures discriminability among fault classes; (ii) a cross-channel semantic alignment constraint, which strengthens consistent representations of the same sample between the mechanism channel and the waveform channel, thereby alleviating representation shifts induced by cross-operating-condition distribution changes; and (iii) the gated entropy sparsity regularization, which encourages more certain gating-weight allocation and thus improves the interpretability of the fusion pathway. To clearly illustrate the source of each loss term and how they are aggregated during training, the composition of the optimization objective and the backpropagation flow are summarized in Fig. 2. Joint loss formulation and optimization pipeline. Mechanism rationale. The proposed generalization mechanism is based on separating fault-related semantic cues from operating-condition-dependent nuisance variations. Speed changes, load fluctuations, sensor/platform differences, and environmental noise mainly alter amplitude scaling, resonance-band energy distribution, and local temporal texture, whereas the diagnostic label is still associated with impact-induced modulation patterns caused by bearing defects. Channel A is therefore designed as a mechanism-oriented anchor: the learnable band-pass mask localizes an informative resonance band from the source data, and the env² statistics summarize impulse-related envelope-energy behavior in a compact form. Channel B provides higher representational capacity by learning temporal patterns directly from raw waveforms, but this branch may also encode condition-specific temporal textures and thus suffer from representation drift under unseen domains. The bidirectional InfoNCE objective constrains the two views of the same sample to be close while contrasting them with other samples in the mini-batch, which encourages the temporal representation to remain semantically consistent with the mechanism-oriented analytic view. The classification loss preserves fault-class discriminability, whereas the cross-view alignment reduces condition-induced drift. The entropy-regularized gate further avoids indiscriminate averaging and allows the model to assign a clearer dominant pathway for each sample according to the reliability of the two views. Thus, cross-condition generalization is expected to arise from three coupled effects: mechanism-guided anchoring, cross-view semantic alignment, and reliability-aware gated fusion. Classification objective and optimization After obtaining the fused embedding representation z, a linear classifier is adopted to discriminate fault classes. The classification logits are defined as Where D is the embedding dimension, and Kis task-dependent (e.g., K=7 for AMBS cross-speed under , and K=4 for cross-dataset evaluation under ); Ndenotes the mini-batch size.The predicted class probabilities are then obtained via the softmax function: Where, and denote the classifier weight matrix and bias term, respectively;s the number of fault classes, and is the fused embedding given in (18). Based on the predicted probabilities and the ground-truth labels, the classification loss is formulated as cross-entropy: Where, N is the batch size, and denotes the ground-truth class label of the i-th sample. Where, and control the contribution ratios of the cross-channel alignment constraint and the gated sparsity regularization to the overall training objective, respectively; is the weight-decay coefficient, which is used to suppress overfitting and improve the model’s generalization capability in cross-operating-condition scenarios. In implementation, weight decay is introduced through the optimizer’s weight-decay mechanism. Mechanism hypothesis and verifiable predictions Mechanism hypothesis. Under operating-condition shifts, the observed vibration signal can be regarded as containing both fault-related semantic information and operating-condition-dependent nuisance information. The latter includes amplitude-scale variation, resonance-band migration, background noise, and temporal-texture changes induced by speed/load/platform differences. The proposed framework assumes that the analytic view provides a relatively stable mechanism-oriented cue for bearing defects because it emphasizes resonance-demodulated impulse information through the learnable band-pass mask and env² statistics. In contrast, the temporal view has stronger discriminative capacity but is more likely to absorb condition-specific temporal patterns when trained only with classification supervision. Based on this hypothesis, the role of bidirectional InfoNCE is not to perform target-domain alignment, because no target-domain samples are available during training. Instead, it performs source-domain cross-view semantic alignment: for each source sample, the mechanism-oriented embedding and the temporal embedding are encouraged to represent the same diagnostic semantics. This constraint is expected to reduce the tendency of the temporal pathway to drift toward condition-specific cues. The entropy-regularized gate then assigns sample-wise reliability weights to the two views, so that the fused representation can rely more clearly on the mechanism-oriented or temporal pathway according to the signal characteristics of each sample. Operational tests. The hypothesis is examined by three complementary analyses: (i) comparing domain discrepancy before and after the learnable band-pass operation at the signal level; (ii) quantifying whether bidirectional InfoNCE reduces the MMD of Channel-B embeddings compared with training without alignment; and (iii) testing whether the gate assigns higher weight to Channel A when the impact-strength indicator , computed as the kurtosis of squared-envelope energy, increases. Testable predictions. (1)The band-pass signal should show a smaller PSD-based domain gap than the raw normalized signal, indicating that Channel A suppresses part of the operating-condition-dependent spectral variation. (2) Adding bidirectional InfoNCE should decrease MMD on Channel-B embeddings compared with training without alignment, while maintaining or improving Accuracy and Macro-F1. (3) Replacing the env² analytic anchor with same-dimensional non-mechanistic features should degrade cross-condition performance if the analytic anchor is genuinely mechanism-relevant rather than merely an auxiliary branch. (4) The gate should assign higher weight to Channel A when impulse strength increases, measured by , and this tendency can be quantified by Spearman correlation. Experimental validation and analysis Experimental datasets and experimental environment A two-tier evaluation is conducted. Public benchmarks (CWRU and SEU) are used to establish baseline performance for cross-condition generalization and cross-dataset transfer. In addition, a controlled test-rig dataset, Agricultural Machinery Bearing Simulation (AMBS), is included to evaluate speed-induced distribution shifts under a consistent hardware setting. AMBS provides two rotational regimes (1500 r/min and 2000 r/min) for strict cross-speed protocols. Experiments use three datasets: the Case Western Reserve University bearing dataset (CWRU), obtained from the Case Western Reserve University Bearing Data Center32; the Southeast University mechanical fault dataset (SEU), released in the Mechanical-datasets repository and associated with the work of Shao et al.33; and the self-built AMBS dataset. The CWRU dataset provides seeded fault test data collected from a motor-driven bearing test rig, while the SEU dataset contains bearing and gear sub-datasets acquired on a Drivetrain Dynamic Simulator under different speed-load configurations. In this work, the bearing-related subset and the common fault categories of SEU are used for cross-dataset evaluation. The sampling protocols, fault types, and operating-condition configurations of CWRU and SEU are described in their respective subsections; this subsection details the AMBS setup, sensor placement, and data acquisition. AMBS testbed and agricultural relevance. AMBS employs a deep-groove ball bearing (SKF 6207), representative of bearing types commonly used in rotating and supporting assemblies of agricultural machinery (e.g., transmission-related rotating components and supporting units). Although AMBS data are collected on a laboratory rig, the testbed enables controlled and reproducible validation of operating-condition shifts relevant to agricultural scenarios. In field operation, regime switches caused by throttle changes, terrain variability, and intermittent load disturbances often lead to non-stationary vibration patterns and distribution shifts. Consistent with this motivation, AMBS is configured with two rotational regimes (1500 r/min and 2000 r/min) to construct strict cross-speed protocols under an unchanged hardware platform. Vibration signals are acquired at 5120 Hz. The test-rig structure, sensor layout, and the host-computer acquisition interface are shown in Figs. 3, 4 and 5. Structure of the self-built rolling bearing test rig. Signal acquisition sensors. Signal acquisition platform. All experiments are conducted in a server environment with an Intel® Xeon® Gold 6338 CPU, 256 GB RAM, and an NVIDIA A100 GPU (40 GB). The software environment includes Ubuntu 20.04 LTS, Python 3.10, and PyTorch 2.1.0 (CUDA 11.8) with cuDNN 8.7. Hyperparameters are fixed across runs; experiments are repeated with multiple random seeds and the seeds are recorded. To enlarge the sample set and improve training stability, the collected continuous vibration sequences were segmented into samples using a sliding-window scheme, with the window overlap ratio set to 50%. Each segmented sample was then subjected to Z-score normalization to mitigate the influence of amplitude-scale differences on model training and generalization. The operating conditions, fault categories, and label definitions of the AMBS dataset are summarized in Table 1. Furthermore, to reflect the differences in impact intensity associated with different damage severities, each fault type was subdivided into two labels according to the damage diameter (0.3 mm and 0.6 mm; e.g., IR1/IR2). Consequently, the AMBS dataset contains six fault categories plus one normal category, resulting in a total of seven classes. Table 1Operating conditions and label definitions of the self-built test-rig dataset (AMBS).DatasetOperating condition (speed)Bearing statusDamage size (mm)LabelAMBS1500/2000 r/minNormal0NAMBS1500/2000 r/minInner Race Fault0.3/0.6IR1/IR2AMBS1500/2000 r/minOuter Race Fault0.3/0.6OR1/OR2AMBS1500/2000 r/minRolling Element Fault0.3/0.6RE1/RE2 Operating conditions and label definitions of the self-built test-rig dataset (AMBS). Evaluation protocol, comparative methods, and implementation settings A strict source-only cross-condition protocol is used to evaluate single-source DG performance. Training and testing domains are disjoint, and no target-domain samples are used during training or model selection. Two settings are considered: cross-speed and cross-dataset. In the cross-speed setting, one rotational speed of AMBS is used as the source domain and the other speed is used as the unseen target domain. In the cross-dataset setting, one dataset is used as the source domain and another dataset is used as the unseen target domain after unified label mapping. The train/test configurations are listed in Table 2, and the overall procedure is illustrated in Fig. 6. Table 2Cross-condition tasks and train/test domain configurations.ProtocolTask IDTrain domainTest domainPurposeLabel handlingCross-speedAMBS-1500→2000AMBS @ 1500 r/minAMBS @ 2000 r/minRobustness to speed shiftSame label set; no mapping requiredCross-speedAMBS-2000→1500AMBS @ 2000 r/minAMBS @ 1500 r/minRobustness to speed shiftSame label set; no mapping requiredCross-datasetCWRU→SEUCWRUSEURobustness to domain shiftEvaluate on common classes with unified label mappingCross-datasetCWRU→AMBSCWRUAMBSRobustness to domain shiftEvaluate on common classes with unified label mappingCross-datasetSEU→CWRUSEUCWRURobustness to domain shiftEvaluate on common classes with unified label mappingCross-datasetSEU→AMBSSEUAMBSRobustness to domain shiftEvaluate on common classes with unified label mappingCross-datasetAMBS→CWRUAMBSCWRURobustness to domain shiftEvaluate on common classes with unified label mappingCross-datasetAMBS→SEUAMBSSEURobustness to domain shiftEvaluate on common classes with unified label mapping Cross-condition tasks and train/test domain configurations. Schematic of the cross-condition evaluation protocol. For AMBS cross-speed tasks, training and testing segments are generated from disjoint original continuous recordings to prevent overlap leakage caused by sliding windows. For cross-dataset tasks, label mapping and class filtering are applied before splitting. Hyperparameters, early stopping, and model selection are performed using source-domain validation only. The target domain is held out and used only for final reporting. Unless otherwise stated, class-balanced mini-batch sampling is used. Results are reported over multiple random seeds with fixed random-state logging. (1) Cross-speed evaluation. Two complementary cross-speed tasks are constructed on AMBS: AMBS-1500→2000 and AMBS-2000→1500. Training uses samples collected under a single speed condition, and testing is performed on the other speed condition. The split is performed at the recording level to avoid overlap between adjacent segments induced by sliding-window construction. (2) Cross-dataset evaluation (Cross-dataset). Cross-dataset tasks are evaluated on a unified label space: Where N denotes normal condition, IR inner-race fault, ORouter-race fault, and RE rolling-element fault (including naming variants such as Ball fault). Only samples in are retained in both source and target domains. Dataset-specific sublabels are merged into the corresponding super-classes (e.g., IR1/IR2→IR; OR1/OR2→OR; RE1/RE2 and Ball→RE). Mapping and merging rules are summarized in Table 3. Table 3Unified label set and label mapping/merging rules for cross-dataset evaluation.Unified labelSemantic definitionCWRUSEUAMBSMerging ruleNNormalNormal/HealthyNormalNKeep unchanged → NIRInner raceIR007/IR014/IR021, etc.IR/InnerIR1/IR2Merge all inner-race sub-labels→ IROROuter raceOR@3/6/12 or OR007/OR014, etc.OR/OuterOR1/OR2Merge all outer-race sub-labels→ ORRERolling elementBall007/Ball014 or RE labelsBall/RERE1/RE2Unify and merge Ball and rolling-element sub-labels → RE Unified label set and label mapping/merging rules for cross-dataset evaluation. A label-mapping function maps original labels into :, , , , where “*” denotes a subdivided label within the same fault super-class. After mapping, samples outside are excluded to avoid bias from missing classes, naming differences, or inconsistent subdivision granularity. For AMBS, the merging rule is IR1, IR2→IR; OR1, OR2→OR; RE1, RE2→RE; N→N. Baselines are grouped according to their training assumptions and modeling mechanisms. Conventional in-domain references. SVM, Random Forest (RF), and XGBoost (XGB) are used as non-deep references under matched-condition evaluation. Conventional in-domain references. SVM, Random Forest (RF), and XGBoost (XGB) are used as non-deep references under matched-condition evaluation. End-to-end deep baselines. CNN-BiGRU and 1D-CNN-BiGRU are included to represent commonly used temporal deep-learning models for bearing fault diagnosis. End-to-end deep baselines. CNN-BiGRU and 1D-CNN-BiGRU are included to represent commonly used temporal deep-learning models for bearing fault diagnosis. Hybrid time-frequency/decomposition baselines. A CWT-based Swin Transformer and a VMD-enhanced CNN-BiGRU-Attention model are included to evaluate whether explicit time-frequency representation learning or signal decomposition improves robustness under the same data splits. Hybrid time-frequency/decomposition baselines. A CWT-based Swin Transformer and a VMD-enhanced CNN-BiGRU-Attention model are included to evaluate whether explicit time-frequency representation learning or signal decomposition improves robustness under the same data splits. Recent bearing-diagnosis generalization baselines. Two recent task-relevant baselines are considered. DPICEN is included as a physical-information-consistency-based method for bearing fault diagnosis under unknown domains. FARNet is a frequency-guided domain generalization method originally designed for multi-source training. To make the comparison compatible with the single-source source-only protocol used in this study, we implement a protocol-matched variant, FARNet-SS, which preserves the frequency-guided representation strategy but removes multi-source training and multi-source frequency-domain augmentation. The results of FARNet-SS should therefore be interpreted as those of a single-source adaptation rather than the original multi-source FARNet setting. Recent bearing-diagnosis generalization baselines. Two recent task-relevant baselines are considered. DPICEN is included as a physical-information-consistency-based method for bearing fault diagnosis under unknown domains. FARNet is a frequency-guided domain generalization method originally designed for multi-source training. To make the comparison compatible with the single-source source-only protocol used in this study, we implement a protocol-matched variant, FARNet-SS, which preserves the frequency-guided representation strategy but removes multi-source training and multi-source frequency-domain augmentation. The results of FARNet-SS should therefore be interpreted as those of a single-source adaptation rather than the original multi-source FARNet setting. Generic source-only DG baselines. ERM (DeepAll), CORAL, IRM, VREx, and Mixup are implemented as generic DG references. These methods are included to determine whether the proposed mechanism-oriented semantic-consistency design provides gains beyond commonly used source-only DG regularization strategies. Generic source-only DG baselines. ERM (DeepAll), CORAL, IRM, VREx, and Mixup are implemented as generic DG references. These methods are included to determine whether the proposed mechanism-oriented semantic-consistency design provides gains beyond commonly used source-only DG regularization strategies. UDA reference methods. DANN and CDAN are reported separately as unsupervised domain adaptation references because they use unlabeled target-domain samples during training. They provide contextual performance references but are not considered strictly comparable source-only DG baselines. UDA reference methods. DANN and CDAN are reported separately as unsupervised domain adaptation references because they use unlabeled target-domain samples during training. They provide contextual performance references but are not considered strictly comparable source-only DG baselines. The proposed model is trained under a fixed implementation configuration. The input window length is 2048 samples, and the sliding stride is 1024 samples, corresponding to an overlap ratio of 50%. Each segment is normalized by sample-wise Z-score normalization before being fed into the model. The batch size is set to 64, and the number of training epochs is set to 40. Adam is used as the optimizer, with an initial learning rate of and a weight decay coefficient of . The embedding dimension is fixed at 128. For fair comparison, all source-only methods use the same segmented samples, sample-wise Z-score normalization, source-domain training/validation split, and final target-domain test split. Hyperparameters are selected only on the source-domain validation subset. In FARNet-SS, the original multi-source setting is reduced to one labeled source domain, without auxiliary source domains or target-related augmentation. In DPICEN, physical-information encoding is constructed only from source-domain class semantics and source labels. Thus, the proposed method, FARNet-SS, DPICEN, and the generic DG baselines are evaluated under a unified source-only model-selection protocol. The weight of the bidirectional InfoNCE alignment loss is set to 0.1, and the weight of the gate-entropy sparsity term is set to 0.01. The learnable temperature in the InfoNCE objective is initialized to 0.07 and is constrained to be positive through the softplus function with a numerical-stability constant of . In the 10-fold cross-validation setting, 15% of the training fold is selected in a class-stratified manner as the validation subset. The model with the best validation Macro-F1 is used for testing. For the proposed method and the source-only domain generalization baselines, only source-domain data are used for training and model selection, while target-domain data are used only for final evaluation. Accuracy and Macro-F1 are used as primary metrics. Under cross-condition protocols, no target-domain labels are accessed during training, and hyperparameter selection is completed within the source domain; the test domain is used only for final reporting. Key settings are repeated with multiple independent runs, and results are reported as mean±standard deviation. In-domain stability analysis uses 10-fold cross-validation. Ablations remove Channel A/Channel B, the cross-channel alignment constraint, and the entropy sparsity regularization to quantify each component’s contribution. To characterize difficulty variation across protocols, domain gap is quantified at both the signal level and the representation level. 1.Signal-level gap (Fréchet distance on PSD features). For each segment x, the one-sided PSD is estimated on a shared frequency grid with the same FFT length across source and target domains. Let denote the log-PSD feature vector. For domain D, empirical mean and covariance are computed over sampled segments. The PSD Fréchet distance is: is reported on (i) raw normalized segments and (ii) band-pass signals from Channel A. 2.Representation-level gap (MMD on embeddings). MMD is computed on Channel-B pre-classifier embeddings to quantify representation drift. With an RBF kernel , the squared MMD is: The kernel bandwidth is set by the median pairwise distance on . MMD is reported for the “w/o alignment” setting and for the full model to test Prediction (2) in Sect. 2.5. 3.Difficulty control under unified label mapping. For each cross-dataset direction, retained sample counts after mapping/merging and filtering are reported together with and MMD to provide task-level context. The domain-gap measurements and retained sample counts are summarized in Tables 4 and 5. Table 4Quantification of domain gap under cross-speed and cross-dataset protocols.Protocol/Task(Raw) ↓(Band-pass ) ↓MMD (Channel B, w/o align) ↓MMD (Channel B, Ours) ↓Cross-speed AMBS 1500→20000.920.580.0740.046Cross-speed AMBS 2000→15000.890.560.0710.044Cross-dataset CWRU→SEU2.351.620.1090.072Cross-dataset SEU→CWRU2.181.550.1010.068Cross-dataset CWRU→AMBS2.801.900.1240.081Cross-dataset AMBS→CWRU2.671.840.1180.078Cross-dataset SEU→AMBS2.952.020.1310.086Cross-dataset AMBS→SEU2.881.980.1280.084 Quantification of domain gap under cross-speed and cross-dataset protocols. Table 5Retained sample counts after unified label mapping.Task (Unified labels)Source retained (N/IR/OR/RE)Target retained (N/IR/OR/RE)Total retained (Source/Target)CWRU→SEU2400/2400/2400/24002000/2000/2000/20009600/8000SEU→CWRU2000/2000/2000/20002400/2400/2400/24008000/9600CWRU→AMBS2400/2400/2400/24001800/1800/1800/18009600/7200AMBS→CWRU1800/1800/1800/18002400/2400/2400/24007200/9600SEU→AMBS2000/2000/2000/20001800/1800/1800/18008000/7200AMBS→SEU1800/1800/1800/18002000/2000/2000/20007200/8000 Retained sample counts after unified label mapping. To provide protocol-level context for interpreting cross-condition performance, Table 6 summarizes , MMD (w/o alignment), and the corresponding accuracy of the proposed method for each of the eight tasks. Table 6Task-level domain-gap indicators and accuracy across the eight cross-condition protocols.TaskProtocolD_PSD(Raw)D_PSD(x_bp)MMD(B, w/o align)Ours Acc (%)AMBS 1500→2000Cross-speed0.920.580.07498.22AMBS 2000→1500Cross-speed0.890.560.07198.03CWRU→SEUCross-dataset2.351.620.10998.31SEU→CWRUCross-dataset2.181.550.10198.42CWRU→AMBSCross-dataset2.801.900.12497.83AMBS→CWRUCross-dataset2.671.840.11897.93SEU→AMBSCross-dataset2.952.020.13197.32AMBS→SEUCross-dataset2.881.980.12897.52 Task-level domain-gap indicators and accuracy across the eight cross-condition protocols. Task-level association was examined across the eight cross-condition protocols. A negative monotonic trend is observed between domain-gap indicators (e.g., on raw segments or band-pass signals, and MMD on Channel-B embeddings without alignment) and cross-condition accuracy, where larger gaps generally coincide with lower transfer performance. With eight protocols, this relationship serves as descriptive context for interpreting performance variation rather than an inferential claim of a population-level law. Performance comparison and cross-condition generalization results In-domain performance is reported first to characterize trainability and split-level stability under matched conditions. Cross-condition evaluation is then conducted under the cross-speed and cross-dataset protocols defined in Table 2, where testing is performed on unseen operating conditions or unseen platforms. In-domain performance and stability Table 7 summarizes in-domain performance on CWRU using Accuracy, Precision, Recall, and F1-score under the same data split and evaluation criteria across methods. Table 7Performance comparison of different methods.MethodAccuracy (%)Precision (%)Recall (%)F1-score (%)DPICEN95.6594.8095.1094.90CWT-based Swin Transformer97.6797.2097.3097.25VMD-enhanced CNN-BiGRU-Attention97.5096.9097.0096.95CNN-BiGRU92.7392.0092.2092.101D-CNN98.0497.7097.8097.75The method in this study (proposed)99.4899.5199.4899.48 Performance comparison of different methods. On CWRU, the proposed method achieves the highest Accuracy/Precision/Recall/F1 among the compared baselines under the reported split. The improvement is most evident in F1-score, consistent with reduced class-wise inconsistency relative to end-to-end baselines. Compared with hybrid pipelines that rely on explicit time–frequency transforms or decomposition-specific hyperparameters, comparable or higher performance is obtained without introducing additional transform/decomposition stages. Table 8 reports 10-fold cross-validation results of the proposed method on CWRU. Table 8Ten-fold cross-validation results of the proposed method on the case western reserve university test set.FoldAccuracyPrecisionRecallF1-score199.5899.6099.5899.58299.5799.5899.5799.573100.00100.00100.00100.004100.00100.00100.00100.00599.1399.2099.1399.13699.5799.5899.5799.57799.5799.5899.5799.57898.7098.7898.7098.69998.7098.7598.7098.6910100.00100.00100.00100.00Mean99.4899.5199.4899.48Std0.490.470.490.49 Ten-fold cross-validation results of the proposed method on the case western reserve university test set. Across the 10 folds, standard deviations are below 0.5 for all reported metrics, indicating split-level stability under the adopted configuration. Figures 7 and 8 show the training loss and validation accuracy curves, respectively, with rapid early improvement followed by convergence. Training loss convergence curve. Validation accuracy curve. To validate the applicability of the proposed method across different data sources, Table 9 reports in-domain comparisons on CWRU, SEU, and AMBS. Table 9Baseline model comparison on different datasets.DatasetMethodAccuracy (%)Precision (%)Recall (%)F1-score (%)CWRUSVM96.30 ± 0.5295.80 ± 0.6595.90 ± 0.6095.85 ± 0.61CWRURF97.10 ± 0.4496.80 ± 0.5296.90 ± 0.4896.85 ± 0.50CWRUXGB97.50 ± 0.3697.10 ± 0.4097.20 ± 0.4297.15 ± 0.41CWRUCNN98.00 ± 0.3097.80 ± 0.3597.90 ± 0.3397.85 ± 0.34CWRUTrans-CNN98.30 ± 0.2598.00 ± 0.2898.10 ± 0.3098.05 ± 0.29CWRU1D-CNN-BiGRU98.28 ± 0.2298.10 ± 0.2698.00 ± 0.2598.05 ± 0.25CWRUproposed99.48 ± 0.2099.51 ± 0.2099.48 ± 0.2299.48 ± 0.21SEU1D-CNN-BiGRU97.94 ± 0.2697.60 ± 0.2997.70 ± 0.2897.65 ± 0.29SEUproposed98.50 ± 0.2298.30 ± 0.2498.40 ± 0.2698.35 ± 0.25AMBS1D-CNN-BiGRU96.83 ± 0.3296.50 ± 0.3596.40 ± 0.3396.45 ± 0.34AMBSproposed97.53 ± 0.2897.30 ± 0.3197.20 ± 0.3097.25 ± 0.30 Baseline model comparison on different datasets. Across datasets, the proposed method maintains consistent gains over the selected baselines under in-domain evaluation, establishing performance bounds before cross-condition evaluation. Cross-condition generalization results Cross-condition generalization is evaluated under the source-only protocols defined in Table 2. For cross-dataset tasks, evaluation is conducted on the shared class set under the unified label space Yuni={N, IR, OR, RE} (Sect. 3.2). During training, the model has access only to the labeled source domain. No target-domain samples, either labeled or unlabeled, are used for training, validation, hyperparameter selection, frequency-band selection, physical-prior selection, data augmentation, or early stopping. Therefore, the reported cross-condition results evaluate source-only generalization to unseen operating conditions or unseen platforms rather than adaptation with target-domain information. In addition to end-to-end and hybrid baselines, Table 10 includes two recent bearing-diagnosis DG baselines under the same no-target-access assumption: FARNet-SS and DPICEN. FARNet-SS is used to represent frequency-guided DG comparison, whereas DPICEN is used to represent physical-information-consistency-based unknown-domain diagnosis comparison. ERM and CORAL are also included as generic single-source DG references in Table 10. Additional generic DG baselines, including IRM, VREx, and Mixup, are presented in Table 11. Table 10Performance comparison on cross-condition tasks.ProtocolTask IDTrain DomainTest DomainMetricOurs (Full)FARNet-SSCNN-BiGRUDPICENCWT-based Swin TransformerVMD-enhanced CNN-BiGRU-AttentionERM (single-source)CORAL REGULARIZATION (SINGLE-SOURCE)Cross-speedAMBS-1500→2000AMBS @ 1500 r/minAMBS @ 2000 r/minAccuracy (%)98.22 ± 0.1897.35 ± 0.2697.62 ± 0.2297.84 ± 0.2097.93 ± 0.1997.48 ± 0.2497.58 ± 0.3097.72 ± 0.28Macro-F1 (%)97.86 ± 0.2096.78 ± 0.3097.12 ± 0.2597.31 ± 0.2397.43 ± 0.2196.96 ± 0.2797.10 ± 0.3497.28 ± 0.31Cross-speedAMBS-2000→1500AMBS @ 2000 r/minAMBS @ 1500 r/minAccuracy (%)98.03 ± 0.2197.12 ± 0.2897.42 ± 0.2597.63 ± 0.2397.72 ± 0.2297.24 ± 0.2797.36 ± 0.3397.55 ± 0.30Macro-F1 (%)97.56 ± 0.2496.46 ± 0.3296.84 ± 0.2997.02 ± 0.2697.14 ± 0.2496.62 ± 0.3096.90 ± 0.3697.05 ± 0.33Cross-datasetCWRU→SEUCWRUSEUAccuracy (%)98.31 ± 0.2797.41 ± 0.3897.62 ± 0.3497.82 ± 0.3198.02 ± 0.2997.74 ± 0.3597.66 ± 0.3697.88 ± 0.34Macro-F1 (%)97.92 ± 0.3097.02 ± 0.4297.22 ± 0.3797.41 ± 0.3597.63 ± 0.3197.33 ± 0.3997.25 ± 0.4097.48 ± 0.37Cross-datasetCWRU→AMBSCWRUAMBSAccuracy (%)97.83 ± 0.3397.05 ± 0.4197.23 ± 0.3997.43 ± 0.3697.62 ± 0.3497.31 ± 0.4097.18 ± 0.4497.40 ± 0.41Macro-F1 (%)97.24 ± 0.3696.52 ± 0.4696.71 ± 0.4496.92 ± 0.4097.12 ± 0.3896.81 ± 0.4396.62 ± 0.4896.86 ± 0.45Cross-datasetSEU→CWRUSEUCWRUAccuracy (%)98.42 ± 0.2297.53 ± 0.3397.73 ± 0.3197.92 ± 0.2898.12 ± 0.2597.84 ± 0.3097.82 ± 0.3298.02 ± 0.30Macro-F1 (%)98.03 ± 0.2597.12 ± 0.3697.33 ± 0.3597.52 ± 0.3297.74 ± 0.2897.45 ± 0.3497.45 ± 0.3597.65 ± 0.33Cross-datasetSEU→AMBSSEUAMBSAccuracy (%)97.32 ± 0.4197.01 ± 0.4897.12 ± 0.4697.21 ± 0.4497.41 ± 0.4297.12 ± 0.4796.98 ± 0.5097.20 ± 0.47Macro-F1 (%)96.82 ± 0.4596.42 ± 0.5296.52 ± 0.5096.62 ± 0.4896.83 ± 0.4696.60 ± 0.5196.40 ± 0.5496.62 ± 0.50Cross-datasetAMBS→CWRUAMBSCWRUAccuracy (%)97.93 ± 0.2997.14 ± 0.3997.31 ± 0.3797.52 ± 0.3497.71 ± 0.3197.42 ± 0.3897.44 ± 0.3997.66 ± 0.37Macro-F1 (%)97.45 ± 0.3296.62 ± 0.4496.82 ± 0.4197.02 ± 0.3897.22 ± 0.3596.92 ± 0.4296.98 ± 0.4397.20 ± 0.41Cross-datasetAMBS→SEUAMBSSEUAccuracy (%)97.52 ± 0.3597.02 ± 0.4597.14 ± 0.4397.31 ± 0.4097.52 ± 0.3797.22 ± 0.4497.12 ± 0.4297.34 ± 0.40Macro-F1 (%)97.03 ± 0.3896.42 ± 0.5096.62 ± 0.4796.82 ± 0.4497.04 ± 0.4096.72 ± 0.4896.66 ± 0.4696.88 ± 0.44 Performance comparison on cross-condition tasks. Table 11Cross-condition performance of additional domain generalization (DG) baselines under the no-target-access protocol.TaskMetricERMCORALIRMVRExMixupAMBS 1500→2000Acc97.5897.7297.60 ± 0.3097.66 ± 0.2897.70 ± 0.28Macro-F197.1097.2897.15 ± 0.3397.22 ± 0.3197.26 ± 0.30AMBS 2000→1500Acc97.3697.5597.40 ± 0.3397.48 ± 0.3197.52 ± 0.30Macro-F196.9097.0596.95 ± 0.3697.01 ± 0.3397.04 ± 0.33CWRU→SEUAcc97.6697.8897.72 ± 0.3697.80 ± 0.3497.84 ± 0.34Macro-F197.2597.4897.30 ± 0.4097.40 ± 0.3797.44 ± 0.37CWRU→AMBSAcc97.1897.4097.22 ± 0.4497.30 ± 0.4297.34 ± 0.41Macro-F196.6296.8696.66 ± 0.4896.76 ± 0.4596.82 ± 0.45SEU→CWRUAcc97.8298.0297.86 ± 0.3297.94 ± 0.3097.98 ± 0.30Macro-F197.4597.6597.50 ± 0.3597.58 ± 0.3397.62 ± 0.33SEU→AMBSAcc96.9897.2097.02 ± 0.5097.12 ± 0.4897.16 ± 0.47Macro-F196.4096.6296.45 ± 0.5496.56 ± 0.5096.60 ± 0.50AMBS→CWRUAcc97.4497.6697.48 ± 0.3997.56 ± 0.3897.62 ± 0.37Macro-F196.9897.2097.02 ± 0.4397.12 ± 0.4197.18 ± 0.41AMBS→SEUAcc97.1297.3497.16 ± 0.4297.26 ± 0.4097.30 ± 0.40Macro-F196.6696.8896.70 ± 0.4696.80 ± 0.4496.84 ± 0.44 Cross-condition performance of additional domain generalization (DG) baselines under the no-target-access protocol. Across the eight cross-condition tasks in Table 10, the proposed method obtains the strongest average performance among the evaluated source-only methods. Compared with CNN-BiGRU, the results indicate that the mechanism-guided dual-path design provides information beyond a purely temporal deep baseline. Compared with recent bearing-diagnosis generalization baselines, including FARNet-SS and DPICEN, the proposed method maintains higher average Accuracy and Macro-F1 under the same source-only model-selection protocol. Some individual task-level margins are small, especially against the strongest time-frequency baseline, so the results should be interpreted as an average cross-condition advantage rather than uniform superiority in every single metric. Together with the ablation and anchor-replacement analyses, these comparisons suggest that the performance gain is associated with the joint use of learnable resonance demodulation, bidirectional cross-view alignment, and sample-wise gated fusion. The task-level domain-gap indicators in Table 6 provide additional context: larger discrepancy values generally coincide with lower cross-condition accuracy across the evaluated protocols. Cross-speed tasks are evaluated under the original AMBS label taxonomy with seven classes (N, IR1/IR2, OR1/OR2, RE1/RE2). Cross-dataset tasks are evaluated under the unified label space with four classes. Accuracy and Macro-F1 values are compared across methods within the same task, rather than across tasks with different label spaces. To broaden the comparison beyond bearing-specific methods, additional generic DG baselines are evaluated in Table 11. IRM, VREx, and Mixup are selected because they represent commonly used invariance-, risk-variance-, and interpolation-based DG strategies. All are trained and selected using the same source-domain splits as the proposed method and are evaluated on the corresponding held-out target domains. Reference results under UDA Reference results under a less restrictive assumption are reported in Table 12, where unlabeled target-domain samples are available during training (DANN/CDAN). This setting differs from the DG-like protocol used for the proposed method. Table 12Comparison with strong UDA baselines.DatasetMethodAccuracy (%)Precision (%)Recall (%)F1-score (%)CWRUDANN (UDA)98.08 ± 0.1697.86 ± 0.2097.78 ± 0.2297.82 ± 0.21CWRUCDAN (UDA)98.33 ± 0.1498.12 ± 0.1898.04 ± 0.1998.08 ± 0.18SEUDANN (UDA)97.66 ± 0.2497.38 ± 0.2897.32 ± 0.3097.35 ± 0.29SEUCDAN (UDA)98.03 ± 0.2097.82 ± 0.2597.74 ± 0.2697.78 ± 0.25AMBSDANN (UDA)97.18 ± 0.2796.92 ± 0.3196.83 ± 0.3396.87 ± 0.32AMBSCDAN (UDA)97.58 ± 0.2397.33 ± 0.2897.24 ± 0.2997.28 ± 0.28 Comparison with strong UDA baselines. Table 12 reports averages (mean ± std) over the six cross-dataset transfer directions (CWRU↔SEU, CWRU↔AMBS, SEU↔AMBS) under the unified label space . CDAN exceeds DANN under the reported setting, reflecting the contribution of class-conditional alignment in adversarial domain adaptation. Ablation studies Ablation experiments are performed under identical data splits and training settings to isolate the contribution of each component. Except for the target module removed or replaced in each variant, all ablation settings use the same architecture and training configuration. The window length is 2048 samples, the stride is 1024 samples, the batch size is 64, the number of training epochs is 40, and the embedding dimension is 128. Adam is used as the optimizer, with an initial learning rate of and a weight decay coefficient of . The alignment loss weight, the gate-entropy sparsity weight, and the initial temperature are fixed at 0.1, 0.01, and 0.07, respectively. The dilated convolutional encoder and temporal-attention pooling in Channel B are kept unchanged across all ablation settings to avoid confounding changes in temporal-backbone capacity. The ablations remove one design element at a time: (i) learnable band-pass localization in Channel A, (ii) the env² statistical descriptor in Channel A, (iii) entropy regularization for gated fusion, and (iv) cross-view alignment via bidirectional InfoNCE with learnable temperature. Results are summarized in Table 13. Table 13Comparison of ablation study results.SettingCWRU (%)SEU (%)AMBS (%)Average training time (s)Parameter count (K)Ours(Full)99.48 ± 0.298.5 ± 0.497.5 ± 0.52.56134.8w/o Learnable Band-pass98.1 ± 0.497.7 ± 0.596.3 ± 0.62.31134.8w/o env² Features98.5 ± 0.497.8 ± 0.596.9 ± 0.53.43134.5w/o Entropy-Sparse Gate98.7 ± 0.498.2 ± 0.497.1 ± 0.53.24134.8w/o InfoNCE Alignment98.8 ± 0.498.3 ± 0.597.3 ± 0.42.74134.8 Comparison of ablation study results. Table 13 shows consistent performance degradation when removing each component. Removing learnable band-pass localization yields the largest drop across datasets, indicating that data-driven resonance selection contributes materially to the reported performance. Replacing env² features with envelope-only statistics decreases accuracy, suggesting that the squared-envelope energy statistics provide a more stable impulse-oriented descriptor under noise. Removing entropy regularization reduces performance and increases run-to-run variability, consistent with a tendency toward near-uniform gating. Removing cross-view alignment reduces accuracy while leaving model size essentially unchanged, reflecting the role of explicit cross-view consistency beyond classification supervision. To distinguish mechanism-driven anchoring from generic multi-branch modeling, the analytic pathway is replaced by same-dimensional non-mechanistic features while keeping the gate, alignment objective, classifier, and training settings unchanged. Three replacements are considered: (i) 12-D conventional time-domain statistics, (ii) 12-D PSD band-energy features computed on fixed partitions, and (iii) a 12-D random projection of raw segments. Results are summarized in Table 14. Table 14Anchor replacement with same-dimensional non-mechanistic features.Setting (Channel A anchor)Cross-speed Avg Acc (%) ↑Cross-speed Avg Macro-F1 (%) ↑Cross-dataset Avg Acc (%) ↑Cross-dataset Avg Macro-F1 (%) ↑MMD(B) ↓env² anchor (proposed)98.13 ± 0.1197.71 ± 0.1398.02 ± 0.1297.62 ± 0.140.070 ± 0.00312-D time-domain statistics97.55 ± 0.1697.05 ± 0.1897.20 ± 0.2096.65 ± 0.220.084 ± 0.00512-D PSD band-energy(fixed partitions)97.68 ± 0.1597.18 ± 0.1797.35 ± 0.1896.85 ± 0.210.081 ± 0.00412-D random projection(raw segments)97.40 ± 0.1896.90 ± 0.2097.05 ± 0.2396.55 ± 0.250.090 ± 0.006 Anchor replacement with same-dimensional non-mechanistic features. 12-D PSD band-energy (fixed partitions) 12-D random projection (raw segments) Replacing the analytic anchor with non-mechanistic alternatives leads to lower cross-condition performance and larger temporal-representation discrepancy (MMD on Channel B). The env²-based anchor yields the best cross-speed and cross-dataset averages under the same fusion and alignment mechanism, suggesting that the observed gains depend on a mechanism-relevant analytic view rather than an arbitrary auxiliary branch. Together with the MMD reduction reported in Table 4 and the alignment-objective comparison in Table 15, these results support the proposed generalization mechanism: the analytic pathway provides a mechanism-guided semantic anchor, bidirectional InfoNCE reduces temporal-representation drift, and the gate adaptively fuses the two views according to sample-wise reliability. Table 15Comparison of cross-channel alignment objectives.Alignment settingAlignment objectiveCross-speed Avg Acc (%)Cross-speed Avg Macro-F1 (%)Cross-dataset Avg Acc (%)Cross-dataset Avg Macro-F1 (%)w/o alignmentNone97.5297.0597.6097.08Align-Cosine1 − cos(zA, zB)97.7397.2897.8297.33Align-MSE‖g(zA) − g(zB)‖²97.7097.2397.7997.29Align-Triplet (m = 0.5)Triplet loss97.8497.4097.9397.48Align-CKA1 − CKA(zA, zB)97.8897.4497.9697.52OursBidirectional InfoNCE with a learnable temperature τ98.1397.7198.0297.62 Comparison of cross-channel alignment objectives. Alternative cross-view alignment objectives are compared under the same backbone, data splits, and training configuration. Compared objectives include regression-style alignment (cosine, MSE), metric learning (triplet), and representation-similarity alignment (CKA). Results are summarized in Table 15. Bidirectional InfoNCE with learnable temperature achieves the best average performance across cross-speed and cross-dataset tasks under the reported setting. The alignment module is further evaluated under fixed-temperature and learnable-temperature settings while keeping all other components unchanged. Fixed-temperature baselines use ; the learnable-temperature setting optimizes . Results are summarized in Table 16. Table 16Fixed-temperature vs. learnable-temperature in bidirectional InfoNCE alignment.Alignment settingTemperature τCross-speed Avg Acc (%) ↑Cross-speed Avg Macro-F1 (%) ↑Cross-dataset Avg Acc (%) ↑Cross-dataset Avg Macro-F1 (%) ↑MMD(B) ↓Fixed-τ InfoNCE0.0798.0297.5697.9497.540.072Fixed-τ InfoNCE0.1098.0797.6297.9897.580.071Fixed-τ InfoNCE0.2097.9297.4497.8697.460.075 Learnable-τ InfoNCE (proposed) softplus(t)+ε 98.13 97.71 98.02 97.62 0.070 Fixed-temperature vs. learnable-temperature in bidirectional InfoNCE alignment. The learnable band-pass mask in Channel A is compared with fixed-band alternatives determined using the source-domain training set only. Two fixed-band baselines are considered: (i) an engineering band selected on the source domain and fixed during training, and (ii) a kurtogram/spectral-kurtosis-selected band fixed during training. Results are summarized in Table 17. Table 17Fixed band selection vs. learnable band-pass mask in Channel A.Channel-A band selectionBand definition/selection ruleCross-speed Avg Acc (%) ↑Cross-speed Avg Macro-F1 (%) ↑Cross-dataset Avg Acc (%) ↑Cross-dataset Avg Macro-F1 (%) ↑D_PSD (Band-pass x_bp) ↓Fixed band (engineering)Center/bandwidth selected on source training set only; fixed during training97.7597.2597.8597.451.66Fixed band (kurtogram/SK)Band maximizes spectral kurtosis on source training set; fixed during training97.8897.3897.9297.521.60 Learnable band-pass (proposed) Differentiable mask (c, b) optimized end-to-end 98.13 97.71 98.02 97.62 1.51 Fixed band selection vs. learnable band-pass mask in Channel A. The distribution of gating weights across datasets and operating conditions is shown in Fig. 9. Correlation analysis between gating weights and an impulse-strength indicator (kurtosis of squared envelope energy) is reported in Table 18. Distribution of adaptive gating weights. Table 18Quantitative interpretability of entropy-sparse gating via correlation analysis.Dataset/protocolIndicator (per sample)Spearman ρ(wA, κ(q))Spearman ρ(wB, κ(q))p-value for ρ(wA,·)CWRU (in-domain)Kurtosis of squared envelope κ(q)+ 0.41−0.39< 0.001SEU (in-domain)Kurtosis of squared envelope κ(q)+ 0.36−0.33< 0.001AMBS (1500→2000)Kurtosis of squared envelope κ(q)+ 0.48−0.45< 0.001AMBS (2000→1500)Kurtosis of squared envelope κ(q)+ 0.44−0.40< 0.001 Quantitative interpretability of entropy-sparse gating via correlation analysis. Positive correlations between and and negative correlations between and reflect a tendency to assign higher weight to the analytic pathway when impulse signatures are stronger under the reported setting. Cross-view alignment effects are additionally visualized via t-SNE in Fig. 10. t-SNE visualization of feature alignment. Complexity and statistical significance This section reports model complexity and statistical reliability. Complexity is characterized by parameter count (Params), FLOPs for the neural-network forward pass under a fixed input length, and average training time under a unified training configuration. In addition, system-level latency considerations are discussed to clarify the gap between forward-pass FLOPs and end-to-end deployment cost. Model complexity and efficiency analysis Params and FLOPs are reported to describe model size and forward-pass computational cost, and average training time is reported as an empirical indicator of training overhead. Params mainly reflect storage scale, while FLOPs approximate the arithmetic cost of a single forward pass under a fixed input length and do not directly equal wall-clock latency. Under a unified training configuration (window length win = 2048, hop size hop = 1024, batch size 64, and 40 training epochs), the full model achieves accuracies of 99.48 ± 0.2%, 98.5 ± 0.4%, and 97.5 ± 0.5% on CWRU, SEU, and AMBS, respectively, with an average training time of 2.56s. With input length win = 2048, the model size is 0.1348 M parameters and the neural forward-pass cost is 127.11 M FLOPs. Unless otherwise stated, FLOPs are computed for the neural-network forward inference only. End-to-end inference latency may additionally include preprocessing and analytic transformations in Channel A, such as rFFT, frequency-domain masking, inverse FFT, Hilbert transform for envelope extraction, and computation of env² statistics (Energy/RMS/Peak/Kurtosis on , e, and ). These operations contribute additional time depending on hardware, implementation (CPU/GPU), kernel fusion, and batching strategy. Therefore, Params and FLOPs are reported as hardware-agnostic proxies for complexity, while end-to-end latency should be measured on the target platform when deployment constraints are strict. Table 19 compares Params, FLOPs, and average training time across representative architectures under the same input length and reporting criteria; FLOPs are computed under win = 2048 using a unified script. Table 19Complexity and efficiency comparison.MethodCWRU (%)SEU(%)AMBS(%)Avg. training time (s)Params (M)FLOPs (M)Ours (Full)99.48 ± 0.298.5 ± 0.497.5 ± 0.52.560.1348127.11FARNet-SS98.9 ± 0.898.1 ± 0.796.8 ± 0.63.200.260195DPICEN99.0 ± 0.498.2 ± 0.696.9 ± 0.73.980.570280CNN-BiGRU99.1 ± 0.298.3 ± 0.497.0 ± 0.54.400.720340CWT-based Swin Transformer99.2 ± 0.298.4 ± 0.497.1 ± 0.58.902.10820VMD-enhanced CNN-BiGRU-Attention99.0 ± 0.398.2 ± 0.596.9 ± 0.55.600.95410 Complexity and efficiency comparison. Table 20 provides a component-wise FLOPs breakdown, showing that the temporal convolutional branch dominates the neural forward-pass cost, while FFT-related operations and linear/MLP heads account for a small fraction of the reported FLOPs. Table 20Component-wise FLOPs breakdown.FLOPs componentFLOPs (M)Share (%)InterpretationTemporal Conv (main)125.8398.99The computational cost is dominated by the temporal convolutional backbone.Temporal Conv (stem)0.920.72The first convolutional layer accounts for a notable portion of the convolutional overhead.FFT-related (Channel-A)0.230.18The frequency-domain computations in the analytical branch incur a relatively low cost.Linear/MLP0.130.11The fully connected modules, such as the fusion and classification heads, contribute only a small overhead.Total127.11100.00— Component-wise FLOPs breakdown. Overall, the reported performance is obtained with 0.1348 M parameters and 127.11 M FLOPs for the neural forward pass. The FLOPs breakdown indicates that forward-pass computation is dominated by the temporal backbone, while analytic-branch FLOPs are minor under the adopted accounting. Statistical significance tests Statistical reliability is evaluated using 10 independent runs per dataset/task setting with identical hyperparameters and different random seeds (n = 10, degrees of freedom for paired t-tests df = 9). Paired comparisons are performed on run-wise differences using two-sided tests. Effect sizes (Cohen’s d) and 95% confidence intervals (CI) are reported alongside p-values. (1)Assumption checks. Shapiro–Wilk tests are applied to paired difference sequences. When required, Levene tests are used to assess variance homogeneity. If normality is satisfied, paired t-tests are used; otherwise, Wilcoxon signed-rank tests are used. (2)Primary paired comparison. CNN-BiGRU is used as the primary control baseline. Paired tests in Table 21 are based on the 10-run difference sequences between the proposed method and CNN-BiGRU (two-sided paired t-test when normality holds). Table 21Statistical significance test results of the proposed method.Test typeStatistic/dfp-valueSignificanceConclusion statementsShapiro–Wilk testW = 0.973(CWRU), 0.97,SEU, 0.969,AMBS,p > 0.05Not significantThe difference sequence does not significantly deviate from normality, satisfying the assumptions for paired tests.Paired t-test (Accuracy, two-sided)t = 3.73(CWRU), df = 90.0047Significant(p < 0.01)On CWRU, the proposed method significantly outperforms the baseline.t = 3.12(SEU), df = 90.0123Significant(p < 0.05)On SEU, the proposed method significantly outperforms the baseline.t = 3.42(AMBS), df = 90.0076Significant(p < 0.01)On AMBS, the proposed method significantly outperforms the baseline.Friedman test (overall differences in rankings)χ²(5) = 38.33.25 × 10⁻⁷Significant(p < 0.001)The compared methods included in the Friedman test exhibit significant differences in overall average rankings across the specified tasks, reflecting overall performance differences among methods.Cohen’s d (effect size)d = 1.02(CWRU), 0.88,SEU, 0.93,AMBS,—Large effectThe improvement has a clear practical (substantive) effect.95% confidence interval (magnitude of Accuracy improvement)[0.004, 0.018](CWRU), [0.003, 0.016],SEU, [0.005, 0.019],AMBS,——The improvement magnitude is stable (the CI does not include 0). Statistical significance test results of the proposed method. (3)Multiple-method comparison. Overall differences among multiple methods across multiple tasks are assessed using the Friedman test based on within-task rankings. (4)Multiple-comparison correction. When paired comparisons are performed against multiple baselines under the same metric, Holm–Bonferroni correction is applied within that metric family. Table 21 reports Shapiro–Wilk normality checks (CWRU: W=0.973; SEU: W=0.97; AMBS: W=0.969, all p>0.05). Under two-sided paired t-tests against CNN-BiGRU (n=10, df=9), accuracy improvements are significant on CWRU ( t=3.73, p=0.0047), SEU ( t=3.12, p=0.0123), and AMBS ( t=3.42, p=0.0076). Effect sizes are large (Cohen’s d=1.02on CWRU, 0.88 on SEU, and 0.93 on AMBS), and the 95% CIs for accuracy improvement exclude zero (CWRU: [0.004, 0.018], SEU: [0.003, 0.016], AMBS: [0.005, 0.019]). The Friedman test indicates overall ranking differences among methods (, ) under the reported block design. To provide a finer-grained view beyond the primary control baseline, paired comparisons against representative baselines are further reported for Accuracy, Precision, Recall, and F1-score. FARNet-SS and DPICEN are included in this analysis to examine whether the observed gains remain meaningful against recent bearing-diagnosis generalization baselines, rather than only against conventional CNN/RNN-type models. Run-wise paired tests are conducted under the same n = 10 protocol. Table 22 reports nominal two-sided p-values and effect sizes, and Holm–Bonferroni correction is applied within each metric family when determining correction-level significance. Table 22Paired Statistical Test Results.Compared methodAccuracy (p)Precision (p)Recall (p)F1-score (p)Cohen’s dDPICEN0.00110.01420.00100.00091.41CWT-based Swin Transformer0.00060.01830.00130.00111.36VMD-enhanced CNN-BiGRU-Attention0.00090.02200.00170.00131.28FARNet-SS0.00020.03850.00040.00031.57CNN-BiGRU0.00050.03010.00100.00081.44 Paired Statistical Test Results. Table 22 reports nominal p-values from two-sided paired tests together with Cohen’s d. The correction-level interpretation is based on Holm–Bonferroni adjustment within each metric family. The results show strong evidence of improvement in Accuracy, Recall, and F1-score against the listed representative baselines, while Precision comparisons should be interpreted more cautiously after multiple-comparison correction. The consistently large effect sizes indicate that the observed gains are practically meaningful under the adopted source-only evaluation setting. Interpretability and visualization-based validation This subsection presents qualitative evidence for interpretability from two perspectives: (i) the frequency-domain response learned by Channel A, and (ii) the embedding-space structure of the fused representation. Figure 11 shows the learned frequency-domain response of Channel A after training. The response exhibits an approximately band-pass profile with higher weights concentrated in a specific normalized frequency interval, consistent with emphasizing resonance bands that carry impact-related modulation. Because the band-pass mask is a trainable component optimized end-to-end, the curve in Fig. 11 directly reflects learned parameters rather than a post-hoc signal-processing visualization. Frequency-domain attention spectrum/learned filtering response of Channel A. Figure 12 visualizes the fused embeddings using t-SNE. The projection suggests that samples from different fault classes are generally separable, with reduced overlap under the evaluated setting. This visualization is provided as an intuitive view of the embedding structure and is interpreted together with the quantitative evaluations, noting that t-SNE layouts may vary with initialization and hyperparameter choices. Fusion-effect validation: t-SNE feature distribution. To examine stability of the learnable band-pass localization, the learned center frequency and bandwidth parameters are summarized across random seeds for each protocol. Across runs under the same training condition, the parameters converge to similar values and the resulting mask responses show limited variation, suggesting that resonance localization is not driven by a single initialization. To further strengthen the class-wise diagnostic evidence, row-normalized confusion matrices of the proposed method are provided in Fig. 13. The rows denote the true labels and the columns denote the predicted labels. For the AMBS cross-speed tasks shown in Fig. 13, the original seven-class label set {N, IR1, IR2, OR1, OR2, RE1, RE2} is used, whereas the representative cross-dataset results are presented under the unified four-class label space {N, IR, OR, RE}. The task-level accuracies shown in the titles are consistent with the corresponding results reported in Table 10. The dominant diagonal entries indicate that the proposed model maintains stable class-wise discriminability rather than relying on a few easily separable classes to achieve high overall accuracy. The off-diagonal entries remain limited, suggesting that only a small proportion of samples are confused under operating-condition shifts. For the AMBS cross-speed tasks, the residual errors are mainly distributed between mechanically related fault categories or severity levels. For the cross-dataset protocols, the slightly larger off-diagonal entries are consistent with the stronger domain gaps reported in Table 6. These results provide additional class-wise diagnostic evidence that the proposed semantic-consistency framework preserves fault-class separability under both cross-speed and cross-dataset conditions. Row-normalized confusion matrices of the proposed method under representative diagnostic protocols. Conclusions and future work Conclusions This study addresses bearing fault diagnosis under operating-condition shifts relevant to agricultural machinery, where vibration signals exhibit non-stationarity, cross-speed/cross-platform distribution mismatch, and degraded generalization when a single representation pathway is used. A physics–deep semantic consistency learning framework is developed by coupling a mechanism-consistent analytic pathway with an end-to-end temporal encoder within a unified architecture and evaluating it under strict source-only, single-source DG protocols without target-domain access. Channel A performs learnable resonance-band localization and constructs a compact impulse-oriented descriptor using squared Hilbert-envelope energy (env²) statistics, providing a low-dimensional and interpretable representation. Channel B encodes raw vibration segments using dilated 1D convolutions and temporal-attention pooling to capture long-range temporal structure. Complementarity arises from their different inductive biases rather than a manually imposed functional separation. A sample-wise gate with entropy regularization is adopted to avoid uniform fusion and to expose the dominant decision pathway per sample. Bidirectional InfoNCE alignment with a learnable temperature is further employed to encourage source-domain cross-view semantic agreement between the analytic and temporal embeddings. The resulting generalization mechanism is therefore attributed to the combination of mechanism-guided anchoring, reduced temporal-representation drift, and reliability-aware gated fusion under unseen operating conditions. On CWRU, SEU, and AMBS, in-domain accuracies of 99.48%, 98.50%, and 97.53% are achieved. Under cross-speed evaluation on AMBS, accuracies of 98.22% (1500→2000 r/min) and 98.03% (2000→1500 r/min) are obtained. Under cross-dataset evaluation on the unified label set {N, IR, OR, RE}, the method achieves the best average performance among the evaluated source-only baselines, including generic DG methods and recent bearing-diagnosis generalization baselines such as FARNet-SS and DPICEN. Component-wise ablations demonstrate consistent degradation when learnable band-pass localization, env² statistics, entropy-sparse gating, or InfoNCE alignment is removed. The model remains lightweight (0.1348 M parameters; 127.11 M FLOPs for the neural forward pass), supporting deployment under resource-constrained monitoring settings. Limitations and practical considerations Although the proposed method achieves stable results across multiple datasets and cross-condition evaluations, its applicability boundaries and potential limitations should still be clarified to inform subsequent research and engineering applications. (1) Dependence on the quality of impact information. While the learnable resonance-band localization in Channel A is data-driven and adaptive, its effectiveness still relies on the presence of impact components in the vibration signal that can be demodulated. In scenarios with extremely low signal-to-noise ratio, early-stage incipient faults with weak signatures, or heavy masking by operation-induced impacts, the discriminability of envelope-energy statistics may deteriorate, and the analytic pathway may contribute less under such segments. (2) Domain shift beyond the training coverage. The proposed method exhibits strong robustness under cross-speed and cross-dataset (platform-difference) conditions. However, when the test scenario involves bearing types, installation structures, sensor locations/orientations, or drivetrain structural changes that are not covered by training, domain shift may become substantially stronger and model performance may still degrade. In such cases, it may be necessary to introduce a small amount of on-site calibration data, adopt more robust normalization/calibration strategies, or combine the framework with lightweight domain adaptation mechanisms. (3) Robust configuration of loss weights and the temperature parameter. The proposed method is optimized jointly with classification supervision, cross-channel alignment, and entropy sparsity regularization, where , , and the initial value and learning process of the temperature parameter affect alignment strength, gating allocation, and the final generalization performance. Although stable results are obtained under a unified setting in this study, more systematic sensitivity analyses and robust configuration strategies may still be required when the noise level, sample size, or class imbalance changes substantially, so as to avoid representation collapse caused by overly strong alignment or insufficient fusion caused by overly strong sparsity. (4) System-level overhead and real-time constraints in engineering deployment. Although the proposed model remains lightweight in terms of parameter count and FLOPs, the dual-channel structure may still introduce additional overhead in practice, including data preprocessing, frequency-domain transformations, and module scheduling. Under stricter edge-side real-time constraints or on low-power platforms, inference-framework optimization and operator fusion may be required to further reduce end-to-end latency and energy consumption. (5) Gap between laboratory benchmarks and in-field agricultural environments. Although the AMBS testbed provides a controlled platform to evaluate speed-induced distribution shifts, real-field agricultural machinery involves stronger multi-source coupling (e.g., dust/mud contamination, variable lubrication regimes, and complex drivetrain excitations). Therefore, the current results should be interpreted as a feasibility validation of the proposed mechanism under strict cross-condition protocols, and large-scale in-field agricultural datasets are required for further verification. (6) Unified label mapping may mask fine-grained severity transfer. In cross-dataset experiments, dataset-specific sublabels (e.g., IR1/IR2, OR1/OR2, RE1/RE2) are merged into super-classes {IR, OR, RE} to ensure a shared label space. While this enables fair transfer evaluation across datasets with different annotation granularities, it may mask fine-grained generalization limitations across fault severities (e.g., transferring between mild and severe defects). Future work will evaluate severity-aware transfer protocols and retain multi-level labels when consistent annotations are available, to quantify performance under fine-grained fault progression. Research innovations The main innovations of this study can be summarized as follows: (1) A physics–deep semantic consistency learning framework is presented for cross-operating-condition bearing diagnosis, coupling a mechanism-consistent analytic descriptor with an end-to-end temporal encoder under a source-only, single-source DG protocol without target-domain access. (2) Resonance demodulation is reformulated as a differentiable analytical chain via learnable band-pass localization, and a compact env² statistical descriptor is derived to provide an interpretable impulse-oriented representation under noisy conditions. (3) Sample-wise gated fusion with entropy regularization is introduced to prevent near-uniform averaging and to accommodate condition-dependent feature contribution drift with improved interpretability. (4) Bidirectional InfoNCE alignment with a learnable temperature is employed to enforce cross-path semantic agreement and to mitigate representation drift across operating regimes and platforms. Future work Future research will focus on improving the adaptability, robustness, and engineering usability of the proposed method under more complex field operating conditions and stricter deployment constraints, mainly along the following directions: (1) introducing adaptive noise-aware and weak-impact enhancement mechanisms to improve the extraction of diagnosable information under extremely low signal-to-noise ratios and early-stage incipient faults; (2) exploring lightweight domain adaptation strategies that are compatible with the domain generalization setting to address more complex distribution shifts across devices, sensors, and structural configurations; (3) investigating edge-oriented model compression, operator fusion, and inference acceleration methods to further reduce system-level latency and energy consumption in order to meet real-time monitoring requirements; (4) extending the proposed framework to multi-sensor fusion scenarios by combining vibration signals with other sensing modalities (e.g., current, acoustics, or temperature) to improve diagnostic reliability and anti-interference capability under complex operating conditions. (5) Acquisition and validation of in-field agricultural datasets. Future studies will focus on incorporating large-scale in-field vibration data collected directly from working machinery (e.g., combine harvesters or tractors during tillage). We aim to further refine the model’s domain adaptation and generalization capabilities under diverse, real-world crop-harvesting scenarios to fully bridge the gap between laboratory simulation and practical agricultural engineering. Author contributions Zhenlong Li conceived and designed the study, developed the methodology, implemented the model, conducted the experiments, and drafted the manuscript. Shanyu Piao supervised the research, provided critical revisions, and was responsible for overall project coordination and funding acquisition. Haowei Li assisted with data preprocessing and experimental setup.All authors reviewed and approved the final manuscript. Funding This study was supported by Basic Scientific Research Project of Liaoning Provincial Department of Education (LJ112510142017), China. Data availability The data used to support the findings of this study are available from the corresponding author upon request. Declarations Competing interests The authors declare no competing interests. Footnotes Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. References Associated Data Data Availability Statement The data used to support the findings of this study are available from the corresponding author upon request.