CoolFace
Apppublic

NandanMahadev/content-moderation-env

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

๐Ÿ›ก๏ธ AI Content Moderation System

A smart simulation of real-world content moderation where an AI agent analyzes posts and decides appropriate actions based on content, user behavior, and contextual signals.


๐Ÿš€ Overview

This project models how modern platforms perform content moderation using AI-driven decision-making.

Instead of simple classification, the system evaluates:

  • โ€”Content (text)
  • โ€”User behavior
  • โ€”Community feedback (reports)
  • โ€”Source credibility
  • โ€”Posting patterns

๐Ÿ‘‰ The goal is to simulate real-world moderation workflows used by large-scale platforms.


๐ŸŽฏ Action Space

The AI agent can take the following actions:

  • โ€”๐ŸŸข safe โ†’ allow the content
  • โ€”๐Ÿ”ต flag โ†’ send for review
  • โ€”๐ŸŸฃ warn_user โ†’ issue warning
  • โ€”๐Ÿ”ด delete โ†’ remove harmful content
  • โ€”๐ŸŸ  mark_fake โ†’ flag misinformation

๐Ÿ“Š Observation Space

Each post includes rich contextual data:

  • โ€”๐Ÿ“ text โ†’ post content
  • โ€”๐Ÿ‘ค username, account_age, followers โ†’ user profile
  • โ€”โš ๏ธ user_history โ†’ past behavior
  • โ€”๐Ÿ“Š report_count โ†’ number of reports
  • โ€”๐ŸŒ source โ†’ verified / unverified
  • โ€”๐Ÿ•’ time_posted โ†’ day / night / midnight

๐Ÿง  Intelligence Features

  • โ€”๐Ÿ” Context-aware decision making
  • โ€”๐Ÿง  Explainable AI (reason for each decision)
  • โ€”๐Ÿ“Š Confidence score
  • โ€”๐Ÿ‘ค User behavior modeling

๐Ÿงฉ Tasks

  • โ€”Easy โ†’ clear harmful / safe / fake posts
  • โ€”Medium โ†’ mixed signals
  • โ€”Hard โ†’ sarcasm & ambiguity

๐Ÿ’ฐ Reward System

  • โ€”โœ… Correct action โ†’ +1.0
  • โ€”โš–๏ธ Partial โ†’ +0.5 to +0.8
  • โ€”โŒ Wrong โ†’ negative

โ–ถ๏ธ How to Run Locally

bash
streamlit run app.py