Mass spectrometry and machine learning show promise for early cancer detection and prognosis by analyzing metabolic signatures.