Skip to content

llLucidll/FocusFlow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FocusFlow: Mind-Controlled Music Suggestor and Generator

pic1

Our DevPost Link

https://devpost.com/software/focusflow-1u9ndy

A fun video to demonstrate our project

https://youtu.be/06rVeEn10kQ?feature=shared

As a team that struggled with focus and stress, we discovered the power of music in improving our well-being. This shared experience inspired us to enhance the way music helps individuals, using brain data to personalize recommendations.

FocusFlow uses real-time EEG data from users to refine music recommendations, tailoring them to align with each user's brain activity and improving their focus and calmness.

We used the Muse S to collect EEG data, a website built with Vanilla JavaScript, HTML, and CSS, and MongoDB to store user data. The Spotify API provided music tracks, and we fine-tuned its recommendation algorithm using brain data.

The biggest challenge was addressing conflicting interpretations of EEG bands in scientific literature, which we resolved with a Double-Blind Oddball Visual Paradigm test. We also navigated ethical and legal concerns related to storing brain data and working with copyrighted music.

We are proud of our polished product, created in just 64 hours, and our cohesive teamwork. Our generative model for music, leveraging state-of-the-art architecture, is another major milestone.

We gained valuable insights into brain function, scientific literature, and practical applications of our knowledge. Collaborating in an open, creative environment taught us the joy of turning passions into impactful projects.

We plan to refine our system with better metrics, improve performance with more data, and collaborate with industry experts to advance FocusFlow's capabilities.

Training for the Users

462554488_1249143069741344_384725285181268506_n

As you start the website, we will have no idea who you are, and what kind of musics you like. So we have connected with Spotify to recommend the top songs that you listen to + a few generic focus / relax music to understand your brain waves. As we learn more about you, we will store your eeg data and average it out with the song and store it in Mongo for music suggestions and recommendations

Suggesting Spotify songs on what helps you focus or relax based on users choice

462557814_884408043457345_8454530162400073174_n

When you click on either focus mode or relax mode, based on the mode we will see what kind of music peaks your concentration/calmness and based on that we would be recommending you songs from the Spotify Api. It is a radio feature such that when you click next, new music is generated. To the right hand side, you can also see the focus graph to keep tabs of your performance.

GenAI: Generating Music based on the mode and your eeg waves using RL feedback loop

462577843_1288581838944316_1374247918101071924_n

When you click generate from the focus tab or the relax tab, we used a pre-trained generative model from Meta (MusicGEN) as we feed in our eeg waves and the model detects what kind of music you want. And to keep it accurate, we also require RL feedback loop to understand your choices better and generate better songs, suited for you

About

Brain-Wave controlled Music Recommendation System for Spotify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.0%
  • Cython 2.9%
  • C 1.0%
  • C++ 0.7%
  • Jupyter Notebook 0.1%
  • JavaScript 0.1%
  • Other 0.2%