You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

๐Ÿ”ฌ ForensiX AI

AI-Powered Forensic Triage & Postmortem Intelligence System

Version Python React FastAPI License

An intelligent investigative support system integrating GraphRAG, NLP, Multi-Agent AI, and custom fine-tuned models to assist forensic investigations with real-time analysis, evidence correlation, and predictive risk scoring.


๐Ÿ“‹ Table of Contents


๐ŸŽฏ Problem Statement

Investigative agencies and forensic departments face critical challenges:

  • Volume overload: Processing large amounts of forensic/digital evidence within limited time
  • Manual bottlenecks: Autopsy reports, CCTV logs, mobile metadata analyzed separately by different teams
  • Missed connections: Cross-evidence correlations invisible to siloed manual analysis
  • Delayed triage: Critical leads buried under routine cases due to lack of intelligent prioritization
  • No standardization: Each investigator approaches evidence differently, creating inconsistency

ForensiX AI solves this by providing an AI-powered unified platform that:

  1. Automatically extracts structured data from unstructured forensic reports
  2. Correlates physical evidence with digital traces in real-time
  3. Identifies anomalies and generates investigative leads
  4. Provides explainable risk scoring for case prioritization
  5. Operates with full chain-of-custody integrity (SHA-256 ledger)

๐Ÿ—๏ธ System Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                         ForensiX AI v4.0 Architecture                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                              โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚                        PRESENTATION LAYER                            โ”‚    โ”‚
โ”‚  โ”‚  React 18 + Vite + Tailwind + Zustand + Framer Motion + Recharts    โ”‚    โ”‚
โ”‚  โ”‚                                                                      โ”‚    โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚    โ”‚
โ”‚  โ”‚  โ”‚Dashboard โ”‚ โ”‚ Timeline โ”‚ โ”‚ Evidence โ”‚ โ”‚  Agents  โ”‚ โ”‚ AI Chat  โ”‚ โ”‚    โ”‚
โ”‚  โ”‚  โ”‚          โ”‚ โ”‚          โ”‚ โ”‚  Graph   โ”‚ โ”‚          โ”‚ โ”‚ (GraphRAG)โ”‚ โ”‚    โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚    โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  Risk    โ”‚ โ”‚ Autopsy  โ”‚ โ”‚  Cases   โ”‚ โ”‚ Custody  โ”‚ โ”‚ Settings โ”‚ โ”‚    โ”‚
โ”‚  โ”‚  โ”‚ Scoring  โ”‚ โ”‚Workspace โ”‚ โ”‚  CRUD    โ”‚ โ”‚  Chain   โ”‚ โ”‚ LLM Cfg  โ”‚ โ”‚    โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ”‚                              โ”‚ REST + WebSocket + SSE                         โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚                        APPLICATION LAYER (FastAPI)                    โ”‚    โ”‚
โ”‚  โ”‚                                                                      โ”‚    โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚              MULTI-AGENT ORCHESTRATOR (7 Agents)              โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”‚ Autopsy โ”‚โ”‚Timeline โ”‚โ”‚ Digital โ”‚โ”‚Toxicol. โ”‚โ”‚  Risk   โ”‚  โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”‚  Agent  โ”‚โ”‚  Agent  โ”‚โ”‚  Agent  โ”‚โ”‚  Agent  โ”‚โ”‚  Agent  โ”‚  โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”‚ Correlation Agent   โ”‚โ”‚  Explainability Agent (SHAP) โ”‚    โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚    โ”‚    โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚    โ”‚
โ”‚  โ”‚                                                                      โ”‚    โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  GraphRAG    โ”‚ โ”‚  Forensic    โ”‚ โ”‚ Cross-Case   โ”‚ โ”‚ Universal โ”‚  โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  Knowledge   โ”‚ โ”‚  NLP Engine  โ”‚ โ”‚ Intelligence โ”‚ โ”‚ LLM Prov. โ”‚  โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  (25 nodes)  โ”‚ โ”‚  (Henssge)   โ”‚ โ”‚ (Serial Det.)โ”‚ โ”‚ (12+ APIs)โ”‚  โ”‚    โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚    โ”‚
โ”‚  โ”‚                                                                      โ”‚    โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚    โ”‚
โ”‚  โ”‚  โ”‚              CUSTOM AI MODELS (Offline, No API Keys)          โ”‚   โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚   โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”‚ GLiNER-biomedโ”‚ โ”‚ DeBERTa-v3   โ”‚ โ”‚ Qwen2.5-0.5B+LoRA  โ”‚  โ”‚   โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”‚ Zero-shot NERโ”‚ โ”‚ Classifier   โ”‚ โ”‚ Extraction Model    โ”‚  โ”‚   โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ”‚   (280MB)    โ”‚ โ”‚   (180MB)    โ”‚ โ”‚     (1.2GB)         โ”‚  โ”‚   โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚   โ”‚    โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ”‚                              โ”‚ SQLAlchemy + REST                              โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚                         DATA LAYER                                   โ”‚    โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  SQLite  โ”‚  โ”‚  Supabase        โ”‚  โ”‚  Chain of Custody        โ”‚  โ”‚    โ”‚
โ”‚  โ”‚  โ”‚  (Local) โ”‚  โ”‚  PostgreSQL +    โ”‚  โ”‚  SHA-256 Immutable       โ”‚  โ”‚    โ”‚
โ”‚  โ”‚  โ”‚          โ”‚  โ”‚  pgvector (Cloud) โ”‚  โ”‚  Ledger                  โ”‚  โ”‚    โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿค– Multi-Agent System (FEAT)

