scieee AI-readable full text Open interactive document viewer

Identifying Deception in Online Reviews: Application of Machine Learning, Deep Learning and Natural Language Processing

Roy, Bhupendra

Abstract

Customers increasingly rate, review and research products online, (Jansen 2010). Consequently, websites containing consumer reviews are becoming targets of opinion spam. Now-a-days, people are paid money to write fake positive review online, to misguide customer and to augment sales revenue. Alternatively, people are also paid to pose as customers and to post negative fake reviews with the objective to slash competitors. These have caused menace in social media and often resulting in customer being baffled. In this study, we have explored multiple aspects of deception classification. We have explored four kinds of treatments to input i.e., the reviews using Natural Language Processing – lemmatization, stemming, POS tagging and a mix of lemmatization and POS Tagging. Also, we have explored how each of these inputs responds to different machine learning models – Logistic Regression, Naïve Bayes, Support Vector Machine, Random Forest, Extreme Gradient Boosting and Deep Learning Neural Network. We have utilized the gold standard hotel reviews dataset created by (Ott, Choi, et al. 2011) & (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013). Also, we used restaurant reviews dataset and doctors’ reviews dataset used by (Li, et al. 2014). We explored the usability of these models in similar domain as well as across different domains. We trained our model with 75% of hotel reviews dataset and check the accuracy of classification on similar dataset like 25% of unseen hotel reviews and on different domain dataset like unseen restaurant reviews and unseen doctors’ reviews. We perform this to create a robust model which can be applied on same domain and across different domains. Best accuracy for testing dataset of hotels achieved by us was at 91% using Deep Learning Neural Network. Logistic regression, support vector machine and random forest had similar results like neural network. Naïve Bayes also had similar accuracy; however, it had more volatility in cross domain accuracy performance. Accuracy of extreme gradient boosting was weakest among all the models that we explored. Our results are comparable and at times exceeding performance of other researchers’ work. Additionally, we have explored various models (Logistic Regression, Naïve Bayes, Support Vector Machine, Random Forest, Extreme gradient boosting, Neural network) vis a vis various input transformation method using Natural Language Processing (lemmatized unigrams, stemmed, POS tagging and a mix of lemmatization and POS Tagging).

Full text

