
==== Front
Diagnostics (Basel)
Diagnostics (Basel)
diagnostics
Diagnostics
2075-4418
MDPI

10.3390/diagnostics14171970
diagnostics-14-01970
Article
Detection of Internal Hemorrhage via Sequential Inference: An In Silico Feasibility Study
https://orcid.org/0000-0003-4208-337X
Chalumuri Yekanth Ram Methodology Software Validation Formal analysis Investigation Writing – original draft Writing – review & editing Visualization
Jin Xin Methodology Software Validation Formal analysis Investigation Writing – review & editing
Tivay Ali Methodology Formal analysis Investigation Writing – review & editing
https://orcid.org/0000-0001-5429-2836
Hahn Jin-Oh *
Vashist Sandeep K. Academic Editor
Department of Mechanical Engineering, University of Maryland, College Park, MD 20742, USA; yekanth.ram@gmail.com (Y.R.C.); xjin9891@gmail.com (X.J.); ali.tivay@gmail.com (A.T.)
* Correspondence: jhahn12@umd.edu
06 9 2024
9 2024
14 17 197008 7 2024
27 8 2024
02 9 2024
© 2024 by the authors.
2024
https://creativecommons.org/licenses/by/4.0/ Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
This paper investigates the feasibility of detecting and estimating the rate of internal hemorrhage based on continuous noninvasive hematocrit measurement. A unique challenge in hematocrit-based hemorrhage detection is that hematocrit decreases in response to hemorrhage and resuscitation with fluids, which makes hemorrhage detection during resuscitation challenging. We developed two sequential inference algorithms for detection of internal hemorrhage based on the Luenberger observer and the extended Kalman filter. The sequential inference algorithms use fluid resuscitation dose and hematocrit measurement as inputs to generate signatures to enable detection of internal hemorrhage. In the case of the extended Kalman filter, the signature is nothing but inferred hemorrhage rate, which allows it to also estimate internal hemorrhage rate. We evaluated the proof-of-concept of these algorithms based on in silico evaluation in 100 virtual patients subject to diverse hemorrhage and resuscitation rates. The results showed that the sequential inference algorithms outperformed naïve internal hemorrhage detection based on the decrease in hematocrit when hematocrit noise level was 1% (average F1 score: Luenberger observer 0.80; extended Kalman filter 0.76; hematocrit 0.59). Relative to the Luenberger observer, the extended Kalman filter demonstrated comparable internal hemorrhage detection performance and superior accuracy in estimating the hemorrhage rate. The analysis of the dependence of the sequential inference algorithms on measurement noise and plant parametric uncertainty showed that small (≤1%) hematocrit noise level and personalization of sequential inference algorithms may enable continuous noninvasive detection of internal hemorrhage and estimation of its rate.

hemorrhage
detection
sequential inference
observer
Kalman filter
virtual patient
U.S. National Science FoundationCMMI-1760817 CNS-1748762 This work was supported in part by the U.S. National Science Foundation (Grant CMMI-1760817 and CNS-1748762).
==== Body
pmc1. Introduction

Hemorrhage is accountable for approximately 40% of mortality in the world [1]. In the civilian sector, hemorrhage is the most common cause of deaths in young adults and juveniles [2]. In the military sector, >85% of mortality on the battlefield is attributed primarily to hemorrhage, 25% of which may be survivable if timely treatment is provided [3].

Hemorrhage can be external or internal. External bleeding can be easily detected and controlled. However, early detection of internal bleeding is not trivial. Rudimentary vital signs used in patient monitoring (e.g., heart rate (HR), blood pressure (BP), and oxygen saturation) do not reveal easily recognizable symptoms of bleeding and the resulting hypovolemia in the early stage of hemorrhage due to the body’s autonomic-cardiac compensation mechanisms [4,5,6]. Heart rate variability (HRV) is known to decrease during hemorrhage. But prior work showed that (i) it is a poor indicator of tolerance to hypovolemia [7] and (ii) it does not add value to rudimentary vital signs in identifying hemorrhage in patients receiving packed RBC transfusion [8]. Clinical efficacy of noninvasive measurements such as thoracic electrical bioimpedance, serum lactate, and mucosal pH has yet to be established [5]. Hence, early detection of internal hemorrhage before its recognition via obvious symptoms in rudimentary vital signs and other noninvasive measurements is important in providing life-saving interventions to hemorrhaging patients.

Efforts to promptly detect internal hemorrhage and the resulting circulatory decompensation have been made on both algorithmic and sensing fronts. Existing work on the algorithmic front includes pulse wave analysis (PWA) [9] as well as machine-learning-based methods to detect the depletion of blood volume (BV) [10] and compensatory reserve [4]. A potential weakness of these methods is that they are empiric and data-driven and, thus, are not readily interpretable. Such weakness raises concerns regarding the efficacy of these methods beyond the datasets used to develop them. In addition, these methods are often concerned with the inference of margins to circulatory collapse rather than the detection of hemorrhage itself, which is a disadvantage if the detection of hemorrhage itself is the main goal. Existing work on the sensing front includes imaging-based techniques and continuous blood hemoglobin (Hgb) monitoring (which is closely related to blood hematocrit (HCT), i.e., HCT is approximately 3 times Hgb [11]). Ultrasound imaging of inferior vena cava diameter and left ventricle thickness was ineffective in detecting hemorrhage [12], while computed tomography imaging and diffuse optical techniques showed promise in early detection of hemorrhage in pelvic injury [13]. But imaging-based techniques clearly have weaknesses in terms of ubiquitous usability in low-resource environments (e.g., prehospital settings as well as battlefield and mass casualty scenarios) due to the bulkiness of the equipment and the operator requirements. In addition, some imaging techniques require a priori knowledge of injury to accurately diagnose bleeding. Continuous Hgb monitoring based on pulse co-oximetry [14] showed promise in trending blood Hgb (and, accordingly, HCT). However, continuous Hgb monitoring is associated with substantial sensor noise [15]. In addition, Hgb may be associated with limited effectiveness in detecting internal hemorrhage in the presence of resuscitation with fluids because hemorrhage and fluids both dilute the blood and, thus, decrease Hgb. In sum, technology that can ubiquitously, promptly, and accurately detect internal hemorrhage does not appear to exist.

