In conclusion, our study provides a novel machine learning model for cancer prognosis and theragnosis by predicting ER signaling activity in patients with ER + /HER2- breast cancer from whole-slide tumor H&E staining. This evidence concerns the gene ESR1 and breast carcinoma.