Probabilistic and Deep Learning Algorithms for the Analysis of Imagery Data