Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,49 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
|
5 |
+
# Model Card for Model longluu/Clinical-NER-MedMentions-GatorTronS
|
6 |
+
The model is an NER LLM algorithm that can classify each word in a text into different clinical categories.
|
7 |
+
|
8 |
+
## Model Details
|
9 |
+
|
10 |
+
### Model Description
|
11 |
+
The base pretrained model is GatorTron-base which was trained on billions of words in various clinical texts (https://huggingface.co/UFNLP/gatortron-base).
|
12 |
+
Then using the MedMentions dataset (https://arxiv.org/pdf/1902.09476v1.pdf), I fine-tuned the model for NER task in which the model can classify each word in a text into different clinical categories.
|
13 |
+
The category system is a simplified version of UMLS concept system and consists of 21 categories:
|
14 |
+
"['Living Beings', 'Virus']", "['Living Beings', 'Bacterium']", "['Anatomy', 'Anatomical Structure']", "['Anatomy', 'Body System']", "['Anatomy', 'Body Substance']", "['Disorders', 'Finding']", "['Disorders', 'Injury or Poisoning']", "['Phenomena', 'Biologic Function']", "['Procedures', 'Health Care Activity']", "['Procedures', 'Research Activity']", "['Devices', 'Medical Device']", "['Concepts & Ideas', 'Spatial Concept']", "['Occupations', 'Biomedical Occupation or Discipline']", "['Organizations', 'Organization']", "['Living Beings', 'Professional or Occupational Group']", "['Living Beings', 'Population Group']", "['Chemicals & Drugs', 'Chemical']", "['Objects', 'Food']", "['Concepts & Ideas', 'Intellectual Product']", "['Physiology', 'Clinical Attribute']", "['Living Beings', 'Eukaryote']", 'None'
|
15 |
+
|
16 |
+
### Model Sources [optional]
|
17 |
+
The github code associated with the model can be found here: https://github.com/longluu/LLM-NER-clinical-text.
|
18 |
+
|
19 |
+
## Training Details
|
20 |
+
|
21 |
+
### Training Data
|
22 |
+
|
23 |
+
The MedMentions dataset contain 4,392 abstracts released in PubMed®1 between January 2016 and January 2017. The abstracts were manually annotated for biomedical concepts. Details are provided in https://arxiv.org/pdf/1902.09476v1.pdf and data is in https://github.com/chanzuckerberg/MedMentions.
|
24 |
+
[More Information Needed]
|
25 |
+
|
26 |
+
#### Training Hyperparameters
|
27 |
+
|
28 |
+
The hyperparameters are --batch_size 4
|
29 |
+
--num_train_epochs 5
|
30 |
+
--learning_rate 5e-5
|
31 |
+
--weight_decay 0.01
|
32 |
+
|
33 |
+
## Evaluation
|
34 |
+
### Testing Data, Factors & Metrics
|
35 |
+
#### Testing Data
|
36 |
+
The model was trained and validated on train and validation sets. Then it was tested on a separate test set.
|
37 |
+
Note that some concepts in the test set were not available in the train and validatin sets.
|
38 |
+
|
39 |
+
#### Metrics
|
40 |
+
Here we use several metrics for classification tasks including macro-average F1, precision, recall and Matthew correlation.
|
41 |
+
|
42 |
+
### Results
|
43 |
+
{'f1': 0.6271402249699903,
|
44 |
+
'precision': 0.6691625224055963,
|
45 |
+
'recall': 0.6085333637974402,
|
46 |
+
'matthews_correlation': 0.720898121696139}
|
47 |
+
|
48 |
+
## Model Card Contact
|
49 |
+
Feel free to reach out to me at [email protected] if you have any question or suggestion.
|