Spaces:
Paused
Paused
Upload 7 files
Browse files- .gitattributes +1 -0
- Symptom-severity.csv +134 -0
- app.py +124 -0
- deployML.py +37 -0
- model_joblib +3 -0
- requirements.txt +16 -0
- symptom_Description.csv +42 -0
- symptom_precaution.csv +42 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
model_joblib filter=lfs diff=lfs merge=lfs -text
|
Symptom-severity.csv
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Symptom,weight
|
2 |
+
itching,1
|
3 |
+
skin_rash,3
|
4 |
+
nodal_skin_eruptions,4
|
5 |
+
continuous_sneezing,4
|
6 |
+
shivering,5
|
7 |
+
chills,3
|
8 |
+
joint_pain,3
|
9 |
+
stomach_pain,5
|
10 |
+
acidity,3
|
11 |
+
ulcers_on_tongue,4
|
12 |
+
muscle_wasting,3
|
13 |
+
vomiting,5
|
14 |
+
burning_micturition,6
|
15 |
+
spotting_urination,6
|
16 |
+
fatigue,4
|
17 |
+
weight_gain,3
|
18 |
+
anxiety,4
|
19 |
+
cold_hands_and_feets,5
|
20 |
+
mood_swings,3
|
21 |
+
weight_loss,3
|
22 |
+
restlessness,5
|
23 |
+
lethargy,2
|
24 |
+
patches_in_throat,6
|
25 |
+
irregular_sugar_level,5
|
26 |
+
cough,4
|
27 |
+
high_fever,7
|
28 |
+
sunken_eyes,3
|
29 |
+
breathlessness,4
|
30 |
+
sweating,3
|
31 |
+
dehydration,4
|
32 |
+
indigestion,5
|
33 |
+
headache,3
|
34 |
+
yellowish_skin,3
|
35 |
+
dark_urine,4
|
36 |
+
nausea,5
|
37 |
+
loss_of_appetite,4
|
38 |
+
pain_behind_the_eyes,4
|
39 |
+
back_pain,3
|
40 |
+
constipation,4
|
41 |
+
abdominal_pain,4
|
42 |
+
diarrhoea,6
|
43 |
+
mild_fever,5
|
44 |
+
yellow_urine,4
|
45 |
+
yellowing_of_eyes,4
|
46 |
+
acute_liver_failure,6
|
47 |
+
fluid_overload,6
|
48 |
+
swelling_of_stomach,7
|
49 |
+
swelled_lymph_nodes,6
|
50 |
+
malaise,6
|
51 |
+
blurred_and_distorted_vision,5
|
52 |
+
phlegm,5
|
53 |
+
throat_irritation,4
|
54 |
+
redness_of_eyes,5
|
55 |
+
sinus_pressure,4
|
56 |
+
runny_nose,5
|
57 |
+
congestion,5
|
58 |
+
chest_pain,7
|
59 |
+
weakness_in_limbs,7
|
60 |
+
fast_heart_rate,5
|
61 |
+
pain_during_bowel_movements,5
|
62 |
+
pain_in_anal_region,6
|
63 |
+
bloody_stool,5
|
64 |
+
irritation_in_anus,6
|
65 |
+
neck_pain,5
|
66 |
+
dizziness,4
|
67 |
+
cramps,4
|
68 |
+
bruising,4
|
69 |
+
obesity,4
|
70 |
+
swollen_legs,5
|
71 |
+
swollen_blood_vessels,5
|
72 |
+
puffy_face_and_eyes,5
|
73 |
+
enlarged_thyroid,6
|
74 |
+
brittle_nails,5
|
75 |
+
swollen_extremeties,5
|
76 |
+
excessive_hunger,4
|
77 |
+
extra_marital_contacts,5
|
78 |
+
drying_and_tingling_lips,4
|
79 |
+
slurred_speech,4
|
80 |
+
knee_pain,3
|
81 |
+
hip_joint_pain,2
|
82 |
+
muscle_weakness,2
|
83 |
+
stiff_neck,4
|
84 |
+
swelling_joints,5
|
85 |
+
movement_stiffness,5
|
86 |
+
spinning_movements,6
|
87 |
+
loss_of_balance,4
|
88 |
+
unsteadiness,4
|
89 |
+
weakness_of_one_body_side,4
|
90 |
+
loss_of_smell,3
|
91 |
+
bladder_discomfort,4
|
92 |
+
foul_smell_ofurine,5
|
93 |
+
continuous_feel_of_urine,6
|
94 |
+
passage_of_gases,5
|
95 |
+
internal_itching,4
|
96 |
+
toxic_look_(typhos),5
|
97 |
+
depression,3
|
98 |
+
irritability,2
|
99 |
+
muscle_pain,2
|
100 |
+
altered_sensorium,2
|
101 |
+
red_spots_over_body,3
|
102 |
+
belly_pain,4
|
103 |
+
abnormal_menstruation,6
|
104 |
+
dischromic_patches,6
|
105 |
+
watering_from_eyes,4
|
106 |
+
increased_appetite,5
|
107 |
+
polyuria,4
|
108 |
+
family_history,5
|
109 |
+
mucoid_sputum,4
|
110 |
+
rusty_sputum,4
|
111 |
+
lack_of_concentration,3
|
112 |
+
visual_disturbances,3
|
113 |
+
receiving_blood_transfusion,5
|
114 |
+
receiving_unsterile_injections,2
|
115 |
+
coma,7
|
116 |
+
stomach_bleeding,6
|
117 |
+
distention_of_abdomen,4
|
118 |
+
history_of_alcohol_consumption,5
|
119 |
+
fluid_overload,4
|
120 |
+
blood_in_sputum,5
|
121 |
+
prominent_veins_on_calf,6
|
122 |
+
palpitations,4
|
123 |
+
painful_walking,2
|
124 |
+
pus_filled_pimples,2
|
125 |
+
blackheads,2
|
126 |
+
scurring,2
|
127 |
+
skin_peeling,3
|
128 |
+
silver_like_dusting,2
|
129 |
+
small_dents_in_nails,2
|
130 |
+
inflammatory_nails,2
|
131 |
+
blister,4
|
132 |
+
red_sore_around_nose,2
|
133 |
+
yellow_crust_ooze,3
|
134 |
+
prognosis,5
|
app.py
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import peft
|
2 |
+
import bitsandbytes
|
3 |
+
import datasets
|
4 |
+
import accelerate
|
5 |
+
import loralib
|
6 |
+
import transformers
|
7 |
+
import sacremoses
|
8 |
+
import sentencepiece
|
9 |
+
import gradio as gr
|
10 |
+
|
11 |
+
import os
|
12 |
+
|
13 |
+
import torch
|
14 |
+
from peft import PeftModel, PeftConfig
|
15 |
+
from transformers import AutoModelForCausalLM,AutoTokenizer, LlamaForCausalLM
|
16 |
+
|
17 |
+
import webbrowser
|
18 |
+
import joblib
|
19 |
+
from deployML import predd
|
20 |
+
|
21 |
+
import time
|
22 |
+
|
23 |
+
#load the chatbot
|
24 |
+
|
25 |
+
model = LlamaForCausalLM.from_pretrained(
|
26 |
+
"medalpaca/medalpaca-7b",
|
27 |
+
return_dict=True,
|
28 |
+
load_in_8bit=True,
|
29 |
+
device_map="auto",
|
30 |
+
)
|
31 |
+
|
32 |
+
tokenizer = AutoTokenizer.from_pretrained("medalpaca/medalpaca-7b")
|
33 |
+
|
34 |
+
|
35 |
+
#load the first interface
|
36 |
+
|
37 |
+
|
38 |
+
def fn(*args):
|
39 |
+
global flag
|
40 |
+
global symptoms
|
41 |
+
all_symptoms = [symptom for symptom_list in args for symptom in symptom_list]
|
42 |
+
|
43 |
+
if len(all_symptoms) > 17:
|
44 |
+
raise gr.Error("Please select a maximum of 17 symptoms.")
|
45 |
+
elif len(all_symptoms) < 3:
|
46 |
+
raise gr.Error("Please select at least 3 symptoms.")
|
47 |
+
|
48 |
+
symptoms = all_symptoms # Update global symptoms list
|
49 |
+
#webbrowser.open_new_tab(url)
|
50 |
+
flag=1
|
51 |
+
return symptoms
|
52 |
+
|
53 |
+
|
54 |
+
symptoms = []
|
55 |
+
|
56 |
+
flag=0
|
57 |
+
|
58 |
+
|
59 |
+
demo = gr.Interface(
|
60 |
+
fn, [
|
61 |
+
gr.CheckboxGroup(['itching', 'skin rash', 'nodal skin eruptions', 'dischromic patches'], label='Skin Issues'),
|
62 |
+
gr.CheckboxGroup(['continuous sneezing', 'shivering', 'chills', 'cough', 'breathlessness', 'phlegm', 'blood in sputum', 'throat irritation', 'runny nose', 'congestion', 'loss of smell', 'sinus pressure'], label='Respiratory Problems'),
|
63 |
+
gr.CheckboxGroup(['stomach pain', 'acidity', 'ulcers on tongue', 'vomiting', 'nausea', 'loss of appetite', 'abdominal pain', 'burning micturition', 'spotting urination', 'passage of gases', 'internal itching', 'indigestion', 'muscle wasting', 'patches in throat', 'constipation'], label='Digestive Complaints'),
|
64 |
+
gr.CheckboxGroup(['high fever', 'fatigue', 'weight loss', 'restlessness', 'lethargy', 'mild fever'], label='Fever and Fatigue'),
|
65 |
+
gr.CheckboxGroup(['blurred and distorted vision', 'red spots over body', 'pain behind the eyes', 'redness of eyes'], label='Vision and Eye Problems'),
|
66 |
+
gr.CheckboxGroup(['chest pain', 'fast heart rate', 'swelling of stomach'], label='Cardiovascular Issues'),
|
67 |
+
gr.CheckboxGroup(['muscle pain', 'joint pain', 'pain in anal region', 'painful walking', 'movement stiffness'], label='Joint and Muscle Pain'),
|
68 |
+
gr.CheckboxGroup(['headache', 'dizziness', 'loss of balance', 'lack of concentration', 'stiff neck', 'depression', 'irritability', 'visual disturbances', 'back pain', 'weakness in limbs', 'neck pain', 'weakness of one body side', 'altered sensorium'], label='Neurological Symptoms'),
|
69 |
+
gr.CheckboxGroup(['dark urine', 'sweating', 'mucoid sputum', 'toxic look (typhos)', 'bladder discomfort', 'foul smell of urine', 'continuous feel of urine'], label='Urinary Issues'),
|
70 |
+
gr.CheckboxGroup(['skin peeling', 'silver like dusting', 'small dents in nails', 'inflammatory nails', 'blister', 'red sore around nose', 'yellow crust ooze'], label='Skin Abnormalities'),
|
71 |
+
gr.CheckboxGroup(['family history', 'headache', 'mood swings', 'anxiety', 'slurred speech', 'palpitations', 'drying and tingling lips'], label='Psychological Symptoms'),
|
72 |
+
gr.CheckboxGroup(['knee pain', 'hip joint pain', 'swelling joints'], label='Joint and Bone Issues'),
|
73 |
+
gr.CheckboxGroup(['spinning movements', 'unsteadiness'], label='Neurological Movements')
|
74 |
+
],
|
75 |
+
outputs=None,
|
76 |
+
)
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
def wait_until_variable_changes( target_value):
|
83 |
+
global flag
|
84 |
+
while flag != target_value:
|
85 |
+
time.sleep(1)
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
def predict(message, history):
|
91 |
+
prompt = f"""
|
92 |
+
Answer the following question:
|
93 |
+
{message}/n
|
94 |
+
Answer:
|
95 |
+
"""
|
96 |
+
batch = tokenizer(prompt, return_tensors='pt')
|
97 |
+
with torch.cuda.amp.autocast():
|
98 |
+
|
99 |
+
output_tokens = model.generate(**batch, max_new_tokens=60)
|
100 |
+
|
101 |
+
return tokenizer.decode(output_tokens[0], skip_special_tokens=True).replace(prompt,"")
|
102 |
+
|
103 |
+
|
104 |
+
loaded_rf = joblib.load("model_joblib")
|
105 |
+
Fmessage="hello im here to help you!"
|
106 |
+
|
107 |
+
|
108 |
+
if __name__ == "__main__":
|
109 |
+
demo.launch()
|
110 |
+
|
111 |
+
wait_until_variable_changes(1)
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
if symptoms:
|
116 |
+
Fmessage=predd(loaded_rf,symptoms)
|
117 |
+
|
118 |
+
|
119 |
+
chatbot=gr.ChatInterface(predict,chatbot=gr.Chatbot(value=[(None, Fmessage)],), clear_btn=None, retry_btn=None, undo_btn=None)
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
demo.close()
|
124 |
+
chatbot.launch()
|
deployML.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import joblib
|
2 |
+
import sklearn
|
3 |
+
import pandas as pd
|
4 |
+
import numpy as np
|
5 |
+
loaded_rf = joblib.load("model_joblib")
|
6 |
+
|
7 |
+
Description=pd.read_csv("symptom_Description.csv")
|
8 |
+
severity=pd.read_csv("Symptom-severity.csv")
|
9 |
+
severity['Symptom'] = severity['Symptom'].str.replace('_',' ')
|
10 |
+
precaution = pd.read_csv("symptom_precaution.csv")
|
11 |
+
|
12 |
+
def predd(x,S1,S2,S3,S4,S5,S6,S7,S8,S9,S10,S11,S12,S13,S14,S15,S16,S17):
|
13 |
+
psymptoms = [S1,S2,S3,S4,S5,S6,S7,S8,S9,S10,S11,S12,S13,S14,S15,S16,S17]
|
14 |
+
#print(psymptoms)
|
15 |
+
a = np.array(severity["Symptom"])
|
16 |
+
b = np.array(severity["weight"])
|
17 |
+
for j in range(len(psymptoms)):
|
18 |
+
for k in range(len(a)):
|
19 |
+
if psymptoms[j]==a[k]:
|
20 |
+
psymptoms[j]=b[k]
|
21 |
+
psy = [psymptoms]
|
22 |
+
pred2 = x.predict(psy)
|
23 |
+
disp= Description[Description['Disease']==pred2[0]]
|
24 |
+
disp = disp.values[0][1]
|
25 |
+
recomnd = precaution[precaution['Disease']==pred2[0]]
|
26 |
+
c=np.where(precaution['Disease']==pred2[0])[0][0]
|
27 |
+
precuation_list=[]
|
28 |
+
for i in range(1,len(precaution.iloc[c])):
|
29 |
+
precuation_list.append(precaution.iloc[c,i])
|
30 |
+
print("The Disease Name: ",pred2[0])
|
31 |
+
print("The Disease Discription: ",disp)
|
32 |
+
print("Recommended Things to do at home: ")
|
33 |
+
for i in precuation_list:
|
34 |
+
print(" -",i)
|
35 |
+
"""
|
36 |
+
predd(loaded_rf,'high fever','sunken eyes','breathlessness',0,0,0,0,0,0,0,'sweating',0,0,0,0,0,0)
|
37 |
+
"""
|
model_joblib
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e574c024fb37df4ebfcccfab3dfc6293744ccc2b670f567ed11c1721d082052a
|
3 |
+
size 41529044
|
requirements.txt
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
scikit-learn==1.0.2
|
2 |
+
joblib==1.3.2
|
3 |
+
numpy==1.26.3
|
4 |
+
pandas==2.1.4
|
5 |
+
gradio==4.13.0
|
6 |
+
bitsandbytes==0.42.0
|
7 |
+
datasets==2.16.1
|
8 |
+
accelerate==0.25.0
|
9 |
+
loralib==0.1.2
|
10 |
+
sacremoses==0.1.1
|
11 |
+
sentencepiece==0.1.99
|
12 |
+
gradio==4.13.0
|
13 |
+
torch==2.1.0
|
14 |
+
peft==0.7.1
|
15 |
+
transformers==4.36.2
|
16 |
+
|
symptom_Description.csv
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Disease,Description
|
2 |
+
Drug Reaction,An adverse drug reaction (ADR) is an injury caused by taking medication. ADRs may occur following a single dose or prolonged administration of a drug or result from the combination of two or more drugs.
|
3 |
+
Malaria,An infectious disease caused by protozoan parasites from the Plasmodium family that can be transmitted by the bite of the Anopheles mosquito or by a contaminated needle or transfusion. Falciparum malaria is the most deadly type.
|
4 |
+
Allergy,"An allergy is an immune system response to a foreign substance that's not typically harmful to your body.They can include certain foods, pollen, or pet dander. Your immune system's job is to keep you healthy by fighting harmful pathogens."
|
5 |
+
Hypothyroidism,"Hypothyroidism, also called underactive thyroid or low thyroid, is a disorder of the endocrine system in which the thyroid gland does not produce enough thyroid hormone."
|
6 |
+
Psoriasis,"Psoriasis is a common skin disorder that forms thick, red, bumpy patches covered with silvery scales. They can pop up anywhere, but most appear on the scalp, elbows, knees, and lower back. Psoriasis can't be passed from person to person. It does sometimes happen in members of the same family."
|
7 |
+
GERD,"Gastroesophageal reflux disease, or GERD, is a digestive disorder that affects the lower esophageal sphincter (LES), the ring of muscle between the esophagus and stomach. Many people, including pregnant women, suffer from heartburn or acid indigestion caused by GERD."
|
8 |
+
Chronic cholestasis,"Chronic cholestatic diseases, whether occurring in infancy, childhood or adulthood, are characterized by defective bile acid transport from the liver to the intestine, which is caused by primary damage to the biliary epithelium in most cases"
|
9 |
+
hepatitis A,Hepatitis A is a highly contagious liver infection caused by the hepatitis A virus. The virus is one of several types of hepatitis viruses that cause inflammation and affect your liver's ability to function.
|
10 |
+
Osteoarthristis,"Osteoarthritis is the most common form of arthritis, affecting millions of people worldwide. It occurs when the protective cartilage that cushions the ends of your bones wears down over time."
|
11 |
+
(vertigo) Paroymsal Positional Vertigo,Benign paroxysmal positional vertigo (BPPV) is one of the most common causes of vertigo — the sudden sensation that you're spinning or that the inside of your head is spinning. Benign paroxysmal positional vertigo causes brief episodes of mild to intense dizziness.
|
12 |
+
Hypoglycemia, Hypoglycemia is a condition in which your blood sugar (glucose) level is lower than normal. Glucose is your body's main energy source. Hypoglycemia is often related to diabetes treatment. But other drugs and a variety of conditions — many rare — can cause low blood sugar in people who don't have diabetes.
|
13 |
+
Acne,"Acne vulgaris is the formation of comedones, papules, pustules, nodules, and/or cysts as a result of obstruction and inflammation of pilosebaceous units (hair follicles and their accompanying sebaceous gland). Acne develops on the face and upper trunk. It most often affects adolescents."
|
14 |
+
Diabetes,"Diabetes is a disease that occurs when your blood glucose, also called blood sugar, is too high. Blood glucose is your main source of energy and comes from the food you eat. Insulin, a hormone made by the pancreas, helps glucose from food get into your cells to be used for energy."
|
15 |
+
Impetigo,"Impetigo (im-puh-TIE-go) is a common and highly contagious skin infection that mainly affects infants and children. Impetigo usually appears as red sores on the face, especially around a child's nose and mouth, and on hands and feet. The sores burst and develop honey-colored crusts."
|
16 |
+
Hypertension,"Hypertension (HTN or HT), also known as high blood pressure (HBP), is a long-term medical condition in which the blood pressure in the arteries is persistently elevated. High blood pressure typically does not cause symptoms."
|
17 |
+
Peptic ulcer diseae,"Peptic ulcer disease (PUD) is a break in the inner lining of the stomach, the first part of the small intestine, or sometimes the lower esophagus. An ulcer in the stomach is called a gastric ulcer, while one in the first part of the intestines is a duodenal ulcer."
|
18 |
+
Dimorphic hemorrhoids(piles),"Hemorrhoids, also spelled haemorrhoids, are vascular structures in the anal canal. In their ... Other names, Haemorrhoids, piles, hemorrhoidal disease ."
|
19 |
+
Common Cold,"The common cold is a viral infection of your nose and throat (upper respiratory tract). It's usually harmless, although it might not feel that way. Many types of viruses can cause a common cold."
|
20 |
+
Chicken pox,"Chickenpox is a highly contagious disease caused by the varicella-zoster virus (VZV). It can cause an itchy, blister-like rash. The rash first appears on the chest, back, and face, and then spreads over the entire body, causing between 250 and 500 itchy blisters."
|
21 |
+
Cervical spondylosis,"Cervical spondylosis is a general term for age-related wear and tear affecting the spinal disks in your neck. As the disks dehydrate and shrink, signs of osteoarthritis develop, including bony projections along the edges of bones (bone spurs)."
|
22 |
+
Hyperthyroidism,"Hyperthyroidism (overactive thyroid) occurs when your thyroid gland produces too much of the hormone thyroxine. Hyperthyroidism can accelerate your body's metabolism, causing unintentional weight loss and a rapid or irregular heartbeat."
|
23 |
+
Urinary tract infection,"Urinary tract infection: An infection of the kidney, ureter, bladder, or urethra. Abbreviated UTI. Not everyone with a UTI has symptoms, but common symptoms include a frequent urge to urinate and pain or burning when urinating."
|
24 |
+
Varicose veins,"A vein that has enlarged and twisted, often appearing as a bulging, blue blood vessel that is clearly visible through the skin. Varicose veins are most common in older adults, particularly women, and occur especially on the legs."
|
25 |
+
AIDS,"Acquired immunodeficiency syndrome (AIDS) is a chronic, potentially life-threatening condition caused by the human immunodeficiency virus (HIV). By damaging your immune system, HIV interferes with your body's ability to fight infection and disease."
|
26 |
+
Paralysis (brain hemorrhage),"Intracerebral hemorrhage (ICH) is when blood suddenly bursts into brain tissue, causing damage to your brain. Symptoms usually appear suddenly during ICH. They include headache, weakness, confusion, and paralysis, particularly on one side of your body."
|
27 |
+
Typhoid,"An acute illness characterized by fever caused by infection with the bacterium Salmonella typhi. Typhoid fever has an insidious onset, with fever, headache, constipation, malaise, chills, and muscle pain. Diarrhea is uncommon, and vomiting is not usually severe."
|
28 |
+
Hepatitis B,"Hepatitis B is an infection of your liver. It can cause scarring of the organ, liver failure, and cancer. It can be fatal if it isn't treated. It's spread when people come in contact with the blood, open sores, or body fluids of someone who has the hepatitis B virus."
|
29 |
+
Fungal infection,"In humans, fungal infections occur when an invading fungus takes over an area of the body and is too much for the immune system to handle. Fungi can live in the air, soil, water, and plants. There are also some fungi that live naturally in the human body. Like many microbes, there are helpful fungi and harmful fungi."
|
30 |
+
Hepatitis C,"Inflammation of the liver due to the hepatitis C virus (HCV), which is usually spread via blood transfusion (rare), hemodialysis, and needle sticks. The damage hepatitis C does to the liver can lead to cirrhosis and its complications as well as cancer."
|
31 |
+
Migraine,"A migraine can cause severe throbbing pain or a pulsing sensation, usually on one side of the head. It's often accompanied by nausea, vomiting, and extreme sensitivity to light and sound. Migraine attacks can last for hours to days, and the pain can be so severe that it interferes with your daily activities."
|
32 |
+
Bronchial Asthma,"Bronchial asthma is a medical condition which causes the airway path of the lungs to swell and narrow. Due to this swelling, the air path produces excess mucus making it hard to breathe, which results in coughing, short breath, and wheezing. The disease is chronic and interferes with daily working."
|
33 |
+
Alcoholic hepatitis,"Alcoholic hepatitis is a diseased, inflammatory condition of the liver caused by heavy alcohol consumption over an extended period of time. It's also aggravated by binge drinking and ongoing alcohol use. If you develop this condition, you must stop drinking alcohol"
|
34 |
+
Jaundice,"Yellow staining of the skin and sclerae (the whites of the eyes) by abnormally high blood levels of the bile pigment bilirubin. The yellowing extends to other tissues and body fluids. Jaundice was once called the ""morbus regius"" (the regal disease) in the belief that only the touch of a king could cure it"
|
35 |
+
Hepatitis E,A rare form of liver inflammation caused by infection with the hepatitis E virus (HEV). It is transmitted via food or drink handled by an infected person or through infected water supplies in areas where fecal matter may get into the water. Hepatitis E does not cause chronic liver disease.
|
36 |
+
Dengue,"an acute infectious disease caused by a flavivirus (species Dengue virus of the genus Flavivirus), transmitted by aedes mosquitoes, and characterized by headache, severe joint pain, and a rash. — called also breakbone fever, dengue fever."
|
37 |
+
Hepatitis D,"Hepatitis D, also known as the hepatitis delta virus, is an infection that causes the liver to become inflamed. This swelling can impair liver function and cause long-term liver problems, including liver scarring and cancer. The condition is caused by the hepatitis D virus (HDV)."
|
38 |
+
Heart attack,"The death of heart muscle due to the loss of blood supply. The loss of blood supply is usually caused by a complete blockage of a coronary artery, one of the arteries that supplies blood to the heart muscle."
|
39 |
+
Pneumonia,"Pneumonia is an infection in one or both lungs. Bacteria, viruses, and fungi cause it. The infection causes inflammation in the air sacs in your lungs, which are called alveoli. The alveoli fill with fluid or pus, making it difficult to breathe."
|
40 |
+
Arthritis,"Arthritis is the swelling and tenderness of one or more of your joints. The main symptoms of arthritis are joint pain and stiffness, which typically worsen with age. The most common types of arthritis are osteoarthritis and rheumatoid arthritis."
|
41 |
+
Gastroenteritis,"Gastroenteritis is an inflammation of the digestive tract, particularly the stomach, and large and small intestines. Viral and bacterial gastroenteritis are intestinal infections associated with symptoms of diarrhea , abdominal cramps, nausea , and vomiting ."
|
42 |
+
Tuberculosis,"Tuberculosis (TB) is an infectious disease usually caused by Mycobacterium tuberculosis (MTB) bacteria. Tuberculosis generally affects the lungs, but can also affect other parts of the body. Most infections show no symptoms, in which case it is known as latent tuberculosis."
|
symptom_precaution.csv
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Disease,Precaution_1,Precaution_2,Precaution_3,Precaution_4
|
2 |
+
Drug Reaction,stop irritation,consult nearest hospital,stop taking drug,follow up
|
3 |
+
Malaria,Consult nearest hospital,avoid oily food,avoid non veg food,keep mosquitos out
|
4 |
+
Allergy,apply calamine,cover area with bandage,,use ice to compress itching
|
5 |
+
Hypothyroidism,reduce stress,exercise,eat healthy,get proper sleep
|
6 |
+
Psoriasis,wash hands with warm soapy water,stop bleeding using pressure,consult doctor,salt baths
|
7 |
+
GERD,avoid fatty spicy food,avoid lying down after eating,maintain healthy weight,exercise
|
8 |
+
Chronic cholestasis,cold baths,anti itch medicine,consult doctor,eat healthy
|
9 |
+
hepatitis A,Consult nearest hospital,wash hands through,avoid fatty spicy food,medication
|
10 |
+
Osteoarthristis,acetaminophen,consult nearest hospital,follow up,salt baths
|
11 |
+
(vertigo) Paroymsal Positional Vertigo,lie down,avoid sudden change in body,avoid abrupt head movment,relax
|
12 |
+
Hypoglycemia,lie down on side,check in pulse,drink sugary drinks,consult doctor
|
13 |
+
Acne,bath twice,avoid fatty spicy food,drink plenty of water,avoid too many products
|
14 |
+
Diabetes ,have balanced diet,exercise,consult doctor,follow up
|
15 |
+
Impetigo,soak affected area in warm water,use antibiotics,remove scabs with wet compressed cloth,consult doctor
|
16 |
+
Hypertension ,meditation,salt baths,reduce stress,get proper sleep
|
17 |
+
Peptic ulcer diseae,avoid fatty spicy food,consume probiotic food,eliminate milk,limit alcohol
|
18 |
+
Dimorphic hemmorhoids(piles),avoid fatty spicy food,consume witch hazel,warm bath with epsom salt,consume alovera juice
|
19 |
+
Common Cold,drink vitamin c rich drinks,take vapour,avoid cold food,keep fever in check
|
20 |
+
Chicken pox,use neem in bathing ,consume neem leaves,take vaccine,avoid public places
|
21 |
+
Cervical spondylosis,use heating pad or cold pack,exercise,take otc pain reliver,consult doctor
|
22 |
+
Hyperthyroidism,eat healthy,massage,use lemon balm,take radioactive iodine treatment
|
23 |
+
Urinary tract infection,drink plenty of water,increase vitamin c intake,drink cranberry juice,take probiotics
|
24 |
+
Varicose veins,lie down flat and raise the leg high,use oinments,use vein compression,dont stand still for long
|
25 |
+
AIDS,avoid open cuts,wear ppe if possible,consult doctor,follow up
|
26 |
+
Paralysis (brain hemorrhage),massage,eat healthy,exercise,consult doctor
|
27 |
+
Typhoid,eat high calorie vegitables,antiboitic therapy,consult doctor,medication
|
28 |
+
Hepatitis B,consult nearest hospital,vaccination,eat healthy,medication
|
29 |
+
Fungal infection,bath twice,use detol or neem in bathing water,keep infected area dry,use clean cloths
|
30 |
+
Hepatitis C,Consult nearest hospital,vaccination,eat healthy,medication
|
31 |
+
Migraine,meditation,reduce stress,use poloroid glasses in sun,consult doctor
|
32 |
+
Bronchial Asthma,switch to loose cloothing,take deep breaths,get away from trigger,seek help
|
33 |
+
Alcoholic hepatitis,stop alcohol consumption,consult doctor,medication,follow up
|
34 |
+
Jaundice,drink plenty of water,consume milk thistle,eat fruits and high fiberous food,medication
|
35 |
+
Hepatitis E,stop alcohol consumption,rest,consult doctor,medication
|
36 |
+
Dengue,drink papaya leaf juice,avoid fatty spicy food,keep mosquitos away,keep hydrated
|
37 |
+
Hepatitis D,consult doctor,medication,eat healthy,follow up
|
38 |
+
Heart attack,call ambulance,chew or swallow asprin,keep calm,
|
39 |
+
Pneumonia,consult doctor,medication,rest,follow up
|
40 |
+
Arthritis,exercise,use hot and cold therapy,try acupuncture,massage
|
41 |
+
Gastroenteritis,stop eating solid food for while,try taking small sips of water,rest,ease back into eating
|
42 |
+
Tuberculosis,cover mouth,consult doctor,medication,rest
|