Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

SpectralTCN: A multi-resolution wavelet gating network for vibration-based structural damage detection

  • Quan Pham Hong,

    Roles Conceptualization, Investigation, Methodology, Validation, Writing – original draft, Writing – review & editing

    Affiliation Faculty of Civil Engineering, University of Transport Technology, Ha Noi, Viet Nam

  • Trung Vu Manh,

    Roles Supervision, Validation, Visualization, Writing – original draft

    Affiliation Application of Artificial Intelligence for Structural Health Monitoring (AI-SHM) Research Group (R2026-UTC-01), Faculty of Civil and Environmental Engineering, University of Transport and Communications, Hanoi, Vietnam

  • Bich Nguyen Thach,

    Roles Investigation, Methodology, Software, Supervision

    Affiliation Application of Artificial Intelligence for Structural Health Monitoring (AI-SHM) Research Group (R2026-UTC-01), Faculty of Civil and Environmental Engineering, University of Transport and Communications, Hanoi, Vietnam

  • Le Nguyen Dan,

    Roles Conceptualization, Formal analysis, Writing – original draft, Writing – review & editing

    Affiliation Application of Artificial Intelligence for Structural Health Monitoring (AI-SHM) Research Group (R2026-UTC-01), Faculty of Civil and Environmental Engineering, University of Transport and Communications, Hanoi, Vietnam

  • Hoa Tran Ngoc

    Roles Software, Supervision, Visualization, Writing – original draft, Writing – review & editing

    ngochoa@utc.edu.vn

    Affiliation Application of Artificial Intelligence for Structural Health Monitoring (AI-SHM) Research Group (R2026-UTC-01), Faculty of Civil and Environmental Engineering, University of Transport and Communications, Hanoi, Vietnam

Abstract

Vibration-based structural health monitoring (SHM) detects damage by identifying subtle changes in a structure’s dynamic response. Deep learning models have shown strong potential for automating this classification task. However, most existing architectures share a key limitation: they either process signals purely in the time domain, or apply a global frequency-domain transform that discards information about when each frequency component occurs. This is a serious drawback, because structural damage typically manifests as short, localised events confined to specific frequency bands. This paper proposes SpectralTCN, a temporal convolutional network augmented with a Wavelet Gating Module (WGM) that performs learnable, data-dependent multi-resolution filtering within each convolutional block. The WGM decomposes intermediate features via the Discrete Wavelet Transform (DWT) into physically interpretable sub-bands corresponding to distinct structural vibration modes, applies input-adaptive sigmoid gates independently at each decomposition level, and reconstructs the filtered signal via the Inverse DWT (IDWT) with a learnable residual connection initialised to zero. Unlike FFT-based approaches, the DWT simultaneously preserves both time and frequency information, enabling the network to detect both the timing and the spectral location of damage-induced anomalies. Combined with Generalized Mean (GeM) pooling and large-kernel causal depthwise convolutions, SpectralTCN is evaluated on two benchmark datasets: the Z24 Bridge benchmark and a finite element model (FEM)-derived dataset of the My Thuan cable-stayed bridge. Experiments against 10 baseline models and 4 ablation variants, evaluated via stratified 5-fold cross-validation, demonstrate the effectiveness and generalisation capability of the proposed approach: SpectralTCN attains the highest mean accuracy on both benchmarks (92.2% on Z24 and 92.1% on My Thuan) and outperforms the strongest baseline in the 5-fold cross-validation protocol. In addition, the proposed architecture operates on short, streaming acceleration windows with a purely convolutional backbone of moderate computational cost, making SpectralTCN suitable for near-real-time, online damage detection in continuous bridge monitoring.

Introduction

Structural health monitoring (SHM) of civil infrastructure aims to detect and locate damage by continuously or periodically measuring structural responses [1]. This is especially important for maintaining the safety of large bridges. Among the available sensing modalities, vibration-based monitoring using accelerometers is the most widely adopted. This is because shifts in a structure’s dynamic characteristics (natural frequencies, damping ratios, and mode shapes) are direct indicators of damage [2]. This premise is further supported by experimental studies of structural systems under dynamic excitation. For instance, research on the response of group piles to vertical vibration during earthquake loading [3] confirms that dynamic-response characteristics are sensitive indicators of a structure’s state. Traditional SHM relies on physics-based modal analysis and visual inspection, both of which require substantial domain expertise and are sensitive to environmental confounders such as temperature variation and traffic loading that can mask damage signatures; these difficulties have motivated data-driven and metaheuristic-assisted identification schemes [4].

Data-driven approaches based on deep learning have emerged as a compelling alternative, enabling automated feature extraction directly from raw vibration signals without hand-crafted features. One-dimensional convolutional neural networks (1DCNNs) [5], long short-term memory (LSTM) networks [6], and Transformer-based models [7] have demonstrated strong performance on SHM classification tasks. More recently, Temporal Convolutional Networks (TCNs) [8] have gained traction in time-series modelling because their dilated causal convolutions and residual connections offer high computational efficiency and a large effective receptive field. ModernTCN [9] further advances this design with ConvNeXt-style blocks and large-kernel depthwise convolutions. However, a major limitation of these architectures is that they operate solely in the time domain, missing out on the critical frequency features of structural dynamics.

To address this limitation, several studies have sought to incorporate spectral information through Fourier-based processing. FNet [10], GFNet [11], and FreTS [12] demonstrated the utility of global frequency-domain operations for language and time-series tasks. However, the discrete Fourier transform (DFT) is inherently a global operation: by mapping the entire signal to the frequency domain, it completely discards temporal localisation.

The DWT addresses this limitation by providing simultaneous time-frequency resolution. It decomposes a signal into sub-bands that are localised in both time and frequency, with each decomposition level corresponding directly to a specific octave frequency band. While wavelet analysis has an established history as a preprocessing tool in SHM [13], its integration into deep learning models as a learnable, input-adaptive component embedded within network blocks remains largely unexplored.

This paper proposes SpectralTCN, a temporal convolutional network that integrates explicit multi-resolution wavelet processing through a novel Wavelet Gating Module (WGM). Building on the ModernTCN backbone, the WGM is inserted between each depthwise convolution and feed-forward layer. First, it decomposes intermediate feature maps via the DWT into sub-bands that align with structural vibration mode frequency bands. Subsequently, learnable input-adaptive sigmoid gates are applied independently at each decomposition level before the filtered signal is reconstructed via the inverse DWT within a zero-initialised residual connection. This design enables the model to selectively amplify or suppress specific frequency bands in a data-dependent manner without sacrificing temporal localisation. SpectralTCN further incorporates Generalized Mean (GeM) pooling [14] in the classification head to provide learnable temporal aggregation that adapts to localised damage signatures.

The model is evaluated on two datasets: the Z24 Bridge benchmark comprising 17 structural states recorded by 27 accelerometers [15], and a finite element model (FEM)-derived dataset of the My Thuan cable-stayed bridge in Vietnam simulating 10 structural damage scenarios. This hybrid validation strategy assesses the model under realistic, noisy operational conditions while also allowing a safe, controlled evaluation of its sensitivity to dense and progressive damage scenarios that cannot be executed on active bridges.

The main contributions of this work are:

  1. A novel WGM that performs learnable, data-dependent multi-resolution filtering via the DWT within the convolutional blocks. Unlike FFT-based approaches, the WGM preserves simultaneous time-frequency resolution, with each decomposition level physically corresponding to a specific octave frequency band of structural vibration modes.
  2. Integration of GeM pooling into the classification head, providing a learnable temporal aggregation mechanism that adapts to localised damage features.
  3. An experimental evaluation on two structural datasets (the Z24 Bridge benchmark and the My Thuan bridge FEM dataset) using stratified 5-fold cross-validation. The proposed architecture is compared against 10 baseline models spanning convolutional, recurrent, Transformer, MLP, frequency-domain and state-space families, and analysed alongside 4 ablation variants, including a controlled DWT-versus-FFT comparison inside an identical backbone.

The remainder of this paper is organised as follows. The Related work section reviews existing literature. The Methodology section presents the SpectralTCN architecture. The Experiments section describes the experimental setup and results. The Conclusions section summarises the key findings.

Related work

Deep learning for structural health monitoring

