Tone languages like Sesotho use pitch to mark meaning, creating unique computational challenges. This study compares four feature extraction methods for automated Sesotho tone classification: FFT-based spectral analysis, Librosa acoustic features, MFCC, and Wav2Vec2 embeddings. Each was tested using the same dataset: 4,056 syllable segments from 15 speakers in 540 audio files, with 1,278 labeled samples for supervised training. Five classifiers-Logistic Regression, Random Forest, SVM, XGBoost, and Neural Networks-were trained and optimized for each method. Results show FFT-based features had the highest performance (F1-score: 0.8945, ROC-AUC: 0.9422). MFCC was next (F1-score: 0.8478, ROC-AUC: 0.9005), then Wav2Vec2 (F1-score: 0.8339, ROC-AUC: 0.8910), and Librosa (F1-score: 0.7542, ROC-AUC: 0.8611). Traditional methods for capturing harmonic structure outperform both basic acoustic features and deep learning embeddings in Sesotho binary tone classification. These results help guide the development of a tone recognition system for under-resourced African languages.
These findings show that feature extraction methods significantly affect tone prediction accuracy and are key to selecting suitable approaches in resource-constrained settings for Southern Bantu languages. The top performance is due to the spectral detail required to distinguish the high tone command from its absence in low tones, a distinctive feature of Sesotho prosody. The Wav2Vec2 method, using transfer learning, also performed well (F1-Score: 0.8339) with just a simple Logistic Regression model. This suggests that learned features create a more abstract, separable feature space for classification. This work helps address the low-resource challenge in Southern Bantu NLP by clearly identifying the most effective approach for tone classification.
- Sesotho tone prediction using machine learning models: a comparative study
- Tshepo Mashishi
- Makhamisa Senekane
- University of Johannesburg; Master of Artificial Intelligence
- Master of Artificial Intelligence, University of Johannesburg
- 9966207207691
- University of Johannesburg
- University of Johannesburg; Faculty of Engineering & the Built Environment
- English
- Thesis