Skip to content
Franco AlcarazWriting

From the raw signal to a real-time classifier

Recognizing people, vehicles and animals by their micro-Doppler signature: cleaning real radar recordings, training a small network and deciding what to report in operation.

Article12 min readLeer en español

On this page
  1. The problem
  2. Real data does not come clean
  3. Detecting the useful segments
  4. From segments to images
  5. Training without fooling ourselves
  6. A small model is enough
  7. In operation: deciding what to report at each moment
  8. And if we look at the whole recording
  9. Can it be deployed on a radar?
  10. What is hard and what comes next
  11. Code and data
  12. References

When we talk about deep learning applied to a new problem, we usually focus on the model: which architecture, how many layers, which optimizer. In my thesis the model ended up being the least complicated part. What took the most work, and what weighed the most on the result, was everything that happens before and after it: deciding which parts of a real recording are useful for training, how to turn them into something a supervised learning model can process, and how to go from many individual predictions to one decision per object.

In this article I go through that whole path, from the radar recordings to a classifier that meets the timing requirements of a radar in operation. There is one idea that comes up throughout the article: the same detector of useful portions is used twice, first to clean the training data and then to filter the predictions in operation.

The problem

A ground scanning radar detects moving objects, locates them and tracks them (it builds their trajectory from multiple associated detections). Knowing what each object is is a different problem. For that, the Doppler signal of the cell where the object is located is used: as I show in the first article of the series, each type of object leaves a characteristic trace in that signal, its micro-Doppler signature.

At the start I set myself three goals, thinking of a real radar and not of a lab experiment:

  • at least 80 % accuracy in each class;
  • classifying a signal window in 100 ms or less, to be able to handle several objects at once;
  • a latency of 4 s or less between the moment the object appears and its first classification.

The next figure summarizes the resulting classification chain. The two highlighted boxes are the ones this article covers in more detail.

Block diagram: the radar detects and tracks the object, the Doppler signal of its cell goes through the useful-segment detector, is cut into 4 s windows every 0.5 s, each one becomes a 128 × 128 spectrogram classified by the convolutional network, and the average of the valid windows gives the object's class. The detector and the average of the valid windows are highlighted.

The classification chain inside the radar.

Real data does not come clean

I used the public dataset of the Signal Processing Laboratory of Ben-Gurion University [2], recorded with a ground scanning pulse-Doppler radar in X band. It has recordings of one and two people in many different situations, of cars, of tracked vehicles and of animals. So that the classifier would also have a “nothing here” option, I added 80 recordings of synthetic noise (with no object at all).

The first thing that stands out is the imbalance. There are 231 recordings of one person and 9 of tracked vehicles. The recordings also have very different durations, so the number of samples per class is not even either.

Recordings per class: one person 231 (8,586 windows), two people 127 (8,472), synthetic noise 80 (4,160), animal 69 (5,056), car 53 (3,043) and tracked vehicle 9 (1,142).

Recordings and windows per class.

The second thing shows up when looking at the recordings one by one. Many have portions in which the object is simply not there (tracking was lost, or the object stopped), signal dropouts, and interference or intermodulation from the radar itself that draws horizontal bands on the spectrogram. In the extreme case, a recording has only 6 s of useful signal.

Spectrogram with the car's line at the bottom and many horizontal interference bands across the whole range.

A car recording with the full frequency range: almost everything visible is interference.

If we train with all of that mixed in, we are asking the model to learn to recognize people also from periods where there is no person at all. Most of the published work I read starts from data that has already been cleaned and does not say how it got there. In my case, that process ended up being the core of the work.

Detecting the useful segments

The idea is that if there is something moving in a portion of the recording, there is Doppler energy concentrated at some speed (whereas noise spreads its energy over the whole range). The detector I built has three rules:

  1. the spectrogram of the signal is computed (after filtering the signal to remove out-of-band interference) and, at each instant, its maximum power; that curve is smoothed with a 2 s window and compared with a threshold;
  2. short gaps, of up to 0.5 s, are tolerated within the same segment;
  3. only segments of at least 3 s are accepted.

I chose the threshold by looking at recordings with the typical problems and adjusting it until the detected segments matched what could be seen by eye.

Top, the spectrogram of the recording with two portions boxed; bottom, the smoothed maximum power, which exceeds the threshold in those two portions, marked as valid segments.

The detector on a recording of a person walking in a zig-zag.

How much does this step matter? I built a variant of the dataset with more permissive criteria (lower threshold, more tolerant gaps and durations), with the idea of getting more samples. Accuracy dropped by about 3.5 points. It was the largest difference among all the data variants I tried, larger than any change in the signal representation. It is a single run per variant, so I take it as a strong hint and not as a precise measurement, but it indicates that, in this case, adding more lower-quality data did not help.

This detector shows up again later, in operation (inference).

