alihaidar-ai/aegis-ai-multimedia-integrity-full
๐ก๏ธ AegisAI โ Multimedia Integrity Analyzer (Video + Photo)
AegisAI is a Streamlit-based multimedia integrity and deepfake risk analyzer that evaluates suspect videos and photos for potential manipulation (deepfake, face-swap, or heavy edits) using a combination of:
Quality signals (blur + noise โ baseline risk)
Multi-face extraction (video frames + photos)
Model-based deepfake scoring
Optional identity verification (Reference vs Suspect)
Evidence strength scoring
Downloadable forensic reports (CSV)
โ ๏ธ Disclaimer: This tool provides an AI-assisted assessment, not legal proof. Results may be incorrect. Always verify with human experts and additional forensic methods.
๐ Live Demo
๐ Hugging Face Space: https://huggingface.co/spaces/alihaidar-ai/aegis-ai-multimedia-integrity-full
๐ Streamlit Cloud: https://aegis-ai-multimedia-integrity-4vypudbpyourhrkul5xu7h.streamlit.app/
โจ Features ๐๏ธ Suspect VIDEO Analysis
Upload suspect video (mp4, mov, avi)
Extract frames with slider control
Compute:
Blur score
Noise score
Baseline risk (0โ100)
Detect faces and display 224ร224 face crops
Multi-person clustering (if identity enabled)
Download:
Video frames evidence CSV
Deepfake per-face scores CSV
๐ผ๏ธ Suspect PHOTO Analysis
Upload one or more suspect photos (jpg, jpeg, png)
Detect faces and show 224ร224 crops
Optional multi-person check
Download deepfake per-face scores CSV
๐ชช Optional Identity Verification
Upload reference photos (1โ5 clear selfies)
Upload reference videos (1โ3 short clips)
Builds identity embedding
Filters inconsistent reference media
Compares suspect faces vs reference
Outputs:
MATCH
UNCERTAIN
NOT MATCH
๐ Final Risk & Smart Verdict
Combines:
Deepfake probability
Baseline risk
Identity similarity (if provided)
Produces:
Final Risk Score (0โ100)
Evidence Strength Score (0โ100)
Smart Verdict Summary
๐ฅ Downloadable Report
CSV report includes:
final_risk
evidence_strength
identitysimilaritybest
fakescorebest
avg_blur
avgbaselinerisk
identity_enabled
reference_provided
video_uploaded
numvideofaces
numphotofaces
๐ง Tech Stack
Python
Streamlit
OpenCV
NumPy
Pandas
Pillow
Hugging Face Transformers
InsightFace
๐ Project Structure . โโโ app.py โโโ streamlitapp.py โโโ utilsvideo.py โโโ utilsidentity.py โโโ utilsdeepfake_model.py โโโ requirements.txt โโโ README.md ๐ ๏ธ Local Setup 1๏ธโฃ Create virtual environment python -m venv venv
Windows:
venv\Scripts\activate
Linux/Mac:
source venv/bin/activate 2๏ธโฃ Install dependencies pip install -r requirements.txt 3๏ธโฃ Run the app streamlit run app.py โ ๏ธ Notes & Limitations
Accuracy depends on media quality.
Small or occluded faces may fail detection.
Deepfake models may produce false positives/negatives.
Identity verification accuracy depends on clean reference media.
This is an assistive AI tool, not a forensic authority.
๐ค Author
Ali Haidar BS Computer Science (2020โ2024) AI / ML Projects Portfolio
GitHub: https://github.com/studyhaidar77-art
โญ Support
If you find this project useful, please โญ the repository.
