一种改进的Focal Loss在语义分割上的应用
CSTR:
作者:
作者单位:

(1. 中国科学院光电技术研究所, 成都 610209;2. 中国科学院大学, 北京 100049)

作者简介:

杨 威(1990-),男,湖北省孝感人,博士生,研究方向为基于卷积神经网络的高效语义分割;

通讯作者:

中图分类号:

TP301.6

基金项目:


An Improved Focal Loss Function for Semantic Segmentation
Author:
Affiliation:

(1. Institute of Optics and Electronics of the Chinese Academy of Sciences, Chengdu 610209, CHN;2. University of Chinese Academy of Sciences, Beijing 100049, CHN)

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    传统基于深度学习的语义分割方法使用的损失函数为交叉熵,而交叉熵并不能解决训练数据中的样本非均衡性问题。语义分割任务属于像素级分类,样本的非均衡性问题在其中体现得十分突出。文章提出了一种改进的Focal Loss作为损失函数来自动解决训练样本的非均衡性。该损失函数等同于在标准交叉熵上加上一个权重,该权重能够自动增加困难样本的交叉熵损失值,同时保持简单样本的交叉熵损失值。将Focal Loss作为DeepLabv3+的损失函数,并将DeepLabv3+的Backbone替换为ResNet-18,再使用Cityscapes数据集作为训练样本,分别使用交叉熵和Focal Loss作为损失函数来对模型进行训练。实验结果表明,改进的Focal Loss损失函数相比于交叉熵获得的语义分割精度更高,且能够有效缓解训练样本的非均衡性问题。

    Abstract:

    The loss function usually used in deep-learning-based semantic segmentation is cross entropy, and it cannot tackle the imbalance problem of the training data. Semantic segmentation is a pixel-level classification task, in which the imbalance presents much more serious. In this paper, an improved Focal Loss for semantic segmentation is proposed to alleviate the imbalance problem of training data automatically. This loss function can be seen as weighted cross entropy, but the weight can increase the cross entropy loss of hard example and keep the cross entropy loss of easy example. By taking Focal Loss as the loss function of DeepLabv3+, and changing the backbone of DeepLabv3+ to ResNet-18, the model was trained on Cityscapes dataset with cross entropy and focal loss separately. The experimental results prove that the proposed loss function can get better segmentation accuracy, and can significantly alleviate the imbalance problem of training data.

    参考文献
    相似文献
    引证文献
引用本文

杨威,张建林,徐智勇,赵春梅.一种改进的Focal Loss在语义分割上的应用[J].半导体光电,2019,40(4):555-559. YANG Wei, ZHANG Jianlin, XU Zhiyong, ZHAO Chunmei. An Improved Focal Loss Function for Semantic Segmentation[J].,2019,40(4):555-559.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2019-01-28
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2019-08-21
  • 出版日期:
文章二维码