Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,72 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
---
|
4 |
+
## Clinical Decision Support Model 🩺📊
|
5 |
+
Model Overview
|
6 |
+
This Clinical Decision Support Model is designed to assist healthcare providers in making data-driven decisions based on patient information. The model leverages advanced natural language processing (NLP) capabilities using the BiomedBERT architecture, fine-tuned specifically on a synthetic dataset of heart disease-related patient data. It provides personalized recommendations for patients based on their clinical profile.
|
7 |
+
|
8 |
+
## Model Use Case
|
9 |
+
The primary use case for this model is Clinical Decision Support in the domain of Cardiovascular Health. It helps healthcare professionals by:
|
10 |
+
|
11 |
+
Evaluating patient health data.
|
12 |
+
Predicting clinical recommendations.
|
13 |
+
Reducing decision-making time and improving the quality of care.
|
14 |
+
|
15 |
+
## Inputs
|
16 |
+
The model expects input in the following format:
|
17 |
+
|
18 |
+
Age: <int>, Gender: <Male/Female>, Weight: <int>, Smoking Status: <Never/Former/Current>, Diabetes: <0/1>, Hypertension: <0/1>, Cholesterol: <int>, Heart Disease History: <0/1>, Symptoms: <string>, Risk Score: <float>
|
19 |
+
|
20 |
+
## Output
|
21 |
+
The model predicts a recommendation from one of the following categories:
|
22 |
+
|
23 |
+
Maintain healthy lifestyle
|
24 |
+
Immediate cardiologist consultation
|
25 |
+
Start statins, monitor regularly
|
26 |
+
Lifestyle changes, monitor
|
27 |
+
No immediate action
|
28 |
+
Increase statins, lifestyle changes
|
29 |
+
Start ACE inhibitors, monitor
|
30 |
+
|
31 |
+
## Example Input
|
32 |
+
Age: 70, Gender: Female, Weight: 66, Smoking Status: Never, Diabetes: 0, Hypertension: 1, Cholesterol: 258, Heart Disease History: 1, Symptoms: Chest pain, Risk Score: 6.1
|
33 |
+
|
34 |
+
## Example Output
|
35 |
+
Recommendation: Start ACE inhibitors, monitor
|
36 |
+
|
37 |
+
## Model Training
|
38 |
+
|
39 |
+
Base Model: microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext
|
40 |
+
Dataset: A synthetic dataset of 5000 patient examples with details like age, gender, symptoms, risk score, etc.
|
41 |
+
Fine-tuning Framework: Hugging Face Transformers.
|
42 |
+
|
43 |
+
## How to Use
|
44 |
+
|
45 |
+
from transformers import pipeline
|
46 |
+
|
47 |
+
#Load the model
|
48 |
+
model_path = "your_username/clinical_decision_support"
|
49 |
+
classifier = pipeline("text-classification", model=model_path)
|
50 |
+
|
51 |
+
#Example input
|
52 |
+
input_text = "Age: 70, Gender: Female, Weight: 66, Smoking Status: Never, Diabetes: 0, Hypertension: 1, Cholesterol: 258, Heart Disease History: 1, Symptoms: Chest pain, Risk Score: 6.1"
|
53 |
+
|
54 |
+
#Get prediction
|
55 |
+
prediction = classifier(input_text)
|
56 |
+
print(prediction)
|
57 |
+
|
58 |
+
## Limitations
|
59 |
+
|
60 |
+
The model is based on synthetic data and may not fully generalize to real-world scenarios.
|
61 |
+
Recommendations are not a substitute for clinical expertise and should always be validated by a healthcare professional.
|
62 |
+
|
63 |
+
## Future Improvements
|
64 |
+
|
65 |
+
Train on a larger, real-world dataset to enhance model performance.
|
66 |
+
Expand the scope to include recommendations for other medical domains.
|
67 |
+
|
68 |
+
## Acknowledgments
|
69 |
+
|
70 |
+
Model fine-tuned using the Hugging Face Transformers library.
|
71 |
+
Base model provided by Microsoft: BiomedBERT.
|
72 |
+
|