NMformer: A Transformer for Noisy Modulation Classification in Wireless Communication

Atik Faysal, Mohammad Rostami, Reihaneh Gh. Roshan, Huaxia Wang, Nikhil Muralidhar

Abstract

Automatic Modulation Classification (AMC) is a critical task in cognitive radio and wireless sensing, yet it remains challenging in high-noise environments. This paper introduces NMformer, a novel framework that leverages the Vision Transformer (ViT) architecture for AMC. By transforming raw 1D signals into enhanced 2D constellation diagrams and employing global self-attention mechanisms, NMformer achieves superior classification accuracy compared to traditional CNN-based methods. Our results demonstrate that fine-tuning on a small, targeted dataset significantly enhances performance, particularly in noisy scenarios, while maintaining robust generalization to unseen signal-to-noise ratios (SNRs).

Introduction

In wireless communication, identifying the modulation scheme of a received signal without prior knowledge is essential for efficient spectrum management and interference mitigation. Traditional AMC approaches often rely on Convolutional Neural Networks (CNNs) to extract features from signal representations. However, CNNs are inherently limited by their local receptive fields, which can lead to performance degradation when signal patterns are obscured by noise. NMformer addresses this by treating AMC as a global image recognition problem, utilizing the long-range dependency modeling capabilities of Transformers.

NMformer Architecture

The NMformer pipeline converts raw signal data into a format suitable for vision-based processing. The architecture consists of a signal-to-image conversion stage followed by a standard Vision Transformer backbone.

Overview of the NMformer architecture, from raw signal processing to Transformer-based classification.

The conversion process utilizes an "enhanced grayscale" method, where pixel intensities are determined by an exponential decay model relative to signal point proximity. To better suit the three-channel input of pre-trained ViTs, the authors generate three distinct heatmaps using varying decay rates and map them to the RGB channels. This multi-scale representation allows the Transformer to capture both fine-grained and coarse structural features of the constellation diagram. The Transformer's self-attention mechanism then processes these images as sequences of patches, enabling the model to consider the global context of the signal distribution.

Experimental Methodology

The study utilized a dataset comprising 106,800 images across 10 modulation formats, including ASK, PAM, and FSK variants. Training was conducted across a range of SNRs (0 dB to 10 dB). A significant finding of this work is the efficacy of transfer learning; by fine-tuning a base model on a mere 3,000 targeted samples (3% of the original dataset), the researchers achieved substantial gains in classification accuracy for specific noise environments.

Key Results and Discussion

The base NMformer model achieved a classification accuracy of 71.10%. Upon fine-tuning for high-SNR environments (5.5 to 9.5 dB), the accuracy improved to 75.77%. The model also demonstrated remarkable resilience to out-of-distribution noise, maintaining high performance on SNRs not encountered during the training phase.

Confusion matrix showing the classification performance across 10 modulation formats.

As shown in the confusion matrix, the model effectively distinguishes between most modulation types, with notable improvements in classes like OOK and 16PAM after fine-tuning. By treating noise as a visual texture rather than a mathematical error, NMformer learns to identify the underlying signal signature even amidst significant interference. This global perspective prevents the model from being misled by local point displacements common in noisy constellations.

Conclusion and Future Work

NMformer demonstrates the potential of Transformer architectures to revolutionize signal processing in wireless communication. Its ability to learn from small datasets and its robustness to noise make it a promising candidate for real-world AMC applications. Future research will focus on expanding the SNR range to include negative values and optimizing the model for real-time inference on edge hardware.

Summary updated

BibTeX
@inproceedings{faysal2024nmformer,
  author = {Atik Faysal and Mohammad Rostami and Reihaneh Gh. Roshan and Huaxia Wang and Nikhil Muralidhar},
  title = {{NMformer: A Transformer for Noisy Modulation Classification in Wireless Communication}},
  booktitle = {WOCC},
  year = {2024},
  doi = {10.1109/wocc61718.2024.10786062},
}
Figure