Detecting AI-generated manipulated videos using Vision Transformers, Temporal Pooling, and Deep Learning.
DeepVision AI is an advanced deepfake detection framework that leverages Vision Transformers (ViT) and Temporal Feature Pooling to distinguish authentic videos from AI-generated manipulations.
Unlike conventional CNN-based detectors that analyze individual frames independently, DeepVision AI learns both spatial and temporal inconsistencies across video sequences, making it more robust against modern deepfake generation techniques.
The project is designed for:
- π Academic Research
- π IEEE Publications
- πΌ AI/ML Portfolio
- π§ Computer Vision Research
- π Media Authenticity Verification
- β Vision Transformer (ViT-B/16)
- β Temporal Feature Pooling
- β Video Sequence Learning
- β End-to-End Training Pipeline
- β Automatic Checkpoint Saving
- β CUDA GPU Support
- β Mixed Dataset Training
- β Evaluation Metrics
- β Confusion Matrix
- β ROC-AUC Analysis
- β Modular Architecture
- β Production Ready Codebase
Video Input
β
βΌ
Frame Extraction
β
βΌ
Face Detection
β
βΌ
Face Alignment
β
βΌ
Frame Sequence Builder
β
βΌ
Vision Transformer
(ViT-B/16)
β
βΌ
Temporal Mean Pooling
β
βΌ
Fully Connected Layers
β
βΌ
Real ββββββββββ Fake
DeepVision-AI/
β
βββ configs/
β
βββ data/
β
βββ outputs/
β
βββ scripts/
β
βββ src/
β βββ datasets/
β βββ models/
β βββ training/
β βββ preprocessing/
β βββ utils/
β
βββ tests/
β
βββ train.py
βββ evaluate.py
βββ requirements.txt
βββ environment.yml
βββ README.md
The model is trained on multiple publicly available deepfake datasets.
| Dataset | Purpose |
|---|---|
| FaceForensics++ | Training |
| Celeb-DF v2 | Training & Testing |
| DFDC | Future Evaluation |
The datasets contain:
- Original Videos
- DeepFake Videos
- FaceSwap
- Neural Manipulations
- Python
- PyTorch
- Torchvision
- OpenCV
- facenet-pytorch
- Vision Transformer (ViT)
- NVIDIA CUDA
- NumPy
- Pandas
- tqdm
- YAML
Clone the repository
git clone https://github.com/Arvindhbabu/DeepVision-AI.git
cd DeepVision-AICreate environment
conda env create -f environment.yml
conda activate deepvision-aiInstall dependencies
pip install -r requirements.txtpython train.py --config configs/default.yamlpython evaluate.py \
--config configs/default.yaml \
--checkpoint outputs/runs/<run>/best_model.pthThe framework evaluates using:
- Accuracy
- Precision
- Recall
- F1 Score
- ROC-AUC
- Confusion Matrix
Raw Videos
β
βΌ
Frame Extraction
β
βΌ
Face Detection
β
βΌ
Sequence Generation
β
βΌ
Vision Transformer
β
βΌ
Temporal Pooling
β
βΌ
Classification
β
βΌ
Prediction
- Fake News Detection
- Digital Forensics
- Social Media Verification
- Cybersecurity
- Law Enforcement
- Election Integrity
- Identity Protection
- Journalism
- β Data Pipeline
- β Dataset Builder
- β Sequence Loader
- β Vision Transformer
- β Temporal Pooling
- β GPU Training
- β Evaluation Pipeline
- π§ Performance Optimization
- π§ IEEE Publication
- Spatial Attention
- Temporal Attention
- XAI Explainability
- Grad-CAM Visualization
- Multi-Dataset Benchmarking
- Model Quantization
- Real-Time Webcam Detection
- REST API Deployment
- Mobile Inference
- ONNX Export
This project explores:
- Vision Transformers for Deepfake Detection
- Temporal Feature Aggregation
- Video Sequence Representation Learning
- Robust Binary Classification
- Transfer Learning on Large Vision Models
Contributions are welcome!
Feel free to:
- Fork the repository
- Create feature branches
- Submit Pull Requests
- Report Issues
This project is licensed under the MIT License.
Final Year B.Tech Artificial Intelligence & Data Science
Passionate about
- Artificial Intelligence
- Computer Vision
- Deep Learning
- Generative AI
- MLOps
