Skip to content

aurelioo29/Diabetes-Prediction-App

Repository files navigation

🩺 Diabetes Prediction for Female Patients 💻

🌟 Overview

This project is a web application designed to predict diabetes in female patients using machine learning. The application allows users to input various health attributes and receive a prediction on whether the patient has diabetes. The goal is to provide early detection and awareness. 🤖💡

🚀 Setup and Installation

  1. Clone the repository:

    git clone https://github.com/aurelioo29/Diabetes-Prediction-App.git
    cd Diabetes-Prediction-App
  2. Create a virtual environment:

    python -m venv env
    • On macOS/Linux:
    source env/bin/activate
    • On Windows:
    env\Scripts\activate
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Set up the database:

    • Ensure you have MySQL installed and running. 🛠️
    • Create a database named diabetes_prediction. 📊
    • Run the SQL script and import the diabetes_prediction.sql file into the database.
  5. Run the Flask application:

    python app.py
  6. Access the application:

    Open your web browser and navigate to http://127.0.0.1:5000. 🌐

📝 Usage

  1. Fill out the form with the required health attributes. 🏥
  2. Click the "Prediksi" button to get the prediction. 🔮
  3. The prediction result will be displayed along with the input data and classification report. 📊

📦 Dependencies

This project uses the following dependencies:

  • Flask
  • Flask-SQLAlchemy
  • MySQL-connector-python
  • PyMySQL
  • scikit-learn
  • numpy
  • scipy
  • joblib

🤝 Contributing

I welcome contributions! 🙌 Please fork the repository and submit a pull request. Together, we can improve this application. ✨

About

Repository diabetes prediction application built with Flask and machine learning models. It predicts the likelihood of diabetes based on user inputs, providing a simple and efficient solution for early detection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors