Next Article in Journal
Study on Nonlinear Aerodynamic Characteristics of a Semi-Closed Box Bridge Deck Based on Coupled Amplitude Variation
Previous Article in Journal
Numerical Study on Seismic Behavior of Flexural Frames with Semi-Rigid Welded Steel Connections Considering Static and Reciprocating Loads: A Performance-Based Earthquake Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

FrameAugment: A Simple Data Augmentation Method for Encoder–Decoder Speech Recognition

1
Major in Control and Robot Engineering, Chungbuk National University, Cheongju 28644, Korea
2
Department of Intelligent Systems and Robotics, Chungbuk National University, Cheongju 28644, Korea
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(15), 7619; https://doi.org/10.3390/app12157619
Submission received: 12 May 2022 / Revised: 18 July 2022 / Accepted: 18 July 2022 / Published: 28 July 2022
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

:
As the architecture of deep learning-based speech recognizers has recently changed to the end-to-end style, increasing the effective amount of training data has become an important issue. To tackle this issue, various data augmentation techniques to create additional training data by transforming labeled data have been studied. We propose a method called FrameAugment to augment data by changing the speed of speech locally for selected sections, which is different from the conventional speed perturbation technique that changes the speed of speech uniformly for the entire utterance. To change the speed of the selected sections of speech, the number of frames for the randomly selected sections is adjusted through linear interpolation in the spectrogram domain. The proposed method is shown to achieve 6.8% better performance than the baseline in the WSJ database and 9.5% better than the baseline in the LibriSpeech database. It is also confirmed that the proposed method further improves speech recognition performance when it is combined with the previous data augmentation techniques.

1. Introduction

Deep learning [1] has recently shown remarkable performance in many fields including speech recognition. However, the performance of the deep learning network architecture is greatly affected by the amount of training data. Therefore, researchers have investigated increasing the effective size of training data by utilizing unlabeled data for learning [2,3,4,5], or perturbing labeled data and augmenting it to training data [6,7].
As up-to-date speech recognizers have begun to be changed from a hybrid network architecture to a deep learning network architecture [8], much effort has been made to increase the amount of training data effectively. Due to such effort, several data augmentation techniques have been proposed. For example, the speed perturbation [9] technique complements training data by using the data obtained to resample the labeled data at several different speeds. The SpecAugment [10] technique adds speech data obtained by randomly overlaying a spectrogram with binary masks. The SpecSwap [11] technique obtains new speech data by switching two parts of the spectrogram.
We propose a data augmentation method that randomly changes the speed of randomly chosen sections of an utterance. Compared with the speed perturbation technique that changes the speed of the entire utterance at a single fixed speed, the proposed method changes the speed of an utterance at a different speed for every section, and thus, can give more speed variability to the augmented speech data. The speed perturbation technique operates in the waveform domain, whereas the proposed method works in the spectrogram domain. The sections where the speed is changed are randomly selected in a similar manner to the SpecAugment technique, and the speed of the selected sections is changed through linear interpolation. We validate the effectiveness of the proposed method reliably using the WSJ database [12] and LibriSpeech [13] 100 h database.
In Section 2, we describe the network architecture used as a baseline speech recognizer, and review the previous data augmentation methods. In Section 3, we describe the proposed method. In Section 4, we show the experimental results using the WSJ and LibriSpeech databases, optimize hyperparameters, and provide the analysis results and discussion. In Section 5, conclusions are drawn.

2. Related Works

2.1. Network Architecture

