lcampillos commited on
Commit
7280dcc
1 Parent(s): 6b26453

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +127 -0
README.md ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - precision
7
+ - recall
8
+ - f1
9
+ - accuracy
10
+ model-index:
11
+ - name: roberta-es-clinical-trials-umls-7sgs-ner
12
+ results: []
13
+ widget:
14
+ - text: "Criterios de inclusión: 18 a 65 años; necrosis avascular de cadera; sintomática de menos de 6 meses; capaz de otorgar consentimiento informado. Criterios de exclusión: embarazo, lactancia, mujer fértil sin métodos anticonceptivos adecuados; tratamiento activo con bifosfonatos; infección por VIH, hepatitis B o hepatitis C; historia de neoplasia en cualquier organo."
15
+
16
+ ---
17
+
18
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
19
+ should probably proofread and complete it, then remove this comment. -->
20
+
21
+ # roberta-es-clinical-trials-umls-7sgs-ner
22
+
23
+ This medical named entity recognition model detects 7 types of semantic groups from the [Unified Medical Language System (UMLS)](https://www.nlm.nih.gov/research/umls/index.html) ([Bodenreider 2004](https://academic.oup.com/nar/article/32/suppl_1/D267/2505235)):
24
+ - ANAT: body parts and anatomy (e.g. *garganta*, 'throat')
25
+ - CHEM: chemical entities and pharmacological substances (e.g. *aspirina*,'aspirin')
26
+ - DEVI: medical devices (e.g. *catéter*, 'catheter')
27
+ - DISO: pathologic conditions (e.g. *dolor*, 'pain')
28
+ - LIVB: living beings (e.g. *paciente*, 'patient')
29
+ - PHYS: physiological processes (e.g. *respiración*, 'breathing')
30
+ - PROC: diagnostic and therapeutic procedures, laboratory analyses and medical research activities (e.g. *cirugía*, 'surgery')
31
+
32
+ The model achieves the following results on the test set (when trained with the training and development set; results are averaged over 5 evaluation rounds):
33
+ - Precision: 0.876 (±0.003)
34
+ - Recall: 0.895 (±0.001)
35
+ - F1: 0.885 (±0.001)
36
+ - Accuracy: 0.960 (±0.001)
37
+
38
+
39
+ ## Model description
40
+
41
+ This model adapts the pre-trained model [bsc-bio-ehr-es](https://huggingface.co/PlanTL-GOB-ES/bsc-bio-ehr-es), presented in [Pio Carriño et al. (2022)](https://aclanthology.org/2022.bionlp-1.19/).
42
+ It is fine-tuned to conduct medical named entity recognition on Spanish texts about clinical trials.
43
+ The model is fine-tuned on the [CT-EBM-ES corpus (Campillos-Llanos et al. 2021)](https://bmcmedinformdecismak.biomedcentral.com/articles/10.1186/s12911-021-01395-z).
44
+
45
+ ## Intended uses & limitations
46
+
47
+ **Disclosure**: *This model is under development and needs to be improved. It should not be used for medical decision making without human assistance and supervision*
48
+
49
+ This model is intended for a generalist purpose, and may have bias and/or any other undesirable distortions.
50
+
51
+ Third parties who deploy or provide systems and/or services using any of these models (or using systems based on these models) should note that it is their responsibility to mitigate the risks arising from their use. Third parties, in any event, need to comply with applicable regulations, including regulations concerning the use of artificial intelligence.
52
+
53
+ The owner or creator of the models will in no event be liable for any results arising from the use made by third parties of these models.
54
+
55
+ **Descargo de responsabilidad**: *Esta herramienta se encuentra en desarrollo y no debe ser empleada para la toma de decisiones médicas*
56
+
57
+ La finalidad de este modelo es generalista, y se advierte que puede tener sesgos y/u otro tipo de distorsiones indeseables.
58
+
59
+ Terceras partes que desplieguen o proporcionen sistemas y/o servicios usando alguno de estos modelos (o utilizando sistemas basados en estos modelos) han tener presente que es su responsabilidad abordar y minimizar los riesgos derivados de su uso. Las terceras partes, en cualquier circunstancia, deben cumplir con la normativa aplicable, incluyendo la normativa que concierne al uso de la inteligencia artificial.
60
+
61
+ El propietario o creador de los modelos de ningún modo será responsable de los resultados derivados del uso que las terceras partes hagan de estos modelos.
62
+
63
+
64
+ ## Training and evaluation data
65
+
66
+ The data used for fine-tuning are the [Clinical Trials for Evidence-Based-Medicine in Spanish corpus](http://www.lllf.uam.es/ESP/nlpdata/wp2/).
67
+ It is a collection of 1200 texts about clinical trials studies and clinical trials announcements:
68
+ - 500 abstracts from journals published under a Creative Commons license, e.g. available in PubMed or the Scientific Electronic Library Online (SciELO)
69
+ - 700 clinical trials announcements published in the European Clinical Trials Register and Repositorio Español de Estudios Clínicos
70
+
71
+ If you use the CT-EBM-ES resource, please, cite as follows:
72
+
73
+ ```
74
+ @article{campillosetal-midm2021,
75
+         title = {A clinical trials corpus annotated with UMLS© entities to enhance the access to Evidence-Based Medicine},
76
+         author = {Campillos-Llanos, Leonardo and Valverde-Mateos, Ana and Capllonch-Carri{\'o}n, Adri{\'a}n and Moreno-Sandoval, Antonio},
77
+         journal = {BMC Medical Informatics and Decision Making},
78
+         volume={21},
79
+ number={1},
80
+ pages={1--19},
81
+ year={2021},
82
+ publisher={BioMed Central}
83
+ }
84
+ ```
85
+
86
+
87
+
88
+ ## Training procedure
89
+
90
+ ### Training hyperparameters
91
+
92
+ The following hyperparameters were used during training:
93
+ - learning_rate: 2e-05
94
+ - train_batch_size: 16
95
+ - eval_batch_size: 16
96
+ - seed: we used different seeds for 5 evaluation rounds, and uploaded the model with the best results
97
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
98
+ - lr_scheduler_type: linear
99
+ - num_epochs: 12
100
+
101
+
102
+ ### Training results (test set; average and standard deviation of 5 rounds with different seeds)
103
+
104
+ | Precision | Recall | F1 | Accuracy |
105
+ |:--------------:|:--------------:|:--------------:|:--------------:|
106
+ | 0.876 (±0.003) | 0.895 (±0.001) | 0.885 (±0.001) | 0.960 (±0.001) |
107
+
108
+
109
+ **Results per class (test set; average and standard deviation of 5 rounds with different seeds)**
110
+
111
+ | Class | Precision | Recall | F1 | Support |
112
+ |:----------:|:--------------:|:--------------:|:--------------:|:---------:|
113
+ | ANAT | 0.726 (±0.027) | 0.695 (±0.019) | 0.710 (±0.018) | 307 |
114
+ | CHEM | 0.910 (±0.009) | 0.927 (±0.006) | 0.918 (±0.003) | 2932 |
115
+ | DEVI | 0.647 (±0.023) | 0.810 (±0.019) | 0.719 (±0.021) | 134 |
116
+ | DISO | 0.891 (±0.005) | 0.898 (±0.002) | 0.894 (±0.002) | 3064 |
117
+ | LIVB | 0.943 (±0.004) | 0.956 (±0.006) | 0.949 (±0.002) | 1671 |
118
+ | PHYS | 0.779 (±0.008) | 0.760 (±0.018) | 0.769 (±0.009) | 308 |
119
+ | PROC | 0.841 (±0.007) | 0.874 (±0.005) | 0.857 (±0.004) | 4150 |
120
+
121
+
122
+ ### Framework versions
123
+
124
+ - Transformers 4.17.0
125
+ - Pytorch 1.10.2+cu113
126
+ - Datasets 1.18.4
127
+ - Tokenizers 0.11.6