An AI-powered healthcare consultation platform that provides medical image analysis and text-based health consultations using Google's Gemini Pro model.
- Medical Image Analysis: Upload and analyze medical images for preliminary insights
- Text-based Health Consultation: Interactive chat interface for health-related queries
- Responsive Design: Fully responsive interface that works across devices
- Real-time Analysis: Quick and detailed AI-powered responses
- Professional Format: Structured responses following medical consultation patterns
- Backend: Flask (Python)
- Frontend: HTML5, CSS3
- AI Model: Google Gemini Pro 1.5 (gemini-1.5-pro-002)
- Evaluation: Custom model evaluation framework
git clone https://github.com/yourusername/careconnect.git
cd careconnect
pip install -r requirements.txt
api_key = "your-google-ai-api-key-here"
python app.py
- Click on the "Image Analysis" tab
- Upload a medical image using the upload button
- Click "Analyze Image" to receive AI-powered insights
- Review the detailed analysis provided
- Navigate to the "Text Consultation" tab
- Type your health-related query in the chat input
- Receive structured responses
The project includes a comprehensive evaluation framework evaluate_model.py
that assesses:
- Response Quality Metrics
- Section Coverage
- Medical Relevance
- Response Coherence
- Practical Advice
- Response Time
CareConnect/
│
├── static/
│ ├── uploads/ # Image upload directory
│ └── main.css # Main stylesheet
│
├── templates/
│ └── index.html # Main application template
│
├── app.py # Flask application
├── utils
│ └──evaluate_model.py # Model evaluation framework
│
├── evaluation_plots
├── evaluation_results
├── api_key.py # API key configuration
├── uploads # Screenshots
├── requirements.txt
└── README.md # Project documentation
- Google Gemini AI for providing the AI model
- Flask community for the excellent web framework
- Contributors who helped improve the application