π 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
Disease | Accuracy | Algorithm | Status |
---|---|---|---|
Breast Cancer | 95%+ | Random Forest | β Active |
Diabetes | 90%+ | SVM | β Active |
Fetal Health | 92%+ | Decision Tree | β Active |
Heart Disease | 88%+ | Logistic Regression | β Active |
Kidney Disease | 94%+ | Random Forest | β Active |
Lung Cancer | 91%+ | 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!
- Fork this repository
- Create a new branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m βAdd some AmazingFeatureβ)
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Made with β€οΈ by a student of Universitas Amikom Yogyakarta