New system developed for wearable devices that can detect stress