Forensic Evidence Analysis & Triage โ€” 7 specialized AI agents that independently analyze evidence and collaborate through a master orchestrator.

                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚   FEAT ORCHESTRATOR   โ”‚
                    โ”‚  Sequential+Parallel  โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚                      โ”‚                      โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”
   โ”‚ AUTOPSY โ”‚           โ”‚TIMELINE โ”‚           โ”‚ DIGITAL โ”‚
   โ”‚  AGENT  โ”‚           โ”‚  AGENT  โ”‚           โ”‚  AGENT  โ”‚
   โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚           โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚           โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚
   โ”‚โ€ข NER    โ”‚           โ”‚โ€ข Gap    โ”‚           โ”‚โ€ข CCTV   โ”‚
   โ”‚โ€ข COD    โ”‚           โ”‚  detect โ”‚           โ”‚โ€ข Mobile โ”‚
   โ”‚โ€ข Injuriesโ”‚          โ”‚โ€ข Clusterโ”‚           โ”‚โ€ข GPS    โ”‚
   โ”‚โ€ข Toxicol.โ”‚          โ”‚โ€ข Sequenceโ”‚          โ”‚โ€ข Patternโ”‚
   โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜           โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜           โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
        โ”‚                      โ”‚                      โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚                      โ”‚                      โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”
   โ”‚TOXICOL. โ”‚           โ”‚  RISK   โ”‚           โ”‚EXPLAIN- โ”‚
   โ”‚  AGENT  โ”‚           โ”‚  AGENT  โ”‚           โ”‚ ABILITY โ”‚
   โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚           โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚           โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚
   โ”‚โ€ข Drug IDโ”‚           โ”‚โ€ข 6-factorโ”‚          โ”‚โ€ข SHAP   โ”‚
   โ”‚โ€ข Levels โ”‚           โ”‚  weightedโ”‚          โ”‚โ€ข LIME   โ”‚
   โ”‚โ€ข Lethalityโ”‚         โ”‚โ€ข Scoring โ”‚          โ”‚โ€ข Attrib.โ”‚
   โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜           โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜           โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
        โ”‚                      โ”‚                      โ”‚
        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚  CORRELATION AGENT    โ”‚
                    โ”‚  โ€ข Temporal links     โ”‚
                    โ”‚  โ€ข Spatial patterns   โ”‚
                    โ”‚  โ€ข Causal inference   โ”‚
                    โ”‚  โ€ข Behavioral flags   โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Agent Details

