{"action":"created","issue":{"url":"https://api.github.com/repos/martindinov/hackathon/issues/7","labels_url":"https://api.github.com/repos/martindinov/hackathon/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/martindinov/hackathon/issues/7/comments","events_url":"https://api.github.com/repos/martindinov/hackathon/issues/7/events","html_url":"https://github.com/martindinov/hackathon/issues/7","id":61669916,"number":7,"title":"EEG processing and triggers for action","user":{"login":"nmdanr2b","id":11445051,"avatar_url":"https://avatars.githubusercontent.com/u/11445051?v=3","gravatar_id":"","url":"https://api.github.com/users/nmdanr2b","html_url":"https://github.com/nmdanr2b","followers_url":"https://api.github.com/users/nmdanr2b/followers","following_url":"https://api.github.com/users/nmdanr2b/following{/other_user}","gists_url":"https://api.github.com/users/nmdanr2b/gists{/gist_id}","starred_url":"https://api.github.com/users/nmdanr2b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmdanr2b/subscriptions","organizations_url":"https://api.github.com/users/nmdanr2b/orgs","repos_url":"https://api.github.com/users/nmdanr2b/repos","events_url":"https://api.github.com/users/nmdanr2b/events{/privacy}","received_events_url":"https://api.github.com/users/nmdanr2b/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-14T18:10:51Z","updated_at":"2015-03-14T18:41:05Z","closed_at":null,"body":"a) basic artifacting (removing obvious high amplitude spikes due to muscle movements/eye blinks) \r\nb) Setting custom band limits (could be just comparing \"low frequency\" and \"high frequency\", hence two bands only) \r\nc) custom set thresholds per band to serve as triggers for neurofeedback and neurostimulation \r\n(if band X stays above threshold Y micro volts for Z seconds then do <action - light a LED, play pre-defined sound, display picture if some monitor is connected, apply neurostimulation protocol of choice)  \r\nd) marking in the saved data and/or a separate log file when a threshold has been exceeded or the band amplitude went below the threshold after being above it etc. Overall, there should be appropriate marking in the saved data and/or separate log file every time a trigger has been activated and triggered action took place and then finished. \r\ne) comparison of band power between bands as a trigger for neurostimulation/feedback (for example, if alpha/theta ratio exceeds 1:2 then do X) \r\nf) comparison of band power between sensors as a trigger for neurostimulation/feedback (for example, if alpha power measured at sensor A in a position B exceeds alpha power at sensor D in a position C then do X)\r\n\r\nTheoretically, if / then action trigger statements can be as complex as we want being derived from c), e), f) or other (for example coherence-decoherence related) selected thresholds simultaneously - the capability is inherently there.  \r\n\r\nFor proof-of-concept at hackaton, implementing just c) will be sufficient, but is essential - see the \"Sound and light\" issue "},"comment":{"url":"https://api.github.com/repos/martindinov/hackathon/issues/comments/80663099","html_url":"https://github.com/martindinov/hackathon/issues/7#issuecomment-80663099","issue_url":"https://api.github.com/repos/martindinov/hackathon/issues/7","id":80663099,"user":{"login":"nmdanr2b","id":11445051,"avatar_url":"https://avatars.githubusercontent.com/u/11445051?v=3","gravatar_id":"","url":"https://api.github.com/users/nmdanr2b","html_url":"https://github.com/nmdanr2b","followers_url":"https://api.github.com/users/nmdanr2b/followers","following_url":"https://api.github.com/users/nmdanr2b/following{/other_user}","gists_url":"https://api.github.com/users/nmdanr2b/gists{/gist_id}","starred_url":"https://api.github.com/users/nmdanr2b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmdanr2b/subscriptions","organizations_url":"https://api.github.com/users/nmdanr2b/orgs","repos_url":"https://api.github.com/users/nmdanr2b/repos","events_url":"https://api.github.com/users/nmdanr2b/events{/privacy}","received_events_url":"https://api.github.com/users/nmdanr2b/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T18:41:05Z","updated_at":"2015-03-14T18:41:05Z","body":"It will be also handy to implement two triggers per band or, more generally speaking, per event class - \"lower than\" and \"higher than\". For example, \"if an amplitude of a selected band is lower than X turn on a blue LED, if it is higher than Y - turn on red LED\". "}}