Skip to content

This a multiple disease prediction based on user input which can predict upto 40 disease and trained on 131 parameters

Notifications You must be signed in to change notification settings

Sudhanshu-Ambastha/Multiple-Disease-Prediction-Bot

Repository files navigation

Multiple Disease Prediction Bot

Web capture_16-12-2023_15579_localhost Web capture_16-12-2023_16327_localhost

Table of Contents

About

The Multiple Disease Prediction Bot is a machine learning model designed to predict diseases based on input symptoms. This application uses a pre-trained model (Multiple_disease_prediction_bot_trained_model.sav) and requires a trained label_encoder.sav to interpret the predictions. It utilizes the symptoms present as columns in the Training.csv file to process user input.

Files

  1. Multiple_disease_prediction_bot_trained_model.sav: The serialized (saved) trained machine learning model.
  2. README.md: This file, providing information about the project.
  3. Training.csv: The dataset used for training the machine learning model (used to identify available symptoms).
  4. label_encoder.sav: The serialized (saved) LabelEncoder object, used to transform disease names from numerical predictions.
  5. app.py: The Streamlit application code for the disease prediction bot.

Note: Files like Jupyter Notebooks and other Python scripts might be part of the project's development history but are not directly used by the current Streamlit application.

Data Sources

  • Multiple disease dataset: Custom dataset used for training and testing. training. csv

Features

  • Predicts diseases based on user-provided symptoms.
  • Uses a pre-trained machine learning model.
  • Interprets predictions using a trained LabelEncoder.
  • Leverages the symptom list from the Training.csv file.
  • Provides a user-friendly interface via Streamlit.

Usage

To use the Multiple Disease Prediction Bot, follow these steps:

  1. Ensure you have the following files in the same directory as app.py:
    • Multiple_disease_prediction_bot_trained_model.sav
    • label_encoder.sav
    • Training.csv
  2. Make sure you have the necessary Python libraries installed:
    pip install streamlit joblib pandas numpy scikit-learn
  3. Run the Streamlit application from your terminal:
    python -m streamlit run "Streamlit app/app.py"
  4. Once the application opens in your web browser, enter the symptoms you are experiencing in the text area, separated by commas (e.g., Fever,Cough,Fatigue). The input is case-insensitive, and spaces in symptom names will be handled.
  5. Click the "Predict Disease" button to get the model's prediction.

Format for Input Parameters

When providing input parameters for disease prediction, use the following format: "Parameter1,Parameter2,Parameter3. "for ex= "Fungal infection: Itching, Skin Rash, Nodal Skin Eruptions"

List of Available Symptoms & Diseases

List of Symptoms:-
A B C D E
Abnormal_Menstruation Bladder_Discomfort Chest_Pain Dark_Urine Enlarged_Thyroid
Abdominal_Pain Belly_Pain Chills Dehydration Excessive_Hunger
Acidity Blurred_And_Distorted_Vision Cold_Hands_and_Feets Depression Extra_Marital_Contacts
Acute_Liver_Failure Bloody_Stool Coma Diarrhoea
Altered_Sensorium Back_Pain Constipation Dizziness
Anxiety Breathlessness Congestion Drying_and_Tingling_Lips
Belly_Pain Continuous_Sneezing Dischromic
Brittle_Nails Continuous_Feel_of_Urine Distention_Of_Abdomen
Blackheads Cough
Bruising Cramps
Blister
Burning_Micturition
Blood_In-Sputum
F H I J K L
Fast_Heart_Rate High_Fever Irregular_Sugar_Level Joint_Pain Knee_Pain Lack_of_Concentration
Fatigue Headache Increased_Appetite Lethargy
Fluid_Overload Hip_Joint_Painlurred_And_Distorted_Vision Increased_Urination Loss_of_Appetite
Foul_Smell_of_Urine History_of_Alcohol_Consumption Indigestion Loss_of_Balance
Family-History Inflammatory_Nails Loss_of_Smell
Internal_Itching
Irritability
Irritation_in_Anus
Itching
M N O P R S
Muscle_Wasting Nausea Obesity Phlegm Redness_Of_Eyes Slurred_Speech
Malaise Neck_Pain Pain_Behind_The_Eyes Red_Sore_Around_Nose Sweating
Metallic_Taste Nodal_Skin_Eruptions Patches_In_Throat Red_Spots_Over_Body Sunken_Eyes
Mild_Fever Pain_During_Bowel_Movements Restlessness Scurring
Mood_Swings Pain_in_Anal_Region Runny_Nose Shivering
Movement_Stiffness Painful_Walking Rusty_Sputum Silver_Like_Dusting
Muscle_Pain Palpitations Receiving_blood_transfusion Sinus_Pressure
Muscle_Weakness Polyuria Receiving_Unterile_Injections Skin_Peeling
Muscular_Stiffness Prominent_Veins_on_Calf Skin_Rash
Mucoid_Sputum Puffy_Face_and_Eyes Small_Dents_in_Nails
Pus_Filled_Pimples Spinning_Movements
Patches Spotting_Urination
Palpitations Stiff_Neck
Stomach_Pain
Stomach_Bleeding
Swelling_Joints
Swelling_of_Stomach
Swollen_Legs
Swollen_Blood_Vessels
Swollen_Extremities
Swollen_Lymph_Nodes
T U V W Y
Throat_Irritation Ulcers_on_Tongue Vomiting Watering_From_Eyes Yellow_Crust_Ooze
Toxic_Look_(Typhos) Unsteadiness Visual-Disturbances Weakness_in_Limbs Yellow_Urine
Weight_Gain Yellowing_of_Eyes
Weight_Loss Yellowish_Skin
weakness_of_one_body_side
List of Diseases:-
Column 1 Column 2 Column 3 Column 4 Column 5
Fungal infection Jaundice Heart attack Arthritis GERD
Hepatitis C Malaria Varicose veins Paroymsal Positional Vertigo Diabetes
Hepatitis E Pneumonia Gastroenteritis Acne Heart Disease
Alcoholic hepatitis Dengue Bronchial Asthma Urinary tract infection Chronic cholestasis
Tuberculosis Typhoid Hypoglycemia Psoriasis Drug Reaction
Common Cold Hypothyroidism Osteoarthristis Hepatitis D Peptic ulcer disease
Chicken pox Hyperthyroidism Migraine Hepatitis B AIDS
Dimorphic hemmorhoids(piles) Hypertension Paralysis (brain hemorrhage) Allergy Hepatitis A
Impetigo

Getting Disease Predictions

To get a disease prediction, simply enter your symptoms in the provided text area and click the "Predict Disease" button. Ensure that the symptoms you enter are present in the list of available symptoms. The model will then process these symptoms and output a predicted disease.

Troubleshooting

If you encounter any issues or have questions, please don't hesitate to reach out for support.

Happy predicting! 🤖💙

Check out the other repositories related to this one

Related Repos which you should check out:-

Web capture_16-12-2023_162935_localhost

Web capture_16-12-2023_162351_localhost

- Check out the main repo as this project is part of it

Combined Disease Predictor

Contributors


Sudhanshu Ambastha


Parth Shrivastava


Sarthak Srivastava