Fast detector modeling using machine learning algorithms