Detecting cancer in real-time with machine learning