Object detection with machine learning