Stochastic Modeling for Medical Image Analysis