This document presents an improved block-based segmentation algorithm for JPEG compressed document images, addressing undesirable compression artifacts. It classifies blocks into background, text/graphic, and image types using AC energy thresholding and k-means clustering techniques. The proposed method aims to enhance segmentation robustness across various quantization settings, demonstrating effective results on test images.