Open Access
23 November 2023 Self-calibrated pulse oximetry algorithm based on photon pathlength change and the application in human freedivers
Jingyi Wu, J. Chris McKnight, Eva-Maria S. Bønnelycke, Gerardo Bosco, Tommaso Antonio Giacon, Jana M. Kainerstorfer
Author Affiliations +
Abstract

Significance

Pulse oximetry estimates the arterial oxygen saturation of hemoglobin (SaO2) based on relative changes in light intensity at the cardiac frequency. Commercial pulse oximeters require empirical calibration on healthy volunteers, resulting in limited accuracy at low oxygen levels. An accurate, self-calibrated method for estimating SaO2 is needed to improve patient monitoring and diagnosis.

Aim

Given the challenges of calibration at low SaO2 levels, we pursued the creation of a self-calibrated algorithm that can effectively estimate SaO2 across its full range. Our primary objective was to design and validate our calibration-free method using data collected from human subjects.

Approach

We developed an algorithm based on diffuse optical spectroscopy measurements of cardiac pulses and the modified Beer–Lambert law (mBLL). Recognizing that the photon mean pathlength ( ⟨ L ⟩ ) varies with SaO2 related absorption changes, our algorithm aligns/fits the normalized ⟨ L ⟩ (across wavelengths) obtained from optical measurements with its analytical representation. We tested the algorithm with human freedivers performing breath-hold dives. A continuous-wave near-infrared spectroscopy probe was attached to their foreheads, and an arterial cannula was inserted in the radial artery to collect arterial blood samples at different stages of the dive. These samples provided ground-truth SaO2 via a blood gas analyzer, enabling us to evaluate the accuracy of SaO2 estimation derived from the NIRS measurement using our self-calibrated algorithm.

Results

The self-calibrated algorithm significantly outperformed the conventional method (mBLL with a constant ⟨ L ⟩ ratio) for SaO2 estimation through the diving period. Analyzing 23 ground-truth SaO2 data points ranging from 41% to 100%, the average absolute difference between the estimated SaO2 and the ground truth SaO2 is 4.23 % ± 5.16 % for our algorithm, significantly lower than the 11.25 % ± 13.74 % observed with the conventional approach.

Conclusions

By factoring in the variations in the spectral shape of ⟨ L ⟩ relative to SaO2, our self-calibrated algorithm enables accurate SaO2 estimation, even in subjects with low SaO2 levels.

1.

Introduction

Oxygen level in the arterial blood (SaO2), namely the percentage of oxygen-bound hemoglobin out of the total hemoglobin, is one of the most important health indicators in patient care. Its precise measurement requires an arterial blood draw to be processed by a blood gas analyzer but in clinics or home settings, it is often estimated noninvasively with a finger pulse oximeter, which is denoted by SpO2 (“p” indicates pulse oximetry).1 The underlying principle behind pulse oximetry is diffuse optical spectroscopy—by shining light at two wavelengths (usually red and infrared) into the finger and detecting the intensity changes from the heart pulsation, SpO2 can be calculated by utilizing the fact that light at different wavelengths is absorbed differently based on the amount of oxygen-bound hemoglobin.2

Analytically, SpO2 can be calculated by the modified Beer–Lambert Law (mBLL), which relates the absorption of light by the tissue to changes in hemoglobin concentration and the pathlength traveled by the light. In this method, conventionally, the mean pathlength (L) or the L ratio between two wavelengths is also assumed to be constant.3 Although L should not be constant, because analytically it is a function of the absorption (μa) and reduced scattering (μs) coefficient of tissue,3,4 for finger pulse oximeters, this is accounted for by empirical calibration and assumption that the pathlength does not change over small changes in saturation level. During the calibration process, healthy adult volunteers inhale air with lower oxygen content to decrease their SaO2. Calibration factors derived from the measured signals are then used to correlate with each SaO2 level.2,4

One drawback of the empirical calibration process is that SaO2 of the healthy volunteers can only be lowered to around 80%, because a lower value could be harmful to the subjects. As a result, obtaining calibration factors for SaO2<80% in humans is particularly challenging. Thus the accuracy of the finger pulse oximeters is high at high SaO2, but it decreases significantly as SaO2 decreases.2,4,5

Low SaO2 levels can be found in the various situations, such as acute respiratory distress syndrome,6 chronic obstructive pulmonary disease,7 asthma,8 COVID-19 infections,9,10 fetuses during delivery,11,12 marine mammals,13 or human freedivers during prolonged apnea.14 In these subjects, accurate measurement for SaO2<80% is important and could guide vital therapeutic decisions. To provide a potential solution to this problem and aim to improve the patient or study outcomes, we developed a self-calibrated algorithm that can estimate SaO2 at all saturation levels, which in its core, does not assume constant μa or constant L across SaO2 levels.

We examined the application of this algorithm on breath-holding human freedivers, whose SaO2 dropped to as low as 41% during dives to a depth of 42 m in a protocol similar to what was reported by Bosco et al.15 By comparing the SpO2 calculated by our algorithm and the conventional method (mBLL with constant L ratio) to the ground truth SaO2 from blood gas measurements, we found that the accuracies are comparable at high SaO2 levels, but our algorithm significantly outperformed the conventional method at low SaO2 levels. These findings demonstrated the potential of our self-calibrated algorithm in accurately estimating SaO2 levels across a wide range of conditions, particularly in situations where conventional method yields inaccurate result or empirical calibration is not applicable.

2.

Method

2.1.

Theoretical Frameworks: Self-Calibrated Method for SpO2 Calculation

In this section, we outline the formulation of our self-calibrated algorithm designed for SpO2 calculation. The central premise is that L is a function of μa and μs, and given that μa depends on the saturation level, L also varies accordingly.

