Text this: Integrating agent-based models and clustering methods for improving image segmentation