Intelligent medical assistant powered by Mistral models and LangGraph agentic workflow, combining computer vision (DenseNet-121) with hybrid RAG knowledge retrieval for personalized X-ray interpretation and patient guidance.
🏆 3rd Place Winner - AI for Good Hackathon 2024 at EPFL (Guillaume Krafft, Theo Gieruc, Axel Collet, Patrick Remerscheid)
Automated, non-clinician imaging centers for cost-effective cancer screening and prevention - making quality medical imaging as accessible as getting a haircut.
📹 Watch Full Demo (Normal Speed) - Click to view the complete 5-minute walkthrough at normal speed.
- 🏥 Technician Interface - Patient gets scanned, technician manages results distribution, DenseNet-121 provides instant X-ray analysis
- 👤 Patient Interface - Patient reviews results and chats with HippoChat AI assistant using personal context, expert guidelines and web search
- 🛠️ Development Environment - Complete workflow testing and debugging in LangGraph Studio
Core Innovation: LangGraph orchestrates intelligent tool selection, combining medical-grade computer vision with hybrid knowledge retrieval for evidence-based patient care.
- 🧠 Agent: LangGraph + Mistral-large-latest
- 🔍 Computer Vision: torchxrayvision DenseNet-121
- 📚 Knowledge: FAISS vector store + Tavily web search
- 🛠️ Tools: 4 specialized medical functions
- 💾 State: Efficient runtime context management
extract_top_findings- X-ray pathology analysisretrieve_medical_knowledge- Hybrid knowledge searchgenerate_recommendations- Evidence-based care guidanceget_patient_information- Personalized demographics
- Install uv package manager
- 📋 See CONFIGURATION.md for complete setup guide and all required API keys
uv run gradio_frontend.pyAccess at: http://localhost:7860
- Technician Interface: Upload & analyze X-ray images
- Patient Interface: Interactive AI guidance and Q&A
uv run start_langgraph.pyAccess at: http://127.0.0.1:2024
- Interactive agent testing with debugging tools
- Real-time conversation tracing
- Hot reload for development
Try this prompt to see hybrid retrieval in action:
Can you tell me about the latest research and current treatment protocols for pneumothorax? I want both expert guidelines and recent developments.
With X-ray results:
{
"Cardiomegaly": 0.85,
"Pneumonia": 0.72,
"Pleural_Effusion": 0.68,
"Normal": 0.15,
"Pneumothorax": 0.12
}Patient context:
{"name": "Test Patient", "age": 45}This will trigger both local FAISS search (expert guidelines) and web search (latest research), demonstrating the intelligent hybrid retrieval system.
# Test complete X-ray interpretation workflow
uv run python tests/test_medical_agent.py
# Compare LLM vs LLM+RAG performance
uv run python tests/test_rag_comparison.py- X-ray Analysis: Automated pathology detection and interpretation
- Medical Q&A: Patient questions with contextual responses
- RAG Effectiveness: Knowledge retrieval quality assessment
- Tool Orchestration: LangGraph agent decision-making
"Getting a medical scan as easy as getting a haircut"
Imagine routine cancer screening at a local imaging center within 40 minutes from your home:
- Walk in → Get scanner assigned instantly
- Minimal prep → Technical operator handles basic safety protocols
- Get scanned → Automated imaging process
- Walk out → Complete in ~45 minutes
Instant results: Receive your diagnosis and follow-up steps via phone, delivered by Hippo in clear, personal language. Your results integrate with your complete medical history for comprehensive care recommendations and daily lifestyle guidance.
Critical questions remain: Is more screening truly beneficial? How do we ensure AI accuracy? Our approach leverages the fact that >90% of screenings should be negative - we can deploy AI systems with high false-positive rates in the beginning, flagged for expert human review. As experts provide feedback on these cases (who would be seen regardless), the system gradually becomes less conservative through continuous learning, ultimately reducing hospital overcrowding while increasing access to quality screening.
"24/7 awareness of your body's physical and mental state"
Future possibilities: Wearable scanners, home-based imaging, continuous biometric integration. Can we create privacy-preserving agents that track and optimize your entire health journey in real-time?

