Machine learning for predicting environmental mobility based on retention behaviour