How AI could save lives without spilling secrets