Agent Purpose Confidence Key Findings
Autopsy Agent Extract COD, manner, injuries, toxicology from reports 87-95% Injuries, COD, toxicology entities
Timeline Agent Reconstruct chronological event sequence 84% Gaps (>30min), clusters (<5min)
Digital Agent Analyze CCTV, mobile, GPS evidence 86% Person discrepancy, rapid departure
Toxicology Agent Interpret drug/poison findings 90% Sedation indicators, lethality
Risk Agent 6-factor weighted risk scoring 85% Score 0-100, severity level
Explainability Agent SHAP-style factor attribution 82% Top contributing factors
Correlation Agent Cross-evidence relationship discovery 88-94% Temporal/causal/behavioral links

๐Ÿง  GraphRAG Knowledge Engine

A Retrieval-Augmented Generation system with 25 verified forensic knowledge nodes covering:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    GRAPHRAG ARCHITECTURE                      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                              โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚   QUERY     โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  EMBEDDING   โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  RETRIEVAL  โ”‚  โ”‚
โ”‚  โ”‚ (User/LLM)  โ”‚     โ”‚  (384-dim)   โ”‚     โ”‚  (Top-K)    โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                                                    โ”‚         โ”‚
โ”‚                       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ”‚
โ”‚                       โ–ผ                                      โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚            FORENSIC KNOWLEDGE BASE                   โ”‚    โ”‚
โ”‚  โ”‚                                                      โ”‚    โ”‚
โ”‚  โ”‚  POSTMORTEM (5):                                     โ”‚    โ”‚
โ”‚  โ”‚    livor mortis, rigor mortis, algor mortis,         โ”‚    โ”‚
โ”‚  โ”‚    PMI estimation, decomposition stages              โ”‚    โ”‚
โ”‚  โ”‚                                                      โ”‚    โ”‚
โ”‚  โ”‚  INJURY PATTERNS (8):                                โ”‚    โ”‚
โ”‚  โ”‚    petechiae, defensive wounds, blunt force,         โ”‚    โ”‚
โ”‚  โ”‚    ligature, sharp force, gunshot, hyoid fracture,   โ”‚    โ”‚
โ”‚  โ”‚    wound tracks                                      โ”‚    โ”‚
โ”‚  โ”‚                                                      โ”‚    โ”‚
โ”‚  โ”‚  MANNER DETECTION (4):                               โ”‚    โ”‚
โ”‚  โ”‚    classification, suicide criteria, staging,        โ”‚    โ”‚
โ”‚  โ”‚    drowning, fire deaths                             โ”‚    โ”‚
โ”‚  โ”‚                                                      โ”‚    โ”‚
โ”‚  โ”‚  TOXICOLOGY (5):                                     โ”‚    โ”‚
โ”‚  โ”‚    CO poisoning, benzodiazepines, opioids,           โ”‚    โ”‚
โ”‚  โ”‚    alcohol, specimen collection                      โ”‚    โ”‚
โ”‚  โ”‚                                                      โ”‚    โ”‚
โ”‚  โ”‚  EVIDENCE (3):                                       โ”‚    โ”‚
โ”‚  โ”‚    CCTV analysis, mobile evidence, Locard exchange   โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ”‚                       โ”‚                                      โ”‚
โ”‚                       โ–ผ                                      โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚  CONTEXT INJECTION โ†’ LLM System Prompt              โ”‚    โ”‚
โ”‚  โ”‚  "VERIFIED FORENSIC KNOWLEDGE โ€” do not contradict"  โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ”‚                                                              โ”‚
โ”‚  RETRIEVAL STRATEGY (in order):                              โ”‚
โ”‚  1. Supabase pgvector (semantic, production)                 โ”‚
โ”‚  2. HuggingFace embeddings (sentence-transformers)           โ”‚
โ”‚  3. Keyword fallback (TF-IDF, always works)                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿงช Custom AI Models

