scieee AI-readable full text Open interactive document viewer

Developing a data driven CSR tool for impactful performance analysis at a dutch bank: Leading towards the exclusion of investments incontroversial activities of (potential) clients

Kneppers, Marcella Marie

Abstract

The internship project is performed at a Dutch Bank in the role of Data Scientist Intern in the Innovation Lab located in The Hague, the Netherlands. I will support the creation of a Python based text analysis tool that gathers data on clients and monitors their performance in terms of Corporate Social Responsibility (CSR) related topics and activities. The tool will be used to support customer due diligence processes as well as review analysis purposes for clients to compare CSR scores with peers. This will help NIBC bank to obtain better insights into CSR performance and activities of their clients and potential clients. This results in the mitigation of risks associated with non-compliant CSR levels. An important objective for the development of the CSR tool is upcoming (EU) regulation to increase transparency in third-party suppliers. This would increase the relevance of the CSR text analysis tool enormously. NIBC Bank wants to be the front-runner within sustainability in the financial sector. The internship will last for a period of six months (September 2020 till February 2021) and will take place in the Netherlands.

Full text

M.M. Kneppers i DEVELOPING A DATA DRIVEN CSR TOOL FOR IMPACTFUL PERFORMANCE ANALYSIS AT A DUTCH BANK. Marcella Marie Kneppers Leading towards the exclusion of investments in controversial activities of (potential) clients. Internship report proposal presented as partial requirement for obtaining the Master’s degree in Information Management. Innovation Lab Intern at a Bank, the Netherlands M.M. Kneppers i MGI 2021 Title: DEVELOPING AN AUTOMATED CUSTOMER DUE DILIGENCE TOOL THAT LEADS TO IMPACTFUL CSR PERFORMANCE ANALYSIS. Subtitle: Leading towards the exclusion of investments in controversial activities of (potential) clients. Marcella Marie Kneppers M20190529 MGI M.M. Kneppers i M.M. Kneppers ii NOVA Information Management School Instituto Superior em Gestão de Informação Universidade Nova de Lisboa DEVELOPING A DATA DRIVEN CSR TOOL FOR IMPACTFUL PERFORMANCE ANALYSIS AT A DUTCH BANK. by Marcella Marie Kneppers Internship Report Draft presented as partial requirement for obtaining the Master’s degree in Information Management, with a specialization in Business Intelligence & Knowledge Management. Advisor: professor Doutor Flávio Luís Portas Pinheiro Nov 2021 M.M. Kneppers iii ABSTRACT The internship project is performed at a Dutch Bank in the role of Data Scientist Intern in the Innovation Lab located in The Hague, the Netherlands. I will support the creation of a Python based text analysis tool that gathers data on clients and monitors their performance in terms of Corporate Social Responsibility (CSR) related topics and activities. The tool will be used to support customer due diligence processes as well as review analysis purposes for clients to compare CSR scores with peers. This will help NIBC bank to obtain better insights into CSR performance and activities of their clients and potential clients. This results in the mitigation of risks associated with non-compliant CSR levels. An important objective for the development of the CSR tool is upcoming (EU) regulation to increase transparency in third-party suppliers. This would increase the relevance of the CSR text analysis tool enormously. NIBC Bank wants to be the front-runner within sustainability in the financial sector. The internship will last for a period of six months (September 2020 till February 2021) and will take place in the Netherlands. KEYWORDS Corporate Social Responsibility, CSR, Environmental Social and Governance, ESG, Text Mining, Web Scraping. M.M. Kneppers iv INDEX Table of Figures ............................................................................................................... 0 Abbreviations .................................................................................................................. 3 1. Introduction ................................................................................................................ 4 1.1. NIBC Bank ............................................................................................................ 5 2. Theoretical Framework ............................................................................................... 7 2.1. Introduction CSR Tool .......................................................................................... 7 2.2. Data Mining ......................................................................................................... 8 2.2.1. Data Mining Process Model .......................................................................... 9 2.3. Web Mining ....................................................................................................... 11 2.3.1. Scraping and Crawling ................................................................................. 12 2.3.2. Web technologies ....................................................................................... 14 2.4. Text mining ........................................................................................................ 16 2.4.1. Text preprocessing ...................................................................................... 16 2.4.2. Relationship and pattern identification ...................................................... 17 2.4.3. Topic classification and modelling .............................................................. 19 2.4.4. Sentiment analysis ...................................................................................... 21 2.5. Dashboard framework ....................................................................................... 24 3. csr project ................................................................................................................. 25 3.1. Business understanding ..................................................................................... 25 3.2. Data understanding ........................................................................................... 28 3.2.1. Data collection ............................................................................................ 30 3.2.2. Data exploration ......................................................................................... 34 3.3. Data preparation ................................................................................................ 35 3.3.1. Data cleaning .............................................................................................. 35 3.3.2. Data transformation ................................................................................... 37 3.4. Modelling ........................................................................................................... 37 3.4.1. Secondary data analyses ............................................................................. 38 3.4.2. Dashboard modelling .................................................................................. 42 3.5. Evaluation .......................................................................................................... 45 3.6. Deployment ....................................................................................................... 47 4. Conclusion ................................................................................................................. 48 4.1. Lessons learned ................................................................................................. 48 References ..................................................................................................................... 50 TABLE OF FIGURES Figure 1. The ESG assessment approach by Vigeo Eiris showing three fases in order to obtain an overall ESG score when assessing text documents of organizations. ........................... 8 Figure 2. Graphical representation of adopted techniques from diverse domains into the data mining practice (Han, Kamber, & Pei., 2012). .................................................................... 9 Figure 3. The CRISP-DM life cycle which can be used in data mining projects including arrows representing the direction of the dependencies between steps. ................................... 10 Figure 4. A graphical presentation of three sub-groups including further specification within the overarching domain of web mining. ......................................................................... 11 Figure 5. Visualization of the information exchange between web browsers and servers using HTTP requests and responses (Chapagain, 2019). ........................................................... 15 Figure 6. The n-gram pipeline when analyzing a text body using TF-IDF technique resulting in an output which is text classification or clustering of words. ......................................... 18 Figure 7. The general methodology for sentiment analysis visualized in steps in order to prepare data for analysis by preprocessing and splitting the data in a training- and test set. ................................................................................................................................... 22 Figure 8. The Multi-Layer Perceptron (MLP) model graphically explained in which the input layer represents the training data, is processed in the hidden layers whereafter the output is generated in the output layer. ......................................................................... 23 Figure 9. The data outputs of the CSR Tool are customized to the wishes of internal (blue) and external (red) stakeholders within NIBC Bank. ................................................................ 26 Figure 10. Process flow outline of the CSR project with five main processes which are data collection, data processing, data analysis, and data outputs. ......................................... 28 Figure 11. Word cloud of the portfolio’s public data sources and website content showing the most used words in the text documents of the portfolio. ............................................... 35 Figure 12. Sentiment analysis output based on tweets from one of the organizations in the portfolio showing the number of negative, neutral and positive tweets. ....................... 39 Figure 13. Topic classification model on Google News data from the portfolio showing the probability a piece of text belonging to a specific topic. ................................................. 41 Figure 14. A topic correlation matrix from the full text corpus showing the correlations among text documents and the topics extracted in topic modelling analysis. ........................... 41 Figure 15. The CSR scorecard presenting the CSR commitment levels of a client’s portfolio based on text analysis highlighting the most interesting findings. .................................. 42 Figure 16. Dashboard presenting ESG classification of a specific organization in the portfolio in order to understand and zoom into a certain CSR specification. .................................... 43 M.M. Kneppers 1 Figure 17. Dashboard presenting the sentiment analysis per ESG topic for the portfolio based on sentiment analyses performed and expressed in visuals and text. ............................ 44 Figure 18. Dashboard presenting the E, S, and G criteria over time of the portfolio. ............. 44 Figure 19. Profile information dashboard showing generic information such as industry, FTE and financial statements on an organization within the portfolio. ................................. 45 M.M. Kneppers 2 TABLE OF TABLES Table 1. Explaining the differences between a web scraper and a web crawler. …………………13 Table 2. Text preprocessing techniques explained that are used in text preprocessing. ……..17 Table 3. The data sources founding the CSR too described per data type and selection objective. ……………………………………………………………………………………………………………………………29 Table 4. Profile information of tickers requested in yfinance including the attribute, ticker and recent (i.e. output per attribute). ………………………………………………………………………………………..33 Table 5. he N-gram analysis output of a client’s portfolio showing the frequency of the word combination, the word combination (bi- or trigram) and a timestamp of the analysis. ……….38 Table 6. Topic modeling output showing similar word buckets (keywords) based on a topic.…………………………………………………………………………………………………………………………………..40 M.M. Kneppers 9 model is created out of (a) large data set(s). Pattern detection, on the other hand, lays emphasis on algorithms that seek local structures or anomalies in the data. Within all data mining projects, the main activity constitutes of filtering and reducing (irrelevant) data to find “diamonds” (i.e. valuable insights organizations can act upon to optimize their business). Data and information are growing exponentially, due to Big Data, which brings possibilities but also increases the chances of data and thus useful knowledge getting lost. It is necessary to explore and analyze all this data and be aware of the possibilities for patterns, rules, anomalies, and relationships that might not appear at first but can be discovered after asking the correct questions, applying the right methodologies, and using domain knowledge. The data mining practice evolves every day with the rise of new knowledge and discovery of technologies, also by adopting techniques from other domains (Figure 2). Figure 2. Graphical representation of adopted techniques from diverse domains into the data mining practice (Han, Kamber, & Pei., 2012). 2.2.1. Data Mining Process Model Carrying out data mining projects can be different from one another due to the way processes are organized and activities performed. However, most data mining processes involve the following steps: understanding the environment, preparing the data, modeling, evaluating results and implementing the outcomes. A process model can help to understand and manage interactions within a complex project to ensure effective project management. One of the most popular data mining process models is CRISP-DM by Wirth & Hipp (2010). In order to standardize data mining processes, Wirth & Hipp (2010) created the CRISP-DM (Cross Industry Standard Process for Data Mining) model. This model aims to make large data mining projects M.M. Kneppers 10 more reliable, repeatable, manageable, and faster with less costs. The CRISP-DM model provides an overview of a data mining project by a life cycle holding six main steps. The steps are performed iteratively and require interactive feedback from (a) user(s). These main steps are: (1) business understanding, (2) data understanding, (3) data preparation, (4) modelling, (5) evaluation, and (6) deployment. Figure 3 shows the CRISP-DM model. Figure 3. The CRISP-DM life cycle which can be used in data mining projects including arrows representing the direction of the dependencies between steps. In the following, each step is briefly outlined: • Business Understanding This first phase focuses on understanding the objectives and requirements of the project from a business perspective. Then, this knowledge is transformed into a data mining process definition accompanied by a draft version of the project plan to achieve the objectives. • Data Understanding This phase starts with collecting data. Once the data is collected, the data is explored by activities such as getting familiar with the data, identifying data quality problems, and detecting first insights into the data to form hypotheses. • Data Preparation Besides the challenge of understanding the overall task (the first two steps), one of the most time-consuming steps is data preparation. In this phase the data is preprocessed to fit the modeling tool(s). One could perform several tasks, multiple times if desired, and there is no M.M. Kneppers 11 prescribed order for these tasks. Task could include data cleaning, transformation of data, and/or adding new attributes. • Modelling This phase represents the various modeling techniques that have been selected and applied including parameters that optimize the outcomes. In general, there are multiple techniques used for the same data mining problem. • Evaluation In this phase, the modelling phase is reviewed and evaluated to detect if all business objectives are properly met. At the end of this phase, a decision is made concerning the use of the results of the data mining model. • Deployment At this phase, the outcome(s) of the model is presented is such a way that the customer can use it. In most cases, the user will carry out the deployment steps – and not the data analyst. It is important to set up a list of actions to make sure one will use the created model(s). 2.3. WEB MINING Web mining is the process of various data mining techniques to extract knowledge from web data (Ali, 2015). Data is moved from the World Wide Web towards a more comprehensible environment in which users can quickly and easily find information (Gupta, 2014). Web data can be categorized as web content, web structure and web usage (Figure 4). In short, web mining includes ‘the discovery and analysis of data, document and multimedia from the World Wide Web’ according to Gupta (2014). Figure 4. A graphical presentation of three sub-groups including further specification within the overarching domain of web mining. M.M. Kneppers 12 In this project, web content mining is performed. Raw data from specified web pages is converted into useful information. In figure 4, Web Content Mining is further referred to in this project as web scraping. Text and multimedia documents are copied from the internet and therefore the term web scraping is continued. According to the book of Mitchell (2018), web scraping is in theory “the practice of gathering data through any means other than a program interacting with an API or a human using a web browser”. Therefore, a web scraper is an automated program that queries a web server. It requests data from the web server and then parses the data to extract relevant information (Mitchell, 2018). In other words: web scraping is a technique of programmatically extracting data from websites without the need for user interaction. A web scraper can interact with a website like a user would do. 2.3.1. Scraping and Crawling There are differences between a web scraper and a web crawler – also called a spider – which the book of Jarmul & Lawson (2017) explains. Which type to choose depends on what one wants to extract from websites. The differences between a crawler and scraper are explained below. A web scraper is typically developed to target (a) particular website(s) to extract specific information from the website(s). In the case a website changes, for example, the location of the desired information, the web scraper needs to be modified to still extract the same information (Jarmul & Lawson, 2017). Then, in contrast to a web scraper, a web crawler is built to gather more specific information by picking up small bits of information from many different websites. Usually, a crawler is developed in a more generic way so that it can target websites from a series of top-level domains or for the entire web (Jarmul & Lawson, 2017). A web crawler can also crawl pages that are linked to other sites (via URL) or documents. Table 1 summarizes the differences between the two types. M.M. Kneppers 13 Table 1. Explaining the differences between a web scraper and a web crawler. To conclude, the main difference between a scraper and crawler is that a crawler is often used by search engines for indexing purposes as it easily browses through links on websites and a scraper extracts content from a website and stores it locally (Chapagain, 2019). BeautifulSoup and Scrapy are the most popular and commonly used libraries for web scraping (Mitchell, 2018). Selenium is a popular library when scraping JavaScript codes and has a different set-up than BeautifulSoup and Scrapy. Scrapy is a Python framework that can be explained as an “open source and collaborative framework for extracting the data you need from websites” (Mitchell, 2018). The framework is used for large scale web scraping as it can extract data from websites in an efficient manner where after it processes and stores the data in the preferred format (Zaki Rizvi, 2017). The Scrapy framework is also called web spider as it requires a root URL in order to start “crawling”. One can specify constraints regarding the URLs, namely how many to crawl and fetch. Hence, a Scrapy web spider can crawl multiple URLs that are linked to the root URL. The spider automatically handles cookies which makes it easy to access other URLs without problems (Mitchell, 2018). The limitation of Scrapy is regarding JavaScript and dynamic content websites. To overcome this limitation, one could use the packages Splash or Selenium for Python. The BeautifulSoup library fetches data from a given URL and allows one to parse specific parts of the website. BeautifulSoup is a popular library for obtaining data from JavaScript websites and/or dynamic contents (Mitchell, 2018). This library differs from Scrapy as BeautifulSoup is a parsing library in Python. BeautifulSoup can parse HTML and XML files. Web Scraper Web Crawler The tool used is web scraper. The tool used is web crawler/spider. The purpose is downloading information. The purpose is indexing web pages. Does not visit every page of the website. Visit every page of the website. Activity is on a small and large scale. Activity is (mostly) on a large scale. Requires a crawl agent and parser for parsing a response. Requires a crawl agent only. M.M. Kneppers 14 A dynamic website does not necessarily mean that figures are moving or includes embedded media. The Dynamic HTML (DHTML) is HTML code that changes scripts on the client side so that when a user moves the cursor, it triggers a button to appear (Mitchell, 2018). Examples of websites with dynamic content are e-commerce websites, blogs or any websites that include information that needs to be updated regularly. After fetching the contents of the given URL(s) main page, the crawler stops. If one wants the crawler to fetch more content, new URLs must be added. Furthermore, the handling of cookies, managing of proxy’s and feed export options (e.g. CSV, JSON, XML etc.) are manually added to the code (Mitchell, 2018). This differs from the Scrapy framework as Scrapy is a more complete web crawler used to extract structured data on a large scale. Fetching data from the web could include personal data. In Europe, the GDPR (General Data Protection Regulation) is a regulation withholding organizations from collecting and storing information of natural persons. Therefore, most web scrapers are equipped with a Python anonymization package: anonymization 0.1.2. Before loading the data into a local file, this package modifies the original names, e-mail addresses, and social security numbers into randomly selected alternate names or numbers. The tool still obtains personal data in this way, but only in such a way that it is not traceable to an individual. Thus, companies act in a compliant way with regards to scraping adhering to the General Data Protection Regulation (GDPR). 2.3.2. Web technologies The most widely used web technologies are HTML (Hypertext Markup Language), CSS (Cascading Style Sheets), and JavaScript. All three are different and require diverse (web scraping) techniques to correctly extract content. This is due to the numerous ways websites can be built by developers. According to Chapagain (2019, p. 9), a web page is “a document that contains blocks of HTML tags”. These blocks can have sub-blocks linked as dependent or independent components from different interlinked technologies. These include JavaScript and CSS. An application protocol widely used on websites is Hyper Text Transfer Protocol (HTTP). HTTP transfers resources such as HTML documents between a web browser and a web server (Chapagain, 2019). HTTP is a stateless, non-interactive protocol. Web browsers and servers exchange information using HTTP requests and responses. Figure 5 visualizes the information exchange with HTTP. M.M. Kneppers 15 Figure 5. Visualization of the information exchange between web browsers and servers using HTTP requests and responses (Chapagain, 2019). The first step in any web scraping process is to send an HTTP request to the website’s server to obtain the data on the target web page. A principal element of a website set up is the markup language such as HTML and Extensible Hypertext Markup Language (XHTML). HTML is the primary markup language for web pages, whereas XHTML is an advanced and extended version of HTML. These markup languages include text, figures, style sheets and scripts. The markup language determines and contains the contents of a web page. Web scrapers can easily access information and other data sources inside HTML pages due to a predefined instruction set called ‘tags’ (Chapagain, 2019). Another commonly used technology is CCS (Cascading Style Sheets) and describes the “display properties of HTML elements and the appearance of web pages” (Chapagain, 2019, p. 21). Web-based technologies like JavaScript and HTML are focused on content (i.e. content binding, content development and content processing) whereas CSS provides the styling (Chapagain, 2019). It presents the appearance of HTML elements which are read by web scrapers. CSS can be controlled by web developers as well as designers. A third, and widely used, web technology is JavaScript. JavaScript is a programming language that is mostly used to add dynamic features to a web page. An example of this dynamic nature of JavaScript is the user-based interaction which allows log-in functionality (Chapagain, 2019). JavaScript contradicts HTML as the latter is framed as a static interface. However, JavaScript can be incorporated into HTML script when adopting the programming logic of JavaScript (Mitchell, 2018). Most modern web pages are not solely HTTP based as elements of JavaScript are incorporated to dynamically populate pages. This creates a challenge for web scrapers when built with low-technical complexity. The dynamic nature of JavaScript disables such scrapers from accessing and downloading data on JavaScript based webpages (Mitchell, 2018). Additionally, scraping JavaScript is a slow process due to the complexity of web pages which results in a decrease in speed of the crawler. Hence, one M.M. Kneppers 16 requires a more technical scraper to access JavaScript pages which results in the use of the Python library Selenium. Selenium works by automating browsers to read and execute JavaScript code before making it available for a scraper to parse the data. Selenium can take screenshots to assert that certain actions have taken place on the website. The library requires an integration with third-party browsers in order to run (Mitchell, 2018). Examples of browser options are Firefox, Safari and Microsoft Edge. Depending on the scale and time restrictions of a web scraping project, one can decide to develop a Selenium scraper. Alternatives are performing HTTP requests or developing a more sophisticated approach to scrape websites with JavaScript in a fast and comprehensible way (Chapagain, 2019). 2.4. TEXT MINING Text mining is the process of detecting interesting, non-trivial patterns from large text-based data sources (both structured as unstructured sources). Unstructured data sources contain data that cannot be readily indexed or mapped into a standard database field. By contrast, structured data sources can. Text mining adopts techniques from information retrieval, information extraction as well as natural language processing (NLP) to connect them with algorithms and methods of data mining, statistics, and machine learning (Hotho & Paaß, 2005). In contrast to data mining, text mining takes a linguistic approach when evaluating data from sources (Bengford, Bilbro & Ojeda, 2018). Considering language as ambiguous and arbitrary is required to leverage data encoded in language (Deitel & Deitel, 2019). Two elements of text are tokens and words. “A token is a string of encoded bytes that represent text” according to Deitel and Deitel (2019, p. 12) whereas words represent meaning and textual construct. Words are considered as symbols when analyzing text. Text mining gained popularity as over 80% of the world’s information is stored as text (Gupta & Lehal, 2009). Synonyms for text mining are text analysis or text data mining. 2.4.1. Text preprocessing A text document is split into a string of words and to obtain all words that are used in a given text, tokenization is required. This process removes all punctuation marks and replaces non-text characters (i.e. tabs) by single white spaces. After tokenization, the text’s representation can be used for further processing. The following preprocessing step, after tokenization, is reducing the size of the dictionary. A dictionary is defined by Hotho and Paaß (2005, p. 6) as “the set of different words obtained by merging all text documents of a collection”. Filtering, lemmatization and stemming methods can be applied to reduce size. See table 2 for techniques on reducing size. M.M. Kneppers 17 Table 2. Text preprocessing techniques explained that are used in text preprocessing. Preprocessing technique Explanation Convert to lowercase The conversion of text to all lower-case letters creates a state in which text becomes case-insensitive for algorithms and thus easier to group and sort (Deitel & Deitel, 2019). Filter stop words Stop words bear little or no content information and appear very frequently in text. Examples of stop words are the, and, it, is, on. These words have little statistical relevance due to the high frequency of occurrences in text and therefore no distinguishment between documents is possible (Hotho & Paaß, 2005). The filtering of stop words can improve analysis significantly as there is less noise in the data. Stemming and Lemmatization In most text documents there is the possibility that the root of a word is mentioned multiple times in several ways throughout the document (e.g. happy, happier, happiest). Such words can be considered as duplicates. Lemmatization is a technique in text mining that links words with the same root to minimize redundancy but saving the original words’ context (Deitel & Deitel, 2019). For example, the lemmatized form of “happier” is “happy”. Stemming is a technique that reduces words to their stems. A stem is a group of words with equal (or very similar) meaning. It strips the plural ‘s’ from nouns, the ‘ing’ from verbs, or other affixes (Hotho & Paaß, 2005; Deitel & Deitel, 2019). 2.4.2. Relationship and pattern identification Several text analyses techniques can be used to discover relationships and patterns from unstructured text documents. The first technique to discuss is frequency analysis. This analysis can analyze a corpus in detail, and more specifically, into four levels: (1) frequency of word classes, (2) frequency of words, (3) combinations of word classes, and (4) combinations of words (Johansson & Hofland, 1989; Bengford et al., 2018). These analyses are often used to identify patterns in text (frequent co-occurrences) and the relationship words and word classes have in a corpus. M.M. Kneppers 18 Frequency of word classes (1) presents insight on the frequency of nouns, verbs, and prepositions in the text body as well as within a topic category (e.g. food, news). A list (alphabetically) presents the frequency of words (2) in text documents. The frequency of word class combinations (3) provides information on word classes that immediately precede each other and/or follow a specific word class. Such information helps to gather context of words and text categories. The last frequency analysis type, (4), is often referred to as n-gram analysis and shows the combinations of individual words that are often mentioned together (Johansson & Hofland, 1989). Deitel & Deitel (2019, p. 479) defines n-gram analyses as “the creation of consecutive words in a corpus for use in identifying words frequently appear adjacent to one another”. The name n-gram is deduced from the fact that an argument of n-words is tolerated. As a result, an analysis of two consecutive words is called a bi-gram and for three consecutive words it is called a tri-gram analysis. The argument n can produce n-grams of any desired length. Figure 6. The n-gram pipeline when analyzing a text body using TF-IDF technique resulting in an output which is text classification or clustering of words. Figure 6 represents the pipeline of an n-gram analysis including output: the classification or clustering of words. This will be discussed in the next paragraph, 2.4.3. In the middle, TF-IDF (Term Frequency – Inverse Document Frequency) normalizes the frequency of words in a document. By doing this, one accentuates words that are truly relevant to a specific instance or paragraph. As a result, this leads to better classification and/or clustering of words. TF-IDF is an approach that weighs each word in a text document according to its uniqueness (Al-Talib & Hassan, 2013). The method is based upon a statistical measure that multiplies the frequency of a word in one document with the inverse article frequency of the word across the set of documents. TFIDF measures the relevancy of words resulting in good differentiation ability of this technique. The equation (1) shows the formula of TF-IDF. !" −$"% ( '(,*+ ) =!% ( '(,*+ ) !./0 ! !" 11111!!!!!!!!!!!!1 The part tf(ti,dj) represents the term frequency of term i in document j, N represents the total number of documents in the dataset, and n represents the number of documents where the term i appears (Zhang, Yoshida & Tang, 2008). Hence, the more times a word appears in a document, the more value it will (proportionally) gain. N-Gram code: reading corpus TF-IDF Classification or Clustering (1)) M.M. Kneppers 25 3. CSR PROJECT Compliant investments and clients are an essential part of being a responsible bank nowadays. Therefore, this project is of high importance for NIBC Bank. The project process was designed for longterm value and using sustainable techniques that would stay relevant and available. The project follows the framework of the CRISP-DM model. The main steps of the model are (1) business understanding, (2) data understanding, (3) data preparation, (4) modelling, (5) evaluation, and (6) deployment and will form the basis of this chapter. This framework is applied on a portfolio NIBC holds to illustrate the way of researching CSR levels. The portfolio exists out of 15 organizations in different industries, countries, and sizes which is an all-round example for testing the CSR tool. Both the name of the portfolio and the organizations within the portfolio are confidential information. The bank has been working on the CSR project for one year now. The project consists of two parts: a web scraping part and a text mining part. Both parts are required to serve an integrated and comprehensive approach towards CSR commitment. The output of the project is called CSR tool; however, the actual output is a dashboard presenting a CSR scorecard and several supporting dashboards with an in-depth focus. 3.1. BUSINESS UNDERSTANDING This first step of the CRISP-DM focuses on understanding the objectives and requirements of the stakeholders. After that, a data mining process definition accompanied by a draft version of the project plan is created to achieve the objectives set. The CSR project has two main stakeholders: internal stakeholders with internal interests and internal stakeholders with external interests. Stakeholders with external interests want to share data outputs with external parties whereas the internal interest stakeholders do not. For simplicity reasons, the first group of stakeholders is considered ‘internal’ and the second group of stakeholders is ‘external’. This split in stakeholder groups arose due to different requirements in data output (figure 9). Internal stakeholders make use of the output in the form of dashboards and research reports together with reports for due diligence and monitoring usage. External stakeholders, to the contrary, make use of the output in the form of a CSR scorecard that is shared with (potential) clients and makes use of a dashboard for a thorough company analysis. M.M. Kneppers 26 Figure 9. The data outputs of the CSR Tool are customized to the wishes of internal (blue) and external (red) stakeholders within NIBC Bank. The stakeholders created objectives and requirements for the CSR project. The objective of the project is to obtain reliable insights into best-scoring CSR criteria and worst-scoring CSR criteria from a portfolio (or a single organization) that could become a risk in terms of CSR commitment to base investment decisions on. The User Requirement Model framework was applied to the project to obtain requirements and preferences of stakeholders. The main requirement all stakeholders agreed upon was the inclusion of company profile information, quick insights into the overall ESG commitment (micro- and macro-level) and incorporating a CSR commitment timeline to see if organizations are improving their CSR levels over time. These requirements lead to KPIs (Key Performance Indicators) that measure the degree of achievement towards the requirements and objectives of the stakeholders. The KPIs were defined using the User Requirement Model framework and described below: 1) Show 90% compliance with the needs of governmental regulations. This is an important KPI for Corporate teams within NIBC bank as they expect that upcoming (EU) regulations will be pushing towards more transparency regarding CSR topics. 2) Meeting the pillars in sustainability by showing 50% commitment towards: a) Environmental impact metrics. These metrics are incorporated in the 300 sustainability criteria in the dictionary of the text mining Tool. The output file provides a numeric indication of commitment towards these metrics. Amongst others, these metrics are the CO2 emission and carbon footprint of organizations. b) Social impact metrics. Includes the organization’s commitment towards labor best practices inside as well as outside their organization (i.e. third-party supplier). M.M. Kneppers 27 c) Governance impact metrics. Governmental impacts include many aspects that are hard to quantify but need to be mentioned in reports to acknowledge their impact. These aspects are incorporated in the dictionary of 300 sustainability criteria. 3) An industry-level improvement towards CSR levels each year. Incorporating a timeline of CSR commitments by industry shows which industries are front-runners and which ones are behind. This helps could end-users to determine which industries to avoid or prefer. The bank developed a web scraper due to its ease of use and completeness of information gathering. The web scraper is used to systematically retrieve data (raw text) from (potential) clients and suppliers’ company websites, process it and then store the information in a local file. The use of an API would have been easier and less time consuming, however, there is no API that can gather small sets of data across many websites. Therefore, NIBC decided to build a web scraper themselves. The web scraping scripts were written in Python using Scrapy. The Scrapy framework was preferred over BeautifulSoup due to the fit towards the type of usage of the web scraper. Scrapy does an excellent job with static HTML websites and allows manual input URLs. The input is homepage URLs of corporate websites that are analyzed into detail concerning CSR and sustainability commitment. The URLs can be collected as random series of organizations or per portfolio. In order to compare organizations in terms of CSR performance, the collected data should include basic company information as well as press and media information. Basic company information entails the location of the organization, sector, industry, financial ratings, number of FTEs, total revenues, total balance sheet and emission data. By combining the balance sheet and revenues one can estimate emissions using PCAF methodology. PCAF stands for Platform Carbon Accounting Financials and is an initiative of Dutch financial institutions to calculate their investments’ carbon footprints (Warmerdam et al., 2019). Press and media information are required to detect CSR opinions related to the portfolio. It proactively monitors the portfolio for mentions in press, media, NGO reports or other public data in terms of controversies. Figure 10 presents the process flow of the CSR project: data collection via diverse data sources, data processing via text mining techniques and application of the sustainability dictionary, data analyses and modelling resulting in data outputs. The data outputs are split to meet the requirements of both groups of stakeholders. M.M. Kneppers 28 Figure 10. Process flow outline of the CSR project with five main processes which are data collection, data processing, data analysis, and data outputs. 3.2. DATA UNDERSTANDING This step of the CRISP-DM model starts with the collection data. Once the data is collected, the data is explored to get familiar with the data and identify data quality problems. Lastly, the first insights can be obtained from the data by running basic analyses. The collection of data for the CSR project is done via diverse data sources. These data sources have been selected due to the diversity of content (formal, informal), source location (web, media, report), and the type of end-user. The motivation for such a diverse selection of data sources is to obtain a wide spectrum of information related to an organization to be able to filter CSR related content only. This way, NIBC can grasp CSR content from several types of stakeholder's organizations deal with. The data sources are described in table 3 including the selection objective per data source. M.M. Kneppers 29 Table 3. The data sources founding the CSR too described per data type and selection objective. Data Source Data type Selection objective Public Reports (listed organizations) Annual reports, code of conduct, sustainability reports Level of CSR commitment through the eye of the organization. (Social) Media Twitter, Google News Detecting red flags and allegations a company does not (want to) report. Client Website Home page URL CSR commitment on public website. Private Reports (nonlisted organizations) Annual reports, code of conduct, sustainability reports Level of CSR commitment through the eye of the organization. Other Public Data Yahoo Finance Company-profile data to establish fair comparison requirements. The data collection of client website information is performed via a web scraper. The scraper requires a list of URL’s and company names in order to perform a web crawl. These URL’s need to be saved in a separate document called ‘seeds.txt’. The scraper crawls through each of these websites and checks each web page for keywords related to sustainability. These keywords are defined in a whitelist called ‘web.py’ within the folder called ‘spiders’. The web scraper performs a level two scrape which means that it can navigate to other pages that are linked to the input URL and can open PDF documents from the website to extract all text. Public and private reports are analyzed using text mining techniques. NIBC’s existing text mining scripts are developed in Python and require three inputs to run: a set of to-be analyzed .txt files, a concept vector list as .txt file, and a CSR dictionary as .csv file. • The folder ‘sets’ includes a series of .txt files from public or private documents from one organization or a portfolio (i.e. set of organizations). Public documents such as annual reports and code of conduct reports are gathered here, as well as the output of the web scraper. Every .txt file will form a column in the output of the Text Mining Tool. This way it becomes clear where organizations place statements concerning CSR. M.M. Kneppers 30 • A CSR dictionary holding over 300 sustainability criteria based on the frameworks of ESG and SASB. Each criterion in the sustainability dictionary is linked to a unique code. This unique code is the identifier of the sustainability criterion and will be used as primary ID. Per criteria, a timestamp and company name are fixed columns in the output file. The timestamp functions as evidence trail to track CSR performance over years. • The concept vector is a document holding the regular expressions (RegEx) of the 300 sustainability criteria. The expressions make it possible for the Tool to detect these sustainability criteria in the unstructured text documents from the folder ‘sets’. The output of the text mining Tool is an .xlsx file. The output file contains over 300 sustainability criteria as rows and holds a column for every document in the folder ‘sets’. All input files hold the same structure after the text mining tool. This facilitates an easy integration into one text corpus for analyses on a portfolio instead of approaching the files as single organizations. 3.2.1. Data collection Data sources have been added to develop a more holistic data collection foundation. At first, only public documents and website contents were active data collection mechanisms. By introducing (social) media sources (i.e. Google News and Twitter) and other public documents like Yahoo Finance data, the data sources are extended in a comprehensive manner. Depending on the type of analysis one wants to conduct with the CSR Tool, big batches of data can be extracted and collected via these sources. First, the data sources collected by the web scraper are discussed, whereafter the other data sources are explained. Public and private reports as well as client websites are data sources accessed via the internet (web). Home page URLs are collected and used as input before running the scraper. - Public and private report - Client website Other public data sources are collected in a different manner. The (social) media sources collect their data via Application Programming Interfaces (API) in which the API functions as an open door to media data (e.g. tweets, posts). An API functions as a servant between the media source and your local environment. - Twitter Twitter requires registration when one requests access to their API (Deitel & Deitel, 2019). The M.M. Kneppers 31 API request is based on a specific hashtag, username, or topic but could also be a combination of the mentioned forms. The objective for extracting Twitter data focuses on the detection of sentiment and trending topics. These support the banks' research into clients and suppliers in order to detect (potential) allegations. The available Twitter applications in the development area explain the many ways the APIs can extract information. The way of extracting tweets via the API is defined in the specification settings. The first specification was set to not include retweets. Retweets (RT) are original tweets that are reposted by other users. By only including original tweets in a search string, the output quality is controlled. Secondly, the language of the tweets can be set. English is the default setting and furthermore the language chosen for the CSR project. In case of researching a non-English tweeting organization, the Python library of Google Translate ‘googletrans’ can directly translate the tweets into English if desired. Lastly, the maximum number of tweets to load into the data frame can be set. The API extracts both real-time and historic tweets, which could result in long processing times when no maximum is chosen. To ensure fast processing times, the maximum number of tweets to be extracted was set to 500. One of the most popular Python libraries that interacts with the Twitter APIs is Tweepy. Tweets are extracted based upon a search query on username, hashtag, or search term. The search queries were as follows: @OrganizationName sustainability; @OrganizationName Corporate Social Responsibility #CSR; @OrganizationName UN Guidelines; @OrganizationName accused. In the output data frame, an additional column is added containing a timestamp of the current date. This timestamp will contribute to the evidence trail of analysis performed by the bank regarding the CSR Scorecard. - Google News Google News possesses a Python library that can extract Google news in a fast and easy to manage manner. The Python libraries necessary to run Google News are newspaper and the tldextract module. The data that can be collected via Google News is enormous, meaning that M.M. Kneppers 32 a search query is optimized when it is extremely specific. This way, less noise data will enter the data frame, hence data quality will be higher. The library of Google News includes Google Search and Google Trends. The library is userfriendly in such a way that once you run it, it will ask for a search query. This can be a company name combined with a (sustainability) topic. The search queries given in this project were: OrganizationName sustainability; OrganizationName Corporate Social Responsibility; OrganizationName UN Guidelines; OrganizationName accused. The columns exported to Excel are publication, title, article text, publication year, publication month, publication day, URL and timestamp. The objective for adding Google News as a data source was due to a lack of news-oriented documents in the current data collection sources. The news documents will be used for sentiment analyses purposes as well as topic classification when handling NGO blogs, newspaper articles and commercial publications. - Yahoo Finance Similar to Google News, Yahoo Finance is a Python library called yfinance which can extract desired information by performing lookups based on tickers. Tickers are abbreviations (or nicknames) of the organization’s name that is trading stocks. For example, the ticker for Apple Inc. is AAPL in Yahoo Finance. Distinguishing one organization from another requires differentiating variables. These variables could be size (revenue, FTEs) as well as industry, location (country) and an organization's main activity (i.e. NACE code). This type of information is defined as profile information in Yahoo Finance (table 4). Next to profile information, yfinance extracts financial statements such as income statement, cash flow, and balance sheet. These statements were extracted in the same way as profile information. M.M. Kneppers 33 Table 4. Profile information of tickers requested in yfinance including the attribute, ticker and recent (i.e. output per attribute). Attribute Ticker Recent Sector NIBC.AS Financial fullTimeEmployees NIBC.AS 460 City NIBC.AS The Hague Country NIBC.AS Netherlands longBusinessSummary NIBC.AS NIBC Bank is a merchant bank situated.. companyOffices NIBC.AS 5 Only specific fields from the financial statements are extracted to minimize noise in the data. These fields in the income statement are revenue, profit, tax, EBIT, and EBITDA. The balance sheet includes total assets, total capitalization, and total debt. Lastly, the cash flow position is a required field from the cash flow statement. Concerning basic profile information, the bank is interested in size (i.e. FTEs, total capitalization), location (i.e. address, country), sector and industry. All information from yfinance is triggered using tickers. One can tweak the Python module in such a way that only the desired data comes out. This minimizes unnecessary data outputs and increases data quality. NIBC determined which information was desired for the CSR project to extract from Yahoo Finance. For example, financial statements were gathered to determine emission numbers and revenue numbers. Emission numbers are helpful indicators for the Corporate Sustainability teams. A disadvantage of using yfinance as source for the CSR project is that yfinance can only find profile information and financial statements of listed organizations. Thus, when a (potential) client of the bank is not listed, one can (most probably) not find the organization and will get no output. Most of NIBC’s clients are small to medium sized enterprises. This means that if Yahoo Finance does not provide information on an organization, the missing data needs to be filled in manually. M.M. Kneppers 34 The portfolio holds 15 organizations with the following data observations collected: - Public reports from the last 3 to 5 years for all 15 organizations. All organizations in the portfolio are listed and thus hold an annual report, code of conduct and sustainability report. The reporting of non-financial information has been obligated for listed organizations since 2017 by EU regulation. Organizations are obligated to act upon this directive when they have more than 500 employees and a net turnover of 40 million euro. - Media data holds Twitter and Google News resulting in the collection of 200 tweets and 200 news articles per organization in the portfolio. - Each organization in the portfolio possesses its own website resulting in 15 home page URLs as input for the web scraper. The web scraper performs a level two scrape which entails the scraper can navigate to other web pages that are linked to the input URL including opening PDF documents. - Private reports have not been collected as all organizations in the portfolio are listed. - Yahoo Finance collects per organization in the portfolio the profile information, balance sheet and income statement. Profile information includes country, offices, FTEs, and NACE code (business activity). All data observations are saved in a local database and form the foundation of the NIBC Universe benchmark. Both national and international organizations are collected for the benchmark as the bank actively operates in several European countries. Two indexes have been used as benchmark in this project, namely the Dutch Small Cap (AScX) and the German Small Cap index (SDAX). The SDAX holds 70 German SME enterprises whereas the AScX holds 25 SME enterprises. An organization is considered SME when they represent a stock market value between €300 million to €2 billion (Semmie, 2021) 3.2.2. Data exploration Data exploration is performed to identify data quality problems. The identification of quality problems in textual data begins with detecting miss-spelled words and handling random white spaces. If this is not handled correctly, the analyses built upon the data may also include faults. Data is collected from multiple sources, is unstructured and includes many punctuations, stop words and numbers. In order to correctly handle these issues, preprocessing is a key step in building reliable, structured data. Paragraph 3.3. explains the preprocessing steps taken in this project. A word cloud provides a first visual insight into the data by showing the frequently used words and topics from the text corpus. Words that appear frequently gain a bigger font size in the word cloud. Thus: the bigger the font size, the more often the word is used. Figure 11 shows a word cloud of the M.M. Kneppers 41 Figure 13. Topic classification model on Google News data from the portfolio showing the probability a piece of text belonging to a specific topic. An additional step in topic classification is the correlation between one of the nine topics and an organization within the portfolio. The color of the boxes is important when reading figure 14 as the darker the box, the higher the correlation between topic and organization. Such correlation matrix shows ESG strengths and pitfalls in an organized, structured way. Figure 14. A topic correlation matrix from the full text corpus showing the correlations among text documents and the topics extracted in topic modelling analysis. M.M. Kneppers 42 At last, the data that was extracted from Yahoo Finance was not analyzed or processed but is directly incorporated in dashboard models (see the next paragraph 3.4.2.). This is due to the filtering options the yfinance library provides to extract only desired profile information and financial statements. Therefore, the output files do not contain redundant data which requires no preprocessing tasks. 3.4.2. Dashboard modelling Dashboard modelling is applied to rate CSR commitment levels on the portfolio. The output of the secondary data analyses was focused on detecting red flags and addressing CSR topics within a portfolio showing high or low commitment levels towards specific topics. Dashboard models show the overview of CSR due diligence and are used for monitoring purposes. The main overview presenting insights into the portfolio’s commitment levels is the CSR Scorecard (see figure 15). Figure 15. The CSR scorecard presenting the CSR commitment levels of a client’s portfolio based on text analysis highlighting the most interesting findings. The CSR scorecard and its accompanied dashboards were created in Microsoft Power BI, filled with data from the Python data frames originating from secondary data analyses. Due to the broad collection of data, interactive models with various drilldown possibilities were created. Each visual within the CSR scorecard is explained below, from left to right. - On the left side of the dashboard (figure 15), from top to bottom, the fields E, S and G are mentioned. The first box holds information on E (environment) commitments with the blue boxes holding four words (or word combinations) most frequently used in the portfolio and M.M. Kneppers 43 their commitment levels. These levels are determined by a threshold of 50% (based on KPI number 2) and connected with the level of commitment from a benchmark. The benchmark is a set of similar organizations combined as a portfolio which the system selects from a data lake. This data lake is filled by the web scraper. In theory this means that if a commitment level of the portfolio is higher than the benchmark’s commitment level, the portfolio outperforms the benchmark. This entails that the portfolio is more committed to this topic than their peers. By clicking on one of the E, S or G field topics, one is redirected to a new board (figure 16) in which ESG levels are modelled in a graph per industry. This graph also highlights two ESG topics based on importance to the portfolio. The importance is measured in the N-gram analyses by high-frequency and in the model’s threshold level compared to the benchmark. Figure 16. Dashboard presenting ESG classification of a specific organization in the portfolio in order to understand and zoom into a certain CSR specification. - The upper, middle box states the four most important ESG topics of the portfolio together with the total number of text classifiers analyzed in the sentiment analysis. The ESG topics present which are the portfolio’s most valued topics by using the topic classification analysis outcome. The sentiment of the text is gained from the social media sources collected on the portfolio. A total of 3000 articles shows the percentage of positive and negative commitment towards the selected CSR topics. Figure 17 presents the drill-down dashboard when clicking on the middle box. This dashboard presents findings on ESG topics and their sentiment in more detail. The timestamp is added to ensure data quality and reliability by using up-to-date information. M.M. Kneppers 44 Figure 17. Dashboard presenting the sentiment analysis per ESG topic for the portfolio based on sentiment analyses performed and expressed in visuals and text. - The pie chart in the middle is a graphical presentation of one of the popular ESG topics from the box above. It presents the industries within the portfolio that are most committed to this specific topic. By clicking on the graph, a new dashboard opens named ‘ESG criteria per level’ (see figure 18). This dashboard presents a drilldown into organizational ESG commitment over time. It can highlight the country and size (in revenue) of organizations to make a fair and justified conclusion on commitment levels. By clicking on the bar chart, this information becomes visible. Figure 18. Dashboard presenting the E, S, and G criteria over time of the portfolio. M.M. Kneppers 45 - The light blue box, on the middle right side, contains the portfolio profile information. This box discloses financial- and background information on the organizations within the portfolio. This data is pulled from Yahoo Finance. Upon clicking the box, a new dashboard will open with more details on the portfolio (figure 19). Figure 19. Profile information dashboard showing generic information such as industry, FTE and financial statements on an organization within the portfolio. - The graph at the bottom of the board presents the overall ESG commitment per country in the portfolio. The dark blue levels are Dutch organizations whereas the light blue ones visualize the German organizations in the portfolio. Such visualizations create a good overview of legislation challenges and ESG gaps within countries. By clicking on a specific industry, it becomes possible to drilldown until company-name level within the main CSR scorecard board. 3.5. EVALUATION In this step of the CRISP-DM model, stakeholders review and evaluate the outputs from the modelling phase and determine if objectives and requirements are properly met. The evaluation of data models and output is a key step in the project as stakeholders express their trust in the outputs. Based upon this, a decision is made to use the results. The output types are driven by the objective of this project and the expected upcoming (EU) regulations to increase reporting on sustainability. The main objective of this project is fulfilled when the CSR scorecard and accompanied dashboards present reliable insights into CSR commitment levels M.M. Kneppers 46 and identify (potential) red flags. The quality of the output has been measured by the validity and reliability of the insights. Reliability is about the consistency of measures used in the dashboards, and validity is about the accuracy of measures used. These quality measurements were held against reports presented by other CSR rating reports by independent organizations. An example of a CSR reporting organization is VigeoEiris. Due to the incorporation of a diverse selection of data sources, the reliability and validity of the CSR scorecard has increased. This is caused by the addition of media sources which highlight different angles of an organization as well as a representable benchmark to compare results to. The inclusion of these sources of data proved to be beneficial when detecting allegations and helpful to gain insights into the company’s accountability in supply- and process chains. The set of requirements and KPIs are assessed in this step. The first KPI was 90% compliance with the needs of government regulations. This KPI is met in this project. All organizations within the portfolio had mentions of governmental regulations which indicated that they are aware of these regulations and most probably adhere to them. The second KPI was a 50% commitment level towards the E, S, G pillars. This KPI was not fully met as the portfolio held organizations from different industries and countries resulting in uneven distributions of commitment levels in pillars E and G. Not meeting this KPI is not alarming, but rather interesting to identify the cause of these differences in commitment levels. This led to the insight of low standardization levels within Dutch company reporting on the E pillar whereas German companies have frameworks that require them to report on Environmental topics. Low standardization levels cause differences in the number of mentions even though organizations might be active in such topics. The last KPI, industry-level improvement towards CSR commitment each year, was met by all organizations in the portfolio. Regulations drive most of these growing commitments, however, stakeholders and consumers value CSR responsible organizations more than less CSR responsible organizations. This entails organizations improving brand image when associated with high CSR commitment in business activities. The identification of industry front-runners in terms of CSR is explored this way. The stakeholders concluded that the portfolio performed better than the benchmark in terms of CSR commitment. The drilldown into the sentiment of media news did not result in the detection of red flags or other concerns that could result in a risk for the bank. The sentiment of the portfolio is interesting for the stakeholders to base conclusions on. Negative sentiments can be identified quickly to explore the nature and severity of the sentiment. M.M. Kneppers 47 3.6. DEPLOYMENT The last step in the CRISP-DM methodology is deploying the tool for customers to use. Deployment is the action of bringing resources into effective action which entails bringing the CSR scorecard into use. This entails that the dashboard will be used by the internal teams which will present the findings to clients of NIBC Bank. NIBC Bank would like to be known as a ‘green-bank’ so investors can trust investments in non-controversial and CSR compliant portfolios. Internal users could consult this tool when researching an organization or supplier. As the dashboard shows the comparison between the organization itself and a suitable benchmark, it becomes clear whether commitment levels are sufficient for the bank. Discussions with the client could be initiated based upon the output of the CSR scorecard which could lead to more understanding and disclosure of CSR related topics. This is an important outcome for NIBC Bank as co-influencing (potential) clients towards a more non-financial reporting style creates opportunities to increase the transparency in CSR related topics. More transparency in CSR topics could mitigate risks involved in the supply chain and start open conversations to disclose these risks. In 2020, more than a thousand companies have been mined by the CSR tool of NIBC Bank. This number will only increase as the bank wants to create a solid benchmark to compare organizations’ sustainability levels. In order to provide the dashboard with data, the web scraper needs to run on input URLs whereafter the documents need to be preprocessed. These tasks need to be performed by the Innovation Lab who is the owner of the CSR tool. These steps could become a bottleneck in the deployment process. The CSR tool runs on local computers resulting in overwhelmed computers due to large numbers of text documents and processing power required. Therefore, the need for a shared database is increasing especially when deployment for customers is the next step. Setting up a central data environment where the CSR tool can run and store its documents and dashboards would be a solution. NIBC bank makes use of Azure Cloud which could function as a database for the CSR tool. The presence of a Cloud database will increase flexibility with regards to automatic dashboarding as well. Ideally, NIBC Bank would like to deploy the CSR scorecard with an input function for a customer (e.g. to-be analyzed portfolio) but running independently (i.e. no manual tasks) and delivering the dashboard a few minutes later. To create a tool like this, all processes must be connected and be triggered by one another. M.M. Kneppers 48 Another condition for creating a connected CSR scorecard is the type of web scraper. The current framework (Scrapy) scrapes static HTML websites. However, in the future the bank would like to scrape all kinds of websites including JavaScript and dynamic contents. This challenge could be overcome by the development of a second web scraper for input URLs that are JavaScript based. Such a web scraper could be built upon the framework Selenium. Selenium is a slower crawler than Scrapy as it mimics a user’s interface on a website. M.M. Kneppers 2 4. CONCLUSION The internship was a positive experience and essential for the beginning of my career in the area of Data Science. It has formed the fundament of my professional growth and taught me how and when to apply theories obtained at the University. Next to that, I discovered how to run and complete a project that involved several areas of the data field (from back-end to front-end). Throughout the project, many new ideas, insights and business opportunities were gained and undertaken to advance the project and my practical knowledge as a data scientist. The internship was a kick-start of my career in data, and I am thankful for the opportunities and responsibilities NIBC Bank gave to me. The most challenging part of the project was consolidating all the input data and adjusting it to the correct ESG framework. In order to judge an organization on its ESG levels, one must ensure the right and relevant data is available. Correct URL’s and financial reports as input are required, as well as relevant keywords to search news and (social) media websites for relevant information. The biggest success during the project was the alignment and connection between the gathering of the data (via web scraping tools and APIs) and the dashboard. The data mining classes at the University were essential for this project. Performing complex analysis and being challenged to develop your skills in a practical way (not only by theory), helped me to develop a holistic view of Data Science. Detecting a problem or challenge, which possibilities there are, and techniques to apply. I also learned that simplicity is important in data analytical projects as clients as well as stakeholders are more engaged then. Most companies are not yet aware nor prepared for detailed data analytical applications which means that even small adjustments can make a significant impact on organizations. 4.1. LESSONS LEARNED The main lessons I learned during the project at NIBC Bank are the technical challenges I ran into when developing the CSR tool. These challenges are the understanding of the existing web scraping code, the interpretability of the ESG frameworks, and lastly, the relationships between the data sources and variables. During the project, less time was spent on familiarizing yourself with the existing code and understanding the objective and future-planning of the project within the existing IT infrastructure of the bank. Next to that, it took some time to collect and align the stakeholder requirements. The requirements were formulated in a non-technical way thus required a transformation towards a data driven strategy. Due to my minor experience in data science, this was quite challenging. I have experienced that learning by doing is a way towards professional development. 49 M.M. Kneppers 3 Undoubtedly the biggest eye-opener during this project, was the lack of understanding from IT-side towards business, and business towards IT. For me, working with data and information infrastructures is amazing, because it combines technical knowledge (mathematics, statistics, computing) with human knowledge (psychology, organizational structures). The combination makes it interesting, dynamic and different in every situation. I am glad and thankful for joining this master at NOVA IMS and the internship at NIBC Bank. 50