• Stars
    star
    567
  • Rank 78,602 (Top 2 %)
  • Language
    Jupyter Notebook
  • License
    Other
  • Created about 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

BioWordVec & BioSentVec: pre-trained embeddings for biomedical words and sentences

BioWordVec & BioSentVec:
pre-trained embeddings for biomedical words and sentences

Table of contents

Text corpora

We created biomedical word and sentence embeddings using PubMed and the clinical notes from MIMIC-III Clinical Database. Both PubMed and MIMIC-III texts were split and tokenized using NLTK. We also lowercased all the words. The statistics of the two corpora are shown below.

Sources Documents Sentences Tokens
PubMed 28,714,373 181,634,210 4,354,171,148
MIMIC III Clinical notes 2,083,180 41,674,775 539,006,967

BioWordVec [1]: biomedical word embeddings with fastText

We applied fastText to compute 200-dimensional word embeddings. We set the window size to be 20, learning rate 0.05, sampling threshold 1e-4, and negative examples 10. Both the word vectors and the model with hyperparameters are available for download below. The model file can be used to compute word vectors that are not in the dictionary (i.e. out-of-vocabulary terms). This work extends the original BioWordVec which provides fastText word embeddings trained using PubMed and MeSH. We used the same parameters as the original BioWordVec which has been thoroughly evaluated in a range of applications.

We evaluated BioWordVec for medical word pair similarity. We used the MayoSRS (101 medical term pairs; download here) and UMNSRS_similarity (566 UMLS concept pairs; download here) datasets.

Model MayoSRS UMNSRS_similarity
word2vec 0.513 0.626
BioWordVec model 0.552 0.660

BioSentVec [2]: biomedical sentence embeddings with sent2vec

We applied sent2vec to compute the 700-dimensional sentence embeddings. We used the bigram model and set window size to be 20 and negative examples 10.

We evaluated BioSentVec for clinical sentence pair similarity tasks. We used the BIOSSES (100 sentence pairs; download here) and the MedSTS (1068 sentence pairs; download here) datasets.

BIOSSES MEDSTS
Unsupervised methods
    doc2vec 0.787 -
    Levenshtein Distance - 0.680
    Averaged word embeddings 0.694 0.747
    Universal Sentence Encoder 0.345 0.714
    BioSentVec (PubMed) 0.817 0.750
    BioSentVec (MIMIC-III) 0.350 0.759
    BioSentVec (PubMed + MIMIC-III) 0.795 0.767
Supervised methods
    Linear Regression 0.836 -
    Random Forest - 0.818
    Deep learning + Averaged word embeddings 0.703 0.784
    Deep learning + Universal Sentence Encoder 0.401 0.774
    Deep learning + BioSentVec (PubMed) 0.824 0.819
    Deep learning + BioSentVec (MIMIC-III) 0.353 0.805
    Deep learning + BioSentVec (PubMed + MIMIC-III) 0.848 0.836

FAQ

You can find answers to frequently asked questions on our Wiki; e.g., you can find the instructions on how to load these models.

You can also find this tutorial on how to use BioSentVec for a quick start.

References

When using some of our pre-trained models for your application, please cite the following papers:

  1. Zhang Y, Chen Q, Yang Z, Lin H, Lu Z. BioWordVec, improving biomedical word embeddings with subword information and MeSH. Scientific Data. 2019.
  2. Chen Q, Peng Y, Lu Z. BioSentVec: creating sentence embeddings for biomedical texts. The 7th IEEE International Conference on Healthcare Informatics. 2019.

Acknowledgments

This work was supported by the Intramural Research Programs of the National Institutes of Health, National Library of Medicine. We are grateful to the authors of fastText, sent2vec, MayoSRS, UMNSRS, BIOSSES, and MedSTS for making their software and data publicly available.

More Repositories

1

bluebert

BlueBERT, pre-trained on PubMed abstracts and clinical notes (MIMIC-III).
Python
545
star
2

BLUE_Benchmark

BLUE benchmark consists of five different biomedicine text-mining tasks with ten corpora.
Python
283
star
3

NegBio

📰 High-performance tool for negation and uncertainty detection in radiology reports
Python
155
star
4

BioWordVec

Python
142
star
5

DeepSeeNet

👀 DeepSeeNet is a deep learning framework for classifying patient-based age-related macular degeneration severity in retinal color fundus photographs.
Python
57
star
6

PhenoTagger

PhenoTagger
GAP
50
star
7

Ab3P

Abbreviation definition dection library trained on PubMed abstracts
C
45
star
8

PubMed-Best-Match

Machine-learning based pipeline relying on LambdaMART currently used in PubMed for relevance (Best Match) searches
Python
39
star
9

TeamTat

Text annotation tool for team collaboration
JavaScript
35
star
10

ML_Net

ML-Net is a novel end-to-end deep learning framework for multi-label classification of biomedical tasks. ML-Net combines the label prediction network with a label count prediction network, which can determine the output labels based on both label confidence scores and document context in an end-to-end manner.
Python
33
star
11

TrialGPT

Code and data for TrialGPT.
Python
23
star
12

COVID-19-CT-CXR

COVID-19-CT-CXR, a public database of COVID-19 CXR and CT images
Python
20
star
13

MedCalc-Bench

Benchmarking the medical calculation capabilities of large language models.
Python
17
star
14

ezTag

Web interface that allows users to perform computer-assisted text annotation
JavaScript
15
star
15

BioC-JSON

Tool that converts between BioC XML files and BioC JSON files
Python
15
star
16

NQAC

Python
15
star
17

pubtator-gpt

13
star
18

DeepRel

A convolutional neural network model for relation extraction.
Python
12
star
19

NCBITextLib

Software library for building a large-scale data infrastructure for text mining
C++
7
star
20

BC6PM

Evaluation scripts for BioCreative VI Precision Medicine Track
Python
6
star
21

VarTriage

Python
5
star
22

PubTator-Covid19

4
star
23

CovidTermVar

Python
2
star
24

TaggerOne

General-purpose tagger for joint named entity recognition and normalization. Includes models for both diseases and chemicals (drugs) in biomedical publications.
2
star
25

Medical-Imaging-Causal-Fairness

Python
2
star
26

Unmasking-GPT-Bias

Jupyter Notebook
1
star
27

PhenoRerank

Python
1
star