Nexus Forensic: A Neurosymbolic compliance engine transforming clinical protocols into computable medical law. Leverages fine-tuned MedGemma as a structural compiler and Google HAI-DEF for deterministic adjudication of clinical, facility, and IoT telemetry claims. Currently piloted in Kenya for MoH/KQMH standards.
# Nexus Forensic
**Deterministic Compliance Engine for Medical Claims using MedGemma and Google HAI-DEF**
> A forensic medical audit system that validates clinical, facility, and operational claims against authoritative health protocols. Unlike LLM-centric systems, Nexus Forensic enforces deterministic logic gates to eliminate hallucinations in compliance adjudication. Currently being piloted within the Kenyan healthcare ecosystem to enforce Ministry of Health (MoH) clinical guidelines and KQMH quality standards through computable medical law.
---
## Beyond Hallucination: The Structural Limits of Clinical Verification
Medical language models fail not primarily through hallucination, but through **verification failure**:
- Language models cannot enforce temporal ordering of events
- They cannot guarantee evidence completeness
- They cannot deterministically refuse verdicts when proof is missing
- They lack auditability in regulated healthcare environments
- They cannot bridge the gap between probabilistic prose and deterministic adjudication.
This creates systemic risk in clinical audit trails, insurance documentation, and post-hoc medical investigations.
**Nexus Forensic solves this by separating evidence interpretation (where LLMs help) from adjudication logic (where only deterministic code decides).** This system does not provide clinical decision support or treatment recommendations. It performs post-hoc compliance verification against published medical protocols.
---
## Deployment & Artifacts
| Component | Platform | Environment / Link |
|-----------|----------|-------------------|
| **Frontend** | Vercel | Live Dashboard |
| **Backend API** | GCP Cloud Run | `
nexus-forensic-571147915643…` |
| **Database** | Cloud SQL | PostgreSQL 15 + pgvector (GCP Managed) |
| **Fine-Tuning Workspace** | Kaggle | MedGemma Forensic Trainer |
| **Structural Compiler** | Hugging Face | Nexus-Forensic-MedGemma-4B |
| **Edge Artifact (GGUF)** …