Medical Report Summarizer - AI Tool

Explanation: each sentence is scored by the TF-IDF weight of its words; the top sentences are shown in original order. It only selects existing sentences, it cannot invent facts. Fictional demo report; never use for real medical decisions.

The science

Extractive summarisation. Score of sentence s = (sum over words w of tf(w,s) x ln(1+N/df(w))) / sqrt(|s|), where N is the number of sentences and df the sentences containing w; stop words are dropped. The square-root length normalisation stops long sentences winning by size alone. Measurements (mmHg, bpm, ng/mL...) are pulled out with regular expressions. Check: a dense-vector re-implementation must reproduce the scores. Limits: no negation or clinical understanding.