Giter VIP home page Giter VIP logo

biomedical-entity-linking's Introduction

Biomedical-Entity-Linking

This is a Keras implementation of the paper A Lightweight Neural Model for Biomedical Entity Linking. model

Environment setup

Clone the repository and set up the environment via "requirements.txt". Here we use python3.6.

pip install -r requirements.txt

Data preparation

Dataset. It is not easy to collect all related data quickly. For your convenience, we provide a preprocessed version of datasets so that you could run our model straight. But there is a data license of the ShARe/CLEF dataset, we suggest you to obtain it according to an official guideline. We valid our model on three datasets, ShARe/CLEF, NCBI and ADR. Download these dataset and their corresponding knowledge bases following the urls below.

Dataset Reference KB
NCBI disease MEDIC (July 6, 2012)
ShARe/CLEF eHealth 2013 Challenge SNOMED-CT (UMLS 2012AA)
TAC 2017 ADR MedDRA (18.1)

Word Embedding. In our experiments, we represent each word by a 200-dimensional word embedding computed on PubMed and MIMIC-III corpus, which is proposed in this paper[1]. Downlaod. After downloading, put the embedding file in the path Biomedical-Entity-Linking/input/

Entity Embedding. We provide pre-trained entity embeddings. You can find them in this path Biomedical-Entity-Linking/output/*dataset name*/embed/entity_emb_50.txt Certain entities are more likely to occur together in the same document than others, and we can leverage this disposition to help the entity linking. To capture the co-occurrence of entities, we pre-train entity embeddings in such a way that entities that often co-occur together have a similar distributed representation. We train these embeddings with Word2Vec on a collection of PubMed abstracts2. Since the entities in this corpus are not linked to our KB, we consider every occurrence of an exact entity name as a mention of that entity. Here, the medical corpus we adopt is a collection of PubMed abstracts which can be obtained at ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/

Evaluation

First you can use -help to show the arguments

python train.py -help

Once completing the data preparation and environment setup, we can evaluate the model via train.py. We have also provided datasets after preprocessing, you can just run the mode without downloading.

python3 train.py -dataset ncbi

Using Optimal Parameters

  1. NCBI datast
python train.py -dataset ncbi 
  1. ShARe/CLEF dataset
python train.py -dataset clef -hinge 0.30 -alpha 0.6 
  1. ADR dataset
python train.py -dataset adr    

Adding Features

  1. add prior
python train.py -dataset ncbi -add_prior True
  1. add context
python train.py -dataset ncbi -add_context True
  1. add coherence
python train.py -dataset ncbi -add_coherence True -voting_k 10
-voting_k 8 for ncbi
-voting_k 10 for adr
-voting_k 15 for ShARe/CLEF

Result

performance

Citation

@article{chen2020lightweight,
  title={A Lightweight Neural Model for Biomedical Entity Linking},
  author={Chen, Lihu and Varoquaux, Ga{\"e}l and Suchanek, Fabian M},
  journal={arXiv preprint arXiv:2012.08844},
  year={2020}
}

Reference

[1] Zhang Y, Chen Q, Yang Z, Lin H, Lu Z. BioWordVec, improving biomedical word embeddings with subword information and MeSH. Scientific Data. 2019.

biomedical-entity-linking's People

Contributors

tigerchen52 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.