<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Signal Processing · Writing · Franco Alcaraz</title><description>How what arrives in a signal gets measured, filtered and interpreted.</description><link>https://blog.francoalcaraz.com/en/topics/signal-processing/</link><language>en-US</language><item><title>What a radar sees when you walk</title><link>https://blog.francoalcaraz.com/en/micro-doppler-signatures/</link><guid isPermaLink="true">https://blog.francoalcaraz.com/en/micro-doppler-signatures/</guid><description>Micro-Doppler signatures explained with real data: what a person, a car, a tracked vehicle and a cow look like in a spectrogram.</description><pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;aside class=&quot;al-margen&quot;&gt;&lt;p&gt;&lt;em&gt;Original language: Spanish. This is the first of a series of three articles based on my master’s thesis, “Classification of Doppler Signals from Radar Echoes Using Deep Learning” (Instituto Balseiro, 2020) &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-alcaraz2026&quot; title=&quot;Alcaraz (2026). Classification of Doppler Signals from Radar Echoes Using Deep Learning&quot; class=&quot;cita&quot; id=&quot;cita-alcaraz2026&quot;&gt;1&lt;/a&gt;]&lt;/span&gt;.&lt;/em&gt;&lt;/p&gt;&lt;/aside&gt;
&lt;p&gt;When we think of a radar, we usually picture a screen with moving dots. Although there are
many types of radar, most of them (or at least the best known) scan a portion of space to
detect objects through the reflection of electromagnetic waves. But a radar does not behave
like a camera: it detects reflections, with a much lower resolution but a much wider
coverage. A scanning radar like the one in this article does not see well-defined shapes,
although it does measure very well the speed of what it detects.&lt;/p&gt;
&lt;p&gt;And it turns out that, in many cases, speed is enough to get sufficient information about
what is being detected to tell what it is (as long as there is movement). A person walking,
a car and a cow move in very different ways, and those differences are recorded in the
signal that comes back to the radar. In this article I show what those differences look
like using real recordings, the same ones I used in my thesis to train a classifier.&lt;/p&gt;
&lt;h2 id=&quot;a-radar-that-measures-speeds-not-shapes&quot;&gt;A radar that measures speeds, not shapes&lt;/h2&gt;
&lt;p&gt;A ground scanning radar has three basic tasks: detecting whether something is there,
locating it (how far away and in which direction) and following it while it moves. For all
of that, knowing where the object is is enough. But in many applications we also want to
know what it is: a person walking across a field is not the same as an animal grazing in it.&lt;/p&gt;
&lt;p&gt;This is where the Doppler effect comes in. It is the same phenomenon that makes an
ambulance siren sound higher-pitched as it approaches us and lower-pitched as it moves away.
The radar emits a wave at a known frequency, the wave bounces off the object and returns
slightly shifted in frequency. That shift, the Doppler frequency, is proportional to the
speed of the object relative to the listener:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math;&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msub&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;/msub&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;/mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mfrac&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore=&quot;&quot;&gt;f_D = \frac{2 \, v_r \, f}{c}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;where &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore=&quot;&quot;&gt;f&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; is the radar frequency, &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore=&quot;&quot;&gt;c&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; the speed of light and &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore=&quot;&quot;&gt;v_r&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; the radial speed of the
object. With an X-band radar like the one that recorded the data I used, which works at
9 GHz, the numbers give an easy rule of thumb: &lt;strong&gt;each meter per second is about 60 Hz&lt;/strong&gt;. A
person running at about 9 km/h (2.5 m/s) produces a shift of about 150 Hz.&lt;/p&gt;
&lt;p&gt;An important detail is that the speed is &lt;em&gt;radial&lt;/em&gt;. The radar only perceives the part of the
movement that brings the object closer or takes it away, that is, the component of the
velocity along the line joining the radar and the object. If the object moves at an angle
&lt;math&gt;&lt;semantics&gt;&lt;mi&gt;ψ&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore=&quot;&quot;&gt;\psi&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; to that line, the radar sees &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mrow&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;cos&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ψ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore=&quot;&quot;&gt;v \cos\psi&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. Someone walking straight towards the radar
is seen with their full speed; someone crossing sideways, at 90°, is practically invisible
through Doppler.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Diagram of a radar and an object moving at an angle psi to the line joining them; the radial speed is v times cosine of psi.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1482&quot; height=&quot;739&quot; src=&quot;https://blog.francoalcaraz.com/_astro/radial_speed.BGdBBJVd_Z1GamBV.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;The radial speed is the projection of the object’s velocity on the radar’s line of sight.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;how-to-read-a-spectrogram&quot;&gt;How to read a spectrogram&lt;/h2&gt;
&lt;p&gt;If the object were a rigid block moving at constant speed, the Doppler signal would be a
pure tone and there would not be much more to say. But a walking body has parts that move at
different speeds, and those speeds change with every step. To see that, we need to look at
how the frequency content of the signal changes over time, and the tool for that is the
spectrogram. Put another way, an object with moving parts returns multiple echoes with
different frequency shifts.&lt;/p&gt;
&lt;p&gt;A spectrogram is built by cutting the signal into short pieces (about 90 ms in the figures of
this article), computing the spectrum of each one and placing them side by side. The result
reads like this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the horizontal axis is time;&lt;/li&gt;
&lt;li&gt;the vertical axis is the Doppler frequency, that is, the radial speed (on the right of the
figures I added the scale in m/s);&lt;/li&gt;
&lt;li&gt;the color is power: the lighter, the more energy comes back to the radar at that speed and
at that moment.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The next figure shows a few seconds of a person running along the radar’s line of sight.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with a bright band near 130 Hz labeled as the torso, periodic peaks around it labeled as arms and legs, background noise above and the energy of still things right at 0 Hz.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;979&quot; src=&quot;https://blog.francoalcaraz.com/_astro/person_run_annotated.BAOs-a8b_Z2bf6vp.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Spectrogram of a person running, with its parts labeled.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The brightest band, near 130 Hz (a little over 2 m/s, about 8 km/h), is the torso: it is the
part of the body that reflects the most energy and the one that sets the average speed of
the person. Around it there are peaks that rise and fall periodically: these are the arms and
legs, which on each step move faster than the torso and then slow down or even move
backwards. Each peak is a step. Higher up is the background noise, and right next to 0 Hz is
the energy of everything that stands still, such as the ground and the vegetation.&lt;/p&gt;
&lt;p&gt;These modulations around the main movement are called &lt;strong&gt;micro-Doppler&lt;/strong&gt;, and the pattern
they form is called the &lt;strong&gt;micro-Doppler signature&lt;/strong&gt; &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-chen2019&quot; title=&quot;Chen (2019). The Micro-Doppler Effect in Radar&quot; class=&quot;cita&quot; id=&quot;cita-chen2019&quot;&gt;2&lt;/a&gt;]&lt;/span&gt;. The “micro” comes from the fact that
they are small movements (oscillations, rotations, vibrations) riding on the large movement
of the object.&lt;/p&gt;
&lt;aside class=&quot;al-margen&quot;&gt;&lt;p&gt;Spectrograms built from the signals in this dataset only contain positive Doppler frequencies. This is because the radar used did not provide the complex echo signal, so the information on whether the object is approaching the radar or moving away from it is lost. In more modern radars we will find both positive and negative frequencies.&lt;/p&gt;&lt;/aside&gt;
&lt;h2 id=&quot;people&quot;&gt;People&lt;/h2&gt;
&lt;p&gt;The dataset has a very wide variety of recordings of people: different speeds, angles to the
radar, ways of moving, and even people carrying antennas. I chose a few that clearly show how
the signature changes. All figures use the same color scale, with power relative to the
maximum of each recording.&lt;/p&gt;
&lt;p&gt;Walking slowly, the torso stays below 50 Hz (less than 1 m/s) and the steps show up as peaks
that are lower and more spaced out than when running.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with the torso band below 50 Hz and low, widely spaced peaks.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/person_slow.D9QxnYj8_25fYzq.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A person walking slowly.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The next person walks without moving their arms, and also does it diagonally, at 45° to the
radar. The modulations are there, but they are flatter and carry less energy: part of the
limbs that contributed high speeds is missing, and the angle scales everything down by
&lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi&gt;cos&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ψ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore=&quot;&quot;&gt;\cos\psi&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with flatter and weaker modulations than those of the running person.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/person_no_hands.Cegqt1gR_qNz2F.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A person walking without moving their arms, at 45° to the radar.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Some cases have nothing to do with walking. In this recording the person moves forward in
jumps: the speed rises to about 150 Hz and drops back to 50 Hz or less, again and again,
roughly every three seconds. The pattern is so different that it can be recognized without
knowing anything about radar.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with arcs that rise to about 150 Hz and fall, repeated every three seconds.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/person_jump.BSPshd3c_1UWYv3.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A person moving forward in jumps.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Crawling on the ground is the opposite: the speed is low and there is no regular step cycle.
Seen this way, it looks more like the signature of an animal than that of a walking person,
which anticipates one of the problems of classification.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with energy at low speed and no regular cycle.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/person_crawl.D6EQyI3U_ZTpmP1.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A person crawling, at 45° to the radar.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In a zig-zag, the person’s direction relative to the radar changes all the time, and so does
the radial speed. In the spectrogram this shows up as a band that widens, narrows and changes
height along the recording.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram of a long recording in which the main band rises, falls, widens and narrows.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/person_zigzag.79QLmMiq_ZjR4Qe.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A person walking in a zig-zag (full recording).&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;With two people in the same radar cell, the two signatures add up. If each one walks at
their own pace, the spectrogram looks messy: the steps of one and the other mix and no clean
cycle appears.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with overlapping, disordered modulations.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/two_async.BgFtGDgF_ZrLOaX.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Two people walking out of step.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The difficult case is when they walk in step. The steps coincide, the modulations overlap
and the result looks a lot like that of a single person. Compare it with the running person
above: at first sight it is hard to find anything that gives away that there are two. This
was also the class the classifier struggled with the most.&lt;/p&gt;
&lt;aside class=&quot;al-margen&quot;&gt;&lt;p&gt;Why aren’t the two people seen as separate detections? Because both fall within the same radar resolution cell. The radar cannot separate, in its detection, several objects that are close together within the space it can resolve. However, it can still recover information about the speeds (phase changes) of whatever is inside that cell.&lt;/p&gt;&lt;/aside&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with a regular step cycle, similar to that of a single person.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/two_sync.DqgiICMj_miRPl.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Two people walking in step.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;vehicles&quot;&gt;Vehicles&lt;/h2&gt;
&lt;p&gt;For the radar, a car is a rigid body. All its parts move together (except the wheels, which
reflect little), so the spectrogram basically shows a line that goes up or down as the car
accelerates or brakes. The next recording shows a car at low speed that starts, keeps an
almost constant speed of about 150 Hz (2.5 m/s) and finally brakes. Above it there are weaker
replicas of the same line, which in the thesis I attributed to intermodulation products of
the radar itself and not to the car.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with a thin line that rises to about 150 Hz, holds and drops at the end, with weaker replicas above it.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;979&quot; src=&quot;https://blog.francoalcaraz.com/_astro/car_slow.C0ZTz5Ij_8V0Jw.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A car at low speed.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In this other one, at 45° to the radar, the car brakes and accelerates several times. The
line is just as clean, but it draws ramps: a vehicle can change speed smoothly and steadily,
something a walking person does not do.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with a thin line drawing up and down ramps.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/car_fast.CfOvtuZ8_Zst8u6.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A car braking and accelerating several times, at 45° to the radar.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Tracked vehicles are the intermediate case. The main component is visible, but it is not a
smooth line: it oscillates with a period of a few seconds and has weaker components around
it that do not appear for cars. The tracks are the most likely explanation for those side
components. For the oscillations of the main line I do not have a firm explanation; one
possibility is that the terrain was uneven. This should be taken with care, because the
dataset has very few recordings of this type of vehicle.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with an oscillating main line and weaker components around it.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;979&quot; src=&quot;https://blog.francoalcaraz.com/_astro/tank_5.BU91DPaG_14u5Uc.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A tracked vehicle.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with a wavy main line and side components.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/tank_8.atf8ZXVA_Z1Pwv4f.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Another recording of the same vehicle.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;animals-the-confusers&quot;&gt;Animals: the confusers&lt;/h2&gt;
&lt;p&gt;In a monitoring system, animals are the most likely source of false alarms. A quadruped also
has oscillating limbs, and at a distance and with the resolution of a radar of this type, a
cow or a horse can look like a person walking slowly (or like two people, because of its four
legs).&lt;/p&gt;
&lt;p&gt;That is why the dataset includes recordings of animals. Rather than teaching the system to
recognize cows, they are used to measure how often it mistakes an animal for a person or a
vehicle. This type of object is called a &lt;em&gt;confuser&lt;/em&gt;.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with irregular energy below 100 Hz.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;979&quot; src=&quot;https://blog.francoalcaraz.com/_astro/cow.bTDTtGu8_ZTa1sy.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A cow.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with irregular energy at low speed and stretches with little signal.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;979&quot; src=&quot;https://blog.francoalcaraz.com/_astro/horse.BgZpl8Jl_ZGv2ME.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A horse.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;For the cow and the horse, speeds are very low (almost everything below 100 Hz, less than
2 m/s) and the pattern is more irregular than that of a person: there is no clearly marked
step cycle, and there are periods with little signal.&lt;/p&gt;
&lt;p&gt;There is a third animal class, labeled “safari” in the dataset, for which there is no
description. Some recordings have fast, disordered components that reach 700 Hz, which
suggests birds flying next to animals on the ground, but this is only a guess. What is
clearly visible are the horizontal bands that cross the whole spectrogram: they do not come
from the object, they are radar interference.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with fast, disordered components up to 700 Hz and horizontal bands crossing it.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1669&quot; height=&quot;979&quot; src=&quot;https://blog.francoalcaraz.com/_astro/safari.D3_R9D46_Z28oh3M.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A recording from the “safari” class. The horizontal bands are interference.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;from-looking-to-classifying&quot;&gt;From looking to classifying&lt;/h2&gt;
&lt;p&gt;If, with a bit of practice, we can tell a person from a car or a cow by eye, an image
classification model can also learn to do it. That is the idea behind my thesis: converting
the Doppler signal into spectrograms and training a convolutional neural network to classify
them.&lt;/p&gt;
&lt;aside class=&quot;al-margen&quot;&gt;&lt;p&gt;In the first versions of these radars, an operator could plug in headphones and listen to the Doppler signal converted to audio (note that its frequency range is audible), and recognize what type of object it was by its sound patterns.&lt;/p&gt;&lt;/aside&gt;
&lt;p&gt;The figures in this article, however, are among the cleanest in the dataset. In practice,
three problems show up. The first is that real recordings come with interference, dropouts
and periods in which the object is simply not there. This is what the car from before looks
like when the whole frequency range is shown: the bottom band is the car, and everything else
is interference/intermodulation and its products.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with the car&amp;#39;s line at the bottom and many horizontal interference bands across the whole range.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1670&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/car_slow_full.Din14W5u_1ndOub.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;The same low-speed car, with the radar’s full frequency range.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The second is that some classes have very few samples: there are more than two hundred
recordings of one person and fewer than ten of tracked vehicles. And the third is the angle:
the same object looks different depending on how it moves relative to the radar.&lt;/p&gt;
&lt;p&gt;How I solved those problems, from the raw signal to a classifier that works in real time, is
the topic of the next article in the series: &lt;a href=&quot;https://blog.francoalcaraz.com/en/raw-signal-to-classifier/&quot;&gt;&lt;em&gt;From the raw signal to a real-time classifier&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;about-the-data&quot;&gt;About the data&lt;/h2&gt;
&lt;p&gt;The recordings come from “The Database of Radar Echoes from Various Targets”, published by
the Signal Processing Laboratory of Ben-Gurion University of the Negev &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-spl&quot; title=&quot;Signal Processing Laboratory, Ben-Gurion University of the Negev. The Database of Radar Echoes from Various Targets&quot; class=&quot;cita&quot; id=&quot;cita-spl&quot;&gt;3&lt;/a&gt;]&lt;/span&gt;, and described by
Bilik and Tabrikian &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-bilik2008&quot; title=&quot;Bilik &amp;#x26; Tabrikian (2008). Knowledge-based radar target classification&quot; class=&quot;cita&quot; id=&quot;cita-bilik2008&quot;&gt;4&lt;/a&gt;]&lt;/span&gt;. They were taken with a ground scanning pulse-Doppler radar in X band
(9 GHz), with the object automatically tracked by the radar.&lt;/p&gt;
&lt;p&gt;I generated the spectrograms again for this article from the original files, with a
512-sample Hamming window (about 90 ms) and power expressed in decibels relative to the
maximum of each recording.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;This article was originally written by me in Spanish and translated into English using the
Claude Opus 5.5 model (Anthropic).&lt;/em&gt;&lt;/p&gt;&lt;section class=&quot;referencias&quot; aria-labelledby=&quot;referencias&quot;&gt;&lt;h2 id=&quot;referencias&quot; class=&quot;referencias-titulo&quot;&gt;References&lt;/h2&gt;&lt;ol&gt;&lt;li id=&quot;ref-alcaraz2026&quot; value=&quot;1&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[1]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Alcaraz, F. A. (2026). &lt;i&gt;Classification of Doppler Signals from Radar Echoes Using Deep Learning&lt;/i&gt;. Master&apos;s thesis in Engineering, revised English edition, Instituto Balseiro, Universidad Nacional de Cuyo. &lt;a href=&quot;https://doi.org/10.5281/zenodo.23227057&quot;&gt;https://doi.org/10.5281/zenodo.23227057&lt;/a&gt; &lt;a href=&quot;#cita-alcaraz2026&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 1&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-chen2019&quot; value=&quot;2&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[2]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Chen, V. C. (2019). &lt;i&gt;The Micro-Doppler Effect in Radar&lt;/i&gt; (2nd ed.). Artech House.  &lt;a href=&quot;#cita-chen2019&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 2&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-spl&quot; value=&quot;3&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[3]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Signal Processing Laboratory, Ben-Gurion University of the Negev (n.d.). &lt;i&gt;The Database of Radar Echoes from Various Targets&lt;/i&gt;. &lt;a href=&quot;http://www.ee.bgu.ac.il/~spl/&quot;&gt;http://www.ee.bgu.ac.il/~spl/&lt;/a&gt; &lt;a href=&quot;#cita-spl&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 3&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-bilik2008&quot; value=&quot;4&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[4]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Bilik, I., &amp;#x26; Tabrikian, J. (2008). Knowledge-based radar target classification. &lt;i&gt;Knowledge-Based Radar Detection, Tracking and Classification (F. Gini and M. Rangaswamy, eds.), ch. 9&lt;/i&gt;, 197–224. Wiley.  &lt;a href=&quot;#cita-bilik2008&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 4&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-alcaraz2020&quot; value=&quot;5&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[5]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Alcaraz, F. A. (2020). &lt;i&gt;Clasificación de Señales Doppler de Ecos Radar usando Deep Learning&lt;/i&gt;. Master&apos;s thesis in Engineering (original Spanish version), Instituto Balseiro, Universidad Nacional de Cuyo. &lt;a href=&quot;https://doi.org/10.5281/zenodo.23226363&quot;&gt;https://doi.org/10.5281/zenodo.23226363&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;</content:encoded><category>Article</category><category>signal-processing</category></item><item><title>From the raw signal to a real-time classifier</title><link>https://blog.francoalcaraz.com/en/raw-signal-to-classifier/</link><guid isPermaLink="true">https://blog.francoalcaraz.com/en/raw-signal-to-classifier/</guid><description>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.</description><pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;aside class=&quot;al-margen&quot;&gt;&lt;p&gt;&lt;em&gt;Original language: Spanish. This is the second of a series of three articles based on my master’s thesis, “Classification of Doppler Signals from Radar Echoes Using Deep Learning” (Instituto Balseiro, 2020) &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-alcaraz2026&quot; title=&quot;Alcaraz (2026). Classification of Doppler Signals from Radar Echoes Using Deep Learning&quot; class=&quot;cita&quot; id=&quot;cita-alcaraz2026&quot;&gt;1&lt;/a&gt;]&lt;/span&gt;. The first one, &lt;a href=&quot;https://blog.francoalcaraz.com/en/micro-doppler-signatures/&quot;&gt;“What a radar sees when you walk”&lt;/a&gt;, explains what information the signal carries; this one tells how the classifier was built.&lt;/em&gt;&lt;/p&gt;&lt;/aside&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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: &lt;strong&gt;the same detector of useful portions is used twice&lt;/strong&gt;, first to
clean the training data and then to filter the predictions in operation.&lt;/p&gt;
&lt;h2 id=&quot;the-problem&quot;&gt;The problem&lt;/h2&gt;
&lt;p&gt;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 &lt;a href=&quot;https://blog.francoalcaraz.com/en/micro-doppler-signatures/&quot;&gt;first article of the series&lt;/a&gt;, each type of object leaves a
characteristic trace in that signal, its micro-Doppler signature.&lt;/p&gt;
&lt;p&gt;At the start I set myself three goals, thinking of a real radar and not of a lab
experiment:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;at least 80 % accuracy in each class;&lt;/li&gt;
&lt;li&gt;classifying a signal window in 100 ms or less, to be able to handle several objects at
once;&lt;/li&gt;
&lt;li&gt;a latency of 4 s or less between the moment the object appears and its first
classification.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The next figure summarizes the resulting classification chain. The two highlighted boxes
are the ones this article covers in more detail.&lt;/p&gt;
&lt;figure class=&quot;figura figura-ancha&quot;&gt;&lt;p&gt;&lt;img alt=&quot;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&amp;#39;s class. The detector and the average of the valid windows are highlighted.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2070&quot; height=&quot;858&quot; src=&quot;https://blog.francoalcaraz.com/_astro/pipeline.DuWso_Pi_1MxtKA.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;The classification chain inside the radar.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;real-data-does-not-come-clean&quot;&gt;Real data does not come clean&lt;/h2&gt;
&lt;p&gt;I used the public dataset of the Signal Processing Laboratory of Ben-Gurion University &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-spl&quot; title=&quot;Signal Processing Laboratory, Ben-Gurion University of the Negev. The Database of Radar Echoes from Various Targets&quot; class=&quot;cita&quot; id=&quot;cita-spl&quot;&gt;2&lt;/a&gt;]&lt;/span&gt;,
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).&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;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).&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1670&quot; height=&quot;819&quot; src=&quot;https://blog.francoalcaraz.com/_astro/recordings_per_class.Dqvjd7Hg_4yP2i.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Recordings and windows per class.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Spectrogram with the car&amp;#39;s line at the bottom and many horizontal interference bands across the whole range.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1670&quot; height=&quot;980&quot; src=&quot;https://blog.francoalcaraz.com/_astro/car_slow_full.Din14W5u_1ndOub.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;A car recording with the full frequency range: almost everything visible is interference.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h2 id=&quot;detecting-the-useful-segments&quot;&gt;Detecting the useful segments&lt;/h2&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;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;&lt;/li&gt;
&lt;li&gt;short gaps, of up to 0.5 s, are tolerated within the same segment;&lt;/li&gt;
&lt;li&gt;only segments of at least 3 s are accepted.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;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.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1870&quot; height=&quot;1180&quot; src=&quot;https://blog.francoalcaraz.com/_astro/segment_detection.nQhcxtET_1Ipwc7.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;The detector on a recording of a person walking in a zig-zag.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;This detector shows up again later, in operation (inference).&lt;/p&gt;
&lt;h2 id=&quot;from-segments-to-images&quot;&gt;From segments to images&lt;/h2&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;figure class=&quot;figura figura-ancha&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Six 128 by 128 pixel grayscale images, one per class: one person, two people, animal, car, tracked vehicle and noise.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;2070&quot; height=&quot;594&quot; src=&quot;https://blog.francoalcaraz.com/_astro/input_images.BhX2YQR5_Z2t93w0.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;One input image per class.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h2 id=&quot;training-without-fooling-ourselves&quot;&gt;Training without fooling ourselves&lt;/h2&gt;
&lt;p&gt;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 &lt;a href=&quot;https://blog.francoalcaraz.com/en/split-by-recordings/&quot;&gt;third article of the series&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;aside class=&quot;recuadro&quot; data-tipo=&quot;nota&quot;&gt;&lt;p class=&quot;recuadro-titulo&quot;&gt;A note on the thesis figures&lt;/p&gt;&lt;p&gt;In the thesis I split the data into only two partitions, training and test. The test partition was also used to decide when to stop training and which weights to keep, so in practice it played the role of a validation set. The figures below come from that partition: they are representative, but somewhat optimistic. In the &lt;a href=&quot;https://blog.francoalcaraz.com/en/split-by-recordings/&quot;&gt;third article&lt;/a&gt; I repeated the training with a stricter protocol, without making any decision based on test and also measuring on recordings the model never saw. Without data augmentation, the per-window result was close to 87 %, in the same range as the thesis.&lt;/p&gt;&lt;/aside&gt;
&lt;h2 id=&quot;a-small-model-is-enough&quot;&gt;A small model is enough&lt;/h2&gt;
&lt;p&gt;The model that worked best, which I called &lt;em&gt;pollito&lt;/em&gt;, is a rather modest convolutional
network:&lt;/p&gt;





















