Envoyer par SMS: The duality between particle methods and artificial neural networks