Machine learning algorithms can be trained to recognize specific cell types and tissue structures by learning from annotated histological images. For example, convolutional neural networks (CNNs) are particularly effective for image analysis tasks. These algorithms can be deployed for purposes such as identifying cancerous cells, grading tumors, and quantifying cellular components in a tissue sample.