Deep word embeddings for visual speech recognition

10/30/2017 ∙ by Themos Stafylakis, et al. ∙ 0

In this paper we present a deep learning architecture for extracting word embeddings for visual speech recognition. The embeddings summarize the information of the mouth region that is relevant to the problem of word recognition, while suppressing other types of variability such as speaker, pose and illumination. The system is comprised of a spatiotemporal convolutional layer, a Residual Network and bidirectional LSTMs and is trained on the Lipreading in-the-wild database. We first show that the proposed architecture goes beyond state-of-the-art on closed-set word identification, by attaining 11.92 the embeddings in modelling words unseen during training. We deploy Probabilistic Linear Discriminant Analysis (PLDA) to model the embeddings and perform low-shot learning experiments on words unseen during training. The experiments demonstrate that word-level visual speech recognition is feasible even in cases where the target words are not included in the training set.

READ FULL TEXT VIEW PDF
POST COMMENT

Comments

There are no comments yet.

Authors

page 1

page 2

page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Automatic speech recognition (ASR) is witnessing a renaissance, which can largely be attributed to the advent of deep learning architectures. Methods such as Connectionist Temporal Classification (CTC) and attentional encoder-decoder facilitate ASR training by eliminating the need of frame-level senone labelling, [1] [2] while novel approaches deploying words as recognition units are challenging the conventional wisdom of using senones as recognition units, [3] [4] [5] [6]. In parallel, architectures and learning algorithms initially proposed for audio-based ASR are combined with powerful computer vision models and are finding their way to lipreading and audiovisual ASR, [7] [8] [9] [10] [11] [12] [13].

Motivated by this recent direction in acoustic LVCSR of considering words as recognition units, we examine the capacity of deep architectures for lipreading in extracting word embeddings. Yet, we do not merely address word identification with large amounts of training instances per target word; we are also interested in assessing the generalizability of these embeddings to words unseen during training. This property is crucial, since collecting several hundreds of training instances for all the words in the dictionary is impossible.

To this end, we train and test our architecture on the LipReading in-the-Wild database (LRW, [14]), which combines several desired properties, such as relatively high number of target words (500), high number or training examples per word (between 800 and 1000), high speaker and pose variability, non-laboratory recording conditions (excerpts from BBC-TV) and target words that are part of segments of continuous speech of fixed 1.16s duration. We examine two settings; standard closed-set word identification using the full set of training instances per target word, and low-shot learning

where the training and test words come from disjoint sets. For the latter setting, a PLDA model is used on the embedding domain that enables us to estimate class (i.e. word) conditional densities and evaluate likelihood ratios. Our proposed architecture is an improvement of the one we recently introduced in

[15] which obtains state-of-the-art results on LRW even without the use of word boundaries.

The rest of the paper is organized as follows. In Sect. 2 we provide a detailed description of the architecture, together with information about the training strategy and the use of word boundaries. In Sect. 3.1 we show results on word identification obtained when the model is training on all available instances, while in Sect. 3.2 we present results on two low-shot learning experiments. Finally, conclusion and directions for future work are given in Sect. 4.

2 Proposed Network Architecture

In this section we describe the network we propose, together with details regarding the preprocessing, the training strategy and loss function.

2.1 Detailed description of the network

The proposed architecture is depicted in Fig. 1 and it is an extension of the one we introduced in [15]. The main differences are (a) the use of a smaller ResNet that (18 rather than 34-layer) that reduces the number of parameters from M to

M, (a) the use of a pooling layer for aggregating information across time steps extracting a single embedding per video, (b) the use of dropouts and batch normalization at the back-end, and (c) the use of word boundaries which we pass to the backend as additional feature.

2.1.1 ResNet with spatiotemporal front-end

The frames are passed through a Residual CNN (ResNet), which is a -layer convolutional network with skip connections and outputs a single -sized per time step, i.e. a tensor (

in LRW). There are two differences from the ImageNet 18-layer ResNet architecture,