In the following discussion, we use the term “L ratio” to denote the ratio Lλn/Lλ1, where λn represents NIRS measurements at the n’th (n=1,2,3,) wavelength. Thus when multiple wavelengths (at least two) are used, the L ratio describes a spectral shape across these wavelengths with the value at the first wavelength being 1. In contrast to common notation in pulse oximetry, where red and infrared wavelengths are typically used and L ratio is usually represented by Linfrared/Lred, which is a singular value.

Building on this foundation, if we obtain a measured L ratio from experiment that is SpO2 dependent, and we also have its analytical representation that depends on SpO2, it becomes feasible to align or fit the analytical L ratio with the measured version to deduce SpO2. Our self-calibrated algorithm thus consists of three main components: (1) constructing a measured L ratio from the continuous-wave near-infrared spectroscopy (CW-NIRS) measurement using mBLL, (2) constructing an analytical L ratio derived from the analytical equation of L, and (3) determining the SpO2 value that best matches the measured and analytical L ratios.

2.1.1.

Constructing the measured L ratio

The arterial oxygen saturation, SaO2, is defined as SaO2=[HbO]/([HbO]+[Hb]), where [HbO] and [Hb] are the concentrations of oxy- and deoxy-hemoglobin, respectively, in the arterial blood. If we assume that the measured light intensity is solely modulated by the artery blood volume variations during the cardiac cycle, leading to changes in [HbO] and [Hb] at the heartrate (HR) frequency, then the change in optical density (ΔOD) can be defined by the mBLL:3

Eq. (1)

ΔODλ=ln(IdλIsλ)=LλΔμaλ=Lλ(Δ[HbO]εHbOλ+Δ[Hb]εHbλ),
where Id and Is are the intensities measured at the diastolic and systolic states of the cardiac cycle, respectively; Δμa is the change in the absorption coefficient; and ε is the extinction coefficient.

SpO2 can be calculated by SpO2=Δ[HbO]/(Δ[HbO]+Δ[Hb]), substituting this into Eq. (1) and with measurements at multiple wavelengths (λn, n=1,2,3,), Eq. (1) can be rearranged as

Eq. (2)

Lλn=ΔODλn{Δ[HbO][εHbOλn+(SpO211)εHbλn]}1.

Then the measured L ratio, denoted by L^measuredλ, is defined as

Eq. (3)

L^measuredλ(SpO2)=LλnLλ1=ΔODλnΔODλ1εHbOλ1+(SpO211)εHbλ1εHbOλn+(SpO211)εHbλn.

From Eq. (3), we can see that the ratio ΔODλn/ΔODλ1 from measurement inherently possesses a spectral shape across wavelengths. However, varying SpO2 values in the equation can alter this shape, leading to changes in L^measuredλ in relation to SpO2.

2.1.2.

Constructing the analytical L ratio

The analytical equation of L in semi-infinite medium for a reflectance measurement is16

Eq. (4)

LanalyticalλDPFseminfλ·r=3μsλ2μaλr3μaλμsλr3μaλμsλ+1·r=32r2μsλr3μaλμsλ+1,
where DPFseminf is the differential pathlength factor in semi-infinite medium, and r is the source–detector distance.

In Eq. (4), μaλ can be substituted by μaλ=[HbO]εHbOλ+[Hb]εHbλ=[HbO][εHbOλ+(SpO211)εHbλ], making Lanalyticalλ a function of SpO2. With that, the analytical L ratio, L^analyticalλ, is defined as

Eq. (5)

L^analyticalλ(SpO2)=Lanalyticalλn(μaλ(SpO2))Lanalyticalλ1(μaλ(SpO2)).

Similar to L^measuredλ from Eq. (3), the spectral shape of L^analyticalλ will also change in relation to SpO2.

2.1.3.

SpO2 determination by aligning the measured and analytical L ratios

With L^measuredλ and L^analyticalλ defined in Eqs. (3) and (5), respectively, our objective is to find the SpO2 value that will best align the spectral shapes of these two ratios. To achieve this, we quantify the similarity between L^measuredλ and L^analyticalλ using the residual sum of squares (RSS) error (RSS=Σλ[L^measuredλL^analyticalλ]2) for the full range of SpO2 (0% to 100%). The SpO2 value yielding the minimum RSS provides our best estimate for true arterial oxygen saturation (SaO2). Here we chose an iterative approach rather than a direct fitting approach for demonstration purpose, but computational efficiency can be improved if needed.

To illustrate the implementation of the self-calibrated algorithm, we provide a flowchart in Fig. 1. In this example, we assume the ground truth SaO2 to be 60%. As indicated in the rightmost box, an accurate estimation of SaO2 (with SpO2=60%) results in spectral shapes of the measured and analytical L ratios that closely resemble each other. It is important to note that this is only a visual representation—the actual values of L ratios and their shapes across wavelengths will vary based on the specific experiment.

Fig. 1

Flowchart of the self-calibrated pulse oximetry algorithm.

JBO_28_11_115002_f001.png

2.2.

Algorithm Validation with Monte-Carlo Simulation

To validate the self-calibrated algorithm, we used Monte-Carlo photon simulation (MCX Lab)17 to generate synthetic data. To simulate cardiac pulsations, simulations at systolic and diastolic μa were performed. We modeled a semi-infinite homogenous media with SaO2 at 20%, 40%, 60%, 80%, and 100% at eight wavelengths (740, 760, 780, 800, 820, 840, 860 and 880 nm). A 2% change from baseline total hemoglobin concentration ([HbT], assumed to be 50  μM) due to pulsation was assumed. Reduced scattering μs was assumed to be constant across SpO2 levels and pulsation. In cm1, μs was calculated using μs=a·λb, where λ is in nm, and a=260.7 and b=0.4668 were obtained from the literature for human subdermal tissue.12,18 For example, at 800 nm and SaO2=100%, μs=11.51  cm1 and μa=0.0930 and 0.0949  cm1 at diastolic and systolic states, respectively. The dimensions of the modeled media were set to be 350, 350, and 200 mm for its width, length, and height, respectively. A simulated isotropic source with a photon count of 5×108 was placed at the center of the modeled tissue surface, and intensities emitted from the surface (as a reflectance measurement) at a source–detector distance of 3 cm were recorded. The simulated intensities at the systolic (Id) and diastolic (Is) states were then converted to ΔOD by ln(Id/Is).

