đ Symptom_to_Diagnosis
This model is a fine - tuned version of bert - base - cased
for text classification tasks in diagnosing diseases from symptoms.
đ Quick Start
You can use a pipeline as a high - level helper to utilize this model:
Basic Usage
from transformers import pipeline
pipe = pipeline("text - classification", model="Zabihin/Symptom_to_Diagnosis")
result = pipe("I've been having headaches and migraines, and I can't sleep. My whole body shakes and twitches. Sometimes I feel lightheaded.")
print(result)
Advanced Usage
from transformers import pipeline
classifier = pipeline("text - classification", model="Zabihin/Symptom_to_Diagnosis", tokenizer="Zabihin/Symptom_to_Diagnosis")
input_text = "I've been having headaches and migraines, and I can't sleep. My whole body shakes and twitches. Sometimes I feel lightheaded."
result = classifier(input_text)
predicted_label = result[0]['label']
print("Predicted Label:", predicted_label)
⨠Features
- This model is a fine - tuned version of [bert - base - cased](https://huggingface.co/bert - base - cased) on the dataset (https://huggingface.co/datasets/gretelai/symptom_to_diagnosis).
- It is specifically designed for text classification tasks related to diagnosing diseases from symptoms.
- The model aims to analyze natural language descriptions of symptoms and predict one of 22 corresponding diagnoses.
đĻ Installation
The README doesn't provide installation steps, so this section is skipped.
đ Documentation
Model Description
This model is a fine - tuned version of the bert - base - cased architecture, specifically designed for text classification tasks related to diagnosing diseases from symptoms. The primary objective is to analyze natural language descriptions of symptoms and predict one of 22 corresponding diagnoses.
Dataset Information
The model was trained on the Gretel/symptom_to_diagnosis dataset, which consists of 1,065 symptom descriptions in the English language, each labeled with one of the 22 possible diagnoses. The dataset focuses on fine - grained single - domain diagnosis, making it suitable for tasks that require detailed classification based on symptom descriptions.
Example:
{
"output_text": "drug reaction",
"input_text": "I've been having headaches and migraines, and I can't sleep. My whole body shakes and twitches. Sometimes I feel lightheaded."
}
Framework Versions
- Transformers 4.35.2
- TensorFlow 2.15.0
- Datasets 2.15.0
- Tokenizers 0.15.0
đ§ Technical Details
The README doesn't provide specific technical details over 50 words, so this section is skipped.
đ License
The model is licensed under the Apache 2.0 license.
đ Model Information
Property |
Details |
Model Type |
Fine - tuned version of bert - base - cased |
Training Data |
gretelai/symptom_to_diagnosis |
đ Model Results
Symptom_to_Diagnosis
Task |
Dataset |
Split |
Metric |
Value |
Name |
Text Classification |
gretelai/symptom_to_diagnosis |
test |
Precision |
0.94 |
macro avg |
Text Classification |
gretelai/symptom_to_diagnosis |
test |
Recall |
0.93 |
macro avg |
Text Classification |
gretelai/symptom_to_diagnosis |
test |
F1 - score |
0.93 |
macro avg |