Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- spacy
|
| 4 |
+
- arxiv:2408.06930
|
| 5 |
+
- medical
|
| 6 |
+
language:
|
| 7 |
+
- nl
|
| 8 |
+
license: gpl-3.0
|
| 9 |
+
model-index:
|
| 10 |
+
- name: Echocardiogram_Multimodel_reduced
|
| 11 |
+
results:
|
| 12 |
+
- task:
|
| 13 |
+
type: text-classification
|
| 14 |
+
dataset:
|
| 15 |
+
type: test
|
| 16 |
+
name: internal test set
|
| 17 |
+
metrics:
|
| 18 |
+
- name: Macro f1
|
| 19 |
+
type: f1
|
| 20 |
+
value: 0.946
|
| 21 |
+
verified: false
|
| 22 |
+
- name: Macro precision
|
| 23 |
+
type: precision
|
| 24 |
+
value: 0.946
|
| 25 |
+
verified: false
|
| 26 |
+
- name: Macro recall
|
| 27 |
+
type: recall
|
| 28 |
+
value: 0.945
|
| 29 |
+
verified: false
|
| 30 |
+
pipeline_tag: text-classification
|
| 31 |
+
metrics:
|
| 32 |
+
- f1
|
| 33 |
+
- precision
|
| 34 |
+
- recall
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
# Description
|
| 38 |
+
This model is a [MedRoBERTa.nl](https://huggingface.co/CLTL/MedRoBERTa.nl) model finetuned on Dutch echocardiogram reports sourced from Electronic Health Records.
|
| 39 |
+
The publication associated with the span classification task can be found at https://arxiv.org/abs/2408.06930.
|
| 40 |
+
The config file for training the model can be found at https://github.com/umcu/echolabeler.
|
| 41 |
+
|
| 42 |
+
# Minimum working example
|
| 43 |
+
```python
|
| 44 |
+
from transformer import pipeline
|
| 45 |
+
```
|
| 46 |
+
```python
|
| 47 |
+
le_pipe = pipeline(model="UMCU/Echocardiogram_Multimodel_bespoke")
|
| 48 |
+
document = "Lorem ipsum"
|
| 49 |
+
results = le_pipe(document)
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
# Label Scheme
|
| 53 |
+
|
| 54 |
+
<details>
|
| 55 |
+
|
| 56 |
+
<summary>View label scheme</summary>
|
| 57 |
+
|
| 58 |
+
| Component | Labels |
|
| 59 |
+
| --- | --- |
|
| 60 |
+
| **`bespoke`** | `pe_Present`, `rv_dil_Present`, `wma_Present`, `lv_dil_Present`, `aortic_valve_native_stenosis_Present`, `mitral_valve_native_regurgitation_Present`, `lv_sys_func_Present`, `rv_sys_func_Present`, `aortic_valve_native_regurgitation_Present`, `lv_dias_func_Present`,`Normal_or_No_Label`, `tricuspid_valve_native_regurgitation_Present` |
|
| 61 |
+
| **`reduced`** | `Normal_or_No_Label`, `Present` |
|
| 62 |
+
</details>
|
| 63 |
+
|
| 64 |
+
Here, for the reduced labels `Present` means that for *any one or multiple* of the pathologies we have a positive result.
|
| 65 |
+
|
| 66 |
+
Here, for the pathologies we have
|
| 67 |
+
|
| 68 |
+
<details>
|
| 69 |
+
|
| 70 |
+
<summary>View pathologies</summary>
|
| 71 |
+
|
| 72 |
+
| Annotation | Pathology |
|
| 73 |
+
| --- | --- |
|
| 74 |
+
| pe | Pericardial Effusion |
|
| 75 |
+
| wma | Wall Motion Abnormality |
|
| 76 |
+
| lv_dil | Left Ventricle Dilation |
|
| 77 |
+
| rv_dil | Right Ventricle Dilation |
|
| 78 |
+
| lv_syst_func | Left Ventricle Systolic Dysfunction |
|
| 79 |
+
| rv_syst_func | Right Ventricle Systolic Dysfunction |
|
| 80 |
+
| lv_dias_func | Diastolic Dysfunction |
|
| 81 |
+
| aortic_valve_native_stenosis | Aortic Stenosis |
|
| 82 |
+
| mitral_valve_native_regurgitation | Mitral valve regurgitation |
|
| 83 |
+
| tricuspid_valve_native_regurgitation | Tricuspid regurgitation |
|
| 84 |
+
| aortic_valve_native_regurgitation | Aortic Regurgitation |
|
| 85 |
+
</details>
|
| 86 |
+
|
| 87 |
+
Note: `lv_dias_func` should have been `dias_func`..
|
| 88 |
+
|
| 89 |
+
# Intended use
|
| 90 |
+
The model is developed for *document* classification of Dutch clinical echocardiogram reports.
|
| 91 |
+
Since it is a domain-specific model trained on medical data, it is **only** meant to be used on medical NLP tasks for *Dutch echocardiogram reports*.
|
| 92 |
+
|
| 93 |
+
# Data
|
| 94 |
+
The model was trained on approximately 4,000 manually annotated echocardiogram reports from the University Medical Centre Utrecht.
|
| 95 |
+
The training data was anonymized before starting the training procedure.
|
| 96 |
+
|
| 97 |
+
| Feature | Description |
|
| 98 |
+
| --- | --- |
|
| 99 |
+
| **Name** | `Echocardiogram_SpanCategorizer_aortic_stenosis` |
|
| 100 |
+
| **Version** | `1.0.0` |
|
| 101 |
+
| **transformers** | `>=4.40.0` |
|
| 102 |
+
| **Default Pipeline** | `pipeline`, `text-classification` |
|
| 103 |
+
| **Components** | `RobertaForSequenceClassification` |
|
| 104 |
+
| **License** | `cc-by-sa-4.0` |
|
| 105 |
+
| **Author** | [Bram van Es]() |
|
| 106 |
+
|
| 107 |
+
# Contact
|
| 108 |
+
If you are having problems with this model please add an issue on our git: https://github.com/umcu/echolabeler/issues
|
| 109 |
+
|
| 110 |
+
# Usage
|
| 111 |
+
If you use the model in your work please use the following referral; https://doi.org/10.48550/arXiv.2408.06930
|
| 112 |
+
|
| 113 |
+
# References
|
| 114 |
+
Paper: Bauke Arends, Melle Vessies, Dirk van Osch, Arco Teske, Pim van der Harst, René van Es, Bram van Es (2024): Diagnosis extraction from unstructured Dutch echocardiogram reports using span- and document-level characteristic classification, Arxiv https://arxiv.org/abs/2408.06930
|