How often to look.
+ The questionHow often must a changing signal be measured, and what goes wrong when it is measured too slowly?
A wobble with no heart in it
Mains hum completes 50 cycles a second, and a converter reads it 49 times a second, a rate assumed for the arithmetic and not the rate of any monitor. The readings then rise and fall once a second, the pace of a heart beating 60 times a minute, although no heart produced them. Between two readings a forty-ninth of a second passes, and in that time the hum completes one full cycle and a forty-ninth of the next. Each reading therefore catches the hum a forty-ninth of a cycle later in its swing than the reading before. After 49 readings the lag adds up to a whole cycle, so the readings trace one slow rise and fall each second.
The false wobble falls where the monitor's firmware looks for the oscillations of Chapter 4, the small rises and falls that each heartbeat adds to the cuff pressure. The oscillations lie at low frequencies: about 1 Hz in Chua and Siew's 2005 meter for Freescale, a chip maker (Chapter 6). A filter in a 2001 patent by Colin, a monitor maker, passes the oscillations in a band of, for example, 1 to 10 Hz, the oscillation band. A wobble at 1 Hz from the hum lies inside this band, and nothing in the readings tells it apart from an oscillation. This distortion is aliasing: a frequency too fast for the readings appears in them as a slower one, its alias. Aliasing is generally not recoverable, as Unser of EPFL, the Swiss federal institute of technology in Lausanne, states in a 2000 review of fifty years of sampling theory, so once the readings hold the false wobble, the firmware in general cannot remove it.
The wobble's arithmetic assumes a converter whose every reading records the input at one instant. A sample-and-hold circuit takes such readings: it follows the input, then disconnects a small capacitor from it and holds that capacitor's voltage while the converter works. The moment of disconnection fixes the instant that the reading records, and the speed of that disconnection is the circuit's most essential dynamic property, by the account of Analog Devices, a maker of converters. A converter that instead averages the input over each conversion records no single instant. For such a converter the same arithmetic still gives where the hum lands, but the converter's own averaging decides how much of the hum remains.
Twice the highest frequency
The number of readings that a converter takes each second is its sampling rate, and a converter avoids aliasing only if this rate is at least twice the highest frequency in its signal, as Analog Devices states for engineers. The rule rests on the sampling theorem, which Shannon showed in a paper of 1949 and Unser quotes: a signal containing no frequencies above a stated limit is completely determined by readings spaced one over twice that limit apart. For a limit of 10 Hz, the readings fall a twentieth of a second apart. Twice the highest frequency in the signal is the Nyquist rate, the lowest sampling rate the theorem allows.
In this rule the signal is everything that reaches the converter, not only the part the designer wants. The oscillations of the published designs lie below about 10 Hz, so they alone would need twice 10, or 20 readings a second. Hum from the mains at 50 or 60 Hz also reaches the converter unless something removes it first (Chapter 5), and with the hum included the theorem requires twice 60, or at least 120 readings a second. A converter that reads more slowly does not lose the hum but moves it to another frequency.
Where the hum moves can be predicted from a rule that holds for any tone, a signal at a single frequency. A tone read at a given sampling rate has images at every whole multiple of the sampling rate, plus or minus the tone's own frequency, and the readings cannot tell the tone apart from its images, as Analog Devices states. Readings can represent frequencies only up to half the sampling rate, the theorem's limit, so by this image rule a tone above half the sampling rate always has an image below half that rate, where the readings show it as an alias. At 49 readings a second, the 50 Hz hum has an image at 50 − 49 = 1 Hz, inside the oscillation band.
The published designs read fast enough to keep the hum's alias out of the oscillation band. A monitor that Lopez of Freescale describes in a 2012 application note takes one sample every 10 ms, which is 100 readings a second, so half its rate is 50 Hz. Hum at 50 Hz then appears at 100 − 50 = 50 Hz and hum at 60 Hz at 100 − 60 = 40 Hz, both far above the oscillation band. Oh and colleagues at Hanyang University in Seoul built a prototype monitor, reported in 2008, that read its sensor 75 times a second, which places the hum at 75 − 50 = 25 Hz or 75 − 60 = 15 Hz, again outside the band. A filter in the firmware can remove an alias at 25 Hz, because that alias, unlike the 1 Hz alias at 49 readings a second, does not share a frequency with the oscillations.
A filter before the converter
Designers keep a fast tone from aliasing by weakening it before the converter reads it, with a low-pass filter, which passes frequencies below its corner frequency and weakens those above it (Chapter 6). Placed ahead of the converter for this purpose, the filter is an anti-alias filter. Filtering before sampling is the standard practice, as Unser notes, and an anti-alias filter is used in almost all applications of sampling converters, the kind that read the input at single instants, as Analog Devices states.
The simplest low-pass filter, built from one resistor and one capacitor, weakens frequencies above its corner frequency gradually rather than removing them, so it lets part of the hum through. Lopez's design places such a filter, with its corner frequency at 10 Hz, ahead of the buffer amplifier, the stage that isolates the sensor from the circuit after it. Lopez does not call it an anti-alias filter, but it does that work in part, and the design's 100 readings a second place the hum that passes it at 50 Hz, outside the oscillation band.
Oh and colleagues used a converter of the averaging kind, and no analog filter at all. They digitized their sensor's output with TI's ADS1222, a 24-bit converter. The ADS1222 is a sigma-delta converter, which takes no instantaneous samples: it averages the input over each conversion through a digital filter of its own (Chapter 8). Such a converter internally reads far faster than the signal needs, so by Analog Devices' account a simpler analog anti-alias filter is enough ahead of it. Oh and colleagues wrote that an analog filter between the sensor and the converter was not necessary, but they did not say how their converter's own filter treated the hum.
The filter inside such a converter can remove almost all of the hum when the designer sets the converter's output rate to suit the mains. Analog Devices makes the AD7190, a sigma-delta converter, for weigh scales. At an output rate of 50 readings a second, its filter places deep notches, frequencies that it blocks almost completely, at 50 Hz and at every multiple of 50 Hz, and the converter then rejects 50 Hz hum by at least 96 dB, by Analog Devices' figure. At 20 dB for each tenfold step of amplitude (Chapter 5), 96 dB is 96 ÷ 20 = 4.8 tenfold steps, so the hum shrinks by a factor of about 63,000 before it can alias. A notch helps only when it sits on the mains frequency.
A digital filter works on the readings, and once the hum's alias sits at 1 Hz it shares the band with the oscillations, so any filter that removes the alias removes the oscillations with it. Only a filter ahead of the converter, an averaging converter whose filter blocks the mains frequency, or a sampling rate that places the alias outside the band keeps the alias out. A maker whose design file lists only digital filters has therefore not shown that the monitor's readings are free of aliases.
A converter that reads a slow signal can let the timing of its readings vary far more than one that reads a fast signal. Aperture jitter is the variation, from one sample to the next, in the instant the sample-and-hold's switch opens, by Analog Devices' definition. The error that jitter causes grows with the signal's frequency and the jitter multiplied together, by Analog Devices' formula. In its example, a converter that reads a signal of 100 MHz, or 100 million cycles a second, to the quality of a 14-bit converter needs jitter below 0.1 ps, where a picosecond, written ps, is a millionth of a millionth of a second. The monitor's oscillation band lies below 10 Hz, and 100 MHz divided by 10 Hz is about ten million. At the same quality, a converter reading the oscillation band could therefore let its timing vary about ten million times as much, 0.1 ps times ten million, or about a microsecond. The timing of each reading is not where the monitor's error enters.
Once a beat
The monitor samples its signal a second time, far more slowly than its converter does. The algorithm of Chapter 9 needs the size of each oscillation and the cuff pressure at which it occurred. Plotted against the falling cuff pressure, the sizes of the oscillations trace their envelope, which rises to a peak and falls again. Each heartbeat produces one oscillation, so however fast the converter reads, the firmware receives one point on the envelope per beat. The heart, not the converter, sets this second sampling rate.
The deflation of the cuff sets how far the pressure falls between points, and the published rates lie at 2 to 3 mmHg a second, the rate in Colin's patent. Microlife, another monitor maker, states a deflation of 3 mmHg a second for its WatchBP Office monitor in manual mode, and it recommends 2 to 3 mmHg a second for auscultation, listening to the artery with a stethoscope. India regulates automated blood-pressure monitors under their formal name, automated sphygmomanometers, and its rule for them sets 0.3 to 0.4 kPa a second, or 2.25 to 3.0 mmHg at 133.322 Pa to the millimeter of mercury, for devices used for auscultation (Chapter 30). For a device in which the pulse controls the deflation, letting the pressure fall one step at each pulse, the rule sets 0.3 to 0.4 kPa for each pulse.
A monitor's two rates answer different questions, so they must be read together. The converter's rate decides whether the hum aliases into the oscillation band, and the deflation rate, with the heart rate, decides how finely the envelope is known. Lopez gives a sampling period without a deflation rate, and Colin and Microlife give deflation rates without a sampling rate, so a designer who copies any one of them still has to choose the other rate.
The pressure step between two points is the deflation rate multiplied by the time between two beats, so it depends on the patient's heart, which the monitor does not control. At 80 beats a minute the beats fall 60 ÷ 80 = 0.75 s apart, so at 3 mmHg a second the cuff falls 3 × 0.75 = 2.25 mmHg between them. Celler and colleagues at the University of New South Wales in Sydney set their simulator to that heart rate in a 2018 study funded by the Australian Research Council. They tested six automated monitors on the simulator, analyzed 304 recordings from 102 patients, and made their reference recordings at a deflation of 2 to 3 mmHg a second. A&D, another monitor maker, specifies its UA-651 for pulse rates from 40 to 180 a minute. Those rates place the beats 1.5 s and a third of a second apart, which at 3 mmHg a second leaves 4.5 and 1.0 mmHg between points.
These steps limit the estimate, the systolic and diastolic pressures that the algorithm of Chapter 9 derives, and not the cuff-pressure reading. The peak of the envelope usually falls between two points, so the firmware locates the peak, and every pressure it derives from it, only as finely as the steps allow. Chapter 11 works out the reading's uncertainty, and a clinical study on patients tests the estimate (Chapter 24).
The cuff deflates linearly from 200 to 30 mmHg, as in a 2017 study by Gui and colleagues at the Southern University of Science and Technology in Shenzhen. They recorded the cuff pressure with its oscillations six times from each of 20 healthy subjects, to extract the subjects' breathing rate.
- The deflation covers 200 − 30 = 170 mmHg.
- At 2 mmHg a second it lasts 170 ÷ 2 = 85 s; at 3 mmHg a second, 170 ÷ 3 = about 57 s.
- At 80 beats a minute, 85 s hold 85 × 80 ÷ 60 = about 113 beats, and 57 s about 76.
- One point per beat gives the envelope 76 to 113 points, with the beats 0.75 s apart: 2 × 0.75 = 1.5 mmHg and 3 × 0.75 = 2.25 mmHg between points.
- Oh and colleagues deflated in steps of 5 mmHg, one beat per step; over the same 170 mmHg that gives 170 ÷ 5 = 34 points.
- Lopez's 100 readings a second would take 100 × 85 = 8,500 readings over the 85 s deflation, and 100 × 0.75 = 75 of them within each beat.
The converter reads the cuff pressure thousands of times, but the algorithm sees the envelope only 34 to 113 times. The valve and the heart set how finely the envelope is known, and a faster converter does not improve it.
- List every frequency that can reach the converter: the oscillation band, the mains at 50 or 60 Hz, and the interference of the pump and the valve (Chapter 5).
- Work out where each appears at the chosen rate with the image rule, and keep every alias out of the oscillation band.
- Place a low-pass filter ahead of a sampling converter, or use an averaging converter, such as a sigma-delta converter, with notches at the mains frequency, and record which of the two the design relies on.
- State the deflation rate or step beside the sampling rate in the design file, because the sampling rate decides whether the hum aliases, and the deflation, with the heart rate, sets how many points the algorithm receives.
- Test at the lowest pulse rate in the monitor's labeled range, where the points on the envelope lie farthest apart.
- A signal read too slowly reappears as a false slower one: mains hum at 50 Hz read 49 times a second becomes a 1 Hz wobble inside the oscillation band, and no later filter can separate the two.
- The sampling theorem asks for readings at least twice as fast as the highest frequency that reaches the converter, hum included, and the image rule gives where each faster tone appears.
- A low-pass filter ahead of the converter, a sampling rate that places aliases outside the oscillation band, or an averaging converter, such as a sigma-delta converter, with notches at the mains frequency keeps the hum out of the band.
- The algorithm samples a second time, once a heartbeat, so the deflation rate and the heart rate, not the converter, decide how finely the envelope is known: 1.0 to 4.5 mmHg between points at 3 mmHg a second.
Let's Talk