4D segmentation is typically performed using advanced imaging techniques such as MRI, CT scans, and PET scans combined with sophisticated software algorithms. These algorithms process the imaging data to segment the tumor and other relevant structures at different time points. Techniques such as machine learning and deep learning are increasingly being used to enhance the accuracy and efficiency of 4D segmentation.