To bridge this gap, this paper investigates the feasibility of detecting internal hemorrhage and estimating its rate based on continuous noninvasive hematocrit measurement. Toward this goal, we developed two sequential inference algorithms for detection of internal hemorrhage based on the Luenberger observer (LO) and the extended Kalman filter (EKF). These algorithms exploit fluid resuscitation dose and hematocrit measurement as inputs to generate signatures to detect internal hemorrhage. In the case of the EKF, the signature is nothing but inferred hemorrhage rate, which allows it to also estimate internal hemorrhage rate. We evaluated the proof-of-concept of detecting internal hemorrhage and estimating its rate via these sequential inference algorithms by conducting in silico evaluation in 100 virtual patients subject to diverse hemorrhage and resuscitation rates.

This paper is organized as follows. Section 2 describes the plant dynamics, the design of linear and nonlinear sequential inference algorithms for detection of internal hemorrhage and estimation of its rate, an LO and an EKF, and the details of in silico evaluation of the sequential inference algorithms. Section 3 summarizes results, which are discussed in Section 4. Section 5 concludes the paper with possible future directions.

2. Methods

In Section 2.1, we present a lumped-parameter mathematical model of BV kinetics, which is the basis of designing an LO and an EKF for internal hemorrhage detection. In Section 2.2, we present novel internal hemorrhage detection algorithms based on an LO (Section 2.2.1) and an EKF (Section 2.2.2). In Section 2.3, we present the in silico evaluation method to evaluate the internal hemorrhage detection algorithms, including the virtual patients and scenarios (Section 2.3.1), the application of the algorithms to the in silico scenarios (Section 2.3.2), and the evaluation metrics (Section 2.3.3).

2.1. Plant Dynamics

Most existing mathematical models of BV kinetics are extremely complex and involve a large number of individual-specific parameters [16,17,18,19,20]. Hence, these mathematical models may not be ideally suited to the design of observers and Kalman filters. For this reason, we employed a lumped-parameter mathematical model of BV kinetics developed in our prior work (Figure 1). A major strength of this mathematical model is that it can replicate the change in BV and HCT in response to hemorrhage and resuscitation while abstracting complex physiological details into simple phenomenological functions.

The lumped-parameter mathematical model is given by [21]:(1) x˙1tx˙2t=−kk00x1tx2t+111+αuut−111+αhht

where x1t is the change in BV from its initial value VB0, x2t is the target change in BV, ut and ht are resuscitation and hemorrhage rates, respectively, and σt is HCT. The lumped-parameter mathematical model contains four interpretable parameters θ=VB0,αu,αh,K, (i) VB0 representing initial (i.e., pre-hemorrhage/resuscitation) BV; (ii) αu and αh representing the fraction of resuscitation and hemorrhage compensated by the interstitial fluid exchange (e.g., 11+αu fraction of resuscitation volume expands BV, while the remaining αu1+αu fraction is shifted to the interstitial space); and (iii) k representing the rate of interstitial fluid exchange.

In this work, we used two alternative output equations. For the LO, we used the following output equation:(2) yt=σ0−σtσt=1VB0x1t+∫0thτστdτVB0σt

where HCT is assumed to be continuously measured, e.g., via continuous SpHb sensing [22,23]. Note that yt includes the influence of both state (i.e., x1t) and hemorrhage ht. In the absence of hemorrhage, ht=0 and ∫0thτστdτVB0σt=0, which makes it possible to infer the fractional change in BV from yt: yt=σ0−σtσt=1VB0x1t. However, in the presence of hemorrhage, the term ∫0thτστdτVB0σt cannot be calculated because ht is unknown in real-world settings. Hence, yt is not a measure of the fractional change in BV anymore when ht≠0. For the EKF, we used the following output equation:(3) yt=σt

2.2. Internal Hemorrhage Detection via Sequential Inference

We developed two alternative sequential inference algorithms based on the LO and the EKF for detection of internal hemorrhage.

2.2.1. Luenberger Observer (LO)

To design an LO, we augmented ht as an additional slowly varying state to Equation (1). Then, the resulting state–space representation is given by Equation (4):(4) x˙t=Axt+But=−kk−100−11+αh000x1tx2tx3t+111+αu0utyt=σ0−σtσt=1VB0x1t+∫0thτστdτVB0σt

where A=A¯+A~ and B=B¯+B~, with the superscripts ·¯ and ·~ being nominal and uncertain parts, respectively. Note that the output yt does not represent the fractional change in BV when ht is not zero, as described in Section 2.1. As outlined below, the LO neglects the integral term ∫0thτστdτVB0σt in its output equation and exploits the error caused by the neglected integral term to derive a signature of internal hemorrhage. The LO for the above plant dynamics is given by:(5) x^˙t=A¯x^t+B¯ut+Lyt−y^t=A¯x^t+B¯ut+Lσ0−σtσt−1V¯B0x^1t

where L is the LO gain matrix. Note that we assumed that y^t=1V¯B0x^1t, i.e., we neglected the integral term ∫0thτστdτVB0σt in the output equation in Equation (4). The corresponding LO error dynamics are given by:(6) e˙t=x˙t−x^˙t=A¯et−L100V¯B0et+A~xt+B~ut−LV~B0x1t−L∫0thτστdτVB0σt=A¯−LV¯B0100et+ηt

where ηt=A~xt+B~ut−LV~B0x1t−L∫0thτστdτVB0σtt is unknown disturbance (note that, here, we assumed that 1VB0=1V¯B0+1V~B0).

To garner meaningful insights on how e1t, e2t, and e3t behave as well as to derive a metric for the detection of internal hemorrhage, we assumed that parametric uncertainty is small (i.e., A~xt+B~ut−LV~B0x1t=0), which leads to ηt≈−L∫0thτστdτVB0σtt≜−Lηht. Expanding Equation (6) under this assumption yields the following expressions for the dynamics of individual errors:(7) e˙1t=−k+l1V¯B0e1t+e2t−e3t−l1ηhte˙2t=−l2V¯B0e1t−k1+αhe3t−l2ηhte˙3t=−l3V¯B0e1t−l3ηht