[16]; (a) the first 2D convolutional layer has been replaced with a 3D (i.e. spatiotemporal) convolutional layer with kernel size (timewidth

height) and the same holds for the first batch normalization and max pooling layers (without reducing the time resolution), and (b) the final average pooling layer (introduced for object recognition and detection) has been replaced with a fully connected layer, which is more adequate for face images that are centred. The model is trained from scratch, since pretrained models cannot be deployed due to the spatiotemporal front-end.

2.1.2 Backend, embedding layer and word boundaries

The backend is composed of a two-layer BiLSTM followed by an average pooling layer that aggregates temporal information enabling us to extract a single

-size representation vector (i.e. embedding) for each video. The two-layer BiLSTM differs from the usual stack of two BiLSTM model; we obtained significantly better results by concatenating the two directional outputs only at the output of the second LSTMs. The backend receives as input the collection of

-size features extracted by the ResNet (CNN-features) concatenated with a binary variable indicating whether or not the frame lies inside or outside the

word boundaries. We choose to pass the word boundaries as a feature because (a) dropping out potentially useful information carried in the out-of-boundaries frames is not in the spirit of deep learning, and (b) the gating mechanism of LSTMs is powerful enough to make use of it in an optimal way.

Dropouts with are applied to the inputs of each LSTM (yet not to the recurrent layer, see [17]), with the mask being fixed across features of the same sequence. Finally, batch normalization is applied to the embedding layer, together with a dropout layer with , [18].

Figure 1: The block-diagram of the proposed network.

2.2 Preprocessing, loss and optimizer

The preprocessing and data augmentation are identical to [15]. Moreover, as in [15], we start training the network using a simpler convolutional backend which we subsequently replace with the LSTM backend, once the ResNet is properly initialized111Code and pretrained models in Torch7 are available at https://github.com/tstafylakis/Lipreading-ResNet. Contrary to [15], we use the Adam optimizer [19], with initial learning rate equal to and final equal to

, and we drop it by a factor of 2 when no progress is attained for 3 consecutive epochs on the validation set. The algorithm typically converges after 50-60 epochs. We train the network using the cross-entropy criterion with softmax layer over training words. This criterion serves for both tasks we examine, i.e. closed-set word identification and low-shot learning, while its generalizability to unseen classes is in general equally good compared to other pairwise losses (e.g. contrastive loss),

[3] [20] [21] [22].

3 Experimental Results

We demonstrate the effectiveness of the proposed architectures with respect to two experimental settings. The first is the standard closed-set identification task in which the network is trained with all available instances per target word (between 800 and 1000, [14]). The second setting aims to address to problem of word recognition on words unseen during training. The few training instances of the target words are merely used for estimating word-conditional densities on the embedding domain, via PLDA. To this end, the network is trained using a subset of 350 words of LRW and the test pairs are drawn from the remaining 150 words.

3.1 Closed-set word identification

For our first experiments in word identification, the reduced word set (consisting of the 350 words out of 500) will be used for both training and testing. These networks will also be used for low-shot learning on the remaining 150 words. Our proposed networks is retrained and tested on the full 500-word set.

3.1.1 Baseline and state-of-the-art

We compare our architecture with two approaches which according to our knowledge are the two best performing approaches in LRW. The first in proposed in [7], and it deploys an encoder-decoder with temporal attention mechanism. Although the architecture is designed to address the problem of sentences-level recognition, it has also been tested on the LRW database, after fine-tuning on the LRW training set. The whole set of experimental results can be found in [7] and the results on LRW are repeated here in Table 1 (denoted by Watch-Attend-Spell). The second architecture is introduced by our team in [15] and its differences with the proposed one have been discussed above. The experimental results on LRW are given in Table 1 (denoted by ResNet-LSTM). Both experiment use the full set of words during training and evaluation (i.e. 500 words).

