Skip to content

"Thyroid_Level_Prediction" is an end-to-end machine learning project hosted on GitHub. It offers a predictive model to detect thyroid and predict its level/class based on medical data and patient history. This tool aids in early detection and management of thyroid disorders, providing Healthcare Professionals with a valuable diagnostic resource.

License

Notifications You must be signed in to change notification settings

kunalliman/Thyroid_Disease_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thyroid Disease Detection

Developing a machine learning model for assisting in the preliminary screening of thyroid diseases based on patient data, aiming to augment medical professionals' diagnostic process.

Problem Statement

The goal of this project is to create a classification model using machine learning algorithms to predict the type of thyroid disease a person has based on the patient's data. This solution aids medical professionals in achieving:

  • Accurate predictions of thyroid diseases.
  • Efficiency in detecting the type of thyroid disease.
  • Reducing human error in the diagnostic process.

Tools Used

This project utilizes the following tools and technologies:

  • Python
  • Flask
  • HTML

Project Flow

Model Training and Saving

  1. Data Ingestion (Validation): Ensuring that the data used for model training is valid and accurate.
  2. Data Preprocessing: Preparing and cleaning the data for training.
  3. Data Clustering: Grouping data for efficient model training.
  4. Train-Test Split for Each Cluster: Splitting the data into training and testing datasets for each cluster.
  5. Training and Model Evaluation: Training the classification model for each cluster and evaluating its performance.
  6. Save Model: Saving the trained models for future use.
  7. Prediction: Making predictions using the saved models.

All the training code is located in the src directory and can be executed by running the main.py file. Main File

Data Description and EDA

For a detailed data description and exploratory data analysis (EDA), please refer to the PowerPoint (PPT) and Jupyter Notebook files available in the "notebook_files_&_PPT" directory. EDA

Predicting on Live Data with a User Interface (UI)

  1. Uploading File: User uploads a file containing patient data.
  2. Data Ingestion (Validation): Ensuring that the uploaded data is valid and accurate.
  3. Data Preprocessing: Preparing and cleaning the uploaded data.
  4. Data Clustering: Grouping the data for efficient prediction.
  5. Predicting by Saved Models for Each Cluster: Using the saved models to make predictions.
  6. Return the Uploaded File with Prediction Results to Download: Providing the user with the option to download the file with prediction results.

All the code can be tested using the test code written at the bottom of Pred_valid_insert.py. Note: The code is commented out. Test Code Or you can run the app.py to access a web page. Flask App

Click the User Interface image to see the Demo Video.

Thyroid Detection User Interface

Project Documents

Conclusion

While our solution does not replace professional medical diagnosis, it serves as a supportive tool for medical teams, enabling them to conduct initial screenings and prompt further clinical evaluations. This adjustment ensures a responsible use of the model within the medical context.

Author

Kunal Liman: https://www.linkedin.com/in/kunal-liman/

Help Me Improve

Hello Reader if you find any bug please consider raising issue I will address them asap.

About

"Thyroid_Level_Prediction" is an end-to-end machine learning project hosted on GitHub. It offers a predictive model to detect thyroid and predict its level/class based on medical data and patient history. This tool aids in early detection and management of thyroid disorders, providing Healthcare Professionals with a valuable diagnostic resource.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published