How to prevent frauds using machine learning