YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
AUTHEN AI Media Authenticity & Forensic Engine
AUTHEN Core is an evidence-centric, multimodal AI authenticity and forensic verification engine designed to detect synthetic, manipulated, and deepfake content across image, video, and audio modalities.
Built from first principles (governed by AGENTS.md), AUTHEN Core replaces naive binary classifiers with a calibrated evidential reasoning framework capable of generalizing to unseen generative AI models.
ποΈ System Architecture
AUTHEN Core operates on a four-tier forensic pipeline:
βββββββββββββββββββββββββββββββββββ
β Input Media (Img/Vid/Aud) β
ββββββββββββββββββ¬βββββββββββββββββ
β
ββββββββββββββββββββββΌβββββββββββββββββββββ
β Media Ingestion & Invariant Preproc β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββ
β β β
ββββββΌββββββββββββββββββ ββββββββββΌββββββββββββββ ββββββββββββββΌβββββββββββ
β Image Forensic Core β β Video Forensic Core β β Audio Forensic Core β
β - DINOv2 / CLIP ViT β β - Bidirectional SSM β β - WavLM + LoRA SSL β
β - 2D Haar Wavelet β β (Mamba-style O(T)) β β - Mel-Spectrogram β
β - SRM + Bayar Noise β β - Temporal Inconsist.β β - F0 / Jitter/Shimmerβ
β - Local Patch Scan β β - Frame Transitions β β - Phase Anomalies β
ββββββ¬ββββββββββββββββββ ββββββββββ¬ββββββββββββββ ββββββββββββββ¬βββββββββββ
β β β
βββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββ
β Structured Forensic Trace β
β [ForensicEvidence, ...] β
βββββββββββββββββ¬ββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββ
β Dempster-Shafer Fusion & EDL β
β - Dirichlet Uncertainty (u) β
β - Conflict & Disagreement β
βββββββββββββββββ¬ββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββ
β Authenticity Assessment β
β - Verdict (Auth/Synth/Manip) β
β - Calibrated Confidence β
β - Epistemic Uncertainty (u) β
β - Traceable Evidence Chain β
βββββββββββββββββββββββββββββββββ
β‘ Performance Benchmarks (Intel Core CPU, Single-Threaded)
| Subsystem | Parameters | Model Size | Batch-1 Latency (p50) | p95 Latency |
|---|---|---|---|---|
| Image Core (224x224) | 4.35 M | 17.41 MB | 9.22 ms | 10.47 ms |
| Audio Core (3s @ 16kHz) | 2.46 M | 9.85 MB | 12.78 ms | 20.31 ms |
| Video Core (16 frames) | 2.41 M | 9.65 MB | 14.38 ms | 19.95 ms |
| EDL Fusion Head | 0.099 M | 0.40 MB | 0.18 ms | 0.20 ms |
| Full Pipeline (E2E) | 9.32 M | 37.30 MB | 11.05 ms | 11.72 ms |
- Expected Calibration Error (ECE): 0.0094 ($< 1%$)
- Selective Prediction: Automatic abstention (
Verdict.INCONCLUSIVE) when evidence uncertainty $u > 0.50$.
π Quickstart
Installation
# Clone the repository
git clone https://github.com/MxHabob/authen-ml.git
cd authen-ml
# Install dependencies in development mode
pip install -e .[dev]
Python API Usage
import torch
from authen_core import (
AuthenPipeline,
ImageForensicAnalyzer,
AudioForensicAnalyzer,
VideoForensicAnalyzer,
EvidenceAggregator,
)
# 1. Initialize Pipeline with analyzers
pipeline = AuthenPipeline(
analyzers=[
ImageForensicAnalyzer(),
AudioForensicAnalyzer(),
VideoForensicAnalyzer(),
],
aggregator=EvidenceAggregator(abstention_threshold=0.50),
)
# 2. Run Forensic Analysis on an image
dummy_image = torch.randn(3, 224, 224)
assessment = pipeline.analyze({"image": dummy_image}, media_id="sample_001")
# 3. Inspect structured verdict and calibrated evidence
print(f"Verdict: {assessment.verdict.value}")
print(f"Confidence: {assessment.confidence:.4f}")
print(f"Uncertainty: {assessment.uncertainty:.4f}")
print(f"Evidence Count: {len(assessment.evidence_chain)}")
for ev in assessment.evidence_chain:
print(f" - [{ev.modality.value}] {ev.analyzer}: {ev.description} (conf={ev.calibrated_confidence:.2f})")
π§ͺ Running Tests & Benchmarks
# Run the complete test suite (57 unit & integration tests)
python -m pytest tests/test_authen_core.py -v
# Run the performance and calibration benchmark
python scripts/benchmark_authen_core.py --device cpu --num-runs 30
π Scientific & Engineering Documentation
- State of the Art Research (2024β2026)
- Threat Model & Anti-Forensics
- Algorithm Design Specification
- Evidence Schema Specification
- Benchmark Protocol
- Ablation Study Plan
- Efficiency & Optimization Plan
- Reproducibility & Experiment Guide
- System Specification Document
- ML Model Card
- Final Algorithmic Decision Document
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support