Real clinical transcription datasets (like MTSamples) contain thousands of free-text notes labelled by medical specialty — cardiology, orthopedics, neurology, gastroenterology, radiology. A common lightweight NLP pipeline turns each note into a numeric vector with TF-IDF (term frequency × inverse document frequency, which down-weights common words and up-weights terms distinctive to a specialty), then trains a Logistic Regression classifier on those vectors.
This scene represents each transcription note as a point floating above a coloured floor tile. The floor is a 2D projection of the high-dimensional TF-IDF space, shaded by which specialty the current classifier would predict for any location — the decision surface. Well-separated, tightly clustered points with crisp boundaries mean the model classifies confidently; overlapping points near a boundary mean the note is ambiguous, which is exactly where a real classifier makes mistakes.
On real MTSamples-style corpora, TF-IDF + Logistic Regression typically reaches roughly 60-75% multi-class accuracy across a dozen or more specialties — respectable for a model with no understanding of medical semantics, but it still confuses clinically adjacent fields such as cardiology and cardiovascular/pulmonary notes that share heavy vocabulary overlap.
A 3D document-vector space where clinical transcription notes cluster by medical specialty, with a live decision surface showing how TF-IDF weighting and a Logistic Regression classifier carve the space into specialty regions.
Each floating point is a clinical note projected from high-dimensional TF-IDF space; the coloured floor is the classifier's decision surface. Tighter clusters and sharper boundaries mean more confident, accurate classification.
Switch between TF-IDF and raw term-frequency features, toggle Logistic Regression vs Naive Bayes, and drag the regularization slider. Drop a new unlabelled note with "Classify new note" and watch it settle into a predicted specialty.
On real transcription corpora, TF-IDF + Logistic Regression is a strong, fast baseline — but it still confuses clinically adjacent specialties that share heavy vocabulary overlap, like cardiology and cardiovascular/pulmonary notes.