RadioAgent is an advanced clinical decision support system designed to empower radiologists and healthcare professionals. Built with Next.js and Google's Genkit, this application leverages cutting-edge generative AI to analyze medical images (X-rays, CT scans, MRIs), generate detailed diagnostic reports, and provide interactive, explainable insights to improve patient outcomes.
- Multi-Modal Upload: Seamlessly upload and analyze a series of medical images (X-ray, CT, MRI) or videos (ultrasound) in a single session.
- 🚀 Instant AI Analysis: Receive immediate AI-generated key findings and a prioritized list of detected anomalies, accelerating the diagnostic process.
- 💡 Explainable AI (XAI): Visualize the areas of an image the AI focused on to reach its conclusions. This transparency builds trust and allows for clinical validation of the AI's reasoning.
- 📋 Comprehensive PDF Reports: Generate and download detailed, professionally formatted diagnostic reports complete with patient information, key images, and AI findings.
- 🔬 Symptom & Finding Correlation: Input patient symptoms to receive a differential diagnosis that correlates clinical signs with imaging findings, enhancing diagnostic accuracy.
- 🤖 Conversational Assistant: Engage with an AI assistant to ask follow-up questions, clarify findings, or explore differential diagnoses in a natural, conversational way.
- Upload: Start by uploading one or more medical images or videos.
- Analyze: The AI analyzes the entire series, identifying key findings and anomalies.
- Review: An initial report is generated. You can dive deeper with:
- Explainable AI: See heatmaps showing what the AI focused on.
- Symptom Correlator: Add clinical symptoms for a differential diagnosis.
- Conversational AI: Ask clarifying questions.
- Download: Generate and download a comprehensive PDF report with all the details.
- Framework: Next.js (with App Router)
- Language: TypeScript
- AI/ML: Google Genkit
- UI: React, ShadCN UI
- Styling: Tailwind CSS
- Deployment: Firebase App Hosting
To run this project locally, you will need to set up your environment with a Google AI API key.
- Node.js (v18 or later)
- npm or yarn
Clone the repository and install the dependencies:
npm installYou need a Google AI API key to use the generative AI features.
-
Get your key from Google AI Studio.
-
Create a file named
.envin the root of the project. -
Add your API key to the
.envfile:GOOGLE_API_KEY=YOUR_API_KEY_HERE
This project requires running two processes concurrently: the Next.js development server and the Genkit development server.
-
Start the Genkit Server: Open a terminal and run:
npm run genkit:watch
This starts the Genkit flows and will automatically restart when you make changes to files in
src/ai/. -
Start the Next.js App: Open a second terminal and run:
npm run dev
This starts the Next.js application, which you can access at http://localhost:9002.