As speech recognizers change from a hybrid network architecture to a deep learning network architecture, many deep learning network architectures have been proposed for speech recognition [14,15]. Speech recognizers generally adopt an encoder–decoder network architecture. In the encoder–decoder architecture, the encoder receives the entire utterance and outputs the features of the utterance, and the decoder outputs the result by using the feature vector input from the encoder and the previous result. As shown in Figure 1, the Transformer [16] model is used as the baseline encoder–decoder network architecture except that the input embedding layer is replaced by a subsampling layer to compress the input spectrogram. The encoder of the Transformer learns the relationship among spectrogram data in different positions through self-attention and outputs feature vectors. Because self-attention does not perform regression as LSTM (long short-term memory) [17] does, parallel processing is possible. The decoder of the Transformer uses self-attention like an encoder. However, whereas the encoder’s self-attention learns the positional relationship of the spectrogram, the decoder’s self-attention learns the relationship among the output units. Because the rear part of the currently predicted unit cannot be known, the decoder uses masked-self-attention in the learning process, which learns by masking the rear part of the prediction unit. In the subsequent multi-head attention sub-layer, the decoder learns the relationship between input and output.
In the encoder–decoder network architecture, it was difficult to align at the beginning of the learning process. To solve this problem, CTC (connectionist temporal classification) [15] was combined with the encoder from the MTL (multi-task learning) [18] method. The combined architecture was shown to improve learning speed and speech recognition performance compared to the single model by alleviating the alignment problem [19].
The total loss of the combined architecture is calculated as follows:
L M T L = τ L C T C + 1 τ L A t t e n t i o n
where τ   is a constant greater than or equal to 0 and less than or equal to 1, L C T C is CTC loss and L A t t e n t i o n is attention loss obtained from the Transformer, respectively.

2.2. Speed Perturbation

Speed perturbation [9] is a method of data augmentation that works by changing the speed of the training data. For speed perturbation, we used Sox [20] to resample the speech part of the training data at 90% and 110% of the original rate. The resampled training data obtained from the existing training data were added to the original training data, and the size of the final training data became 3 times the capacity of the original training data. That is, we created 3 times the training data in speed perturbation experiments. Hereinafter, in this paper, this is called 3-fold speed perturbation.

2.3. SpecAugment

SpecAugment [10] modifies a spectrogram through three kinds of deformations: time warping, frequency masking, and time masking. Figure 2 shows a spectrogram to which SpecAugment is applied. We assume that the spectrogram has the length of the time axis L and the length of the frequency axis V . Time warping is a deformation that occurs by selecting a random point in the center of the frequency axis of the spectrogram in time ( W ,   L W ) and warping it left or right by w chosen from the uniform distribution, from 0 to the time warp parameter W . Frequency masking is a deformation of masking frequency channels [ f 0 , f 0   +   f ) and by selecting a frequency channel number f within the frequency [0, V f ]. The f is chosen from a uniform distribution from 0 to the frequency parameter F . Time masking is a deformation of masking the frame number [ t 0 , t 0 +   t ) by selecting a frame number within time [0, L   t ]. The time t is chosen from a uniform distribution, from 0 to the time parameter T .

2.4. Interpolation

We adopted the simplest interpolation method, linear interpolation [21], to change the frame rate in the spectrogram. Linear interpolation has the advantage that it is simple and fast to calculate. The linear interpolation method finds the interpolated value by linearly connecting two given points. Given two points ( t 0 , f 0 ), ( t 1 , f 1 ), the linear interpolation method calculates the interpolated value as follows:
f = f 0 + f 1 f 0 t t 0 t 1 t 0

3. Proposed Method

The proposed method in this paper aims to increase the effective amount of learning data by changing the labeled data in the same way as the existing data augmentation techniques. However, unlike speed perturbation that changes the speed of the entire speech, the proposed method has the advantage of obtaining more learning data because data is augmented by changing the speed of a few sections of speech.
As shown in Figure 3, the proposed method consists of four steps and is described sequentially in the next section.

3.1. Frame Rate

Since the proposed method transforms the spectrogram, the speed of speech is changed by changing the frame rate through linear interpolation. For example, the frame rate can be halved by making the existing 6 frames into 3 frames, and can also be reduced to 2/3 by making 4 frames. In informal listening tests, we found that speech is intelligible when the frame rate is doubled or halved. Therefore, all subsequent experiments were performed by changing the speed of speech between 1/2 and 2. In addition, the average frame rate is set to 1 so that the average length of the augmented data is the same as the average length of the input data. The frame rate s is determined as follows, and then it is rounded to the first decimal place for simplicity:
s ~ Uniform S 1 , S 2 , S 1 + S 2 2 = 1
where Uniform a , b is the uniform distribution from a to b , and S 1 and S 2 denote the lower and upper bounds of the frame rate, respectively.