i - Identifying Deception in Online Reviews Bhupendra Roy Application of Machine Learning, Deep Learning & Natural Language Processing Dissertation presented as partial requirement for obtaining the master’s degree in Data Science and Advanced Analytics ii NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa IDENTIFYING DECEPTION IN ONLINE REVIEWS Application of Machine Learning, Deep Learning & Natural Language Processing by Bhupendra Roy Dissertation presented as partial requirement for obtaining the Master’s degree in Data Science and Advanced Analytics Advisor: Fernando José Ferreira Lucas Bação February 2020 iii DEDICATION For my father, Raj Ballav Roy and my mother, Rama Bati Devi Roy, who constantly encouraged and supported me. A special thanks to my fellow classmate and friend, Susan Wang. iv ACKNOWLEDGEMENTS This thesis is an extension and application of my learning especially in the below class modules among various other class modules in the course of Masters in Advanced Analytics in Nova Information Management School under Universidade Nova de Lisboa. • [200181] Text Mining by Professor Zita Marinho • [200180] Deep Learning by Professor Mauro Castelli As a result, I want to extend my gratitude to both above professors for the lectures and for training me on those topics. In the class of Text Mining, I along with my fellow classmates (Susan Wang, Carolina Bellani, Yu Chun Liu - April) created a class project on Deceptive Opinion Spam Corpus. In the project, we applied some Natural Language Processing techniques, and utilized Naïve Bayes and Support Vector machine to create classifiers. My current research thesis is result of enhancement and further work continued from the project. Hence, I also wish to express my thanks to my classmates – Susan, Carolina & April. I want to express my heartfelt gratitude to my Professor Jorge Antunes for constantly encouraging me to work further on the thesis, for guiding me throughout the process and for constantly helping me in every stage of the thesis. I want to express many thanks to my supervisor, Professor Fernando Baçao for his feedback, time, help and guidance. Last but not the least I wish to acknowledge the help of all the faculty (specially of course – Masters in Advanced Analytics) and staff of Nova IMS. v ABSTRACT Customers increasingly rate, review and research products online, (Jansen 2010). Consequently, websites containing consumer reviews are becoming targets of opinion spam. Now-a-days, people are paid money to write fake positive review online, to misguide customer and to augment sales revenue. Alternatively, people are also paid to pose as customers and to post negative fake reviews with the objective to slash competitors. These have caused menace in social media and often resulting in customer being baffled. In this study, we have explored multiple aspects of deception classification. We have explored four kinds of treatments to input i.e., the reviews using Natural Language Processing – lemmatization, stemming, POS tagging and a mix of lemmatization and POS Tagging. Also, we have explored how each of these inputs responds to different machine learning models – Logistic Regression, Naïve Bayes, Support Vector Machine, Random Forest, Extreme Gradient Boosting and Deep Learning Neural Network. We have utilized the gold standard hotel reviews dataset created by (Ott, Choi, et al. 2011) & (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013). Also, we used restaurant reviews dataset and doctors’ reviews dataset used by (Li, et al. 2014). We explored the usability of these models in similar domain as well as across different domains. We trained our model with 75% of hotel reviews dataset and check the accuracy of classification on similar dataset like 25% of unseen hotel reviews and on different domain dataset like unseen restaurant reviews and unseen doctors’ reviews. We perform this to create a robust model which can be applied on same domain and across different domains. Best accuracy for testing dataset of hotels achieved by us was at 91% using Deep Learning Neural Network. Logistic regression, support vector machine and random forest had similar results like neural network. Naïve Bayes also had similar accuracy; however, it had more volatility in cross domain accuracy performance. Accuracy of extreme gradient boosting was weakest among all the models that we explored. Our results are comparable and at times exceeding performance of other researchers’ work. Additionally, we have explored various models (Logistic Regression, Naïve Bayes, Support Vector Machine, Random Forest, Extreme gradient boosting, Neural network) vis a vis various input transformation method using Natural Language Processing (lemmatized unigrams, stemmed, POS tagging and a mix of lemmatization and POS Tagging). vi KEYWORDS Online deception Deep Learning Natural Language Processing Neural Network Logistics Regression Naïve Bayes Support Vector Machine Random Forest Extreme Gradient Boosting vii INDEX 1 Introduction .................................................................................................................. 1 2 Related work ................................................................................................................. 2 2.1 Quest For Labelled Data ........................................................................................ 2 2.1.1 Creation of positive Hotel Reviews ................................................................. 2 2.1.2 Creation of negative Hotel Reviews ............................................................... 3 2.1.3 Gold standard balanced hotel reviews ........................................................... 3 2.1.4 Restaurant reviews ......................................................................................... 3 2.1.5 Doctor reviews ................................................................................................ 4 2.2 Human Performance ............................................................................................. 4 2.2.1 Positive Hotel Reviews .................................................................................... 4 2.2.2 Negative Hotel Reviews .................................................................................. 5 2.3 Automated Approach ............................................................................................. 6 2.3.1 Genre identification ........................................................................................ 6 2.3.2 LIWC ................................................................................................................ 6 2.3.3 Text Categorization ......................................................................................... 7 2.3.4 Character n-grams in token ............................................................................ 8 2.3.5 Emotions-based feature ................................................................................. 8 2.3.6 PU Method ...................................................................................................... 9 2.3.7 Bi-gated Neural Network .............................................................................. 12 2.4 Interaction of sentiment and Deception .............................................................. 13 2.5 Conclusion ............................................................................................................ 14 3 Methodology .............................................................................................................. 15 3.1 Dataset .................................................................................................................. 15 3.1.1 Hotel Reviews ............................................................................................... 15 3.1.2 Restaurant Reviews ...................................................................................... 17 3.1.3 Doctors Reviews ............................................................................................ 19 3.2 Natural Language Processing ............................................................................... 20 3.2.1 Stemming ...................................................................................................... 21 3.2.2 Lemmatization .............................................................................................. 21 3.2.3 Parts of Speech Tagging ................................................................................ 21 3.3 Text Transformation Method ............................................................................... 21 3.3.1 Lemmatization .............................................................................................. 21 viii 3.3.2 Stemming ...................................................................................................... 22 3.3.3 POS Tagging .................................................................................................. 22 3.3.4 Lemmatization and POS Tagging .................................................................. 22 3.4 Data Source........................................................................................................... 22 3.5 Data Split............................................................................................................... 22 3.6 Models .................................................................................................................. 22 3.6.1 Logistic Regression ........................................................................................ 22 3.6.2 Naïve Bayes ................................................................................................... 23 3.6.3 Support Vector Machine ............................................................................... 23 3.6.4 Random Forest .............................................................................................. 23 3.6.5 Extreme Gradient Boosting........................................................................... 24 3.6.6 Neural Network............................................................................................. 24 3.7 “360 Degree” Process View .................................................................................. 24 3.8 Evaluation Measures ............................................................................................ 25 3.8.1 Confusion Matrix .......................................................................................... 25 3.8.2 Accuracy ........................................................................................................ 26 3.8.3 Area under curve (AUC) ................................................................................ 26 3.8.4 Hypothesis Testing ........................................................................................ 27 3.8.5 Output Capture Methodology ...................................................................... 28 4 Results and discussion ................................................................................................ 29 4.1 Results................................................................................................................... 29 4.1.1 Logistic regression......................................................................................... 29 4.1.2 Naïve Bayes ................................................................................................... 31 4.1.3 Support Vector Machine ............................................................................... 33 4.1.4 Random Forest .............................................................................................. 34 4.1.5 Extreme Gradient Boosting........................................................................... 36 4.1.6 Deep Learning - Neural Network .................................................................. 38 4.2 Analysis of results ................................................................................................. 40 4.2.1 Lemmatized vs Stemmed .............................................................................. 40 4.2.2 POS Tagging vs Lemmatized POS Tagging .................................................... 41 4.2.3 Lemmatized vs POS Tagging ......................................................................... 42 4.2.4 Lemmatized vs Lemmatized POS Tagging ..................................................... 43 4.2.5 Comparison of Inputs and Models ............................................................... 44 4.3 Discussion ............................................................................................................. 49 4.3.1 Input Transformation Perspective ................................................................ 49 ix 4.3.2 Models Perspective ....................................................................................... 49 4.3.3 Result Comparison ........................................................................................ 50 5 Conclusions ................................................................................................................. 51 6 Limitations and recommendations for future works ................................................. 52 7 Bibliography ................................................................................................................ 53 8 Appendix ..................................................................................................................... 56 3 ithei iremainingi i2,124i itruthfuli ireviews,i iwerei iselectedi isuchi ithati ithei idocumenti ilengthsi iofi ithei iselectedi itruthfuli ireviewsi iwerei isimilarlyi idistributedi itoi ithosei iofi ithei ideceptivei ireviews. In this way, 40 positive reviews (20 truthful and 20 deceptive) were collected for each of the 20 hotels. It totaled to 800 reviews (400 truthful and 400 deceptive) collected by (Ott et al., 2011). 2.1.2 Creation of negative Hotel Reviews (Ott,i iCardiei iandi iHancock,i iNegativei iDeceptivei iOpinioni iSpami i2013)i icollectedi i800i inegativei ihoteli ireviews.i iThei iprocessi iofi idataseti icreationi iwasi ilikei ithei iprocessi iofi idataseti icreationi iini i(Ott,i iChoi,i ieti ial.i i2011).i iThei ionlyi idifferencei iwasi ithati i(Ott,i iCardiei iandi iHancock,i iNegativei iDeceptivei iOpinioni iSpami i2013)i iwasi icreatingi idataseti ifori inegativei isentimenti iinsteadi iofi ipositivei isentiment.i iSamei i20i ihotelsi ilikei ithei ipreviousi iresearchi iwerei ichoseni ifori istudyi iofi inegativei ideceptivei iopinion.i iCrowdsourcingi iservicesi isuchi iAmazoni iMechanicali iTurki iwasi iutilizedi itoi icollecti ideceptivei iopinions.i iAi ipooli iofi i400i iHumani iIntelligencei iTaski i(HITs)i iwerei icreatedi iini iAmazoni iMechanicali iTurki iandi iallocatedi iacrossi i20i ichoseni ihotels.i iToi iensurei ithati iopinionsi iwerei iwritteni ibyi iuniquei iauthors,i isinglei isubmissioni iperi ionlinei iworkeri iwasi iallowed.i iAlli ionlinei iworkersi iwerei iini iUnitedi iStatesi iwithi iani iapprovali iratingi iofi iati ileasti i90%.i iWorkersi iwerei iallowedi iai imaximumi iofi i30i iminutesi iandi iwerei ipaidi ionei iUSi idollari ifori iani iacceptedi isubmission.i iEachi iHITi ipresentedi ithei iworkeri iwithi ithei inamei iandi iwebsitei iofi iai ihotel.i iThei iHITi iinstructedi ithei iworkeri itoi iassumei ithati itheyi iworki ifori ithei ihotel’si imarketingi idepartment,i iandi itheiri imanageri ihadi iaskedi ithemi itoi iwritei iai ifakei inegativei ireviewi iofi iai icompetitor’si ihoteli itoi ibei ipostedi ionline.i iAi idisclaimeri iwasi iprovidedi ithati iindicatedi ithati ianyi isubmissioni ifoundi itoi ibei iofi iinsufficienti iqualityi i(e.g.,i iwritteni ifori ithei iwrongi ihotel,i iunintelligible,i iunreasonablyi ishort,i iplagiarized,i ietc.)i iwouldi ibei irejected.i iSubmissioni iwerei imanuallyi iinspectedi itoi iensurei ithati itheyi iconveyedi iai igenerali inegativei isentimenti iandi itheyi iwerei iwritteni ifori icorrecti ihotel. Negativei i(1-i iori i2-i istar)i itruthfuli ireviewsi iwerei iminedi ifromi isixi ipopulari ionlinei ireviewi icommunities:i iExpedia,i iHotel.com,i iOrbitz,i iPriceline,i iTripi iAdvisori iandi iYelp.i iAi isamplei iofi ithei iavailablei inegativei itruthfuli ireviewsi iwerei iselectedi itoi iretaini iani iequali inumberi iofi itruthfuli iandi ideceptivei ireviewsi i(20i ieach)i ifori ieachi ihotel.i iThei itruthfuli ireviewsi iwerei islightlyi ilargeri ithani ithei ideceptivei ireviews. 2.1.3 Gold standard balanced hotel reviews In the above-mentioned method, 40 negative reviews (20 truthful and 20 deceptive) were collected for each of the 20 hotels by (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013). When this was combined with positive reviews collected by (Ott, Choi, et al. 2011), the researchers had 80 reviews (20 truthful and positive, 20 truthful and negative, 20 deceptive and positive, 20 deceptive and negative) for each of 20 hotels. It totaled to 1600 gold standard balanced reviews. 2.1.4 Restaurant reviews (Li, et al. 2014) selected 10 most popular restaurants of Chicago and the researchers collected a mix of deceptive and truthful reviews of the 10 restaurants from online Turkers using Mechanical Turk, employees (waiter/waitress/cook) and customers. 4 2.1.5 Doctor reviews (Li, et al. 2014) also collected doctors reviews – a mix of deceitful and truthful about doctors from online Turkers using Mechanical Turk, employees (doctors) and patients. 2.2 HUMAN PERFORMANCE In this section, we present how humans perform in identifying deception in online hotel reviews for both positive and negative sentiments. 2.2.1 Positive Hotel Reviews Thei ieffortsi iofi ithei iresearchersi ifromi ivariousi icountriesi ihelpedi iini ipopulationi iofi iqualitativei ilabelledi igoldi istandardi idataseti iconsistingi iai imixi iofi ideceitfuli ireviewsi iandi itruthfuli ireviews.i iNowi iiti iwasi inoteworthyi itoi ievaluatei ihowi igoodi iarei ihumani iini iidentifyingi ithei ideceitfulnessi iini ireviews.i iFirst,i itherei iwerei ifewi iotheri ibaselinesi ifori iclassificationi itask;i iindeed,i irelatedi istudiesi i(Jindali iandi iLiui i2008);i i(Mihalceai iandi iStrapparavai i2009)i ihadi ionlyi iconsideredi iai irandomi iguessi ibaseline.i iSecond,i iassessingi ihumani iperformancei iwasi inecessaryi itoi ivalidatei ithei ideceptivei iopinionsi igathered.i iIfi ihumani iperformancei iwasi ilow,i itheni ideceptivei iopinionsi iwerei iconvincing,i iandi itherefore,i ideservingi iofi ifurtheri iattention. (Ott,i iChoi,i ieti ial.i i2011)’si iinitiali iapproachi iwasi itoi iassessi ihumani iperformancei ioni ithisi itaski ithroughi iAmazoni iMechanicali iTurk.i iUnfortunately,i itheyi ifoundi ithati isomei iworkersi iselectedi iamongi ithei ichoicesi iseeminglyi iati irandom,i ipresumablyi itoi imaximizei itheiri ihourlyi iearningsi ibyi iobviatingi ithei ineedi itoi ireadi ithei ireview.i iSo,i ithreei ivolunteeri iundergraduatei iuniversityi istudentsi iwerei isolicitedi itoi imakei ijudgmentsi ioni iai isubseti iofi ithei idata.i iUnlikei ithei ionlinei iworkers,i istudenti ivolunteersi iwerei inoti iofferedi iai imonetaryi ireward.i iConsequently,i itheiri ijudgementsi iwerei iconsideredi imorei ihonesti ithani ithosei iobtainedi iviai iAMTi i(Amazoni iMechanicali iTurk). Additionally,i itoi itesti ithei iextenti itoi iwhichi ithei iindividuali ihumani ijudgesi iwerei ibiased,i iperformancei iofi itwoi ivirtuali imeta-judgesi iwerei ialsoi ievaluatedi ibyi i(Ott,i iChoi,i ieti ial.i i2011).i iSpecifically,i ithei iMAJORITYi imeta-judgei ipredictedi i“deceptive”i iwheni iati ileasti itwoi iouti iofi ithreei ihumani ijudgesi ibelievedi ithei ireviewi itoi ibei ideceptive,i iandi ithei iSKEPTICi imeta-judgei ipredictedi i“deceptive”i iwheni ianyi ihumani ijudgei ibelievedi ithei ireviewi itoi ibei ideceptive. TRUTHFUL DECEPTIVE Accuracy Precision Recall F-Score Precision Recall F-score HUMAN JUDGE 1 61.9% 57.9 87.5 69.7 74.4 36.3 48.7 JUDGE 2 56.9% 53.9 95.0 68.8 78.9 18.8 30.3 JUDGE 3 53.1% 52.3 70.0 59.9 54.7 36.3 43.6 META MAJORITY 58.1% 54.8 92.5 68.8 76.0 23.8 36.2 SKEPTIC 60.6% 60.8 60.0 60.4 60.5 61.3 60.9 Table 1 : Human performance of deception detection for reviews - (Ott, Choi, et al. 2011) 5 (Ott,i iChoi,i ieti ial.i i2011)i ifoundi iouti ifromi ithei iresultsi ithati ihumani ijudgesi iwerei inoti iparticularlyi ieffectivei iati ithisi itask.i iIndeed,i iai itwo-tailedi ibinomiali itesti ifailedi itoi irejecti ithei inulli ihypothesisi ithati iJUDGEi i2i iandi iJUDGEi i3i iperformi iat-chancei i(pi i=i i0.003,i i0.10,i i0.48i ifori ithei ithreei ijudges,i irespectively).i iFurthermore,i ialli ithreei ijudgesi isufferedi ifromi itruth-bias,i iai icommoni ifindingi iini ideceptioni idetectioni iresearchi iini iwhichi ihumani ijudgesi iwerei imorei ilikelyi itoi iclassifyi iani iopinioni iasi itruthfuli ithani ideceptive.i iIni ifact,i iJUDGEi i2i iclassifiedi ifeweri ithani i12%i iofi ithei iopinionsi iasi ideceptive!i iInterestingly,i ithisi ibiasi iwasi ieffectivelyi ismoothedi ibyi ithei iSKEPTICi imeta-judge,i iwhichi iproducedi inearlyi iperfectlyi iclass-balancedi ipredictions.i iAi isubsequenti ire-evaluationi iofi ihumani iperformancei ioni ithisi itaski isuggestsi ithati ithei itruth-biasi icouldi ibei ireducedi iifi ijudgesi iwerei igiveni ithei iclass-proportionsi iini iadvance,i ialthoughi isuchi ipriori iknowledgei iwasi iunrealistic;i iandi iultimately,i iperformancei iremainedi ilikei ithati iofi iTablei i1. Inter-annotatori iagreementi iamongi ithei ithreei ijudges,i icomputedi iusingi iFleiss’i ikappa,i iwasi i0.11.i iWhilei itherei iwasi inoi iprecisei irulei ifori iinterpretingi ikappai iscores,i i(Landisi iandi iKochi i1977)i isuggestedi itraitsi ii i(Mairesse,i ieti ial.i i2007),i itoi istudyi itutoringi idynamicsi i(Cade,i iLehmani iandi iOlneyi i2010),i iand,i imosti irelevantly,i itoi ianalyzei ideceptioni i(Hancock,i ieti ial.i i2007);i i(Mihalceai iandi iStrapparavai i2009);i i(Vrij,i ieti ial.i i2007). Kappa v alues Interpre tation <0 Poor agreement 0.0 - 0.20 Slight agreement 0.21 - 0.40 Fair agreement 0. 41 - 0.60 Moderate agreement 0.61 - 0 . 80 Substantial agreement 0.81 - 1.0 Almost perfect agreement Table 2: Interpretation of Fleiss' kappa (κ) (Landis and Koch 1977) 2.2.2 Negative Hotel Reviews Similar approach was carried out by (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013) in assessing the performance of humans in identifying deceptive negative reviews. (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013) solicited three volunteer undergraduate university students to make assessment on a subset of the negative review. Additionally, to test the extent to which the individual human judges were biased, performance of two virtual meta-judges were also evaluated. Specifically, the MAJORITY meta-judge predicted “deceptive” when at least two out of three human judges believed the review to be deceptive, and the SKEPTIC meta-judge predicted “deceptive” when any human judge believed the review to be deceptive. TRUTHFUL DECEPTIVE Accuracy Precision Recall F-score Precision Recall F-score HUMAN JUDGE 1 65.0% 65.0 65.0 65.0 65.0 65.0 65.0 JUDGE 2 61.9% 63.0 57.5 60.1 60.9 66.3 63.5 JUDGE 3 57.5% 57.3 58.8 58.0 57.7 56.3 57.0 META MAJORITY 69.4% 70.1 67.5 68.8 68.7 71.3 69.9 6 SKEPTIC 58.1% 78.3 22.5 35.0 54.7 93.8 69.1 Table 3 : Detection deception performance of human judges - (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013) (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013) ifound iout ifrom ithe iresults ithat ihuman ijudges iwere inot iparticularly ieffective iat ithis itask. iThe ibest ihuman ijudge iwas i65% iaccurate. iHowever, iwhile ithe ibest ihuman ijudge iwas iaccurate i65% iof ithe itime, iinter-annotator iagreement icomputed iusing iFleiss’ ikappa iwas ionly islight iat i0.07 i(Landis and Koch 1977). Even the majority meta judge could achieve only 69.4% accuracy. Thus, it was clear from the above-mentioned researches carried out by (Ott, Choi, et al. 2011) & (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013) that humans performed miserably in identifying deception in textual reviews be it positive or negative. 2.3 AUTOMATED APPROACH In this section we present various automated approaches utilized by various researchers to identify deception in online reviews and the outcomes received by them. 2.3.1 Genre identification In the genre identification approach to deceptive opinion spam detection, it will be fruitful to test if a relationship exists between truthful and deceptive reviews by constructing, for each review, features based on the frequencies of each POS (Parts of Speech) tag. Such approaches were carried out in various research as carried out by (Ott, Choi, et al. 2011) on positive reviews. Such features also provide a good baseline with which to compare our other automated approaches. (Bachenko, Fitzpatrick and Schonwetter 2008) utilized POS Tagging and achieved 74.9% of True / False propositions correctly in research “Verification and Implementation of Language-Based Deception Indicators in Civil and Criminal Narratives”. 2.3.2 LIWC The iLinguistic iInquiry iand iWord iCount i(LIWC) isoftware i(Pennebaker, et al. 2007) iis ia ipopular iautomated itext ianalysis itool. iIt ihas ibeen iused ito idetect ipersonality itraits (Mairesse, et al. 2007), to study itutoring idynamics i(Cade, Lehman and Olney 2010), iand, imost irelevantly, ito ianalyze ideception i(Hancock, et al. 2007); i(Mihalcea and Strapparava 2009); i(Vrij, et al. 2007). While iLIWC idoes inot iinclude ia itext iclassifier, ifeatures iderived ifrom ithe iLIWC ioutput ican ibe iused. iLIWC icounts iand igroups ithe inumber iof iinstances iof inearly i4,500 ikeywords iinto i80 ipsychologically imeaningful idimensions. iIt iwas iutilized by (Ott, Choi, et al. 2011). One ifeature ifor ieach iof ithe i80 iLIWC idimensions iwere iconstructed iby (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013), iwhich iwere isummarized ibroadly iunder ithe ifollowing ifour icategories: 1. iLinguistic iprocesses: iFunctional iaspects iof itext i(e.g., ithe iaverage inumber iof iwords iper isentence, ithe irate iof imisspelling, iswearing, ietc.) 7 2. Psychological iprocesses: iIncluded iall isocial, iemotional, icognitive, iperceptual iand ibiological iprocesses, ias iwell ias ianything irelated ito itime ior ispace. 3. iPersonal iconcerns: iAny ireferences ito iwork, ileisure, imoney, ireligion, ietc. i 4. iSpoken icategories: iPrimarily ifiller iand iagreement iwords. (Ott, Choi, et al. 2011)’s focus was on psycholinguistic approach to deception detection on LIWC- based features. LIWC was also utilized by (Cagnina and Rosso 2015) to perform deception identification for textual reviews. LIWC software was also utilized by (Williams, et al. 2014) to distinguish between truthful and deceptive statements. 2.3.3 Text Categorization This approach to deception detection allows the model to learn from both content and context with n-gram features. Specifically, following three n-gram feature sets, were considered with the corresponding features lowercased and unstemmed by (Ott, Choi, et al. 2011): UNIGRAMS, BIGRAMS+, TRIGRAMS+, where the superscript + indicated that the feature set subsumes the preceding feature set. (Ott, Choi, et al. 2011) established that automated classifiers outperform human judges for every metric. They used all the three automated approaches mentioned like genre identification, psycholinguistic deception detection and text categorization. TRUTHFUL DECEPTIVE Approach Features Accuracy Precision Recall F-score Precision Recall F-score GENRE IDENTIFICATION POSSVM 73.0% 75.3 68.5 71.7 71.1 77.5 74.2 PSYCHOLINGUISTIC DECEPTION DETECTION LIWCSVM 76.8% 77.2 76.0 76.6 76.4 77.5 76.9 TEXT CATEGORIZATION UNIGRAMSSVM 88.4% 89.9 86.5 88.2 87.0 90.3 88.6 BIGRAMS+SVM 89.6% 90.1 89.0 89.6 89.1 90.3 89.7 LIWC+ BIGRAMS+SVM 89.8% 89.8 89.8 89.8 89.8 89.8 89.8 TRIGRAMS+SVM 89.0% 89.0 89.0 89.0 89.0 89.0 89.0 UNIGRAMSNB 88.4% 92.5 83.5 87.8 85.0 93.3 88.9 BIGRAMS+NB 88.9% 89.8 87.8 88.7 88.0 90.0 89.0 TRIGRAMS+NB 87.6% 87.7 87.5 87.6 87.5 87.8 87.6 HUMAN / META JUDGE 1 61.9% 57.9 87.5 69.7 74.4 36.3 48.7 JUDGE 2 56.9% 53.9 95.0 68.8 78.9 18.8 30.3 SKEPTIC 60.6% 60.8 60.0 60.4 60.5 61.3 60.9 Table 4: Performance for three approaches against human judges - (Ott, Choi, et al. 2011) Standard in-gram–based itext icategorization itechniques ihave ibeen ishown ito ibe ieffective iat idetecting ideception iin itext i(Jindal and Liu 2008); i(Mihalcea and Strapparava 2009); i(Ott, Choi, et al. 2011). (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013) evaluated ithe iperformance iof ilinear iSupport iVector iMachine i(SVM) iclassifiers itrained iwith iunigram iand ibigram iterm-frequency ifeatures ion ithe inovel inegative ideceptive iopinion ispam idataset. iThey iemployed ithe isame i5-fold istratified icross-validation i(CV) iprocedure ias i(Ott, Choi, et al. 2011), iwhereby ifor ieach icross-validation 8 iiteration ithey itrained itheir imodel ion iall ireviews ifor i16 ihotels iand itested itheir imodel ion iall ireviews ifor ithe iremaining i4 ihotels. iThe iSVM icost iparameter, iC, iwere ituned iby inested icross-validation ion ithe itraining idata. iResults iappear iin iTable i4. iEach irow ilists ithe isentiment iof ithe itrain iand itest ireviews, iwhere i“Cross iVal.” icorresponds ito ithe icross-validation iprocedure idescribed iabove, iand i“Held iOut” icorresponds ito iclassifiers itrained ion ireviews iof ione isentiment iand itested ion ithe iother. iThe iresults isuggested ithat in-gram– ibased iSVM iclassifiers icould idetect inegative ideceptive iopinion ispam iin ia ibalanced idataset iwith iperformance ifar isurpassing ithat iof iuntrained ihuman ijudges. iCues ito ideception idiffer idepending ion ithe isentiment iof ithe itext. iCombined isentiment idataset iresults iin iperformance ithat iwas icomparable ito ithat iof ithe i“same isentiment” iclassifiers. T ru t h ful De ceptive Train Sentiment Test Sentiment Accuracy Precision Recall F-score Precision Recall F-score Positive (800 reviews) Positive (800 reviews, Cross Val.) 89,3% 89,6 88,8 89,2 88,9 89,8 89,3 Negative (800 reviews, Held Out) 75,1% 69,0 91,3 78,6 87,1 59,0 70,3 Negative (800 reviews) Positive (800 reviews, Held Out) 81,4% 76,3 91,0 83,0 88,9 71,8 79,4 Negative (800 reviews, Cross Val.) 86,0% 86,4 85,5 85,9 85,6 86,5 86,1 Combined (1600 reviews) Positiv e (800 reviews, Cross Val.) 88,4% 87,7 89,3 88,5 89,1 87,5 88,3 Ne gative (800 reviews, Cross Val.) 86,0% 85,3 87,0 86,1 86,7 85,0 85,9 Table 5: Performance for different train and test sets - (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013) 2.3.4 Character n-grams in token The imain idifference iof icharacter in-grams iin itokens iwhich (Cagnina and Rosso 2015) iused, iwith irespect ito ithe itraditional iNLP ifeature icharacter in-grams, iwas ithe iconsideration iof ithe itokens ifor ithe iextraction iof ithe ifeature. iTokens iwith iless ithan in icharacters iwere inot iconsidered iin ithe iprocess iof iextraction ineither iblank ispaces. iCharacter in-grams iin itokens ipreserved ithe imain icharacteristics iof ithe istandard icharacter in-grams: ieffectiveness ifor iquantifying ithe iwriting istyle iused iin ia itext, ithe iindependence iof ilanguage iand idomains, ithe irobustness ito inoise ipresent iin ithe itext, iand, ieasiness iof iextraction iin iany itext. iBut iunlike ithe itraditional icharacter in-grams, ithe iproposed ifeature iobtained ia ismaller iset iof iattributes, ithat iis, icharacter in-grams iin itokens iavoided ithe ineed iof ifeature idimension ireduction. iThe inumber iof iattributes iobtained iwith ithe icharacter in-grams iin itokens ifeature iwas iconsiderably iless, ialthough ithe ieffectiveness iof ithis irepresentation iwas istill ibeing igood. i 2.3.5 Emotions-based feature (Cagnina and Rosso 2015) - There were some evidences that liars use more negative emotions that truth-tellers. Based on that, researchers obtained the percentages of positive, negative, and neutral emotions contained in the sentences of a review. Then, they used those values as features to 9 represent the polarity of the text. They obtained the polarities of each sentence and then they obtained the percentages of the polarities associated to the whole review. Finally, they used those values as features. (Cagnina and Rosso 2015) iused iterm ifrequency iinverse idocument ifrequency i(tf-idf) iweighting ischeme. iThe ionly itext ipreprocessing imade iwas ito iconvert iall iwords ito ilowercase icharacters. iNaïve iBayes iand iSVM ialgorithms iin iWeka iwere iused ito iperform ithe iclassification. iResearchers ionly ishowed ithe iresults iobtained iwith iSVM ibecause iits iperformance iwas ithe ibest. iFor iall iexperiments ithey iperformed ia i10-fold icross-validation iprocedure iin iorder ito istudy ithe ieffectiveness iof ithe iSVM iclassifier iwith ithe idifferent irepresentation. iF-measure iof ivarious ifeatures ifor idifferent isets iof ireviews i(positive, inegative iand iall-combined) iare ienumerated iin iTable i6. Features F - measure 800 positive reviews 800 negative reviews 160 0 all reviews 3 - grams in tokens 0.821 0 . 826 0. 7 66 4 - g rams in tokens 0.871 0.851 0.867 LIWC 0.697 0.69 0.676 3 + 4 - grams in tokens 0.873 0 .832 0 .854 3 - grams + POSNEG 0.871 0.827 0.858 4 - grams + POSNEG 0.873 0.851 0.87 3 + 4 - grams + POSN EG 0.877 0.827 0.851 3 - grams + LIWC 0. 8 83 0. 8 5 0 .866 4 - grams + LIWC 0.890 0.865 0. 879 Table 6 : F-measure of various applied features - (Cagnina and Rosso 2015) Four isingle ifeatures i(3-grams iin itokens, i4-grams iin itokens, iLIWC i& iPOSNEG) iwere itried ias ian iinput ito ithe imodel. iSingle iemotions-based ifeature i(POSNEG iin ithe itable) idid inot iobtain igood iresults; ifor ithat ireason, iit iwas inot iincluded iin ithe ifirst ipart iof ithe itable. iIn ithe isecond ipart iof ithe itable, ithe icombination iof ieach isingle ifeature iwas iused ias irepresentation iof ithe ireviews. iThe ibest iresult iwas iobtained iwith ithe icombination iof i4-grams iin itokens iand ithe iarticles, ipronouns iand iverbs i(LIWC). iWith ithe icombination iof i3-grams iand iLIWC ifeature ithe iF-measure iis iquite isimilar. 2.3.6 PU Method (Fusilier, et al. 2013) utilized iPU-learning iwhich iis ia ipartially isupervised iclassification itechnique. iIt iis idescribed ias ia itwo-step istrategy iwhich iaddresses ithe iproblem iof ibuilding ia itwo-class iclassifier iwith ionly ipositive iand iunlabeled iexamples. iBroadly ispeaking ithis istrategy iconsisted iof itwo imain isteps:  To iidentify ia iset iof ireliable inegative iinstances ifrom ithe iunlabeled iset  To iapply ia ilearning ialgorithm ion ithe irefined itraining iset ito ibuild ia itwo-class iclassifier. In ithe ifirst istep ithe iwhole iunlabeled iset iwas iconsidered ias ithe inegative iclass. iThen, iclassifier iwas itrained iusing ithat iset-in iconjunction iwith ithe iset iof ipositive iexamples. iIn ithe isecond istep, ithe iclassifier iwas iused ito iclassify i(automatically ilabel) ithe iunlabeled iset. iThe iinstances ifrom ithe iunlabeled iset iclassified ias ipositive iwere ieliminated; ithe irest iof ithem iwere iconsidered ias ithe ireliable inegative iinstances ifor ithe inext iiteration. iThis iiterative iprocess iwas irepeated iuntil ia istop icriterion iwas ireached. iFinally, ithe ilatest ibuilt iclassifier iwas ireturned ias ithe ifinal iclassifier. 10 Algorit hm for PU Learning i ←1 |W 0 | ←|U 1 | |W 1 | ←|U 1 | W hile |W i| <=|Wi −1|do C i ← Generate Classifier (P , U i ) U L i ← C i (U i ) W i ← Extract _ Positives ( U L i ) U i +1 ← U i −W i i ← i +1 Return Classi fier C i Table 7: PU-Learning algorithm for opinion spam detection - (Fusilier, et al. 2013)  P is the set of positive instances and  Ui represents the unlabeled set at iteration i;  U1 is the original unlabeled set.  Ci is used to represent the classifier that was built at iteration i, and  Wi indicates the set of unlabeled instances classified as positive by the classifier Ci. Table i7 i(algorithm) ipresents ithe iformal idescription iof ithe imethod. iIn ithis ialgorithm, iinstances i(W1) ihad ito ibe iremoved ifrom ithe itraining iset ifor ithe inext iiteration. iTherefore, ithe inegative iclass ifor inext iiteration iwas idefined ias iUi i−Wi. iLine i4 iof ithe ialgorithm ishowed ithe istop icriterion ithat iwas iused iin iour iexperiments, i|Wi| i<= i|Wi−1|. iThe iidea iof ithis icriterion iwas ito iallow ia icontinue ibut igradual ireduction iof ithe inegative iinstances. They iused iNaive iBayes iand iSVM iclassifiers ias ilearning ialgorithms iin iPU-learning imethod. iThese ilearning ialgorithms ias iwell ias ithe ione-class iimplementation iof iSVM iwere ialso iused ito igenerate ibaseline iresults. iIn iall ithe iexperiments ithey iused ithe idefault iimplementations iof ithese ialgorithms. iResults iwere idivided iinto ithree igroups: ibaseline iresults, ione-class iclassification iresults, iand iPU ilearning iresults iwhich iare iin iTable i8 iand iTable i9:  Baseline iresults: iThe ibaseline iresults iwere iobtained iby itraining ithe iNB iand iSVM iclassifiers iusing ithe iunlabeled idataset ias ithe inegative iclass. iIt ialso icorresponded ito ithe iresults iof ithe ifirst iiteration iof ithe iproposed iPU ilearning ibased imethod. iThe irows inamed ias i“BASE iNB” iand i“BASESVM” ishowed ithese iresults. iThe iresults iclearly iindicated ithe icomplexity iof ithe itask iand ithe iinadequacy iof ithe itraditional iclassification iapproach. iThe ibest if-measure iin ithe ideceptive iopinion iclass i(0.68) iwas iobtained iby ithe iNB iclassifier iwhen iusing i120 ipositive iopinions ifor itraining. iFor ithe icases iconsidering ia ismaller inumber iof itraining iinstances, ithis iapproach igenerated ivery ipoor iresults. iNB ioutperformed iSVM iin iall icases.  One-class iclassification iresults: iThis ialgorithm ionly iused ithe ipositive iexamples ito ibuild ithe iclassifier iand idid inot itake iadvantage iof ithe iavailable iunlabeled iinstances. iIts iresults iwere ishown iin ithe irows inamed ias i“ONE iCLASS”; ithose iresults iwere ivery iinteresting isince iclearly ishow ithat ithis iapproach iwas ivery irobust iwhen ithere iwere ionly isome iexamples iof ideceptive 11 iopinions. iOn ithe icontrary, iit iwas ialso iclear ithat ithis iapproach iwas ioutperformed iby iothers, iespecially iby iour iPU-learning ibased imethod, iwhen imore itraining idata iwas iavailable. i  PU-Learning iresults: iRows ilabeled ias i“PU-LEA iNB” iand i“PU-LEA iSVM” ishowed ithe iresults iof ithe iproposed imethod iwhen ithe iNB iand iSVM iclassifiers iwere iused ias ibase iclassifiers irespectively. Results iindicated ithat:  The iapplication iof iPU ilearning iimproved ibaseline iresults iin imost iof ithe icases, iexcept iwhen iusing i20 iand i40 ipositive itraining iinstances; i  PU-Learning iresults iclearly ioutperformed ithe iresults ifrom ithe ione-class iclassifier iwhen ithere iwere iused imore ithan i60 ideceptive iopinions ifor itraining.  Results ifrom i“PU-LEA iNB” iwere iusually ibetter ithan iresults ifrom i“PU-LEA iSVM”. iIt iwas ialso iimportant ito inotice ithat iboth imethods iquickly iconverged, irequiring iless ithan iseven iiterations ifor iall icases. iIn iparticular, i“PU-LEA iNB” itook imore iiterations ithan i“PU-LEA iSVM”, ileading ito igreater ireductions iof ithe iunlabeled isets, iand, iconsequently, ito ia ibetter iidentification iof ithe isubsets iof ireliable inegative iinstances. Original Training Set Approach Truthful Deceptive Iteration Final Training Set Precision Recall F-score Precision Recall F-score 20-D 520-U ONE CLASS 0.500 0.688 0.579 0.500 0.31 3 0.385 BASE NB 0.506 1.000 0.672 1 .000 0.025 0.049 PU - LEA NB 0.506 1.000 0.672 1.000 0. 025 0.049 5 20 - D/493 - U BASE SVM 0.500 1.000 0.667 0.000 0.000 0.000 PU - LEA SVM 0.500 1.000 0. 667 0.000 0.000 0.000 4 20 - D/518 - U 40-D 520-U ONE CLASS 0.520 0.650 0.578 0. 533 0.400 0.457 BASE NB 0.517 0.975 0.675 0.778 0.088 0.157 PU - LEA NB 0.517 0 .975 0.675 0.778 0.088 0.157 4 40 - D/479 - U BASE SVM 0.519 1.000 0.684 1.0 00 0.075 0.14 0 PU - LEA SVM 0.516 0.988 0.678 0.857 0.075 0.138 3 40 - D/483 - U 60-D 520-U ONE CLASS 0.500 0. 5 00 0.500 0.500 0.5 00 0.500 BASE NB 0.569 0.97 5 0.719 0.913 0.26 3 0.408 PU - LEA NB 0.574 0.975 0.722 0.917 0.275 0.423 3 60 - D/449 - U B ASE SVM 0.510 0 .938 0.661 0.615 0.100 0.172 PU - LEA SVM 0.517 0.950 0.670 0.692 0.113 0.194 3 60 - D/450 - U Table 8 : Comparison of classifiers using 20, 40 & 60 D samples-(Fusilier, et al. 2013) Or iginal Training Set Approach Truthful Deceptive Iteration Final Training Set Precision Recall F-score Precision Recall F-score 80-D 520-U ONE CLASS 0.494 0.525 0.509 0.493 0.463 0.478 BASE NB 0.611 0.963 0.748 0.912 0.388 0.544 PU - LEA NB 0.615 0.938 0.743 0.868 0.413 0.559 6 8 0 - D/267 - U BASE SVM 0.543 0.938 0.688 0.773 0.213 0.333 PU - LEA SVM 0.561 0.925 0.698 0.786 0.275 0.407 3 80 - D/426 - U 12 100-D 520-U ONE CLASS 0.482 0.5 13 0.497 0.480 0.450 0.46 5 BASE N B 0.623 0.950 0 .752 0.895 0.425 0.576 PU-LEA NB 0.882 0.750 0.811 0.783 0.900 0.837 7 100-D/140-U BASE SVM 0.540 0.938 0.685 0.762 0.200 0.317 PU-LEA SVM 0.608 0.913 0.730 0.825 0.413 0.550 4 100-D/325-U 120-D 520-U ONE CLASS 0. 494 0.525 0 . 5 0 9 0.493 0.463 0.478 BASE NB 0.679 0.9 50 0.792 0.917 0.550 0.687 PU - L EA NB 0.708 0.850 0.773 0.789 0.781 0.780 5 120 - D/203 - U BASE SVM 0.581 0.938 0.718 0.839 0.325 0.468 PU - LEA SVM 0.615 0.738 0.670 0.672 0.538 0.597 6 120 - D/169 - U Table 9 : Comparison of classifiers using 80, 100 & 120 D Samples - (Fusilier, et al. 2013) The best result obtained by the proposed method (F-measure of 0.837 in the deceptive opinion class) was a very important results since it was comparable to the best result (0.89) reported for this collection/task, but when using 400 positive and 400 negative instances for training. Moreover, this result was also far better than the best human result obtained in this dataset, which, according to (Ott, Choi, et al. 2011) was around 60% of accuracy. This study was conducted by researchers on the same gold standard dataset of 800 reviews - (Ott, Choi, et al. 2011). Here researchers proposed a method based on the PU-learning approach which learns only from a few positive examples and a set of unlabeled data. Evaluation results in a corpus of hotel reviews demonstrated the appropriateness of the proposed method for real applications since it reached a f-measure of 0.84 in the detection of deceptive opinions using only 100 positive examples for training. 2.3.7 Bi-gated Neural Network (Ren and Zhang 2016) iconducted ian iempirical istudy iwhere ithey iexplored ia ineural inetwork imodel ito ilearn idocument-level irepresentation ifor idetecting ideceptive iopinion ispam. iIn ithis ipaper, ithe iresearchers iemphasized ithat ithe iseminal iwork iof i(Jindal and Liu 2008), iemploying iclassifiers iwith isupervised ilearning, irepresented ilinguistic iand ipsychological icues ibut ifailed ito ieffectively irepresent ia idocument ifrom ithe iviewpoint iof iglobal idiscourse istructures. iFor iexample, i(Ott, Choi, et al. 2011)iand i(Li, et al. 2014) irepresented idocuments iwith iUnigram, iPOS iand iLIWC i(Linguistic iInquiry iand iWord iCount) ifeatures. iAlthough isuch ifeatures iperformed iquite istrongly, itheir isparsity imade iit idifficult ito icapture inon-local isemantic iinformation iover ia isentence ior idiscourse. iResearchers ihighlighted ithe ithree-fold ipotential iadvantages iof iusing ineural inetworks ifor ispam idetection. iFirst, ineural imodels iuse idense ihidden ilayers ifor iautomatic ifeature icombinations, iwhich ican icapture icomplex iglobal isemantic iinformation ithat iis idifficult ito iexpress iusing itraditional idiscrete imanual ifeatures iwhich iis ivery iuseful iin iaddressing ithe ilimitation iof idiscrete imodels imentioned iabove. iSecond, ineural inetworks itake idistributed iword iembeddings ias iinputs, iwhich ican ibe itrained ifrom ia ilarge-scale iraw itext, ithus ialleviating ithe isparsity iof iannotated idata ito isome iextent. iThird, ineural inetwork imodels ican ibe iused ito iinduce idocument irepresentations ifrom isentence irepresentations, ileveraging isentence iand idiscourse iinformation. 19 Figure 3 : Distribution of text length of restaurant reviews The distribution is unimodal since we have one peak and it is slightly positive skewed. The tail is pulled by some outliers consisting of long textual reviews. This is also explained by the fact that mean is larger than the median. 3.1.3 Doctors Reviews In this section, we present below the doctors’ reviews:  Source - We borrow the data from (Li, et al. 2014).  Metadata We upload 400 files – reviews related with doctors. We create three fields in the data frame in python. Description of the fields are: o Type – It consists of 0 or 1 where 0 is truthful and 1 is truthful reviews o Number – This is the name of the file. o Review – It contains the review.  Data Listing - Table 18 is the listing of unique data in each of the 5 fields: Type Number Review 0 1 1.t xt 2.txt .. … 400.txt 400 textual reviews Table 18 : Unique list of data in each field  Gold standard dataset - Dataset is gold standard since it is perfectly balanced for each category as depicted in table 19: Particul a r s Truthful or Deceptive Doctor reviews 20 Categories Deceptive 200 400 reviews Categories Truthful 200 400 reviews To tal 4 00 r eviews 400 revie ws Table 19 : Gold standard perfectly balanced dataset  Text Length Analysis - We performed analysis of length of the text. In table 20 are some key statistics around it. The statistics and numbers are uncannily like restaurant dataset. Measures Text length Count 400.00000 Mean 762.91500 Std 584.24463 Min 174.00000 25% 422.50000 50% 636.00000 75% 940.25000 Max 6148.00000 Table 20 : Five descriptive statistics of the length of text (Doctor) Figure 4 : Distribution of text length of Doctor reviews The distribution is unimodal since we have one peak and it is slightly positive skewed. The tail is pulled by some outliers consisting of long textual reviews. This is also explained by the fact that mean is larger than the median. The distribution is same as distribution of restaurant dataset. 3.2 NATURAL LANGUAGE PROCESSING Natural language processing (NLP) is the ability of a computer program to understand human language. NLP is a component of artificial intelligence (AI). Difficulty of NLP arise from the fact that human language is ambiguous whereas traditionally we communicate with computers based on 21 highly structured and precise programming language. Below are the key concepts of NLP which we utilize in our current project. 3.2.1 Stemming Stemming is the process of cutting off the word or reducing the word. The stemmed word may or may not have meaning. Example: “Happening” is converted to “Hap” by stemming. Now “Hap” does not have meaning. “Happened” is converted to “Hap” by stemming. Now “Hap” does not have meaning. “Seeing” is converted to “See” by stemming. But “See” have meaning. 3.2.2 Lemmatization Lemmatization is the process of reducing the word to its base form. The lemmatized word always has meaning. Example: “Happening” is converted to “Happen” by lemmatization. “Happened” is converted to “Happen” by lemmatization. 3.2.3 Parts of Speech Tagging Parts of Speech Tagging is the process of marking each word in the corpus to a part of speech. Example: “My name is Bhupendra” “My” is marked as Pronoun; “name” is marked as Noun; “is” is marked as Verb; “Bhupendra” is marked as Noun. 3.3 TEXT TRANSFORMATION METHOD We perform text normalization before feeding the textual reviews to the models. The transformations are:  Lower case conversion – To convert the entire textual review to lower text.  Punctuation removal – To remove all punctuations  Numbers removal – To get rid of all numeric characters  Stop word removal – To get rid of all stop words like “a”, “an”,” and”, etc. since they do not add much value.  Extra white space removal – To get rid of extra white spaces. After performing above text normalization, we perform one of the below transformations prior to feeding the input to the model. 3.3.1 Lemmatization 22 Post text normalization, we lemmatize the textual reviews to convert all words to base root and create an array like a binary matrix of all words in the review. This matrix is fed to various models utilized as an input. 3.3.2 Stemming Post text normalization, we perform stemming on all the textual reviews to convert all words and brutally truncate the endings even if it doesn’t make sense and create an array like a binary matrix of all words in the review. This matrix is fed to various models utilized as an input. 3.3.3 POS Tagging Post text normalization, we create a matrix of continuous numbers where each number represent the percentage of each of the grammatical structures. This matrix is fed to various models as an input. 3.3.4 Lemmatization and POS Tagging Post text normalization, we lemmatize all words in the reviews to convert them to the base root. Post lemmatization, we further create a matrix of continuous numbers where each number represent the percentage of each of the grammatical structures. This matrix is fed to various models as an input. 3.4 DATA SOURCE We borrow the 1600 hotel reviews consisting of 800 deceptive and 800 truthful reviews from (Ott, Choi, et al. 2011) & (Ott, Cardie and Hancock, Negative Deceptive Opinion Spam 2013). Also, we utilize the restaurant reviews dataset and doctors’ reviews dataset from (Li, et al. 2014). 3.5 DATA SPLIT We split the hotel reviews dataset into 75% training data and 25% test data. Further we use the entire dataset of restaurant reviews and doctors for testing although we train our models with just hotel reviews. We do this to evaluate cross domain usability. Additionally, we perform K4-fold validation on 75% training data. 3.6 MODELS In this section, we present all the six models used in the research. 3.6.1 Logistic Regression 23 According to (Korkmaz, Güney and Yİğİter 2012), logistic iregression ianalysis iis ione iof ithe imostly ipreferred iregression imethods ithat ican ibe iimplemented iin imodelling ibinary idependent ivariables. iLogistic iregression iis ia imathematical imodelling iapproach iused ito idefine ithe irelationship ibetween isuch iindependent ivariables ias iX1, iX2, i…, iXn iand iY ibinary idependent ivariable iwhich iis icoded ias i0 ior i1 ifor itwo ipossible icategories. 3.6.2 Naïve Bayes As per (Kaviani and Dhotre 2017), Naive iBayes iis ia iclassification ialgorithm iwhich iis ibased ion iBayes itheorem iwith istrong iand inaïve iindependence iassumptions. iIt isimplifies ilearning iby iassuming ithat ifeatures iare iindependent iof igiven iclass. iNaïve iBayes iis ia isubset iof iBayesian idecision itheory. iIt’s icalled inaive ibecause ithe iformulation imakes isome inaïve iassumptions. iPython’s itext-processing iabilities iwhich isplit iup ia idocument iinto ia ivector iare iused. iThis ican ibe iused ito iclassify itext. iClassifies imay iput iinto ihuman-readable iform. iIt iis ia ipopular iclassification imethod iin iaddition ito iconditional iindependence, ioverfitting, iand iBayesian imethods. iIn ithe iface iof ithe isimplicity iof iNaive iBayes, iit ican iclassify idocuments isurprisingly iwell. iInstinctively ia ipotential ijustification ifor ithe iconditional iindependence iassumption iis ithat iif ithe idocument iis iabout ipolitics, ithis iis ia igood ievidence iof ithe ikinds iof iother iwords ifound iin ithe idocument. iNaive iBayes iis ia ireasonable iclassifier iin ithis isense iand ihas iminimal istorage iand ifast itraining, iit iis iapplied ito itime-storage icritical iapplications, isuch ias iautomatically iclassifying iweb ipages iinto itypes iand ispam ifiltering. 3.6.3 Support Vector Machine (Srivastava and Bhambhu 2010) mentioned that SVMs iare iset iof irelated isupervised ilearning imethods iused ifor iclassification iand iregression. iThey ibelong ito ia ifamily iof igeneralized ilinear iclassification. iA ispecial iproperty iof iSVM iis, iSVM isimultaneously iminimize ithe iempirical iclassification ierror iand imaximize ithe igeometric imargin. iSo iSVM icalled iMaximum iMargin iClassifiers. iSVM iis ibased ion ithe iStructural irisk iMinimization i(SRM). iSVM imap iinput ivector ito ia ihigher idimensional ispace iwhere ia imaximal iseparating ihyperplane iis iconstructed. iTwo iparallel ihyperplanes iare iconstructed ion ieach iside iof ithe ihyperplane ithat iseparate ithe idata. iThe iseparating ihyperplane iis ithe ihyperplane ithat imaximize ithe idistance ibetween ithe itwo iparallel ihyperplanes. iAn iassumption iis imade ithat ithe ilarger ithe imargin ior idistance ibetween ithese iparallel ihyperplanes ithe ibetter ithe igeneralization ierror iof ithe iclassifier iwill ibe. 3.6.4 Random Forest (Breiman 2001) idescribed ithat irandom iforests iare ia icombination iof itree ipredictors isuch ithat ieach itree idepends ion ithe ivalues iof ia irandom ivector isampled iindependently iand iwith ithe isame idistribution ifor iall itrees iin ithe iforest. iThe igeneralization ierror ifor iforests iconverges ia.s. ito ia ilimit ias ithe inumber iof itrees iin ithe iforest ibecomes ilarge. iThe igeneralization ierror iof ia iforest iof itree iclassifiers idepends ion ithe istrength iof ithe iindividual itrees iin ithe iforest iand ithe icorrelation ibetween ithem. iA irandom iforest iis ia iclassifier iconsisting iof ia icollection iof itree-structured iclassifiers i{h(x,Θk i), ik=1, i...} iwhere ithe i{Θk} iare iindependent iidentically idistributed irandom ivectors iand ieach itree icasts ia iunit ivote ifor ithe imost ipopular iclass iat iinput ix i. 24 3.6.5 Extreme Gradient Boosting (Chen and Guestrin 2016), the pioneers of extreme gradient boosting, described Tree boosting as a highly effective and widely used machine learning method. It iis ia iscalable iend-to-end itree iboosting isystem icalled iExtreme iGradient iBoosting, iwhich iis iused iwidely iby idata iscientists ito iachieve istate-of- the-art iresults ion imany imachine ilearning ichallenges. iIt iis ia inovel isparsity-aware ialgorithm ifor isparse idata iand iweighted iquantile isketch ifor iapproximate itree ilearning. iExtreme iGradient iBoosting iscales ibeyond ibillions iof iexamples iusing ifar ifewer iresources. 3.6.6 Neural Network A neural network is series of algorithms where inputs are passed through layers with certain weights. Then the predictions are compared with actual output using loss function. Loss score is calculated based on the comparison. An optimizer uses the loss score to optimize the weights and the process is repeated with new weights. Process terminates when a stop criterion is reached. 3.7 “360 DEGREE” PROCESS VIEW Here, we present below in figure 5 entire 360-degree view of the process. Figure 5 : 360-degree process view from start to end We present below a summary of the action items performed in this research 25  Data Analysis – We kick start our actions on the datasets by performing basic statistical analysis on the text length of hotel, restaurant and doctors’ reviews. We check the count of deceptive and truthful reviews in all the three available datasets. We also check the count of positive and negative sentiment reviews in hotel reviews. We try to explore if the dataset is balanced or not.  Transformations – We perform the transformation on the textual reviews as described in section “TEXT TRANSFORMATION METHOD”. We transform the label (output variables) – deceptive and truthful to binary numbers.  Split – We split the transformed hotel reviews in 75% for training and 25% for testing.  Training – We train the model using one of the models discussed above and feeding it 75% of training of hotel reviews.  Testing – We feed the trained model with 25% of testing data of hotel reviews, restaurant reviews and doctors’ reviews  Predictions – We perform the classification on the testing data of hotel reviews, restaurant reviews and doctors’ reviews using the knowledge learned from training.  Evaluation – We compare the classification output received from testing against the actual output.  Score – We calculate various metrices like precision, recall, accuracy, f-score, etc. for the predicted classification output provided by the models. 3.8 EVALUATION MEASURES In this section, we present below output capturing methodologies used to evaluate the various transformations used on inputs and to evaluate various models used, 3.8.1 Confusion Matrix We use confusion matrix to measure and evaluate the performance of our classification models. Prediction Actual Values 0 1 0 True Negative (TN) False Positive (FP) 1 False Negative (FN) True Positive (TP) Table 21 : Confusion matrix True Positive – These are those observations where both and predicted and actual output is true (1). True Negative - These are those observations where both and predicted and actual output is false (0). False Positive - These are those observations where the predicted output is true (1) whereas the actual output is false (0). False Negative – These are those observations where the predicted output is false (0) whereas the actual output is true (1). 26 Table 22 : TPR, FPR, Precision, Recall and F score 3.8.2 Accuracy Accuracy score plays a vital role in our analysis, later in the thesis. Since we use this measure to compare various inputs and various models used. Figure 6 : Accuracy formulae 3.8.3 Area under curve (AUC) AUC represents degree or measure of separability. It tells how much model is capable of distinguishing between classes. Higher the AUC, better the model is at predicting 0s as 0s and 1s as 1s. By analogy, Higher the AUC, better the model is at classification. ROC curve is plotted with TPR (True Positive Rate) against the FPR (False Positive Rate) where TPR is on y-axis and FPR is on the xaxis. Area under ROC curve is referred to as AUC. Figure 7 : Area under curve 27 3.8.4 Hypothesis Testing It is used to check if different outputs(accuracies) are statistically similar or different at a desired confidence level. Hypoth esis Null Hypothesis - H0: Accuracy1 (x1) = Accuracy2 (x2) Alternative Hypothesis: Ha: Accuracy1 (x1) <> Accuracy2 (x2) T test score Where x1 = average accuracy of 1st sample x2 = average accuracy of 2nd sample sd1 = standard deviation of 1st sample sd2 = standard deviation of 2nd sample n1 = sample size of 1st sample n2 = sample size of 2nd sample t = t statistic of the model α = alpha or confidence level df = degrees of freedom Table 23 : Hypothesis testing using t-test Figure 8 : Distribution and t-test at 95% confidence with (n1 + n2 -2) df (Lippman 2020) Area marked by arrow is rejection are for two tailed z test at 95% confidence level. 28 3.8.5 Output Capture Methodology Table 24 is the methodology to capture output Sr. No. Headers Description Sample Values 1 Model Name of the model used LR, NB, SVM, RF, XGB, DL 2 Measures N ame of the meas u r e used to evaluate Precision, Recall, F-Score, Support, Accuracy 3 Features Name of the input variable used norm_lemma_ stopword, norm_stem_stopword, POS Tagging, Lemma_POS_Tagging 4 Train Training score 1 5 Test Testi n g s c o r e on hotel dataset. 0.867830 6 Restaurant T e sti ng sco re on re s taurant dataset. 0.77 7 Doctor Testing score on docto r dataset. 0.66 8 Parameters Paramete rs used to achieve the above score C=1000, kernel=rbf, gamma=0.01 Table 24: Output capture template design Scope of the output = 6 Models X 5 Measures X 4 Features = 120 records of Output 35 We present below in Table 31 the results of training and testing using Random Forest on various transformations method applied on the input. R andom Fores t Lemmatization Stemmatization POS Tagging Lemmatization + POS Tagging Hotel – Train Hotel – Test Restaurant – Test Doctor- Test Table 31 : Confusion matrix for all datasets/inputs used in Random Forest Table 31 is heatmap for the model random forest which is applied on all four inputs – normalized lemmatized words, normalized stemmed words, pos tagging and lemmatized pos tagging of the reviews, across all kinds of data – training dataset of hotel reviews, test dataset of hotel reviews, restaurant reviews and doctors reviews. Random forest performed well and gave a robust performance of 88% for both stemmed input words and lemmatized input words respectively on testing dataset of 25% of hotel reviews. It secured an accuracy of 66% and 67% for stemmed input words and lemmatized input words respectively on restaurant reviews whereas the performance declined to 63% for both stemmed and lemmatized input on doctor dataset. The performance of random forest drops when the model utilizes POS tagging input. It barely manages to secure an accuracy of 67% on testing dataset of hotel reviews, 64% on restaurant dataset and 59% on doctor dataset. Furthermore, the weakest performance is achieved by lemmatized pos tagging which barely secures 61% on testing data of hotel reviews, 57% on restaurant reviews and 48% for doctors’ reviews. 36 Random Fore st Le mm a t izat ion St em m atization POS Taggin g Lemmatization + POS Tagging Hotel – Train Hotel – Test Restaurant – Test Doctor – Test Table 32 : AUC for all datasets/inputs used in Random Forest In table 32 we can clearly see that area under curve declines as we move from testing dataset consisting of 25% of unseen data of hotel reviews to restaurant dataset and if reduces further on doctor dataset. This observation comes across in both lemmatized and stemmed inputs. Clearly the observation is similar in POS tagging input but the decline from one dataset to another dataset is less in POS tagging. Performance of lemmatized pos tagging is again the weakest. 4.1.5 Extreme Gradient Boosting We present below in Table 33 the results of training and testing using Extreme Gradient Boosting on various transformations method applied on the input. E xt reme G radie n t Boosting Lemmatization Stemmatization POS Tagging Le mmatizati on + POS Tagging Hotel – Train 37 Hotel – Test Restaurant - Test Doctor- Test Table 33 : Confusion matrix for all datasets/inputs used in Extreme Gradient Boosting Table 33 is heatmap for the model extreme gradient boosting which is applied on all four inputs – normalized lemmatized words, normalized stemmed words, pos tagging of the reviews and a mix of lemmatization and POS tagging, across all kinds of data – training dataset of hotel reviews, test dataset of hotel reviews, restaurant reviews and doctors reviews. Extreme gradient boosting performed moderately and gave a performance of 78% and 76% for stemmed input words and lemmatized input words respectively on testing dataset of 25% of hotel reviews. It secured an accuracy of 58% and 59% for stemmed input words and lemmatized input words respectively on restaurant reviews whereas the performance declined to 56% and 52% for stemmed and lemmatized input respectively on doctor dataset. The performance of extreme gradient boosting drops when the trained model is used on POS tagging input. It barely manages to secure an accuracy of 66% on testing dataset of hotel reviews, 63% on restaurant dataset and 61% on doctor dataset. The accuracy further drops to 57% on testing data of hotel reviews, 59% on restaurant reviews and 49% on doctors dataset for lemmatized POS Tagging. Extreme Gradi ent Boosting Lemmatization Stemmatization POS Tagging Le mmatization + POS Tagging Hotel - Train 38 Hotel - Test Restaurant - Test Doctor - Test Table 34 : AUC for all datasets/inputs used in Extreme Gradient Boosting In table 34 we can clearly see that area under curve declines as we move from testing dataset consisting of 25% of unseen data of hotel reviews to restaurant dataset. But strikingly, there is a negligible decline in performance from restaurant dataset to doctor dataset. This observation clearly comes across in both lemmatized and stemmed inputs. In POS tagging input the performance of the model trained with extreme gradient boosting is similar for all the datasets with very minimal drops at every stage – testing dataset of hotel reviews, restaurant dataset and doctor dataset. The overall accuracy of lemmatized POS Tagging is weakest compared to the rest. 4.1.6 Deep Learning - Neural Network We present below in Table 35 the results of training and testing using Deep Learning Neural Network on various transformations method applied on the input. N eu ral Netwo r k Lemmatization Stemmatization POS Tagging Lemmatizati on + POS Tagging Hotel – Train 39 Hotel – Test Restaurant – Test Doctor- Test Table 35 : Confusion matrix for all datasets/inputs used in Neural Network Table 35 is heatmap for the deep learning neural network model which is applied on all four inputs – normalized lemmatized words, normalized stemmed words, pos tagging of the reviews and a mix of lemmatization and POS Tagging, across all kinds of data – training dataset of hotel reviews, test dataset of hotel reviews, restaurant reviews and doctors reviews. Neural Network model performed well and gave the best performance of 91% for lemmatized input words and it secured an accuracy of 87% for stemmed input words on testing dataset of 25% of hotel reviews. It secured an accuracy of 70% for both stemmed input words and lemmatized input words on restaurant reviews whereas the performance declined to 62% for both stemmed and lemmatized input on doctor dataset. The performance of neural network drops when the trained model is used on POS tagging input. It barely manages to secure an accuracy of 59% on testing dataset of hotel reviews, 65% on restaurant dataset and 61% on doctor dataset. Unlike the other models, accuracy of lemmatized POS Tagging is better than accuracy of POS Tagging. Lemmatized POS Tagging secured an accuracy of 61% on testing data of hotel reviews. It secures an accuracy of 60% and 48% on restaurant and doctors’ dataset. Ne u ral Net w ork Lemmatization Stemmatization POS Tagging Lemma ti zation + POS Tagging Hotel – Train 40 Hotel – Test Restaurant – Test Doctor – Test Table 36 : AUC for all datasets/inputs used in Neural Network In table 36 we can clearly see that area under curve declines as we move from testing dataset consisting of 25% of unseen data of hotel reviews to restaurant dataset. But strikingly, there is a negligible decline in performance from restaurant dataset to doctor dataset. This observation clearly comes across in both lemmatized and stemmed inputs. In POS tagging input the performance of the model trained with extreme gradient boosting is similar for all the datasets with very minimal drops at every stage – testing dataset of hotel reviews, restaurant dataset and doctor dataset. The overall accuracy of lemmatized POS Tagging is weakest compared to the rest. 4.2 ANALYSIS OF RESULTS In this section, we present analysis of the results received from various experimentation. 4.2.1 Lemmatized vs Stemmed In this section, we analyze to find out how the change in input affects the output (i.e., accuracy of the prediction). For this, we perform hypothesis testing of output of 25% of unseen hotel reviews, restaurant reviews and doctors’ reviews for a pair of input. Based on statistical evaluation using t test, we conclude which input parameters to focus on and group some of the similar inputs. Null hypothesis: Accuracy of Lemmatized input of all models for all test data = Accuracy of Stemmed Input of all models for all test data Alternative hypothesis: Accuracy of Lemmatized input of all models for all test data <> Accuracy of Stemmed Input of all models for all test data 41 25% of unseen hotel reviews + restaurant + doctor Lemmatized Stemmed Degrees of freedom T statistic T score @95%, 34 df Status Mean 0,7142 0,70 81 34 0,1437 2, 03 20 Accept Null Stand ard Deviation 0,1285 0,1266 Number 18 18 Table 37 : Hypothesis testing of lemmatization and stemming It is concluded that the null hypothesis is not rejected. Therefore, there is not enough evidence to claim that the output population proportion of lemmatized input is different than stemmed input, at the 0.05 significance level. Figure 9: Plot of accuracy for lemmatization vs stemming Correlation co-efficient of accuracies of lemmatized input against stemmed input is 0.9867. Hence, we ignore the stemmed input and only consider lemmatized input further in our analysis since they are statistically similar. 4.2.2 POS Tagging vs Lemmatized POS Tagging Null hypothesis: Accuracy of POS tagging input of all models for all test data = Accuracy of lemmatized POS tagging input of all models for all test data Alternative hypothesis: Accuracy of POS tagging input of all models for all test data <> Accuracy of lemmatized POS tagging Input of all models for all test data 42 25% of unseen hotel reviews + restaurant + doctor POS Tagging Lemmatized POS Tagging Degrees of freedom T statistic T score @95%, 34 df Status Mean 0,6235 0,5607 34 3,2908 2, 032 0 Reject Null Standard Dev iation 0,0506 0,0632 Numbers 18 18 Table 38 : Hypothesis testing of POS Tagging and Lemmatization POS Tagging It is concluded that the null hypothesis is rejected. Therefore, there is enough evidence to claim that the output population proportion of POS tagging is different than lemmatized POS tagging, at the 0.05 significance level. Hence, we treat POS tagging and lemmatized POS tagging separately. Figure 10: Plot of accuracy for POS Tagging and Lemmatization POS Tagging Correlation co-efficient of POS Tagging against Lemmatized POS Tagging is 0.7358. We consider both POS Tagging and lemmatized POS Tagging in our analysis since their outcomes are statistically different at 95% confidence interval and the correlation coefficient of their accuracy outcomes is less than 75%. 4.2.3 Lemmatized vs POS Tagging Null hypothesis: Accuracy of Lemmatized input of all models for all test data = Accuracy of POS tagging input of all models for all test data Alternative hypothesis: Accuracy of Lemmatized input of all models for all test data <> Accuracy of POS tagging Input of all models for all test data 43 25% of unseen hotel reviews + restaurant + doctor Lemmatized POS Tagging Degrees of freedom T sta tistic T score @95%, 34 df Status Mean 0,7142 0,6235 34 2,7 866 2, 032 0 Reject Null Standard Deviation 0,1285 0,0506 Numbers 18 18 Table 39 : Hypothesis testing of Lemmatization and POS Tagging It is concluded that the null hypothesis is rejected. Therefore, there is enough evidence to claim that the output population proportion of lemmatized input is different than POS tagging, at the 0.05 significance level. Hence, we treat lemmatized input and POS tagging separately . Figure 11: Plot of accuracy for lemmatization vs POS Tagging Correlation co-efficient of accuracies of lemmatized input against POS Tagging is 0.6072. We consider both Lemmatized and POS Tagging in our analysis since their outcomes are statistically different in many cases at 95% confidence interval and the correlation coefficient of their accuracy outcomes is less than 75%. 4.2.4 Lemmatized vs Lemmatized POS Tagging Null hypothesis: Accuracy of Lemmatized input of all models for all test data = Accuracy of Lemmatized POS tagging input of all models for all test data Alternative hypothesis: Accuracy of Lemmatized input of all models for all test data <> Accuracy of Lemmatized POS tagging Input of all models for all test data 44 25% of unseen hotel reviews + restaurant + doctor Lemmati zed Lemmatized POS Tagging Degrees of freedom T statistic T score @95%, 34 df Status Mean 0,7142 0,5607 34 4,5476 2, 032 0 Reject Null Standard Deviation 0,1285 0,0632 Number 18 18 Table 40: Hypothesis testing of Lemmatized and Lemmatized POS Tagging It is concluded that the null hypothesis is rejected. Therefore, there is enough evidence to claim that the output population proportion of lemmatized input is different than lemmatized POS tagging, at the 0.05 significance level. Hence, we treat lemmatized input and lemmatized POS tagging separately. Figure 12: Plot of accuracies for Lemmatized vs Lemmatized POS Tagging Correlation co-efficient of accuracies of lemmatized input against Lemmatized POS Tagging is 0.6837. We consider both Lemmatized and Lemmatized POS Tagging in our analysis since their outcomes are statistically different at 95% confidence interval and the correlation coefficient of their accuracy outcomes is less than 75%. 4.2.5 Comparison of Inputs and Models Since lemmatized and stemmed inputs provides statistically similar output at 95% confidence interval, we drop stemmed input from further research and continue our research with lemmatized input and other inputs like POS tagging and lemmatized POS tagging. 51 5 CONCLUSIONS Normalized lemmatization and normalized stemmed data provide robust and better performance in the accuracy of identification of deception in reviews in same sectors/industries. However, it lacks generation capability across different sector/industries. Its performance declines rapidly as we move across to more different sectors. POS tagging provides better generation capability across sector or industries, but its performance is not as strong as the lemmatized or stemmed inputs. Hence, we can conclude that n-grams provides robust performance for similar industries since it derives its strength from actual words which contains the clues of deception. Whereas POS tagging has a good generalization capability since it doesn’t focus on words but the structural aspect of the grammar. So, POS is good for application across different industries which may contain different words or terminology. We do not endorse Lemmatized POS Tagging since it suffers from the disadvantage of both lemmatization and POS Tagging. Accuracy scores drops in Lemmatized POS Tagging since due to lemmatization we lose lots of grammatical structures which makes further POS Tagging less effective. Overall performance of lemmatization has far exceeded POS tagging. There is no difference in output of lemmatization and stemming at 95% significance level. Logistic regression, support vector machines, random forest and deep learning neural network have shown very robust performance on various datasets. Accuracy expectedly drops when the vocabulary of the reviews changes due to change in industry from hotels to restaurant and finally accuracy drops even more for doctors’ dataset. However, the decline is less steep than other models. Hence, it has better cross industries application. These are the recommended model for such research. Deep Learning Neural Network achieved the highest accuracy of 91% in classification on 25% of unseen testing data on hotel reviews. Naïve Bayes tends to perform similarly good like Logistic regression, support vector machine, random forest, and neural network on unseen data of hotel reviews but it also tends to perform comparatively worse in our analysis on unsimilar unseen data of doctor’s dataset. Naïve Bayes has a volatile performance. Extreme gradient boosting’s accuracy was weakest among other models; hence we do not endorse it for such classification for these kinds of dataset. 52 6 LIMITATIONS AND RECOMMENDATIONS FOR FUTURE WORKS There is a potential risk of overfitting while applying multiple models. Also, this is a very controlled experiment on a small dataset. Large volume of dataset may completely change the outcome of the study. There can be endless, tedious work on this topic to increase accuracy of the models used. Also, it will be interesting and important to enhance the performance for cross domain usability. Also, we can explore and do more on this topic by exploring below areas:  more models  other NLP techniques  other features 53 7 BIBLIOGRAPHY Asiri, Sidath. 2018. https://towardsdatascience.com/machine-learning-classifiers-a5cc4e1b0623. June 11. Accessed February 20, 2020. https://towardsdatascience.com/machine-learning- classifiers-a5cc4e1b0623. Bachenko, Joan, Eileen Fitzpatrick, and Michael Schonwetter. 2008. "Verification and Implementation of Language-Based Deception Indicators in Civil and Criminal Narratives." Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008) 41–48. https://www.aclweb.org/anthology/C08-1006.pdf. Breiman, Leo. 2001. "Random Forests." Machine Learning, Volume 45, Issue 1 5-32. https://www.stat.berkeley.edu/~breiman/randomforest2001.pdf. Cade, Whitney L., Blair A. Lehman, and Andrew Olney. 2010. "An Exploration of Off Topic Conversation." Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics 669-672. https://www.aclweb.org/anthology/N10-1096.pdf. Cagnina, Leticia, and Paolo Rosso. 2015. "Classification of deceptive opinions using a low dimensionality representation." 58-66. https://www.aclweb.org/anthology/W15-2909.pdf. Chandrayan, Pramod. 2015. https://towardsdatascience.com/logistic-regression-for-dummies-a- detailed-explanation-9597f76edf46. - -. Accessed February 20, 2020. https://towardsdatascience.com/logistic-regression-for-dummies-a-detailed-explanation- 9597f76edf46. Chen, Tianqi, and Carlos Guestrin. 2016. "XGBoost: A Scalable Tree Boosting System." KDD '16: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining 785-794. https://dl.acm.org/doi/10.1145/2939672.2939785. Fusilier, Donato Hernández, Rafael Guzmán Cabrera, Manuel Montes-y-Gómez, and Paolo Rosso. 2013. "Using PU-Learning to Detect Deceptive Opinion Spam." Proceedings of the 4th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis 38-45. https://www.aclweb.org/anthology/W13-1606.pdf. Garbade, Dr. Michael J. 2018. https://becominghuman.ai/a-simple-introduction-to-natural-language- processing-ea66a1747b32. October 15. Accessed February 20, 2020. https://becominghuman.ai/a-simple-introduction-to-natural-language-processing- ea66a1747b32. Hancock, Jeffrey T., Lauren E. Curry, Saurabh Goorha, and Michael Woodworth. 2007. "On Lying and Being Lied To: A Linguistic Analysis of Deception in Computer-Mediated Communication." Discourse Processes, Volume 45, 2007 - Issue 1 1-23. https://www.tandfonline.com/doi/full/10.1080/01638530701739181. 54 Jansen, Jim. 2010. pewresearch.org/internet/2010/09/29/online-product-research. September 29. Accessed February 20, 2020. https://www.pewresearch.org/internet/2010/09/29/onlineproduct-research/. Jindal, Nitin, and Bing Liu. 2008. "Opinion Spam and Analysis." WSDM '08: Proceedings of the 2008 International Conference on Web Search and Data Mining 219-230. https://dl.acm.org/doi/10.1145/1341531.1341560. Kaviani, Pouria, and Mrs. Sunita Dhotre. 2017. "Short Survey on Naive Bayes Algorithm." International Journal of Advance Engineering and Research Development, Volume 4, Issue 11 607-611. https://www.researchgate.net/publication/323946641_Short_Survey_on_Naive_Bayes_Algo rithm. Korkmaz, Murat, Selami Güney, and Şule Yüksel Yİğİter. 2012. "THE IMPORTANCE OF LOGISTIC REGRESSION IMPLEMENTATIONS IN THE TURKISH LIVESTOCK SECTOR AND LOGISTIC REGRESSION IMPLEMENTATIONS/FIELDS." J.Agric. Fac. HR.U. 25-36. http://static.dergipark.org.tr/article-download/imported/1101000025/1101000021.pdf? Landis, J. Richard, and Gary G. Koch. 1977. "The Measurement of Observer Agreement for Categorical Data." Biometrics, Vol. 33, No. 1 159-174. https://www.jstor.org/stable/2529310. Li, Jiwei, Myle Ott, Claire Cardie, and Eduard Hovy. 2014. "Towards a General Rule for Identifying Deceptive Opinion Spam." Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) 1566-1576. https://www.aclweb.org/anthology/P14-1147.pdf. Lippman, David. 2020. http://www.imathas.com/stattools/norm.html. Accessed February 20, 2020. http://www.imathas.com/stattools/norm.html. Mairesse, François, Marilyn A. Walker, Matthias R. Mehl, and Roger K. Moore. 2007. "Using Linguistic Cues for the Automatic Recognition of Personality in Conversation and Text." Journal of Artificial Intelligence Research 30 457-500. https://www.aaai.org/Papers/JAIR/Vol30/JAIR- 3012.pdf. Mihalcea, Rada, and Carlo Strapparava. 2009. "The Lie Detector: Explorations in the Automatic Recognition of Deceptive Language." Proceedings of the ACL-IJCNLP 2009 Conference Short Papers 309-312. https://www.aclweb.org/anthology/P09-2078.pdf. Ott, Myle, Claire Cardie, and Jeffrey T. Hancock. 2013. "Negative Deceptive Opinion Spam." Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies 497-501. Ott, Myle, Yejin Choi, Claire Cardie, and Jeffrey T. Hancock. 2011. "Finding Deceptive Opinion Spam by Any Stretch of the Imagination." Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies 309-319. https://www.aclweb.org/anthology/P11-1032.pdf. 55 Patel, Savan. 2017. https://medium.com/machine-learning-101/chapter-2-svm-support-vector- machine-theory-f0812effc72. May 3. Accessed February 20, 2020. https://medium.com/machine-learning-101/chapter-2-svm-support-vector-machine-theory- f0812effc72. Pennebaker, James W., Cindy K. Chung, Molly Ireland, Amy Gonzales, and Roger J. Booth. 2007. "The Development and Psychometric Properties of LIWC2007." LIWC2007 Manual 1-22. https://www.liwc.net/LIWC2007LanguageManual.pdf. Ren, Yafeng, and Yue Zhang. 2016. "Deceptive Opinion Spam Detection Using Neural Network." Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers 140-150. https://www.aclweb.org/anthology/C16-1014.pdf. scikit-learn. 2007-2019. "https://scikit-learn.org/stable/modules/naive_bayes.html." https://scikitlearn.org. - -. Accessed February 20, 2020. https://scikitlearn.org/stable/modules/naive_bayes.html. Srivastava, Durgesh K., and Lekha Bhambhu. 2010. "Data Classification using Support Vector Machine." Journal of Theoretical and Applied Information Technology, Volume 12, No. 1 1-7. http://www.jatit.org/volumes/research-papers/Vol12No1/1Vol12No1.pdf. Vrij, Aldert, Samantha Mann, Susanne Kristen, and Ronald P. Fisher. 2007. "Cues to Deception and Ability to Detect Lies as a Function of Police Interview Styles." Law and Human Behavior volume 31 499-518. https://link.springer.com/article/10.1007/s10979-006-9066-4. Williams, Shanna Mary, Victoria Talwar, R. C. L. Lindsay, Nicholas Bala, and Kang Lee. 2014. "Is the Truth in Your Words? Distinguishing Children’s Deceptive and Truthful Statements." Journal of Criminology 1-9. http://downloads.hindawi.com/archive/2014/547519.pdf. 56 8 APPENDIX Python packages used the thesis are below in italics:  import matplotlib.pyplot as plt  import nltk  import numpy as np  import os  import pandas as pd  import re  import string  import xgboost, textblob, string  nltk.download('universal_tagset')  from itertools import product  from keras import layers, models, optimizers  from keras.callbacks import ModelCheckpoint, EarlyStopping  from keras.models import Sequential, load_model  from keras.preprocessing import text, sequence  from keras.wrappers.scikit_learn import KerasClassifier  from mpl_toolkits.mplot3d import Axes3D  from nltk import word_tokenize, pos_tag  from sklearn import datasets  from sklearn import decomposition, ensemble  from sklearn import model_selection, preprocessing, linear_model, naive_bayes, metrics, svm  from sklearn.cluster import KMeans  from sklearn.datasets import make_classification  from sklearn.ensemble import GradientBoostingClassifier  from sklearn.feature_extraction.text import CountVectorizer  from sklearn.feature_extraction.text import TfidfTransformer  from sklearn.linear_model import LogisticRegression  from sklearn.metrics import accuracy_score, f1_score, classification_report, confusion_matrix, precision_recall_fscore_support  from sklearn.metrics import make_scorer  from sklearn.model_selection import cross_val_score  from sklearn.model_selection import GridSearchCV  from sklearn.model_selection import train_test_split  from sklearn.pipeline import Pipeline  from sklearn.preprocessing import scale  from sklearn.svm import LinearSVC, SVC  from sklearn.utils.multiclass import unique_labels  from time import time i