anky2002 commited on
Commit
36e5592
Β·
verified Β·
1 Parent(s): dc8b71b

Update README with FORENSIQ metadata and description

Browse files
Files changed (1) hide show
  1. README.md +58 -6
README.md CHANGED
@@ -1,12 +1,64 @@
1
  ---
2
- title: FORENSIQ
3
- emoji: πŸ“š
4
- colorFrom: indigo
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 6.13.0
8
  app_file: app.py
9
- pinned: false
 
 
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)