completed Feb 2020 - Feb 2021

Voice to Intent Classification for Low Resource Languages

#Speech Processing #Spoken Language Understanding #Intent Classification #Transfer Learning #Low-Resource Languages #Sinhala #Tamil
Voice to Intent Classification for Low Resource Languages

Overview

Spoken Language Understanding (SLU) aims to extract the meaning of a spoken utterance, and voice to intent classification is a core component of conversational agents such as Siri, Alexa and Google Home. Traditional systems cascade an Automatic Speech Recognition (ASR) module with a Natural Language Understanding module, so errors in transcription propagate directly to the final prediction. End-to-end deep learning models avoid the intermediate transcript but are data hungry, which puts them out of reach for low resource languages such as Sinhala and Tamil.

This project investigates how few-shot techniques and better feature representations can make end-to-end voice to intent classification work for Sinhala and Tamil. Three directions were explored. A character-based approach adapted an English DeepSpeech model to Tamil using Common Voice Tamil data and a KenLM language model, then used the extracted features with 1D CNN, 2D CNN and SVM classifiers. A phoneme-based approach built on the end-to-end SLU model of Lugosch et al., pre-trained on English LibriSpeech, and fine-tuned its word and intent layers on Sinhala and Tamil speech. A third line of work treated spectrogram images as input to a CNN trained from scratch, and compared spectrogram, Mel spectrogram, MFCC, pitch and spectral features on the Fluent Speech Commands and Google Speech Commands datasets.

Motivation & Objectives

Building a conversational agent normally requires large amounts of data, which languages such as Sinhala and Tamil lack. Voice-based agents are harder still, because they also need transcribed or labelled speech, which is scarce for these languages. Feature representation also strongly affects model performance, and an efficient representation can support computational linguistics research for low resource languages.

Data Collection – To collect speech data in Sinhala and Tamil for intent classification.

Deep Learning Classifier – To build a deep learning-based, end-to-end voice to intent classification model for Sinhala and Tamil conversational agents.

Transfer Learning – To integrate transfer learning techniques that reduce the data requirement and improve accuracy.

Feature Representation – To explore alternative audio feature representations that enhance classification performance.

Impact & Results

Performance

The phoneme-based transfer learning approach gave the strongest results. On a 5-hour Sinhala dataset, fine-tuning only the classifier (phoneme and word layers frozen) gave 92% test accuracy, and also unfreezing the word layer improved this further (94% in the text, 0.98 in the results table). On only 2 hours of Tamil data the same approach reached 92% accuracy, surpassing the 71% benchmark. A spectrogram-image CNN trained from scratch achieved 91.9% on 7,624 Sinhala clips across 6 intents and 89.9% on 9,132 Sinhala clips across 14 intents, as well as 83.1% on 2,698 Tamil clips across 14 intents, while a 400-clip Tamil set proved too small (21.4%, rising only to 29.2% with Sinhala pre-training). The character-based DeepSpeech transfer approach reached at most 27% mean accuracy (2D CNN), which the team attributed to limited corpus size, dialect mismatch and a weak language model. In the feature study, Mel spectrograms gave 95.44% test accuracy on the 31-intent Fluent AI dataset, and MFCC features gave 93.37% on the 30-class Google Commands dataset.

Key Contributions

Phoneme-Based Transfer Learning for Sinhala and Tamil

Adapted an English pre-trained end-to-end SLU model to Sinhala and Tamil by selectively unfreezing its word and intent layers, achieving above 90% accuracy with only a few hours of speech.

Spectrogram-Image CNN Classifier

A compact CNN of about 570K parameters that classifies 64x64 spectrogram images into intents and stays accurate when the number of intents grows from 6 to 14.

Feature Representation Study

A comparison of spectrogram, Mel spectrogram, MFCC, pitch and combined spectral features for speech intent classification on two public benchmarks.

Real-world Impact

The results show that end-to-end voice interfaces are practical for Sinhala and Tamil even with very small labelled datasets, provided that knowledge is transferred from models pre-trained on high resource languages. This lowers the barrier to building voice-based conversational agents, such as banking assistants, for low resource language communities.

Gallery

Architecture of the phoneme-based end-to-end intent classifier

Architecture of the phoneme-based end-to-end intent classifier

Character-based speech-to-text model used as the source for cross-lingual transfer learning

Character-based speech-to-text model used as the source for cross-lingual transfer learning

Training and validation accuracy of the spectrogram-based CNN on Sinhala speech data

Training and validation accuracy of the spectrogram-based CNN on Sinhala speech data

Project Team

J

J. Ajanthasingam

Undergraduate Researcher

Contributed to the research on end-to-end voice to intent classification for Sinhala and Tamil.

T

T. Anushiya

Undergraduate Researcher

Contributed to the research on end-to-end voice to intent classification for Sinhala and Tamil.

P

P. Loghi

Undergraduate Researcher

Contributed to the research on end-to-end voice to intent classification for Sinhala and Tamil.