/ Модель

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

Контекст
512 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
bert · dense

psych-search

Заполнение пропусковТекст → текст3 профессии

Англоязычная BERT-модель, продолженно предобученная на аннотациях PubMed по психологии и психиатрии для построения NLP-систем в области психического здоровья.

12скачиваний за 30 дней8лайковвеса обновлены22 сен 2021

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Psych-Search — англоязычная модель на архитектуре BERT, разработанная nlp4good для NLP-сценариев в области психического здоровья. Она создана на основе allenai/scibert_scivocab_uncased посредством продолженного предобучения на аннотациях исследований по психологии и психиатрии из PubMed. Модель содержит 137,1 млн параметров, принимает текст и рассчитана на контекст до 512 токенов; доступны реализации PyTorch и Flax.

Модель предназначена как основа для классификаторов и систем понимания текста, в том числе для расширения таксономии MeSH категориями профилактических стратегий и защитных факторов, а также извлечения и стандартизации факторов риска и защиты. Для оценки её дообучили на задаче биомедицинской индексации, похожей на BioASQ Task A; в описанном эксперименте micro-F1 составил 0,7415.

В метаданных основная задача указана как заполнение маски (fill-mask). Это специализированная языковая модель, а не готовый клинический инструмент или законченная система поиска. Обучающие данные имеют сильный дисбаланс по представленности сексуальных и гендерных меньшинств и некоторых этнических групп, что может влиять на информационный поиск и последующие модели. Лицензия — Apache-2.0.

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

  • Заполнение пропусков в англоязычных текстах по психологии и психиатрии
  • Дообучение классификатора статей по категориям MeSH в области психического здоровья
  • Разработка поиска исследований о профилактике суицида среди подростков
  • Извлечение факторов риска и защитных факторов из научных аннотаций
  • Создание систем индексации литературы по психическому здоровью

Ограничения

Модель обучалась на данных с выраженным дисбалансом по представленности сексуальных и гендерных меньшинств и ряда этнических групп, что может смещать результаты поиска и последующих NLP-моделей. Для прикладных сценариев классификации и извлечения сущностей требуется разработка или дообучение отдельной системы.

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

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

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

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

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

Открыть на Hugging Face

Psych-Search

Psych-Search is a work in progress to bring cutting edge NLP to mental health practitioners. The model detailed here serves as a foundation for traditional classification models as well as NLU models for a Psych-Search application. The goal of the Psych-Search Application is to use a combination of traditional text classification models to expand the scope of the MESH taxonomy with the inclusion of relevant categories for mental health pracitioners designing suicide prevention programs for adolescent communities within the United States, as well as the automatic extraction and standardization of entities such as risk factors and protective factors.

Our first expansion efforts to the MESH taxonomy include categories:

  • Prevention Strategies
  • Protective Factors

We are actively looking for partners on this work and would love to hear from you! Please ping us at nlp4good@gmail.com.

Model description

This model is an extension of allenai/scibert_scivocab_uncased. Continued pretraining was done using SciBERT as the base model using abstract text only from Pyschology and Psychiatry PubMed research. Training was done on approximately 3.5 million papers for 10 epochs and evaluated on a task similar to BioASQ Task A.

Intended uses & limitations

How to use

from transformers import AutoTokenizer, AutoModel

mname = "nlp4good/psych-search"
tokenizer = AutoTokenizer.from_pretrained(mname)
model = AutoModel.from_pretrained(mname)

Limitations and bias

This model was trained on all PubMed abstracts categorized under Psychology and Psychiatry. As of March 1, this corresponds to approximately 3.2 million papers that contains abstract text. Of these 3.2 million papers, relevant sparse mental health categories were back translated to increase the representation of certain mental health categories.

There are several limitation with this dataset including large discrepancies in the number of papers associated with Sexual and Gender Minorities. The training data consisted of the following breakdown across gender groups:

FemaleMaleSexual and Gender Minorities
1,896,3011,945,2794,529

Similar discrepancies are present within Ethnic Groups as defined within the MESH taxonomy:

African AmericansArabsAsian AmericansHispanic AmericansIndians, Central AmericanIndians, North AmericanIndians, South AmericanIndigenous PeoplesMexican Americans
31,0272,4375,61218,8931245,6576331743,234

These discrepancies can have a significant impact on information retrieval systems, downstream machine learning models, and other forms of NLP that leverage these pretrained models.

Training data

This model was trained on all PubMed abstracts categorized under Psychology and Psychiatry. As of March 1, this corresponds to approximately 3.2 million papers that contains abstract text. Of these 3.2 million papers, relevant sparse categories were back translated from english to french and from french to english to increase the representation of sparser mental health categories. This included backtranslating the following papers with the following categories:

  • Depressive Disorder
  • Risk Factors
  • Mental Disorders
  • Child, Preschool
  • Mental Health

In aggregate, this process added 557,980 additional papers to our training data.

Training procedure

Continued pretraining was done on Psychology and Psychiatry PubMed papers for 10 epochs. Default parameters were used with the exception of gradient accumulation steps which was set at 4, with a per device train batch size of 32. 2 x Nvidia 3090's were used in the development of this model.

Evaluation results

To evaluate the effectiveness of psych-search within the mental health domain, an evaluation task was constructed by finetuning psych-search for a task similar to BioASQ Task A. Here we perform large scale biomedical indexing using the MESH taxonomy associated with each paper underneath Psychology and Psychiatry. The evaluation metric is the micro F1 score across all second level descriptors within Psychology and Psychiatry. This corresponds to 38 different MESH categories used during evaluation.

bert-base-uncasedSciBERT Scivocab UncasedPsych-Search
0.73480.73940.7415

Next Steps

If you are interested in continuing to build on this work or have other ideas on how we can build on others work, please let us know! We can be reached at nlp4good@gmail.com. Our goal is to bring state of the art NLP capabilities to underserved areas of research, with mental health being our top priority.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForMaskedLM
Ревизия весов
894dbb2

0 моделей