System Top-1(%) Top-5(%)
Watch-Attend-Spell [7] 23.80 -
ResNet-LSTM [15] 17.03 3.72
Table 1: Baseline and state-of-the-art results on the full set (500 words).

3.1.2 Experiments on the reduced set of words

For the first experiment we use the proposed architecture without dropouts or batch normalization at the backend. The results are given in Table 2 (denoted by N1) and the network attains % error rate on the reduced set. For the second experiment (denoted by N2) we add dropouts to the backend but again we do not apply batch normalization to the embedding layer. The error rate drops to %, showing the gains by applying dropouts at the backend. The next configuration uses both dropouts or batch normalization at the backend, and a single BiLSTM layer (denoted by N3). The network attains % error rate on the reduced set, showing that good results can be obtain even with a single BiLSTM layer. In the next configuration we experimented with extracting the embedding from the last output of the BiLSTM (as proposed in [23]), rather than with average pooling across all time steps. The network attains % error rate and it is denoted by N4. The next configuration is the proposed architecture without the use of word boundaries. The network (denotes by N5) attains %, showing that the network yields good results even without specifying the boundaries of the target words. Finally, the proposed architecture (denoted by N6) attains % error rate on the reduced set, which is clearly better that the other configurations examined. Moreover, by comparing N6 with N2 we notice the strength of batch normalization at the embedding layer. We should also mention that we experimented with the typical stacking approach of BiLSTM. In this case, the outputs of the first BiLSTM are concatenated and used as input to the second BiLSTM. The network failed to attain good results (error rates above

%), despite our efforts to tune parameters such as learning rate and dropout probabilities.

Net #L WB DO BN EM Top-1(%) Top-5(%)
N1 2 A 13.13 2.26
N2 2 A 12.67 2.10
N3 1 A 12.59 2.05
N4 2 L 12.15 1.89
N5 2 A 15.23 2.87
N6 2 A 11.29 1.74
Table 2: Results on the reduced set (350 words) for various network configurations. Abbreviations: #L: number of BLSTM layers, WB: use of word boundaries, DO: use of dropouts at the backend, BN: use of batch normalization at the embedding, EM: embedding extracted using average pooling (A) or from last time step (L).

3.1.3 Experiments on the full set of words

The networks N5 and N6 are retrained from scratch and scored on the full set, and their performance is given in Table 3. Compared to the current state-of-the-art we observe an absolute improvement equal to % using about 2/3 of the parameters. The LSTM is indeed capable of learning how to use the word boundaries, without having to drop out out-of-boundaries frames or to apply frame masking. Even without word boundaries though, our new architecture yields % absolute improvement over [15]. Finally, our architecture halves the error rates attained by the baseline (attentional encoder-decoder, [7]).

Net #L WB DO BN EM Top-1(%) Top-5(%)
N5 2 A 15.67 3.04
N6 2 A 11.92 1.94
Table 3: Results on the full set (500 words) for various network configurations. Abbreviations same as in Table 2.

3.2 Low-shot learning experiments

In this set of experiments we assess the capacity of the embeddings in generalizing to words unseen during training. To this end, we assume few instances for each of the 150 unseen words. These words are not included in the training set of the architecture (which is composed of 350 words) and they are merely deployed to estimate shallow word-dependent models on the embedding space. We design two experiments, namely closed-set identification and word matching.

3.2.1 PLDA modeling of embeddings

We model the embeddings using PLDA, [24]

. We train a PLDA model with expectation-maximization on the set of 350 words, drawn from the test set of LRW (50 instances per word, i.e. 17500 training instances). PLDA is chosen due to its probabilistic nature, which enables us to form likelihood ratios, that are extensively used in biometric tasks, such as speaker and face verification,

[25] [26] [27]. Its parameters are defined by , where the mean value, a matrix that models the word subspace and a full symmetric positive definite matrix modelling the within-class variability. The PLDA generative model is the following

(1)

