Watch face activity bar : how to detect if the user is moving enough?

On the standard watch face the activity bar flashes if the wearer is moving enough to reset the activity bar.

How can I detect and implement this is my watch face?

Ta