Medical Text Classification using Convolutional Neural Networks

Mark Hughes, Irene Li, Spyros Kotoulas, Toyotaro SuzumuraarXiv 2017

Abstract

Clinical documentation contains vast amounts of critical health information, yet its unstructured nature makes it difficult to process efficiently. Traditional Natural Language Processing (NLP) methods often rely on keyword matching and dictionaries, which fail to capture the nuanced context of medical narratives. This paper presents a deep learning approach using Convolutional Neural Networks (CNNs) to automatically categorize clinical sentences. By treating text as a high-dimensional "image" of word embeddings, the model captures "emergent semantics"—the deeper meaning derived from word combinations. The CNN-based architecture achieves approximately 68% accuracy, outperforming traditional methods like Bag-of-Words and Doc2vec by a substantial margin.

Introduction

Clinical notes are essential for patient care, but health professionals often face information overload when scanning these documents for key insights. The primary challenge in medical NLP is that traditional dictionary-based tools are limited to spotting specific keywords. For example, a sentence describing a patient's social isolation might be overlooked because it lacks a formal medical term like "diabetes."

The authors sought to move beyond "shallow" learning, where humans define features, toward "deep" learning, where the network learns which word combinations represent specific medical categories. This approach aims to capture the context and social determinants of health that are often buried in unstructured text.

Methods

The researchers treated sentence classification as a feature-learning problem, adapting a CNN architecture typically used in computer vision for text processing.

  1. Word Embeddings: A Word2vec model was trained to convert words into mathematical vectors, ensuring that semantically similar words are positioned closely in a high-dimensional space.
  2. Sentence-as-Matrix: Each sentence was transformed into a $100 \times 50$ matrix, representing 100-dimensional word vectors across a maximum of 50 words. Padding and truncation were used to maintain consistent input dimensions.
  3. CNN Architecture: The model utilizes a series of convolutional layers followed by max-pooling and dropout layers to extract features and prevent overfitting.
CNN Architecture for Sentence Classification

The novelty of this approach lies in its ability to identify complex clinical situations by learning the structure of how medical professionals describe conditions, rather than relying on a static list of keywords.

Datasets

The study leveraged two primary data sources:

  • PubMed: 15,000 clinical research papers were used to train domain-specific Word2vec models, ensuring the vocabulary was tailored to the medical field.
  • Merck Manual: This served as the ground truth for classification. Sentences were extracted from 26 medical categories (e.g., Brain, Cancer), with 4,000 sentences per category for training and 1,000 for validation.

Key Results

The CNN-based approach demonstrated a clear performance advantage over standard NLP baselines. The model achieved an accuracy of approximately 68%, while the next best method, Bag-of-Words (BOW) with Logistic Regression, reached only 51%.

Accuracy Comparison Across Models

The significant 15% improvement over BOW highlights the CNN's unique ability to capture complex, non-linear features and local patterns (groups of words) that represent medical meaning more accurately than global averages.

Discussion

Several key insights emerged from this research:

  • Context over Keywords: The filters in the CNN capture "local" patterns of words, which are more representative of medical meaning than simple keyword counts.
  • Domain Specificity: Training embeddings on medical-specific data (PubMed) is crucial for performance compared to using general-purpose text like Wikipedia.
  • Emergent Semantics: The deep architecture allows the model to identify complex social or clinical situations even in the absence of specific medical terminology.

Conclusion and Future Work

While the results are promising, the authors identify several avenues for future research. Scaling the model to larger, more diverse datasets and moving from sentence-level to document-level analysis are primary goals. Additionally, the researchers aim to combine unstructured text features with structured clinical data, such as lab results, to create a more holistic "semantic representation" of patient health.

Summary updated

BibTeX
@misc{hughes2017medical,
  author = {Mark Hughes and Irene Li and Spyros Kotoulas and Toyotaro Suzumura},
  title = {{Medical Text Classification using Convolutional Neural Networks}},
  year = {2017},
  eprint = {1704.06841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.06841},
}
Figure