Media AI is an innovative application designed to diagnose diseases in brain, eyes, and lungs scan inputs using deep learning algorithms trained on medical imaging datasets. Additionally, it aims to create an OpenMRS (Open Medical Record System) to track patient diseases and analyze disease trends.
The brain diseases classification in Media AI includes the following categories:
- Glioma
- Benign Tumor
- Normal (Non-affected)
Media AI can classify the following eye diseases:
- Normal
- Cataract
- Glaucoma
- Diabetic Retinopathy
The lung diseases classification covers the following conditions:
- Bacterial Pneumonia
- Corona Virus Disease (COVID-19)
- Normal
- Tuberculosis
- Viral Pneumonia
Media AI relies on curated medical imaging datasets to train its machine learning models. Here are the details of the datasets used:
- Contains images of eyes with classes including Normal, Cataract, Glaucoma, and Diabetic Retinopathy.
- Eyes Diseases Classification Dataset
- Contains images of lungs with classes including Bacterial Pneumonia, Corona Virus Disease, Normal, Tuberculosis, and Viral Pneumonia.
- Lungs Disease Dataset
- Contains images of brain scans with classes including Glioma, Benign Tumor, and Normal.
- Multi Cancer Brain MRI Dataset
- Additional Normal Brain MRI Images: Brain MRI Images Dataset
The motivation behind the Media AI project is to leverage machine learning and image processing techniques to enhance medical diagnostics. By automating disease detection processes, Media AI aims to improve the efficiency and accuracy of diagnoses, leading to better patient outcomes.
In addition to disease diagnosis, Media AI implements an OpenMRS system to store patient diseases data. This enables healthcare providers to track patient health records, analyze disease trends, and make informed decisions regarding treatment and resource allocation.
Media AI stands out for its ability to accurately diagnose diseases using advanced machine learning techniques. By automating the diagnosis process and implementing an OpenMRS system, Media AI offers a comprehensive solution for healthcare providers to improve patient care and optimize healthcare management.
Developing Media AI poses challenges such as dataset collection, model training, and system integration. However, overcoming these challenges will lead to a powerful tool for medical diagnostics and healthcare management.
Before setting up Medica, ensure you have completed the following prerequisites:
- Create a Firebase project with Authentication, Realtime Database, and Storage Bucket enabled.
- Obtain the Firebase API credentials, including the API key, auth domain, database URL, project ID, storage bucket, messaging sender ID, app ID, and measurement ID.
- Fill in the
.env
file with the Firebase API credentials.
Clone this repository to your local machine using the following command:
git clone https://github.com/Darrshan-Sankar/Medica-AI.git
This .env
file has all the environment variables to run the application.
Use the setup made in pre-requisites to fill this file
Set-up an environment to run the application:
- Download and nstall Python 3.9.12 from the official website: Python Downloads
- Open Command Prompt and navigate to the project directory.
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
venv\Scripts\activate
- Install required Python packages:
pip install flask tensorflow matplotlib opencv-python python-dotenv pip install pyrebase pip install pycryptodome==3.19.0
- Run the Flask application:
python -m flask run
- Install Python 3.9.12:
sudo apt-get update sudo apt-get install python3.9
- Open Terminal and navigate to the project directory.
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install required Python packages:
pip install flask tensorflow matplotlib opencv-python python-dotenv pip install pyrebase pip install pycryptodome==3.19.0
- Run the Flask application:
python -m flask run
- Install Python 3.9.12 using Homebrew:
brew install [email protected]
- Open Terminal and navigate to the project directory.
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install required Python packages:
pip install flask tensorflow matplotlib opencv-python python-dotenv pip install pyrebase pip install pycryptodome==3.19.0
- Run the Flask application:
python -m flask run
Clone this repository to your local machine using the following command:
git clone https://github.com/Darrshan-Sankar/Medica-AI.git
This .env
file has all the environment variables to run the application.
Use the setup made in pre-requisites to fill this file
Navigate to the project directory and build the Docker image using the provided Dockerfile:
docker build -t medica .
Once the image is built, you can run the Docker container with the following command:
docker run -p 5000:5000 medica
The application will be accessible at http://localhost:5000
.