where is an embedding in belonging to class , is a random vector in shared by all instances of the same class, a random vector in , and . In the following experiments we use and .

3.2.2 Closed-set identification on unseen words

We are interested in examining the performance of the embeddings in closed-set identification on the unseen set of words. To this end, the embeddings of the 150 unseen words are extracted. The overall number of available embeddings per word is 50 from the LRW validation set and another 50 from the test set. The validation set serves to estimate class-conditional density functions, based on the PLDA parameters, i.e. , where the class (i.e. word) label, a set of instances from the validation set from class .

A class conditional density for each word given is estimated using variable number of instances per word (from 1 to 16) drawn from the validation set of LRW. Subsequently, the models are evaluated on test embeddings (50 per word, from LRW test set) and the estimated word is derived using maximum likelihood. The Top-1 error rates for several number of training instances per word are given in Table 4 (denoted by ID-W350). For comparison, we include results where the embeddings are extracted from the network trained with the full set of 500 words (denoted by ID-W500), i.e. the one used in Sect. 3.1.3.

3.2.3 Word matching on unseen words

For the final experiment, we evaluate log likelihood ratios (LLRs) between the hypotheses (a) the word instance belongs to the same word-class with a collection of word instances , and (b) and belong to different classes. Contrary to closed-set identification, we assume that each instance may belong to an unknown set of classes. Moreover, since we are scoring pairs of word models and instances, more than one model per word can be created. We use again the validation set of LRW to create these models and the test set to create test instances. We measure the performance in terms of Equal Error Rate (EER), defined as the error rate attained when the LLRs are thresholded in such a way so that Missed Detection and False Alarm rates are equal. The results using variable number of training instances per model is given in Table 4 (denoted by EER-W350). For comparison, results with embeddings extracted from the same network trained on the full set of words are also given (denoted by EER-W500).

1 2 4 8 16
ID-W350 (%)
ID-W500 (%)
EER-W350 (%)
EER-W500 (%)
Table 4: Top-1 identification error and equal error rates on the unseen set of 150 words using PLDA for various training embeddings per word. W350 indicates that the network is trained on the reduced set while W500 on the full set.

Overall, the experiment on low-shot learning demonstrate the generalizability of the proposed architecture. Even with a modest number of training words (i.e. 350), the architecture succeeds in learning how to break down word instances into their “visemic” content and in extracting embeddings with good word discriminative properties.

4 Conclusion

In this paper, we proposed a deep learning architecture for lipreading that is capable of attaining performance beyond state-of-the-art in the challenging LRW database. The architecture combines spatiotemporal convolution, ResNets and LSTMs and an average pooling layer from which word embeddings are extracted. We explored several configurations of the LSTM-based back-end and we proposed an efficient method of using the word boundaries. We also attempted to address the problem of low-shot learning. To this end, we retrained the network on a subset of words (350 out of 500) and tested it on the remaining 150 words, using PLDA modelling. The experiments on low-shot learning show that good results can be attained even for words unseen during training.

For future work, we will train and test our architecture on the LipReading Sentences in-the-wild database ([7]) and we will experiment with word embeddings for large vocabulary visual speech recognition, using words as recognition units.

5 Acknowledgements

This work has been funded by the European Commission program Horizon 2020, under grant agreement no. 706668 (Talking Heads).