The application of deep learning to vibration-based SHM has expanded substantially over the past decade. Early approaches employed one-dimensional convolutional neural networks (1DCNNs) applied directly to raw acceleration signals, circumventing the need for manual feature extraction and demonstrating competitive performance on damage classification tasks [5]. Simultaneously, LSTM networks were applied to model the temporal dependencies in structural vibration signals, with demonstrated capability for detecting gradual stiffness degradation and crack propagation [6]. Hybrid architectures that combine these two mechanisms have gained traction for bridge damage detection [16]: CNN-BiGRU models [17] and BiLSTM-1DCNN networks [18,19] leverage convolutional feature extraction alongside bidirectional recurrent context, demonstrating improved classification accuracy on steel truss bridge benchmarks. An effective hybrid framework combines symbolic aggregate approximation with a 1DCNN-BiGRU backbone to detect stiffness degradation in the Chuong Duong steel truss bridge under simulated damage scenarios [20]. Multi-scale architectures such as InceptionTime [21], which applies parallel convolutions of varying kernel sizes, further improved the capture of temporal patterns at multiple resolutions. More recently, Transformer-based models [7] have been adopted for SHM, exploiting self-attention to model global dependencies across sensor channels and time steps simultaneously. Data-driven frameworks for bridge structures have further combined discrete structural modelling with FFT-based feature extraction to enable automated SHM from measured acceleration responses [22]. In addition, deep ensemble strategies have shown promise for improving damage classification robustness in the presence of noise [23]. Complementary to the classification model itself, a parallel line of research addresses the data-acquisition stage of SHM, where optimal sensor layout design aims to maximise the observability of damage-sensitive responses [24]. Deep learning has likewise been extended beyond fixed accelerometer networks to mobile inspection platforms; for example, a two-stage CNN combined with lighthouse-based localisation enables UAV-based monitoring in GNSS-denied environments [25].

A distinct body of work incorporates spectral features as a preprocessing step. Power spectral densities, spectrograms, and wavelet scalograms computed offline have been supplied to standard CNN or multi-layer perceptron (MLP) classifiers [13,26]; however, such pipelines decouple spectral analysis from classification and require domain expertise to select appropriate transform parameters. SpectralTCN instead embeds learnable, data-dependent multi-resolution processing directly inside the convolutional blocks.

Temporal convolutional networks

The TCN architecture [8] established dilated causal convolutions with residual connections as an effective alternative to recurrent models for sequence modelling, offering superior computational parallelism and a controllable receptive field. ModernTCN [9] extended this design with ConvNeXt-style [27] principles: large-kernel depthwise convolutions, layer normalisation, an inverted-bottleneck feed-forward network, and a hierarchical multi-stage structure, achieving state-of-the-art results on diverse time-series benchmarks. SpectralTCN builds directly on the ModernTCN backbone, augmenting each block with the WGM to introduce explicit multi-resolution frequency processing while preserving the efficiency and long-range modelling capability of large-kernel depthwise convolutions.

Frequency-domain and wavelet processing in neural networks

The integration of frequency-domain operations into neural network architectures has attracted growing interest. FNet [10] demonstrated that replacing self-attention with Fourier mixing achieves competitive natural language processing (NLP) performance at substantially lower cost. GFNet [11] introduced globally learnable Fourier-domain filters applied to spatial feature maps for image classification. FreTS [12] proposed frequency-domain MLP blocks for multivariate time-series forecasting. State-space models (SSMs) such as MambaSL [28] represent a complementary direction, dynamically modulating state transitions conditioned on the input to achieve linear time complexity with strong long-range modelling capability. Despite this breadth, all FFT-based methods share a fundamental limitation: the DFT collapses the temporal axis entirely, providing global spectral estimates but discarding temporal localisation. SSMs implicitly capture certain spectral properties through their continuous-time parameterisation but do not offer explicit, physically interpretable decomposition into frequency sub-bands.

The DWT addresses this deficiency by providing simultaneous time-frequency resolution through a multi-resolution sub-band decomposition. Wavelet analysis has long served as the primary tool for time-frequency characterisation of structural vibration signals [13,29,30], with lower decomposition levels capturing high-frequency transients and higher levels capturing the lower modal frequency content. Despite this suitability, prior SHM studies treat wavelet transforms as fixed preprocessing operations [13]; the WGM proposed here closes this gap by combining input-adaptive gating with the physically interpretable decompositions that FFT-based methods cannot offer.

Temporal aggregation in classification heads

The choice of temporal aggregation strategy in the classification head affects performance when discriminative features are unevenly distributed across time. Standard global average pooling treats all time steps equally and may dilute localised damage signatures, whereas max pooling is sensitive to noise. GeM pooling [14], originally introduced for image retrieval, interpolates between average and max pooling via a learnable exponent optimised end-to-end, adapting the aggregation strategy to the statistical structure of the features.

Methodology

This section presents the proposed SpectralTCN architecture for vibration-based structural damage classification. We first describe the overall model pipeline, then detail each core component: the ModernTCN Block with the proposed WGM, and the Classification Head with Generalized Mean Pooling.

Overall model pipeline

SpectralTCN follows a hierarchical, multi-stage design inspired by ModernTCN [9] and ConvNeXt [27]. Given a raw multi-channel vibration signal , the forward pass proceeds as:

(1)

where Stem is a patch embedding layer, each consists of stacked ModernTCN blocks operating at channel dimension , halves the temporal resolution while doubling the channel width, and maps the final feature map to class logits. The full pipeline is illustrated in Fig 1, and all hyperparameters are described in the Experiments section.

The stem converts raw sensor signals into patch-level token embeddings through a strided causal convolution followed by layer normalisation:

(2)

where = 15 is the stem kernel size, = 8 is the patch stride, causal padding prepends = 7 zeros to the left, and = 128. This reduces the temporal resolution by a factor of 8, substantially lowering computation in subsequent stages while preserving local temporal structure.

ModernTCN block

Each stage consists of identical ModernTCN blocks, whose base design is illustrated in Fig 2.

thumbnail
Fig 2. Architecture of the original ModernTCN block.

https://doi.org/10.1371/journal.pone.0358224.g002

In the proposed SpectralTCN, we augment this block with the WGM inserted between the depthwise convolution and the ConvFFN, as shown in Fig 3. A single augmented block applies the following transformation:

thumbnail
Fig 3. Single ModernTCN block augmented with the proposed WGM.

https://doi.org/10.1371/journal.pone.0358224.g003

(3)

where is the block input. The four sub-components are described below.

The depthwise convolution processes each channel independently with a large kernel = 31:

(4)

with causal padding: = 30 zeros prepended so that the output at time step depends only on inputs at times . The large kernel provides a per-layer receptive field of 31 samples; stacking blocks yields an effective receptive field of tokens at the resolution of each stage. Combined with the patch stride of 8 and the three downsampling layers, the receptive field of Stage 3 already spans the entire 1024-sample input window, enabling the network to capture long-range temporal dependencies, such as decaying free-vibration responses, without recurrence or self-attention.

Following the WGM, a two-layer pointwise convolution implements an inverted bottleneck:

(5)

where expands the channel dimension by factor = 4, and projects it back. Both are implemented as convolutions, mixing information across channels without altering the temporal dimension.

To regularise the network, stochastic depth [31] drops each block’s residual branch during training with probability that increases linearly from 0 to = 0.2 across all blocks:

(6)

Between consecutive stages, a strided convolution halves the temporal resolution and doubles the channel dimension:

(7)

Wavelet Gating Module (WGM)

The WGM addresses a fundamental limitation of FFT-based spectral processing for SHM: the Fourier transform provides global frequency information with no temporal localisation, yet structural damage often manifests as localised transient events at specific frequency bands and time instants. The DWT provides simultaneous time-frequency resolution and, crucially, each decomposition level corresponds to a specific octave frequency band aligned with structural vibration modes. Because the WGM operates on the patch-embedded feature sequence rather than the raw acceleration signal, its octave bands are defined relative to the token sampling rate. At Stage 1 of the Z24 dataset, the 3-level db2 WGM produces four effective bands: d1 = 3.125–6.25 Hz, d2 = 1.5625–3.125 Hz, d3 = 0.781–1.5625 Hz, and a3 = 0–0.781 Hz.

Given block-internal features (output of the causal DWConv), the WGM proceeds in four stages (Fig 4):

thumbnail
Fig 4. Internal structure of the WGM.

Multi-level DWT decomposition produces sub-band coefficients, each modulated by a data-dependent sigmoid gate; the gated coefficients are then reconstructed via the inverse DWT and fused with the input through a learnable residual scalar α initialised to zero.

https://doi.org/10.1371/journal.pone.0358224.g004

  1. Stage 1: Multi-level DWT decomposition. A -level DWT decomposes into a set of sub-band coefficient tensors. Each level applies a strided grouped convolution with fixed orthogonal wavelet filters:
(8)

where , denotes strided depthwise convolution with stride 2, and are the low-pass and high-pass decomposition filters of the Daubechies-2 (db2) wavelet. The db2 wavelet is used because it provides compact support and good temporal localisation; its empirical selection is verified in the sensitivity analysis. The filters are fixed (non-trainable) and shared across all channels via grouped convolution. After = 3 levels, the representation comprises = 4 sub-band tensors , each localised to a distinct frequency band.

  1. Stage 2: Data-dependent sub-band gating. A shared two-layer MLP computes a learnable gate for each sub-band independently. For detail level and for the final approximation :
(9)

