Isolated Word Recognition System for Malayalam using Machine Learning
Automatic Speech Recognition (ASR) has made significant advances in recent years for major world languages. However, speech recognition systems for regional Indian languages, particularly Dravidian languages like Malayalam, remain underdeveloped compared to English or Hindi. Malayalam presents unique phonological challenges including retroflex consonants, vowel length distinctions, and a complex syllabic structure that requires specialized approaches.
Isolated word recognition serves as a foundational component of broader speech recognition systems. This research focuses on developing an efficient isolated word recognition system for Malayalam using machine learning techniques, addressing specific linguistic characteristics of the language that pose challenges to traditional recognition approaches.
The primary objectives of this research include developing a comprehensive corpus of isolated Malayalam words, implementing and comparing different feature extraction techniques, evaluating various machine learning classifiers, and optimizing the system for real-time applications with limited computational resources.
Early work on Malayalam speech recognition primarily utilized template matching techniques and basic acoustic models with limited success due to inadequate language resources and pronunciation variations across Kerala. Traditional Hidden Markov Models (HMM) and Gaussian Mixture Models (GMM) have been applied but struggled with the language's complex phonology.
Deep learning approaches have shown promise for low-resource languages, though limited research specifically addresses Malayalam's phonological peculiarities. Previous studies on Dravidian languages highlight the importance of handling retroflex consonants, syllabic structures, and vowel length distinctions - characteristics that differ significantly from Indo-Aryan or European languages.
This work builds upon existing techniques while introducing language-specific approaches to address the unique challenges of Malayalam speech recognition.
The isolated word recognition system for Malayalam consists of four main components:
Figure 1: System Architecture for Malayalam Word Recognition
A specialized corpus of isolated Malayalam words was developed for training and evaluation. The dataset includes 500 common Malayalam words covering various semantic categories, phonemes, and consonant clusters. Recordings were collected from 100 speakers (50 male, 50 female) across different age groups and regions of Kerala, including multiple repetitions of each word by different speakers.
| Category | Number of Words | Examples |
|---|---|---|
| Nouns (Common Objects) | 150 | (book), (house) |
| Verbs (Action Words) | 100 | (sing), (walk) |
| Adjectives | 75 | (good), (big) |
| Numbers | 50 | (one), (ten) |
| Pronouns | 50 | (I), (you) |
Table 1: Composition of the Malayalam Speech Dataset
Several feature extraction methods were implemented and evaluated for their effectiveness with Malayalam speech:
MFCC features represent the short-term power spectrum of sound based on a nonlinear mel scale. This technique proved particularly effective for Malayalam due to its ability to capture phonemic characteristics. We implemented 13-dimensional MFCC features with delta and delta-delta coefficients, resulting in a 39-dimensional feature vector for each frame.
PLP features approximate the human auditory system's response to speech signals. These features were found to be less sensitive to speaker variations compared to MFCC, which is beneficial for Malayalam's diverse speaker demographics across Kerala.
We explored augmenting basic acoustic features with supplementary information including pitch and formant frequency values, energy characteristics, voicing features, and prosodic features specific to Malayalam speech patterns.
Several machine learning classifiers were implemented and evaluated for the word recognition task:
A feedforward deep neural network with multiple hidden layers was trained on extracted features, showing improved performance over traditional approaches despite requiring substantial computational resources.
CNN architectures were adapted to process spectrogram representations of speech signals. The 1D-CNN model outperformed traditional DNNs by capturing local patterns in the time-frequency domain, particularly for words with complex consonant clusters.
Long Short-Term Memory (LSTM) networks were implemented to capture temporal dependencies in speech signals. The LSTM architecture particularly excelled at modeling the agglutinative nature of Malayalam words, handling morphological complexity more effectively than other architectures.
We explored hybrid architectures combining CNN and LSTM components, leveraging the strengths of both approaches. These models showed improved performance on words with complex phonemic structures and varying lengths.
The system was evaluated using accuracy rate, precision, recall, and F1-score metrics. The performance comparison of different feature extraction techniques and classification models showed:
| Model | Feature Set | Accuracy (%) | Precision | Recall | F1-Score |
|---|---|---|---|---|---|
| DNN | MFCC | 87.2 | 0.86 | 0.87 | 0.865 |
| DNN | PLP | 86.4 | 0.85 | 0.86 | 0.855 |
| CNN | MFCC | 90.1 | 0.89 | 0.90 | 0.895 |
| CNN | Augmented Features | 91.3 | 0.91 | 0.91 | 0.910 |
| LSTM | MFCC | 91.8 | 0.92 | 0.92 | 0.918 |
| CNN-LSTM Hybrid | Augmented Features | 92.4 | 0.93 | 0.92 | 0.925 |
Table 2: Performance Comparison of Different Models
The CNN-LSTM hybrid model with augmented features achieved the highest accuracy of 92.4%, demonstrating the effectiveness of combining spatial and temporal feature learning for Malayalam word recognition.
Misclassified words were analyzed to identify common patterns in errors. The most frequent error types included:
The system was implemented using Python with TensorFlow and Keras frameworks. Audio processing utilized Librosa and PyAudio libraries, while feature extraction used the Python Speech Features library. The optimized system achieved an average processing time of 0.35 seconds per word on standard hardware, making it suitable for real-time applications.
Several challenges were encountered during development:
Several directions for future research have been identified:
This research presents a comprehensive approach to developing an isolated word recognition system for Malayalam using machine learning techniques. The developed system achieves a competitive accuracy of 92.4% on a diverse dataset of Malayalam words. The study identifies effective feature extraction techniques and classification models for Malayalam speech recognition, providing valuable insights for future research on low-resource languages.
The work contributes to advancing speech recognition technology for regional Indian languages with complex phonetic structures. The techniques and approaches developed can be extended to other low-resource languages, promoting linguistic diversity in speech technology development.
Download Research Paper