Deriving the transfer functions from ηht to e1t, e2t, and e3t yields the following:(8) e1s=−l1s2+l2−l3s−k1+αhl3s3+k+l1V¯B0s2+l2V¯B0−l3V¯B0s−k1+αhl3V¯B0ηhse2s=−l2s2+kl2−k1+αhl3s−k21+αhl3s3+k+l1V¯B0s2+l2V¯B0−l3V¯B0s−k1+αhl3V¯B0ηhse3s=−l3s2+kl3ss3+k+l1V¯B0s2+l2V¯B0−l3V¯B0s−k1+αhl3V¯B0ηhs

Note that, since ht≥0 and σt>0, ∀t≥0, ηht≥0, ∀t≥0. In addition, ηht monotonically increases through time during hemorrhage (i.e., when ht>0) as follows:(9) η˙ht=ddt∫0thτστdτVB0σt=1VB0ht−σ˙∫0thτστdτσ2≥1VB0ht

since σ˙t≤0 during hemorrhage (i.e., HCT monotonically decreases as red blood cells lost due to hemorrhage are not replenished by the interstitial fluid exchange and/or resuscitation with fluid). Hence, ηht≥1VB0∫0thτdτ. To derive a condition for detecting internal hemorrhage, we also assumed that ht varies slowly: ht≈H, where H denotes a constant hemorrhage rate. Then, we inputted ηhs≥HVB0s2 into Equation (8) to derive the following terminal behaviors pertaining to e1t, e2t, and e3t using the final value theorem:(10) limt→∞⁡e1t=lims→0⁡se1s=∞limt→∞⁡e2t=lims→0⁡se2s=∞limt→∞⁡e3t=lims→0⁡se3s≥1+αhH

The last inequality in Equation (10) leads to the following condition:(11) e3∞=x3∞−x^3∞≥1+αhH → x^3∞≤x3∞−1+αhH

In words, Equation (11) implies that, in the steady state, x^3t is smaller than x3t when hemorrhage is present. In the absence of internal hemorrhage, x3t=ht=0. Hence, when the parametric uncertainty is negligible, internal hemorrhage may be detected if x^3t≤0. However, since the parametric uncertainty induces errors in x^3t, a conservative condition must be used to suppress false positives. Hence, we arrived at the following condition for detecting internal hemorrhage:(12) x^3t≤x_3,LOt

where x_3,LOt is the lower bound of x3t when ht=0, ∀t≥0 (see Section 2.3.1 for the details of how x_3,LOt is derived).

Beyond the detection of internal hemorrhage, the LO can also infer an approximate upper bound of its rate. Assuming that the rate of internal hemorrhage is constant (at H), we reduced Equation (11) to H≤−x^3∞αH. This inequality implies that the upper bound of the internal hemorrhage rate can be estimated from x^3∞ as −x^3∞αH.

2.2.2. Extended Kalman Filtering (EKF)

To design an EKF, we augmented two additional states to Equation (1): (i) ht as an additional slowly varying state as x3t and (ii) the red blood cell volume as x4t. Then, the resulting state–space representation is given by Equation (13):(13) x˙t=fxt,ut=−kx1t+kx2t−x3t+ut−11+αhx3t+11+αuut0− x3tx4t x1t+VB0yt=hxt=σt=x4t x1t+VB0

Remark 1.  One can imagine that an EKF may be designed based on Equation (4), where the output yt is a nonlinear function of x1t, ht, and σt: yt=1VB0x1t+∫0thτστdτVB0σt. However, this output equation is non-Markov, which presents challenges in designing an EKF.

In the design of an EKF, we considered the process noise wt and the sensor noise vt:(14) x˙t=fxt,ut,θ+wtyt=hxt+vt

where θ=VB0,αu,αh,k. Instead of optimizing the process noise covariance, we designed the process noise wt as the uncertainty in the state due to the parametric uncertainty:(15) wt=Jθtδθt,  Qwt=JθtQθJθTt

where Jθt is the Jacobian matrix of fxt,ut,θ with respect to θ, while Qwt and Qθ are the process noise covariance matrix and the covariance matrix pertaining to θ, respectively (see Section 2.3.1 for the details of how Qθ is derived). On the other hand, we designed the sensor noise vt and its covariance Qv based on the noise associated with the measurement of σt. Then, we estimated the states using the standard EKF prediction and correction procedure. At the time instant tk, when a new measurement σtk becomes available, the prediction procedure is given by:(16) x^tk|tk−1=x^tk−1+∫tk−1tkfx^t,ut,θdtPtk|tk−1=Ptk−1+∫tk−1tkFtPTt+PtFTt+Qwtdt

where Ft=∂fxt,ut,θ∂xx^t|tk−1,ut. The correction procedure is given by:(17) Ktk=Ptk|tk−1HTtkHtkPtk|tk−1HTtk+Qvtk−1x^tk=x^tk|tk−1+Ktkytk−hx^tk|tk−1P(tk)=I−KtkHtkPtk|tk−1I−HTtkKTtk+KtkQvtkKTtk

where H(tk)=∂hx∂xx^tk|tk−1.

In the EKF, x^3(t) is the estimate of internal hemorrhage. In the absence of internal hemorrhage, x3t=ht=0. Hence, when the parametric uncertainty is negligible, internal hemorrhage may be detected if x^3t≥0. However, since the parametric uncertainty induces errors in x^3t, a conservative condition must be used to suppress false positives. Hence, we arrived at the following condition for detecting internal hemorrhage:(18) x^3t≥x¯3,EKFt

where x¯3,EKFt is the upper bound of x3t when ht=0, ∀t≥0 (see Section 2.3.1 for the details of how x¯3,EKFt is derived).

2.3. In Silico Evaluation

