Optimized detector for closed-loop devices for neurostimulation | IEEE Conference Publication | IEEE Xplore