Home / Hardware y Moviles / Two lights cross your finger and one subtraction tells how much oxygen you carry

Two lights cross your finger and one subtraction tells how much oxygen you carry

You clip it onto your finger, wait a few seconds and a number appears: 97 %. We have all seen it in an emergency room, at a clinic or on the living-room table during the pandemic. The device is the size of a walnut and costs less than dinner, yet inside it something rather elegant in optical physics is going on. And it is worth knowing: a pulse oximeter does not measure oxygen. It measures how much light passes through your finger and, from that, infers how much haemoglobin is carrying a load.

Two colours the blood treats differently

Haemoglobin is the protein that carries oxygen in red blood cells. When it is oxygenated (HbO2) and when it is not (reduced Hb), it does not absorb light the same way. In the red part of the spectrum, around 660 nanometres, oxygenated haemoglobin absorbs considerably less than deoxygenated haemoglobin; that is why arterial blood is bright red and venous blood is darker. In the near infrared, around 940 nm, the relationship flips: oxygenated haemoglobin absorbs slightly more.

That difference is the raw material of the invention. Illuminate the finger with two wavelengths and compare how much light comes out the other side in each, and you have two equations with one useful unknown. The technique is called pulse oximetry, and Takuo Aoyagi and his colleagues in Japan described it in the mid-1970s, with the first commercial device in 1981.

The rig: two LEDs, a photodiode and an amplifier

The sensor is surprisingly simple. On one side of the clip sit two light-emitting diodes: one red, one infrared. On the opposite side, a silicon photodiode turns the received light into a tiny electric current, on the order of nanoamps. Between them, your finger: skin, fat, bone, veins and arteries.

The LEDs do not shine at the same time. The microcontroller switches them on in turn, in a sequence that repeats hundreds of times per second: red on, infrared off; then the reverse; then both off. That third, dark interval is the key: it measures the ambient light leaking in from the sides so it can be subtracted. The switching is fast enough that the eye only sees a faint reddish flicker.

The photodiode current passes through a transimpedance amplifier that turns it into a voltage, and an analogue-to-digital converter samples it. Everything that follows is arithmetic on those samples.

Beer-Lambert’s law and the problem of flesh

The absorbance of a medium follows the Beer-Lambert law: A = ε·c·L, where ε is the extinction coefficient of the compound, c its concentration and L the distance the light travels. In a lab, L is controlled. In a finger, it is not: every person has a different thickness, different fat, different bone. If the device depended on L, it would work for nobody.

Here is the trick that makes pulse oximetry work. The light reaching the photodiode has two components. One is continuous and huge: it crosses skin, bone, tissue and venous blood, whose volume does not change. The other is small and pulsatile: with every heartbeat the artery expands and its diameter varies. That variation changes how much blood — and therefore how much haemoglobin — sits in the optical path, and with it the absorption.

Split the signal into its continuous part (DC) and its alternating part (AC), and the alternating part contains information only from the arterial blood that pulses. And since the change in thickness is the same for both wavelengths, the L term cancels out when you divide.

The ratio of ratios

The device then computes the so-called ratio of ratios:

R = (ACred / DCred) / (ACinfrared / DCinfrared)

The numerator measures how much the red signal pulsates relative to its baseline; the denominator does the same for the infrared. Dividing cancels out both the LED intensity and the thickness of the finger and the fixed attenuation of tissue. What remains is a dimensionless number that depends almost exclusively on the mix of oxygenated and deoxygenated haemoglobin.

The awkward part: the relationship between R and true saturation does not come cleanly out of physics, because light scatters through tissue rather than travelling in a straight line, and the haemoglobin sits inside moving cells. So manufacturers use an empirical calibration curve, obtained by measuring healthy volunteers while their saturation is lowered in a controlled way and comparing it with arterial blood samples. A classic approximation is SpO2 ≈ 110 − 25·R, valid in the 70–100 % range; each model carries its own polynomial and its own margin of error, typically ±2 points between 90 and 100 %.

The practical consequence: below 70 % the device is no longer calibrated against anything, and the curves are extrapolations. In a seriously ill patient, the number is a hint, not a truth.

The waveform almost nobody looks at

The raw signal is called photoplethysmography (PPG) and it is, in effect, a small optical electrocardiogram. Each peak corresponds to a heartbeat, and its shape carries information: the dicrotic notch reveals the pressure wave returning from the arterial tree, and beat-to-beat variability is what watches and rings now use to estimate stress, sleep or arrhythmias.

Good devices also show the perfusion index (PI), the AC/DC ratio as a percentage. A low PI — cold fingers, poor circulation, a loose sensor — is the first sign that the number on screen may be garbage. And there is a signal-quality indicator that many models hide in a menu.

When it lies

Pulse oximeter errors are not random; they have concrete causes:

  • Ambient light that is very bright, especially flickering fluorescent or LED light, if the algorithm does not subtract the dark phase properly.
  • Motion: tremor generates AC components that are not arterial and wreck the ratio. It is the number one cause of false alarms in emergency departments.
  • Poor perfusion: hypotension, cold, vasoconstriction, or a blood-pressure cuff inflated on the same arm.
  • Dark nail polish or acrylic nails, which attenuate red light more than infrared and shift the ratio.
  • Pulsatile venous light: in right heart failure the vein pulses too and contaminates the AC signal.
  • Carbon monoxide poisoning: carboxyhaemoglobin absorbs similarly to oxygenated haemoglobin at both wavelengths, so the device may read 98 % in someone who is suffocating. Methaemoglobin, for its part, tends to freeze the reading around 85 %.

That is why pulse oximetry measures oxygenation, not ventilation: someone can have perfect saturation while accumulating CO2 from hypoventilation. That is what capnography is for, measuring exhaled gas.

From the clip to the watch

The classic design is transmissive: light crosses the finger and the sensor sits opposite. Watches and rings use the reflective mode, with LED and photodiode on the same face: they measure the light that bounces back through the tissue. The physics is the same, but the signal is weaker and wrist motion far greater, so the hard work lies in adaptive filtering and in rejecting bad stretches instead of inventing a value.

When the system works, the whole process — switching LEDs, reading the photodiode, separating DC and AC, computing R, applying the curve, estimating confidence — happens in a few milliseconds inside a chip that draws less power than a toy LED. And the result is a number you read on a screen which, most of the time, comes quite close to what a blood test would say. Quite close, not exactly: that is why doctors call it a trend, and keep looking at the patient.