We conducted an array of extensive in silico investigations to evaluate and compare the efficacy of the two alternative sequential inference algorithms for the detection of internal hemorrhage and the estimation of its rate.

2.3.1. Virtual Patients and Scenarios

As a basis to perform in silico evaluation, we used a mathematical model to replicate physiological responses to hemorrhage and resuscitation and its corresponding virtual patient generator (VPG) developed in our prior work [24]. In brief, we derived the mathematical model using 28 sheep, which underwent acute hemorrhage and resuscitation of fluids [25,26,27]. Then, we derived the VPG to be used in this work using the subset of the sheep resuscitated with colloid (n = 5) based on a collective variational inference (C-VI) method developed by us [24]. The VPG can generate random samples containing the parameters of the mathematical model (called the VPs), which allow the mathematical model to simulate physiologically plausible behaviors.

In this work, we conducted the in silico evaluation by sampling random VPs from the VPG and simulating the LO and the EKF on the VPs (as described in detail in Section 2.3.2). In each simulation, each VP was subject to a constant rate of internal hemorrhage and another constant rate of resuscitation with fluid after a brief period to settle down transients due to initial conditions. We considered the internal hemorrhage rate ranging 0.01–0.1 lpm and the resuscitation rate ranging 10–190% of the given internal hemorrhage rate in each VP. To examine the impact of the HCT error on the performance of detecting internal hemorrhage and estimating its rate, we considered the HCT error levels of 0%, 1%, 2%, and 3% in the form of Gaussian noise. Noting that the existing literature indicates that the current technology may achieve the HCT error of up to 3% [28], our investigation intends to garner insights on the performance of our sequential inference algorithms now and in the future when the measurement technology is further advanced. In sum, these combinations of hemorrhage rate, resuscitation rate, and HCT noise provided us with a total of 400 in silico evaluation scenarios: 10 (internal hemorrhage rates, from 0.01 lpm to 0.1 lpm in an increment of 0.01 lpm) × 10 (resuscitation rates, from 10% of hemorrhage rate to 190% of hemorrhage rate in an increment of 20%) × 4 (HCT noise levels) = 400. To balance true and false events in the in silico evaluation, we augmented to these 400 scenarios the same 400 scenarios but without hemorrhage. All in all, each VP underwent these 800 in silico evaluation scenarios, resulting in a total of 80,000 in silico evaluations. In each simulation, we ran the LO in Section 2.2.1 and the EKF in Section 2.2.2 to detect internal hemorrhage and estimate its rate (if any) as explained in Section 2.3.2.

2.3.2. Internal Hemorrhage Detection and Hemorrhage Rate Estimation Based on Continuous Hematocrit Measurement

We implemented the LO and the EKF using the most likely (i.e., population average) parameter values in the VPG. In the case of the EKF, we used the covariance matrix pertaining to the VPG (which is derived by the C-VI method to represent the uncertainty associated with the VPs [24]) as Qθ in Equation (15). We designed Qv as the HCT noise variance used in the in silico evaluation.

We specified the threshold values x_3,LOt in Equation (12) and x¯3,EKFt in Equation (18) before conducting the in silico evaluations. For this purpose, we sampled 100 random VPs and simulated the LO and the EKF on them under all the 800 scenarios described in Section 2.3.1. Considering that the threshold values represent the lower bound of x3t estimated by the LO and the upper bound of x3t estimated by the EKF in the absence of internal hemorrhage, we conducted the simulations by applying the resuscitation input in the scenarios alone (i.e., we set the hemorrhage rate to zero in all these simulations). Then, we specified x_3,LOt as the minimum value of x^3t inferred by the LO across 80,000 simulations and we likewise specified x¯3,EKFt as the maximum value of x^3t inferred by the EKF across 80,000 simulations.

Using the values of x_3,LOt and x¯3,EKFt thus specified, we conducted the in silico evaluation. In this context, we sampled an additional 100 random VPs and simulated the LO and the EKF on them under all the 800 scenarios described in Section 2.3.1. The simulation was performed until (i) the VP lost >25% BV or (ii) the HCT of the VP was <10%. In each in silico evaluation (pertaining to a scenario and a VP), the LO and the EKF estimated their respective x3t. In the case of LO, x^3t was compared with x_3,LOt. In the case of EKF, x^3t was compared with x¯3,EKFt. Then, at each sampling time instant, the LO declared the detection of internal hemorrhage if Equation (12) was satisfied in >50% of the comparisons within the past 10 min window. Similarly, at each sampling time instant, the EKF declared the detection of internal hemorrhage if Equation (18) was satisfied in >50% of the comparisons within the past 10 min window. The 10 min window was used to mitigate the misdetection of internal hemorrhage due to fluctuations in x^3t caused by parametric uncertainty and measurement noise. Note that the use of the 10 min window may compromise the speed of detection. Hence, it can be viewed as the reconciliation between performance and robustness associated with the detection of internal hemorrhage. The LO and the EKF also estimated the rate of internal hemorrhage. In the case of LO, the upper bound of the rate of internal hemorrhage was estimated as H≤−x^3tαH (see Section 2.2.1). In the case of EKF, the rate of internal hemorrhage was estimated simply as x^3t.

For both the LO and the EKF, we classified a detection declaration as “positive” if the internal hemorrhage was detected before (i) >25% of initial BV was lost or (ii) HCT was <10%. Otherwise, we classified the detection declaration as “negative”. The rationale behind this classification was to penalize the detections that were too late to save the lives of hemorrhaging patients.

To evaluate the performance of the sequential inference algorithms in comparison with the direct detection of internal hemorrhage based on the change in HCT, we evaluated the performance of a naïve algorithm, which declared the detection of internal hemorrhage if HCT decreased by >10% from its initial value:(19) σt≤0.9×σ0

2.3.3. Evaluation Metrics

To measure the accuracy of hemorrhage detection, we used the F1 score and the custom-defined corrected F1 score as primary metrics. The F1 score and the corrected F1 score differ in terms of how positives (i.e., hemorrhage detected) and negatives (i.e., hemorrhage not detected) are defined. In calculating the F1 score, we used the definitions of positive vs. negative detection described in Section 2.3.2; we defined a positive detection if, at any time instant in the evaluation, (i) the detection condition (Equation (12) for the LO and Equation (18) for the EKF) was satisfied in >50% of the comparisons within the past 10 min window and (ii) BV loss was ≤25% and HCT was ≥10%. We defined a negative detection otherwise if the detection condition was never satisfied until the evaluation ended or, equivalently, if the detection was too delayed (i.e., after >25% BV loss or <10% HCT). In this way, a positive detection can be obtained if its two requisite criteria are met at any time instant regardless of whether or not they are met afterwards. On the other hand, in calculating the corrected F1 score, we defined a positive detection if, at a sampling time instant, (i) the detection condition (Equation (12) for the LO and Equation (18) for the EKF) was satisfied in >50% of the comparisons within the past 10 min window, (ii) BV loss was ≤25% and HCT was ≥10%, and (iii) the detection condition remained satisfied till the end of the evaluation. We defined a negative detection otherwise. In this way, the corrected F1 score used a more stringent notion of positive detection than its F1 counterpart. We calculated the F1 score and the corrected F1 score on a VP-by-VP basis (note that each BP was evaluated under 800 scenarios as described in Section 2.3.1). Then, we calculated the descriptive statistics of these metrics.

In addition to F1 score and corrected F1 score, we used (uncorrected and corrected) precision, recall, sensitivity, and specificity as secondary metrics. To measure the speed of hemorrhage detection, we devised the normalized detection time (NDT), which is defined as the time to detect hemorrhage divided by the time to lose 25% of BV (considering that 30% blood loss is known to be associated with the occurrence of decompensation [29]) or the time to reach 10% HCT, whichever occurs first.

We determined the statistical significance in the differences in all the aforementioned metrics using the paired t-test with Bonferroni correction for multiple comparisons.

To measure the accuracy of estimating the rate of internal hemorrhage, we used the normalized absolute error (NAE) between true vs. estimated hemorrhage rates. For a given evaluation, the NAE was calculated as the average value of the absolute differences between true vs. estimated hemorrhage rates during the last 10% of the evaluation (to exclude the artifacts due to the transient behaviors in the estimated hemorrhage rate) divided by true hemorrhage rate.

3. Results

Figure 2 shows representative examples of internal hemorrhage detection pertaining to the LO (by Equation (12)), the EKF (by Equation (18)), and naïve HCT (by Equation (19)) under 0.03 lpm hemorrhage rate, 0.015 lpm resuscitation rate, and 1% HCT noise. Figure 3 and Figure 4 show the average F1 score and the average corrected F1 score, respectively, pertaining to the LO, the EKF, and the naïve HCT across a wide range of internal hemorrhage and resuscitation rates (note that the average was taken over all the VPs). Figure 5 shows the average NDT pertaining to the LO, the EKF, and naïve HCT across a wide range of internal hemorrhage and resuscitation rates (note that the average was likewise taken over all the VPs). Table 1 summarizes the statistics (in terms of mean and standard deviation) of precision, corrected precision, recall, sensitivity, specificity, accuracy, F1 score, corrected F1 score, and NDT pertaining to internal hemorrhage detection. Figure 6 shows the probability distributions of errors associated with hemorrhage estimation pertaining to the LO and the EKF. Figure 7 and Figure 8 show the impact of HCT measurement noise on the F1 scores and the corrected F1 scores pertaining to the LO and the EKF, respectively, while Figure 9 shows the impact of HCT measurement noise on hemorrhage estimation error pertaining to the EKF.

4. Discussion

Hemorrhage must be detected and treated promptly to save lives. However, prompt and accurate detection of internal hemorrhage is not feasible. Existing work to facilitate the detection of internal hemorrhage is often associated with a lack of interpretability, the detection of the decompensation threshold rather than hemorrhage itself, and/or the requirement for bulky equipment and trained operators. In this work, we investigated the proof-of-concept of detecting and estimating the rate of internal hemorrhage based on the sequential inference-enabled analysis of continuous noninvasive hematocrit measurement. In this context, we developed and evaluated two alternative sequential inference algorithms to detect internal hemorrhage and estimate its rate in an array of rigorous in silico evaluations. Primary goals of our work included (i) to investigate the potential of the sequential inference algorithms to enable continuous detection of internal hemorrhage, (ii) to garner in-depth insights on the behaviors (and, accordingly, strengths and weaknesses) of the sequential inference algorithms with respect to hemorrhage rate fluid resuscitation rates, (iii) to investigate the potential of the sequential inference algorithms to estimate the rate of internal hemorrhage, and (iv) to determine the impact of HCT measurement noise on the efficacy of the sequential inference algorithms. Details follow.

4.1. Sequential Inference Based on Continuous HCT for Detection of Internal Hemorrhage: Potential and Feasibility

The sequential inference has the potential to enable noninvasive hemorrhage detection superior to naïve HCT-based detection (Figure 2, Figure 3, Figure 4 and Figure 5, Table 1). The sequential inference (both the LO and the EKF) showed an F1 score of >0.7 and a corrected F1 score of >0.8 in many cases evaluated in this work, whereas both the F1 score and the corrected F1 score of naïve HCT-based detection were <0.5 (Figure 3 and Figure 4). In addition, the NDT pertaining to sequential inference was consistently smaller than NDT pertaining to naïve HCT-based detection (Figure 5).

