We'll introduce why artificial intelligence is needed for digital pathology and how it can be used to diagnosis breast and prostate cancer. By applying AI to two types of cancer diagnoses, it shows what challenges exist in digital pathology and how we overcome them. First, we'll introduce a system for predicting the tumor proliferation in breast cancer. Predicting the tumor proliferation can be integrated into current prognostic grading systems, being more relevant to actual clinical practice. In addition, we'll present a system for predicting Gleason's score, an important factor in the diagnosis of prostate cancer. A system for accurate and consistent diagnosis based on artificial intelligence will bring much value to digital pathology.