This model is a fine-tuned version of Google's MedASR optimized for Ghanaian-accented English speech recognition, particularly suited for clinical and medical transcription in Ghana.
MedASR-Ghana is designed to transcribe English speech from speakers with Ghanaian accents, including Twi, Akan, and Fante language backgrounds. It builds on Google's MedASR foundation (a 105M parameter Conformer-based CTC model) and adapts it specifically for West African English pronunciation patterns.
| Metric | Score |
|---|---|
| Test WER | 37.53% |
| Validation WER | 44.56% |
The model was trained for 120 epochs, with WER improving steadily:
| Epochs | Test WER |
|---|---|
| 10 | 55.26% |
| 40 | 40.21% |
| 80 | 38.00% |
| 120 | 37.53% |
Fine-tuned on the AfriSpeech-200 dataset, using all Ghanaian accent configurations:
| Accent | Train | Validation | Test |
|---|---|---|---|
| Twi | 1,315 | 186 | 58 |
| Akan | 131 | - | 26 |
| Akan-Fante | 230 | 33 | 32 |
| Total | 1,676 | 219 | 116 |
Total audio: ~5.16 hours of Ghanaian-accented English speech
from transformers import AutoProcessor, AutoModelForCTC
import torch
import librosa
# Load model and processor
model_id = "samwell/medasr-ghana"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForCTC.from_pretrained(model_id)
# Load and preprocess audio
audio, sr = librosa.load("your_audio.wav", sr=16000)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
# Transcribe
with torch.no_grad():
logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)[0]
print(transcription)
from transformers import pipeline
transcriber = pipeline(
"automatic-speech-recognition",
model="samwell/medasr-ghana"
)
result = transcriber("your_audio.wav")
print(result["text"])
TrainingArguments(
learning_rate=3e-5,
per_device_train_batch_size=8,
gradient_accumulation_steps=4,
num_train_epochs=120,
warmup_steps=300,
bf16=True,
group_by_length=True,
eval_strategy="epoch",
save_strategy="epoch",
load_best_model_at_end=True,
metric_for_best_model="wer",
)
If you use this model, please cite:
@misc{medasr-ghana,
title={MedASR-Ghana: Medical ASR for Ghanaian-Accented English},
author={samwell},
year={2026},
publisher={Hugging Face},
url={https://huggingface.co/samwell/medasr-ghana}
}
@article{afrispeech2023,
title={AfriSpeech-200: Pan-African Accented Speech Dataset for Clinical and General Domain ASR},
author={Olatunji, Tobi and others},
journal={arXiv preprint arXiv:2310.00274},
year={2023}
}
@article{medasr2024,
title={MedASR: Medical Automatic Speech Recognition},
author={Google Health AI},
year={2024}
}
For questions or feedback, please open an issue on the model repository.
model.safetensors 421 MBtraining_args.bin 5.2 kB有文件?提交种子。
提交种子google/medasr