By tracking minute facial movements, down to the scale of pores, the algorithm picked up signs of consciousness days before doctors.