This project utilizes the kidney disease dataset available in the UCI Machine Learning Repository to train and test various classification models for predicting chronic kidney disease. The dataset contains 24 features, including demographic information, clinical measurements, and disease history of patients. The target variable is a binary classification indicating the presence or absence of chronic kidney disease.
The following Python libraries are required for this project:
- tkinter
- pandas
- numpy
- matplotlib
- seaborn
- sklearn
- keras
- tensorflow
The project consists of the following main components:
- Data Preprocessing: Data cleaning, feature selection, and normalization are performed to prepare the dataset for training.
- Model Training: Various classification models, including logistic regression, decision trees, random forests, and neural networks, are trained and compared.
- Model Evaluation: The performance of the trained models is evaluated using various metrics, including accuracy, precision, recall, and F1 score.
- Model Deployment: The best-performing model is deployed as a web application using tkinter for user interaction.
To run this project, follow these steps:
- Clone the repository to your local machine.
- Create a virtual environment and activate it.
- Install the required Python libraries using pip.
- Run the main.py script to start the application.
Clone the repository to your local machine using the following command:
git clone https://github.com/your-username/chronic-kidney-disease-prediction.git
Create a virtual environment and activate it using the following commands:
python -m venv venv
source venv/bin/activate
Install the required Python libraries using the following command:
pip install -r requirements.txt
Run the main.py script to start the application:
python main.py
Upon starting the application, you will be presented with a user interface that allows you to choose between training the project and testing the project.
- Train Project: This option will train the machine learning models using the provided dataset. The trained model will be saved to disk for later use.
- Test Project: This option will allow you to test the performance of the trained model using a new dataset. The predicted results will be displayed on the screen.
This project demonstrates the use of machine learning techniques to predict chronic kidney disease using various classification models. By comparing the performance of different models, this project provides a baseline for further exploration and improvement.
This project is licensed under the MIT License. See the LICENSE file for details.
The dataset used in this project is available in the UCI Machine Learning Repository and was donated by Dr. S. Charoenkwan, Department of Medicine, Faculty of Medicine,