Artificial intelligence model "learns" from patient data to make cancer treatment less toxic