References

  • [1] R. Prabhavalkar, K. Rao, T. N. Sainath, B. Li, L. Johnson, and N. Jaitly, “A Comparison of Sequence-to-Sequence Models for Speech Recognition,” in Interspeech, 2017.
  • [2] T. Hori, S. Watanabe, Y. Zhang, and W. Chan, “Advances in Joint CTC-Attention Based End-to-End Speech Recognition with a Deep CNN Encoder and RNN-LM,” in Interspeech, 2017.
  • [3] H. Kamper, W. Wang, and K. Livescu, “Deep convolutional acoustic word embeddings using word-pair side information,” in ICASSP, 2016.
  • [4] K. Audhkhasi, B. Ramabhadran, G. Saon, M. Picheny, and D. Nahamoo, “Direct Acoustics-to-Word Models for English Conversational Speech Recognition,” in Interspeech, 2017.
  • [5] H. Soltau, H. Liao, and H. Sak, “Neural speech recognizer: Acoustic-to-word LSTM model for large vocabulary speech recognition,” in Interspeech, 2017.
  • [6] S. Bengio and G. Heigold, “Word embeddings for speech recognition.” in Interspeech, 2014.
  • [7] J. S. Chung, A. Senior, O. Vinyals, and A. Zisserman, “Lip reading sentences in the wild,” in CVPR, 2017.
  • [8] J. Chung and A. Zisserman, “Lip reading in profile,” in BMVC, 2017.
  • [9] Y. M. Assael, B. Shillingford, S. Whiteson, and N. de Freitas, “Lipnet: Sentence-level lipreading,” arXiv preprint arXiv:1611.01599, 2016.
  • [10] K. Thangthai and R. Harvey, “Improving Computer Lipreading via DNN Sequence Discriminative Training Techniques,” in Interspeech, 2017.
  • [11] M. Wand and J. Schmidhuber, “Improving Speaker-Independent Lipreading with Domain-Adversarial Training,” in Interspeech, 2017.
  • [12] A. Koumparoulis, G. Potamianos, Y. Mroueh, and S. J. Rennie, “Exploring ROI size in deep learning based lipreading,” in AVSP, 2017.
  • [13] S. Petridis, Z. Li, and M. Pantic, “End-to-end visual speech recognition with LSTMs,” in ICASSP, 2017.
  • [14] J. Chung and A. Zisserman, “Lip reading in the wild,” in ACCV, 2016.
  • [15] T. Stafylakis and G. Tzimiropoulos, “Combining Residual Networks with LSTMs for Lipreading,” in Interspeech, 2017.
  • [16] K. He, X. Zhang, S. Ren, and J. Sun, “Identity mappings in deep residual networks,” in ECCV, 2016.
  • [17] G. Cheng, V. Peddinti, D. Povey, V. Manohar, S. Khudanpur, and Y. Yan, “An exploration of dropout with LSTMs,” in Interspeech, 2017.
  • [18] S. Ioffe and C. Szegedy, “Batch normalization: Accelerating deep network training by reducing internal covariate shift,” in ICML, 2015.
  • [19] D. P. Kingma and J. Ba, “Adam: A Method for Stochastic Optimization,” in ICLR, 2014.
  • [20] Y. Taigman, M. Yang, M. Ranzato, and L. Wolf, “Deepface: Closing the gap to human-level performance in face verification,” in CVPR, 2014.
  • [21]

    O. M. Parkh, A. Vedaldi, and A. Zisserman, “Deep face recognition,” in

    BMVC, 2015.
  • [22]

    D. Snyder, D. Garcia-Romero, D. Povey, and S. Khudanpur, “Deep Neural Network Embeddings for Text-Independent Speaker Verification,” in

    Interspeech, 2017.
  • [23]

    M. Wand, J. Koutník, and J. Schmidhuber, “Lipreading with long short-term memory,” in

    ICASSP, 2016.
  • [24] S. Ioffe, “Probabilistic Linear Discriminant Analysis,” in ECCV, 2006.
  • [25] P. Kenny, T. Stafylakis, P. Ouellet, M. Alam, and P. Dumouchel, “PLDA for speaker verification with utterances of arbitrary duration,” in ICASSP, 2013.
  • [26] S. Prince and J. Elder, “Probabilistic linear discriminant analysis for inferences about identity,” in ICCV, 2007.
  • [27] D. Chen, X. Cao, L. Wang, F. Wen, and J. Sun, “Bayesian face revisited: A joint formulation,” in ECCV, 2012.