Predictive models work by using algorithms to identify patterns in histological images. These patterns are then used to make predictions about new data. For instance, a model may be trained on a dataset of biopsy images labeled with cancer stages. Once trained, this model can predict the stage of cancer in new biopsy samples by analyzing their histological features.