&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Stage&lt;/th&gt;&lt;th&gt;Layers&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Feature extraction&lt;/td&gt;&lt;td&gt;4 convolutions (32, 64, 128 and 128 filters; kernels of 7, 5, 3 and 3) with &lt;em&gt;max pooling&lt;/em&gt; after each one&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Classification&lt;/td&gt;&lt;td&gt;2 dense layers (1024 and 512 neurons) with &lt;em&gt;dropout&lt;/em&gt;, and the 6-class output&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Total&lt;/td&gt;&lt;td&gt;about 4.1 M parameters&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;For reference, AlexNet, the network that changed image classification in 2012, has about
60 M &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-krizhevsky2012&quot; title=&quot;Krizhevsky et al. (2012). ImageNet classification with deep convolutional neural networks&quot; class=&quot;cita&quot; id=&quot;cita-krizhevsky2012&quot;&gt;3&lt;/a&gt;]&lt;/span&gt;. 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.&lt;/p&gt;
&lt;aside class=&quot;al-margen&quot;&gt;&lt;p&gt;A convolutional layer applies the same filters over the whole image, so a pattern (for example, that of a step) is recognized even if it appears at another moment of the window or at another speed. A network of dense layers, on the other hand, has to learn that pattern separately for each position in the image.&lt;/p&gt;&lt;/aside&gt;
&lt;p&gt;Per window, &lt;em&gt;pollito&lt;/em&gt; 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.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Six-class confusion matrix with the diagonal between 84 % (two people) and 100 % (noise); the largest confusion is two people taken as one (12 %).&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1262&quot; height=&quot;1219&quot; src=&quot;https://blog.francoalcaraz.com/_astro/confusion_windows.gyIRCkiP_Z97ASp.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Per-window confusion matrix.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;in-operation-deciding-what-to-report-at-each-moment&quot;&gt;In operation: deciding what to report at each moment&lt;/h2&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Top, the spectrogram of the recording; bottom, the probability of each class over time: inside the two valid segments &amp;quot;one person&amp;quot; is close to 1, and outside them &amp;quot;animal&amp;quot; is.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1870&quot; height=&quot;1220&quot; src=&quot;https://blog.francoalcaraz.com/_astro/predictions_over_signal.DcrJ-BvG_Z10Vo9R.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Model predictions along the recording.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;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 %.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1789&quot; height=&quot;945&quot; src=&quot;https://blog.francoalcaraz.com/_astro/online_reports.DQcD4zhH_2tetb1.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Class reported at each instant with each strategy.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;h3 id=&quot;and-if-we-look-at-the-whole-recording&quot;&gt;And if we look at the whole recording&lt;/h3&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Accuracy per window, 89.7 %, and per recording averaging its windows, 94.0 %.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1549&quot; height=&quot;618&quot; src=&quot;https://blog.francoalcaraz.com/_astro/window_vs_recording.B3Vncu79_1FRsrw.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Per-window and per-recording accuracy on test.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;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”.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img alt=&quot;Mean probability of each class in the example recording: with all windows, &amp;quot;animal&amp;quot; reaches 51 % and beats &amp;quot;one person&amp;quot;; with only the valid ones, &amp;quot;one person&amp;quot; rises to 93 % and &amp;quot;animal&amp;quot; stays near 0.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1700&quot; height=&quot;860&quot; src=&quot;https://blog.francoalcaraz.com/_astro/aggregate_decision.DxfcSHVN_1OTTI.webp&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Recording decision using all windows and using only the valid ones.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;can-it-be-deployed-on-a-radar&quot;&gt;Can it be deployed on a radar?&lt;/h2&gt;
&lt;p&gt;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):&lt;/p&gt;

























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Stage&lt;/th&gt;&lt;th align=&quot;right&quot;&gt;Mean time per window&lt;/th&gt;&lt;th align=&quot;right&quot;&gt;Windows per second&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Pre-processing (spectrogram)&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;1.95 ms&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;512&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Inference&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;20.45 ms&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;49&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Total&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;22.4 ms&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;45&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h2 id=&quot;what-is-hard-and-what-comes-next&quot;&gt;What is hard and what comes next&lt;/h2&gt;
&lt;p&gt;Several things remain open:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;The results for tracked vehicles rely on only 9 recordings. More data is needed before
drawing conclusions about that class.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h2 id=&quot;code-and-data&quot;&gt;Code and data&lt;/h2&gt;
&lt;p&gt;The figures in this article were generated with the code and the trained model of the
thesis, without modifying them.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;This article was originally written by me in Spanish and translated into English using the
Claude Opus 5.5 model (Anthropic).&lt;/em&gt;&lt;/p&gt;&lt;section class=&quot;referencias&quot; aria-labelledby=&quot;referencias&quot;&gt;&lt;h2 id=&quot;referencias&quot; class=&quot;referencias-titulo&quot;&gt;References&lt;/h2&gt;&lt;ol&gt;&lt;li id=&quot;ref-alcaraz2026&quot; value=&quot;1&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[1]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Alcaraz, F. A. (2026). &lt;i&gt;Classification of Doppler Signals from Radar Echoes Using Deep Learning&lt;/i&gt;. Master&apos;s thesis in Engineering, revised English edition, Instituto Balseiro, Universidad Nacional de Cuyo. &lt;a href=&quot;https://doi.org/10.5281/zenodo.23227057&quot;&gt;https://doi.org/10.5281/zenodo.23227057&lt;/a&gt; &lt;a href=&quot;#cita-alcaraz2026&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 1&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-spl&quot; value=&quot;2&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[2]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Signal Processing Laboratory, Ben-Gurion University of the Negev (n.d.). &lt;i&gt;The Database of Radar Echoes from Various Targets&lt;/i&gt;. &lt;a href=&quot;http://www.ee.bgu.ac.il/~spl/&quot;&gt;http://www.ee.bgu.ac.il/~spl/&lt;/a&gt; &lt;a href=&quot;#cita-spl&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 2&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-krizhevsky2012&quot; value=&quot;3&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[3]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Krizhevsky, A., Sutskever, I., &amp;#x26; Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. &lt;i&gt;Advances in Neural Information Processing Systems&lt;/i&gt;&lt;i&gt;, 25&lt;/i&gt;.  &lt;a href=&quot;#cita-krizhevsky2012&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 3&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-alcaraz2020&quot; value=&quot;4&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[4]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Alcaraz, F. A. (2020). &lt;i&gt;Clasificación de Señales Doppler de Ecos Radar usando Deep Learning&lt;/i&gt;. Master&apos;s thesis in Engineering (original Spanish version), Instituto Balseiro, Universidad Nacional de Cuyo. &lt;a href=&quot;https://doi.org/10.5281/zenodo.23226363&quot;&gt;https://doi.org/10.5281/zenodo.23226363&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-bilik2008&quot; value=&quot;5&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[5]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Bilik, I., &amp;#x26; Tabrikian, J. (2008). Knowledge-based radar target classification. &lt;i&gt;Knowledge-Based Radar Detection, Tracking and Classification (F. Gini and M. Rangaswamy, eds.), ch. 9&lt;/i&gt;, 197–224. Wiley. &lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-chen2019&quot; value=&quot;6&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[6]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Chen, V. C. (2019). &lt;i&gt;The Micro-Doppler Effect in Radar&lt;/i&gt; (2nd ed.). Artech House. &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;</content:encoded><category>Article</category><category>machine-learning</category><category>signal-processing</category></item></channel></rss>