Automating Medical Image Analysis Workflows Using Machine Learning