Tracking your thoughts while you sleep