In this work we introduce a Brownian motion in random environment which is a Brownian constructions by an exchangeable sequence based on Dirichlet processes samples. We next compute a stochastic calculus and an estimation of the parameters is computed in order to classify a functional data.