Model Stack (runs offline, no API keys needed)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  LOCAL ML PIPELINE โ€” ForensiX Custom Models                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                              โ”‚
โ”‚  Layer 1: ZERO-SHOT NER (GLiNER-biomed, 280MB)             โ”‚
โ”‚  โ”œโ”€โ”€ Define ANY entity type at runtime                      โ”‚
โ”‚  โ”œโ”€โ”€ "cause of death", "weapon type", "time indicator"      โ”‚
โ”‚  โ””โ”€โ”€ No retraining needed โ€” labels via natural language     โ”‚
โ”‚                                                              โ”‚
โ”‚  Layer 2: BIOMEDICAL NER (OpenMed, ~109MB each)             โ”‚
โ”‚  โ”œโ”€โ”€ Toxicology: drugs, chemicals, levels (F1=0.96)         โ”‚
โ”‚  โ”œโ”€โ”€ Anatomy: body parts, organs (F1=0.91)                  โ”‚
โ”‚  โ””โ”€โ”€ Pathology: diseases, conditions (F1=0.91)              โ”‚
โ”‚                                                              โ”‚
โ”‚  Layer 3: MANNER CLASSIFIER (DeBERTa-v3-small, 180MB)       โ”‚
โ”‚  โ”œโ”€โ”€ Fine-tuned on 750 synthetic forensic samples           โ”‚
โ”‚  โ”œโ”€โ”€ 5 classes: HOMICIDE/SUICIDE/ACCIDENTAL/NATURAL/UNDET.  โ”‚
โ”‚  โ””โ”€โ”€ <100ms inference, F1>0.90                              โ”‚
โ”‚                                                              โ”‚
โ”‚  Layer 4: EXTRACTION MODEL (Qwen2.5-0.5B+LoRA, 1.2GB)      โ”‚
โ”‚  โ”œโ”€โ”€ Fine-tuned on 300 forensic Q&A pairs                   โ”‚
โ”‚  โ”œโ”€โ”€ Outputs structured JSON                                โ”‚
โ”‚  โ””โ”€โ”€ CPU inference ~3-5s per report                         โ”‚
โ”‚                                                              โ”‚
โ”‚  Total RAM: ~3-5GB (NER stack) or ~5-7GB (with LLM)        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Training Pipeline

# 1. Generate synthetic training data
python custom-models/scripts/generate_dataset.py
# โ†’ 750 classification samples + 300 extraction Q&A pairs

# 2. Train manner-of-death classifier
python custom-models/scripts/train_classifier.py
# โ†’ DeBERTa-v3-small, 5 epochs, ~180MB output

# 3. Train forensic extraction model
python custom-models/scripts/train_extraction_model.py
# โ†’ Qwen2.5-0.5B + LoRA, 3 epochs, ~50MB adapter

๐Ÿ” Forensic NLP Engine

Entity Extraction Pipeline

# Input: "Blunt force trauma to the right temporal region with subdural hematoma.
#          Defensive wounds on forearms. Benzodiazepines detected."

# Output:
{
  "entities": [
    {"text": "Blunt force trauma to the right temporal region", "label": "INJURY", "confidence": 0.92},
    {"text": "subdural hematoma", "label": "INJURY", "confidence": 0.88},
    {"text": "Defensive wounds on forearms", "label": "INJURY", "confidence": 0.90},
    {"text": "Benzodiazepines detected", "label": "TOXICOLOGY", "confidence": 0.85}
  ],
  "riskScore": 100,
  "riskLevel": "CRITICAL",
  "anomalies": [{"type": "sedation_indicator", "severity": "HIGH"}]
}

Pattern Recognition

Pattern Detection Confidence
CAUSE_OF_DEATH Regex + LLM extraction 85-95%
MANNER_OF_DEATH Classification + keywords 90-95%
INJURY 8 regex patterns + NER 88%
TOXICOLOGY Drug/substance detection 90%
TIME_INDICATOR Postmortem signs parsing 85%
EVIDENCE Physical trace detection 80%
ANOMALIES Cross-reference contradiction detection 92%

๐Ÿ“ก Digital Evidence Correlation

