The Diabetes Prediction System is a machine learning project designed to predict the likelihood of developing diabetes based on various health metrics. The system uses the Pima Indian Diabetes dataset to train a logistic regression model, providing a user-friendly interface for making predictions.
-
Clone the Repository
git clone <repository-url> cd DiabetesPrediction -
Install Dependencies
Ensure you have Python 3.x installed. Install the required packages using:
pip install -r requirements.txt -
Setup Dataset
Download the Pima Indian Diabetes dataset from Kaggle:
Place the dataset in the
DiabetesPredictiondirectory. Make sure the dataset file is nameddiabetes.csvor update the path inviews.pyaccordingly. -
Run the Project
Start the Django development server:
python manage.py runserverNavigate to
http://127.0.0.1:8000/in your browser to access the application.
-
Home Page
Visit the home page to get an overview of the Diabetes Prediction System. Click on "Let's go" to proceed to the prediction page.
-
Prediction Page
On the prediction page, enter the required health metrics and submit the form. A popup will display the prediction result.
-
Dataset Details
The dataset used for training and testing the model includes:
Pregnancies: Number of pregnanciesGlucose: Plasma glucose concentrationBlood Pressure: Diastolic blood pressureSkin Thickness: Triceps skin fold thicknessInsulin: 2-Hour serum insulinBMI: Body mass indexDiabetes Pedigree Function: Diabetes pedigree functionAge: Age in yearsOutcome: Binary outcome variable indicating diabetes presence (1) or absence (0)
If you’d like to contribute to this project:
-
Fork the Repository
Click the "Fork" button on GitHub to create your own copy of the repository.
-
Create a New Branch
git checkout -b <feature-branch> -
Make Changes
Implement your feature or bug fix.
-
Commit Your Changes
git add . git commit -m "Description of changes" -
Push to Your Fork
git push origin <feature-branch> -
Submit a Pull Request
Go to the repository on GitHub and submit a pull request detailing your changes.
This project is licensed under the MIT License.
Developed by Yoon Thiri Ko. Special thanks to YouTube tutorials and Kaggle for the dataset.