I just worked on something similar at a hackathon this weekend with the Muse Headband, it was really fun. We used a support vector machine to maximize the "calmness" output of the band, which is some weighted sum of gamma and beta waves I believe.
fyi, this doesn't make sense.