Scoliosis prevalence is witnessing an upward trend, rendering image segmentation an invaluable tool in appraising the condition's severity. The segmentation of spinal images, however, poses notable challenges primarily due to the image quality and the complexity of discerning the Region of Interest (ROI) on X-ray imagery. This difficulty arises from the uniform texture and luminosity of the background, complicating the ROI detection process. Our study investigates the performance of U-Net in image segmentation using anteriorposterior X-ray imagery of spines afflicted with scoliosis. A corpus of 609 high-resolution images was assembled for this purpose, partitioned into 481 training and 128 testing images. Prior to model implementation, a data augmentation process was carried out to bolster the training datasets, mitigating the risk of model overfitting. The augmentation involved mirroring and adding black and white intensity to each image, thereby generating thirteen new images from each original image. This process amplified the size of the training dataset from 481 to 6734 images. Our findings validate the efficacy of the U-Net model in accurately segmenting the spine in X-ray images, demonstrating an accuracy of 97% in training and 94% in validation, with a corresponding loss of 0.063 and validation loss of 0.16. The resultant segmentation is poised to enhance the precision of scoliosis severity assessment.