Spelling Correction in Healthcare Query-Answer Systems: Methods, Retrieval Impact, and Empirical Evaluation
Organizations: Oracle Corporation
Abstract
Healthcare question-answering (QA) systems face a persistent challenge: users submit queries with spelling errors at rates substantially higher than those found in the professional documents they search. This paper presents the first controlled study of spelling correction as a retrieval preprocessing step in healthcare QA using real consumer queries. We conduct an error census across two public datasets -- the TREC 2017 LiveQA Medical track (104 consumer health questions) and HealthSearchQA (4,436 health queries from Google autocomplete) -- finding that 61.5% of real medical queries contain at least one spelling error, with a token-level error rate of 11.0%. We evaluate four correction methods -- conservative edit distance, standard edit distance (Levenshtein), context-aware candidate ranking, and SymSpell -- across three experimental conditions: uncorrected queries against an uncorrected corpus (baseline), uncorrected queries against a corrected corpus, and fully corrected queries against a corrected corpus. Using BM25 and TF-IDF cosine retrieval over 1,935 MedQuAD answer passages with TREC relevance judgments, we find that query correction substantially improves retrieval -- edit distance and context-aware correction achieve MRR improvements of +9.2% and NDCG@10 improvements of +8.3% over the uncorrected baseline. Critically, correcting only the corpus without correcting queries yields minimal improvement (+0.5% MRR), confirming that query-side correction is the key intervention. We complement these results with a 100-sample error analysis categorising correction outcomes per method and provide evidence-based recommendations for practitioners.
Figures & tables
| Metric | TREC LiveQA Medical | HealthSearchQA |
|---|---|---|
| Total queries | 104 | 4,436 |
| Queries with 1 error | 64 (61.5%) | 88 (est. 1.97%) ∗ |
| Token error rate | 11.0% | 2.0% (est.) |
| Avg errors per query (all) | 1.60 | — |
| Avg errors per affected query | 2.59 | — |
| Query source | Real user submissions (NLM) | Google autocomplete |
| Original | Correction | Error Type | Query Context | Edit Dist. |
|---|---|---|---|---|
| tabkets | tablets | substitution | Zolmitriptan tabkets 5mg | 1 |
| hydrslazine | hydralazine | deletion | blood pressure medication | 1 |
| citrobactor | citrobacter | substitution | UTI bacterium | 1 |
| osella | ocella | substitution | oral contraceptive | 1 |
| precaution | precautions | deletion | disease management | 1 |
| hydrslazine | hydralazine | double_deletion | antihypertensive | 2 |
| Condition | Method | MRR | R@1 | R@5 | R@10 | NDCG@10 |
| Exp 2: Baseline | — | 0.633 | 0.079 | 0.253 | 0.424 | 0.436 |
| Exp 3a: Orig Q Corr C | conservative | 0.636 | 0.079 | 0.258 | 0.428 | — |
| Exp 3a: Orig Q Corr C | edit distance | 0.636 | 0.079 | 0.256 | 0.427 | — |
| Exp 3b: Corr Q Orig C | conservative | 0.678 | 0.086 | 0.276 | 0.457 | 0.472 |
| Exp 3b: Corr Q Orig C | edit distance | 0.687 | 0.086 | 0.276 | 0.453 | 0.474 |
| Exp 4: Both Corrected | conservative | 0.682 | 0.088 | 0.278 | 0.456 | 0.473 |
| Condition | Method | MRR | R@1 | R@5 | R@10 | NDCG@10 |
|---|---|---|---|---|---|---|
| Exp 2: Baseline | — | 0.667 | 0.076 | 0.316 | 0.512 | 0.461 |
| Exp 3a: Orig Q Corr C | conservative | 0.656 | 0.077 | 0.311 | 0.515 | — |
| Exp 3b: Corr Q Orig C | conservative | 0.728 | 0.082 | 0.331 | 0.537 | 0.492 |
| Exp 3b: Corr Q Orig C | edit distance | 0.730 | 0.082 | 0.332 | 0.539 | 0.496 |
| Exp 4: Both Corrected | conservative | 0.717 | 0.080 | 0.330 | 0.540 | 0.491 |
| Exp 4: Both Corrected | edit distance | 0.715 | 0.080 | 0.331 | 0.544 | 0.495 |
| Category | Conserv. | Edit Dist. | Context | SymSpell | Definition |
|---|---|---|---|---|---|
| Total corrections | 90 | 180 | 180 | 66 | — |
| correct_fix (%) | 18.9 | 12.0 | 9.0 | 12.1 | Corrected to paraphrase’s word |
| partial_improv. (%) | 70.0 | 70.0 | 77.0 | 86.4 | Changed but not to paraphrase word |
| unnecessary_change (%) | 8.9 | 16.0 | 12.0 | 1.5 | Original word was in paraphrase |
| harmless_synonym (%) | 2.2 | 2.0 | 2.0 | 0 | Both original and correction in paraphrase |
Medical QA
Medical question answering develops and evaluates AI systems that answer clinical, patient-facing, and health-information questions.
See all 84 papers