Text this: Advancing patient care with AI: a unified framework for medical image segmentation using transfer learning and hybrid feature extraction