3.2. Augmentation Range

Since it does not change the speed of the entire utterance, it is necessary to determine the range in which the speed is to be changed. When deciding the augmentation range of the utterance, the range was randomly determined, as in SpecAugment:
n ~ Uniform   0 , N
where N is a parameter representing the maximum range which is determined later through experiments.

3.3. Augmentation Position

Since we also change the speed of a section of the utterance, it is necessary to determine the augmentation range as well as the position to be augmented. The augmentation position was determined at random, the same as for the augmentation range. The augmentation position p is determined as:
p ~ Uniform 0 , L n
Since the augmentation position should not exceed the end of the utterance, the start position of the augmentation range is set by subtracting the augmentation range n from the end of the utterance. Figure 4 is a spectrogram to which the proposed method is applied according to the augmentation range n .
We obtained variable positional sections through the steps outlined in Section 3.2 and Section 3.3. These methods are similar to those used in the time masking of SpecAugment. However, unlike SpecAugment, the speed of the selected augmentation range is changed, as is explained in Section 3.4.

3.4. Linear Interpolation

The proposed method changes the speed of speech by changing the frame rate. When changing the frame rate, the existing frame value is used to calculate an alternate frame value. For example, when the frame rate is changed to 0.6, in the augmentation sections, the existing 5 frames are replaced with 3 frames calculated through linear interpolation. The following shows the frame rate change process in the augmentation sections of the proposed method.
The number of frames to be extracted, a is obtained for each augmentation section as follows:
a = s × n
t k = t 0 + k s ,   k = 0 , 1 , , a 1
where t 0 is the position of the existing frame, and t k is the position of the replacement frame. After obtaining the positions t k of the replacement frame value, the replacement frame value is obtained by putting it into the feature v that is correlated with t k . Finally, the existing feature frames of the feature vector v [ t ] is replaced by the replacement frames of the feature vector v [ t k ]. Additionally, each frame feature does not affect each other, i.e., if the number of the feature vector v is L , then features { v 1 ,   v 2 , ,   v L } are independent of each other. Figure 5 shows how replacement frames are calculated through linear interpolation.

4. Results

In the proposed method, the degree of augmentation is determined by several parameters. Therefore, an experiment was conducted to find the best parameters.
For the reliability of our experiments, two English databases were used: WSJ and LibriSpeech. The WSJ database consists of 81 h of training data, and consists of validation data “dev93” and evaluation data “eval92”. The LibriSpeech database consists of 960 h of training data, and consists of validation data “dev-clean” and evaluation data “test-clean”. In this paper, when learning to use LibriSpeech, only 100 h of learning data was used to reduce the computing resource requirement. In addition, we used the character-based recognition unit for the WSJ database, and used the SentencePiece recognition unit [22] obtained by using the unigram language model [23] for the LibriSpeech database.
In this paper, experiments were conducted using the ESPnet toolkit [24] and the combined Transformer-CTC structure was used as the model. We used 12 encoder layers and 6 decoder layers, where each multi-head attention sub-layer was configured to have 4 heads. Additionally, we set dropout [25] to 0.1, and smoothing [26] to 0.1. For training, we set the maximum sequences in a minibatch (“batch-size”) [24] to 16 with the number of gradient accumulation (“accum-grad”) 4 in WSJ, and set the maximum bins in a minibatch (“batch-bins”) [24] to 2,996,000 with “accum-grad” 16 in LibriSpeech. After 100 epochs of learning, in the WSJ database, we used the model that averaged the top 10 models with the highest accuracy of validation data. In the LibriSpeech database, we used the model that averaged the top five models.

4.1. Augmentation Range