Using the simulated ΔOD, we first calculated SpO2 using the conventional method:11

Eq. (6)

SpO2=εHbOλ2R(Lλ2/Lλ1)εHbλ1(εHbOλ1εHbλ1)R(Lλ2/Lλ1)(εHbOλ2εHbλ2),
where R=ΔODλ1/ΔODλ2, and the L ratio Lλ2/Lλ1 is assumed to be constant across SpO2 levels and subjects. Here the constant L ratio was taken from the literature, which suggests that the differential pathlength factor (DPF=L/r) is a function of age and wavelength19: DPF=223.3+0.05624·age5.723·107·λ3+0.001245·λ20.9025·λ. Given an age of 30, λ1=760  nm, λ2=840  nm, r=3  cm, and L=DPF·r, we calculated L840  nm/L760  nm=0.87. In addition, to demonstrate how different assumptions of this constant L ratio values could influence of SpO2 calculations, we considered a second ratio of 0.61. We then applied the self-calibrated algorithm to the same data, comparing its results with those of the conventional method.

2.3.

SpO2 Extraction Using Two Versus Eight Wavelengths in the Presence of Noise in ΔOD

As described in Sec. 2.2, we simulated ΔOD over eight wavelengths, all of which were incorporated into the self-calibrated algorithm. In the human freediving experiment (detailed in the next section), however, data were only available for two wavelengths—760 and 840 nm. Recognizing that real experiments introduce noise into the ΔOD, we aimed to assess the impact of noise on SpO2 extraction when using two versus eight wavelengths with the self-calibrated algorithm.

To examine this, we began with the noise-free simulated ΔOD at r=3  cm and introduced Gaussian white noise [with standard deviation (STD) of 0.002] to ΔOD values at each wavelength (740, 760, 780, 800, 840, 860, and 880 nm). We then input the noisy ΔOD either at all eight wavelengths or just the two (760 and 840 nm) to the self-calibrated algorithm to derive the SpO2. This entire procedure was repeated 100 times, each with a unique Gaussian white noise introduced at every wavelength. Subsequently, we calculated the mean and STD of the extracted SpO2 values for comparison.

2.4.

Data Collection from Human Freediving Experiment

To evaluate the algorithm on human data, we analyzed measurements from breath-hold divers. The study’s experimental protocol received approval from the University of Padua’s Department of Biomedical Science Human Ethical Committee and followed the guidelines established by the declaration of Helsinki. Prior to their participation in the study, all subjects provided their written informed consent.

The freediving experiment was conducted in the 42 m deep indoor thermal pool “Y-40 THE DEEP JOY” in, Padua, Montegrotto, Italy. For each experimental trial, the participant diver completed a 15 m deep breath-hold dive and then recovered at the surface before completing a 42 m deep breath-hold dive. The descent and ascent of all dives were completed with the assistance of a weighted sled, meaning the divers experienced minimal physical exertion. The start, bottom, and end time of each dive was recorded. In this study, nine subjects performed sled-assisted dives. NIRS measurement and blood draws were carried out on these subjects during seven dives of 15 m and nine dives of 42 m.

An arterial cannula was inserted in the radial artery of each diver’s nondominant arm as described by Bosco et al.15 and Paganini et al.20 for underwater blood sample collection at different stages of the dive as shown in Fig. 2: A (15 m start), B (15 m bottom), C (15 m end), D (42 m bottom), and E (42 m end). There was no blood sample collection at the start of the 42 m dives to limit the amount of blood taken from the divers. All the blood samples used for this study were taken while the divers’ heads were submerged under water (i.e., the predescent blood sample for the 15 m dive (point A) was taken right after the divers’ submerged under water and began their breath-hold, and the end-ascent blood samples (points C and E) were taken when the divers’ surfaced and before they took their first breath). The approximate timings for all the blood draws were recorded. A blood gas analyzer that uses CO-Oximetry (Stat Profile Prime Plus, Nova Biomedical Italia S.r.l., Lainate, Italy) was used for obtaining the SaO2 on site.

Fig. 2

Illustration for 15 and 42 m dives and arterial blood extraction time points.

JBO_28_11_115002_f002.png

In addition, CW-NIRS measurements were taken during the dives using a waterproof device, PortaDiver, which was developed from the PortaLite mini (Artinis, Medical System BV, Netherlands).14 The sensor contains three light-emitting diodes (3, 3.5, and 4 cm source–detector distance) with two wavelengths each (760 and 840 nm) and one photodiode with ambient light protection. It operates at a sampling rate of 10 Hz and was placed on the diver’s forehead and secured by a swimming cap.

2.5.

Application of Self-Calibrated Algorithm and Conventional Method on Freediving Data

First, we calculated SpO2 using the conventional method with a constant L ratio of 0.87 derived from the literature (see Sec. 2.2).19 Specifically, we applied the mBLL [Eq. (1)] to the measured OD data at 760 and 840 nm from the CW-NIRS device to obtain time traces of Δ[HbO] and Δ[Hb]. In MATLAB (Mathworks, Inc., Natick, Massachusetts, United States), a third-order zero-phase Butterworth high-pass filter at 1 Hz was applied to the Δ[HbO] and Δ[Hb] time traces. Spectrograms of Δ[HbO] and Δ[Hb] were then generated with a segment length of 10 s and an overlapping percentage of 99%. From these spectrograms, we identified the HR time trace using MATLAB’s “tfridge” function. Finally, SpO2 time traces were calculated by SpO2=Δ[HbO](HR)/(Δ[HbO](HR)+Δ[Hb](HR)), and a 5-s moving average was applied to smooth the time trace.

