Determining if user is actually wearing headband (in python)


Hey guys I’m currently able to stream the band powers (alpha beta gamma theta delta). My problem is, when I have the Headband connected to my software but no one is wearing the headband it still sends data, how can i determine whether this data is coming from a human source. I notice there is a check for this in the official app.

The code I have based my software on is from: (specifically the Muse class from the muse-sock directory)

If anyone can help with this i would be very grateful.