In regards to hemorrhage detection, nonlinear (i.e., EKF) and linear (i.e., LO) sequential inference algorithms showed comparable performance (Figure 2, Figure 3, Figure 4 and Figure 5, Table 1). In many cases, both the LO and the EKF could detect hemorrhage promptly after hemorrhage occurred (Figure 2). As far as the F1 score and the corrected F1 score are concerned, the LO modestly outperformed the EKF in terms of the F1 score, while the EKF outperformed the LO in terms of the corrected F1 score. Scrutinizing the in silico evaluation results showed that the EKF was more prone to false detection (false positive) due to the transient fluctuations in the state estimates than the LO when internal hemorrhage and/or resuscitation started. However, most of the transient false detection events were associated with reasonably short durations (approximately <10% of the simulation time pertaining to the in silico evaluation scenario). Hence, such transient false alerts may not be too problematic. Further, transient false alerts due to resuscitation may be avoided by disabling the sequential inference algorithms for a brief period after resuscitation rate is adjusted. As far as the NDT is concerned, the LO and the EKF exhibited comparable performance. There was statistical significance in the difference in the NDT between them. But the absolute difference was small (3% on average; Table 1). All in all, internal hemorrhage detection performance was remarkable in both the LO and the EKF; the corrected F1 score was mostly >0.8 and, in the case of the EKF, >0.9 in approximately >50% of the scenarios investigated (Figure 4). The NDT was mostly <0.5, except in the region where hemorrhage rate is very high but resuscitation rate is very low (Figure 5).

4.2. Efficacy of Sequential Inference Algorithms with Respect to Hemorrhage and Fluid Resuscitation Rates

At the level of details, we note several interesting hemorrhage detection behaviors pertaining to sequential inference algorithms and naïve HCT-based detection. First, both the F1 score and the corrected F1 score pertaining to both the LO and the EKF tended to deteriorate as hemorrhage rate and resuscitation rate increased, although they were still good in the absolute sense (Figure 3 and Figure 4). This behavior may be attributed to the reasoning that the time available to detect internal hemorrhage decreases as hemorrhage rate and/or resuscitation rate increase(s) in most cases; BV is quickly lost if hemorrhage rate is high, while HCT quickly decreases if hemorrhage and/or resuscitation rates are high. However, also note that resuscitation restores the BV lost by internal hemorrhage and may improve the detection performance (and, accordingly, the F1 score and the corrected F1 score). Such a complex influence of resuscitation on the detection performance may explain the biphasic behavior of the corrected F1 score pertaining to the EKF, where it improved and then deteriorated as the resuscitation rate increased in the vicinity of 0.08 lpm hemorrhage rate (Figure 4). Second, both the F1 score and the corrected F1 score pertaining to naïve HCT-based detection were primarily governed by the resuscitation rate, although they were modestly governed by the internal hemorrhage rate as well; both the F1 score and the corrected F1 score tended to improve as resuscitation rate increased and hemorrhage rate decreased (Figure 3 and Figure 4). However, both the F1 score and the corrected F1 score tended to saturate when the resuscitation rate reached 40–60% of the hemorrhage rate. This behavior may be attributed to the reasoning that HCT quickly decreases as the resuscitation rate increases, which increases both true positives and false positives pertaining to naïve HCT-based detection (given that it declares detection due to the decrease in HCT regardless of the existence of internal hemorrhage). It appeared that both the F1 score and the corrected F1 score improved as true positives and false positives increased, after which they saturated when true positives and false positives (and, thus, true negatives) saturated. Third, the NDT pertaining to both the LO and the EKF as well as naïve HCT-based detection tended to improve as the resuscitation rate increased (Figure 5). This behavior may be attributed to the reasoning that resuscitation restores BV lost by hemorrhage, which extends the time to reach 25% BV loss.

4.3. Sequential Inference Based on Continuous HCT for Estimation of Internal Hemorrhage Rate: Potential and Feasibility

In contrast to hemorrhage detection, in regards to hemorrhage estimation, nonlinear sequential inference (i.e., EKF) significantly outperformed its linear counterpart (i.e., LO) (Figure 6). This observation is reasonable and anticipated because the EKF directly estimates hemorrhage rate, whereas the LO can only estimate the upper bound of hemorrhage rate (see Equation (11)). The hemorrhage estimation accuracy pertaining to the EKF may be practically useful: top 75% of NAE was <12%, top 50% of NAE was <7%, and top 25% of NAE was <3%.

4.4. Impact of HCT Measurement Noise on the Efficacy of Sequential Inference Algorithms

The analysis of the influence of sensor noise and plant parametric uncertainty on the detection and estimation of internal hemorrhage provided meaningful insights (Figure 7, Figure 8 and Figure 9). In regards to detection, parametric uncertainty dominated the detection performance when HCT measurement noise was small (<2%), while sensor noise dominated the detection performance when HCT measurement noise was large (≥2%) (Figure 7 and Figure 8). In regards to estimation of hemorrhage rate pertaining to the EKF, sensor noise but not parametric uncertainty dominated the estimation accuracy, and the trend appeared to be stronger as sensor noise level increased (Figure 9). Our analysis predicted that the corrected F1 score of ≥85% and ≥90% pertaining to the detection of internal hemorrhage may be achieved by the LO and the EKF, respectively, if sensor noise can be reduced to 1% level (from the currently available 3% level [28]). Our analysis also predicted that the accuracy of <30% pertaining to the estimation of the rate of internal hemorrhage may be achieved by the EKF if sensor noise can likewise be reduced to a 1% level. In addition, our analysis predicted that an additional 5–10% improvement may be achieved in the efficacy of both detecting and estimating the rate of internal hemorrhage if the sequential inference algorithms can be equipped with the ability to adapt to individual patients, e.g., by co-inferring the patient-specific mathematical model parameters together with the states. In this way, our analysis indicated that improving sensor accuracy and sequential inference algorithms may be equally important to improve hemorrhage detection and estimation performance.

5. Conclusions

We developed two alternative sequential inference algorithms based on continuous HCT sensing to enable prompt detection of internal hemorrhage. We showed that both the LO and the EKF can promptly detect internal hemorrhage across a wide range of hemorrhage and resuscitation rates. We also showed that the EKF can adequately estimate the rate of internal hemorrhage. The comparison of the sequential inference algorithms against a naïve HCT-based detection showed the superior performance of the sequential inference algorithms. All in all, our results provide supporting evidences to foster the future development of novel physics-based sequential inference analytics and high-accuracy high-precision continuous HCT sensing to mature internal hemorrhage monitoring capabilities.

