Biopsy is recommended for definitive diagnosis of liver carcinoma, however, this process requires staining and expert pathologists to confirm diagnosis. Here, the authors employ a portable Raman spectroscopy system combined with deep learning to detect carcinoma from normal tissue in real time.