A new study on sleep patterns has revealed a potential key that helps researchers understand how the brain ages.