基於深度學習改良訓練損失函數用於人臉辨識
Improved Training Loss Function Based on Deep Learning for Face Recognition
摘要
在人臉辨識的領域上與其他圖像識別的不同之處,於實際應用中所要辨識的人臉不在訓練類別裡,無法預先訓練人臉分類器進行辨識。因此需用既有已訓練好的深度卷積神經網路模型從臉部提取出辨識用特徵,再計算特徵間的相似度判斷人臉的身分。所以當模型的特徵提取能力提升時,便同時提高人臉辨識準確率。為了在不改變神經網路模型架構的情況下增強特徵提取能力,本論文將從損失函數的改良著手,提出了新的損失函數,稱為中心線距離損失函數(Center Line Distance Loss, CLD-Loss)與多項中心集中損失函數(Multiple Center Centralization Loss, MCC-Loss),是基於常見用於訓練分類網路模型損失函數——Sotftmax Loss的改良,並藉由視覺化分析驗證所提出的損失函數對於特徵分佈的變化是有效果。其中中心線距離損失函數目的為在訓練時最小化特徵與其類別中心向量之間的最小距離,使得特徵能更趨近其類別中心向量,藉此提高同一人特徵間的相似度、降低不同人特徵間的相似度。而多項中心集中損失函數則結合了中心線距離損失函數與Center Loss,在模型學習提高特徵的可辨性時,也加強模型從較難以辨識的人臉中學習取得適於辨識用的特徵。深度卷積神經網路模型使用中心線距離損失函數與多項中心集中損失函數訓練後,在公開資料庫測試下,正確率提升可多達到5%。
The difference between face recognition and the other pattern recognition is that the faces of people, which are identified in practical application, don’t belong to the training dataset. To identify these faces, we use the trained deep convolution neural network model to extract the features from faces and then calculate the similarity scores between these features. For enhancing the feature extraction capability of the model when not altering the neural network architecture, we propose the new loss functions, named “Center Line Distance Loss” (CLD-Loss) and “Multiple Center Centralization Loss” (MCC-Loss). Both loss functions are improved the softmax loss. The CLD-Loss makes the extracted feature of the face cluster to the center feature in training period. So the features of same person can be more similar, and the features between different people will be more dissimilar. We combine the CLD-Loss with the Center Loss as MCC-Loss, to let the model learn from the blurred face images for increasing the feature extraction capability of the model. Using these loss function to train the model, the accuracy in the public face recognition test database can raise up to 5%.