Nonlinear analysis of biological models and stochastic analysis of machine learning methods