From segments to images

Each useful segment is cut into 4 s (seconds) windows, one every 0.5 s. Four seconds are enough to see a full movement cycle even for the slowest object (tracked vehicles), and they also meet the latency I had set. The large overlap gives many more samples per segment, at the cost of consecutive windows being very similar to each other, something to keep in mind when splitting the data (I say a bit more about this in the training section).

Each window is converted into a spectrogram, which is then turned into an 8-bit grayscale image of 128 × 128 pixels. It is a small image (compared with the ones used to classify photos), but it keeps the pattern of the signature. There are also criteria for choosing the resolution, with priority on keeping it low to reduce processing time in operation.

Six 128 by 128 pixel grayscale images, one per class: one person, two people, animal, car, tracked vehicle and noise.

One input image per class.

I also tried other representations: mel-scale spectrograms, a multiband variant that expands the low frequencies, wavelet scalograms and a 2D cosine transform. The differences were small and none of them justified its extra computing cost; the cosine transform was clearly worse. The practical conclusion was that the cheapest representation was enough.

Training without fooling ourselves

Before training, we need to set data aside for evaluation, and this is where it is easy to make a mistake. Two consecutive windows share 87.5 % of the signal. If windows are split at random, the model is evaluated on images that are almost identical to the ones it saw during training, and the result we get is higher than what the model actually achieves on new data. The split has to be made by recording: each recording goes entirely to training or to evaluation, while also keeping the 70/30 proportion in each class. Doing that correctly is a problem in itself, which I cover in detail (with an experiment that measures how much doing it wrong inflates the result) in the third article of the series.

To help the model generalize, I used physically meaningful data augmentation. Resampling the signal in time is equivalent to scaling the Doppler frequencies: it is as if the object moved faster or slower. With that, plus added noise, I generated new samples and at the same time balanced the classes in the training set. Without data augmentation, accuracy was about 1.5 points lower (again, one run per configuration: a hint, not a precise measurement).

A small model is enough

The model that worked best, which I called pollito, is a rather modest convolutional network:

StageLayers
Feature extraction4 convolutions (32, 64, 128 and 128 filters; kernels of 7, 5, 3 and 3) with max pooling after each one
Classification2 dense layers (1024 and 512 neurons) with dropout, and the 6-class output
Totalabout 4.1 M parameters

For reference, AlexNet, the network that changed image classification in 2012, has about 60 M [3]. The problem and the size of the dataset do not call for more. I tried several architectures, and the most telling comparison was with a network of dense layers only that had twice as many parameters: it did not reach 80 % on test. In this problem, using convolutional layers contributed more than increasing the number of parameters.

Per window, pollito reached an accuracy of around 90 % on test (the partition that, as I explained before, was also used for validation). Looking per class, one person, car and animal were around 89 %–90 %, tracked vehicle close to 99 % (although with only 3 test recordings, that number says little) and noise at 100 %. The hardest class was two people, at 84 %: when they walk in step, their signature looks a lot like that of a single person.

Six-class confusion matrix with the diagonal between 84 % (two people) and 100 % (noise); the largest confusion is two people taken as one (12 %).

Per-window confusion matrix.

In operation: deciding what to report at each moment

In the radar, the classifier does not work on a finished recording. For each tracked object a stream of windows arrives, one every fraction of a second, and at every moment the system has to report what it thinks the object is. What matters, then, is not only the final decision, but which class the operator is seeing at each instant, and above all how long they are seeing a wrong class.

This is where the segment detector comes back. Just as I discarded the portions without an object for training, in operation it makes sense not to report anything during those portions: the model never saw windows like that, and we cannot expect it to know what to do with them. The detector rules are the same as for training.

What has to be defined in operation is when a window counts as valid, because a 4 s window can fall only partly inside a segment (for example, when the object has just appeared or when it is lost). The criterion I used is that the window must have at least 2.5 s of signal inside a valid segment, that is, a little over 60 % of its duration. I did not require the window to fall entirely inside the segment because I saw that the model still behaved well on windows with a smaller percentage of useful content. This way the system also starts reporting sooner when an object appears: 2.5 s after the start of the segment instead of 4 s.

The next figure shows what happens in a recording of a person walking in a zig-zag, which in the thesis ended up on the test side. Inside the valid segments, the model says “one person” with full confidence. Outside them, where there is almost no signal, it says “animal” with the same confidence. Without the filter, an operator would see “animal” for almost half of the recording.

Top, the spectrogram of the recording; bottom, the probability of each class over time: inside the two valid segments "one person" is close to 1, and outside them "animal" is.

Model predictions along the recording.

To measure this over all test recordings I simulated operation: I went through each recording in order, one window every 0.5 s, and at each instant I recorded which class would be reported with four strategies. The class can come from the current window (instantaneous) or from the average of all windows since the object appeared (running average), and in both cases with or without the valid-segment filter. With the filter, nothing is reported while there are no valid windows, and the running average is only updated with valid windows.

