CNN-LSTM Hybrid Architecture for Over-the-Air Automatic Modulation Classification Using SDR

Dinanath Padhya, Krishna Acharya, Bipul Kumar Dahal, Dinesh Baniya KshatriarXiv 2025 · DOI

Introduction

The proliferation of Internet of Things (IoT) devices and the development of smart city infrastructure have led to an increasingly congested radio frequency (RF) spectrum. In this environment, Automatic Modulation Classification (AMC) is essential for cognitive radio systems, interference management, and electronic warfare. AMC enables a receiver to autonomously identify the modulation scheme of an incoming signal—such as Frequency Modulation (FM) or Quadrature Amplitude Modulation (QAM)—without prior knowledge of the transmission parameters.

While traditional maximum likelihood methods offer high accuracy, they are often computationally prohibitive for real-time applications. Conversely, older feature-based methods struggle with the non-linearities and noise inherent in real-world channels. Deep learning has emerged as a powerful alternative; however, much of the existing literature relies on simulated datasets that fail to capture the complexities of "over-the-air" (OTA) environments. This paper presents a hybrid CNN-LSTM architecture designed to bridge the simulation-to-reality gap using Software Defined Radio (SDR) hardware.

Proposed Methodology

The core of the proposed system is a two-stage hybrid deep learning model that integrates spatial and temporal feature extraction.

  1. Spatial Feature Extraction: The model utilizes a modified AlexNet Convolutional Neural Network (CNN). To adapt radio signals for a vision-based architecture, raw In-phase/Quadrature (I/Q) data is transformed into a 3-channel tensor of dimension 224x224x3. These channels represent the signal's Amplitude, Phase, and raw I/Q values, effectively creating an "image" of the radio signal.
  2. Temporal Modeling: Recognizing that radio signals are inherently time-series data, the spatial features extracted by the CNN are fed into a Long Short-Term Memory (LSTM) layer. This allows the network to capture long-term temporal dependencies and the sequential evolution of the signal.
The proposed hybrid architecture combining a modified AlexNet for spatial features and an LSTM block for temporal dependencies.

The hardware implementation leverages GNU Radio for signal synthesis and RTL-SDR for reception. A custom FM transmitter was also developed to provide authentic over-the-air ground-truth data for validation.

Experimental Setup and Datasets

The model was trained on a comprehensive hybrid dataset consisting of:

  • RadioML2018.01a: A standard public dataset with labeled I/Q samples across diverse modulation schemes and channel impairments.
  • Custom Synthetic Data: Generated via GNU Radio to include Additive White Gaussian Noise (AWGN) with Signal-to-Noise Ratios (SNRs) ranging from 0 to 30 dB.
  • OTA Samples: Real-world signals captured via SDR to evaluate practical robustness.

Results and Discussion

The optimized hybrid model achieved a peak test accuracy of 93.48%, with consistent performance across precision, recall, and F1 metrics. The Area Under the Curve (AUC-ROC) approached 1.00 for most digital classes, including BPSK, QPSK, and GMSK, indicating high discriminative capability.

Confusion matrix for the tuned model, showing high accuracy for most classes but notable confusion between 16QAM (label 3) and 64QAM (label 4).

Despite these strengths, the model faces challenges in distinguishing between high-order QAM schemes. As shown in the confusion matrix, 16QAM and 64QAM are frequently misclassified as one another due to their similar constellation geometries under noisy conditions. Furthermore, while the model performed exceptionally on the test set, accuracy decreased to approximately 86% on recorded real-world data and ~80% in live environments. This performance drop is attributed to real-world impairments such as multipath fading, Doppler shifts, and carrier frequency offsets that are difficult to model perfectly in simulation.

Conclusion

This research demonstrates the efficacy of a hybrid CNN-LSTM architecture for real-time Automatic Modulation Classification. By treating RF signals as multi-channel images and modeling their temporal evolution, the system achieves high accuracy across both simulated and over-the-air signals. Future work will focus on refining feature extraction to resolve QAM confusion and enhancing the model's resilience to hardware-specific impairments in low-cost SDR receivers.

Summary updated

BibTeX
@misc{padhya2025cnn,
  author = {Dinanath Padhya and Krishna Acharya and Bipul Kumar Dahal and Dinesh Baniya Kshatri},
  title = {{CNN-LSTM Hybrid Architecture for Over-the-Air Automatic Modulation Classification Using SDR}},
  year = {2025},
  eprint = {2511.21040},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.21040},
}
Figure