Skip to content

CodeGeek-Garvit/AthenaGuard1

Repository files navigation

πŸ›‘οΈ AthenaGuard

Real-Time AI Detection of Transformed Sports Media Misuse

Build with AI Solution Challenge Live MVP License Node.js Next.js

AthenaGuard detects unauthorized sports media β€” even after cropping, mirroring, meme-editing, or compression. Traditional systems fail on transformed content. AthenaGuard doesn't.

πŸš€ Live Demo β€’ πŸ“‚ GitHub β€’ πŸ“– Docs β€’ 🎬 Demo Video


πŸ“Œ Table of Contents


🎯 Problem Statement

Sports broadcasters lose billions annually to unauthorized media redistribution. Existing copyright detection tools rely on exact matching or watermarks β€” both fail when content is:

  • βœ‚οΈ Cropped or trimmed
  • πŸͺž Mirrored or flipped
  • 🎭 Meme-edited with overlays
  • πŸ“‰ Compressed or re-encoded
  • πŸ“± Re-uploaded as short clips

AthenaGuard solves this using transformation-aware AI detection.


πŸ’‘ Solution Overview

AthenaGuard is an AI-powered sports media protection platform that:

Capability Description
πŸ” Transformation-Aware Detection Detects misuse even after heavy edits
⚑ Real-Time Monitoring Simulated stream ingestion pipeline
πŸ–οΈ Manual Verification Upload-based on-demand analysis
βš–οΈ Automated DMCA Auto-generate, send, and track notices
πŸ“Š ROI Dashboard Estimated revenue saved + platform analytics
πŸ€– AI Explainability Shows why content was flagged

How AthenaGuard vs Traditional Systems

Feature Traditional AthenaGuard
Exact match detection βœ… βœ…
Watermark-dependent βœ… ❌ (not required)
Detects transformed content ❌ βœ…
Real-time monitoring ❌ βœ… (simulated)
DMCA automation ❌ βœ…
ROI analytics ❌ βœ…

✨ Key Features

πŸ”¬ AI-Based Media Detection

  • Generates robust media fingerprints via embeddings + perceptual hashing
  • Detects cropped, mirrored, meme-edited, and compressed variants
  • OCR-based meme text recognition

πŸ“‘ Real-Time Monitoring (Simulated)

  • Queue-based streaming pipeline simulating live ingestion
  • Scans across multiple platforms concurrently
  • Instant violation flagging via confidence thresholds

πŸ”Ž Manual Verification Mode

  • Upload images or video clips for forensic analysis
  • Returns similarity score, detected transformations, and action recommendation

βš–οΈ Automated DMCA Workflow

  • One-click DMCA notice generation with evidence
  • Status tracking: Generated β†’ Sent β†’ Under Review β†’ Resolved
  • Simulated email dispatch to platform Trust & Safety teams

🧠 AI Explanation Engine

  • Explains why content was flagged (transparency layer)
  • Powered by Google Gemini API
  • Builds legal-grade audit trail

πŸ“Š Dashboard & Analytics

  • Violation heatmaps, confidence scores, platform-wise breakdown
  • ROI metrics: estimated revenue protected
  • Alert system with real-time notifications

πŸ” Authentication System

  • Firebase Authentication β€” secure login/signup
  • Role-based access: Admin / Analyst

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        USER LAYER                               β”‚
β”‚   Admin/Analyst β†’ Login/Auth β†’ Dashboard UI β†’ Manual Upload     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      INGESTION LAYER                            β”‚
β”‚   Simulation Mode (Simulated Stream) ←→ Queue/Streaming System  β”‚
β”‚                                      ←→ Manual Upload Input     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   PROCESSING LAYER (AI CORE)                    β”‚
β”‚                                                                 β”‚
β”‚  Preprocessing β†’ Frame Extraction β†’ Feature Extraction          β”‚
β”‚                                      β”œβ”€ Image/Video Embeddings  β”‚
β”‚                                      β”œβ”€ Perceptual Hashing      β”‚
β”‚                                      └─ OCR / Text Detection    β”‚
β”‚                                  β†’ Similarity Matching Engine   β”‚
β”‚                                  β†’ Decision Engine              β”‚
β”‚                                      β”œβ”€ High (>90%) β†’ AUTO DMCA β”‚
β”‚                                      β”œβ”€ Medium (75-90%) β†’ Reviewβ”‚
β”‚                                      └─ Low (<75%) β†’ Ignore     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                       STORAGE LAYER                             β”‚
β”‚   Media DB β”‚ Vector DB (embeddings) β”‚ Incident DB β”‚ User DB     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    OUTPUT / ACTION LAYER                        β”‚
β”‚  Dashboard β”‚ Alerts β”‚ DMCA Generation β†’ Sending β†’ Status Track  β”‚
β”‚  ROI Analytics Panel                                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Tech Stack

Frontend

Tech Purpose
React.js / Next.js Responsive dashboard UI
Tailwind CSS Styling