Since the proposed method changes the speed of some sections of an utterance, we used the degree of augmentation according to the range of the augmentation section. We experimented with changing the maximum number of frames to find the parameter showing the optimal performance. In addition, experiments were conducted when the proposed augmentation method was repeatedly applied while the sections did not overlap. If the augmentation range n was longer than the length of the utterance, the entire utterance was augmented. Table 1 shows the experimental results for the WSJ database.
When the maximum augmentation range N is 500 frames, it shows the highest performance on average in the validation data. Repetition of the augmentation method did not significantly affect the recognition performance. Figure 6 is the graphical plot corresponding to Table 1.
The average frame length of the WSJ database is about 900 frames. Performance was best at 500 frames; thus, the performance was best when it was about 60% of the utterance length on average. Table 2 shows the experimental results for the LibriSpeech database.
The average frame length of the LibriSpeech database is about 1500 frames. Performance was best at 1200 frame; thus, the performance was best when it was about 80% of the utterance length on average.
Through the results of the LibriSpeech and the WSJ database, the recognition result did not change according to the absolute number of frames, but according to the ratio of the augmentation section in the utterance.

4.2. Frame Rate

The proposed method changes the degree of augmentation by changing the speed in the augmentation section. As described above, the method of changing the speed uses linear interpolation to change the number of frames. In addition, we experimented with the maximum frame rate range of 0.5–1.5 in order to transform at an audible speed. Speed s is rounded to the first digit after the decimal point. Table 3 and Table 4 show the performance comparison according to frame rate. Even if the frame rate is randomly selected from a set of the values consisting of the minimum range, 1.0, and the maximum range, there is no significant performance difference. For example, comparing s = 0.5 1.5 and s = 0.5 ,   1.0 ,   1.5 , we observed no consistent WER changes.
In the WSJ database, there was no significant difference in performance even by changing the range of the frame rate, but in the case of the LibriSpeech database, changing the range of the frame rate showed significant performance improvement. Different results were obtained for the two databases, and additional confirmation was performed through validation loss in Figure 7. In the WSJ database, there was no difference in the validation loss between 0.9–1.1 and 0.5–1.5 for the frame rate, but in the LibriSpeech database, the larger the range of the frame rate, the lower the validation loss value.
Optimal parameters of s and n were tested through experiments. The best parameters s were 0.5–1.5 and the best parameter N was 500 in the WSJ database and 1200 in the LibriSpeech database.

4.3. Determining the Maximum Augmentation Range

Through the experiment, it was confirmed that the speech recognition performance of the proposed method depends on the ratio of the augmentation section in the entire utterance. The main reason for the difference in the optimal N for the WSJ and LibriSpeech databases is that the average utterance length of the databases is different.
Therefore, we redefined the value of N considering the length of each utterance. For example, if it is assumed that the length of the utterance is 100 and the predefined ratio is 0.8, then the maximum augmentation range becomes N = 80. That is, N changes according to the length of each utterance as follows:
N = L × r a t i o
where r a t i o is a rational number less than 1.
Table 5 shows the experimental results in which the augmentation sections were determined to be proportional to the utterance length. In the flexible N case, the augmentation ratio was set to 70%, the average of 60% and 80%, which performed best in the WSJ and LibriSpeech databases.
The experimental results thus far imply that the augmentation range and speed in FrameAugment control the degree of augmentation and, consequently, improve recognition performance. Therefore, as in SpecAugment, the tuning of augmentation parameters is important. In order to cope with diverse kinds of databases as far as possible and not just a specific database, the augmentation range was set at random, the maximum augmentation range was also decided considering the utterance length, and the speed was also set at random within a given range.

4.4. Comparison with the Existing Data Augmentation Methods

SpecAugment and speed perturbation are widely used as a data augmentation method. We compared the performance of the previous data augmentation and the proposed method. For SpecAugment, we set the parameters to W = 5, F = 30, T = 40, and n _ mask = 2. Table 6 and Table 7 show the performance of the existing data augmentation methods and the proposed method in WSJ and LibriSpeech, respectively.
Table 8 shows the performance of incrementally combining the existing data augmentation methods and the proposed method in LibriSpeech. The combination of SpecAugment and speed perturbation with the proposed method of 6.01% improved performance by up to 13.6% over the baseline of 6.96%. In addition, the proposed method was shown to further reduce WER from 6.26 to 6.01% compared with the combination of the two previous data augmentation methods (SpecAugment and speed perturbation), which means a relative performance improvement of 4%.

4.5. Discussion

Figure 8 shows the attention alignment after learning. When speed perturbation is applied as shown in Figure 8b, the overall slope increases compared to the attention alignment of the original utterance shown in Figure 8a. However, since FrameAugment changes the speed of selected random sections of the original utterance, the slope of non-augmented sections remains unchanged, but the slope of the selected random section is changed, as shown in Figure 8c,d. The selected random section is marked with a box with red lines. We can notice that the slope increases because the frame rate is decreased in Figure 8c, and the slope decreases because the frame rate is increased in Figure 8d.
Figure 9 shows the original spectrogram and the augmented spectrogram when FrameAugment is applied.
Figure 10 shows the attention loss on the training data and the validation data of the LibriSpeech database using FrameAugment and other existing data augmentation methods. Figure 10a shows the loss graph for the training data. If the amount of training data for each epoch is scaled to be equal in the baseline and the speed perturbation method (i.e., 90 epochs in the baseline is scaled to 30 epochs in the speed perturbation method), the training loss curve of every data augmentation method shows convergence slower than that of the baseline.
Figure 10b shows the loss graph for the validation data, where the loss graph of every data augmentation method converged to a lower loss value than that of the baseline. SpecAugment, which augments data by masking on a random section of the spectrogram, converged to the lowest validation loss. Between the two data augmentation methods that change speed, FrameAugment converges to a lower loss value than speed perturbation. It can be expected that FrameAugment performs worse than SpecAugment but better than speed perturbation. In the experiments of the previous subsection, it was shown that FrameAugment can be constructively combined with SpecAugment and speed perturbation for the best performance.

5. Conclusions

We proposed a new data augmentation method that changes the speed of some sections of speech. The proposed method was shown to achieve the best performance on average when the frame rate of 70% of utterances was changed to be 0.5–1.5. Performance was improved by about 13.6% relatively over the baseline when combined with both SpecAugment and speed perturbation in the LibriSpeech 100 h database. The proposed FrameAugment method can provide the labeled data with various speech lengths by simply changing the frame rate and can be combined with the previous data augmentation methods to achieve better results.
Further study is needed to evaluate the performance when the proposed method is used in the waveform domain or applied to other kinds of speech databases.

Author Contributions

Conceptualization, S.-S.L. and O.-W.K.; methodology, S.-S.L.; software, S.-S.L.; validation, S.-S.L.; formal analysis, S.-S.L. and O.-W.K.; investigation, S.-S.L.; resources, S.-S.L.; data curation, S.-S.L.; writing—original draft preparation, S.-S.L.; writing—review and editing, O.-W.K.; visualization, S.-S.L.; supervision, O.-W.K.; project administration, O.-W.K.; funding acquisition, O.-W.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [PubMed]
  2. Xie, Q.; Dai, Z.D.; Hovy, E.; Luong, M.T.; Le, Q.V. Unsupervised data augmentation for consistency training. Adv. Neural Inf. Process. Syst. 2020, 33, 6256–6268. [Google Scholar]
  3. Xie, Q.; Luong, M.T.; Hovy, E.; Le, Q.V. Self-training with Noisy Student Improves ImageNet Classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020. [Google Scholar]
  4. Pham, H.; Dai, Z.; Xie, Q.; Le, Q.V. Meta Pseudo Labels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Virtual, 19–25 June 2021. [Google Scholar]
  5. Sohn, K.; Berthelot, D.; Carlini, N.; Zhang, Z.; Zhang, H.; Raffel, C.; Kurakin, A.; Li, C.L.; Carlini, N.; Cubuk, E.D. FixMatch: Simplifying semi-supervised learning with consistency and confidence. Adv. Neural Inf. Process. Syst. 2020, 33, 596–608. [Google Scholar]
  6. Zhong, Z.; Zheng, L.; Kang, G.; Li, S.; Yang, Y. Random erasing data augmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA, 7–12 February 2020. [Google Scholar]
  7. Cubuk, E.D.; Zoph, B.; Shlens, J.; Le, Q.V. RandAugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020. [Google Scholar]
  8. Yu, D.; Deng, L. Automatic Speech Recognition—A Deep Learning Approach; Springer: Berlin, Germany, 2016. [Google Scholar]
  9. Ko, T.; Peddinti, V.; Povey, D.; Khudanpur, S. Audio augmentation for speech recognition. In Proceedings of the INTERSPEECH 2015, Dresden, Germany, 6–10 September 2015. [Google Scholar]
  10. Park, D.S.; Chan, W.; Zhang, Y.; Chiu, C.C.; Zoph, B.; Cubuk, E.D.; Le, Q.V. SpecAugment: A simple data augmentation method for automatic speech recognition. arXiv 2019, arXiv:1904.08779. [Google Scholar]
  11. Song, X.; Wu, Z.; Huang, Y.; Su, D.; Meng, H. SpecSwap: A Simple Data Augmentation Method for End-to-End Speech Recognition. In Proceedings of the INTERSPEECH 2020, Shanghai, China, 25–29 October 2020. [Google Scholar]
  12. Paul, D.B.; Janet, B. The design for the Wall Street Journal-based CSR corpus. In Proceedings of the Speech and Natural Language, New York, NY, USA, 23–26 February 1992. [Google Scholar]
  13. Panayotov, V.; Chen, G.; Povey, D.; Khudanpur, S. LibriSpeech: An ASR corpus based on public domain audio books. In Proceedings of the ICASSP, South Brisbane, QLD, Australia, 19–24 April 2015. [Google Scholar]
  14. Chan, W.; Jaitly, N.; Le, Q.V.; Vinyals, O. Listen, attend and spell. arXiv 2015, arXiv:1508.01211. [Google Scholar]
  15. Graves, A.; Fernández, S.; Gomez, F.; Schmidhuber, J. Connectionist temporal classification: Labelling unsegmented sequence data with recurrent neural networks. In Proceedings of the 23rd International Conference on Machine Learning (ICML), Pittsburgh, PA, USA, 25–29 June 2006. [Google Scholar]
  16. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
  17. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
  18. Caruana, R. Multitask learning. Mach. Learn. 1997, 28, 41–75. [Google Scholar] [CrossRef]
  19. Kim, S.; Hori, T.; Watanabe, S. Joint CTC-attention based end-to-end speech recognition using multi-task learning. In Proceedings of the 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, USA, 5–9 March 2017. [Google Scholar]
  20. Sox-Sound eXchange. Available online: http://sox.sourceforge.net/ (accessed on 17 July 2022).
  21. Steffensen, J.F. Interpolation; Courier Corporation: North Chelmsford, MA, USA, 2006. [Google Scholar]
  22. Kudo., T.; Richardson, J. SentencePiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, Brussels, Belgium, 31 October–4 November 2018. [Google Scholar]
  23. Kudo, T. Subword regularization: Improving neural network translation models with multiple subword candidates. In Proceedings of the Association for Computational Linguistics, Melbourne, VIC, Australia, 15–20 July 2018. [Google Scholar]
  24. Watanabe, S.; Hori, T.; Karita, S.; Hayashi, T.; Nishitoba, J.; Unno, Y.; Soplin, N.E.Y.; Heymann, J.; Wiesner, M.; Chen, N.; et al. ESPnet: End-to-End Speech Processing Toolkit. arXiv 2018, arXiv:1804.00015. [Google Scholar]
  25. Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
  26. Müller, R.; Kornblith, S.; Hinton, G.E. When does label smoothing help? Adv. Neural Inf. Process. Syst. 2017, 32, 4696–4705. [Google Scholar]
Figure 1. Baseline encoder-decoder network architecture.
Figure 1. Baseline encoder-decoder network architecture.
Applsci 12 07619 g001
Figure 2. SpecAugment applied to spectrogram. The sections to which frequency masking was applied [ f 0 , f 0 +   f ) and time masking was applied [ t 0 , t 0 +   t ) are shown in gray.
Figure 2. SpecAugment applied to spectrogram. The sections to which frequency masking was applied [ f 0 , f 0 +   f ) and time masking was applied [ t 0 , t 0 +   t ) are shown in gray.
Applsci 12 07619 g002
Figure 3. Flow chart of the proposed method.
Figure 3. Flow chart of the proposed method.
Applsci 12 07619 g003
Figure 4. Proposed method applied to base input spectrogram. The section to which the proposed method was applied is shown in gray.
Figure 4. Proposed method applied to base input spectrogram. The section to which the proposed method was applied is shown in gray.
Applsci 12 07619 g004
Figure 5. Method of calculating replacement frames. The red cross indicates replacement frame values and the black bullet indicates original frame values when s = 6 10 , respectively.
Figure 5. Method of calculating replacement frames. The red cross indicates replacement frame values and the black bullet indicates original frame values when s = 6 10 , respectively.
Applsci 12 07619 g005
Figure 6. WER results of WSJ database according to augmented frame range. The horizontal axis denotes the maximum augmentation range and the vertical axis denotes WER.
Figure 6. WER results of WSJ database according to augmented frame range. The horizontal axis denotes the maximum augmentation range and the vertical axis denotes WER.
Applsci 12 07619 g006
Figure 7. Validation loss of WSJ (a) and LibriSpeech (b) databases by epoch. The horizontal axis denotes the number of epochs and the vertical axis denotes validation loss.
Figure 7. Validation loss of WSJ (a) and LibriSpeech (b) databases by epoch. The horizontal axis denotes the number of epochs and the vertical axis denotes validation loss.
Applsci 12 07619 g007
Figure 8. Comparison of the attention alignments with the encoder feature index on x-axis and the outputs on y-axis for the same utterance. We note that speech frames are subsampled by 4:1 for encoder input of Transformer. (a) Original data; (b) speed perturbation (speed = 1.1); (c) FrameAugment ( s = 0.5 , n = 300 , p = 500 ); (d) FrameAugment ( s = 1.5 , n = 500 , p = 100 ).
Figure 8. Comparison of the attention alignments with the encoder feature index on x-axis and the outputs on y-axis for the same utterance. We note that speech frames are subsampled by 4:1 for encoder input of Transformer. (a) Original data; (b) speed perturbation (speed = 1.1); (c) FrameAugment ( s = 0.5 , n = 300 , p = 500 ); (d) FrameAugment ( s = 1.5 , n = 500 , p = 100 ).
Applsci 12 07619 g008
Figure 9. Comparison of the spectrograms with frame index on x-axis and feature index on y-axis. The length of the utterance increases due to FrameAugment. (a) Original spectrogram; (b) spectrogram with FrameAugment ( s = 1.3 , n = 500 , p = 100 ).
Figure 9. Comparison of the spectrograms with frame index on x-axis and feature index on y-axis. The length of the utterance increases due to FrameAugment. (a) Original spectrogram; (b) spectrogram with FrameAugment ( s = 1.3 , n = 500 , p = 100 ).
Applsci 12 07619 g009
Figure 10. Attention loss L A t t e n t i o n   of the training data (a) and validation data (b) of the LibriSpeech database. The horizontal axis denotes the number of epochs, and the vertical axis denotes L A t t e n t i o n   . We note that 3-fold speed perturbation means 3 times the original training data.
Figure 10. Attention loss L A t t e n t i o n   of the training data (a) and validation data (b) of the LibriSpeech database. The horizontal axis denotes the number of epochs, and the vertical axis denotes L A t t e n t i o n   . We note that 3-fold speed perturbation means 3 times the original training data.
Applsci 12 07619 g010
Table 1. WER (%) results of WSJ database according to the maximum augmentation range N when s ~ Uniform 0.9 , 1.1 .
Table 1. WER (%) results of WSJ database according to the maximum augmentation range N when s ~ Uniform 0.9 , 1.1 .
N Number of RepetitionsDev93Eval92
007.885.02
10017.814.78
27.354.86
20017.274.45
27.514.91
30017.665.07
27.274.43
40017.554.27
27.205.05
50017.034.75
26.975.00
60017.254.73
27.315.12
70017.494.50
27.264.92
Table 2. WER (%) results of LibriSpeech database according to the maximum augmentation range N when s ~ Uniform 0.9 , 1.1 .
Table 2. WER (%) results of LibriSpeech database according to the maximum augmentation range N when s ~ Uniform 0.9 , 1.1 .
N Dev-CleanTest-Clean
06.627.33
2006.717.44
4006.747.37
6006.287.01
8006.467.12
10006.316.95
12006.266.96
14006.617.16
Table 3. WER (%) results of WSJ database according to frame rate s when n = 500 .
Table 3. WER (%) results of WSJ database according to frame rate s when n = 500 .
s Dev93Eval92
07.885.02
0.9–1.17.034.75
0.7–1.37.384.82
0.7, 1.0, 1.37.074.87
0.5–1.57.244.94
0.5, 1.0, 1.57.044.70
Table 4. WER (%) results of LibriSpeech database according to frame rate s when n = 1200 .
Table 4. WER (%) results of LibriSpeech database according to frame rate s when n = 1200 .
s Dev-CleanTest-Clean
0.9–1.16.266.96
0.7–1.35.956.60
0.7, 1.0, 1.36.156.62
0.5–1.56.066.68
0.5, 1.0, 1.55.936.74
Table 5. WER (%) results according to the maximum augmentation range. For the flexible N case, the ratio was 0.7 and the frame rate range was 0.5–1.5 in the proposed method.
Table 5. WER (%) results according to the maximum augmentation range. For the flexible N case, the ratio was 0.7 and the frame rate range was 0.5–1.5 in the proposed method.
Database N Dev93/Dev-CleanEval92/Test-Clean
WSJ07.885.02
Fixed ( N = 500 )7.244.94
Flexible N = L × 0.7 6.894.68
LibriSpeech06.627.33
Fixed (   N = 1200 ) 6.066.68
Flexible   N = L × 0.7 6.146.63
Table 6. WER (%) results of WSJ database according to data augmentation methods.
Table 6. WER (%) results of WSJ database according to data augmentation methods.
Data AugmentationDev93Eval92
None7.885.02
SpecAugment7.234.87
Speed perturbation7.244.93
Proposed method6.894.68
Table 7. WER (%) results of LibriSpeech database according to data augmentation methods.
Table 7. WER (%) results of LibriSpeech database according to data augmentation methods.
Data AugmentationDev-CleanTest-Clean
None6.627.33
SpecAugment6.236.96
Speed perturbation6.106.74
Proposed method6.146.63
Table 8. WER (%) results of LibriSpeech database when incrementally combined with the previous data augmentation methods.
Table 8. WER (%) results of LibriSpeech database when incrementally combined with the previous data augmentation methods.
Data AugmentationDev-CleanTest-Clean
SpecAugment6.236.96
+Speed perturbation5.836.26
+Proposed method5.536.01
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Lim, S.-S.; Kwon, O.-W. FrameAugment: A Simple Data Augmentation Method for Encoder–Decoder Speech Recognition. Appl. Sci. 2022, 12, 7619. https://doi.org/10.3390/app12157619

AMA Style

Lim S-S, Kwon O-W. FrameAugment: A Simple Data Augmentation Method for Encoder–Decoder Speech Recognition. Applied Sciences. 2022; 12(15):7619. https://doi.org/10.3390/app12157619

Chicago/Turabian Style

Lim, Seong-Su, and Oh-Wook Kwon. 2022. "FrameAugment: A Simple Data Augmentation Method for Encoder–Decoder Speech Recognition" Applied Sciences 12, no. 15: 7619. https://doi.org/10.3390/app12157619

APA Style

Lim, S. -S., & Kwon, O. -W. (2022). FrameAugment: A Simple Data Augmentation Method for Encoder–Decoder Speech Recognition. Applied Sciences, 12(15), 7619. https://doi.org/10.3390/app12157619

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop