Clinical Decision Support with Grounded Reasoning & Vector Retrieval
OncoVector is a next-generation healthcare application designed to reduce diagnostic errors by grounding AI reasoning in real-world university case registries. It utilizes a "Sequential Neural Pipeline" to analyze patient data, compare it against high-fidelity medical datasets (like NIH DeepLesion), and provide evidence-based risk assessments.
- Multimodal Analysis: Ingests clinical notes and patient imagery (CT, MRI, Dermoscopy).
- Vector Space Retrieval: Simulates semantic search against federated datasets (NIH, TCIA, ISIC).
- Explainable AI: Provides a "Reasoning" view explaining why a specific diagnosis was suggested.
- Demo Mode: Fully functional UI simulation without requiring live API credentials.
- Frontend: React 19, TypeScript, Tailwind CSS
- Visualization: Recharts, D3.js
- AI/Backend: Google GenAI SDK (
gemini-3-pro-preview,gemini-2.5-flash) - Icons: Lucide React
You can run this application in two modes: Live Mode (connected to Gemini API) or Demo Mode (simulated data).
- Node.js (v18 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/your-username/oncovector-ai.git cd oncovector-ai -
Install dependencies:
npm install
The application is architected to detect missing credentials and automatically switch to Demo Mode. This allows you to explore the UI, animations, and data visualization flow without a Google Cloud account.
- Simply start the development server:
npm start
- Open http://localhost:3000 in your browser.
- Fill in the patient intake form (or leave defaults) and click "Run Multi-Modal Analysis".
- The system will simulate the pipeline steps and generate a pre-calculated, high-fidelity report.
To enable real AI reasoning and live web grounding:
- Obtain an API Key from Google AI Studio.
- Create a
.envfile in the root directory (or set the variable in your environment):API_KEY=your_actual_api_key_here
- Start the application:
npm start
/
├── components/ # UI Components (Graphs, Modals, Network Viz)
├── services/
│ ├── geminiService.ts # AI Logic (Handles Live & Mock Fallbacks)
│ └── mockVectorDb.ts # Simulated Vector Database Registry
├── types.ts # TypeScript Interfaces
├── App.tsx # Main Application Controller
└── index.tsx # Entry Point
- Input: User inputs patient age, symptoms, and uploads a scan.
- Vision Layer: The app (simulates or performs) feature extraction to identify the anatomy (e.g., Skin vs. Lung).
- Vector Retrieval: It queries a mock index of 12 real-world datasets (like TCIA-GBM or ISIC Melanoma) to find "Nearest Neighbors".
- Reasoning Synthesis:
- Live Mode: Gemini 3 Pro synthesizes the patient data + retrieved cases to form a diagnosis.
- Demo Mode: Returns a structured "Melanoma" or "Carcinoma" example case to demonstrate UI capabilities.
- Output: Displays risk scores, comparison graphs (Radar/Scatter), and a clinical action plan.
This project is open-source and available under the MIT License.