Arittra commited on
Commit
0262e5c
·
verified ·
1 Parent(s): 997f423

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +266 -0
README.md CHANGED
@@ -1,3 +1,269 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pretty_name: "BanglaMedBench-500: A Bangla Medical Question Answering Benchmark"
4
+ language:
5
+ - bn
6
+ - en
7
+ task_categories:
8
+ - multiple-choice
9
+ - question-answering
10
+ tags:
11
+ - medical
12
+ - bangla
13
+ - bengali
14
+ - benchmark
15
+ - evaluation
16
+ - llm-evaluation
17
+ - low-resource-language
18
+ - medical-qa
19
+ - multiple-choice
20
+ - MedQA
21
+ - MedMCQA
22
+ - PubMedQA
23
+ - MMLU
24
+ - bangladesh
25
+ size_categories:
26
+ - n<1K
27
+ source_datasets:
28
+ - openlifescienceai/medmcqa
29
+ - cais/mmlu
30
+ configs:
31
+ - config_name: default
32
+ data_files:
33
+ - split: test
34
+ path: benchmark.jsonl
35
  ---
36
+
37
+ <div align="center">
38
+
39
+ # 🩺 BanglaMedBench-500
40
+
41
+ ### A Bangla (বাংলা) Medical Question Answering Benchmark for Evaluating Large Language Models
42
+
43
+ **500 expert-style medical MCQs · 39 specialties · Basic + Clinical · Bangla ↔ English parallel**
44
+
45
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
46
+ [![Language](https://img.shields.io/badge/Language-Bangla%20%7C%20English-green)](#)
47
+ [![Task](https://img.shields.io/badge/Task-Medical%20MCQ-red)](#)
48
+ [![Questions](https://img.shields.io/badge/Questions-500-orange)](#)
49
+
50
+ </div>
51
+
52
+ **BanglaMedBench-500** is a balanced benchmark for testing how well large language models (LLMs) understand and answer **medical questions in Bangla (Bengali)**, the 7th most spoken language in the world, with over 270 million speakers. It is built from widely used English medical benchmarks (MedQA, MedMCQA, PubMedQA, MMLU), translated into Bangla with Gemma 4, and organised by medical specialty so you can see *where* a model is strong or weak.
53
+
54
+ > 🇧🇩 **সংক্ষেপে:** এটি বাংলা ভাষায় চিকিৎসা-বিষয়ক ৫০০টি বহুনির্বাচনী প্রশ্নের একটি বেঞ্চমার্ক। এর মাধ্যমে যেকোনো ভাষা-মডেল (LLM) বাংলা মেডিকেল প্রশ্নের উত্তর কতটা ভালো দিতে পারে, তা যাচাই করা যায়। প্রশ্নগুলো ৩৯টি চিকিৎসা-শাখায় ভাগ করা এবং প্রতিটির ইংরেজি ও বাংলা দুটি সংস্করণই আছে।
55
+
56
+ ---
57
+
58
+ ## ✨ Why BanglaMedBench-500?
59
+
60
+ - **Low-resource gap.** Bangla has very few medical evaluation sets. Most medical LLM benchmarks are English or Chinese only.
61
+ - **Balanced by design.** 13 questions per specialty (except one), so no single field dominates the score.
62
+ - **Basic vs Clinical split.** Separate scores for basic medical science (anatomy, physiology, pharmacology...) and clinical practice (cardiology, paediatrics, emergency medicine...).
63
+ - **Parallel English + Bangla.** Evaluate the same question in both languages and measure the **cross-lingual gap**.
64
+ - **Quality signal.** Every row carries a translation `confidence` score, so you can run a high-confidence-only evaluation.
65
+ - **Small and fast.** 500 questions run in minutes, so it is cheap to evaluate many models.
66
+
67
+ > 🇧🇩 **কেন এই বেঞ্চমার্ক?** বাংলায় চিকিৎসা-বিষয়ক মডেল-মূল্যায়নের ডেটাসেট খুবই কম। এখানে প্রতিটি শাখা থেকে সমান সংখ্যক প্রশ্ন রাখা হয়েছে, মৌলিক (Basic) ও ক্লিনিক্যাল (Clinical) আলাদা করা হয়েছে, এবং ইংরেজি-বাংলা তুলনা করার সুযোগ আছে।
68
+
69
+ ---
70
+
71
+ ## 📊 At a glance
72
+
73
+ | | |
74
+ |---|---|
75
+ | **Total questions** | 500 |
76
+ | **Format** | Multiple choice (480 with 4 options, 20 with 3 options: yes/no/maybe) |
77
+ | **Languages** | Bangla (`*_bn` fields) + original English |
78
+ | **Groups** | Basic: 253 · Clinical: 247 |
79
+ | **Specialties** | 39 (13 questions each; Basic Psychiatry has 6) |
80
+ | **Translation** | Gemma 4 (machine translation), with per-row confidence (mean ≈ 0.92, min ≈ 0.86) |
81
+ | **License** | Apache-2.0 |
82
+
83
+ ### Where the questions come from
84
+
85
+ | Source | Questions | Original license |
86
+ |---|---|---|
87
+ | MedQA (USMLE-style) | 286 | MIT |
88
+ | MedMCQA (AIIMS / NEET-PG) | 125 | Apache-2.0 |
89
+ | PubMedQA | 20 | MIT |
90
+ | MMLU medical subsets | 69 | MIT |
91
+
92
+ MMLU subsets used: college_medicine (17), clinical_knowledge (11), virology (10), professional_medicine (10), anatomy (10), college_biology (6), medical_genetics (5).
93
+
94
+ <details>
95
+ <summary><b>Questions per specialty (click to expand)</b></summary>
96
+
97
+ 13 questions each for: Allergy & Immunology, Anaesthesiology, Anatomy, Basic ENT, Basic Neuroscience, Basic Obstetrics & Gynaecology, Basic Ophthalmology, Basic Orthopaedics, Basic Paediatrics, Basic Surgery, Biochemistry, Cardiology & Vascular Medicine, Dermatology, ENT & Oral Health, Endocrinology & Metabolism, Epidemiology & Public Health, Forensic Medicine, Gastroenterology & Hepatology, Genetics & Molecular Biology, Geriatrics & Palliative Care, Infectious Diseases & Tropical Medicine, Microbiology & Immunology, Nephrology & Urology, Neurology, Obstetrics & Gynaecology, Oncology & Haematology, Ophthalmology, Other Basic Sciences, Other Clinical, Paediatrics & Neonatology, Pathology, Pharmacology, Physiology, Psychiatry & Mental Health, Radiology & Imaging, Respiratory Medicine, Rheumatology & Musculoskeletal, Trauma & Emergency Medicine.
98
+
99
+ 6 questions: Basic Psychiatry.
100
+
101
+ </details>
102
+
103
+ ---
104
+
105
+ ## 🚀 Quick start
106
+
107
+ ```bash
108
+ pip install datasets
109
+ ```
110
+
111
+ ```python
112
+ from datasets import load_dataset
113
+
114
+ ds = load_dataset("Arittra/BanglaMedBench-500", split="test")
115
+ print(ds[0]["question_bn"])
116
+ print(ds[0]["options_bn"])
117
+ print(ds[0]["answer_bn"])
118
+ ```
119
+
120
+ ### Evaluate any model
121
+
122
+ ```python
123
+ import re
124
+ from datasets import load_dataset
125
+
126
+ ds = load_dataset("Arittra/BanglaMedBench", split="test")
127
+ LETTERS = "ABCD"
128
+
129
+ def build_prompt(row, lang="bn"):
130
+ q = row["question_bn"] if lang == "bn" else row["question"]
131
+ opts = row["options_bn"] if lang == "bn" else row["options"]
132
+ body = q + "\n" + "\n".join(f"{LETTERS[i]}. {o}" for i, o in enumerate(opts))
133
+ return body + ("\n\nউত্তর (শুধু অক্ষর):" if lang == "bn" else "\n\nAnswer (letter only):")
134
+
135
+ def correct_letter(row):
136
+ if row["answer"] not in row["options"]:
137
+ return None # skips the 20 broken PubMedQA rows until you fix them
138
+ return LETTERS[row["options"].index(row["answer"])]
139
+
140
+ def extract_letter(text):
141
+ m = re.search(r"\b([A-D])\b", text.upper()) # finds "B" even in "The answer is B."
142
+ return m.group(1) if m else None
143
+
144
+ def evaluate(generate_fn, lang="bn", limit=None):
145
+ hits = total = 0
146
+ for i, row in enumerate(ds):
147
+ if limit and i >= limit: break
148
+ gold = correct_letter(row)
149
+ if gold is None: continue
150
+ pred = extract_letter(generate_fn(build_prompt(row, lang)))
151
+ hits += pred == gold
152
+ total += 1
153
+ return hits / total
154
+
155
+ # ---------- OPTION 1: a model on your own computer (Hugging Face transformers) ----------
156
+ from transformers import pipeline
157
+ pipe = pipeline("text-generation", model="YOUR_MODEL_ID_HERE", device_map="auto")
158
+ # e.g. a Gemma model you already downloaded; must be a chat/instruct model
159
+
160
+ def my_model_generate(prompt):
161
+ out = pipe([{"role": "user", "content": prompt}], max_new_tokens=10, do_sample=False)
162
+ return out[0]["generated_text"][-1]["content"]
163
+
164
+ # ---------- OPTION 2: Ollama (if you run models with Ollama) ----------
165
+ # import requests
166
+ # def my_model_generate(prompt):
167
+ # r = requests.post("http://localhost:11434/api/chat", json={
168
+ # "model": "YOUR_OLLAMA_MODEL_NAME",
169
+ # "messages": [{"role": "user", "content": prompt}],
170
+ # "stream": False})
171
+ # return r.json()["message"]["content"]
172
+
173
+ # ---------- OPTION 3: a paid API (example: Anthropic) ----------
174
+ # import anthropic
175
+ # client = anthropic.Anthropic(api_key="YOUR_API_KEY")
176
+ # def my_model_generate(prompt):
177
+ # msg = client.messages.create(model="claude-sonnet-5-5", max_tokens=10,
178
+ # messages=[{"role": "user", "content": prompt}])
179
+ # return msg.content[0].text
180
+
181
+ print("Test run, 20 questions:", evaluate(my_model_generate, "bn", limit=20))
182
+ # print("Bangla:", evaluate(my_model_generate, "bn"))
183
+ # print("English:", evaluate(my_model_generate, "en"))
184
+
185
+ ---
186
+
187
+ ## 🗂️ Data fields
188
+
189
+ | Field | Description |
190
+ |---|---|
191
+ | `id` | Unique ID, e.g. `BN-BENCH-0001` |
192
+ | `question` / `question_bn` | Question in English / Bangla |
193
+ | `options` / `options_bn` | Answer choices in English / Bangla (same order) |
194
+ | `answer` / `answer_bn` | Correct answer text in English / Bangla |
195
+ | `source` | Original benchmark (MedQA, MedMCQA, PubMedQA, MMLU-subset) |
196
+ | `category` | One of 39 medical specialties |
197
+ | `group` | `Basic` or `Clinical` |
198
+ | `confidence` | Translation confidence score (0 to 1) |
199
+
200
+ > 🇧🇩 **ফিল্ড-পরিচিতি:** `question_bn`, `options_bn`, `answer_bn` হলো বাংলা সংস্করণ; `category` হলো চিকিৎসা-শাখা; `group` মানে মৌলিক (Basic) নাকি ক্লিনিক্যাল (Clinical); `confidence` হলো অনুবাদের মান-স্কোর।
201
+
202
+ ---
203
+
204
+ ## 🏆 Leaderboard
205
+
206
+ Results will be added as models are evaluated. **Want your model listed?** Open a discussion on this repo with your scores and evaluation setup.
207
+
208
+ | Model | Bangla acc. | English acc. | Gap | Notes |
209
+ |---|---|---|---|---|
210
+ | _(your model here)_ | – | – | – | – |
211
+
212
+ ---
213
+
214
+ ## 🛠️ How it was built
215
+
216
+ 1. **Selection.** 500 questions were sampled from MedQA, MedMCQA, PubMedQA and MMLU medical subsets.
217
+ 2. **Classification.** Each question was assigned to one of 39 specialties and to a Basic or Clinical group, with balancing across specialties.
218
+ 3. **Translation.** Question, options and answer were machine-translated into Bangla with **Gemma 4**. A confidence score is stored per row. Common English medical terms are kept in brackets next to the Bangla term to reduce ambiguity.
219
+ 4. **Quality checks.** Rows were checked for missing translations, option/answer consistency and duplicates.
220
+
221
+ > 🇧🇩 **কীভাবে তৈরি:** ইংরেজি বেঞ্চমার্ক থেকে ৫০০টি প্রশ্ন বেছে নিয়ে শাখা অনুযায়ী ভাগ করা হয়েছে, তারপর Gemma 4 দিয়ে বাংলায় অনুবাদ করা হয়েছে। পরিভাষা বোঝার সুবিধার জন্য অনেক জায়গায় ইংরেজি শব্দ বন্ধনীতে রাখা হয়েছে।
222
+
223
+ ---
224
+
225
+ ## ⚠️ Limitations and responsible use
226
+
227
+ - **Evaluation only.** Please do **not** train on this benchmark. Doing so would make results meaningless.
228
+ - **Possible contamination.** The questions come from public benchmarks that may already appear in some models' training data. The companion training dataset ([Arittra/bangla_medical_qa_cot_and_non_cot](https://huggingface.co/datasets/Arittra/bangla_medical_qa_cot_and_non_cot)) is built from sources that share upstream material with this benchmark; a few near-duplicates were checked and removed. Treat very high scores with care.
229
+ - **Machine translation.** Translations were not fully reviewed by medical professionals. Terminology, numbers or units may contain errors. Use the `confidence` field to filter.
230
+ - **Origin bias.** Questions come largely from US and Indian exams; they do not fully reflect Bangladeshi disease patterns, drug brands or national guidelines.
231
+ - **Small size.** 500 questions give a useful signal, but per-specialty results (13 questions each) have wide error bars. Do not over-interpret small differences.
232
+ - **Not medical advice.** This dataset is for research and model evaluation only, never for clinical decisions.
233
+
234
+ ---
235
+
236
+ ## 📚 Citation
237
+
238
+ If you use BanglaMedBench-500, please cite it **and** the original benchmarks.
239
+
240
+ ```bibtex
241
+ @misc{banglamedbench500,
242
+ title = {BanglaMedBench-500: A Bangla Medical Question Answering Benchmark},
243
+ author = {Arittra},
244
+ year = {2026},
245
+ howpublished = {\url{https://huggingface.co/datasets/Arittra/BanglaMedBench-500}}
246
+ }
247
+ ```
248
+
249
+ Original sources: MedQA (Jin et al., 2020), MedMCQA (Pal et al., 2022), PubMedQA (Jin et al., 2019), and MMLU (Hendrycks et al., 2021). Please verify the exact citation details on each source's page.
250
+
251
+ ---
252
+
253
+ ## 🔗 Related resources
254
+
255
+ - 📦 Training data: [Bangla Medical QA (CoT and Non-CoT)](https://huggingface.co/datasets/Arittra/bangla_medical_qa_cot_and_non_cot)
256
+ - 💻 Code: _[add your GitHub link]_
257
+
258
+ ## 📄 License and attribution
259
+
260
+ Released under **Apache-2.0**. This benchmark is a derivative of MedQA (MIT), MedMCQA (Apache-2.0), PubMedQA (MIT) and MMLU (MIT); original copyright notices and attribution remain with their authors. Changes made: sampling, specialty classification, machine translation to Bangla, and consistency checks.
261
+
262
+ ---
263
+
264
+ <div align="center">
265
+
266
+ **If this benchmark helps your research, please ⭐ like the repo and cite it!**
267
+ **এই বেঞ্চমার্ক আপনার কাজে লাগলে রেপোতে ❤️ দিন এবং উদ্ধৃত করুন।**
268
+
269
+ </div>