Backend

Tech Purpose
Node.js / FastAPI (Python) API, processing pipeline, DMCA workflow

AI & Machine Learning

Tech Purpose
Google Gemini API Content understanding & DMCA notice generation
OpenCV Image/video processing
Embeddings Semantic similarity detection
Perceptual Hashing (pHash) Transform-resistant fingerprinting
OCR (Tesseract / Cloud Vision) Meme text recognition

Cloud & Database

Tech Purpose
Google Cloud Platform (GCP) Core infrastructure
Firebase / Firestore Real-time database & authentication
Cloud Storage Media file storage

Vector Search

Tech Purpose
FAISS / Pinecone Fast similarity search for media matching

Auth & Streaming

Tech Purpose
Firebase Authentication Secure login/signup, role-based access
Queue-based pipeline Simulated real-time stream ingestion

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Google Gemini API Key β€” get one at Google AI Studio

Installation

# 1. Clone the repository
git clone https://github.com/CodeGeek-Garvit/AthenaGuard1.git
cd AthenaGuard1

# 2. Install dependencies
npm install

# 3. Configure environment variables
cp .env.example .env.local

Environment Setup

Create .env.local in the root directory:

# Required
GEMINI_API_KEY=your_gemini_api_key_here

# Firebase (if configuring auth)
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id

Run Locally

# Development server
npm run dev

# Production build
npm run build
npm start

App runs at http://localhost:3000


πŸ”„ Process Flow

User Auth (Login/Signup)
        β”‚
        β–Ό
   Mode Selection
   β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”
   β–Ό         β–Ό
Monitor    Verify
Mode       Mode
   β”‚         β”‚
   β–Ό         β–Ό
Simulated  Upload
Stream     Image/Video
   β”‚         β”‚
   β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜
        β–Ό
   AI Detection Engine
   β”œβ”€ Feature Extraction (embeddings, hashing)
   β”œβ”€ OCR for Meme Text
   └─ Similarity Matching
        β”‚
        β–Ό
   Decision Engine
   β”œβ”€ HIGH (>90%)   β†’ AUTO DMCA + Dashboard Alert
   β”œβ”€ MEDIUM (75-90%) β†’ Manual Review Queue
   └─ LOW (<75%)    β†’ Ignore
        β”‚
        β–Ό
   DMCA Enforcement Flow
   Generate Notice β†’ Send (simulated) β†’ Track Status
        β”‚
        β–Ό
   Output Layer
   Dashboard β”‚ Alerts β”‚ ROI Metrics

πŸ“Έ MVP Screenshots

View Description
Security Overview Revenue protection, violation count, confidence, monitored reach
Monitoring Feed Live stream of detected violations with transformation tags
Incident Analysis Side-by-side original vs detected with AI explanation
DMCA Notice Auto-generated legal notice with export & send options
Manual Verification Drag-and-drop forensic scanning interface
Media Library Protected asset management with violation tracking
System & Compliance Stakeholder alignment + integration hooks

Live Demo: https://athenaguard-314163581128.asia-east1.run.app


πŸ’° Cost Estimation

Development

  • Built by student team
  • Development cost: β‚Ή0 (self-developed)

Monthly Cloud & AI (Production)

Service Cost/Month
Google Cloud (Compute + Storage) β‚Ή3,000 – β‚Ή6,000
Firebase (DB + Auth) β‚Ή1,000 – β‚Ή2,000
Gemini API (AI usage) β‚Ή2,000 – β‚Ή5,000
Total β‚Ή6,000 – β‚Ή13,000/month

Scalability Design

  • Cloud-native, pay-as-you-go
  • Parallel stream processing
  • Embedding-based vector search optimization
  • Modular microservice architecture
  • Distributed storage via GCP

πŸ—ΊοΈ Roadmap

[NOW]  MVP Prototype
       βœ… Simulated real-time monitoring
       βœ… Manual verification
       βœ… DMCA generation

[NEXT] Platform Integration
       πŸ”² YouTube Data API v3 integration
       πŸ”² Instagram Graph API
       πŸ”² Real-time takedown workflows

[v3]   Advanced AI
       πŸ”² Full video-level tracking (not just frames)
       πŸ”² Live stream detection
       πŸ”² Improved short-clip analysis

[v4]   Automation
       πŸ”² Direct legal service integration
       πŸ”² Faster DMCA execution at scale

[v5]   Global Expansion
       πŸ”² OTT platform support
       πŸ”² Blockchain-based ownership verification
       πŸ”² Tamper-proof media authenticity tracking

🀝 Ecosystem Stakeholders

Stakeholder Role Value
BCCI Primary Content Owner IPL digital rights protection
Star Sports Official Broadcaster Exclusive broadcast slot verification
JioCinema Streaming Partner Piracy-led churn reduction
Trust & Safety Teams Platform Moderators Pre-verified flags, 40% faster review

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


Built with ❀️ for Google Solution Challenge

Star this repo

About

this is my new repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages