Researchers say a machine learning tool can identify many patients with rare, undiagnosed diseases years earlier than current methods, potentially improving outcomes and reducing cost and morbidity.