This document describes a method for automated fetal brain segmentation from 2D MRI slices in order to perform motion correction. The method uses box detection algorithms like MSER and SIFT to detect the brain region in each slice. It then trains a random forest classifier on brain and non-brain patches to perform brain extraction. Finally, it uses a conditional random field for motion correction across slices to generate a 3D volume with less artifacts from fetal movement. The results showed the proposed method produced motion-corrected volumes of diagnostic quality in 85% of test cases.