This loss function implemented depend on the paper "Optimizing Intersection-Over-Union in Deep Neural Networks for Image Segmentation"
Rahman, M. A., & Wang, Y. (2016, December). Optimizing intersection-over-union in deep neural networks for image segmentation. In International symposium on visual computing (pp. 234-244). Springer, Cham.