For the self-calibrated algorithm, we first extracted the ΔOD time trace at the HR with the spectrogram and “tfridge” function. We then input ΔOD at each time point for two wavelengths (760 and 840 nm) into Eq. (3) to calculate the measured L ratio. The same μa (as a function of SpO2) and μs used in Sec. 2.2 were employed to calculate the analytical L ratio. Finally, SpO2 at each time point was derived by minimizing the RSS (Σλ[L^measuredλL^analyticalλ]2) between the measured and analytical L ratio as described in Sec. 2.1.

After obtaining the SpO2 time traces from both the self-calibrated algorithm and the conventional method, we compared them to the SaO2 measurements, which were regarded as the ground truth, from the blood gas analyzer. To account for the uncertainties in the recorded blood draw timings, we averaged the SpO2 around ±2  s of the recorded timepoints and then used these values to compare to the SaO2. In our analysis, we first plotted SpO2 against SaO2 for both methods. This was complemented with Bland–Altman analysis to demonstrate the accuracy of SpO2 extraction for each method. Furthermore, we divided our data based on SaO2 levels—high (>90%) and low (<90%). For each category, we assessed the SpO2 extraction performance by calculating the absolute difference between SpO2 and SaO2.

As shown in Fig. 2, SaO2 was extracted at time points A, B, and C at 15 m dives and at E and F for 42 m dives. All 9 subjects completed the 42 m dive with ideally 9×2=18 data points expected from two blood gas measurements per dive. However, two subjects had unreliable data due to very noisy signals, likely from probe movement under the swimming cap. This resulted in a reduction to 14 data points. Additionally, two data points had missing information in the measurement log, further reducing the count to 12 data points for the 42 m dives. 7 out of the 9 subjects completed the 15 m dive, with ideally 7×3=21 data points expected from three blood gas measurements per dive. Noisy signals in three measurements reduced this to 18 data points. One missing entry in the measurement log further reduced the final count to 11 data points for the 15 m dives. In summary, we have 12 data points from the 42 m dives and 11 from the 15 m dives, totaling 23 data points for the SaO2 and SpO2 comparison. When categorized by SaO2 levels, we had 10 data points for SaO2<90% and 13 for SaO2>90%.

3.

Results

3.1.

Validation of the Self-Calibrated Algorithm with Simulated Data

In Monte-Carlo simulation with MCX Lab, we simulated changes in μa corresponding to the systolic and diastolic phases of cardiac pulsation. The simulated ΔOD ranging from SaO2=20% to 100% is shown in Fig. 3. As expected, the spectral shape of ΔOD changes with SaO2 levels.

Fig. 3

Simulated ΔOD versus wavelength at SaO2=20% to 100%.

JBO_28_11_115002_f003.png

Taking the simulated ΔOD at SaO2=60% as an example, we applied both our algorithm (optimizing for L ratio changes) and the conventional method (with constant L ratio) as described previously. For our algorithm, Figs. 4(a)4(c) represent input SpO2 at 20%, 60%, and 100%, respectively. The spectral shapes of analytical and measured L ratio closely overlap when SpO2 reaches SaO2=60%. By iterating SpO2 values from 0% to 100% in the algorithm, we plotted the RSS (Σλ[L^measured(λ)L^analytical(λ)]2) between the analytical and measured L ratio. The RSS versus SpO2 in Fig. 4(d) shows a U-shape with its minimum error at the expected SpO2=60%. In Fig. 4(e), we show all the extracted SpO2 values from our algorithm (red squares) and those from the conventional method—Eq. (6) with constant L ratios (L840  nm/L760  nm) of 0.61 (yellow triangles) and 0.87 (blue circles).

Fig. 4

(a)–(c) Comparison between analytical (solid purple) and measured (dotted green) L ratio at SpO2=20%, 60%, and 100%, respectively. (d) RSS between analytical and measured L ratio at SpO2=0% to 100%. (e) Comparison between SpO2 calculated by the self-calibrated algorithm (red square) and the conventional method with constant L ratio = 0.61 (yellow triangle) and 0.87 (blue circle).

JBO_28_11_115002_f004.png

In Fig. 4(e), we observe that the SpO2 values derived from our algorithm accurately follow the unity line. SpO2 values calculated by the conventional method, however, depends on the manually set constant L ratios. When a ratio of 0.61 (yellow triangle) was used, the calculated SpO2 values are relatively close to the unity line at higher SaO2 levels (80% to 100%). However, the accuracy diminishes for lower saturation levels. In contrast, when using a ratio of 0.87 (blue circles) taken from the literature, the extracted SpO2 values align more closely to the unity line at lower SaO2 levels, particularly around 20%.

It is curial to clarify that the ratio of 0.87, taken from the literature, does not generally ensure enhanced SpO2 extraction accuracy at lower saturation levels. This specific value was derived from measurements on the frontal human head, which consists of various tissue layers that combine artery, venous, and capillary components.19 In contrast, our simulations utilized a semi-infinite rectangular slab volume, a geometry distinctly different from the human head’s structure. As we will demonstrate in the next section, the ratio of 0.87 is quite adequate for measurement taken from the human forehead, resulting in good SpO2 extraction accuracy at higher saturation levels. These findings thus highlight the importance of carefully tailoring the L ratio within the mBLL to the specific context and application.

3.2.

