Downloads · 30 days
0
hassaanik/Health_Vision_AI
Health_Vision_AI is a machine learning model from hassaanik. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
The Health Vision AI is a Flask-based web application powered by machine learning models and a large language model (LLM) that assists in predicting various diseases using medical images. The app also allows users to…
Downloads · 30 days
0
Access
Public
Updated Oct 27, 2024
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.pth801 MB · 70%
From the Hugging Face model README
The Health Vision AI is a Flask-based web application powered by machine learning models and a large language model (LLM) that assists in predicting various diseases using medical images. The app also allows users to access research papers and case reports related to their predictions and ask questions directly from the LLM regarding any disease.
The Health Vision AI web application uses machine learning models to classify medical images into different disease categories. It supports three main disease prediction categories:
Additionally, users can query a built-in LLM for medical advice or information. The app also provides a unique feature where users can access research papers and case reports related to the predicted disease.
The project follows a Model-View-Controller (MVC) pattern.
Tabs: The main interface consists of four tabs:
1. Gastrointestinal Disease Prediction
2. Chest CT Disease Prediction
3. Chest X-ray Disease Prediction
4. LLM Chat
Each tab contains:
Styling: The UI is clean with a modern design. A dark mode and light-themed background with disease-specific images that change continuously create a professional appearance. Hover effects on the research and case report links provide better interactivity.
The backend of the project is powered by Flask. Below are the key elements:
Routes:
/predict_gastrointestinal
/predict_chest_ct
/predict_chest_xray
Each route handles a POST request with an uploaded image, passes it to the corresponding model, and returns a prediction.
/ask_llm
This route accepts a user query and sends it to the LLM API to retrieve a text-based answer.
Handling Predictions
For each prediction:
The application integrates with LLaMA 3.1 API to provide a conversational interface where users can ask medical-related questions.
Workflow:
/ask_llm.Health Vision AI/
├── static/
│ ├── styles.css # Custom CSS for styling
│ └── images/ # Images for background (optional)
├── templates/
│ └── index.html # Main HTML file
├── models/
│ ├── gastro_model.h5 # Gastrointestinal model
│ ├── chest_ct_model.h5 # Chest CT model
│ ├── chest_xray_model.h5# Chest X-ray model
│ └── LLM # LLM model
├── app.py # Flask application
├── requirements.txt # Required Python packages
└── README.md # Project documentation
Image Prediction:
LLM Query: