The device sits under a patient’s skull and tracks brain activity.