A new machine learning model could speed early detection, diagnosis, and treatment, Cambridge researchers say.