Human-in-the-loop assistive cyber physical system control using physiological signals