where , , , and denotes element-wise absolute value. The transpose operation maps so that the MLP operates across channels per time step, enabling cross-channel spectral interaction at each resolution. The same MLP weights are shared across all detail levels, so the WGM requires only two gate MLPs – one shared across the detail sub-bands and one for the approximation sub-band-irrespective of the decomposition depth . A separate gate MLP is applied to the approximation sub-band .

  1. Stage 3: Gated IDWT reconstruction. The gated sub-band coefficients are assembled and the signal is reconstructed via the inverse DWT using transposed grouped convolutions:
(10)

where denotes transposed strided convolution (upsampling by factor 2) and is element-wise multiplication. For orthogonal wavelets, ConvTranspose1d with the same decomposition filters is the exact adjoint of the analysis step, guaranteeing near-perfect reconstruction when all gates equal unity (empirically verified: maximum reconstruction error for db2).

  1. Stage 4: Residual fusion with learnable . The reconstructed signal is fused with the original input via a learnable scalar:
(11)

where is initialised to . This identity initialisation ensures that at the start of training , so the network begins as a vanilla ModernTCN and progressively learns the degree of wavelet filtering required.

The WGM is positioned after the causal DWConv and before the channel-mixing ConvFFN, so that multi-resolution spectral filtering refines per-channel temporal features before they are mixed across channels. Compared with FFT-based gating [11,12], which assigns a single gate per global frequency component, the WGM gate at level operates on sub-band coefficients of temporal length , preserving both when and at what frequency damage anomalies occur.

Classification head with Generalized Mean Pooling

The classification head maps the final stage output to class probabilities. Standard global average pooling treats all temporal positions equally, which may dilute discriminative features that are localised in time (e.g., transient damage signatures). Therefore, GeM pooling [14] is adopted:

(12)

GeM interpolates smoothly between average pooling ( = 1) and max pooling (), allowing the network to learn the optimal aggregation strategy from data. The exponent is initialised to = 3.0 and clamped to during training to ensure numerical stability.

Following pooling, the aggregated feature vector passes through layer normalisation, dropout, and a linear classifier:

(13)

where , is the number of structural states, and the dropout rate is . During inference, a softmax is applied to obtain class probabilities.

Experiments

Dataset

Z24 bridge benchmark.

The Z24 Bridge (Fig 5) is a post-tensioned concrete highway bridge in Switzerland that was monitored continuously for 10 months (November 1997–September 1998) before controlled demolition [15]. The monitoring system comprised 27 accelerometers recording at 100 Hz. The dataset includes 17 structural states: two reference conditions (Classes 0 and 7) and 15 progressively applied damage scenarios covering pier settlement and lifting, foundation tilt, abutment landslide, concrete spalling, concrete-hinge failure, anchor-head failure and tendon rupture, as summarised in Table 1. This diversity of damage types at varying severity levels makes it one of the most widely used benchmarks for multi-class vibration-based SHM classification.

thumbnail
Table 1. Damage scenarios on the Z24 Bridge [15].

https://doi.org/10.1371/journal.pone.0358224.t001

thumbnail
Fig 5. General view of the Z24 Bridge, Switzerland [15].

https://doi.org/10.1371/journal.pone.0358224.g005

Raw signals were preprocessed with a 4th-order zero-phase Butterworth bandpass filter (0.5–40 Hz), which effectively detrends the signals by eliminating DC offsets and low-frequency drifts, followed by per-channel z-score normalisation, and sliding-window segmentation using a Hann window of 1024 samples (10.24 s), as illustrated in Fig 6.

thumbnail
Fig 6. Representative acceleration signals from the Z24 Bridge dataset.

(a) Raw recordings; (b) after bandpass filtering (0.5–40 Hz), z-score normalisation, and Hann windowing.

https://doi.org/10.1371/journal.pone.0358224.g006

The resulting dataset comprises 15,300 windows of shape (27, 1024), partitioned by stratified 5-fold cross-validation into approximately 9,940 training, 2,300 validation, and 3,060 test samples per fold. As a real-world monitoring dataset, the Z24 acceleration records also retain environmental and operational variability, including ambient excitation, traffic-induced vibration, temperature effects, loading variation, and sensor noise. Therefore, the Z24 benchmark provides a naturally noisy field-measurement setting rather than an idealised clean-signal dataset.

My Thuan cable-stayed bridge (FEM dataset).

The My Thuan Bridge spans the Tien River in Vinh Long Province, Vietnam, with a total length of 1,535 m (Fig 7). The main bridge is a cable-stayed structure comprising three spans of 150–350–150 m. The two towers are modified H-frame pylons made of grade 50 reinforced concrete, rising 123.5 m above the pile cap and 84.43 m above the deck level; each tower is supported by a foundation of 16 bored piles with a diameter of 2.5 m (Fig 8). The stay-cable system consists of two vertical cable planes arranged along both sides of the main girder, symmetric about the bridge centreline and separated by 18.6 m, with a fan-shaped layout comprising 4 32 = 128 cables in total, arranged as four fans of 32 cables, two at each tower. The deck is 23.6 m wide and 0.25 m thick, accommodating four vehicle lanes and two pedestrian walkways. It is supported by two longitudinal grade 50 reinforced-concrete girders of 1.76 m height, together with transverse beams spaced at 5.2 m intervals.

thumbnail
Fig 7. My Thuan cable-stayed bridge, Vinh Long Province, Vietnam.

https://doi.org/10.1371/journal.pone.0358224.g007

thumbnail
Fig 8. General view and tower section of the My Thuan cable-stayed bridge.

https://doi.org/10.1371/journal.pone.0358224.g008

While the Z24 dataset provides critical validation for real-world applicability, executing severe or progressive structural damage scenarios on in-service infrastructure is prohibited due to safety constraints. To overcome this limitation and evaluate the model’s capability to detect granular levels of structural deterioration, a FEM of the My Thuan bridge (Fig 9) was developed. This controlled simulation setting serves as a complementary benchmark.

thumbnail
Fig 9. The FEM of the My Thuan cable-stayed bridge used to generate the simulation dataset.

https://doi.org/10.1371/journal.pone.0358224.g009

The FEM of the My Thuan cable-stayed bridge is built in MATLAB using the Stabil Toolbox. The -axis denotes the longitudinal direction, the transverse direction, and the vertical direction. The model is discretised into a three-dimensional truss-beam system comprising the deck, transverse beams, towers, stay cables and so on. Stay cables are modelled as truss elements whose prestress is represented through equivalent material constants. The main load-carrying members and stay cables are modelled as steel ( Pa, = 0.3, = 7810 kg/m), while concrete components (main girder, deck slab, cross beams, towers) use lower stiffness values reflecting their respective grades. The cross-sectional properties of all structural elements are listed in Table 2, and the measured tension forces and lengths of the 32 cables of one representative fan are given in Table 3. The material properties were calibrated through model updating using ambient vibration measurements [32]; the corresponding reduction in modal frequency prediction error is reported in Table 4.

thumbnail
Table 2. Cross-sectional characteristics of the My Thuan bridge.

https://doi.org/10.1371/journal.pone.0358224.t002

thumbnail
Table 3. Measured tension forces (, kN) and lengths (, m) of the 32 stay cables in one representative fan of the My Thuan bridge.

https://doi.org/10.1371/journal.pone.0358224.t003

thumbnail
Table 4. Modal frequencies of the My Thuan bridge before and after model updating [32].

https://doi.org/10.1371/journal.pone.0358224.t004

Before generating the training dataset, the FE model is calibrated against the in-situ behaviour of the bridge. An ambient vibration measurement campaign was conducted to extract the operational modal parameters (natural frequencies and mode shapes) using the Stochastic Subspace Identification (SSI) method. Comparison between the initial FE model and the experimental measurements revealed notable discrepancies, primarily attributable to uncertainties in the elastic moduli of the concrete elements, the cable prestress force, and the boundary conditions at the supports. These uncertain parameters are updated through a hybrid algorithm combining a Genetic Algorithm (GA) with an Improved Particle Swarm Optimisation (HGAIPSO) [32], yielding the calibrated model that serves as the reliable baseline for generating the synthetic damage scenarios. Table 4 reports the first four modal frequencies together with their errors relative to experiment.

The synthetic dataset covers 11 distinct structural states, comprising one healthy reference (Case 0) and ten damage scenarios (Cases 1–10). Damage is simulated by reducing the stiffness of specific beam members, achieved by lowering the Young’s modulus in the finite-element formulation. The damaged stiffness is computed as

(14)

where is the damage severity. The damage scenarios involve stiffness reductions ranging from 10% to 40% applied to considered members. For every damaged member, a new material row carrying the reduced is appended to the material matrix and reassigned to the target element. The complete list of the 11 cases (one undamaged reference and ten damage scenarios) is summarised in Table 5.

thumbnail
Table 5. Damage cases applied to the My Thuan bridge FEM.

