The document discusses a method for multi-class image semantic segmentation that combines top-down and bottom-up approaches, improving accuracy through automatic parameter optimization. The proposed technique utilizes a multilevel thresholding algorithm with particle swarm optimization for parameter selection to optimize segmentation results. Experimental findings indicate that this combined method yields superior segmentation accuracy compared to existing techniques without significantly increasing computational time.