Downloads · 30 days
12
14% of all-time downloads
noamaanMulla-03/patient-condition-classifier
patient-condition-classifier is a text classification model from noamaanMulla-03. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
A DeBERTa-v3-large model fine-tuned on the UCI Drug Reviews dataset to predict a patient's medical condition from their drug review text.
Downloads · 30 days
12
14% of all-time downloads
All-time downloads
88
Public
Parameters
436M
1.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
A DeBERTa-v3-large model fine-tuned on the UCI Drug Reviews dataset to predict a patient's medical condition from their drug review text.
Accuracy: 82.8% | Weighted F1: 81.0% | 700+ conditions | <50ms inference
Given a free-text drug review, this model predicts what medical condition the patient is being treated for across 700+ conditions.
The model was trained with drug names prepended:
Drug: <drug_name>. Review: <review_text>
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("noamaanMulla-03/patient-condition-classifier")
tokenizer = AutoTokenizer.from_pretrained("noamaanMulla-03/patient-condition-classifier")
review = "Drug: adderall. Review: Helps me focus at work. My ADHD is finally manageable."
inputs = tokenizer(review, truncation=True, max_length=512, return_tensors="pt")
outputs = model(**inputs)
prediction = model.config.id2label[outputs.logits.argmax(dim=-1).item()]
print(prediction) # "adhd"
| Experiment | Accuracy | F1 |
|---|---|---|
| Baseline (base, 128 tokens) | 67.4% | 63.9% |
| Base, 512 tokens | 73.1% | 69.4% |
| Large, full pipeline | 82.8% | 81.0% |
@misc{patient-condition-classifier,
author = {Noamaan Mulla},
title = {Patient Condition Classifier},
year = {2026},
howpublished = {\url{https://huggingface.co/noamaanMulla-03/patient-condition-classifier}}
}