SSDPT: Transformer & DSTBC Systems
- SSDPT is a dual-topic framework that encompasses a self-supervised dual-path Transformer for anomalous sound detection and single-symbol ML decodable DSTBCs for cooperative networks.
- The Transformer component leverages alternating time and frequency encoders with random masking and reconstruction tasks, achieving notable performance improvements in anomaly detection metrics.
- For DSTBC applications, SSDPT ensures independent decodability of real channel symbols by enforcing algebraic decoupling, thus reducing ML complexity and optimizing coding gains in cooperative networks.
SSDPT refers to two distinct topics in the scientific literature: (1) the Self-Supervised Dual-Path Transformer for anomalous sound detection in machine condition monitoring (Bai et al., 2022), and (2) Single-Symbol ML Decodable Distributed Space-Time Block Codes for partially-coherent cooperative networks (“SSD DSTBCs” in (0708.3019)). This entry addresses both, given their prominent association with the acronym “SSDPT.”
1. Self-Supervised Dual-Path Transformer (SSDPT) for Anomalous Sound Detection
SSDPT is a machine learning architecture for unsupervised anomaly detection in industrial machine audio, focusing on scenarios where only normal-operation sound is available for training. The framework combines dual-path Transformer modeling of time and frequency dependencies with self-supervised learning objectives, achieving state-of-the-art performance under domain shift conditions (Bai et al., 2022).
Key Principles
SSDPT is predicated on two innovations:
- Dual-Path Transformer (DPT): Stacks Transformer encoders that alternately aggregate temporal and spectral (frequency) relations within short spectrogram segments.
- Self-supervised learning: Uses only normal recordings, with random masking and reconstruction as an auxiliary task, and machine-ID classification as the primary task.
This architecture supports training in environments where anomaly instances are rare or unavailable.
2. Acoustic Feature Extraction and Segmentation
- Input: Audio at 16 kHz.
- Transformation: Short-Time Fourier Transform (STFT, 1024 window, 512 hop), then mapped to 128 Mel bins, followed by scaling to produce , .
- Segmentation: is divided into overlapping patches , segment length , training hop , testing hop .
- Assignment: Each segment inherits machine-ID label .
Segmentation enables the DPT to model both local and contextual structure in the acoustic data.
3. Dual-Path Transformer Block Architecture
- Composition: Each DPT block processes segment 0 via two sequential Transformer encoders:
- Time Encoder 1: Processes 2-length sequence of 3-dimensional vectors.
- Frequency Encoder 4: After transposing, processes 5-length sequences of 6-dimensional vectors; result is transposed back.
- Transformer mechanics (per encoder, input 7):
1. Multi-Head Scaled Dot-Product Attention (MHSA): For head 8, queries, keys, and values are projected and computed as:
9
2. Residual and LayerNorm: 0. 3. Feed-Forward Network (FFN): 1. 4. Second Residual and LayerNorm: 2.
- Stacking: 3 DPT blocks are stacked, alternating between time and frequency encoding.
This cascading interaction allows for interleaved modeling of temporal and spectral dependencies, both crucial for anomalous sound discrimination.
4. Self-Supervised Training Objectives
SSDPT employs two concurrent self-supervised tasks on normal sound segments 4:
- 4.1. Random Masking & Reconstruction: Applies 5 square patch masks (e.g., 6, 7) to 8 yielding 9, with DPT reconstructing 0. The mean squared error (MSE) reconstruction loss:
1
- 4.2. Machine-ID Classification: After final DPT block, max-pool over 2 to obtain 3; softmax classifier outputs machine-ID predictions 4. Cross-entropy loss:
5
- 4.3. Joint Loss: For 6 segments:
7
with 8.
The auxiliary reconstruction task complements the classification, improving generalization under domain shift (Bai et al., 2022).
5. Evaluation Protocol and Performance
- Dataset: DCASE2021 Task 2 (seven machine types, two domains, three sections). Training: 1000 source-domain normal, 3 target normal; Testing: 100 normals + 100 anomalous per domain/section.
- Anomaly Scoring: Each test clip is segmented. For each segment, compute:
Classification score:
9
where 0 is softmax probability for correct machine-ID.
Reconstruction score:
1
Final anomaly score:
2
with 3.
- Metrics:
- Area under ROC curve (AUC)
- Partial AUC at FPR 4 (pAUC)
- Harmonic mean AUC/pAUC (h-AUC, h-pAUC) per machine type.
| Method | h-AUC | h-pAUC |
|---|---|---|
| Baseline AE | 0.619 | 0.533 |
| Baseline MobileNetV2 | 0.597 | 0.564 |
| MNv2 + LOF | 0.694 | 0.616 |
| WaveNet-ensemble | 0.705 | 0.625 |
| SSDPT (no auxiliary) | 0.713 | 0.607 |
| SSDPT (full) | 0.722 | 0.611 |
| SSDPT-ensemble | 0.739 | 0.626 |
The DPT model alone outperforms prior methods. The auxiliary task brings a further 5 h-AUC, and ensembling pushes h-AUC to 6, an increase of 7 points over the previous state-of-the-art (Bai et al., 2022).
6. Connections: Distributed STBCs and SSD Property
The acronym SSDPT can also refer to Single-Symbol ML Decodable Distributed Space-Time Block Codes (DSTBCs) for partially-coherent relay networks (0708.3019). Here, the “SSD” property ensures each real channel symbol is decodable independently with maximum-likelihood complexity 8 rather than exponential in 9.
- Classical SSD conditions (co-located): Decoupling (block diagonal) conditions on code matrices 0 over 1 transmit antennas, ensuring the equivalent Gramian is block-diagonal.
- Distributed extension (PCRC): In cooperative amplify-and-forward with partially-coherent relays (backward phase CSI only), additional “three-relay” block-diagonal constraints ensure that both signal and noise covariances decouple, preserving single-symbol ML decodability.
- Code constructions: Alamouti 2, coordinate-interleaved ODs 3, and stacked ROD-based complex ODs (rate 4, any 5) meet the necessary and sufficient conditions for SSD in the distributed partially-coherent setting.
This alternative use of SSDPT highlights its relevance for signal processing in communication systems, independent of anomaly detection.
7. Practical Considerations and Design Trade-offs
For anomalous sound detection (Bai et al., 2022):
- Hyperparameters: 6 DPT blocks, 7, 8 for train (test), embedding 9, 0 MHSA heads, FFN 1.
- Optimization: AdamW with 2 initial learning rate.
- Masking: 3 patches of 4 for the self-supervised task.
For distributed STBCs in PCRC (0708.3019):
- Optimal SSD-ML: Satisfy both co-located and three-relay constraints; phase compensation at relays raises rate from 5 to 6.
- Coding gain: Sub-optimal SSD (neglecting noise covariance) retains full diversity but loses 7–8 dB in coding gain.
- Design guidelines: Choose codes satisfying all algebraic decoupling constraints; verify additional PCRC constraints for best performance.
In both contexts, the unifying theme is the exploitation of algebraic structures (Transformer or code orthogonality) and self-supervision (masking or phase compensation) to provide efficient, robust modeling and inference.