Some dogs (more the scent hounds) can also detect when epileptics have a seizure coming on. Apparently there is distinct change in body chemistry just prior to the seizure that the dog can smell/sense.
Both phenomenums have been scientifically proven. Dogs truly are, our best friends!