Scientists say device could alert workers such as pilots and healthcare staff when they are feeling the strain