Online Academic Journal of Information Technology | |
Application of Natural Language Processing with Supervised Machine Learning Techniques to Predict the Overall Drugs Performance | |
Pius Marthın1  Duygu İçen2  | |
[1] HACETTEPE UNIVERSITY;HACETTEPE ÜNİVERSİTESİ; | |
关键词: term document matrix (tdm); machine learning; sentiment analysis; cross-validation; term frequency-inverse document frequency (tf-idf); latent semantic analysis (lsa); terim belge matrisi; makine öğrenme; duygu analizi; çapraz doğrulama; terim frekansı-ters belge frekansı; gizli semantik analiz; | |
DOI : 10.5824/ajite.2020.01.001.x | |
来源: DOAJ |
【 摘 要 】
Online product reviews have become a valuable source of information which facilitate customer decision with respect to a particular product. With the wealthy information regarding user's satisfaction and experiences about a particular drug, pharmaceutical companies make the use of online drug reviews to improve the quality of their products. Machine learning has enabled scientists to train more efficient models which facilitate decision making in various fields. In this manuscript we applied a drug review dataset used by (Gräβer, Kallumadi, Malberg,& Zaunseder,2018), available freely from machine learning repository website of the University of California Irvine (UCI) to identify best machine learning model which provide a better prediction of the overall drug performance with respect to users' reviews. Apart from several manipulations done to improve model accuracy, all necessary procedures required for text analysis were followed including text cleaning and transformation of texts to numeric format for easy training machine learning models. Prior to modeling, we obtained overall sentiment scores for the reviews. Customer's reviews were summarized and visualized using a bar plot and word cloud to explore the most frequent terms. Due to scalability issues, we were able to use only the sample of the dataset. We randomly sampled 15000 observations from the 161297 training dataset and 10000 observations were randomly sampled from the 53766 testing dataset. Several machine learning models were trained using 10 folds cross-validation performed under stratified random sampling. The trained models include Classification and Regression Trees (CART), classification tree by C5.0, logistic regression (GLM), Multivariate Adaptive Regression Spline (MARS), Support vector machine (SVM) with both radial and linear kernels and a classification tree using random forest (Random Forest).Model ion was done through a comparison of accuracies and computational efficiency. Support vector machine (SVM) with linear kernel was significantly best with an accuracy of 83% compared to the rest. Using only a small portion of the dataset, we managed to attain reasonable accuracy in our models by applying the TF-IDF transformation and Latent Semantic Analysis (LSA) technique to our TDM.
【 授权许可】
Unknown