Two medical applications of deep neural networks