Using machine learning to understand customers behavior