File size: 3,000 Bytes
7b027e5 36e5592 7b027e5 36e5592 7b027e5 36e5592 7b027e5 36e5592 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | ---
title: "π¬ FORENSIQ"
emoji: π¬
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 5.29.0
app_file: app.py
pinned: true
license: mit
short_description: "Multi-Agent Forensic Deepfake Detection"
---
# π¬ FORENSIQ: Physics-Based, Multi-Agent Forensic Framework for Explainable Deepfake Detection
**FORENSIQ** reframes deepfake detection as **causal violation analysis** of immutable physical laws. Instead of a single black-box classifier, it employs **7 specialized forensic agents** β each testing orthogonal constraints in optical physics, sensor characteristics, statistical priors, and model-specific artifacts β and synthesizes their findings through **Bayesian reasoning** to produce auditable evidence chains.
## ποΈ Architecture
### 7 Independent Forensic Agents
| Agent | Domain | Method |
|-------|--------|--------|
| π **Optical Physics** | Lens & optics | Chromatic aberration, vignetting (cosβ΄ΞΈ), DoF consistency, bokeh microstructure |
| π‘ **Sensor Characteristics** | Camera sensor | PRNU noise residual, Poisson-Gaussian noise model, Bayer demosaicing |
| π€ **Generative Model** | AI signatures | FFT grid artifacts, diffusion spectral notches, autocorrelation fingerprinting |
| π **Statistical Priors** | Natural image stats | DCT distribution (Laplacian vs Gaussian), Benford's law, gradient sparsity |
| π§ **Semantic Consistency** | Visual reasoning (VLM) | Lighting physics, anatomical errors, material/BRDF plausibility |
| π **Metadata** | File forensics | EXIF validation, Error Level Analysis (ELA), AI metadata traces |
| π€ **Text & Typography** | Text analysis (VLM) | OCR legibility, font consistency, gibberish detection |
### Bayesian Evidence Synthesis Engine
- **Likelihood Model**: Calibrated per-agent reliability with sigmoid scoring
- **Independence Correction**: Pairwise correlation penalty (Ξ±=0.3) prevents dependent evidence inflation
- **Failure Mode Handling**: Marginalization over agent failure states
- **Temperature Calibration**: ECE < 0.02 via temperature scaling
### Explanation Formats
1. **Forensic Report**: Structured summary with probability, confidence, and detailed per-agent findings
2. **Reasoning Tree**: Hierarchical visualization of evidence flow
3. **Court Brief**: Plain-language summary following Federal Rules of Evidence 702
## π Usage
Upload any image (JPEG, PNG, WebP, BMP, TIFF) and click "Run Forensic Analysis".
The system will:
1. Run all 7 agents in parallel
2. Synthesize evidence via Bayesian fusion
3. Produce a probabilistic verdict with full reasoning chain
## π§ Tech Stack
- **Signal Processing**: NumPy, SciPy (FFT, DCT, PRNU, ELA)
- **VLM Reasoning**: Qwen2.5-VL-72B via HF Inference API
- **Visualization**: Plotly (radar charts, heatmaps, gauges)
- **UI**: Gradio 5
- **Fusion**: Custom Bayesian engine with independence modeling
## π Based On
FORENSIQ: A Physics-Based, Multi-Agent Forensic Framework for Explainable Deepfake Detection (2026)
|