NandanMahadev/content-moderation-env
0
๐ก๏ธ 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
streamlit run app.py