Enhancing ectopic pregnancy detection: a machine learning approach using ultrasound imaging