|
--- |
|
license: mit |
|
language: |
|
- en |
|
tags: |
|
- medical |
|
--- |
|
# Model Card for Labrador |
|
|
|
<!-- Provide a quick summary of what the model is/does. --> |
|
Labrador is a pre-trained continuous Transformer model for masked ***lab*** modeling. |
|
|
|
## Model Details |
|
|
|
### Model Description |
|
|
|
<!-- Provide a longer summary of what this model is. --> |
|
Laboratory data are a rich source of information about a patient's health. They are often used to diagnose and monitor disease, and to guide treatment. However, lab values are continuous, often missing and therefore difficult to model with the Transformer architecture. Labrador solves this problem by jointly embedding lab values with a token for the lab test identifier so that the quantitative and qualitative information from each test is combined into a single representation. |
|
|
|
Labrador is pre-trained on a large corpus of 100 million lab tests from over 260,000 patients. We rigorously evaluate Labrador on intrinsic and extrinsic tasks, including four real-world problems: cancer diagnosis, COVID-19 diagnosis, predicting elevated alcohol consumption and ICU mortality due to sepsis. We find that Labrador is superior to BERT across all evaluations but both are outperformed by XGBoost indicating that transfer learning from continuous EHR data is still an open problem. |
|
|
|
We discuss the limitations of our approach and suggest future directions for research in the corresponding paper, [Labrador: Exploring the Limits of Masked Language Modeling for Laboratory Data](https://arxiv.org/abs/2312.11502). |
|
|
|
|
|
- **Developed by:** David Bellamy |
|
- **Model type:** BERT-style transformer |
|
- **License:** MIT |
|
|
|
## Uses |
|
|
|
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> |
|
|
|
### Direct Use |
|
|
|
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. --> |
|
The base models can be used directly to impute lab values and/or MIMIC lab codes conditional on a set of lab values and lab codes. |
|
|
|
### Downstream Use |
|
|
|
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app --> |
|
The associated codebase includes a fine-tuning wrapper class that can be used to repurpose these base models for downstream regression or classification tasks. |
|
|
|
## Bias, Risks, and Limitations |
|
|
|
<!-- This section is meant to convey both technical and sociotechnical limitations. --> |
|
These models were solely pre-trained on patient data from [MIMIC-IV](https://mimic.mit.edu/). This population is not representative of all patients and therefore the statistical patterns that these models learned will not apply equally well to all individuals. |
|
|
|
### Recommendations |
|
|
|
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. --> |
|
Caution should be used when applying these models to downstream prediction tasks. Be sure to include a fairness assessment in your evaluations in order to assess model bias. |
|
|
|
## How to Get Started with the Model |
|
|
|
See the [Get Started instructions](https://github.com/DavidBellamy/labrador?tab=readme-ov-file#get-started) with the associated codebase. |
|
|
|
## Training & Evaluation Details |
|
|
|
See the associated [publication](https://arxiv.org/abs/2312.11502) and [codebase](https://github.com/DavidBellamy/labrador). |
|
|
|
|
|
## Environmental Impact |
|
|
|
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly --> |
|
|
|
- **Hardware Type:** A100 PCIe 40GB |
|
- **Hours used:** 240 (for pre-training, not counting fine-tuning evaluations) |
|
- **Cloud Provider:** Private infrastructure |
|
- **Compute Region:** N/A |
|
- **Carbon Emitted:** 50 kg CO2 eq. |
|
|
|
Carbon emissions were estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). |
|
|
|
## Citation |
|
|
|
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. --> |
|
If you use Labrador in your work, please cite: |
|
|
|
**BibTeX:** |
|
|
|
|
|
**APA:** |
|
|
|
|
|
|
|
|
|
## Model Card Contact |
|
|
|
Correspondence to David Bellamy. You can find my contact on my personal website: https://davidbellamy.github.io/ |
|
|
|
|
|
|