Text this: Artificial intelligence based classification and prediction of medical imaging using a novel framework of inverted and self-attention deep neural network architecture