Author Contributions

Conceptualization, J.-O.H.; methodology, Y.R.C., X.J., A.T. and J.-O.H.; software, Y.R.C. and X.J.; validation, Y.R.C., X.J. and J.-O.H.; formal analysis, Y.R.C., X.J. and J.-O.H.; investigation, Y.R.C., X.J., A.T. and J.-O.H.; resources, J.-O.H.; writing—original draft preparation, Y.R.C. and J.-O.H.; writing—review and editing, Y.R.C., X.J., A.T. and J.-O.H.; visualization, Y.R.C. and J.-O.H.; supervision, J.-O.H.; project administration, J.-O.H.; funding acquisition, J.-O.H. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article.

Conflicts of Interest

The authors declare no conflict of interest.

Figure 1 A lumped-parameter mathematical model of blood volume kinetics.

Figure 2 Representative examples of internal hemorrhage detection pertaining to (a) the LO (by Equation (12)), (b) the EKF (by Equation (18)), and (c) the naïve HCT (by Equation (19)) under 0.03 lpm hemorrhage rate, 0.015 lpm resuscitation rate, and 1% HCT noise.

Figure 3 Average F1 score pertaining to (a) the LO, (b) the EKF, and (c) the naïve HCT across a wide range of internal hemorrhage and resuscitation rates. The average was taken over all the VPs.

Figure 4 Average corrected F1 score pertaining to (a) the LO, (b) the EKF, and (c) the naïve HCT across a wide range of internal hemorrhage and resuscitation rates. The average was taken over all the VPs.

Figure 5 Average NDT pertaining to (a) the LO, (b) the EKF, and (c) the naïve HCT across a wide range of internal hemorrhage and resuscitation rates. The average was taken over all the VPs.

Figure 6 Probability distributions of errors associated with hemorrhage rate estimation pertaining to the LO and the EKF. The bars denote histograms. The dash dot lines denote the exponential distribution fitted to the histograms.

Figure 7 The impact of HCT measurement noise on the F1 scores pertaining to the LO and the EKF.

Figure 8 The impact of HCT measurement noise on the corrected F1 scores pertaining to the LO and the EKF.

Figure 9 The impact of HCT measurement noise on hemorrhage estimation error pertaining to the EKF.

diagnostics-14-01970-t001_Table 1 Table 1 Descriptive statistics (in mean and standard deviation) of precision, corrected precision, recall, sensitivity, specificity, accuracy, F1 score, corrected F1 score, and NDT pertaining to internal hemorrhage detection associated with the LO, the EKF, and naïve HCT-based detection, averaged over all the in silico evaluation scenarios (i.e., hemorrhage and resuscitation rates) under 1% HCT noise level. *: p < 0.016 with respect to naïve HCT-based detection. †: p < 0.016 with respect to LO.

	LO	EKF	HCT	
Precision	68 ± 13 *	63 ± 09 *†	45 ± 14	
Corrected Precision	77 ± 14 *	85 ± 15 *†	45 ± 14	
Recall	99 ± 03 *	98 ± 07 *	89 ± 29	
Sensitivity	99 ± 03 *	99 ± 07 *	89 ± 29	
Specificity	48 ± 24 *	39 ± 19 *†	0 ± 0	
F1 Score	80 ± 08 *	76 ± 07 *†	60 ± 19	
Corrected F1 Score	85 ± 08 *	90 ± 09 *†	59 ± 19	
NDT	0.23 ± 0.14 *	0.26 ± 0.17 *†	0.33 ± 0.24	

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
==== Refs
References