SpO2 Extraction Using Two Versus Eight Wavelengths in the Presence of Noise in ΔOD

In Sec. 2.3, we described the process of adding Gaussian white noise to simulated noise-free ΔOD across eight wavelengths. We then processed these noisy ΔOD values using either two (760 and 840 nm) or all eight wavelengths with the self-calibrated algorithm to compute SpO2. Figure 5(a) shows an example comparison between the clean ΔOD at SaO2=100% (yellow squares) and three noisy ΔOD examples (green circles).

Fig. 5

(a) Clean ΔOD at SaO2=100% (yellow square) and three examples of noisy ΔOD (green circle). (b) SpO2 extraction results from the self-calibrated algorithm using two (blue circle) versus eight (red triangle) wavelengths.

JBO_28_11_115002_f005.png

For simulated ΔOD at each SaO2 value (20%, 40%, 60%, 80%, and 100%), we processed 100 distinct noisy ΔOD sets through the self-calibrated algorithm, leading to 100 SpO2 estimations per SaO2 level. Figure 5(b) shows the mean and STD of these SpO2 values. To enhance visual clarity, we slightly offset the datasets representing results from two and eight wavelengths on the x axis. We can see that the SpO2 results, both in terms of mean and STD, from two (blue circles) and eight (red triangles) wavelengths are notably similar and align closely with the unity line. This similarity indicates that with the self-calibrated algorithm, accurate SaO2 estimation is feasible using just two wavelengths, as will be demonstrated in the subsequent human freediving experiment.

3.3.

Application of the Self-Calibrated Algorithm and Conventional Method to Freediver Data

Following the conventional approach to calculate SpO2, we took the measured data at r=3  cm and calculated the Δ[HbO] and Δ[Hb] time traces using mBLL as described in Sec. 2.4, with the assumption of a constant L ratio (L840  nm/L760  nm=0.87). An example result from a 42 m dive is presented in Figs. 6(a) and 6(b), which show example spectrograms for Δ[HbO] and Δ[Hb] with their identified HR (red solid line). SpO2 time trace—SpO2=Δ[HbO](HR)/(Δ[HbO](HR)+Δ[Hb](HR))—is depicted in Fig. 7. Comparing the SpO2 time trace (green dotted line) to the blood gas measurement (red circles), we observed that the calculated SpO2 of 99.6% at 42 m (“bottom”) is consistent with the measured SaO2 of 99%. However, at the end of the 42 m dive, near the surface, the calculated SpO2 of 87.8% largely overestimates the ground truth SaO2 of 61% (a 27.8% difference).

Fig. 6

(a), (b) Spectrogram for Δ[HbO] and Δ[Hb] with HR time trace (red line).

JBO_28_11_115002_f006.png

For the self-calibrated algorithm, we extracted ΔOD at the HR from the spectrograms for each wavelength (760 and 840 nm) and input them to the algorithm using the same data. The purple solid line in Fig. 7 shows the SpO2 time traces calculated by the algorithm. The SpO2 calculations are consistent with the ground-truth SaO2 measured from the blood gas (red circles) not only at 42 m bottom, where SpO2 is 100% and SaO2 is 99%, but also at the surface, where SpO2 is 63.2% and SaO2 is 61% (a 2.2% difference).

Fig. 7

Comparison between SpO2 extracted from self-calibrated algorithm (solid purple line) and the conventional method (dotted green line) to ground truth SaO2 from blood gas (red circles).

JBO_28_11_115002_f007.png

In Figs. 8(a) and 8(b), we plotted SpO2 against SaO2 for all the data. For the self-calibrated algorithm, the SpO2 values predominantly fall in line with the unity line (represented by the black dashed line). In contrast, the conventional method often overestimates SaO2, particularly at lower saturation levels.

Fig. 8

SpO2 versus SaO2 for all data points: (a) conventional method and (b) self-calibrated algorithm. Data from 15 and 42 m dives are marked by circles and squares, respectively. (c), (d) Bland–Altman plots for (a) and (b), respectively.

JBO_28_11_115002_f008.png

This difference becomes more evident in the Bland–Altman plots of Figs. 8(c) and 8(d). The self-calibrated algorithm exhibits a modest average bias of 3.29% between SpO2 and SaO2, with most of the data points clustering near this central bias line. Additionally, the limits of agreement, capturing 95% of the differences between SpO2 and SaO2, are narrow (8.14% to 14.72%). Importantly, the residuals show no systematic biases, confirming the reliability of this method.

In contrast, the conventional method presents a substantially higher average bias of 11.16% between SpO2 and SaO2. The limits of agreement for this method are also broader (15.92% to 38.24%), signifying greater variability. Moreover, a noticeable trend in the residuals reveals an increased bias at lower saturation levels.

Taken together, these findings demonstrate the precision and consistency of our self-calibrated algorithm, indicating its superior performance in estimating SpO2 across various saturation levels compared to the conventional method.

To further evaluate the robustness of the two methods under different saturation levels, we divided our dataset based on SaO2 levels into two categories: high (>90%) and low (<90%). The metric used to quantify performance was the absolute difference between SpO2 and SaO2 (|SpO2SaO2|). Figure 9 illustrates the mean and standard error of these differences for each method.

Fig. 9

Absolute difference between the extracted SpO2 and ground-truth SaO2 at low (<90%) and high (>90%) saturation levels. *p<0.05.

JBO_28_11_115002_f009.png

For high SaO2 levels (>90%), both methods perform similarly well, with differences of 0.91% for the conventional method and a slightly higher 1.05% for the self-calibrated algorithm. However, the distinction between the two methods becomes pronounced at lower SaO2 levels (<90%): the self-calibrated algorithm shows a discrepancy of only 8.37%, whereas the conventional method has a 24.7% difference. The statistical significance of this variation was further demonstrated by the Wilcoxon rank sum test with the significance level was set to be 0.05.

