Text this: Dynamic selectout and voting-based federated learning for enhanced medical image analysis