All in one cancer imaging optimisation using an integrated mathematical and deep learning approach