These results emphasize the superior accuracy of the self-calibrated algorithm, particularly when the SaO2 is low, when compared to the conventional approach.

4.

Discussion

Commercial pulse oximeters are known to suffer from decreased accuracy at lower saturation levels due to limitations in empirical calibration. On the other hand, when applying mBLL to calculate SpO2, the conventional method assumes a constant L ratio between wavelengths. This also causes inaccuracy in SaO2 estimation, because the change in L ratio might be negligible when SaO2 is high and within a narrow range (e.g., 90% to 100%), but it increases drastically as SaO2 decreases. To address this, we introduced a self-calibrated algorithm that calculates SpO2 by accounting for the changes in L ratio.

This new approach was first validated with MC simulations. After that, it was tested on human freediving data, comparing the results to the ground truth SaO2 obtained from arterial blood samples. Our findings, as illustrated in Figs. 7Fig. 89, show that while both the conventional and self-calibrated methods perform similarly at high saturation levels, the self-calibrated method performs significantly better at low saturation levels.

In the literature, various methods have been proposed to estimate DPF (represented as L/r) for CW-NIRS applications. Talukdar et al.21 applied the extended Kalman filter for real-time ΔDPF estimation to enhance Δ[HbO] and Δ[Hb] calculations, although requiring a prior DPF value. This approach adjusts for ΔDPF without gauging its absolute value. For the absolute estimation, Huang and Hong22 introduced dual square-root cubature Kalman filters with a multichannel probe. However, this requires an initial phantom experiment calibration, and their method was only applied on simulated data. While both have merits, their feasibility for SpO2 calculations remains uncertain. In another study, Yossef Hay et al.23 introduced a calibration-free finger pulse oximeter using two close wavelengths (761 and 818 nm) to mitigate the variability of the L difference between these wavelengths. Although they achieved good agreement at higher saturations (>90%), its performance at lower levels remains unspecified. A shared attribute among these three methods and our self-calibrated algorithm, however, is the fundamental assumption of a semi-infinite and homogenous medium.

In addition to estimating SaO2 with high accuracy across various saturation levels, the self-calibrated algorithm has the potential to improve SaO2 estimation in patients with darker skin tones. This is a particularly relevant issue, as recent discussions have highlighted the reduced SaO2 estimation accuracy at lower saturations, especially in patients with darker skin, which became a significant problem during COVID-19 pandemic.9,24 In the self-calibrated algorithm, the spectral shape of μa plays a crucial role, as it is currently a function of SpO2. Based on the established extinction coefficients, melanin, oxy-hemoglobin, and deoxy-hemoglobin have distinct absorption spectra. Thus by incorporating an additional μa spectra as a function of melanin concentrations, our algorithm could potentially account for differences in skin tone, leading to improved estimation accuracy across diverse patient populations.

In addition, further improvements and studies are needed to confirm the reliability of our algorithm in other research and clinical settings. First, the analytical equation for L we used in the algorithm is for semi-infinite media with reflectance setup. Most human tissues, however, are multilayered. It will be necessary to study how layered tissue (or skull thickness in this experiment) influences the SpO2 calculation. An improved formulation of the self-calibrated algorithm with the two-layer mBLL by Hiraoka et al.25 or with the analytical partial pathlength by García et al.26 might be necessary. Second, we assumed that the light attenuation only comes from change in μa due to heart pulsation, and μs being constant over SaO2 and heart pulsation. Based on these assumptions, we used the same [HbT], change in [HbT] from baseline (2%), and μs (taken from literature) in the algorithm for all subjects. With skin melanin concentration, skull thickness, etc. taken into consideration, these assumptions are inaccurate. In order to overcome the assumption of baseline optical properties, a frequency-domain NIRS could be used to provide the exact optical properties of the specific measurement site of the subject.16 Further validation using data from various clinical settings and patient populations would be beneficial in assessing the generalizability of our findings. Finally, same as other CW-NIRS measurements, our method also suffers from measurement noise such as motion artifacts, especially because the NIRS device (PortaDiver) we used was held down by a swimming cap. We used a Butterworth high-pass filter in MATLAB to remove the low-frequency noise and then extracted ΔOD(t) at HR from spectrograms. Processing our signal with other conventional or deep learning-based methods27,28 could potentially improve the SpO2 calculation by the self-calibrated algorithm. Additionally, the motion artifacts in the measurements could be reduced through improved attachment methods.

In conclusion, the proposed self-calibrated algorithm demonstrates improved performance in SaO2 estimation compared to the conventional method of using mBLL with constant L ratio. By optimizing the spectral shape of the optical pathlength and accounting for differences in skin tone, our algorithm has the potential to improve the accuracy of SpO2 estimation across a diverse range of patient populations. Future research should focus on further validating the algorithm in different clinical scenarios and exploring its potential applications in other diagnostic and monitoring contexts, such as calculation of cerebral metabolic rate of oxygen, organ saturation map, transabdominal fetal pulse oximetry, and others.

Disclosures

The authors declare no conflict of interest.

Code and Data Availability

Data and code are available at 10.1184/R1/24530353.

Acknowledgments