EVIDENCE TIMELINE
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
01:45  CCTV: Two individuals enter warehouse โ”€โ”€โ”€โ”€โ”€โ”
01:52  CCTV: Vehicle parks near entrance           โ”‚ CLUSTER
02:00  Mobile: Victim last call โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ (<15min)
                                                    
02:00 โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”
                  โ–“โ–“โ–“ 45-MIN GAP โ–“โ–“โ–“              โ”‚ ANOMALY
02:45 โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”€ โ”˜
                                                    
02:47  CCTV: Single person exits at high speed โ”€โ”€โ”€โ”
02:48  Mobile: Phone signal lost (powered off)     โ”‚ PATTERN
02:50  CCTV: Vehicle departs rapidly โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

CORRELATIONS FOUND:
  โš ๏ธ PERSON DISCREPANCY: 2 entered, 1 departed (CRITICAL)
  โš ๏ธ COMMUNICATION CUTOFF: Phone disconnected (HIGH)
  โš ๏ธ RAPID DEPARTURE: Vehicle at unusual speed (HIGH)

๐Ÿ•ต๏ธ Cross-Case Intelligence

Serial pattern detection against historical case database:

CURRENT CASE                    HISTORICAL MATCH (93% similarity)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Manner: Homicide         โ•โ•โ•โ–ถ   CASE-2024-0103 (93%)
Weapons: ligature+blunt  โ•โ•โ•โ–ถ   Weapons: blunt+ligature โœ“
Injuries: strangulation   โ•โ•โ•โ–ถ   Injuries: head_trauma+strangulation โœ“
Toxicology: diazepam     โ•โ•โ•โ–ถ   Toxicology: diazepam โœ“
Location: industrial     โ•โ•โ•โ–ถ   Location: commercial โœ“
MO: sedation+violence    โ•โ•โ•โ–ถ   MO: sedation+violence+abandoned โœ“
Time: night              โ•โ•โ•โ–ถ   Time: night โœ“
Victim: adult male       โ•โ•โ•โ–ถ   Victim: adult male โœ“

โš ๏ธ  SERIAL PATTERN DETECTED โ€” Cross-reference with cold case unit

โฑ๏ธ Time-of-Death Estimation

Henssge Nomogram (Double-Exponential Model)

Formula: Q = 1.25ยทe^(-Bยทt) - 0.25ยทe^(-5Bยทt)

Where:
  Q = (T_rectal - T_ambient) / (37.2 - T_ambient)
  B = 1.2815 ยท (W_effective)^(-0.625) + 0.0284
  W_effective = Corrective_Factor ร— Body_Weight

Multi-Method Approach:
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚  Method              โ”‚ Weight โ”‚ Conf.   โ”‚
  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
  โ”‚  Henssge Nomogram    โ”‚  70%   โ”‚ HIGH    โ”‚
  โ”‚  Rigor Mortis Stage  โ”‚  15%   โ”‚ MOD     โ”‚
  โ”‚  Livor Mortis State  โ”‚  10%   โ”‚ MOD     โ”‚
  โ”‚  Vitreous Potassium  โ”‚   5%   โ”‚ HIGH    โ”‚
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Output: PMI = 6.9h ยฑ 2.8h (95% CI)

๐Ÿ“Š Risk Scoring & Explainability

6-Factor Weighted Algorithm

Risk Score = ฮฃ (Factor_Score ร— Weight)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Factor            โ”‚ Weight โ”‚ Score โ”‚ Contribution  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Violence Level    โ”‚  25%   โ”‚ 85/100โ”‚  21.3 pts    โ”‚
โ”‚  Digital Patterns  โ”‚  20%   โ”‚ 90/100โ”‚  18.0 pts    โ”‚
โ”‚  Manner Match      โ”‚  15%   โ”‚ 95/100โ”‚  14.3 pts    โ”‚
โ”‚  Evidence Gaps     โ”‚  15%   โ”‚ 75/100โ”‚  11.3 pts    โ”‚
โ”‚  Temporal Cluster  โ”‚  15%   โ”‚ 70/100โ”‚  10.5 pts    โ”‚
โ”‚  Toxicology        โ”‚  10%   โ”‚ 60/100โ”‚   6.0 pts    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  TOTAL             โ”‚ 100%   โ”‚       โ”‚  81.4/100    โ”‚
โ”‚  Level: CRITICAL   โ”‚        โ”‚       โ”‚              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

