Spoken language identification for 12 Nigerian languages (DSN 2026)
Submission of team "godzilla" to the DSN 2026 Find the Language I Am Speaking competition.
A standard HubertForSequenceClassification model (loads with AutoModelForAudioClassification, no custom code).
It predicts one of 13 labels: yor ibo hau ego anw efi ibb idu igl nup tiv urh other.
Approach
AfriHuBERT (all 12 transformer layers) with a weighted layer sum and mean pooling, fine-tuned on random 3-6 s crops with speaker- and source-balanced sampling (external sources capped at half of a class) and audio augmentation (synthetic noise, reverberation, telephone band-limiting and companding, speed and equalisation changes). Inference uses the full clip.
Base model
- ajesujoba/AfriHuBERT, a continued pretraining of utter-project/mHuBERT-147 (CC BY-NC-SA 4.0). This model inherits that licence.
Training data
- Competition training and validation data, Data-Science-Nigeria/dsn-2026-lid-train, which combines afrispeech_ipa (CC-BY-4.0), hypa_voices (Apache-2.0) and omnilingual_asr (CC-BY-4.0); see its ATTRIBUTION.md. No other use of those corpora.
External datasets (openly licensed; per-dataset licence shown):
- offiongbassey/efik_speech_dataset, default/train, revision f7e84a96ee, CC-BY-4.0, used as
efi - google/fleurs, ar_eg/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, en_us/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, es_419/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, ff_sn/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, fr_fr/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, ha_ng/train, revision 70bb2e84b9, CC-BY-4.0, used as
hau - google/fleurs, ig_ng/train, revision 70bb2e84b9, CC-BY-4.0, used as
ibo - google/fleurs, lg_ug/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, ln_cd/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, pt_br/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, sw_ke/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, wo_sn/train, revision 70bb2e84b9, CC-BY-4.0, used as
other - google/fleurs, yo_ng/train, revision 70bb2e84b9, CC-BY-4.0, used as
yor - McGill-NLP/NaijaS2ST, default/dev+train language=english, revision 4fef5310ef, CC-BY-4.0, used as
other - McGill-NLP/NaijaS2ST, default/train language=pidgin, revision 4fef5310ef, CC-BY-4.0, used as
other - asr-nigerian-pidgin/nigerian-pidgin-1.0, default/train, revision 87c6150918, CC-BY-4.0, used as
other - google/WaxalNLP, aka_asr/train, revision 5f4d8ca24f, CC-BY-4.0 (University of Ghana), used as
other - google/WaxalNLP, bau_tts/train, revision 5f4d8ca24f, CC-BY-4.0 (University of Ghana), used as
other - google/WaxalNLP, dag_asr/train, revision 5f4d8ca24f, CC-BY-4.0 (University of Ghana), used as
other - google/WaxalNLP, ewe_asr/train, revision 5f4d8ca24f, CC-BY-4.0 (University of Ghana), used as
other - google/WaxalNLP, ful_asr/train, revision 5f4d8ca24f, CC-BY-SA-4.0 (Digital Umuganda), used as
other - google/WaxalNLP, pcm_tts/train, revision 5f4d8ca24f, CC-BY-SA-4.0 (Media Trust), used as
other
Usage
from transformers import AutoFeatureExtractor, AutoModelForAudioClassification
fe = AutoFeatureExtractor.from_pretrained('godzilla1215/dsn2026-lid-d3')
model = AutoModelForAudioClassification.from_pretrained('godzilla1215/dsn2026-lid-d3')
inputs = fe(waveform_16khz_mono, sampling_rate=16000, return_tensors="pt")
label = model.config.id2label[model(**inputs).logits.argmax(-1).item()]