Machine learning based Magnetic tracking technique using a Mapping of the Magnetic Gradient Fields on a 3T MRI scanner