This research explores advanced computational techniques for medical image analysis, focusing on Chest X-ray pneumonia images. Integrating Convolutional Neural Networks (CNN) and Fully Convolutional Networks (FCN), this approach enhances disease detection through image segmentation. Comparative analysis with traditional models reveals distinct diagnostic accuracies, shedding light on model selection for specific tasks. The study aims to bridge technology and clinical practice, leveraging deep learning to improve healthcare outcomes.