Novel AI algorithm for digital pathology analysis