Sleep function terrible

Why does my sleep data disappear mid day?  I go to sleep at 10 and wake up at 6 and the data appears accurate with a sleep recording of around 7 hours. But mid day it displays 1 or 2 hours sleep for the same time period. What’s up with that?