Text analysis framework for identifying mutations among non-small cell lung cancer patients from laboratory data

BMC Med Res Methodol. 2024 Mar 11;24(1):63. doi: 10.1186/s12874-024-02192-8.

Abstract

Background: Laboratory data can provide great value to support research aimed at reducing the incidence, prolonging survival and enhancing outcomes of cancer. Data is characterized by the information it carries and the format it holds. Data captured in Alberta's biomarker laboratory repository is free text, cluttered and rouge. Such data format limits its utility and prohibits broader adoption and research development. Text analysis for information extraction of unstructured data can change this and lead to more complete analyses. Previous work on extracting relevant information from free text, unstructured data employed Natural Language Processing (NLP), Machine Learning (ML), rule-based Information Extraction (IE) methods, or a hybrid combination between them.

Methods: In our study, text analysis was performed on Alberta Precision Laboratories data which consisted of 95,854 entries from the Southern Alberta Dataset (SAD) and 6944 entries from the Northern Alberta Dataset (NAD). The data covers all of Alberta and is completely population-based. Our proposed framework is built around rule-based IE methods. It incorporates topics such as Syntax and Lexical analyses to achieve deterministic extraction of data from biomarker laboratory data (i.e., Epidermal Growth Factor Receptor (EGFR) test results). Lexical analysis compromises of data cleaning and pre-processing, Rich Text Format text conversion into readable plain text format, and normalization and tokenization of text. The framework then passes the text into the Syntax analysis stage which includes the rule-based method of extracting relevant data. Rule-based patterns of the test result are identified, and a Context Free Grammar then generates the rules of information extraction. Finally, the results are linked with the Alberta Cancer Registry to support real-world cancer research studies.

Results: Of the original 5512 entries in the SAD dataset and 5017 entries in the NAD dataset which were filtered for EGFR, the framework yielded 5129 and 3388 extracted EGFR test results from the SAD and NAD datasets, respectively. An accuracy of 97.5% was achieved on a random sample of 362 tests.

Conclusions: We presented a text analysis framework to extract specific information from unstructured clinical data. Our proposed framework has shown that it can successfully extract relevant information from EGFR test results.

Keywords: Context free grammar; EGFR; Information extraction; Laboratory data; Lexical analysis; NSCLC; Syntax analysis; Text analysis.

MeSH terms

  • Biomarkers
  • Carcinoma, Non-Small-Cell Lung* / diagnosis
  • Carcinoma, Non-Small-Cell Lung* / genetics
  • Electronic Health Records
  • ErbB Receptors
  • Humans
  • Laboratories
  • Lung Neoplasms* / diagnosis
  • Lung Neoplasms* / genetics
  • Mutation
  • NAD
  • Natural Language Processing

Substances

  • NAD
  • ErbB Receptors
  • Biomarkers