Early detection of fetal heart anomalies, such as cardiomegaly, is critical in prenatal diagnosis. However, manual segmentation of ultrasound (USG) images requires specialized expertise and is time-consuming, highlighting the need for an efficient automated solution. This research aims to perform automatic segmentation of fetal thorax and heart areas using You Only Look Once (YOLO) version 8 an…