File size: 6,240 Bytes
968b170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60b4ed3
968b170
 
 
 
60b4ed3
968b170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
---
language: en
library_name: accentscore
pipeline_tag: audio-classification
base_model: microsoft/wavlm-base-plus
license: other
license_name: research-only-mixed-third-party-terms
tags:
  - audio
  - accent-classification
  - pronunciation-assessment
  - wavlm
  - research
---

# AccentScore model card

## Summary

AccentScore 0.2.1 is a local, transcript-free English-pronunciation research model. It
combines a frozen `microsoft/wavlm-base-plus` encoder with three task-specific heads:

- a five-target pronunciation-quality regressor;
- a four-class American/British/Indian/Russian accent classifier;
- an American-vs-non-American classifier mapped to a 0–100 score.

The model accepts one 0.2–30 second audio recording and produces a structured
`PredictionResult`. It does not call an external inference service.

## Usage

Install AccentScore from its source repository, then load the pinned model bundle:

```python
from accentscore import AccentScorer

scorer = AccentScorer.from_pretrained()
result = scorer.predict("recording.wav")
print(result.detected_accent, result.scores)
```

The model heads are downloaded once and cached locally. Inference remains local. The
frozen WavLM encoder is also downloaded at the exact revision recorded in the bundle.

## Intended use

Appropriate uses include local experimentation, pronunciation-practice interfaces,
model evaluation, and research on representation transfer.

The model is not intended for employment, education access, immigration, identity
inference, grading, diagnosis, or any decision that affects a person's rights or
opportunities.

Accent labels refer only to resemblance among the supported acoustic classes. They are
not claims about a speaker's nationality, ethnicity, birthplace, native language, or
identity.

## Architecture

| Component | Configuration |
| --- | --- |
| Encoder | WavLM Base+, frozen, pinned revision |
| Input | Mono 16 kHz waveform |
| Pooling | Masked mean and population standard deviation from 13 layers |
| Quality head | Target-specific softmax layer mixtures and bounded MLP regressors |
| Accent head | Layer 7, L2 logistic regression, temperature scaling |
| American head | Layer 6, binary logistic regression, temperature scaling |
| Quality uncertainty | Split-conformal absolute residual intervals |

The four-class and binary heads are intentionally independent. American similarity is
not computed from pronunciation accuracy or from the four-class probability.

## Training data

| Component | Corpus | Split policy |
| --- | --- | --- |
| Quality | SpeechOcean762 / OpenSLR SLR101 | Official test preserved; train/validation/calibration are speaker-disjoint |
| Accent | AESRC2020 + Speech Accent Archive | Class-stratified, speaker-disjoint train/validation/test partitions |
| American similarity | AESRC2020 | American versus British/Indian/Russian, speaker-disjoint |

SpeechOcean762 is distributed under CC BY 4.0. Operators must independently verify
AESRC2020 and Speech Accent Archive terms, consent, attribution, derivative-work, and
redistribution requirements before using or distributing the accent checkpoints.
The model weights are therefore marked `license: other` and are published for research
and evaluation only; the source repository's MIT license applies to code, not to these
weights or third-party datasets.

## Evaluation

### Pronunciation quality

SpeechOcean762 official test: 2,500 utterances from 125 speakers.

| Metric | Macro result |
| --- | ---: |
| Pearson | 0.7487 |
| Spearman | 0.7486 |
| MAE | 6.109 points |
| RMSE | 9.225 points |
| R² | 0.4182 |
| 90% interval coverage | 0.8922 |

Completeness is almost constant in this corpus. Its correlations are undefined and its
near-perfect interval coverage should not be interpreted as strong modeling.

### Accent tasks

| Held-out source | Accuracy | Macro-F1 |
| --- | ---: | ---: |
| AESRC2020 | 0.9055 | 0.9047 |
| Speech Accent Archive | 0.9390 | 0.8950 |

The American-vs-non-American head reaches ROC-AUC 0.9607 on the speaker-disjoint AESRC
test split.

The Hub bundle ships machine-readable results as `model_evaluation.json`; the source
repository tracks the same receipt at `artifacts/metrics/model_evaluation.json`.

## Output interpretation

`american_similarity` equals 100 times a calibrated binary probability. It is useful
for ranking recordings under the model's training distribution, but it is not a direct
percentage similarity and has not been calibrated against human accent-strength
ratings.

The `unknown` label is emitted when no supported class reaches probability 0.4. This
does not guarantee reliable out-of-distribution detection.

Pronunciation-quality intervals are marginal conformal intervals under exchangeability
assumptions. They are not guarantees for an individual speaker or a shifted domain.

## Known limitations

- Four labels cannot represent the diversity or continuity of English pronunciation.
- The training corpora may encode speaker, microphone, location, sentence, and source
  shortcuts.
- Source-disjoint evaluation is limited to two accent corpora.
- Short, noisy, code-switched, spontaneous, or unsupported speech can be unreliable.
- Quality targets reflect one corpus's annotation conventions.
- The model does not evaluate intelligibility, communication success, or personal
  ability.

## Operational guidance

- Keep the responsible-use warning with user-facing results.
- Show probabilities and `unknown`, not only the top label.
- Allow users to ignore or contest a result.
- Validate on the target population and recording conditions before deployment.
- Monitor performance separately by source and relevant acoustic conditions.
- Do not infer protected or sensitive traits from accent outputs.

## Reproducibility

The source repository pins dependencies in `uv.lock`, the model bundle is tagged
`v0.2.1`, the encoder uses a full commit revision, and deterministic seeds and split
rules live in the training code. Runtime consumers pin the full Hugging Face model
commit rather than the mutable `main` branch.

Run static checks and the non-network test suite with:

```bash
make check
```

The exported model contract is covered by an opt-in real-encoder smoke test.