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