Text Classification
Transformers
Safetensors
English
bert
medical
classification
healthcare
clinicalbert
symptom-checker
Eval Results (legacy)
text-embeddings-inference
Instructions to use Iloriayomide/Symptom_Prediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Iloriayomide/Symptom_Prediction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Iloriayomide/Symptom_Prediction")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Iloriayomide/Symptom_Prediction") model = AutoModelForSequenceClassification.from_pretrained("Iloriayomide/Symptom_Prediction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Iloriayomide/Symptom_Prediction: direct link, hf CLI and curl.
- Browser
- Download file 1.73 kB
-
https://huggingface.co/Iloriayomide/Symptom_Prediction/resolve/main/README.md
- Command line
-
hf download hf://Iloriayomide/Symptom_Prediction/README.md
-
curl -L -o README.md https://huggingface.co/Iloriayomide/Symptom_Prediction/resolve/main/README.md
1.73 kB
metadata
language: en
pipeline_tag: text-classification
library_name: transformers
tags:
- medical
- classification
- healthcare
- clinicalbert
- symptom-checker
- text-classification
license: apache-2.0
datasets:
- qilex/Symptom2Disease
- niyarrbarman/symptom-disease-dataset
metrics:
- accuracy
model-index:
- name: SymbiPredict-ClinicalBERT
results:
- task:
type: text-classification
name: Disease Prediction
metrics:
- type: loss
value: 0.2577
base_model:
- emilyalsentzer/Bio_ClinicalBERT
π₯ SymbiPredict: ClinicalBERT Symptom-to-Disease Classifier
This model is a fine-tuned version of Bio_ClinicalBERT, optimized to predict diseases based on natural language descriptions of symptoms.
It has been trained on a massive merged dataset of over 96,000 patient cases covering 115+ unique medical conditions.
π Model Performance
| Epoch | Training Loss | Validation Loss |
|---|---|---|
| 1 | 0.4108 | 0.3452 |
| 2 | 0.3092 | 0.2852 |
| 3 | 0.2526 | 0.2577 |
The model achieves a final validation loss of 0.2577, demonstrating high confidence and generalization capabilities across 115 disease classes.
π How to Use (Python)
You can use this model directly with the Hugging Face pipeline.
from transformers import pipeline
# Load the pipeline
classifier = pipeline("text-classification", model="Iloriayomide/Symptom_Prediction", top_k=3)
# Test with symptoms
symptoms = "I have a severe headache, sensitivity to light, and I feel nauseous."
prediction = classifier(symptoms)
print(prediction)