Funding was received from the National Institutes of Health (Grant No. NIH/NIBIB SBIR R43-EB030625), the National Science Foundation (Grant No. NSF SBIR #2025901), the Office of Naval Research (Grant Nos. ONR N00014-21-1-2303 and N00014-20-1-2579), and the Digital Health Fellowship from Center for Machine Learning and Health at Carnegie Mellon University.

References

1. 

P. D. Mannheimer et al., “Wavelength selection for low-saturation pulse oximetry,” IEEE Trans. Biomed. Eng., 44 (3), 148 –158 https://doi.org/10.1109/10.554761 IEBEAX 0018-9294 (1997). Google Scholar

2. 

J. E. Sinex, “Pulse oximetry: principles and limitations,” Am. J. Emerg. Med., 17 (1), 59 –66 https://doi.org/10.1016/S0735-6757(99)90019-0 (1999). Google Scholar

3. 

L. Kocsis, P. Herman and A. Eke, “The modified Beer–Lambert law revisited,” Phys. Med. Biol., 51 (5), N91 –N98 https://doi.org/10.1088/0031-9155/51/5/N02 PHMBA7 0031-9155 (2006). Google Scholar

4. 

M. Nitzan, A. Romem and R. Koppel, “Pulse oximetry: fundamentals and technology update,” Med. Devices, 7 231 –239 https://doi.org/10.2147/MDER.S47319 MDDIDR (2014). Google Scholar

5. 

D. Wackernagel, M. Blennow and A. Hellström, “Accuracy of pulse oximetry in preterm and term infants is insufficient to determine arterial oxygen saturation and tension,” Acta Paediatr., 109 (11), 2251 –2257 https://doi.org/10.1111/apa.15225 (2020). Google Scholar

6. 

N. J. Meyer, L. Gattinoni and C. S. Calfee, “Acute respiratory distress syndrome,” Lancet, 398 (10300), 622 –637 https://doi.org/10.1016/S0140-6736(21)00439-6 LANCAO 0140-6736 (2021). Google Scholar

7. 

K. F. Rabe and H. Watz, “Chronic obstructive pulmonary disease,” Lancet, 389 (10082), 1931 –1940 https://doi.org/10.1016/S0140-6736(17)31222-9 LANCAO 0140-6736 (2017). Google Scholar

8. 

A. Papi et al., “Asthma,” Lancet, 391 (10122), 783 –800 https://doi.org/10.1016/S0140-6736(17)33311-1 LANCAO 0140-6736 (2017). Google Scholar

9. 

M. W. Sjoding et al., “Racial bias in pulse oximetry measurement,” N. Engl. J. Med., 383 (25), 2477 –2478 https://doi.org/10.1056/NEJMc2029240 NEJMBH (2020). Google Scholar

10. 

A. M. Luks and E. R. Swenson, “Pulse oximetry for monitoring patients with COVID-19 at home. Potential pitfalls and practical guidance,” Ann. Am. Thorac. Soc., 17 (9), 1040 –1046 https://doi.org/10.1513/AnnalsATS.202005-418FR (2020). Google Scholar

11. 

A. Zourabian et al., “Trans-abdominal monitoring of fetal arterial blood oxygenation using pulse oximetry,” J. Biomed. Opt., 5 (4), 391 –405E https://doi.org/10.1117/1.1289359 JBOPFO 1083-3668 (2000). Google Scholar

12. 

D. Fong, A. Knoesen and S. Ghiasi, “Transabdominal fetal pulse oximetry: the case of fetal signal optimization,” in IEEE 19th Int. Conf. e-Health Networking, Appl. and Serv. (Healthcom), 3 (2017). https://doi.org/10.1109/HealthCom.2017.8210799 Google Scholar

13. 

E.-M. S. Bønnelycke et al., “Wearable near-infrared spectroscopy as a physiological monitoring tool for seals under anaesthesia,” Remote Sens., 13 (18), 3553 https://doi.org/10.3390/rs13183553 (2021). Google Scholar

14. 

J. C. McKnight et al., “When the human brain goes diving: using near-infrared spectroscopy to measure cerebral and systemic cardiovascular responses to deep, breath-hold diving in elite freedivers,” Philos. Trans. R. Soc., B: Biol. Sci., 376 (1831), 20200349 https://doi.org/10.1098/rstb.2020.0349 (2021). Google Scholar

15. 

G. Bosco et al., “Arterial blood gas analysis in breath-hold divers at depth,” Front. Physiol., 9 1558 https://doi.org/10.3389/fphys.2018.01558 FROPBK 0301-536X (2018). Google Scholar

16. 

S. Fantini et al., “Non-invasive optical monitoring of the newborn piglet brain using continuous-wave and frequency-domain spectroscopy,” Phys. Med. Biol., 44 (6), 1543 –1563 https://doi.org/10.1088/0031-9155/44/6/308 PHMBA7 0031-9155 (1999). Google Scholar

17. 

Q. Fang and D. A. Boas, “Monte Carlo simulation of photon migration in 3D turbid media accelerated by graphics processing units,” Opt. Express, 17 (22), 20178 https://doi.org/10.1364/OE.17.020178 OPEXFF 1094-4087 (2009). Google Scholar

18. 

C. R. Simpson et al., “Near-infrared optical properties of ex vivo human skin and subcutaneous tissues measured using the Monte Carlo inversion technique,” Phys. Med. Biol., 43 (9), 2465 –2478 https://doi.org/10.1088/0031-9155/43/9/003 PHMBA7 0031-9155 (1998). Google Scholar

19. 

F. Scholkmann and M. Wolf, “General equation for the differential pathlength factor of the frontal human head depending on wavelength and age,” J. Biomed. Opt., 18 (10), 105004 https://doi.org/10.1117/1.JBO.18.10.105004 JBOPFO 1083-3668 (2013). Google Scholar

20. 

M. Paganini et al., “Blood gas analyses in hyperbaric and underwater environments: a systematic review,” J. Appl. Physiol., 132 (2), 283 –293 https://doi.org/10.1152/japplphysiol.00569.2021 (2022). Google Scholar

21. 

T. Talukdar, J. H. Moore and S. G. Diamond, “Continuous correction of differential path length factor in near-infrared spectroscopy,” J. Biomed. Opt., 18 (5), 056001 https://doi.org/10.1117/1.JBO.18.5.056001 JBOPFO 1083-3668 (2013). Google Scholar

22. 

R. Huang and K.-S. Hong, “Multi-channel-based differential pathlength factor estimation for continuous-wave fNIRS,” IEEE Access, 9 37386 –37396 https://doi.org/10.1109/ACCESS.2021.3063120 (2021). Google Scholar

23. 

O. Yossef Hay et al., “Pulse oximetry with two infrared wavelengths without calibration in extracted arterial blood,” Sensors, 18 (10), 3457 https://doi.org/10.3390/s18103457 SNSRES 0746-9462 (2018). Google Scholar

24. 

P. E. Bickler, J. R. Feiner and J. W. Severinghaus, “Effects of skin pigmentation on pulse oximeter accuracy at low saturation,” Anesthesiology, 102 (4), 715 –719 https://doi.org/10.1097/00000542-200504000-00004 ANESAV 0003-3022 (2005). Google Scholar

25. 

M. Hiraoka et al., “A Monte Carlo investigation of optical pathlength in inhomogeneous tissue and its application to near-infrared spectroscopy,” Phys. Med. Biol., 38 (12), 1859 –1876 https://doi.org/10.1088/0031-9155/38/12/011 PHMBA7 0031-9155 (1993). Google Scholar

26. 

H. A. García et al., “Theoretical investigation of photon partial pathlengths in multilayered turbid media,” Biomed. Opt. Express, 13 (4), 2516 –2529 https://doi.org/10.1364/BOE.449514 BOEICL 2156-7085 (2022). Google Scholar

27. 

R. J. Cooper et al., “A systematic comparison of motion artifact correction techniques for functional near-infrared spectroscopy,” Front. Neurosci., 6 (Oct.), 147 https://doi.org/10.3389/fnins.2012.00147 (2012). Google Scholar

28. 

J. Wu, S. Bai and J. M. Kainerstorfer, “Deep learning-based near-infrared spectroscopy time-series analysis with long short-term memory,” Proc. SPIE, PC12376 PC123760B https://doi.org/10.1117/12.2650749 PSISDG 0277-786X (2023). Google Scholar

Biography

Jingyi Wu is a PhD candidate at Carnegie Mellon University’s Biomedical Engineering Department, supervised by Professor Jana M. Kainerstorfer. His research aims to enhance maternal and fetal health during childbirth. Currently, he is developing algorithms for transabdominal fetal pulse oximetry and applying deep learning-based methods to model photon transport in multilayer tissue and remove motion artifact in optical signal. He holds his master’s degree in biomedical engineering and a bachelor’s degree in physics from CMU.

J. Chris McKnight is a research fellow in the Sea Mammal Research Unit at the University of St Andrews, United Kingdom. His work focuses on the diving behavior and diving physiology of marine mammals and humans, and the development of animal-borne technology.

Eva-Maria S. Bønnelycke is a PhD student in the Sea Mammal Research Unit at the University of St Andrews, United Kingdom, supervised by Professor J. Chris McKnight. Her research focuses on using innovative technology to explore the health and physiology of marine mammals. She holds her master’s degree in marine mammal science from the University of St Andrews and his bachelor’s degree in marine science from Eckerd College.

Gerardo Bosco is a UHMS fellow with 25 years’ experience, is an associate professor in exercise physiology, director of the II-level master’s in diving and hyperbaric medicine, and course in technical and health management in the hyperbaric chamber at the University of Padova. He has been a research scientist at SUNY in Syracuse and is a member of the international faculty at Duke Dive Medicine in Durham. His research interests encompass respiratory mechanics, cardiovascular adaptations in diving, metabolic disorders, and environmental stress on exercise-induced oxygen toxicity.

Tommaso Antonio Giacon is a medical doctor and anesthesiology resident at the University of Padova, specializing in extreme environments physiology, particularly in marine, hyperbaric, and diving medicine. Under the supervision of Professor Gerardo Bosco, he takes part in pioneering research projects in diving and hyperbaric medicine, aiming to improve diver safety and performance, even in extreme depths. His work involves developing and utilizing innovative underwater tools, as well as conceptualization and on-field activities.

Jana M. Kainerstorfer earned her PhD in physics from the University of Vienna in Austria in partnership with the National Institutes of Health and worked as a postdoctoral fellow at Tufts University. She is an associate professor of biomedical engineering at CMU. Her research lab focuses on diffuse optical imaging technology for monitoring cerebral and tissue health, with an emphasis on clinical translation. She actively contributes to program committees at national and international conferences, serves as an associate editor for the Journal of Biomedical Optics, and is a senior member of Optica.

CC BY: © The Authors. Published by SPIE under a Creative Commons Attribution 4.0 International License. Distribution or reproduction of this work in whole or in part requires full attribution of the original publication, including its DOI.
Jingyi Wu, J. Chris McKnight, Eva-Maria S. Bønnelycke, Gerardo Bosco, Tommaso Antonio Giacon, and Jana M. Kainerstorfer "Self-calibrated pulse oximetry algorithm based on photon pathlength change and the application in human freedivers," Journal of Biomedical Optics 28(11), 115002 (23 November 2023). https://doi.org/10.1117/1.JBO.28.11.115002
Received: 6 July 2023; Accepted: 30 October 2023; Published: 23 November 2023
Advertisement
Advertisement
KEYWORDS
Calibration

Blood

Oximetry

Algorithm development

Monte Carlo methods

Biological samples

Detection and tracking algorithms

RELATED CONTENT

Benchmarks for target tracking
Proceedings of SPIE (September 16 2011)
Star-tracker-based, all-sky, autonomous attitude determination
Proceedings of SPIE (September 23 1993)
Simple real-time data fusion
Proceedings of SPIE (March 22 2001)

Back to Top