Many years ago I worked on a 'Lone worker' ID tag that could do something similar as well as log conversations etc. Pretty much anything with a half decent accelerometer can do this - most phones could but the battery drain might be prohibitive. It's a great story but the technology has been around for over a decade.