Skip to content

This is a project to classify whether or not the patient has hypothyroid disease based on Age, Gender, TSH levels and other test results using Deep Learning.

Notifications You must be signed in to change notification settings

merishnaSuwal/diagnose-hypothyroid-deep-learning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diagnosing Hypothyroid disease using Deep Learning

Hypothyroid disease or Hypothyroidism is one of the most difficult diseases to diagnose. It is a condition which causes your thyroid gland to not produce enough of certain crucial hormones. It usually may not cause noticeable symptoms in the early stages and hence becomes extremely difficult to diagnose. Applying deep learning algorithms can help assist healthcare workers in identifying signs and symptoms based on patterns shown in past cases of patients' data.

In this tutorial, we will be learning the code and workflow for diagnosing whether or not a person is suffering from Hypothyroid disease based on various metrics.

  1. Start by creating a virtual environment for installing the libraries.

python3 -m virtualenv venv

Note: If you have not installed the virtualenv library, you can do so by running:

python3 -m pip install --user virtualenv

  1. Activate the environment.

    For Windows:

    cd venv/Scripts
    activate
    

    For MacOS/Linux:

    source env/bin/activate

  2. Go back to the root directory and install the requirements.txt.

pip install -r requirements.txt

  1. We will be using Jupyter Notebook to run our code. You can install it using pip.

pip install notebook

  1. The diagnose_hypothyroid.ipynb file contains the code for Diagnosing Hypothyroid disease using Deep Learning. The code itself contains the necessary instructions and comments for running it. To run the notebook, run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows):

jupyter notebook

Prerequisites

  1. Programming knowledge in Python.
  2. Basic knowledge of Jupyter Notebook, Deep Learning, Keras.

Python Libraries used

  1. Numpy: For mathematical operations
  2. Pandas: For data loading and processing
  3. Matplotlib: For data visualization
  4. Keras: For building the deep neural network model
  5. Scikit-learn: For evaluating the model performance
  6. Pickle: For saving the trained model

Results

Upon implementing an artificial neural network with a sequential model with an input and output layer, the model gave fairly good results in classifying if a patient is diagnosed with hypothyroid or not.

Citations

  • The dataset for training our model was derived from here.

About

This is a project to classify whether or not the patient has hypothyroid disease based on Age, Gender, TSH levels and other test results using Deep Learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%