Stacked bars with the fraction of time with a correct class, a wrong class or no classification: instantaneous, 81, 19 and 0 %; instantaneous with valid windows only, 51, 8 and 41 %; running average, 88, 12 and 0 %; running average with valid windows only, 76, 8 and 16 %.

Class reported at each instant with each strategy.

Without the filter, the system reports a wrong class 19 % of the time if it uses the current window, and 12 % if it averages backwards. With the filter, that time drops to 8 % in both cases. The price is that there are moments without a classification: in this evaluation, 41 % of the time with the instantaneous strategy and 16 % with the running average. Part of that time corresponds to the noise recordings, where reporting nothing is exactly the right thing to do. When the system does report a class, it is right 87 % of the time with the current window and 91 % with the running average of valid windows.

For a monitoring system, that trade-off is reasonable: it is better for the operator to see “no classification” during a doubtful period than to see “animal” on a person who is approaching (or “person” on an animal, which triggers a false alarm).

And if we look at the whole recording

In the thesis I also evaluated the result the way it is usually done in published work: one decision per complete recording, averaging the probabilities of its windows and choosing the class with the highest average. This way, test accuracy goes from 89.7 % per window to 94.0 % per recording, because the errors of different windows are not perfectly correlated and averaging them makes them cancel out.

Accuracy per window, 89.7 %, and per recording averaging its windows, 94.0 %.

Per-window and per-recording accuracy on test.

In that offline evaluation the filter does not change the result (also 94.0 % with filtering), but that does not say much about the method: the average at the end of the recording only changes when the portions without an object weigh enough in the total, so it depends mostly on what fraction of each recording is useful. In the example recording they weigh a lot, and the average of all windows ends up saying “animal”.

Mean probability of each class in the example recording: with all windows, "animal" reaches 51 % and beats "one person"; with only the valid ones, "one person" rises to 93 % and "animal" stays near 0.

Recording decision using all windows and using only the valid ones.

Can it be deployed on a radar?

I measured the times on a laptop with an Intel i7-8750H processor and a GTX 1060 GPU, without any particular optimization (that is, running the model as it was used for training):

StageMean time per windowWindows per second
Pre-processing (spectrogram)1.95 ms512
Inference20.45 ms49
Total22.4 ms45

The total is well below the 100 ms I had set: it is enough to classify about 45 windows per second. Almost all of the inference time goes into moving data from CPU memory to the GPU, so an implementation designed for the radar platform should bring it down even further. In radar units: while one window is being classified, the radar emits about 127 pulses.

What is hard and what comes next

Several things remain open:

  • Two people walking in step are confused with one. It is the clearest limitation of the model, and also of the data: they are hard to tell apart by eye as well.
  • The results for tracked vehicles rely on only 9 recordings. More data is needed before drawing conclusions about that class.
  • It still has to be tested on radar hardware and, above all, with data from another radar or another scenario. Everything I measured is on a single dataset.
  • There are configurations I did not explore in depth: hyperparameter optimization, recurrent models that exploit the sequence of windows instead of averaging it, and transferring the model to other radars.

What I take away from this work is that, with real data, the quality of what goes into the model weighs more than the architecture. Choosing well which portions of each recording to use, for training and for reporting in operation, did more for the result than the model adjustments I tried.

Code and data

The figures in this article were generated with the code and the trained model of the thesis, without modifying them.


This article was originally written by me in Spanish and translated into English using the Claude Opus 5.5 model (Anthropic).

References

  1. Alcaraz, F. A. (2026). Classification of Doppler Signals from Radar Echoes Using Deep Learning. Master's thesis in Engineering, revised English edition, Instituto Balseiro, Universidad Nacional de Cuyo. https://doi.org/10.5281/zenodo.23227057 ↩
  2. Signal Processing Laboratory, Ben-Gurion University of the Negev (n.d.). The Database of Radar Echoes from Various Targets. http://www.ee.bgu.ac.il/~spl/ ↩
  3. Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. Advances in Neural Information Processing Systems, 25. ↩
  4. Alcaraz, F. A. (2020). Clasificación de Señales Doppler de Ecos Radar usando Deep Learning. Master's thesis in Engineering (original Spanish version), Instituto Balseiro, Universidad Nacional de Cuyo. https://doi.org/10.5281/zenodo.23226363
  5. Bilik, I., & Tabrikian, J. (2008). Knowledge-based radar target classification. Knowledge-Based Radar Detection, Tracking and Classification (F. Gini and M. Rangaswamy, eds.), ch. 9, 197–224. Wiley.
  6. Chen, V. C. (2019). The Micro-Doppler Effect in Radar (2nd ed.). Artech House.

Search