Using artificial intelligence to help cancer patients avoid excessive radiation