Skip to main content
Diagnostics logoLink to Diagnostics
. 2017 Sep 2;7(3):50. doi: 10.3390/diagnostics7030050

Using Naïve Bayesian Analysis to Determine Imaging Characteristics of KRAS Mutations in Metastatic Colon Cancer

Yash Pershad 1, Siddharth Govindan 2, Amy K Hara 3, Mitesh J Borad 4, Tanios Bekaii-Saab 4, Alex Wallace 3, Hassan Albadawi 1, Rahmi Oklu 1,*
PMCID: PMC5617950  PMID: 28869500

Abstract

Genotype, particularly Ras status, greatly affects prognosis and treatment of liver metastasis in colon cancer patients. This pilot aimed to apply word frequency analysis and a naive Bayes classifier on radiology reports to extract distinguishing imaging descriptors of wild-type colon cancer patients and those with v-Ki-ras2 Kirsten rat sarcoma viral oncogene homolog (KRAS) mutations. In this institutional-review-board-approved study, we compiled a SNaPshot mutation analysis dataset from 457 colon adenocarcinoma patients. From this cohort of patients, we analyzed radiology reports of 299 patients (> 32,000 reports) who either were wild-type (147 patients) or had a KRAS (152 patients) mutation. Our algorithm determined word frequency within the wild-type and mutant radiology reports and used a naive Bayes classifier to determine the probability of a given word belonging to either group. The classifier determined that words with a greater than 50% chance of being in the KRAS mutation group and which had the highest absolute probability difference compared to the wild-type group included: “several”, “innumerable”, “confluent”, and “numerous” (p < 0.01). In contrast, words with a greater than 50% chance of being in the wild type group and with the highest absolute probability difference included: “few”, “discrete”, and “[no] recurrent” (p = 0.03). Words used in radiology reports, which have direct implications on disease course, tumor burden, and therapy, appear with differing frequency in patients with KRAS mutations versus wild-type colon adenocarcinoma. Moreover, likely characteristic imaging traits of mutant tumors make probabilistic word analysis useful in identifying unique characteristics and disease course, with applications ranging from radiology and pathology reports to clinical notes.

Keywords: naïve Bayesian classification, radiogenomics, RAS mutation, machine learning, natural language processing

1. Introduction

Radio-genomics (RG), which correlates cancer imaging findings and genetic alterations, is an emerging science with important implications for cancer treatment [1,2]. An alternative to direct image-outcome analysis, RG allows identification of reasons for these associations and enables access to much larger genomic databases compared to smaller imaging datasets for predicting outcomes [3]. RG provides a method for extracting more information from standard imaging results, and once a high level of accuracy can be achieved, could help avoid or reduce the use of more specialized and costly genetic profiling [4]. Predictive keywords derived from imaging reports and based upon the radio-phenotype can potentially diagnose genetic variants of a cancer, thereby expediting and focusing cancer treatments in the era of gene-based therapeutics. Previous applications of RG include breast cancer, liver cancer, and glioblastoma [2,3,4,5].

Historically, the determination of imaging differences of different cancer variants has been based upon manual review of images from large cohorts of patients [5,6,7]. In this research, we explore the possibility of using natural language processing of radiology reports in patients with colon cancer and a naïve Bayes classification algorithm to determine which predictive key terms from the imaging reports are likely for a given genetic variant of colon cancer.

Particularly, this research applied the Bayesian classifier to colorectal cancer (CRC), as it ranks second in cancer-related deaths in the U.S. and genotype greatly affects patient prognosis [8]. Since glandular cells play a key role in mucus secretion in the colon, a majority of CRC patients suffer from epithelial adenocarcinoma, which affects glandular cells from the gradual accumulation of genetic mutations and epigenetic alterations [9,10].

Key genetic alterations in CRC patients with prognostic value involve a mutant v-Ki-ras2 Kirsten rat sarcoma viral oncogene homolog (KRAS), the most common RAS mutation, which between 30% and 50% of CRC patients express [11,12]. KRAS is a proto-oncogene downstream from the epidermal growth factor receptor (EGFR) that has predicted poorer outcomes, since KRAS mutations create resistance to anti-EGFR antibodies [11,12,13]. Thus, identifying the genotype of CRC patients, particularly KRAS mutants, has become increasingly important for prognosis and treatment strategies [14].

