Research Article

Pharmacovigilance with Transformers: A Framework to Detect Adverse Drug Reactions Using BERT Fine-Tuned with FARM

Table 2

Comparison of results yielded by FARM-BERT with the results yielded by baseline models applied on Twitter and PubMed datasets.

ModelsFeaturesTwitterPubMed

SVMWord -grams0.7010.6500.6750.7110.6820.695
ADR terms0.5030.5140.5080.5390.5580.548
Sentence embeddings0.6040.6440.6240.6710.6110.641
Word -grams+ADR terms+sentence embeddings0.7290.6880.7080.7170.7060.711

MLPWord -grams0.7110.6610.6860.7190.6840.701
ADR terms0.5120.5240.5180.5210.5440.532
Sentence embeddings0.6150.6450.6300.6850.6660.675
Word -grams+ADR terms+sentence embeddings0.7270.7380.7320.7330.7560.744

LSTMWord2vec word embeddings0.7790.7980.7880.8010.7920.796
Fasttext word embeddings0.7860.8120.7990.8250.7980.811
Glove word embeddings0.7710.7820.7760.8100.7860.798

CNNWord2vec word embeddings0.8540.7990.8260.8610.8060.833
Fasttext word embeddings0.8630.8010.8320.8770.8190.848
Glove word embeddings0..8430.8030.8230.8720.7980.835

BERTBERT embeddings0.8310.8500.8700.9200.9300.910

FARM-BERTBERT embeddings0.8400.8610.8960.9820.9640.976