In the digital era, video-sharing platforms like YouTube, TikTok, and Vimeo have transformed content consumption. This blog post explores a Python simulation of a video recommendation system, developed as part of a Responsible AI course collaboration between Boston University, Tel Aviv University, the Technion, and Bocconi University.
The project was a case study within Boston University's Responsible AI course, which focuses on the ethical and responsible use of AI technologies. The simulation aimed to create a video recommendation system that emphasizes "fairness, transparency, and overall responsibility in AI applications."
The simulation began by setting up:
Key functions included:
initialize_user_profiles()
: Assigns each user an empty list of watched videosvideo_generator()
: Populates the platform with videos, creating unique titles and attributesThe core of the simulation was a loop mimicking user activity over several days. The process_chunk()
function simulated user interactions by:
The recommendation system used:
get_top_recommendations()
function to generate personalized recommendationsRecommendations were ranked using an engagement score considering:
The simulation provided insights into recommendation system mechanics while highlighting responsible AI principles. It demonstrated the importance of: