Downloads · 30 days
9
23% of all-time downloads
toolevalxm/BioMedLM-ClinicalNLP
BioMedLM-ClinicalNLP is a fill-mask model from toolevalxm. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
<div align="center" <img src="figures/fig1.png" width="60%" alt="BioMedLM" / </div <hr
Downloads · 30 days
9
23% of all-time downloads
All-time downloads
39
Public
Repo size
37 B
Likes
0
Public
Click a slice to open those files.
.md5.2 KB · 63%
From the Hugging Face model README
BioMedLM represents a breakthrough in biomedical natural language processing. This specialized language model has been trained on extensive medical literature, clinical notes, and healthcare documentation. In the latest version, BioMedLM demonstrates remarkable capabilities in understanding complex medical terminology, extracting clinical entities, and generating accurate medical summaries.
<p align="center"> <img width="80%" src="figures/fig3.png"> </p>Compared to general-purpose language models, BioMedLM shows significant improvements in domain-specific tasks. For instance, in the MedQA benchmark, the model's accuracy has increased from 65% to 82.3% in the current version. This advancement stems from specialized pre-training on PubMed abstracts and clinical trial data.
Beyond clinical text understanding, this version offers enhanced capabilities in drug-drug interaction detection, adverse event extraction, and ICD-10 coding assistance.
| Benchmark | PubMedBERT | BioBERT | ClinicalBERT | BioMedLM | |
|---|---|---|---|---|---|
| Clinical NLP Tasks | Clinical NER | 0.823 | 0.835 | 0.841 | 0.870 |
| Drug Interaction | 0.712 | 0.728 | 0.739 | 0.804 | |
| Medical QA | 0.654 | 0.668 | 0.682 | 0.750 | |
| Document Analysis | Disease Classification | 0.789 | 0.801 | 0.812 | 0.895 |
| Clinical Inference | 0.701 | 0.715 | 0.724 | 0.799 | |
| Symptom Extraction | 0.756 | 0.769 | 0.778 | 0.830 | |
| Medical Coding | 0.688 | 0.702 | 0.715 | 0.740 | |
| Report Generation | Radiology Report | 0.621 | 0.639 | 0.651 | 0.750 |
| Patient Summary | 0.598 | 0.615 | 0.628 | 0.719 | |
| Adverse Event | 0.734 | 0.749 | 0.761 | 0.853 | |
| Literature Mining | 0.667 | 0.682 | 0.694 | 0.780 | |
| Research Tasks | Gene Relation | 0.578 | 0.594 | 0.608 | 0.788 |
| Clinical Trial | 0.645 | 0.661 | 0.673 | 0.782 | |
| Pathology Analysis | 0.712 | 0.728 | 0.741 | 0.865 | |
| Safety Compliance | 0.801 | 0.815 | 0.827 | 0.844 |
BioMedLM demonstrates state-of-the-art performance across all biomedical benchmark categories, with particularly notable results in clinical entity recognition and document analysis tasks.
We offer a clinical demo interface and API for healthcare researchers to interact with BioMedLM. Please visit our secure portal for HIPAA-compliant access.
Please refer to our code repository for information about deploying BioMedLM in clinical environments.
Compared to previous versions, the usage recommendations for BioMedLM have the following changes:
The model architecture of BioMedLM-Base is optimized for clinical document processing, with specialized attention mechanisms for medical entity relationships.
We recommend using the following system prompt for clinical applications:
You are BioMedLM, a specialized biomedical AI assistant trained on medical literature and clinical documentation.
Current context: {clinical_setting}
For example,
You are BioMedLM, a specialized biomedical AI assistant trained on medical literature and clinical documentation.
Current context: Outpatient clinical notes review.
We recommend setting the temperature parameter $T_{model}$ to 0.3 for clinical applications to ensure factual accuracy.
For clinical document analysis, please follow the template:
document_template = \
"""[document type]: {doc_type}
[clinical content begin]
{clinical_text}
[clinical content end]
{analysis_request}"""
For literature search enhanced generation, we recommend the following template:
search_clinical_template = \
'''# The following are relevant medical literature findings:
{pubmed_results}
In the search results provided, each finding is formatted as [source X begin]...[source X end]. Please cite sources appropriately using [citation:X] format. Ensure medical accuracy and evidence-based responses.
When responding:
- Prioritize peer-reviewed sources
- Note any conflicting findings
- Include confidence levels where appropriate
- Flag any potential safety concerns
# Clinical query:
{query}'''
This code repository is licensed under the Apache 2.0 License. The use of BioMedLM models requires compliance with healthcare regulations including HIPAA where applicable.
If you have any questions, please raise an issue on our GitHub repository or contact us at [email protected].