Back to Search
Start Over
Machine learning in medicine: a practical introduction to natural language processing.
- Source :
-
BMC Medical Research Methodology . 7/31/2021, Vol. 21 Issue 1, p1-11. 11p. - Publication Year :
- 2021
-
Abstract
- <bold>Background: </bold>Unstructured text, including medical records, patient feedback, and social media comments, can be a rich source of data for clinical research. Natural language processing (NLP) describes a set of techniques used to convert passages of written text into interpretable datasets that can be analysed by statistical and machine learning (ML) models. The purpose of this paper is to provide a practical introduction to contemporary techniques for the analysis of text-data, using freely-available software.<bold>Methods: </bold>We performed three NLP experiments using publicly-available data obtained from medicine review websites. First, we conducted lexicon-based sentiment analysis on open-text patient reviews of four drugs: Levothyroxine, Viagra, Oseltamivir and Apixaban. Next, we used unsupervised ML (latent Dirichlet allocation, LDA) to identify similar drugs in the dataset, based solely on their reviews. Finally, we developed three supervised ML algorithms to predict whether a drug review was associated with a positive or negative rating. These algorithms were: a regularised logistic regression, a support vector machine (SVM), and an artificial neural network (ANN). We compared the performance of these algorithms in terms of classification accuracy, area under the receiver operating characteristic curve (AUC), sensitivity and specificity.<bold>Results: </bold>Levothyroxine and Viagra were reviewed with a higher proportion of positive sentiments than Oseltamivir and Apixaban. One of the three LDA clusters clearly represented drugs used to treat mental health problems. A common theme suggested by this cluster was drugs taking weeks or months to work. Another cluster clearly represented drugs used as contraceptives. Supervised machine learning algorithms predicted positive or negative drug ratings with classification accuracies ranging from 0.664, 95% CI [0.608, 0.716] for the regularised regression to 0.720, 95% CI [0.664,0.776] for the SVM.<bold>Conclusions: </bold>In this paper, we present a conceptual overview of common techniques used to analyse large volumes of text, and provide reproducible code that can be readily applied to other research studies using open-source software. [ABSTRACT FROM AUTHOR]
Details
- Language :
- English
- ISSN :
- 14712288
- Volume :
- 21
- Issue :
- 1
- Database :
- Academic Search Index
- Journal :
- BMC Medical Research Methodology
- Publication Type :
- Academic Journal
- Accession number :
- 151686340
- Full Text :
- https://doi.org/10.1186/s12874-021-01347-1