1. Kauvar D.S. Lefering R. Wade C.E. Impact of Hemorrhage on Trauma Outcome: An Overview of Epidemiology, Clinical Presentations, and Therapeutic Considerations J. Trauma Acute Care Surg. 2006 60 S3 S11 10.1097/01.ta.0000199961.02677.19
2. Trauma Facts—The American Association for the Surgery of Trauma Available online: https://www.aast.org/resources/trauma-facts (accessed on 27 June 2024)
3. Eastridge B.J. Hardin M. Cantrell J. Oetjen-Gerdes L. Zubko T. Mallak C. Wade C.E. Simmons J. Mace J. Mabry R. Died of Wounds on the Battlefield: Causation and Implications for Improving Combat Casualty Care J. Trauma Acute Care Surg. 2011 71 S4 S8 10.1097/TA.0b013e318221147b
4. Convertino V.A. Schiller A.M. Measuring the Compensatory Reserve to Identify Shock J. Trauma Acute Care Surg. 2017 82 S57 S65 10.1097/TA.0000000000001430 28333834
5. Wilson M. Davis D.P. Coimbra R. Diagnosis and Monitoring of Hemorrhagic Shock during the Initial Resuscitation of Multiple Trauma Patients: A Review J. Emerg. Med. 2003 24 413 422 10.1016/S0736-4679(03)00042-8 12745044
6. Fecher A. Stimpson A. Ferrigno L. Pohlman T.H. The Pathophysiology and Management of Hemorrhagic Shock in the Polytrauma Patient J. Clin. Med. 2021 10 4793 10.3390/jcm10204793 34682916
7. Hinojosa-laborde C. Rickards C.A. Ryan K.L. Convertino V.A. Heart Rate Variability During Simulated Hemorrhage with Lower Body Negative Pressure in High and Low Tolerant Subjects Front. Physiol. 2011 2 85 10.3389/fphys.2011.00085 22125539
8. Edla S. Reisner A.T. Liu J. Convertino V.A. Carter R. Reifman J. Is Heart Rate Variability Better than Routine Vital Signs for Prehospital Identification of Major Hemorrhage? Am. J. Emerg. Med. 2015 33 254 261 10.1016/j.ajem.2014.11.046 25534122
9. Nicia S.B. Van Veelen T.A. Stens J. Koopman M.M.W. Boer C. Detection of Volume Loss Using the Nexfin Device in Blood Donors Anaesthesia 2016 71 163 170 10.1111/anae.13283 26566706
10. Reljin N. Zimmer G. Malyuta Y. Shelley K. Mendelson Y. Blehar D.J. Darling C.E. Chon K.H. Using Support Vector Machines on Photoplethysmographic Signals to Discriminate between Hypovolemia and Euvolemia PLoS ONE 2018 13 e0195087 10.1371/journal.pone.0195087 29596477
11. Al-Ryalat N. AlRyalat S.A. Malkawi L.W. Abu-Hassan H. Samara O. Hadidy A. The Haematocrit to Haemoglobin Conversion Factor: A Cross-Sectional Study of Its Accuracy and Application N. Z. J. Med. Lab. Sci. 2018 72 18 21 Available online: https://search.informit.org/doi/abs/10.3316/INFORMIT.511877744440733 (accessed on 15 June 2024)
12. Resnick J. Cydulka R. Platz E. Jones R. Ultrasound Does Not Detect Early Blood Loss in Healthy Volunteers Donating Blood J. Emerg. Med. 2011 41 270 275 10.1016/j.jemermed.2010.11.040 21421294
13. Davuluri P. Wu J. Tang Y. Cockrell C.H. Ward K.R. Najarian K. Hargraves R.H. Hemorrhage Detection and Segmentation in Traumatic Pelvic Injuries Comput. Math. Methods Med. 2012 2012 898430 10.1155/2012/898430 22919433
14. Frasca D. Dahyot-Fizelier C. Catherine K. Levrat Q. Debaene B. Mimoz O. Accuracy of a Continuous Noninvasive Hemoglobin Monitor in Intensive Care Unit Patients Crit. Care Med. 2011 39 2277 2282 10.1097/CCM.0b013e3182227e2d 21666449
15. Kim S.H. Lilot M. Murphy L.S.L. Sidhu K.S. Yu Z. Rinehart J. Cannesson M. Accuracy of Continuous Noninvasive Hemoglobin Monitoring: A Systematic Review and Meta-Analysis Anesth. Analg. 2014 119 332 346 10.1213/ANE.0000000000000272 24914627
16. Guyton A.C. Coleman T.G. Cowley A.W. Liard J.F. Norman R.A. Manning R.D. Systems Analysis of Arterial Pressure Regulation and Hypertension Ann. Biomed. Eng. 1972 1 254 281 10.1007/BF02584211 4358506
17. Sagawa K. Critique of a Large-Scale Organ System Model: Guytonian Cardiovascular Model J. Dyn. Syst. Meas. Control 1975 97 259 265 10.1115/1.3426929
18. Siam J. Kadan M. Flaishon R. Barnea O. Blood Flow Versus Hematocrit in Optimization of Oxygen Transfer to Tissue During Fluid Resuscitation Cardiovasc. Eng. Technol. 2015 6 474 484 10.1007/s13239-015-0237-7 26577480
19. Tatara T. Tsunetoh T. Tashiro C. Crystalloid Infusion Rate during Fluid Resuscitation from Acute Haemorrhage Br. J. Anaesth. 2007 99 212 217 10.1093/bja/aem165 17584848
20. Gyenge C.C. Bowen B.D. Reed R.K. Bert J.L. Preliminary Model of Fluid and Solute Distribution and Transport during Hemorrhage Ann. Biomed. Eng. 2003 31 823 839 10.1114/1.1581878 12971615
21. Bighamian R. Reisner A.T. Hahn J.O. A Lumped-Parameter Subject-Specific Model of Blood Volume Response to Fluid Infusion Front. Physiol. 2016 7 390 10.3389/fphys.2016.00390 27642283
22. Baulig W. Seifert B. Spahn D.R. Theusinger O.M. Accuracy of Non-Invasive Continuous Total Hemoglobin Measurement by Pulse CO-Oximetry in Severe Traumatized and Surgical Bleeding Patients J. Clin. Monit. Comput. 2017 31 177 185 10.1007/s10877-015-9816-2 26686689
23. Marques N.R. Kramer G.C. Voigt R.B. Salter M.G. Kinsky M.P. Trending, Accuracy, and Precision of Noninvasive Hemoglobin Monitoring during Human Hemorrhage and Fixed Crystalloid Bolus Shock. 2015 44 (Suppl. S1) 45 49 10.1097/SHK.0000000000000310 25521537
24. Tivay A. Kramer G.C. Hahn J.O. Collective Variational Inference for Personalized and Generative Physiological Modeling: A Case Study on Hemorrhage Resuscitation IEEE Trans. Biomed. Eng. 2022 69 666 677 10.1109/TBME.2021.3103141 34375275
25. Snider E.J. Berard D. Vega S.J. Ross E. Knowlton Z.J. Avital G. Boice E.N. Hardware-in-Loop Comparison of Physiological Closed-Loop Controllers for the Autonomous Management of Hypotension Bioengineering 2022 9 420 10.3390/bioengineering9090420 36134966
26. Rafie A.D. Rath P.A. Michell M.W. Kirschner R.A. Deyo D.J. Prough D.S. Grady J.J. Kramer G.C. Hypotensive Resuscitation of Multiple Hemorrhages Using Crystalloid and Colloids Shock 2004 22 262 269 10.1097/01.shk.0000135255.59817.8c 15316397
27. Vaid S.U. Shah A. Michell M.W. Rafie A.D. Deyo D.J. Prough D.S. Kramer G.C. Normotensive and Hypotensive Closed-Loop Resuscitation Using 3.0% NaCl to Treat Multiple Hemorrhages in Sheep Crit. Care Med. 2006 34 1185 1192 10.1097/01.CCM.0000207341.78696.3A 16484921
28. Kost G.J. Tran N.K. Continuous Noninvasive Hemoglobin Monitoring: The Standard of Care and Future Impact Crit. Care Med. 2011 39 2369 10.1097/CCM.0b013e3182266013 21926497
29. Schadt J.C. Ludbrook J. Hemodynamic and Neurohumoral Responses to Acute Hypovolemia in Conscious Mammals Am. J. Physiol. 1991 260 H305 H318 10.1152/AJPHEART.1991.260.2.H305 1671735
