Best focus algorithm


Dear All,
First of all i want to say hi to all of you. Im new to this kind of technology.
I just bought a muse headband i am trying to know if a user is focused. As i seen in the old version of there was a function for this. But it was removed.
What’s the best way to calculate the focused state keeping in mind that it will be used by lot of different users on an event?