A Wireless Wearable System for Closed-Loop Stress Detection and Mitigation