SHAP Attribution (Explainable AI)

Feature Importance (case #FTI-2024-0847):

Violence Level        โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘  85%  (+21.3)
Digital Patterns      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘  90%  (+18.0)
Manner Classification โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘  95%  (+14.3)
Evidence Gaps         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  75%  (+11.3)
Temporal Clustering   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  70%  (+10.5)
Toxicology            โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  60%  (+ 6.0)

๐Ÿ”Œ Universal LLM Provider

Supports 12+ LLM providers via OpenAI-compatible API:

Provider Speed Quality Cost
Featherless.ai Medium High (Llama-3.1-70B) Free tier
Groq Ultra-fast High (llama-3.3-70b) Free tier
Together.ai Fast High (Llama-3.1-70B-Turbo) Paid
OpenAI Medium Highest (GPT-4o) Paid
HuggingFace Slow High (Qwen2.5-72B) Free
TokenRouter Auto Auto (cheapest route) Variable
DeepSeek Medium High (deepseek-chat) Paid
Ollama Local Variable Free
OpenRouter Variable Any model Variable

Fallback chain: If primary fails โ†’ tries next provider โ†’ graceful degradation to local analysis.


๐Ÿ–ฅ๏ธ Frontend Architecture

src/
โ”œโ”€โ”€ App.jsx                          # Router + route definitions
โ”œโ”€โ”€ main.jsx                         # Entry point
โ”œโ”€โ”€ pages/
โ”‚   โ”œโ”€โ”€ Landing.jsx                  # Hero + feature grid
โ”‚   โ”œโ”€โ”€ Login.jsx                    # JWT authentication
โ”‚   โ”œโ”€โ”€ Dashboard.jsx                # KPI cards + activity feed
โ”‚   โ”œโ”€โ”€ ForensicCommandDashboard.jsx # Full command center
โ”‚   โ”œโ”€โ”€ InvestigationWorkspace.jsx   # Main workspace (panels)
โ”‚   โ”œโ”€โ”€ CaseAnalysis.jsx            # Deep-dive case view
โ”‚   โ”œโ”€โ”€ Timeline.jsx                 # Forensic timeline
โ”‚   โ”œโ”€โ”€ EvidenceGraph.jsx           # Force-directed graph
โ”‚   โ”œโ”€โ”€ RiskScoring.jsx             # SHAP + radar charts
โ”‚   โ”œโ”€โ”€ Agents.jsx                   # Multi-agent dashboard
โ”‚   โ”œโ”€โ”€ InvestigationQuery.jsx      # NL query + AI Chat
โ”‚   โ””โ”€โ”€ ChainOfCustody.jsx          # SHA-256 ledger
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ layout/                      # App shell (header, nav, panels)
โ”‚   โ”œโ”€โ”€ views/                       # Embedded views (autopsy, evidence, etc.)
โ”‚   โ”œโ”€โ”€ forensic/                    # RiskGauge, SHAP chart, suspect card
โ”‚   โ”œโ”€โ”€ modals/                      # Upload, export, review, search
โ”‚   โ”œโ”€โ”€ panels/                      # Event details, evidence preview
โ”‚   โ””โ”€โ”€ timeline/                    # Forensic timeline component
โ””โ”€โ”€ lib/
    โ”œโ”€โ”€ api.js                       # 50+ API endpoints connected
    โ”œโ”€โ”€ store.js                     # Zustand global state
    โ””โ”€โ”€ websocket.js                 # Real-time connection

๐Ÿ“ก API Reference

Core Endpoints (19 routers, 55+ routes)

Method Endpoint Description
GET /health System health + version
GET /api/status Full system status (12 features)
POST /api/intelligence/ Unified intelligence engine
POST /api/chat/ AI Chat with GraphRAG
POST /api/analyze/ Full NLP + LLM + GraphRAG analysis
POST /api/ml/ ML Pipeline (NER, classify, embed)
POST /api/graphrag/retrieve Knowledge retrieval
GET /api/graphrag/stats Knowledge base stats
GET /api/triage/stream SSE progress events
GET /cases/ List all cases
GET /risk/{id} Risk assessment
GET /timeline/{id} Timeline events
GET /graph/{id} Evidence graph
GET /agents/status Agent status (7 agents)
GET /agents/analysis/{id} Full multi-agent analysis
POST /query/ Natural language query
GET /custody/{id} Chain of custody
WS /ws/{id} Real-time WebSocket

๐Ÿš€ Deployment

Docker (Production)

docker build -t forensix-ai .
docker run -p 7860:7860 \
  -e FEATHERLESS_API_KEY=your_key \
  -e HF_TOKEN=your_token \
  forensix-ai

HuggingFace Spaces

Push to any HF Space with Docker SDK โ€” auto-deploys.

Manual

pip install -r backend/requirements.txt
cd frontend && npm install && npm run build && cd ..
uvicorn backend.main:app --host 0.0.0.0 --port 7860

๐Ÿ’ก Novelties & Innovation

1. Digital Stratigraphy

Unlike existing forensic systems that separately analyze pathology reports OR digital evidence, ForensiX introduces a unified multimodal architecture that semantically correlates ALL evidence types into synchronized investigative layers.

2. Zero-Shot Forensic NER

Using GLiNER-biomed, investigators can define ANY custom entity type at runtime using natural language โ€” no model retraining needed. Want to detect "ligature material type"? Just add it to the label list.

3. GraphRAG-Enhanced AI Chat

Every AI response is grounded in verified forensic knowledge retrieved via semantic search. The LLM cannot hallucinate forensic facts because the system prompt is injected with authoritative knowledge nodes.

4. Cross-Case Serial Pattern Detection

Automated matching against historical case database identifies potential serial offenders by comparing MO patterns, weapon types, victim profiles, and behavioral signatures.

5. Explainable Risk Scoring

Every risk score is decomposable into SHAP-style attributions. Investigators can see EXACTLY which evidence drives the score โ€” legally defensible transparency.

6. Universal LLM Provider

Works with ANY provider (12+ supported). Investigators aren't locked into one AI vendor. Seamless fallback chain ensures the system never goes dark.

7. Offline-Capable Custom Models

Fine-tuned models run entirely on CPU without internet. Critical for sensitive investigations where data cannot leave the network.


โš–๏ธ Ethical Considerations

  • Advisory only: All outputs support human decision-making, never replace forensic experts
  • No legal conclusions: System uses "suggests", "indicates", "consistent with" โ€” never "proves"
  • Explainable: Every AI output traceable to specific evidence (SHAP attribution)
  • Chain of custody: SHA-256 immutable ledger ensures evidence integrity
  • Data privacy: Local-first architecture, cloud optional, no mandatory data sharing
  • Bias awareness: Models trained on balanced synthetic data to avoid demographic bias
  • Access control: JWT authentication, role-based permissions

๐Ÿ”ฎ Future Scope

Enhancement Status Description
Real-time CCTV analysis Planned Live video feed processing with person detection
Multilingual report analysis Planned Hindi, Tamil, Spanish autopsy report parsing
Federated learning Research Secure cross-agency model training without data sharing
IoT sensor integration Planned Real-time environmental monitoring (temp, humidity)
Voice-to-text dictation Planned Hands-free field notes during investigation
Mobile companion app Planned On-scene evidence collection with GPS tagging
Behavioral profiling Research LSTM-based suspect behavior prediction
3D wound reconstruction Research AR-based injury pattern visualization

๐Ÿ“ Project Structure

forensic-ai-triage/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ main.py                          # FastAPI app (55+ routes)
โ”‚   โ”œโ”€โ”€ requirements.txt                 # Python dependencies
โ”‚   โ”œโ”€โ”€ db/                              # SQLAlchemy models + init
โ”‚   โ”œโ”€โ”€ routers/                         # 19 API routers
โ”‚   โ”‚   โ”œโ”€โ”€ agents.py                    # Multi-agent endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ analyze.py                   # Full analysis (NLP+LLM+RAG)
โ”‚   โ”‚   โ”œโ”€โ”€ chat.py                      # AI Chat with GraphRAG
โ”‚   โ”‚   โ”œโ”€โ”€ intelligence.py              # Unified intelligence engine
โ”‚   โ”‚   โ”œโ”€โ”€ ml_pipeline.py              # HuggingFace ML pipeline
โ”‚   โ”‚   โ”œโ”€โ”€ graphrag.py                 # Knowledge base management
โ”‚   โ”‚   โ”œโ”€โ”€ triage_stream.py            # SSE progress events
โ”‚   โ”‚   โ””โ”€โ”€ ... (12 more routers)
โ”‚   โ””โ”€โ”€ services/                        # Business logic
โ”‚       โ”œโ”€โ”€ llm_provider.py             # Universal LLM (12+ providers)
โ”‚       โ”œโ”€โ”€ graphrag_service.py         # 25-node knowledge base
โ”‚       โ”œโ”€โ”€ multi_agent_orchestrator.py # 7-agent system
โ”‚       โ”œโ”€โ”€ forensic_engine.py          # Henssge + NLP + correlation
โ”‚       โ”œโ”€โ”€ supabase_client.py          # Cloud persistence
โ”‚       โ””โ”€โ”€ ... (8 more services)
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ pages/          (12 pages)
โ”‚   โ”‚   โ”œโ”€โ”€ components/     (28 components)
โ”‚   โ”‚   โ””โ”€โ”€ lib/            (api.js, store.js, websocket.js)
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ custom-models/                       # ๐Ÿ†• Custom AI Models
โ”‚   โ”œโ”€โ”€ datasets/                        # Training data (750+300 samples)
โ”‚   โ”œโ”€โ”€ scripts/                         # Training + inference code
โ”‚   โ”‚   โ”œโ”€โ”€ generate_dataset.py         # Synthetic data generator
โ”‚   โ”‚   โ”œโ”€โ”€ train_classifier.py         # DeBERTa-v3-small fine-tuning
โ”‚   โ”‚   โ”œโ”€โ”€ train_extraction_model.py   # Qwen2.5-0.5B + LoRA
โ”‚   โ”‚   โ””โ”€โ”€ inference.py                # Unified local inference
โ”‚   โ””โ”€โ”€ models/                          # Trained weights (after training)
โ”œโ”€โ”€ lib/                                 # TypeScript engines (reference)
โ”œโ”€โ”€ multi-agent-system/                  # Full TS agent implementation
โ”œโ”€โ”€ langgraph-agents/                    # LangGraph Python server
โ”œโ”€โ”€ prisma/                              # PostgreSQL schema
โ”œโ”€โ”€ Dockerfile                           # Multi-stage production build
โ”œโ”€โ”€ nginx.conf                           # Reverse proxy config
โ”œโ”€โ”€ .env.example                         # All provider configs
โ””โ”€โ”€ README.md                            # This file

๐Ÿ“Š Performance Metrics

Metric Value
API Endpoints 55+ routes, all verified 200 OK
Multi-Agent Analysis 7 agents, ~16s total (with LLM)
NLP Entity Extraction <100ms per report (regex)
Risk Scoring <50ms computation
Graph Building <200ms for full evidence graph
WebSocket Latency <50ms real-time updates
Local ML Inference <500ms (NER), <100ms (classifier)
Knowledge Retrieval <10ms (keyword), <200ms (semantic)

๐Ÿ›ก๏ธ Security

  • Authentication: JWT (HS256) with configurable secret
  • Evidence Integrity: SHA-256 hash chain (blockchain-style)
  • Data Isolation: SQLite per-instance, no shared state
  • API Security: CORS configured, rate limiting available
  • Sensitive Data: All LLM calls use local context โ€” no case data sent to external APIs unless investigator explicitly uses AI Chat

Built for Justice. Powered by AI. Guided by Ethics.

ForensiX AI โ€” Investigative Assistance Only. Not for legal determination.

Downloads last month
37