Downloads · 30 days
12
2% of all-time downloads
fbadine/uk_ireland_accent_classification
uk_ireland_accent_classification is a machine learning model from fbadine. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tf-keras. The card lists the license as apache-2.0.
This model classifies UK & Ireland accents using feature extraction from Yamnet.
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
620
Public
Repo size
6.5 MB
Likes
1
Public
Click a slice to open those files.
.data-00000-of-000016.2 MB · 93%
From the Hugging Face model README
This model classifies UK & Ireland accents using feature extraction from Yamnet.
Yamnet is an audio event classifier trained on the AudioSet dataset to predict audio events from the AudioSet ontology. It is available on TensorFlow Hub.
Yamnet accepts a 1-D tensor of audio samples with a sample rate of 16 kHz.
As output, the model returns a 3-tuple:
(N, 521) representing the scores of the 521 classes.(N, 1024).We will use the embeddings, which are the features extracted from the audio samples, as the input to our dense model.
For more detailed information about Yamnet, please refer to its TensorFlow Hub page.
The dense model that we used consists of:

The model achieved the following results:
| Results | Training | Validation |
|---|---|---|
| Accuracy | 55% | 51% |
| AUC | 0.9090 | 0.8911 |
| d-prime | 1.887 | 1.743 |
And the confusion matrix for the validation set is:

The dataset used is the Crowdsourced high-quality UK and Ireland English Dialect speech data set which consists of a total of 17,877 high-quality audio wav files.
This dataset includes over 31 hours of recording from 120 vounteers who self-identify as native speakers of Southern England, Midlands, Northern England, Wales, Scotland and Ireland.
For more info, please refer to the above link or to the following paper: Open-source Multi-speaker Corpora of the English Accents in the British Isles
Having already installed huggingface_hub using:
pip install -U -q huggingface_hub
Use the following in your code:
from huggingface_hub import from_pretrained_keras
model = from_pretrained_keras("fbadine/uk_ireland_accent_classification")
A demo is available in HuggingFace Spaces