CoolFace
Apppublic

alihaidar-ai/aegis-ai-multimedia-integrity-full

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

๐Ÿ›ก๏ธ 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.