REPUTATION CHECK with NLP and TOPIC MODELLING CAPSTONE PROJECT for MS in FINANCE PROGRAM PUBLIC PROJECT SUMMARY CEU Etd Collection

Total Page:16

File Type:pdf, Size:1020Kb

REPUTATION CHECK with NLP and TOPIC MODELLING CAPSTONE PROJECT for MS in FINANCE PROGRAM PUBLIC PROJECT SUMMARY CEU Etd Collection JUNE 23, 2020 REPUTATION CHECK WITH NLP AND TOPIC MODELLING CAPSTONE PROJECT FOR MS IN FINANCE PROGRAM PUBLIC PROJECT SUMMARY CEU eTD Collection STUDENT: BERMET ALIBEKOVA FACULTY SUPERVISOR: PROF.PETER SZILAGYI Table of contents: 1. Introduction 2. Background and objectives 3. Methodology 4. Conclusion CEU eTD Collection i 1.INTRODUCTION Due diligence is necessary for a wide array of companies to mitigate risk. The financial sector uses them to screen clients to avoid financial crime, recruitment agencies doing executive searches, investments to mitigate financial loss, high risk industries to screen counterparties in order to mitigate risk and comply with regulations. Usually due diligence is very time consuming and requires a lot of manual work, in most cases using simple Google search. Millions of articles and news are published on the internet every day and this makes it difficult to find necessary information among tons of unstructured data. Moreover, due diligence is a very costly process for many companies. Thus, the main aim of this project is to develop an automated adverse media check tool, which would help banks to identify companies with bad reputation. The project will help financial firms to find information in the media that is not officially in corporate court yet, but can help to predict the future of company’s performance. We used Topic Modelling, which is a machine learning technique that automatically analyzes texts and identify topics used in a collection of texts. In order to enhance the Topic Modelling results for the articles about certain person or a company it was necessary to use lemmatization, which is widely used tool that returns the base or dictionary form of a word. 2.BACKGROUND AND OBJECTIVES Adverse media is any kind of news published in media, traditional and online, with negative information on individuals or companies. For example, if a company would like to take a loan from a bank, the bank can find a lot of information about the company’s credit history and registry, which can indicate that this is a stable company with high revenues. However, this information can be limited as it doesn’t show if company is engaged in criminal activities, selling fake medicine for cancer or a company manager is under investigation. As banks and financial service institutions are risk averse and want to mitigate all the risks, they would like to see a thorough investigation even there is no court hearings yet. CEU eTD Collection The project is done for a fintech start-up, which joined CEU InnovationsLab in 2020. The company is offering an automated tool which can produce higher quality reports in a short time, using least amount of manual labour, well-established due diligence processes and the latest data science tools. Automated internet checks tool is one of its projects, which will give opportunity 1 to its clients to extract adverse media information from Google. This includes thousands of articles and blog posts accessed, categorized and filtered into relevant categories within a short time. 3.METHODOLOGY We used Google API tool which automatically searches for keywords such as money laundering or investigation and then returns the whole article or a blog post about subject company or person. The first part of the project was to prepare lemmatization script for this process and based on it to work on Topic Modelling. Topic Modelling has many advantages such as discovering hidden topic patterns across a given group of articles, using the topics extracted to classify or group the articles and also summarizing large texts by using the main topics found by Topic Model algorithm. Lemmatization is one of the Text Normalization techniques used in NLP, it returns dictionary forms of the words using their morphological features and vocabulary. Lemmatization script for the returned articles needed to meet following requirements: 1) written in Spacy library (Python) 2) responsive for different languages (English, Hungarian, Polish, Russian, French, German) 3) returns a list of lemma words. Since this tool will be applied for articles in multiple languages, language detection function was created using “Language Detection” feature of Spacy library. Based on the language of the article relevant language model for lemmatization will be applied. The texts of the articles were cleaned by removing unnecessary characters, including numbers, capitalization, punctuation and stop words. In order to identify phrases, we used Python’s Gensim library, which finds phrases in texts. Bigrams are two words frequently occurring together in the text and trigrams are three words frequently occurring together. For example, it returns phrases like “European_commission”, “Civil_society”, “Money_Laundering”. To receive reliable results, we also worked on eliminating the words that were used rarely and words that were used too frequently. Thus, we created a list of unique words with their frequencies and removed the words used in more than 70 percent of the articles. The least common words were removed if their length was less or equal to 2. CEU eTD Collection As company and person names are important in this tool, we used entity recognition function of Python as well. Python’s spaCy library was the most effective among the libraries that 2 we tested. In the result we received a list of the entities that were added to the words in the data frame for the analysis. Topic Modelling, which creates different clusters for the articles according to the words and their frequency, was second part of the project. Latent Dirichlet Allocation (LDA) model was used for the topic modelling as it is one of the powerful tools for unsupervised machine learning and also was advised by the client company. First, we created the dictionary and corpus, which are main inputs to the LDA topic model. The model was built with different numbers of topics where each of them is a combination of keywords and each of the keywords contributes a certain weightage to topic. A model with the highest coherence score was chosen as an optimal model. In the result we received topics in the articles and the top words occuring in that topics. 4.CONCLUSION Due diligence services are costly and usually require time to perform a check for a person or a company. The adverse media check tool was created using latest Machine Learning and NLP solutions and has a great potential on the market as it is very useful for financial firms and can help them mitigate their risks with lower costs and reduce time spent on due diligence checks. In fact, this tool would be useful not only for financial institutions, but also recruitment agencies and other high-risk industries. The projects limitation was that for LDA model it was difficult to identify optimal number of topics as it is time consuming to check all the variations. Also, we encountered difficulties with availability of Python tools for different languages as the tool uses multiple languages. CEU eTD Collection 3 CEU eTD Collection 4 CEU eTD Collection 5 CEU eTD Collection 6 CEU eTD Collection 7 CEU eTD Collection 8 CEU eTD Collection 9 CEU eTD Collection 10 CEU eTD Collection 11 CEU eTD Collection 12 .
Recommended publications
  • WELDA: Enhancing Topic Models by Incorporating Local Word Context
    WELDA: Enhancing Topic Models by Incorporating Local Word Context Stefan Bunk Ralf Krestel Hasso Plattner Institute Hasso Plattner Institute Potsdam, Germany Potsdam, Germany [email protected] [email protected] ABSTRACT The distributional hypothesis states that similar words tend to have similar contexts in which they occur. Word embedding models exploit this hypothesis by learning word vectors based on the local context of words. Probabilistic topic models on the other hand utilize word co-occurrences across documents to identify topically related words. Due to their complementary nature, these models define different notions of word similarity, which, when combined, can produce better topical representations. In this paper we propose WELDA, a new type of topic model, which combines word embeddings (WE) with latent Dirichlet allo- cation (LDA) to improve topic quality. We achieve this by estimating topic distributions in the word embedding space and exchanging selected topic words via Gibbs sampling from this space. We present an extensive evaluation showing that WELDA cuts runtime by at least 30% while outperforming other combined approaches with Figure 1: Illustration of an LDA topic in the word embed- respect to topic coherence and for solving word intrusion tasks. ding space. The gray isolines show the learned probability distribution for the topic. Exchanging topic words having CCS CONCEPTS low probability in the embedding space (red minuses) with • Information systems → Document topic models; Document high probability words (green pluses), leads to a superior collection models; • Applied computing → Document analysis; LDA topic. KEYWORDS word by the company it keeps” [11]. In other words, if two words topic models, word embeddings, document representations occur in similar contexts, they are similar.
    [Show full text]
  • Generative Topic Embedding: a Continuous Representation of Documents
    Generative Topic Embedding: a Continuous Representation of Documents Shaohua Li1,2 Tat-Seng Chua1 Jun Zhu3 Chunyan Miao2 [email protected] [email protected] [email protected] [email protected] 1. School of Computing, National University of Singapore 2. Joint NTU-UBC Research Centre of Excellence in Active Living for the Elderly (LILY) 3. Department of Computer Science and Technology, Tsinghua University Abstract as continuous vectors in a low-dimensional em- bedding space (Bengio et al., 2003; Mikolov et al., Word embedding maps words into a low- 2013; Pennington et al., 2014; Levy et al., 2015). dimensional continuous embedding space The learned embedding for a word encodes its by exploiting the local word collocation semantic/syntactic relatedness with other words, patterns in a small context window. On by utilizing local word collocation patterns. In the other hand, topic modeling maps docu- each method, one core component is the embed- ments onto a low-dimensional topic space, ding link function, which predicts a word’s distri- by utilizing the global word collocation bution given its context words, parameterized by patterns in the same document. These their embeddings. two types of patterns are complementary. When it comes to documents, we wish to find a In this paper, we propose a generative method to encode their overall semantics. Given topic embedding model to combine the the embeddings of each word in a document, we two types of patterns. In our model, topics can imagine the document as a “bag-of-vectors”. are represented by embedding vectors, and Related words in the document point in similar di- are shared across documents.
    [Show full text]
  • Linked Data Triples Enhance Document Relevance Classification
    applied sciences Article Linked Data Triples Enhance Document Relevance Classification Dinesh Nagumothu * , Peter W. Eklund , Bahadorreza Ofoghi and Mohamed Reda Bouadjenek School of Information Technology, Deakin University, Geelong, VIC 3220, Australia; [email protected] (P.W.E.); [email protected] (B.O.); [email protected] (M.R.B.) * Correspondence: [email protected] Abstract: Standardized approaches to relevance classification in information retrieval use generative statistical models to identify the presence or absence of certain topics that might make a document relevant to the searcher. These approaches have been used to better predict relevance on the basis of what the document is “about”, rather than a simple-minded analysis of the bag of words contained within the document. In more recent times, this idea has been extended by using pre-trained deep learning models and text representations, such as GloVe or BERT. These use an external corpus as a knowledge-base that conditions the model to help predict what a document is about. This paper adopts a hybrid approach that leverages the structure of knowledge embedded in a corpus. In particular, the paper reports on experiments where linked data triples (subject-predicate-object), constructed from natural language elements are derived from deep learning. These are evaluated as additional latent semantic features for a relevant document classifier in a customized news- feed website. The research is a synthesis of current thinking in deep learning models in NLP and information retrieval and the predicate structure used in semantic web research. Our experiments Citation: Nagumothu, D.; Eklund, indicate that linked data triples increased the F-score of the baseline GloVe representations by 6% P.W.; Ofoghi, B.; Bouadjenek, M.R.
    [Show full text]
  • Document and Topic Models: Plsa
    10/4/2018 Document and Topic Models: pLSA and LDA Andrew Levandoski and Jonathan Lobo CS 3750 Advanced Topics in Machine Learning 2 October 2018 Outline • Topic Models • pLSA • LSA • Model • Fitting via EM • pHITS: link analysis • LDA • Dirichlet distribution • Generative process • Model • Geometric Interpretation • Inference 2 1 10/4/2018 Topic Models: Visual Representation Topic proportions and Topics Documents assignments 3 Topic Models: Importance • For a given corpus, we learn two things: 1. Topic: from full vocabulary set, we learn important subsets 2. Topic proportion: we learn what each document is about • This can be viewed as a form of dimensionality reduction • From large vocabulary set, extract basis vectors (topics) • Represent document in topic space (topic proportions) 푁 퐾 • Dimensionality is reduced from 푤푖 ∈ ℤ푉 to 휃 ∈ ℝ • Topic proportion is useful for several applications including document classification, discovery of semantic structures, sentiment analysis, object localization in images, etc. 4 2 10/4/2018 Topic Models: Terminology • Document Model • Word: element in a vocabulary set • Document: collection of words • Corpus: collection of documents • Topic Model • Topic: collection of words (subset of vocabulary) • Document is represented by (latent) mixture of topics • 푝 푤 푑 = 푝 푤 푧 푝(푧|푑) (푧 : topic) • Note: document is a collection of words (not a sequence) • ‘Bag of words’ assumption • In probability, we call this the exchangeability assumption • 푝 푤1, … , 푤푁 = 푝(푤휎 1 , … , 푤휎 푁 ) (휎: permutation) 5 Topic Models: Terminology (cont’d) • Represent each document as a vector space • A word is an item from a vocabulary indexed by {1, … , 푉}. We represent words using unit‐basis vectors.
    [Show full text]
  • Improving Distributed Word Representation and Topic Model by Word-Topic Mixture Model
    JMLR: Workshop and Conference Proceedings 63:190–205, 2016 ACML 2016 Improving Distributed Word Representation and Topic Model by Word-Topic Mixture Model Xianghua Fu [email protected] Ting Wang [email protected] Jing Li [email protected] Chong Yu [email protected] Wangwang Liu [email protected] College of Computer Science and Software Engineering, Shenzhen University, Guangdong China Editors: Robert J. Durrant and Kee-Eung Kim Abstract We propose a Word-Topic Mixture(WTM) model to improve word representation and topic model simultaneously. Firstly, it introduces the initial external word embeddings into the Topical Word Embeddings(TWE) model based on Latent Dirichlet Allocation(LDA) model to learn word embeddings and topic vectors. Then the results learned from TWE are inte- grated in the LDA by defining the probability distribution of topic vectors-word embeddings according to the idea of latent feature model with LDA (LFLDA), meanwhile minimizing the KL divergence of the new topic-word distribution function and the original one. The experimental results prove that the WTM model performs better on word representation and topic detection compared with some state-of-the-art models. Keywords: topic model, distributed word representation, word embedding, Word-Topic Mixture model 1. Introduction Probabilistic topic model is one of the most common topic detection methods. Topic mod- eling algorithms, such as LDA(Latent Dirichlet Allocation) Blei et al. (2003) and related methods Blei (2011), infer probability distributions from frequency statistic, which can only reflect the co-occurrence relationships of words. The semantic information is less considered. Recently, distributed word representations with NNLM(neural network language model) Bengio et al.
    [Show full text]
  • Topic Modeling: Beyond Bag-Of-Words
    Topic Modeling: Beyond Bag-of-Words Hanna M. Wallach [email protected] Cavendish Laboratory, University of Cambridge, Cambridge CB3 0HE, UK Abstract While such models may use conditioning contexts of arbitrary length, this paper deals only with bigram Some models of textual corpora employ text models—i.e., models that predict each word based on generation methods involving n-gram statis- the immediately preceding word. tics, while others use latent topic variables inferred using the “bag-of-words” assump- To develop a bigram language model, marginal and tion, in which word order is ignored. Pre- conditional word counts are determined from a corpus viously, these methods have not been com- w. The marginal count Ni is defined as the number bined. In this work, I explore a hierarchi- of times that word i has occurred in the corpus, while cal generative probabilistic model that in- the conditional count Ni|j is the number of times word corporates both n-gram statistics and latent i immediately follows word j. Given these counts, the topic variables by extending a unigram topic aim of bigram language modeling is to develop pre- model to include properties of a hierarchi- dictions of word wt given word wt−1, in any docu- cal Dirichlet bigram language model. The ment. Typically this is done by computing estimators model hyperparameters are inferred using a of both the marginal probability of word i and the con- Gibbs EM algorithm. On two data sets, each ditional probability of word i following word j, such as of 150 documents, the new model exhibits fi = Ni/N and fi|j = Ni|j/Nj, where N is the num- better predictive accuracy than either a hi- ber of words in the corpus.
    [Show full text]
  • Semantic N-Gram Topic Modeling
    EAI Endorsed Transactions on Scalable Information Systems Research Article Semantic N-Gram Topic Modeling Pooja Kherwa1,*, Poonam Bansal1 1Maharaja Surajmal Institute of Technology, C-4 Janak Puri. GGSIPU. New Delhi-110058, India. Abstract In this paper a novel approach for effective topic modeling is presented. The approach is different from traditional vector space model-based topic modeling, where the Bag of Words (BOW) approach is followed. The novelty of our approach is that in phrase-based vector space, where critical measure like point wise mutual information (PMI) and log frequency based mutual dependency (LGMD)is applied and phrase’s suitability for particular topic are calculated and best considerable semantic N-Gram phrases and terms are considered for further topic modeling. In this experiment the proposed semantic N-Gram topic modeling is compared with collocation Latent Dirichlet allocation(coll-LDA) and most appropriate state of the art topic modeling technique latent Dirichlet allocation (LDA). Results are evaluated and it was found that perplexity is drastically improved and found significant improvement in coherence score specifically for short text data set like movie reviews and political blogs. Keywords. Topic Modeling, Latent Dirichlet Allocation, Point wise Mutual Information, Bag of words, Coherence, Perplexity. Received on 16 November 2019, accepted on 10 0Februar20 y 2 , published on 11 February 2020 Copyright © 2020 Pooja Kherwa et al., licensed to EAI. T his is an open access article distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/3.0/), which permits unlimited use, distribution and reproduction in any medium so long as the original work is properly cited.
    [Show full text]
  • Modeling Topical Relevance for Multi-Turn Dialogue Generation
    Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence (IJCAI-20) Modeling Topical Relevance for Multi-Turn Dialogue Generation Hainan Zhang2∗ , Yanyan Lan14y , Liang Pang14 , Hongshen Chen2 , Zhuoye Ding2 and Dawei Yin4 1CAS Key Lab of Network Data Science and Technology, Institute of Computing Technology, CAS 2JD.com, Beijing, China 3Baidu.com, Beijing, China 4University of Chinese Academy of Sciences fzhanghainan6,chenhongshen,[email protected], flanyanyan,[email protected],[email protected] Abstract context1 `},(吗?(Hello) context2 有什么问题我可以.¨b? (What can I do for you?) FÁM价了,我要3请保价 Topic drift is a common phenomenon in multi-turn context3 (The product price has dropped. I want a low-price.) dialogue. Therefore, an ideal dialogue generation }的,这边.¨3请,FÁ已Ï60了'? context4 models should be able to capture the topic informa- (Ok, I will apply for you. Have you received the product?) 东西60了发h不(一w吗? tion of each context, detect the relevant context, and context5 (I have received the product without the invoice together.) produce appropriate responses accordingly. How- 开w5P发h不会随'Äú context6 ever, existing models usually use word or sentence (The electronic invoice will not be shipped with the goods.) level similarities to detect the relevant contexts, current context /发我®±吗?(Is it sent to my email?) /的,请¨Ð供®±0@,5P发h24小时Äú。 which fail to well capture the topical level rele- response (Yes, please provide your email address, vance. In this paper, we propose a new model, we will send the electronic invoices in 24 hours.) named STAR-BTM, to tackle this problem. Firstly, the Biterm Topic Model is pre-trained on the whole Table 1: The example from the customer services dataset.
    [Show full text]
  • Text Analysis of QC/Issue Tracker by Natural Language Processing (NLP)
    PharmaSUG 2019 - Paper AD-052 Text Analysis of QC/Issue Tracker by Natural Language Processing (NLP) Tools Huijuan Zhang, Columbia University, New York, NY Todd Case, Vertex Pharmaceuticals, Boston, MA ABSTRACT Many Statistical Programming groups use QC and issue trackers, which typically include text that describe discrepancies or other notes documented during programming and QC, or 'data about the data'. Each text field is associated with one specific question or problem and/or manually classified into a category and a subcategory by programmers (either by free text or a drop-down box with pre-specified issues that are common, such as 'Specs', 'aCRF', 'SDTM', etc.). Our goal is to look at this text data using some Natural Language Processing (NLP) tools. Using NLP tools allows us an opportunity to be more objective about finding high-level (and even granular) themes about our data by using algorithms that parse out categories, typically either by pre-specified number of categories or by summarizing the most common words. Most importantly, using NLP we do not have to look at text line by line, but it rather provides us an idea about what this entire text is telling us about our processes and issues at a high-level, even checking whether the problems were classified correctly and classifying problems that were not classified previously (e.g., maybe a category was forgotten, it didn't fit into a pre-specified category, etc.). Such techniques provide unique insights into data about our data and the possibility to replace manual work, thus improving work efficiency. INTRODUCTION The purpose of this paper is to demonstrate how NLP tools can be used in a very practical way: to find trends in data that we would not otherwise be able to find using more traditional approaches.
    [Show full text]
  • Topic Modeling Approaches for Understanding COVID-19
    Topic Modeling Approaches for Understanding COVID-19 Misinformation Spread in Sub-Saharan Africa Ezinne Nwankwo1∗ , Chinasa Okolo2 and Cynthia Habonimana3 1Duke University 2Cornell University 3CSU-Long Beach [email protected], [email protected], [email protected] Abstract [1]. Fake news is often spread with the intent to provide financial or political gain and is often exacerbated by digi- Since the start of the pandemic, the proliferation tal illiteracy, lack of knowledge surrounding specific topics, of fake news and misinformation has been a con- and religious or personal beliefs that are biased towards fake stant battle for health officials and policy makers as news [2]. To get a sense of what are common themes in the they work to curb the spread of COVID-19. In ar- “fake news” being spread across the African continent and in eas within the Global South, it can be difficult for other developing nations, we thought it would be best to dis- officials to keep track of the growth of such false in- cover what ideologies they are rooted in. From our research, formation and even harder to address the real con- we saw three main themes in fake news being spread across cerns their communities have. In this paper, we Sub-Saharan Africa: distrust of philanthropic organizations, present some techniques the AI community can of- distrust of developed nations, and even distrust of leaders in fer to help address this issue. While the topics pre- their own respective countries. We posit that the distrust in sented within this paper are not a complete solution, these messages stems from the ”colonial-era-driven distrust” we believe they could complement the work gov- of international development organizations [3][4].
    [Show full text]
  • Distributional Approaches to Semantic Analysis
    Distributional approaches to semantic analysis Diarmuid O´ S´eaghdha Natural Language and Information Processing Group Computer Laboratory University of Cambridge [email protected] HIT-MSRA Summer Workshop on Human Language Technology August 2011 http://www.cl.cam.ac.uk/~do242/Teaching/HIT-MSRA-2011/ Your assignment (Part 2) I We now have two sets of word pairs with similarity judgements: one in English and one in Chinese. They are available on the summer school website, along with a more detailed specification of the assignment. I The task is to take some real corpora and build distributional models, exploring the space of design options that have been sketched in this course: I What is the effect of different context types (e.g., window context versus document context)? I What is the effect of different similarity and distance functions (e.g., cosine and Jensen-Shannon divergence)? I What is the effect of corpus size? I What is the effect of applying association measures such as PMI? I If you do this assignment in full, you will have a good idea how to build a distributional model to help with the NLP tasks you care about! Distributional approaches to semantic analysis Fundamentals of distributional methods 58 Probabilistic semantics and topic modelling What's in today's lecture: A probabilistic interpretation of distributional semantics Topic modelling Selectional preferences Word sense disambiguation Distributional approaches to semantic analysis Probabilistic semantics and topic modelling 59 Probabilistic modelling I Probabilistic modelling (or statistical modelling) explicitly recasts the problem of interest as one of inferring probability distributions over random variables and estimating properties of those distributions.
    [Show full text]
  • Topic Modeling for Natural Language Understanding
    Topic Modeling for Natural Language Understanding A Thesis Submitted to the Faculty of Drexel University by Xiaoli Song in partial fulfillment of the requirements for the degree of Doctor of Philosophy December 2016 c Copyright 2016 Xiaoli Song. ii Acknowledgments Thank God for giving me all the help, strength and determination to complete my thesis. I thank my advisor Dr. Xiaohua Hu. His guidance helped to shape and provided much needed focus to my work. I thank my dissertation committee members: Dr. Weimao Ke, Dr. Yuan An, Dr. Erjia Yan and Dr. Li Sheng for their support and insight throughout my research. I would also like to thank my fellow graduate students Zunyan Xiong, Jia Huang, Wanying Ding, Yue Shang, Mengwen Liu, Yuan Ling, Bo Song, and Yizhou Zang for all the help and support they provided. Special thanks to Chunyu Zhao, Yujia Wang, and Weilun Cheng. iii Table of Contents LIST OF TABLES ............................................. vii LIST OF FIGURES ............................................. ix ABSTRACT ................................................ x 1. INTRODUCTION ............................................ 1 1.1 Overview ............................................. 2 2. CLASSICAL TOPIC MODELING METHODS ............................. 4 2.0.1 Latent Semantic Analysis (LSA)............................... 4 2.0.2 PLSA ............................................. 5 2.1 Latent Dirichlet Allocation.................................... 6 3. PAIRWISE TOPIC MODEL ...................................... 8 3.1 Pairwise Relation
    [Show full text]