CONTENTS
Machine learning on radio signals
Chapter 10 left you with a picture of an expert analyst glancing at a waterfall and naming what they see. That skill takes years to build, there aren't many people who have it, and they can't watch every sensor at once. Machine learning (ML) is the attempt to bottle that skill and run it everywhere. It's also the part of this field that has changed most in the last decade.
What the classic approach looks like
Before ML, signal identification was done with hand-built rules. An engineer would measure features, like bandwidth, symbol rate, hop timing, and the shape of the constellation, and write logic like "if the bandwidth is 12.5 kHz and it's FM with these timing characteristics, it's probably this type of radio." Libraries of known signal parameters drove the rules.
This works for well-understood signals in clean conditions. It breaks down when:
- The environment is crowded and signals overlap.
- Signals are faint, so features are noisy.
- Adversaries change their equipment faster than anyone can write new rules.
- The signal is something nobody has catalogued yet.
That list describes a modern battlefield.
Signals as images, signals as sequences
There are two broad ways to feed RF data to a neural network.
As spectrograms. Turn the IQ stream into a waterfall picture and treat it as an image. Then all the techniques developed for computer vision apply: object detection models can draw boxes around each signal in the time-frequency plane and label them. This matches how human analysts work and handles many signals at once.
As raw IQ. Feed the complex samples directly into a network (as two channels, I and Q). This keeps phase information that a spectrogram throws away, which matters for telling apart modulations like QPSK and 8-PSK that look similar as images. A widely cited 2016 paper by Tim O'Shea, Johnathan Corgan, and Charles Clancy showed that a convolutional neural network trained on raw IQ could classify modulation types well, including at low SNR where hand-built feature methods struggled. That work, and the public RadioML datasets that came with it, helped start the modern "RF machine learning" field.
Concept deep dive: why RF is a hard ML problem
Image recognition had ImageNet: millions of labeled photos. RF has nothing comparable for the signals that matter most in defense. That difference shapes everything.
Labels are scarce. You can't just scrape the internet for "labeled recordings of enemy drone controllers." Real recordings are classified, rare, and often unlabeled, because even humans aren't sure what they captured.
The world shifts. A model trained on clean lab recordings sees a different world in the field: different noise floors, multipath, interference, different hardware quirks. ML people call this distribution shift, and RF has a lot of it. Even two units of the same cheap SDR have slightly different frequency offsets and gain curves.
The adversary changes things on purpose. New firmware, new frequencies, new protocols. A model that was right last month may be quietly wrong now.
Unknowns are the point. A classifier trained on ten known signal types will confidently assign any new signal to one of those ten. In defense, "this is something I haven't seen before" is often the most important answer. That calls for anomaly detection or open-set recognition: models that can say "none of the above."
Common answers to these problems include:
- Synthetic data: generate realistic signals in software, add simulated channel effects and noise, and train on huge volumes of it.
- Hardware-in-the-loop: transmit synthetic signals through real radios and real air (or cables) so the training data includes real hardware imperfections, then test models against those real captures.
- Active learning: let the model flag what it's unsure about, have a human label just those examples, and retrain. This spends scarce human attention where it helps most.
- Self-supervised pretraining: learn general structure from large amounts of unlabeled RF, then fine-tune on a small labeled set. (This is the same idea behind modern language models.)
Running models at the edge
Chapter 10 explained why sensors should process data locally: raw IQ is too big to send. That means the ML has to run on the sensor, on a small embedded processor with a tight power budget. That forces trade-offs:
- Models must be small and fast. Techniques like quantization (using 8-bit numbers instead of 32-bit) and careful architecture choices matter more than squeezing out the last percent of accuracy.
- Processing must keep up with the incoming data rate, or the sensor drops samples and misses signals.
- Updates need to be easy, because the threat changes. A sensor whose model can be retrained and pushed out in days is more valuable than a slightly better model that takes a year to field.
There's also a nice compounding effect. A sensor that detects and classifies locally can decide which snippets are worth sending upstream for geolocation (Chapter 12) or for deeper analysis by bigger models in the rear.
The human in the loop
A good RF ML system doesn't replace the operator; it changes their job from "stare at waterfalls" to "review what the system flagged." The interface matters as much as the model. A soldier under stress needs "drone control link, probably this type, operator likely in this area, confidence medium," not a spectrogram.
The operator's reactions are also free training signal. An interface can let operators mark signals as "show me more" or "ignore," and those marks become labels for an active learning pipeline. Pair that with automated hardware-in-the-loop rigs, which transmit known signals through real radios to generate labeled data and test models against real hardware every day, and the scarce-labels problem gets much smaller.
Common confusion
High accuracy on a benchmark dataset says little about field performance. RF models can score 95%+ on clean, balanced test sets and fall apart on real recordings with different hardware, interference, and signal mixes. When you read accuracy claims about RF ML (from anyone), ask: tested on what data, at what SNR, against which unknowns?
Key takeaways
ML aims to automate what expert signal analysts do. Models can work on spectrogram images or on raw IQ samples. RF ML is hard because labeled data is scarce, conditions shift, adversaries adapt, and unknown signals matter most. Synthetic data, hardware-in-the-loop testing, active learning, and edge-optimized models are the standard responses, and operator feedback is a valuable source of labels.