Downloads · 30 days
10
19% of all-time downloads
afg1/lncrna-biocontext-longformer
lncrna-biocontext-longformer is a text classification model from afg1. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-4.0.
This model is designed to determine whether a given abstract talks about an lncRNA in the context of disease or not.
Downloads · 30 days
10
19% of all-time downloads
All-time downloads
54
Public
Parameters
149M
4.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors595 MB · 99%
From the Hugging Face model README
This model is designed to determine whether a given abstract talks about an lncRNA in the context of disease or not.
The model has been trained on data from lncBook-Wiki about papers which have been curated by experts based on the biological context they discuss. We have collected the abstracts for these papers and simplified the classification into disease/not disease. We then fine-tune a longformer model to make a binary classification.
We achieve pretty good results:
| Metric | Score |
|---|---|
| Accuracy | 0.84 |
| F1 | 0.82 |
| ROC | 0.98 |
Though the test set is only 59 examples, with 22 discussing disease.
The model size is ~600MB. It will run really fast on the MPS device of an M-series mac. It should also run pretty fast on a normal CPU.
The context windiw is 4,096 tokens which comes from the base longformer model. In training we limit the context to 1280 tokens because that was a bit bigger than the longest abstract we saw. Long abstracts may cause trouble.
The base model is trained on MLM on wikipedia text (and maybe some other stuff). As such, it might not have a great understanding of scientific literature.
The dataset used to train this model was tiny at only 588 examples overall. This means only 470 samples for training with 59 for validation and testing. These have been deliberately sampled to be roughly equally distributed between the two classes.
The dataset these are derived from is also massively imbalanced, having 19,229 examples but only 294 that are not disease. As a result the model is trained on a dataset that hugely undersamples the disease context abstracts.
While the model has been tested on some abstracts derived from lncBook's annotations, it hasn't really been tested on 'wild' abstracts.
The next step will be to be able to classify both the specific disease (e.g. lung adenocarcinoma), and the non-disease context (e.g. localisation) a paper discusses.