BioMistral-7B-DrugDetection
adapter for spotting drug mentions in text
2 min readupdated
A research adapter based on BioMistral-7B, trained to extract sentences related to general drug use. The model analyzes input sentences and determines whether relevant indicators are present in the text. This development aims to cut down on false positives compared to base models and lexical classifiers. The solution will come in handy for medical record researchers and developers building text analysis systems powered by biomedical language models.
Key features
- Built on BioMistral-7B using LoRA (a small add-on to the base model for targeted fine-tuning).
- Achieves a high sensitivity rate of 98.28% on the test dataset.
- Significantly cuts down on false positives compared to the original base model policy.
- Designed to process synthesized sentences from medical notes.
What you can do
- Apply the released LoRA weights (adapter.safetensors) alongside the base BioMistral-7B model to analyze medical texts.
- Evaluate the model's performance on specialized datasets yourself using the attached research code.
- Integrate the classifier into text processing pipelines to filter out irrelevant mentions.
Example
The model accepts a sentence from a medical note as input and returns a decision along with the decision margin for tasks involving the extraction of drug use evidence.
Read more
DetailsPooled sensitivity: 98.28% (514 out of 523 positive examples).
Sample precision: 95.72%.
False positives reduced to 23 out of 763 negative examples.
Limitations: clinical safety and patient-level independence have not been established.










Comments