How would you determine sleep from cellphone data

How would you determine sleep from cellphone data