NLP for Healthcare
2021-02-26
1 Overview
link to lesson plan: https://ucdavisdatalab.github.io/workshop-nlp-healthcare/
link to github repo: https://github.com/ucdavisdatalab/workshop-nlp-healthcare
link to data used: abstracts.csv
If you will be coding along please check that you have R and RStudio installed on your machine.
1.1 Objectives for this Workshop
- Explain natural language processing in lay terms
- Give examples of NLP applications for research
- Evaluate particular challenges posed by working with health data
- Describe key text mining and NLP metrics for assessing word importance and document similarity
- Install the ‘tm’ package in R
- Create a corpus and DocumentTermMatrix
- Calculate word frequencies
- Calculate TF-IDF weighting
- Generate PCA for exploring document similarities
- identify where to go to learn more!
1.2 Demo introduction
Dr. Sonja Diertrich is a radiation oncologist at UCDMC studying early stage breast cancer. For this coding demo we are using NLP to explore the recent literature on this topic with her lab.
1.2.1 About the data
Working with Blaisdell Medical Library’s health librarian Amy Studer, we conducted a pilot systematic search in EMBASE and PubMed on this topic for articles published in the International Journal of Radiation Oncology Biology Physics, Practical Radiation Oncology, and Lancet over the past 5 years. For this demo we are using the titles and abstracts from that search. (See the readME for more information regarding the search strategy used to generate our datatset.)
1.2.2 Why R? What is RStudio?
“R” is a programming language and statistical software that interprets scripts. RStudio is an Integrated Development Environment (IDE) for working with R. You need R installed in order to use RStudio, but you don’t need RStudio to work with R.
So why R?
Faciliates reproducible research workflows
- integrates with other tools.
- designed for data analysis
- produces high-quality graphics
It’s extensible and interdisciplinary
- free, open-source, well-documented, and cross-platform
- runs on Mac, PC and Linux.
- works with data of all shapes and sizes.
- large library of external packages available for performing diverse tasks, including text mining and NLP.
- Large (and growing) community
Should you use R? Maybe. Use whatever langauge allows you to perform your work and faciliates sharing with your direct colleagues and the broader reserach community.