NEURAL NETWORK-DRIVEN ASR FOR KAZAKH LANGUAGE USING DEEPSPEECH
Abstract: this paper presents a study on the creation of a Kazakh speech recognition system based on neural networks. Due to the lack of such technologies for the Kazakh language, this study is relevant and in demand. The developed system is able to effectively process Kazakh speech, opening up new opportunities for implementation in various fields of application. Interaction with the neural network begins with natural language processing (NLP), which allows the system to understand and answer questions, contributing to more effective communication.
Keywords: speech recognition, Kazakh lang, NLP, Machine Learning, CNN, RNN.
https://doi.org/10.24412/2712-8849-2024-1281-1136-1147
Introduction. Speech recognition is one of the key tasks in the field of natural language processing (NLP) and artificial intelligence (AI). Most modern speech recognition systems are based on deep neural networks, such as recurrent neural networks (RNN), convolutional neural networks (CNN), as well as their hybrids. One popular approach is to use Connectionist Temporal Classification (CTC) to align input sequences and text outputs. [1]To date, speech recognition systems have been successfully developed for languages such as English, Chinese, Russian and many others. However, the availability of such technologies remains limited for the Kazakh language. This is due to a number of factors, including a lack of linguistic data and a complex morphology of the language.Mamyrbayev et al. (2019) developed an automatic speech recognition (ASR) system for the Kazakh language, leveraging the Kaldi toolkit. They addressed the challenges posed by Kazakhs agglutinative morphology and limited linguistic resources by creating a 36-hour acoustic corpus from recordings of 200 speakers. Their work incorporated deep neural networks (DNN) and hybrid DNN-HMM models, achieving a word error rate (WER) of 31.78%, demonstrating significant progress for low-resource languages like Kazakh [2-4].Research aimed at developing technologies for languages with limited resources, such as Kazakh, usually faces a number of challenges:Limited amount of posted data.High degree of phonetic variability.Differences in dialects and pronunciation.To solve these problems, previous studies have used methods including:Generation of synthetic data to increase the volume of the training set.Using pre-trained models in other languages.The use of spectrograms and mel-frequency cepstral coefficients (MFCC) to represent speech signals.An important breakthrough in the field of speech recognition was the introduction of architectures such as Transformer and its modification Wav2Vec 2.0, which showed high accuracy in a variety of languages [5, 6]. These models are actively used in research projects for languages with limited resources, as they are well suited for learning on small datasets. Recent work on ASR for low-resource languages highlights the potential of fine-tuning pre-trained models. Kairatuly et al. (2023) fine-tuned XLSR-Wav2Vec2 on a 6-hour Kazakh speech corpus, achieving a WER of 23.49% [7]. They demonstrated the models ability to adapt to Kazakhs linguistic features but noted the need for larger datasets to improve generalizability. This work underscores the importance of developing ASR systems for languages with limited resources.2. Research methodsThe development of the Kazakh speech recognition system involved a comprehensive and structured methodology, ensuring the robustness and accuracy of the final model. The process was divided into the following key phases:Data collectionTo create a high-quality dataset for training the Kazakh speech recognition system, an extensive corpus of Kazakh speech was compiled. This corpus, exceeding 500 GB in size, encompassed diverse audio sources, including:Audiobooks: Professionally narrated texts providing a rich source of clean, well-pronounced speech. Social Media Recordings: A varied collection of spontaneous speech data, reflecting diverse accents, dialects, and informal speaking styles. Crowdsourced Contributions: Contributions from native speakers, enhancing the diversity of the dataset and capturing underrepresented speech patterns.Open-source datasets: Publicly available open-source datasets and datasets provided by science centers and universities [8-9].Table 1. Comprehensive Overview of Audio Data Sources and Duration for Speech Recognition AnalysisEach audio file in the corpus was annotated either manually or through semi-automated processes to ensure the accuracy of transcriptions. The annotation process adhered to strict quality control measures to maintain data integrity and consistency across the dataset.To support linguistic diversity, the corpus included variations in speaking rates, regional accents, and dialects, ensuring the models robustness across different Kazakh-speaking populations.Data preprocessingBefore model training, rigorous preprocessing of the audio data was undertaken to improve data quality and facilitate efficient model learning:Noise Reduction and Normalization: Audio files were processed to remove background noise, normalize volume levels, and enhance clarity. This step ensured the datas suitability for downstream tasks.Segmentation: Audio recordings were segmented into uniform durations of 10-second excerpts, allowing for manageable input sizes during training. Uniform segmentation also ensured consistency across the dataset.Feature Extraction: Advanced techniques such as Mel-frequency cepstral coefficients (MFCC) and spectrogram analysis were employed to transform audio data into a visual representation. These representations captured key acoustic features critical for speech recognition tasks.Phonetic Analysis: PRAAT software, widely used for phonetic research, was utilized for detailed analysis of audio files. The software facilitated:Further normalization and noise reduction.Precise segmentation for phoneme-level granularity.Detailed extraction of phonetic features to capture nuances in Kazakh speech. [10]The preprocessing pipeline was meticulously designed to preserve the linguistic richness of the Kazakh language while ensuring the datasets usability for machine learning tasks.Model TrainingThe development of the Kazakh speech recognition system utilized a robust machine learning pipeline, leveraging state-of-the-art neural network architectures and optimization techniques. The training process comprised the following steps:Neural Network Architecture:The speech recognition model employed a hybrid neural network architecture tailored for sequence-to-sequence tasks:Convolutional Neural Networks (CNNs): These layers were designed to extract local features from spectrograms and MFCCs, such as phoneme boundaries and acoustic patterns. The CNNs also reduced dimensionality, enhancing computational efficiency.Fig. 1. Model Architecture for Audio Spectrogram Processing Using a Convolutional Neural Network (CNN)Recurrent Neural Networks (RNNs): Long short-term memoryFig. 2. Recurrent Neural Network (RNN) Architecture Using Bidirectional GRU Layers(LSTM) layers were integrated to capture temporal dependencies in the audio data, ensuring the model could handle the sequential nature of speech signals.Dense Layers: The Dense layers in the model served as fully connected layers to integrate and refine the features extracted by the CNN and RNN layers.Feature Integration: After the recurrent layers, the Dense layers aggregated the bidirectional temporal features, creating a compact representation of the sequential data.Output Generation: Output Generation: In the final stage, a Dense layer with a SoftMax activation function was used to convert the processed features into probability distributions over the target character set, enabling the model to predict sequences of characters in the transcription.Fig. 3. Training Framework Incorporating Adam Optimizer and CTC Loss FunctionTraining FrameworkThe model was implemented using TensorFlow, a widely used framework that offers efficient computation and scalability. Training was performed using a combination of optimization algorithms:i) Adam Optimizer with a learning rate of 1e-4: For stable convergence and effective parameter optimization for the model.ii) Connectionist Temporal Classification (CTC): Designed specifically for sequence-to-sequence tasks like speech recognition.Data AugmentationTo enhance model robustness and prevent overfitting, data augmentation techniques such as time-stretching, pitch-shifting, and adding background noise were applied. These techniques mimicked real-world variability in speech data.Training Configuration:The model was trained for 30 epochs on a high-performance GPU, achieving a training duration of approximately 5–7 hours per epoch.Batch normalization and dropout layers were incorporated to stabilize training and reduce overfitting.A learning rate scheduler dynamically adjusted the learning rate based on training progress.Testing and evaluationThe model was rigorously evaluated using a separate test dataset, ensuring that it generalizes effectively to unseen data. The evaluation process involved the calculation of the following performance metrics:Word Error Rate (WER)The primary metric for assessing recognition accuracy, WER quantifies the proportion of errors in the recognized output relative to the reference text. A lower WER indicates higher model accuracy.Character Error Rate (CER)CER complements WER by measuring the average error rate at the character level. This metric provides finer-grained insights into the model’s performance, particularly for morphologically rich languages like Kazakh.Punctuation Error RateSince punctuation is crucial for text readability, the model’s ability to accurately reproduce punctuation marks was assessed. This metric evaluates errors in the placement and type of punctuation symbols.Robustness to VariabilityThe model’s performance was tested across diverse conditions, including variations in accent, speaking rate, and background noise. These evaluations ensured the systems applicability in real-world scenarios.Computational EfficiencyThe models inference speed and resource consumption were evaluated to determine its practicality for deployment on various platforms, including mobile devices and cloud-based systems.Technical infrastructureThe model training and evaluation processes leveraged advanced computational resources:High-Performance GPU: A GPU with sufficient memory and processing power significantly reduced training time, enabling efficient experimentation and hyperparameter tuning.Cloud Services: Google Colab and other cloud computing platforms were employed to handle the large dataset and facilitate distributed training.3. Experimental resultsAccuracy and lossThe model demonstrated consistent improvement in accuracy over the course of training as the number of epochs increased. The best results were observed after 30 epochs when using the full dataset. This indicates that the model effectively learned patterns and features from the training data, achieving its optimal performance at this point.Table 2. Training Performance Across EpochsRecognition qualityThe average recognition accuracy across the dataset was 90.11%, indicating high reliability of the model.Errors were minimal and primarily associated with punctuation and rare or domain-specific words, suggesting the model performs well in general scenarios but may require additional fine-tuning for edge cases.4. DiscussionThe results obtained in this study underscore the significant potential of neural networks in developing high-quality speech recognition systems for the Kazakh language. The model demonstrated impressive recognition accuracy, achieving an average of 90%, which highlights its effectiveness for practical use. However, several limitations were identified during the study that warrant further exploration and improvement:Limited Dataset for Dialects and Rare Words: The dataset used lacked sufficient representation of regional dialects, colloquialisms, and rare words, leading to occasional errors in these areas. High Computational Requirements: Training the model required substantial computing resources, which may pose challenges for widespread deployment, especially in resource-constrained environments.Future ImprovementsTo address these limitations and further enhance the model’s performance, several strategies can be considered:Expansion of the Data Corpus: Developing a larger and more diverse dataset that includes regional dialects, uncommon words, and varied speech patterns will improve the model’s generalization and robustness.Contextual Understanding with WordNet: Integrating linguistic resources like WordNet can enable the model to better understand context, synonyms, and semantics, leading to improved accuracy in complex scenarios.Adopting Multilingual Models: Leveraging multilingual models or transfer learning from speech data of other languages can enrich the model with additional knowledge and help overcome the limitations posed by a smaller corpus of Kazakh speech data.5. ConclusionIn this study, a Kazakh speech recognition system was successfully developed using state-of-the-art neural network architectures. The model achieved high recognition accuracy and demonstrated its potential for practical applications such as voice assistants, automated translation systems, and educational tools tailored for Kazakh-speaking users.The results highlight the feasibility of applying modern deep learning techniques to the Kazakh language, a resource-scarce language in terms of computational resources and annotated datasets. However, challenges remain, such as the need for a more diverse dataset and optimization of computational requirements.Looking forward, further work will focus on optimizing the model for faster and more efficient deployment in real-world scenarios, as well as integrating it into practical projects. Efforts will also be directed toward enhancing its contextual understanding, incorporating additional linguistic resources, and extending the dataset to improve its coverage of dialects and specialized vocabularies.This research lays a foundation for advancing speech recognition technology in Kazakh and can serve as a stepping stone for broader applications in AI-driven tools for the Kazakh-speaking community.
Полная версия статьи PDF
Номер журнала «Вестник науки» № 12 (81) том 1
Ссылка для цитирования:
NEURAL NETWORK-DRIVEN ASR FOR KAZAKH LANGUAGE USING DEEPSPEECH // Журнал «Вестник науки» от 1 декабря 2024 г. № 12 (81) том 1. С. 1136 - 1147. 2024 г. ISSN 2712-8849 // Электронный ресурс: https://www.вестник-науки.рф/article/19296 (дата обращения: 29.11.2026 г.)
Альтернативная ссылка латинскими символами: vestnik-nauki.com/article/19296
Нашли грубую ошибку (плагиат, фальсифицированные данные или иные нарушения научно-издательской этики) ?
- напишите письмо в редакцию журнала: zhurnal@vestnik-nauki.com
