Abstract
Anemia is a global health concern affecting approximately 1.6 billion people. Traditional diagnosis relies on invasive venous blood draws, which can be burdensome for frequent monitoring. This paper introduces HgbNet, a novel machine learning framework designed to predict hemoglobin (Hgb) levels and anemia severity directly from Electronic Health Record (EHR) data. By addressing the inherent irregularities in clinical data through a specialized "NanDense" layer and a triple-attention mechanism, HgbNet provides a high-accuracy, non-invasive alternative for clinical decision support.
Introduction
The diagnosis of anemia typically requires laboratory testing of blood samples. While Electronic Health Records (EHRs) contain extensive longitudinal patient data that could theoretically predict these levels, the data is characterized by significant irregularities that challenge standard AI models.
The authors identify two primary types of irregularity in EHR data:
- Global Irregularity: The intervals between hospital visits are inconsistent, ranging from hours to months.
- Local Irregularity: Within a single visit, the set of tests performed varies, leading to a "Swiss cheese" pattern of missing values.
Traditional approaches often rely on data imputation (filling in missing values), which can introduce bias and distort clinical reality. HgbNet is designed to handle these irregularities natively without distorting the underlying data.
Methods
HgbNet employs a specialized architecture to mimic clinical reasoning when reviewing patient history. The model's core components are designed to handle missingness and temporal decay of information.
Core Components
- NanDense Layer: Instead of imputing missing data, this layer adaptively adjusts neuron activations based only on available features. It utilizes a "missing indicator" to distinguish between a zero-value result and a test that was not performed, leveraging the "hidden" clinical intent behind why certain tests are ordered.
- Time Embedding (TE) Layer: This layer weights historical data based on its temporal proximity to the prediction point, ensuring that recent clinical events have a greater influence than distant ones.
- Triple-Attention Mechanism: To manage complex temporal relationships, the model uses three levels of attention:
- General Attention: Captures holistic interactions across the entire history.
- Feature-level Attention: Addresses local irregularity by accounting for the specific timing of individual tests.
- Label-level Attention: Addresses global irregularity by focusing on the timing of overall hospital visits.
- LSTM-M: A modified Long Short-Term Memory network processes these irregular sequences to capture long-term patient trends.
Datasets and Experimental Setup
The model was validated using two large-scale clinical databases:
- MIMIC-III: Data from approximately 60,000 critical care patients.
- eICU: A multi-center database covering over 139,000 patients across 208 US hospitals.
After filtering for patients with sufficient historical records (at least 80), the final study included 9,620 samples from MIMIC-III and 11,742 samples from eICU.
Results and Discussion
HgbNet demonstrated superior performance compared to standard LSTMs and other state-of-the-art time-aware models.
Predictive Performance
- Hemoglobin Level Regression: In predicting the next Hgb level based on history, HgbNet achieved an R² score of 0.867 on MIMIC-III, significantly outperforming the baseline LSTM (0.685).
- Anemia Severity Classification: For classifying anemia into Mild, Moderate, or Severe categories, the model achieved a Weighted F1 score of 0.855.
- Impact of Real-time Vitals: By incorporating non-invasive, real-time metrics (e.g., SpO2, heart rate, blood pressure) at the time of prediction, the R² score improved to 0.917, suggesting that simple vitals can effectively anchor historical EHR data.
Key Insights
The researchers found that "missingness" is itself informative; the model learns from the fact that a clinician chose not to order a specific test. Furthermore, the "Golden Window" for prediction was identified: accuracy is highest when the interval between the last record and the prediction is less than 24 hours. Performance degrades significantly after 3 days as the patient's physiological state evolves.
Conclusion
HgbNet represents a significant step toward non-invasive anemia monitoring using existing EHR data. By treating missing data and irregular timing as features rather than obstacles, the model achieves high predictive accuracy. Future work will explore integrating data from wearable devices to maintain accuracy during the gaps between clinical visits and identifying the most informative non-invasive markers for anemia.
Summary updated