/ Модель

Характеристики

Контекст
514 токенов
Параметры
659 млн
Лицензия
CC BY-NC 4.0
Архитектура
xlm-roberta · dense
Опубликована
29 сен 2023

xlm-roberta-large-spanish-trials-cases-7sgs-umls

Разметка токеновТекст → label3 профессии
153скачиваний за 30 дней0лайковвеса обновлены1 окт 2024

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная XLM-RoBERTa Large для распознавания семи типов медицинских сущностей в испанских текстах.

Модель medspaner/xlm-roberta-large-spanish-trials-cases-7sgs-umls разработана для распознавания медицинских сущностей в текстах на испанском языке. Это дообученная версия XLM-RoBERTa Large, содержащая 658,7 млн параметров и принимающая последовательности длиной до 514 токенов.

Модель выделяет семь семантических групп UMLS: анатомические структуры, химические и фармакологические вещества, медицинские устройства, заболевания и симптомы, живые существа, физиологические процессы, а также диагностические и лечебные процедуры. Она обучена на испанском корпусе клинических исследований CT-EBM-ES и 100 клинических случаях. В тестовой оценке указаны F1 0,910 и точность 0,955; результаты относятся к описанному набору данных.

Модель может помочь размечать медицинские публикации, объявления клинических исследований и клинические случаи для последующего поиска или анализа. Разработчики предупреждают, что модель находится в разработке, может содержать смещения и не предназначена для принятия медицинских решений без участия специалиста. Лицензия — CC BY-NC 4.0, допускающая использование с указанием авторства и ограничивающая коммерческое применение.

Сценарии применения

  • разметка заболеваний и симптомов в клинических случаях на испанском языке
  • извлечение лекарств и химических веществ из медицинских публикаций
  • поиск анатомических терминов в описаниях клинических исследований
  • выделение диагностических и лечебных процедур в медицинских текстах
  • аннотирование клинических исследований для последующего анализа

Ограничения

Модель находится в разработке, может допускать ошибки и смещения; её нельзя использовать для принятия медицинских решений без проверки и надзора специалиста. Указанные метрики получены на тестовом наборе, а лицензия CC BY-NC 4.0 ограничивает коммерческое использование.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

xlm-roberta-large-spanish-trials-cases-7sgs-umls

This medical named entity recognition model detects 7 types of semantic groups from the Unified Medical Language System (UMLS) (Bodenreider 2004):

  • ANAT: body parts and anatomy (e.g. garganta, 'throat')
  • CHEM: chemical entities and pharmacological substances (e.g. aspirina,'aspirin')
  • DEVI: medical devices (e.g. catéter, 'catheter')
  • DISO: pathologic conditions (e.g. dolor, 'pain')
  • LIVB: living beings (e.g. paciente, 'patient')
  • PHYS: physiological processes (e.g. respiración, 'breathing')
  • PROC: diagnostic and therapeutic procedures, laboratory analyses and medical research activities (e.g. cirugía, 'surgery')

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):

  • Precision: 0.905 (±0.007)
  • Recall: 0.916 (±0.004)
  • F1: 0.910 (±0.005)
  • Accuracy: 0.955 (±0.002)

Model description

This model adapts the pre-trained model xlm-roberta-large-spanish-clinical, presented in Lange et al. (2022). It is fine-tuned to conduct medical named entity recognition on texts about in Spanish. The model is fine-tuned on the CT-EBM-ES corpus (Campillos-Llanos et al. 2021) and 100 clinical cases with Creative Commons License.

If you use this model, please, cite as follows:

@article{campillosetal2024,
        title = {{Hybrid tool for semantic annotation and concept extraction of medical texts in Spanish}},
        author = {Campillos-Llanos, Leonardo and Valverde-Mateos, Ana and Capllonch-Carri{\'o}n, Adri{\'a}n},
        journal = {BMC Bioinformatics},
        year={2024},
        publisher={BioMed Central}
}

Intended uses & limitations

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

This model is intended for a generalist purpose, and may have bias and/or any other undesirable distortions.

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.

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.

Descargo de responsabilidad: Esta herramienta se encuentra en desarrollo y no debe ser empleada para la toma de decisiones médicas

La finalidad de este modelo es generalista, y se advierte que puede tener sesgos y/u otro tipo de distorsiones indeseables.

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.

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.

Training and evaluation data

The data used for fine-tuning are the Clinical Trials for Evidence-Based-Medicine in Spanish corpus. It is a collection of 1200 texts about clinical trials studies and clinical trials announcements:

  • 500 abstracts from journals published under a Creative Commons license, e.g. available in PubMed or the Scientific Electronic Library Online (SciELO)
  • 700 clinical trials announcements published in the European Clinical Trials Register and Repositorio Español de Estudios Clínicos

If you use the CT-EBM-ES resource, please, cite as follows:

@article{campillosetal-midm2021,
        title = {A clinical trials corpus annotated with UMLS© entities to enhance the access to Evidence-Based Medicine},
        author = {Campillos-Llanos, Leonardo and Valverde-Mateos, Ana and Capllonch-Carri{\'o}n, Adri{\'a}n and Moreno-Sandoval, Antonio},
        journal = {BMC Medical Informatics and Decision Making},
        volume={21},
        number={1},
        pages={1--19},
        year={2021},
        publisher={BioMed Central}
}

To fine-tune the model, we also used 100 clinical cases with Creative Commons licences.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • seed: we used different seeds for 5 evaluation rounds, and uploaded the model with the best results
  • optimizer: Adam
  • num_epochs: average 21.75 epochs (±6.34); trained with early stopping if no improvement after 5 epochs (early stopping patience: 5)

Training results (test set; average and standard deviation of 5 rounds with different seeds)

PrecisionRecallF1Accuracy
0.905 (±0.007)0.916 (±0.004)0.910 (±0.005)0.955 (±0.002)

Framework versions

  • Transformers 4.17.0
  • Pytorch 1.10.2+cu113
  • Datasets 1.18.4
  • Tokenizers 0.11.6

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · token-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
XLMRobertaForTokenClassification
Ревизия весов
7a08824

0 моделей