Since identification of the genotype of patients is at its core a classification problem, classification via machine learning, a process by which computers can extract patterns in data and make decisions based upon this new knowledge, is a well-suited solution [15,16]. Naïve Bayes classifiers are simple but flexible probabilistic classifiers that can be trained via machine learning [16]. They have a wide range of applications including spam filtering, self-driving cars, social media analysis, and financial modeling [17]. For example, in spam-filtering, a naïve Bayes classifier computes the probability of a test input (email) being class S (spam) based upon (given) the presence of W (predictor word). Mathematically, the spam classification algorithm is expressed as

P(SW)=  (P(WS) × P(S))(P(WS) × P(S)+P(WH) × P(H) (1)

where P(S|W) is the probability that a message is spam knowing a specific word is present, P(S) is the probability that any given message is spam, P(W|S) is the probability of the word appearing in all spam messages, P(H) is the probability that any given message is not spam (is “ham”), and P(W|H) is the probability that the word appears in ham messages.

Much like how a naïve Bayesian algorithm can classify an email as spam or not-spam, the algorithm can also classify a radiology report as belonging to a genetic variant or wild-type of a given cancer. Particular words, potentially those associated with imaging characteristics written up in the report, have different probabilities of occurring in free-text radiology reports of genetic variants versus wild-type cohorts. The difference in the probabilities between the different report cohorts is the feature which naïve Bayes uses to ultimately calculate the probability that a certain report comes from a certain cohort.

This pilot study applied word frequency analysis and a naive Bayes classifier on free-text radiology reports to extract distinguishing imaging descriptors of wild-type colon cancer patients and those with KRAS mutations.

2. Materials and Methods

2.1. Patient Acquisition and Parsing Radiological Reports

In this institutional-review-board-approved study (2010P000510, 13 April 2010; MGH IRB), SNaPshot mutation analysis identified the genotype of 457 colon adenocarcinoma patients [14]. Of these, our study focused on 299 with a clear genetic SNaPshot of either KRAS or wild-type, of which approximately half had wild-type and half had KRAS mutations.

With the labeled data, the program then filtered the dataset and removed reports with no clinical significance (e.g., billing documents) to isolate only relevant reports. With the relevant, labeled reports in the processing pipeline, we tokenized the text within these reports into individual words, stemmed words to eliminate variability of conjugations, and used a simple negative word proximity check to tag words with a negative context if applicable, as in previous studies [18,19]. Finally, the program iterated through the reports, adding new words it encountered to the database and incrementing respective counts for repeats.

2.2. Naïve Bayesian Classification

Once the program provided the output of the distinct words and the number of appearances of each word in reports of KRAS and wild-type patients respectively, the Bayesian classifier, using the equation described above, computed the probability a report including that particular word comes from a patient with a KRAS or wild-type genotype. This probability value is a measure of the word’s presence in the report as a predictor of a CRC patient’s genotype.

2.3. Statistical Analysis

With the frequency and probability values for each word in KRAS and wild-type reports, we noted the words with the highest absolute difference in frequency and probability between KRAS and wild-type. Finally, for the key words which were associated with either KRAS or wild-type, a Wilcox signed rank test evaluated the presence of all of the words as a predictor of genotype.

3. Results

This pilot study analyzed a total of 299 patients, who either were the wild-type (147 patients) or had a KRAS (152 patients) mutation. For this population, we acquired 18,046 reports from electronic health records. The KRAS mutation group included 9017 reports, and the wild-type group included 9029 reports. Breaking up the reports into word and phrase tokens created 1,317,919 distinct terms for KRAS patients and 1,336,114 distinct terms for wild-type patients (Figure 1).

Figure 1.

Figure 1

Flowchart of patient selection and data mining. The process of identifying relevant patients and reports to generate KRAS and wild-type terms is shown. KRAS patients, reports, and terms are shown in grey, while wild-type patients, reports, and terms are shown in white.

By dividing the number of KRAS or wild-type reports the words appeared in by the total number of KRAS or wild-type reports, we obtained the frequencies of the words in KRAS and wild-type reports. “Metastas (es)” had the highest frequency in both types of reports and the lowest percent difference between the reports of 19%. The phrase “[no] discrete”, which appeared in higher frequency in wild-type reports, had the highest percent difference between the two types of reports at 72%. “Hypoattenuat(ing)” and “innumerable” had the highest percent difference in frequencies for KRAS predictive terms at 51%.

Next, the Bayesian probability of a KRAS or wild-type patient’s radiology report including the term is computed. Words with a greater than 50% chance (range 55–63%) of being in the KRAS mutation group and which had the highest absolute probability difference compared to the wild-type group included: “numerous”, “several”, “innumerable”, “confluent”, “metastas (es)”, and “hypoattenuat(ing)”. Conversely, words with a greater than 50% chance (range 60–66%) of being in the wild type group and with the highest absolute probability difference included: “[no] abnormal”, “[no] recurrent”, “few”, and “[no] discrete”.

A scatterplot of the probability of each genotype given the presence of a word in the report demonstrates two clear classifications of these key words (Figure 2). The phrase “no discrete” had the highest percent difference between the probability of predicting a wild-type versus KRAS genotype.

Figure 2.

Figure 2

This scatterplot of the probabilities of KRAS or wild-type for predictive terms. The probabilities represent the chance that a report arises from a KRAS or wild-type patient given the term is present. The terms are clustered into KRAS predictors and wild-type predictors.

By grouping these words into predictive key words for KRAS mutants and wild-type genotypes, a Wilcox signed rank test determined the predictive capability of the groups. The p-value (p = 0.005) associated with the combination of KRAS predictors suggests that a patient whose report includes all of these words has less than a 1% chance of not having a KRAS mutation. Conversely, the p-value (p = 0.03) of the key words appearing in wild-type radiology reports suggests that the patient has less than a 5% chance of not having a wild-type genotype (Figure 3).

Figure 3.

Figure 3

Bar graph comparing the mean KRAS and wild-type probabilities for the groups of terms. The mean probabilities of a patient having a KRAS or wild-type genotype if the predictive key words are in their reports are shown. These groups of key words are statistically significant as key words (** = p-value < 0.01, * = p-value < 0.05).

4. Discussion

The purpose of this study was to use a naïve Bayesian classifier to identify predictive keywords from imaging characteristics written up in radiology reports. Reliably identifying the genotype from reports from the medical imaging already performed has the potential to eliminate extraneous genotype tests and direct genotype work-ups.

After parsing the free-text radiological reports and associating them with the appropriate genotype, the program calculated the frequency for each distinct word in reports of a KRAS or wild-type genotype patient. From these frequencies, the Bayesian classifier computed the probability of a patient having a genotype based upon the presence of a predictor key word in their reports.

The key words associated with a higher probability of arising from a report of a KRAS patient (p < 0.01) clearly indicated more aggressive adenocarcinoma, with words like “numerous”, “several”, “innumerable”, “confluent”, “metastas(es)”, and “hypoattenuat(ing)”. Conversely, the key phrases, such as “no recurrence”, “no abnormal”, “few”, “no discrete”, associated with the wild-type genotype indicated less aggressive presentations. Such results corroborate studies associating KRAS mutations with cancer that presents more aggressively and associate the genotype with poorer prognosis [15,17,18,19].

The application of radiogenomics to colon adenocarcinoma has great clinical significance due to the effect of genotype on treatment options. Since KRAS is downstream from EGFR, KRAS mutations result in resistance to EGFR antibodies. The certainty of the prediction of the genotype of patients in this study can provide clinicians with an important link between imaging and genotype to guide their treatments without having to perform genome sequencing.

While these results identify specific, clinically relevant key words, this pilot study does have limitations. First, the Bayesian classifier only identified these predictor key words from the training set, but we have not yet implemented a method for determining the likelihood that a given report belongs to either a KRAS or wildtype patient based on the words within the report. Such predictive capabilities are a promising future direction, but would require larger training data sets.

Moreover, the study took the approach of analyzing radiological reports rather than the images themselves and therefore is limited by the variability in which the same findings can be expressed in a radiology report. Another limitation of using text from reports is that, while this study analyzed reports from one institution, radiologists from different backgrounds or regions may use different descriptors for the same imaging features. Both standardizing feature extraction from imaging and then performing this analysis and applying the algorithms and key terms extracted from one patient cohort to another distinct one are promising future directions that could potentially lead to more robust results than could be obtained in our pilot study.

For colon cancer, surgical resection is the most common treatment [20], so pathology reports also contain clinically relevant search terms that can distinguish KRAS mutants and wild-type genotypes. The combination of pathological and radiological reports is a future direction to potentially increase accuracy of RAS status predictions. Finally, this probabilistic approach to analyzing text in order to extract predictive features has the potential to be applied to a variety of data sources from clinical and hospital notes to radiology and pathology notes for a variety of diseases.

This pilot study successfully parsed free-text radiological reports and applied a naïve Bayesian classifier to find predictive key words to identify genotypes. This process can be applied to a variety of other diseases other than colon adenocarcinoma. Despite its limitations, it represents a unique approach to doing an initial highly automated review of radiology reports and extracting the associated imaging features which correlate to genotypic variations.

5. Conclusions

The purpose of this pilot study was to analyze the frequency of words and use a naïve Bayesian classifier to identify imaging predictors of genotype from radiology reports. The classification algorithm determined that the words that occurred with a higher frequency in KRAS reports, and thus were predictors of the KRAS mutation, were associated with more aggressive imaging features. In contrast, wild-type key words suggested a less aggressive radiophenotype for colon adenocarcinoma patients. For colon adenocarcinoma, extracting genotype from imaging data is extremely promising, as the presence of a KRAS mutation greatly alters the treatment plan for patients. The certainty of the prediction of the genotype of patients in this study can provide clinicians an important link between imaging and genotype to guide their treatments without having to perform genome sequencing.

More generally, these results demonstrate that characteristic imaging traits exist which can reveal the genetic mutations of all cancerous tumors. Probabilistic analysis of radiological reports, or even other clinical notes, has the potential to identify disease course associated with mutated oncogenes and presents a quicker, cheaper alternative to genome sequencing.

Acknowledgments

Rahmi Oklu acknowledges support from National Institutes of Health (R01-HL137193, R01-EB24403, R21-EB021148, R03-CA172738) and Mayo Clinic.

Author Contributions

Rahmi Oklu and Siddharth Govindan conceived and designed the experiments. Siddharth Govindan and Yash Pershad. performed the experiments. Yash Pershad, Rahmi Oklu and Siddharth Govindan analyzed the data. Yash Pershad, Siddharth Govindan, Amy K. Hara, Mitesh J. Borad, Tanios Bekaii-Saab, Alex Wallace, Hassan Albadawi and Rahmi Oklu contributed reagents/materials/analysis tools. Yash Pershad, Siddharth Govindan, Amy K. Hara, Mitesh J. Borad, Tanios Bekaii-Saab, Alex Wallace, Hassan Albadawi and Rahmi Oklu wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  • 1.Miotto R., Li L., Kidd B.A., Dudley J.T. Deep Patient: An Unsupervised Representation to Predict the Future of Patients from the Electronic Health Records. Sci. Rep. 2016;6:26094. doi: 10.1038/srep26094. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Rutman A.M., Kuo M.D. Radiogenomics: Creating a link between molecular diagnostics and diagnostic imaging. Eur. J. Radiol. 2009;70:232–241. doi: 10.1016/j.ejrad.2009.01.050. [DOI] [PubMed] [Google Scholar]
  • 3.Mazurowski M.A. Radiogenomics: What It Is and Why It Is Important. J. Am. Coll. Radiol. 2015;12:862–866. doi: 10.1016/j.jacr.2015.04.019. [DOI] [PubMed] [Google Scholar]
  • 4.Kuo M.D., Jamshidi N. Behind the Numbers: Decoding Molecular Phenotypes with Radiogenomics-Guiding Principles and Technical Considerations. Radiology. 2014;270:320–325. doi: 10.1148/radiol.13132195. [DOI] [PubMed] [Google Scholar]
  • 5.Karlo C.A., Di Paolo P.L., Chaim J., Hakimi A.A., Ostrovnaya I., Russo P., Hricak H., Motzer R., Hsieh J.J., Akin O. Radiogenomics of Clear Cell Renal Cell Carcinoma: Associations between CT Imaging Features and Mutations. Radiology. 2014;270:464–471. doi: 10.1148/radiol.13130663. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Yamamoto S., Maki D.D., Korn R.L., Kuo M.D. Radiogenomic Analysis of Breast Cancer Using MRI: A Preliminary Study to Define the Landscape. Am. J. Roentgenol. 2012;199:654–663. doi: 10.2214/AJR.11.7824. [DOI] [PubMed] [Google Scholar]
  • 7.Jamshidi N., Diehn M., Bredel M., Kuo M.D. Illuminating Radiogenomic Characteristics of Glioblastoma Multiforme through Integration of MR Imaging, Messenger RNA Expression, and DNA Copy Number Variation. Radiology. 2014;270:1–2. doi: 10.1148/radiol.13130078. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Mariotto A.B., Robin Yabroff K., Shao Y., Feuer E.J., Brown M.L. Projections of the Cost of Cancer Care in the United States: 2010–2020. J. Natl. Cancer Inst. 2011;103:117–128. doi: 10.1093/jnci/djq495. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Kheirelseid E.A.H., Miller N., Chang K.H., Nugent M., Kerin M.J. Clinical applications of gene expression in colorectal cancer. J. Gastrointest. Oncol. 2013;4:144. doi: 10.3978/j.issn.2078-6891.2013.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Kekelidze M. Colorectal cancer: Current imaging methods and future perspectives for the diagnosis, staging and therapeutic response evaluation. World J. Gastroenterol. 2013;19:8502. doi: 10.3748/wjg.v19.i46.8502. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Imamura Y., Morikawa T., Liao X., Lochhead P., Kuchiba A., Yamauchi M., Qian Z.R., Nishihara R., Meyerhardt J.A., Haigis K.M., et al. Specific Mutations in KRAS Codons 12 and 13, and Patient Prognosis in 1075 BRAF Wild-Type Colorectal Cancers. Clin. Cancer Res. 2012;18:4753–4763. doi: 10.1158/1078-0432.CCR-11-3210. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Blons H., Emile J.F., Le Malicot K., Julié C., Zaanan A., Tabernero J., Mini E., Folprecht G., van Laethem J.L., Thaler J., et al. Prognostic value of KRAS mutations in stage III colon cancer: Post hoc analysis of the PETACC8 phase III trial dataset. Ann. Oncol. 2014;25:2378–2385. doi: 10.1093/annonc/mdu464. [DOI] [PubMed] [Google Scholar]
  • 13.Kadowaki S. Prognostic value of KRAS and BRAF mutations in curatively resected colorectal cancer. World J. Gastroenterol. 2015;21:1275. doi: 10.3748/wjg.v21.i4.1275. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Magnin S., Viel E., Baraquin A., Valmary-Degano S., Kantelip B., Pretet J.-L., Mougin C., Bigand M., Girardo B., Borg C., et al. A Multiplex SNaPshot Assay as a Rapid Method for Detecting KRAS and BRAF Mutations in Advanced Colorectal Cancers. J. Mol. Diagn. 2011;13:485–492. doi: 10.1016/j.jmoldx.2011.05.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Kohli M., Prevedello L.M., Filice R.W., Geis J.R. Implementing Machine Learning in Radiology Practice and Research. Am. J. Roentgenol. 2017;208:754–760. doi: 10.2214/AJR.16.17224. [DOI] [PubMed] [Google Scholar]
  • 16.Wernick M., Yang Y., Brankov J., Yourganov G., Strother S. Machine Learning in Medical Imaging. IEEE Signal Process. Mag. 2010;27:25–38. doi: 10.1109/MSP.2010.936730. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Wang S., Summers R.M. Machine learning and radiology. Med. Image Anal. 2012;16:933–951. doi: 10.1016/j.media.2012.02.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Pham A.-D., Névéol A., Lavergne T., Yasunaga D., Clément O., Meyer G., Morello R., Burgun A. Natural language processing of radiology reports for the detection of thromboembolic diseases and clinically relevant incidental findings. BMC Bioinform. 2014;15:266. doi: 10.1186/1471-2105-15-266. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Liu K., Hogan W.R., Crowley R.S. Natural Language Processing methods and systems for biomedical ontology learning. J. Biomed. Inform. 2011;44:163–179. doi: 10.1016/j.jbi.2010.07.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Compton C.C. Colorectal Carcinoma: Diagnostic, Prognostic, and Molecular Features. Mod. Pathol. 2003;16:376–388. doi: 10.1097/01.MP.0000062859.46942.93. [DOI] [PubMed] [Google Scholar]

Articles from Diagnostics are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES