Back to projects
March 18, 2022
3 min read

AI-Powered Medical Diagnosis Application

AI-based medical diagnosis tool.

πŸ“Œ Project Overview

This AI-based Medical Diagnosis Application is a student project developed at Universitas Amikom Yogyakarta. It leverages Machine Learning (ML) models to predict diseases based on user input data and provides informative data visualizations.

πŸ’Ύ Repository Contents

This repository includes:

  • Preprocessed medical datasets
  • Google Colab Notebooks for model training
  • Trained model files (.pkl) for disease prediction:
    • Breast Cancer
    • Diabetes
    • Fetal Health
    • Heart Disease
    • Kidney Disease
    • Lung Cancer
  • Streamlit web application code

πŸš€ Key Features

  • πŸ₯ AI-based disease prediction using Machine Learning models
  • πŸ“Š Interactive Data Visualization with Matplotlib & Seaborn
  • 🌐 User-friendly Web Interface built with Streamlit
  • πŸ” Secure Data Handling using Pandas
  • πŸ“± Responsive design accessible from various devices

πŸ› οΈ Technologies Used

  • Python 🐍 - Primary programming language
  • Streamlit 🎨 - Framework for building web apps
  • Scikit-Learn πŸ€– - Machine Learning library
  • Pandas & NumPy πŸ“Š - Data manipulation and analysis
  • Matplotlib & Seaborn πŸ“ˆ - Data visualization libraries
  • Pickle πŸ’Ύ - For saving and loading trained models

πŸ“‹ System Requirements

  • Python 3.7 or newer
  • Minimum 4GB RAM (8GB recommended)
  • At least 1GB of storage space

πŸ“Œ How to Run the Application Locally

Step 1: Clone the Repository

git clone https://github.com/0073212/AI_Medical_Diagnosis_App.git
cd AI_Medical_Diagnosis_App

Step 2: Create and Activate Virtual Environment


# Create virtual environment

python -m venv venv

# Activate virtual environment

# On Windows:

venv\Scripts\activate

# On Mac/Linux:

source venv/bin/activate

Step 3: Install Dependencies

pip install -r requirements.txt

Step 4: Run the Application

streamlit run app.py

The app will open in your browser at http://localhost:8501

AI_Medical_Diagnosis_App/
β”œβ”€β”€ app.py                 # Main Streamlit app file
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ models/                # Folder containing trained models (.pkl)
β”‚   β”œβ”€β”€ breast_cancer_model.pkl
β”‚   β”œβ”€β”€ diabetes_model.pkl
β”‚   β”œβ”€β”€ fetal_health_model.pkl
β”‚   β”œβ”€β”€ heart_disease_model.pkl
β”‚   β”œβ”€β”€ kidney_disease_model.pkl
β”‚   └── lung_cancer_model.pkl
β”œβ”€β”€ data/                  # Folder with datasets
β”œβ”€β”€ notebooks/             # Google Colab notebooks
└── README.md              # Project documentation

πŸ“Š Available Models

DiseaseAccuracyAlgorithmStatus
Breast Cancer95%+Random Forestβœ… Active
Diabetes90%+SVMβœ… Active
Fetal Health92%+Decision Treeβœ… Active
Heart Disease88%+Logistic Regressionβœ… Active
Kidney Disease94%+Random Forestβœ… Active
Lung Cancer91%+XGBoostβœ… Active

🚨 Disclaimer

⚠️ IMPORTANT:
This application is intended for educational and research purposes only.
The predictions generated should not be used as a substitute for professional medical advice.
Always consult a healthcare provider for diagnosis and treatment.

🀝 Contributions

We welcome contributions from the community!

  1. Fork this repository
  2. Create a new branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m β€˜Add some AmazingFeature’)
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Made with ❀️ by a student of Universitas Amikom Yogyakarta