Voice assistants such as Siri, Alexa and Google Home rely on intent classification, but none of them support Sinhala, which is the mother tongue of about 13 million Sri Lankans and is still a low resource language. Building an open-domain speech recogniser and then classifying the transcribed text requires a large speech corpus, a pronunciation dictionary and a language model, none of which are readily available for Sinhala. For a limited domain, the overhead of this cascaded approach is hard to justify.
This project proposes domain-specific intent classification for Sinhala that maps speech directly to intent without converting it to text. The team first built Voicer, a configurable web and smartphone crowdsourcing application, and used it to collect a Sinhala speech corpus for six banking intents, such as balance inquiries, deposits, withdrawals, bill payments, fund transfers and credit card payments, each expressed through several inflections. Mel Frequency Cepstral Coefficients (MFCC) were extracted under several configurations and used to train a feed-forward neural network with dropout, whose hyperparameters were tuned by grid search. As a benchmark, a speaker-independent Sinhala speech-to-text system was built with the CMU Sphinx-4 toolkit, using a custom dictionary, an n-gram language model and an HMM acoustic model, so that the two approaches could be compared.
Using Voicer, about 8,460 clips (10 hours of speech) were recorded from 215 speakers (152 male, 63 female). After manual cleaning removed 466 faulty recordings (an error rate of 5.5%), 7,994 clean recordings remained. The direct MFCC-based neural network achieved 74.6% test accuracy with 1024 FFT points at 48 kHz and 75.95% with 512 FFT points at 16 kHz. With grid-searched hyperparameters (two hidden layers, dropout 0.25, learning rate 0.001, 300 epochs), it reached about 75.9% test accuracy and 86% training accuracy, outperforming a decision tree (64%) and an SVM (52%) on the same six-intent task. The Sphinx-4 speech-to-text benchmark achieved a word error rate of 11.4%, a sentence error rate of 22.6% and an intent accuracy of 77.4%. The comparison showed that direct classification is more accurate when the speech corpus is small, while the speech-to-text pipeline overtakes it as more data becomes available.
Voicer Crowdsourcing Tool
A web and smartphone application for domain-specific speech collection that works on any OS and can be configured for any language, domain, intent set and inflections. A paper describing the tool and lessons learnt was submitted to the ICTer 2018 conference.
Sinhala Banking Speech Corpus
A 10-hour Sinhala speech corpus of banking-domain commands covering six intents and their inflections, recorded by 215 speakers.
Direct Speech-to-Intent Classifier
The first domain-specific intent classifier for Sinhala that works directly on MFCC features, together with a comparative study of MFCC configurations.
Sphinx-4 Benchmarking System
A speaker-independent Sinhala speech recogniser for banking commands that serves as a baseline for comparing the direct and cascaded approaches.
The work shows that useful voice interfaces for a low resource language can be built for a limited domain without a dictionary, language model or large corpus. This lowers the cost of adding Sinhala voice commands to services such as banking. The Voicer tool and corpus also give future Sinhala and low resource speech research a reusable way to collect domain-specific data quickly. The results were published at the 2018 International Conference on Asian Language Processing (IALP).
Direct intent classification: MFCC features from the voice input are classified into intents by a neural network
Benchmark approach: Sphinx-based speech-to-text followed by intent matching
Voicer, the web and mobile crowdsourcing tool used to record the Sinhala speech corpus
Distribution of collected speech samples across the six banking commands by gender
S.O.A.D. Buddhika
Undergraduate Researcher
Contributed to the Sinhala speech corpus, MFCC-based intent classification and benchmarking research.
L.A.M.R.P.B. Liyadipita
Undergraduate Researcher
Contributed to the Sinhala speech corpus, MFCC-based intent classification and benchmarking research.
N.M.S. Nadeeshan
Undergraduate Researcher
Contributed to the Sinhala speech corpus, MFCC-based intent classification and benchmarking research.
H.D. Witharana
Undergraduate Researcher
Contributed to the Sinhala speech corpus, MFCC-based intent classification and benchmarking research.
Publication at IALP 2018
November 2018
The research was published at the 2018 International Conference on Asian Language Processing.
“Domain Specific Intent Classification of Sinhala Speech Data”
D. Buddhika, R. Liyadipita, S. Nadeeshan, H. Witharana, S. Jayasena, U. Thayasivam
2018 International Conference on Asian Language Processing (IALP), Bandung, Indonesia, pp. 197–202