https://doi.org/10.1371/journal.pone.0358224.t005

To reproduce realistic operational conditions, the bridge is subjected to a moving load representing a two-axle truck consistent with AASHTO standards: the front axle carries 35 kN and the rear axle 145 kN, with the axles spaced 4.3 m apart. The truck travels at a constant speed of 60 km/h (16.67 m/s) and crosses the bridge 8 consecutive times with a 3 s gap between successive passes. To account for ambient excitation between vehicle passes, an impulsive force (−5000 N), wind effects, local-traffic noise, and a periodic component driven by the structural natural frequencies are superposed. The dynamic response is solved by modal superposition in the frequency domain with 20 modes retained and a modal damping ratio of = 1.5%, then transformed back to the time domain through the inverse FFT. These periodic and Gaussian noise components were added as low-amplitude operational perturbations to make the FEM responses closer to realistic measurements, rather than as class-specific cues. The damage labels are still defined by stiffness reductions in selected members, with class differences mainly reflected in the modal-frequency content of the acceleration signals.

The structural response is recorded by extracting the vertical acceleration of the lower-beam nodes belonging to the two side lanes (node IDs 405–592 for the left lane and 605–792 for the right lane), sampled at uniform spacing along each lane, yielding 36 virtual sensors in total. Acceleration time histories are obtained by twice differentiating the nodal displacement using a central-difference scheme, with a sampling interval = 0.002 s (500 Hz) and a simulation window of 109.6 s, producing approximately 54,780 time points per signal. The complete raw dataset is therefore organised as an array of size (11, 36, 54,780).

For the deep learning pipeline, the raw signals are then preprocessed with per-channel -score normalisation and rectangular sliding-window segmentation of 1024 samples, as illustrated in Fig 10.

thumbnail
Fig 10. Representative acceleration signals from the My Thuan Bridge FEM dataset (healthy state).

(a) Raw simulated signals; (b) after z-score normalisation.

https://doi.org/10.1371/journal.pone.0358224.g010

The resulting dataset contains 4,532 windows of shape (36, 1024), partitioned by stratified 5-fold cross-validation into approximately 2,937 training, 671 validation, and 924 test samples per fold.

Class balance and data splitting.

Class balance and leakage prevention were explicitly considered for both datasets. Although the original Z24 recordings have different durations across structural states, class balance was controlled during preprocessing by retaining an equal-length segment of 60,000 time points per channel for each state before sliding-window segmentation. For the My Thuan FEM dataset, acceleration responses were generated with the same signal duration for all simulated structural states; therefore, the resulting windows were naturally balanced across classes. Consequently, no class weighting, oversampling, or undersampling was applied during training.

For the Z24 dataset, stratified 5-fold cross-validation was performed at the level of complete measurement records rather than at the window level. Each record was assigned entirely to one fold, and sliding-window segmentation was applied only after the split within the training, validation, and test partitions. Therefore, no window extracted from the same measurement record could appear in both the training and test sets.

For the My Thuan FEM dataset, because each structural state contains one long simulated recording, a record-level split was not applicable. Instead, stratified 5-fold cross-validation was performed using temporal blocking within each recording. In each fold, a distinct contiguous segment from every state was held out for testing, and a purge gap equal to the window-overlap span was removed at each test boundary to ensure that no training window shared raw samples with the test windows. Normalisation statistics were fitted using only the training windows in all cases.

Implementation details and evaluation metrics

Implementation environment and architecture configuration.

All experiments were conducted on a Windows 11 (64-bit) workstation equipped with an Intel Core i9-13900HX processor (24 cores/ 32 threads, up to 5.4 GHz on performance cores, 36 MB cache) and an NVIDIA GeForce RTX 4060 GPU with 8 GB VRAM. All models were implemented in Python 3.11 using PyTorch 2.7 with CUDA 11.8 for GPU-accelerated training.

To ensure reproducibility and a fair comparison, the identical SpectralTCN configuration was applied to both datasets. The complete set of architectural, optimisation, and regularisation hyperparameters is detailed in Table 6.

thumbnail
Table 6. Hyperparameter configurations of the proposed SpectralTCN framework.

https://doi.org/10.1371/journal.pone.0358224.t006

Regarding the WGM, the hyperparameters were selected based on prior vibration signal analysis studies and preliminary validation. The Daubechies-2 (db2) mother wavelet was adopted for its compact support and suitability for representing localised signal variations, which was further confirmed via sensitivity analysis. A 3-level decomposition was chosen to provide a balanced multi-resolution representation without excessively increasing computational complexity or over-smoothing the temporal features. Finally, all models were optimised using AdamW and trained for up to 100 epochs with early stopping.

Evaluation metrics.

Six metrics are used to assess multi-class classification performance. Accuracy, F1-macro and MCC are reported in Tables 7 and 16, per-class Precision and Recall in Tables 15 and 19, and macro ROC-AUC in Fig 11, Fig 19 and Table 8. Let , , , and denote the numbers of true positives, true negatives, false positives, and false negatives, respectively. For multi-class problems, each metric is computed per class in a one-versus-rest manner and then averaged.

thumbnail
Fig 11. Macro-averaged ROC-AUC curves (one-versus-rest) on the Z24 Bridge for the four best-performing models in fold 4.

Each curve corresponds to one of the 17 structural states. (a) SpectralTCN; (b) ResNet1D; (c) MambaSL; (d) FreTS.

https://doi.org/10.1371/journal.pone.0358224.g011

Precision measures the fraction of positive predictions that are correct:

(15)

Recall (sensitivity) measures the fraction of actual positives that are correctly identified:

(16)

F1-score is the harmonic mean of Precision and Recall, balancing both aspects:

(17)

Accuracy is the overall fraction of correctly classified samples:

(18)

Matthews Correlation Coefficient (MCC) provides a balanced measure robust to class imbalance:

(19)

ROC-AUC (macro-averaged, one-versus-rest) summarises classifier discrimination across all damage classes. All metrics are computed on the held-out test partition of each of the 5 folds of the stratified cross-validation and reported as the mean standard deviation.

To rigorously assess the trade-off between classification performance and computational efficiency for near-real-time SHM deployment, we evaluate all models not only on accuracy metrics but also on their computational cost, specifically the number of trainable parameters (Params) and Multiply-Accumulate operations per window (MACs/window).

Compared methods

We compare SpectralTCN against 10 baseline models grouped into four representative families:

  • Convolution-based models: 1DCNN [5], ResNet1D [33], TCN [8]
  • Recurrent-based models: GRU [34], 1DCNN-LSTM [35]
  • Transformer and MLP-based models: Transformer [7], PatchTST [36], TSMixer [37]
  • Frequency and state-space models: FreTS [12], MambaSL [28]

All baselines are trained with the same preprocessing pipeline, data splits, training budget, optimisation strategy, and evaluation protocol to ensure a fair comparison.

Results on Z24 Bridge

Comparison with baseline models.

Table 7 summarises the classification performance of all models on the Z24 Bridge. SpectralTCN achieves the highest accuracy of 0.922 0.015, outperforming all baselines on all three metrics. Among the baselines, ResNet1D ranks second at 0.904 0.007, followed closely by MambaSL (0.897 0.007) and FreTS (0.894 0.005). These four models form a top cluster (accuracy 0.89), all of which either leverage multi-scale temporal features (ResNet1D), state-space sequence modelling (MambaSL), or global spectral processing (FreTS), suggesting that either multi-scale temporal modelling or explicit spectral processing is helpful for the 17-class Z24 problem. SpectralTCN improves over ResNet1D by 1.8 percentage points in accuracy and 1.9 in MCC, a consistent margin that persists across all five folds (standard deviation of 0.015), suggesting that wavelet-domain multi-resolution filtering provides a complementary inductive bias beyond purely residual temporal feature extraction. SpectralTCN therefore attains the best classification performance at a moderate inference cost of 152.62 M MACs per window, below ResNet1D (3460.11 M) and PatchTST (1355.36 M), although it also has the largest parameter count (6.47 M) among the compared models.

thumbnail
Table 7. Classification performance on the Z24 Bridge (5-fold CV, mean std, 17 classes). Best in bold, second best underlined.

https://doi.org/10.1371/journal.pone.0358224.t007

Notably, FreTS, which uses FFT-based global spectral gating, achieves 0.894 0.005, whereas SpectralTCN, which applies DWT-based time-localised gating inside a ModernTCN backbone, reaches 0.922 0.015, a gap of 2.8 percentage points. Because FreTS and SpectralTCN differ in more than the choice of transform, this gap should be read as an architecture-level comparison rather than a controlled DWT-versus-FFT test. The controlled comparison is the A2-versus-A3 ablation in Table 10, where replacing the FFT gate with the WGM inside an identical backbone yields a smaller gain of 0.3 percentage points. Both observations are consistent with, but do not by themselves establish, the hypothesis that the temporal localisation preserved by the DWT is helpful for detecting transient, frequency-localised damage signatures. Models designed primarily for time-series forecasting (PatchTST: 0.607 0.023) or shallow temporal convolution (1DCNN: 0.433 0.063) perform substantially below the leading group, consistent with the expectation that deeper, multi-scale architectures are better suited to the fine-grained 17-class discrimination required by the Z24 benchmark. The ROC-AUC curves in Fig 11 further illustrate the separation quality: SpectralTCN achieves consistently high one-versus-rest discrimination across nearly all 17 structural states, whereas ResNet1D and MambaSL exhibit slightly wider variance at the lower-severity damage states.

Following the performance comparison and ROC-AUC analysis, the statistical reliability of the observed improvements was assessed using fold-wise cross-validation results. Tables 8 and 9 report pairwise tests between SpectralTCN and the strongest baseline, ResNet1D, together with Friedman tests across all compared models.

thumbnail
Table 8. Pairwise comparison between SpectralTCN and the strongest competing baseline, ResNet1D.

https://doi.org/10.1371/journal.pone.0358224.t008

thumbnail
Table 9. Friedman test across all 11 compared models. Values are reported as mean standard deviation with 95% confidence intervals. Mean differences are reported in percentage points. Wilcoxon p-values are one-sided. Lower Friedman mean rank indicates better average performance across folds.

https://doi.org/10.1371/journal.pone.0358224.t009

As shown in Table 9, the Friedman tests indicate statistically significant differences among the compared models for all metrics, while the Wilcoxon tests show consistent fold-wise improvements of SpectralTCN over ResNet1D.

Ablation study.

Table 10 reports the Z24 ablation results. The ModernTCN backbone alone (A1) achieves 0.876 0.052 test accuracy, with the large standard deviation ( 0.052) reflecting sensitivity to fold composition in the absence of any spectral regularisation. Adding FFT-based global spectral gating (A2) raises accuracy to 0.914 0.018 and markedly reduces the validation loss from 0.389 to 0.247, indicating that explicit frequency-domain processing benefits the backbone.

thumbnail
Table 10. Ablation study on the Z24 Bridge (5-fold CV, mean ± std). Best result in bold.

https://doi.org/10.1371/journal.pone.0358224.t010

The ablation variants in Table 10 provide a progressive component-isolation analysis. A1 is the ModernTCN backbone without spectral processing. A2 adds FFT-based global spectral gating, while A3 replaces FFT with the proposed DWT-based WGM to assess the benefit of multi-resolution, time-localised filtering. A4 isolates the effect of GeM pooling without WGM. The full SpectralTCN combines WGM and GeM to evaluate their complementary contribution.

Replacing the FFT gate with the proposed WGM (A3) improves the test accuracy from 0.914 ± 0.018 to 0.917 ± 0.017 and reduces the validation loss from 0.247 to 0.227, suggesting that DWT-based time-localised filtering provides a small advantage over global FFT gating on this dataset. Although the direct gain over FFT is modest, the lower validation loss suggests more stable optimisation. GeM pooling alone (A4) also improves the backbone performance, achieving 0.913 0.012 accuracy. The full SpectralTCN, which combines WGM and GeM, achieves the best overall result with 0.922 0.015 test accuracy and the most stable validation accuracy of 0.934 0.004. This suggests that WGM and GeM provide complementary benefits: WGM extracts discriminative sub-band features, while GeM adaptively emphasises their most informative temporal positions.

We also examined the effect of the residual-scalar initialisation in the WGM. Under the same training protocol, α = 0, 0.1, and 1.0 achieved test accuracies of 88.37%, 88.25%, and 90.40%, respectively. These are single-run values from a separate diagnostic set of runs and are therefore not directly comparable with Table 7. They indicate that SpectralTCN remains stable under different α initialisations; α = 1.0 gave the highest accuracy among the tested settings, but the spread of about 2 percentage points is comparable to the fold-to-fold variation reported in Table 10. We retain α = 0 because it preserves the identity mapping at initialisation and gave more stable early training.

To further examine which wavelet sub-bands contribute most to the performance of the proposed WGM, we performed a sub-band masking ablation on the Z24 Bridge test dataset as shown in Table 11. The trained db2 WGM was kept fixed, and each sub-band was individually masked during evaluation. This sub-band masking study is a separate diagnostic experiment; thus, its absolute scores should be interpreted relative to its own Full WGM baseline rather than directly compared with the preceding architectural ablation table. The largest F1 drops occur when a3 and d1 are removed, indicating that the global low-frequency structural response and the higher modal or transient-sensitive band carry the most damage-sensitive information, while d2 and d3 provide complementary contributions.

thumbnail
Table 11. Sub-band masking ablation of the db2 WGM on the Z24 dataset.

https://doi.org/10.1371/journal.pone.0358224.t011

To further verify that the learned WGM gates behave in an input-adaptive and reproducible manner rather than as a fixed filter, we visualised the mean gate activation per damage mechanism (Fig 12) and assessed its stability across the five independently trained cross-validation folds.

thumbnail
Fig 12. Mean WGM gate activation by damage mechanism on the Z24 Bridge (Stage 1), pooled over all 5 test folds.

https://doi.org/10.1371/journal.pone.0358224.g012

The a3 sub-band (global low-frequency response, 0–0.781 Hz) shows a consistent increase in mean gate activation from the undamaged baseline (0.68) to damaged states (0.69–0.72, peaking at anchor-head failure). This shift is small relative to the cross-fold variability of a3 reported in Table 12 and should be read as a trend rather than a precise effect size. It is consistent with a3 being identified as the single most damage-sensitive band in the sub-band masking ablation above. The detail bands d1–d3 remain comparatively stable across damage mechanisms, indicating that the WGM concentrates its damage-adaptive modulation mainly in the low-frequency band while keeping the finer detail bands broadly open. Fig 13 shows the learned gate maps of individual Z24 windows. Within a single window, the gate value fluctuates over time rather than acting as a constant per-sample scalar (within-window temporal standard deviation of 0.02–0.05 across sub-bands), indicating that the gating is time-varying and input-dependent rather than a fixed, class-agnostic filter.

thumbnail
Table 12. Cross-fold stability of learned WGM gate activations (mean ± std across 5 independently trained folds, Stage 1, Z24 test sets).

https://doi.org/10.1371/journal.pone.0358224.t012

thumbnail
Fig 13. Learned WGM gate maps for representative Z24 windows.

https://doi.org/10.1371/journal.pone.0358224.g013

The mean gate activation is consistent across the five independently trained folds, with coefficients of variation between 7.7% and 12.8% for all four sub-bands, indicating that the input-adaptive gating strategy learned by the WGM is stable and reproducible rather than an artefact of a single training run.

To justify the selection of the db2 wavelet and examine the influence of other important SpectralTCN hyperparameters, we conducted a one-factor-at-a-time sensitivity analysis on the Z24 Bridge dataset using the same 5-fold cross-validation splits. The wavelet-family comparison is reported in Table 13, and the remaining hyperparameter sweeps in Table 14.

thumbnail
Table 13. Sensitivity to wavelet family (Z24 Bridge, 5-fold CV, mean ± std; ROC-AUC macro reported as mean only).

https://doi.org/10.1371/journal.pone.0358224.t013

thumbnail
Table 14. Sensitivity to decomposition depth, kernel size, and GeM exponent.

https://doi.org/10.1371/journal.pone.0358224.t014

Unless noted otherwise, all values in Table 14 are reported on the Z24 Bridge dataset. The default-setting row (db2, L = 3, k = 31, GeM p = 3) corresponds to the same 5-fold cross-validation mean already reported for db2 in Table 13. The decomposition-depth, kernel-size, and GeM-exponent sweep results are single-run point estimates on the same Z24 split, evaluated without 5-fold averaging given the added computational cost of a full cross-validated sweep over every setting; they should therefore be interpreted as indicative of relative trends rather than as precise performance estimates. As with the sub-band masking study in Table 11, these sensitivity runs form a separate set of experiments; their absolute scores are therefore comparable within Tables 13 and 14, but not directly with the main cross-validation results in Table 7.

As shown in Tables 13 and 14, db2 achieves the highest mean performance among the tested wavelet families, supporting its use as the default wavelet basis in WGM. The model is also relatively stable with respect to decomposition depth, with = 3 giving the best F1-macro among the tested levels. Kernel size and GeM exponent have a stronger influence, with = 7 and GeM = 1 achieving higher F1-macro on the Z24 dataset. However, the default configuration ( = 31 and GeM = 3) was fixed before the main comparison experiments and used consistently across both datasets to avoid post-hoc tuning bias. Therefore, these sensitivity results are reported only to assess hyperparameter influence, rather than to re-select the final model after observing the test performance. Overall, SpectralTCN remains robust under different wavelet settings and may be further improved through task-specific hyperparameter tuning.

Qualitative analysis.

The learning curves in Fig 14 corroborate the quantitative results: SpectralTCN and ResNet1D converge to the highest validation accuracy, while lighter models such as 1DCNN and PatchTST plateau at substantially lower accuracy levels from early epochs.

thumbnail
Fig 14. Mean validation accuracy and loss with 1 standard deviation shadow across 5-fold cross-validation for all baseline models and SpectralTCN on the Z24 Bridge.

(a) Validation accuracy; (b) validation loss.

https://doi.org/10.1371/journal.pone.0358224.g014

To further examine the possibility of overfitting, Fig 15 shows the training and validation accuracy/loss histories of SpectralTCN and ResNet1D, the two best-performing models on the Z24 dataset. For both models, validation accuracy follows training accuracy closely, and validation loss remains stable without clear divergence, indicating stable convergence. Compared with ResNet1D, SpectralTCN shows a smaller and more stable generalisation gap, while ResNet1D exhibits stronger validation-loss fluctuations. These trends suggest that SpectralTCN is less prone to overfitting and generalises more robustly under the current dataset size.

thumbnail
Fig 15. Five-fold averaged training and validation accuracy/loss histories of SpectralTCN and ResNet1D on the Z24 Bridge dataset.

(a) Accuracy; (b) loss.

https://doi.org/10.1371/journal.pone.0358224.g015

The normalised confusion matrices in Fig 16 provide a per-class view of the classification errors on fold 4. SpectralTCN achieves near-diagonal structure across all 17 structural states, with the largest off-diagonal entries at States 2, 11, 13 and 15. These correspond to a small pier settlement (20 mm), concrete-hinge failure, and anchorage/tendon damage – mechanisms that alter the global stiffness only marginally and therefore produce closely overlapping modal signatures. ResNet1D shows broader scatter, particularly at States 4, 5, 7 and 13. Notably, it confuses State 7 – the second reference (undamaged) condition – with the adjacent pier-settlement states, indicating that it does not reliably separate the healthy baseline from small stiffness reductions, whereas SpectralTCN keeps State 7 at F1 = 0.929 (Table 15).

thumbnail
Table 15. Per-class precision (P), recall (R), and F1-score of SpectralTCN and ResNet1D on the Z24 Bridge test set (fold 4).

https://doi.org/10.1371/journal.pone.0358224.t015

thumbnail
Fig 16. Normalised confusion matrices on the Z24 Bridge test set (fold 4) for SpectralTCN and ResNet1D.

(a) SpectralTCN; (b) ResNet1D.

https://doi.org/10.1371/journal.pone.0358224.g016

Additional fold-wise confusion matrices in Fig 17 show that SpectralTCN maintains predominantly diagonal prediction patterns across folds.

thumbnail
Fig 17. Normalised confusion matrices of SpectralTCN on the Z24 Bridge test sets for the remaining folds.

(a) Fold 0; (b) fold 1; (c) fold 2; (d) fold 3.

https://doi.org/10.1371/journal.pone.0358224.g017

Fig 18 shows the 3D t-SNE projection of SpectralTCN penultimate-layer features on the Z24 training set at two training snapshots. At epoch 1, the 17 structural states are heavily overlapping, reflecting the randomly initialised network. By the final epoch, the classes form largely separated clusters in the embedding space; because the projection is computed on the training set, it illustrates what the network has fitted rather than how well it generalises.

thumbnail
Fig 18. 3D t-SNE visualisation of SpectralTCN penultimate-layer features on the Z24 Bridge training set at epoch 1 (a) and the final training epoch (b).

https://doi.org/10.1371/journal.pone.0358224.g018

Table 15 details the per-class precision, recall, and F1-score for SpectralTCN and ResNet1D on Z24 fold 4. SpectralTCN achieves F1-scores above 0.87 on all 17 structural states, with the lowest values at States 13 (F1 = 0.878), 15 (0.887), and 16 (0.916), which correspond to anchor-head failures and tendon ruptures that produce subtle, low-amplitude changes in the higher natural frequencies. ResNet1D shows more pronounced drops at States 4, 5, 7, and 13, confirming the qualitative observation from the confusion matrices that ResNet1D struggles to distinguish spectrally similar progressive-damage states without the multi-resolution filtering provided by the WGM.

Results on My Thuan Bridge

Comparison with baseline models.

Table 16 reports the classification performance on the My Thuan Bridge FEM dataset. SpectralTCN achieves the highest accuracy of 0.921 0.020, outperforming the second-best model, Transformer (0.889 0.011), by 3.2 percentage points. Attention-based and state-space models perform notably better on this dataset than purely convolutional baselines: Transformer (0.889), MambaSL (0.873 0.032), and TSMixer (0.8650.031) all exceed 0.86, while conventional temporal models such as 1DCNN (0.664), FreTS (0.662), TCN (0.725), and 1DCNN-LSTM (0.747) are substantially lower. This pattern suggests that the FEM-generated vibration signals contain longer-range temporal dependencies that benefit global context modelling, but the full multi-resolution spectral processing of SpectralTCN provides an additional advantage over global attention alone. PatchTST achieves 0.5490.190, with high fold-to-fold variance (fold 0 collapses to 0.179 while fold 3 reaches 0.715), suggesting that the patch-embedding design is sensitive to initialisation on this smaller dataset. SpectralTCN’s WGM enables data-dependent per-band filtering aligned with the bridge’s structural vibration modes, providing the performance margin over the Transformer by simultaneously preserving temporal localisation and physically interpretable frequency selectivity. Table 16 also includes GRU as a lightweight baseline, together with Param (M) and MACs/window for neural-network-based models. The results show that SpectralTCN obtains the best overall classification performance at 153.44 M MACs per window, below PatchTST (1807.15 M), TSMixer (226.49 M) and TCN (210.70 M), although its 6.47 M parameters make it the largest model in the comparison. SpectralTCN therefore offers a favourable accuracy-versus-MACs trade-off, at the cost of a larger memory footprint and, as shown in Table 17, a longer per-window inference time.

thumbnail
Table 16. Classification performance on the My Thuan Bridge (5-fold CV, mean std, 11 classes). Best in bold, second best underlined.

https://doi.org/10.1371/journal.pone.0358224.t016

thumbnail
Table 17. Computational cost comparison between TCN, ModernTCN without WGM, and SpectralTCN on the My Thuan Bridge dataset (single input window).

https://doi.org/10.1371/journal.pone.0358224.t017

To further complement the parameter and MAC comparisons reported in Tables 7 and 16, Table 17 provides a focused computational-cost comparison of TCN, ModernTCN without WGM, and SpectralTCN in terms of parameters, MACs, FLOPs, inference time, and throughput under the same inference setting for one input window.

As shown in Table 17, the WGM increases the inference time of SpectralTCN compared with ModernTCN without WGM, mainly due to the DWT/IDWT and sub-band gating operations; however, this additional cost is accompanied by the best classification performance on both datasets.

The ROC-AUC curves in Fig 19 illustrate the per-class discrimination quality of the four best models on the My Thuan dataset. SpectralTCN achieves consistently high one-versus-rest separation across all 11 structural states, while the Transformer, MambaSL, and TSMixer show slightly wider variation particularly for states with similar frequency signatures.

thumbnail
Fig 19. Macro-averaged ROC-AUC curves on the My Thuan Bridge for the four best-performing models in fold 4.

Each curve corresponds to one of the 11 structural states. (a) SpectralTCN; (b) Transformer; (c) MambaSL; (d) TSMixer.

https://doi.org/10.1371/journal.pone.0358224.g019

Ablation study.

Table 18 presents the ablation results on the My Thuan dataset. The ModernTCN backbone (A1) achieves 0.831 0.069 test accuracy, indicating that the base architecture already performs reasonably on the FEM dataset. Adding FFT-based spectral gating (A2) yields only marginal change (0.825 0.078), while adding WGM alone (A3, 0.798 0.082) and GeM alone (A4, 0.793 0.078) both underperform the backbone, by 3.3 and 3.8 percentage points respectively. The validation losses for A3 (1.118 0.674) and A2 (0.809 0.417) are notably higher and more variable than A1 (0.532 0.227), suggesting that individual spectral components introduce optimisation difficulty when deployed in isolation on FEM-generated data. The full SpectralTCN (WGM + GeM combined) achieves a clear improvement to 0.921 0.020 with a validation loss of 0.314 0.131 – the lowest among all variants and 41% below that of the backbone (0.532 ± 0.227) – demonstrating that WGM and GeM operate synergistically: multi-resolution frequency gating reduces spectral noise while GeM pooling aggregates the resulting features with appropriate emphasis on discriminative temporal positions.

thumbnail
Table 18. Ablation study on the My Thuan Bridge (5-fold CV, mean std). Best result in bold.

https://doi.org/10.1371/journal.pone.0358224.t018

The My Thuan ablation results further show that the proposed components are most effective when combined rather than used in isolation. While FFT, WGM, or GeM alone do not consistently improve the ModernTCN backbone on this FEM-generated dataset, the full SpectralTCN substantially improves both test accuracy and validation loss. This suggests that WGM provides adaptive multi-resolution filtering, whereas GeM aggregates the resulting damage-sensitive temporal features more effectively. Therefore, the full model benefits from the interaction between spectral filtering and learnable temporal pooling.

Qualitative analysis.

The learning curves in Fig 20 illustrate the instability of most baseline models on this dataset: several models exhibit wide shadow bands indicating large fold-to-fold variation, while SpectralTCN converges smoothly to a high and stable validation accuracy with a narrow shadow band.

thumbnail
Fig 20. Mean validation accuracy and loss with 1 standard deviation shadow across 5-fold cross-validation for all baseline models and SpectralTCN on the My Thuan Bridge.

(a) Validation accuracy; (b) validation loss.

https://doi.org/10.1371/journal.pone.0358224.g020

The confusion matrices in Fig 21 provide a per-class view of the classification errors. SpectralTCN achieves consistently high recall on most structural states, with the main confusions concentrated between S9 and S10, two damage scenarios involving similar stiffness reductions on adjacent members that produce overlapping modal frequency shifts. The Transformer exhibits wider off-diagonal scatter, particularly between S2–S3 and S3–S5, reflecting its tendency to confuse structurally similar states with comparable global frequency profiles when temporal localisation is not available.

thumbnail
Fig 21. Normalised confusion matrices on the My Thuan Bridge test set (fold 4) for SpectralTCN and Transformer.

Rows are true labels; columns are predicted labels; diagonal values indicate per-class recall. (a) SpectralTCN; (b) Transformer.

https://doi.org/10.1371/journal.pone.0358224.g021

Fig 22 shows additional fold-wise confusion matrices, indicating that the class-wise prediction pattern is not specific to a single fold.

thumbnail
Fig 22. Normalised confusion matrices of SpectralTCN on the My Thuan Bridge test sets for the remaining folds.

(a) Fold 0; (b) fold 1; (c) fold 2; (d) fold 3.

https://doi.org/10.1371/journal.pone.0358224.g022

Fig 23 presents the 3D t-SNE visualisation of SpectralTCN’s penultimate-layer features on the My Thuan dataset. At epoch 1, the 11 structural states are largely overlapping, reflecting the randomly initialised network. By the final epoch, distinct and well-separated clusters emerge for most structural states, suggesting that the learned representation becomes more discriminative after training even from the more challenging FEM-generated signals.

thumbnail
Fig 23. 3D t-SNE visualisation of SpectralTCN penultimate-layer features on the My Thuan Bridge training set at epoch 1 (a) and the final training epoch (b).

https://doi.org/10.1371/journal.pone.0358224.g023

Table 19 reports per-class metrics for SpectralTCN and the second-best Transformer on fold 4. SpectralTCN achieves perfect F1 on three states (S5, S7, S8) and strong performance across the remaining classes, with the exception of S9 (recall 0.64) and S10 (precision 0.72), which involve structurally similar stiffness-reduction patterns that are challenging to distinguish. The Transformer obtains near-perfect recall on S1 (0.94) and S9 (0.98) but struggles with precision on S1 (0.80) and recall on S2 (0.76) and S3 (0.76), where its global attention mechanism confuses states with overlapping modal frequency shifts.

thumbnail
Table 19. Per-class precision (P), recall (R), and F1-score of SpectralTCN and Transformer on the My Thuan Bridge test set (fold 4).

https://doi.org/10.1371/journal.pone.0358224.t019

Cross-dataset discussion and engineering interpretation

Across both datasets, SpectralTCN achieves the best performance with low fold-to-fold variation, suggesting that the proposed components generalise beyond a single bridge type or data source. Although the real-world Z24 dataset and the FEM-derived My Thuan dataset differ in sensor layout, sampling rate, damage scenarios, and data-generation mechanism, both reflect damage-induced changes in vibration responses. In Z24, damage such as pier settlement, concrete spalling, anchorage damage, and tendon rupture affects stiffness distribution, boundary conditions, and load-transfer paths. In My Thuan, damage is simulated through Young’s modulus reductions in selected members, representing localised stiffness loss. Thus, both datasets are ultimately governed by stiffness-dependent modal changes.

This may help to explain the benefit of WGM’s multi-resolution spectral representation. Unlike global FFT-based gating, wavelet decomposition preserves both frequency-band information and temporal localisation, allowing the model to capture damage-sensitive features that may occur only during specific time intervals or excitation conditions. Through input-adaptive gating, WGM can emphasise sub-bands related to modal shifts and localised transient responses while suppressing operational variation, noise, and simulation-specific periodic components. Therefore, WGM is not only beneficial for classification accuracy, but also physically consistent with vibration-based damage mechanisms.

The baseline behaviour differs between the two datasets. On Z24, strong baselines such as ResNet1D, MambaSL, and FreTS also perform competitively, suggesting that the dataset is sufficiently large and structured for different architectures to train reliably. On My Thuan, attention-based and state-space models outperform conventional convolutional baselines, indicating longer-range temporal structure in the FEM-generated signals. Nevertheless, SpectralTCN remains the most stable model across both datasets, suggesting that explicit multi-resolution spectral processing is useful for both real monitoring data and simulation-derived responses. The WGM can suppress less informative bands while retaining the modal components that carry damage-related information.

More specifically, several properties of the My Thuan FEM benchmark make it a more challenging classification problem. Compared with Z24, it has lower intra-class variability because the responses are generated from a controlled numerical model and then segmented into windows, which can increase fold-to-fold variance. In addition, the simulated states share similar excitation and modelling assumptions, so damage information mainly appears as subtle shifts in modal-frequency components rather than clearly distinct signal patterns. Some damage cases also involve stiffness reductions in structurally similar members, causing overlapping modal and time-frequency signatures, especially among confused states such as S6, S9, and S10. These factors make My Thuan intrinsically harder than Z24 and highlight the benefit of WGM, whose input-adaptive multi-resolution gating can preserve temporal localisation and emphasise damage-sensitive frequency sub-bands.

Because the My Thuan dataset is FEM-generated, simulation-specific artefacts remain a possible limitation. However, three observations suggest that the model primarily exploits damage-related vibration features. First, the main confusions occur between structurally similar states such as S9 and S10. Second, damage-sensitive information is expected mainly in modal-frequency bands, whereas many numerical artefacts appear as less informative high-frequency components that can be attenuated by WGM. Third, the same architecture also performs strongly on the real-world Z24 dataset, where FEM-specific artefacts are absent. Nevertheless, we acknowledge that FEM data cannot be completely free of simulation-specific characteristics, which is why the method is validated on both the simulated My Thuan dataset and the real Z24 bridge recordings.

A further limitation concerns the frequency range covered by the WGM. Because the module operates on the patch-embedded sequence rather than on the raw acceleration signal, the Nyquist frequency of its sub-bands at Stage 1 is 6.25 Hz for Z24 and 31.25 Hz for My Thuan. The Z24 sub-bands therefore resolve the first two bending modes of the bridge explicitly, while higher modes are represented only implicitly through the learned stem embedding; this is consistent with the sub-band masking results in Table 11, where a3 and d1 dominate. Applying the WGM before the patch embedding, or with a smaller patch stride, would give direct access to higher modal bands at a higher computational cost and is left for future work.

Conclusions

This paper proposes SpectralTCN, a ModernTCN-based temporal convolutional network enhanced with a WGM for vibration-based structural damage classification. The WGM introduces learnable, data-dependent multi-resolution filtering into the convolutional blocks using the DWT, allowing the network to adaptively amplify or suppress specific frequency sub-bands. Unlike FFT-based approaches, DWT preserves both time and frequency information, with decomposition levels corresponding to physically interpretable structural vibration bands. Together with GeM pooling and large-kernel causal depthwise convolutions, SpectralTCN achieves strong performance on two structurally distinct benchmarks.

Experiments against 10 baseline models under stratified 5-fold cross-validation show that SpectralTCN reaches 92.2% accuracy on the Z24 Bridge dataset and 92.1% accuracy on the My Thuan FEM dataset, achieving the strongest overall performance among the compared methods. The improvement over the strongest baseline is consistent across all five folds (Wilcoxon p = 0.031), although for accuracy, F1-macro and MCC the paired t-test does not reach the 5% significance level (p ≈ 0.07) given the limited number of folds; confirming the effect at a higher significance level would require repeated cross-validation over multiple random seeds. The ablation study confirms the contribution of the main components: (1) WGM provides the largest individual gain over the ModernTCN backbone on the Z24 dataset; (2) on the Z24 dataset, DWT-based multi-resolution gating provides a small benefit over FFT-based global spectral gating, although this benefit is not observed when the WGM is used in isolation on the My Thuan dataset; and (3) GeM pooling further improves temporal aggregation of localised damage features. Finally, because SpectralTCN is fully causal and processes short sliding windows with a purely convolutional backbone of moderate computational cost, it remains suitable for near-real-time online abnormality detection in continuous automated bridge monitoring.

The consistent performance across a real-world monitored bridge (Z24) and a simulated cable-stayed bridge (My Thuan) suggests that the proposed multi-resolution wavelet gating strategy generalises across different sensor configurations, and data sources. Future work will explore (1) learnable wavelet filter banks to replace the fixed db2 filters, (2) extension to online monitoring scenarios and multi-modal sensor configurations, and (3) regression-based extensions replacing the softmax classifier with a linear head for continuous damage-severity prediction on datasets with reliable severity labels.

References

  1. 1. Farrar CR, Worden K. An introduction to structural health monitoring. Philos Trans A Math Phys Eng Sci. 2007;365(1851):303–15. pmid:17255041
  2. 2. Doebling SW, Farrar CR, Prime MB. A summary review of vibration-based damage identification methods. Shock Vib Dig. 1998;30(2):91–105.
  3. 3. Noman BJ, Albusoda BS. Impact of vertical vibration on group piles during earthquake loading: experimental findings. Civ Eng J. 2024;10:174–208.
  4. 4. Ho VL, Trinh TT, Ho XB. Swarm intelligence-based technique to enhance performance of ANN in structural damage detection. Transp Commun Sci J. 2022;73:1–15.
  5. 5. Abdeljaber O, Avci O, Kiranyaz S, Gabbouj M, Inman DJ. Real-time vibration-based structural damage detection using one-dimensional convolutional neural networks. J Sound Vib. 2017;388:154–70.
  6. 6. Sony S, Gamage S, Sadhu A, Samarabandu J. Vibration-based multiclass damage detection and localization using long short-term memory networks. Structures. 2022;35:436–51.
  7. 7. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, et al. Attention is all you need. 31st Conference on Neural Information Processing Systems (NIPS 2017); 2017. p. 5998–6008. https://doi.org/10.48550/arXiv.1706.03762
  8. 8. Bai S, Kolter JZ, Koltun V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv. 2018.
  9. 9. Luo D, Wang X. ModernTCN: A modern pure convolutional structure for general time series analysis. International Conference on Learning Representations (ICLR); 2024.
  10. 10. Lee-Thorp J, Ainslie J, Eckstein I, Ontañón S. FNet: mixing tokens with fourier transforms. In: Carpuat M, de Marneffe M-C, Meza Ruiz IV, editors. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Seattle, United States: Association for Computational Linguistics; 2022. p. 4296–313. https://doi.org/10.18653/v1/2022.naacl-main.319
  11. 11. Rao Y, Zhao W, Zhu Z, Lu J, Zhou J. Global filter networks for image classification. Adv Neural Inf Process Syst. 2021;34:13001–8.
  12. 12. Yi K, Zhang Q, Fan W, Wang S, Wang P, He H, et al. Frequency-domain MLPs are more effective learners in time series forecasting. Adv Neural Inf Process Syst. 2023;36:76656–79.
  13. 13. Avci O, Abdeljaber O, Kiranyaz S, Hussein M, Gabbouj M, Inman DJ. A review of vibration-based damage detection in civil structures: From traditional methods to Machine Learning and Deep Learning applications. Mech Syst Signal Process. 2021;147:107077.
  14. 14. Radenovic F, Tolias G, Chum O. Fine-tuning CNN image retrieval with no human annotation. IEEE Trans Pattern Anal Mach Intell. 2019;41(7):1655–68. pmid:29994246
  15. 15. Maeck J, De Roeck G. Description of Z24 benchmark. Mech Syst Signal Process. 2003;17(1):127–31.
  16. 16. Xuan NH, Manh TV, Nam SN, Ngoc LN. Vibration-based damage detection in cable-stayed bridges using a novel 1D-ConvNeXt-LSTM network. Transp Commun Sci J. 2026;77:485–99.
  17. 17. Minh DNL, Xuan NH, Manh TV, Ngoc BNK. Detection of damage in steel truss bridges using a hybrid 1DCNN–BIGRU model and time-series data augmentation techniques. Transp Commun Sci J. 2025;76:1281–95.
  18. 18. Nguyen TNC, Vu TM. Damage detection in structural health monitoring using BiLSTM-1DCNN hybrid network: a case study on a large-scale steel truss bridge. Eng Comput. 2025;42:2226–42.
  19. 19. Manh T-V, Ngoc H-T, Duc M-T, Phuc L-B, Duc L-N. An effective damage detection approach for a truss bridge using a hybrid deep learning model. In: Thanh N-V, Nguyen-Ngoc L, Bui-Tien T, et al., editors. Proceedings of the 5th International Conference on Sustainability in Civil Engineering-Volume 2. Singapore: Springer Nature; 2025. p. 91–101. https://doi.org/10.1007/978-981-96-5206-8_10
  20. 20. Hong QP, Xuan MN, Manh TV, Hoai NL, Ngoc HT. Enhanced structural health monitoring using symbolic aggregate approximation with hybrid deep learning models. Matéria (Rio J). 2026;31.
  21. 21. Ismail FH, Lucas B, Forestier G, Pelletier C, Schmidt DF, Weber J. InceptionTime: finding AlexNet for time series classification. Data Min Knowl Discov. 2020;34:1936–62.
  22. 22. Nguyen TQ. A data-driven approach to structural health monitoring of bridge structures based on the discrete model and FFT-deep learning. J Vib Eng Technol. 2021;9:1959–81.
  23. 23. Asghari A, Ghodrati Amiri G, Darvishan E, Asghari A. A novel approach for structural damage detection using multi-headed stacked deep ensemble learning. J Vib Eng Technol. 2024;12:4209–24.
  24. 24. Kyung J, An JH, Eun HC. Sensor layout design for structural health monitoring. Civ Eng J. 2024;10:3986–97.
  25. 25. Chu TSC, Sorilla J, Chua AY. UAV-based structural health monitoring using a two-stage CNN model with lighthouse localization in GNSS-denied environments. HighTech Innov J. 2025;6(2):398–410.
  26. 26. Chu H-Y, Tien M-H. Structural damage identification using single-point vibration data processing. PLoS One. 2025;20(9):e0330909. pmid:40934231
  27. 27. Liu Z, Mao H, Wu CY, Feichtenhofer C, Darrell T, Xie S. A ConvNet for the 2020s. Proceedings-2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022. IEEE Computer Society; 2022. p. 11966–76. https://doi.org/10.48550/arXiv.2201.03545
  28. 28. Gu A, Dao T. Mamba: linear-time sequence modeling with selective state spaces. arXiv. 2023.
  29. 29. Saadatmorad M, Jafari-Talookolaei RA, Pashaei MH, Khatir S. Damage detection in rectangular laminated composite plate structures using a combination of wavelet transforms and artificial neural networks. J Vib Eng Technol. 2022;10:1647–64.
  30. 30. Zhao J, Zhou Z, Guan D, Guo J. A wavelet based data coupling method for spatial damage detection in beam-type structures. PLoS One. 2023;18(8):e0290265. pmid:37639433
  31. 31. Huang G, Sun Y, Liu Z, Sedra D, Weinberger KQ. Deep networks with stochastic depth. In: Leibe B, Matas J, Sebe N, editors. Computer Vision – ECCV 2016. Cham: Springer International Publishing; 2016. p. 646–61.
  32. 32. Hoa TN, Khatir S, De Roeck G, Long NN, Thanh BT, Wahab MA. An efficient approach for model updating of a large-scale cable-stayed bridge using ambient vibration measurements combined with a hybrid metaheuristic search algorithm. Smart Struct Syst. 2020;25(4):487–99.
  33. 33. Wang Z, Yan W, Oates T. Time series classification from scratch with deep neural networks: a strong baseline. arXiv. 2016.
  34. 34. Cho K, van Merriënboer B, Gulcehre C, Bahdanau D, Bougares F, Schwenk H, et al. Learning phrase representations using RNN encoder–decoder for statistical machine translation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP); 2014. p. 1724–34. https://doi.org/10.3115/v1/D14-1179
  35. 35. Ahmadzadeh M, Zahrai SM, Bitaraf M. An integrated deep neural network model combining 1D CNN and LSTM for structural health monitoring utilizing multisensor time-series data. Struct Health Monit. 2024;24(1):447–65.
  36. 36. Nie Y, Nguyen NH, Sinthong P, Kalagnanam J. A time series is worth 64 words: long-term forecasting with transformers. arXiv. 2022.
  37. 37. Chen S-A, Li C-L, Yoder N, Arik SO, Pfister T. TSMixer: an All-MLP architecture for time series forecasting. arXiv. 2023.