Downloads · 30 days
34
5% of all-time downloads
The-Data-Dilemma/MediBeng-Whisper-Tiny
MediBeng-Whisper-Tiny is a automatic speech recognition model from The-Data-Dilemma. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
<div style="display: flex; flex-direction: column; gap: 8px; align-items: flex-end; justify-content: center; padding-top: 20px; padding-bottom: 20px; text-align: right;" <div style="display: flex; flex-wrap: wrap; gap…
Downloads · 30 days
34
5% of all-time downloads
All-time downloads
718
Public
Parameters
37.8M
4.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt3 GB · 64%
From the Hugging Face model README
Medibeng Whisper Tiny is a fine-tuned version of the Whisper model for automatic speech recognition (ASR), specifically designed to transcribe and translate code-switched Bengali-English conversations into English. This model is designed for clinical settings and can handle audio that contains a mix of Bengali and English, making it suitable for transcription and translation tasks in multilingual environments, such as medical and healthcare settings.
Repository: https://github.com/The-Data-Dilemma/MediBeng-Whisper-Tiny
To use the Medibeng Whisper Tiny model for translating code-switched Bengali-English conversations into English, follow this example:
Please install the package first:
pip install pandas transformers librosa
Run this code:
import os
import pandas as pd
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import librosa
# Set the model path and language/task
model_path = "pr0mila-gh0sh/MediBeng-Whisper-Tiny"
LANGUAGE = "en" # Target language for translation
TASK = "translate" # Translation task
# Load model and processor from the specified path
processor = WhisperProcessor.from_pretrained(model_path)
model = WhisperForConditionalGeneration.from_pretrained(model_path)
# Get forced decoder IDs for translation task to English
forced_decoder_ids = processor.get_decoder_prompt_ids(language=LANGUAGE, task=TASK)
# Path to your single audio file
audio_file_path = "path_to_audio.wav"
# Load and preprocess the audio file using librosa
audio_input, _ = librosa.load(audio_file_path, sr=16000)
# Process the audio sample into input features for the Whisper model
input_features = processor(audio_input, sampling_rate=16000, return_tensors="pt").input_features
# Generate token ids for the transcription/translation
predicted_ids = model.generate(input_features, forced_decoder_ids=forced_decoder_ids)
# Decode token ids to text (translation)
translation = processor.batch_decode(predicted_ids, skip_special_tokens=True)
# Output the transcription/translation result
print("Translation:", translation[0])
This model is intended for use by researchers and developers working with code-mixed Bengali-English audio in the clinical domain. It is suitable for:
The model works best in environments where both Bengali and English are used interchangeably, particularly in healthcare or clinical scenarios.
The model was fine-tuned on the MediBeng dataset, which consists of code-switched Bengali-English conversations in clinical settings.
The model's performance improved as the training progressed, showing consistent reduction in training loss and Word Error Rate (WER) on the evaluation set.
| Epoch | Training Loss | Training Grad Norm | Learning Rate | Eval Loss | Eval WER |
|---|---|---|---|---|---|
| 0.03 | 2.6213 | 61.56 | 4.80E-06 | - | - |
| 0.07 | 1.609 | 44.09 | 9.80E-06 | 1.13 | 107.72 |
| 0.1 | 0.7685 | 52.27 | 9.47E-06 | - | - |
| 0.13 | 0.4145 | 32.27 | 8.91E-06 | 0.37 | 47.53 |
| 0.16 | 0.3177 | 17.98 | 8.36E-06 | - | - |
| 0.2 | 0.222 | 7.7 | 7.80E-06 | 0.1 | 45.19 |
| 0.23 | 0.0915 | 1.62 | 7.24E-06 | - | - |
| 0.26 | 0.081 | 0.4 | 6.69E-06 | 0.04 | 38.35 |
| 0.33 | 0.0246 | 1.01 | 5.58E-06 | - | - |
| 0.36 | 0.0212 | 2.2 | 5.02E-06 | 0.01 | 41.88 |
| 0.42 | 0.0052 | 0.13 | 3.91E-06 | - | - |
| 0.46 | 0.0023 | 0.45 | 3.36E-06 | 0.01 | 34.07 |
| 0.52 | 0.0013 | 0.05 | 1.69E-06 | - | - |
| 0.55 | 0.0032 | 0.11 | 1.13E-06 | 0.01 | 29.52 |
| 0.62 | 0.001 | 0.09 | 5.78E-07 | - | - |
| 0.65 | 0.0012 | 0.08 | 2.22E-08 | 0 | 30.49 |
I’ve written a detailed blog post on Medium about MediBeng Whisper-Tiny and how it translates code-switched Bengali-English speech in healthcare. In this post, I discuss the dataset creation, model fine-tuning, and how this can improve healthcare transcription. Read the full article here: MediBeng Whisper-Tiny: Translating Code-Switched Bengali-English Speech for Healthcare
If you use Medibeng Whisper-Tiny or the MediBeng dataset for your research or project, please cite the following:
The preprint is available on medRxiv.
@article{ghosh2025medibeng,
title={MediBeng Whisper Tiny: A fine-tuned code-switched Bengali-English translator for clinical applications},
author={Ghosh, Promila and Talukder, Sunipun},
journal={medRxiv},
year={2025},
doi={https://doi.org/10.1101/2025.04.25.25326406},
url={https://www.medrxiv.org/content/10.1101/2025.04.25.25326406v2}
}