sumedhSK/wellbeing-rl
0
Wellbeing Feed RL Environment
An RL environment simulating social media content recommendation that balances user engagement with mental wellbeing.
Problem
Social media algorithms optimize for engagement — but the most engaging content is often toxic, creating doomscroll spirals that damage mental health.
Observation Space (8 signals + 10 history = 17D vector)
Action Space (5 discrete)
Reward Function (0.0-1.0, 6 components)
30% mood health + 25% engagement + 15% mood improvement + 10% anti-doomscroll + spiral rescue bonus - toxicity penalty
Tasks
Baseline Scores (seed=42)
Setup
pip install -r requirements.txt
python run_baseline.py --seed 42
python inference.pyEnvironment Variables
- APIBASEURL: LLM API endpoint
- MODEL_NAME: Model identifier
- HF_TOKEN: Hugging Face API key
API Endpoints
- POST /reset - Reset environment
- POST /step - Take action
- GET /state - Current state
- GET /tasks - List tasks
