Detect that I really get up or not

What about detecting, that I really wake up or only turned alarm off and again sleeping… I have miband 3, so it could e.g. scan for steps and if I’m not walking, the alarm ring again.