scieee AI-readable full text Open interactive document viewer

Allocation of overdue loans based in an officer performance in a Sub-Saharan Africa microfinance institution

Araújo, Andreia Vieira

Abstract

Microfinance is a strategy adapted to provide opportunities to different economic classes, contributing to the financial flow of a country. However, it can also be a cause of economic failure if the cycle of the loan is interrupted, meaning if a loan is not repaid and a lot of money is lost. With the number of loans increasing, there is a high risk of having a lot more loans entering the overdue stage, overloading the resources available to take actions on the repayment of the loan. For that reason, this dissertation ”Allocation of overdue loans based in an officer performance in a Sub-Saharan Africa microfinance institution” expects to keep optimizing the way this part of the process works. So, initially, only one experiment was thought to be tested, as the title of this dissertation mention, but soon two more were added and conducted to keep seeking for a better distribution of the loans through the officers available, to maximize the probability of recovering the loan. In the first one, it was analyzed, using the classification method, the relation between the loan and some selected characteristics from the officers part of an optimized profile, in order to improve the connection officer-user. The three biggest characteristics chosen to build that profile did not show strong results with F1 scores between 0 and 0,74. Although this could be a good value to consider, there is a big gap between scores when there is a good prediction for paid/ unpaid. In the second one, an approach similar to the credit scoring models was followed, where the loan should be classified as paid or unpaid based on what prediction could result in the analysis of each loan characteristics. The results were not that different from the first experiment, where the Support Vector Machine present potential to be a solution with an F1 score average of 0.625, however when predicting the loans unpaid it showed to be random with a score of 0.55, losing the confidence in this option. In the third and last one, the experiment was similar to the second one. The difference was on what data mining technique was used - the clustering technique was used rather than the classification. This technique showed quite better results compared to the others, being possible to visualize well-defined clusters in the data. This way, the implementation of groups of loans and the prioritization scale would be the best strategy to organize the loans in the team and to assign them in an optimal way to maximize the recovery.

Full text

Copyrights and conditions of use of the work by third parties This is an academic work that can be used by third parties since they respect the rules and good practices internationally accepted, related to copyrights and connected rights. For this reason, this work can be used under the predicted terms in the license described below. In case the user needs permission to be able to make use of this work in conditions non-predicted by the indicated license, the user should contact the author, through RepositóriUM of the University of Minho. Attribution CC BY https://creativecommons.org/licenses/by/4.0/ ii Acknowledgements ”Estes anos são viagem Entre a água e o acontecer (...) É no vento a nossa casa” O presente trabalho não é só a entrega final de um trabalho, mas também o desfecho de uma das mais importantes etapas da minha vida. É de certo que, até ao momento, será a experiência unversitária aquela que definiu mais a pessoa que sou hoje - os meus processos mentais, valores e rotinas. Assim sendo, o primeiro agradecimento recai na Universidade do Minho, mais propriamente no Departamento de Produção e Sistemas, onde encontrei não só professores, mas também colaboradores, que me transmitiram experiências e ensinamentos em boas conversas formais e informais, e que as levarei sempre na memória como referência pelo ambiente profissional de companheirismo e troca de conhecimento. Realço professores como a Professora Sameiro Carvalho, Professora Cristina Rodrigues, Professora Senhorinha Teixeira, Professora Anabela Alves, Professor Ismael Vaz e Professor Filipe Alvelos, e realço também a profissional Amélia Aguiar, pelo seu grande apreço e devoção às iniciativas dos alunos. Referindo mais concretamente o trabalho aqui em questão, a presente dissertação, é difícil colocar em palavras a aprendizagem que este projeto me trouxe, o desafio de sair de uma zona de conforto e me testar diariamente em busca de uma resolução. Para tal, não teria alcançado os resultados a que me propus sem a orientação dos professores Filipe Alvelos e Filipe Portela, que sempre se disponibilizaram no auxílio da desconstrução do problema e de quais ferramentas encaixariam melhor. Nesse sentido, é imperial o papel que a empresa também desempenha, não só por ter apostado em mim para a resolução do problema, como também por todo o apoio dado (quer de infraestruturas e recursos, quer de tempo disponibilizado para acompanhamento). Daqui, realço o meu orientador Saulo Ruiz, por todo o tempo disponível, pela boa receção à equipa e pelas ótimas dicas e discussões ao longo do trabalho. E como o percurso universitário não é só feito da universidade e trabalho, é importante referir as pessoas que me marcaram pessoalmente, seja pelo apoio dado, ou pelas experiências passadas juntos e que me permitem ainda iii hoje contar com a sua amizade. Primeiramente, agradecer à minha família por todo o apoio dado no meu percurso educacional, principalmente aos meus pais e avós. A conquista que é o finalizar desta etapa é dedicada especialmente ao meu pai, pelo sonho que é para ele e por poder estar presente para me ver alcançá-lo, e à minha avó Lucinda que infelizmente já não se encontra presente para o partilhar, mas que me deixa um legado de valores pessoais que me inspiram diariamente, em qualquer projeto. De seguida, quero agradecer aos amigos que fui recolhendo ao longo de toda a experiência universitária, nomeadamente na ESTIEM, onde as oportunidades me levaram à visão sem fronteiras que carrego hoje em dia. Daqui realço, mais localmente, a Luísa Castro, a Inês Quelhas (juntamente com a gata Candy Crush), a Catarina Cacho, a Inês Marques, a Sónia Araújo, o Alexandre Silva, o Isac Pereira, a Regina Sousa, a Laura Machado e o Carlos Silva, mas também, com especial estima, à Mariana Martins e ao Pedro Silva, pela inspiração na partilha da experiência de direção do LG Minho. Muitas outras pessoas criaram impacto ao longo do percurso, mas deixo aqui explícitas aquelas que levo a sua amizade para outras novas etapas. Ainda no contexto da ESTIEM, muitas são as memórias de felicidade que me marcaram, nomeadamente, pela oportunidade de conhecer outras culturas e pessoas internacionais, pela oportunidade de melhorar skills e por todas as viagens que me foram permitidas fazer. Ressalvo também daqui, pessoas que tornaram toda a experiência melhor mas que ainda não foram referidas no parágrafo anterior - a Salomé Monteiro, a Bárbara Fernandes, a Joana Vaz, o Luís Viudez e a Nezy Silva, a Marta Gonçalves e a Sofia Cardoso. Para finalizar, e porque a distinção tem de ser evidenciada, agradecer, especialmente, à Salomé por todo o apoio emocional, e por me fazer sorrir todos os dias por tê-la ao meu lado (com certeza que aqui a minha carteira também te agradece por me clareares a visão para não ceder às compras compulsivas em alturas de mais stress); e à Luísa, pelos memes, pelas fotos do Novak e pelo companheirismo que tanto fizeram pela minha motivação. There is, also, a special thanks that need to be addressed - to Gregory Watson and Jukkis Turtiainen for the Continual Improvement Specialist program that for sure had a great impact in my mental processes and in the vision of what surrounds me. iv Statement of integrity I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. v Abstract Microfinance is a strategy adapted to provide opportunities to different economic classes, contributing to the financial flow of a country. However, it can also be a cause of economic failure if the cycle of the loan is interrupted, meaning if a loan is not repaid and a lot of money is lost. With the number of loans increasing, there is a high risk of having a lot more loans entering the overdue stage, overloading the resources available to take actions on the repayment of the loan. For that reason, this dissertation ”Allocation of overdue loans based in an officer performance in a Sub-Saharan Africa microfinance institution” expects to keep optimizing the way this part of the process works. So, initially, only one experiment was thought to be tested, as the title of this dissertation mention, but soon two more were added and conducted to keep seeking for a better distribution of the loans through the officers available, to maximize the probability of recovering the loan. In the first one, it was analyzed, using the classification method, the relation between the loan and some selected characteristics from the officers part of an optimized profile, in order to improve the connection officer-user. The three biggest characteristics chosen to build that profile did not show strong results with F1 scores between 0 and 0,74. Although this could be a good value to consider, there is a big gap between scores when there is a good prediction for paid/ unpaid. In the second one, an approach similar to the credit scoring models was followed, where the loan should be classified as paid or unpaid based on what prediction could result in the analysis of each loan characteristics. The results were not that different from the first experiment, where the Support Vector Machine present potential to be a solution with an F1 score average of 0.625, however when predicting the loans unpaid it showed to be random with a score of 0.55, losing the confidence in this option. In the third and last one, the experiment was similar to the second one. The difference was on what data mining technique was used - the clustering technique was used rather than the classification. This technique showed quite better results compared to the others, being possible to visualize well-defined clusters in the data. This way, the implementation of groups of loans and the prioritization scale would be the best strategy to organize the loans in the team and to assign them in an optimal way to maximize the recovery. Keywords: Assignment Problem, Data Mining, Microfinance vi Resumo O Microfinanceamento é uma estratégia adaptada para promover oportunidades para as diferentes classes económicas de uma sociedade, contribuindo para o fluxo financeiro de um país. Por outro lado, pode também ser uma causa de falha económica, se o ciclo do empréstimo for interrompido, isto é, se o empréstimo não for pago e uma parte do dinheiro for perdida. Com o crescimento do número de empréstimos, há um risco maior da extensão da data limite, sobrecarregando os recursos disponíveis para o repagamento do empréstimo. Por essa razão, a presente dissertação ”Alocação de empréstimos em atraso baseada na prestação do operador numa instituição de microfinanciamento da África subsariana” espera continuar a optimizar a forma como este processo trabalha. Assim, inicialmente, apenas um ensaio foi pensado para ser testado, como o título desta dissertação indica, mas rapidamente mais dois ensaios foram conduzidos para continuar a procura por uma melhor distribuição dos empréstimos pelas pessoas disponíveis, para maximizar a probabilidade de recuperar esse empréstimo. No primeiro, foi analisada, utilizando um método de classificação, a relação entre o empréstimo e algumas características dos funcionários (parte do seu perfil otimizado), no sentido de melhorar a relação com o utilizador. As três características do perfil escolhidas não mostraram resultados fortes com pontuações entre 0 e 0,74. Embora esta última teria potencial, existia um grande intervalo nos valores numa boa previsão para paid/ unpaid. No segundo, foi seguida uma abordagem similar aos modelos de credit scoring, onde um empréstimo é classificado como pago ou não pago baseado na previsão da análise das características de cada empréstimo. Os resultados não foram muito diferentes dos do primeiro ensaio, onde o Support Vector Machine apresentou algum potencial para ser solução com uma pontuação média de 0.625, no entanto, quando previa os empréstimos unpaid, mostrava ser aleatório com uma pontuação de 0.55, perdendo a confiança nesta opção. No terceiro e último, a diferença para o segundo estava em qual das técnicas de Data Mining foi utilizada - a técnica de clustering foi a escolhida. Esta técnica demonstrou melhores resultados entre todas, sendo possível a visualização bem definida de grupos nos dados. Desta maneira, a implementação de grupos e da escala de priorização seriam a melhor estratégia para organizar os empréstimos na equipa, de forma a maximizar a recuperação. Palavras-chave: Data Mining, Microfinanciamento, Problema de Alocação vii Index of Contents Copyrights and conditions of use of the work by third parties ii Acknowledgements iii Statement of integrity v Abstract vi Resumo vii List of Tables x List of Figures xii Acronyms xv 1 Introduction 1 1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Problem definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.4 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.5 Dissertation structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 Literature review 8 2.1 Industrial Engineering Management history . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.1 First Industrial Revolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 Second Industrial Revolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1.3 Third Industrial Revolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.1.4 Fourth Industrial Revolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 viii D.8 Distribution of the users from dataset B by education status. . . . . . . . . . . . . . . . . . 92 xv Acronyms CC team Credit Collection Team. xiii, 5, 6, 22, 61, 62 CRISP-DM Cross-Industry Standard Process for Data Mining. xiii, 23–25 CRM Customer Relationship Management. xiii, 19, 20, 65 DSR Design Science Research. 23 GAP generalised assignment problem. 18 GDP Gross Domestic Product. 2 MFI microfinance institution. vi, 2–4, 6, 7, 32, 35–38, 43, 46, 58, 61, 67, 73, 75 NPL Nonperforming loans. xiii, 1, 2 P2P Peer-to-Peer. 2 PCA Principal Component Analysis. xiv, 26, 31, 50, 52, 56, 57 SMME small, micro and medium-sized enterprises. 2 SVM Support Vector Machine. vi, vii, 27, 52, 54, 55, 62, 63, 105–109 xvi Chapter 1 Introduction On this first chapter, the framework of this dissertation is presented, with the objectives set and the based research methodology used to develop it. A description of the structure of this document is also part of this chapter. 1.1 Background During the last global recession faced in 2008, one of the systems that struggled more was the banking system, as everyone can remember. In a country, this has a negative impact on its economy and, on its development. In Sub-Saharan Africa, the story was not different, and some countries of the region are still facing an economic recovery from their latest recessions, reflecting in a lot of challenges to the stability of the banking system. Adeyemi (2011) addresses three variables as a big part of the failure in reaching that stability: • Nonperforming loans (NPL) • Capital Inadequacy • Non-Transparency The focus of this dissertation will be only the first point, which Reinhart and Rogoff (2011) refers to as a major cause of the economic failure or even the start of a banking crisis. Nonperforming loans (NPL) are overdue loans by at least 90 days from the considered due date (Mpofu and Nikolaidou (2018)). 1 Figure 1.1: Top 20 countries with the highest ratio of Nonperforming loans to total gross loans in 2017 (percentage of Nonperforming loans in the total loans advanced in the period) from the WorldBank (2019). As can be observed in figure 1.1, nine of the twenty countries represented are from Sub-Saharan Africa, which can demonstrate a tendency of growing the number of Nonperforming loans loans in the past years. Faced with this and taking Equatorial Guinea, Nigeria, and the Republic of the Congo as an example, small, micro and medium-sized enterprises (SMME) have fewer resources available, reducing economic development due to not having an opportunity to improve and, as a consequence, not creating employment and growth in Gross Domestic Product (GDP), as Worku and Muchie (2019) shows. To fight poverty and benefit the social balance between economic classes, online microfinance was taken as a solution (Yang et al., 2016). Peer-to-Peer (P2P) is one of the modalities created and it is responsible for making the connection between private lenders and borrowers in developing countries, through the internet (McIntosh, 2011; Flannery, 2007), offering to entrepreneurs the opportunity to have access to a quicker option of credit. More concretely, as described in Byanjankar et al. (2015), the P2P lending process goes through an application from the borrowers, where they must allow access to several pieces of information. Afterward, the application is processed and if accepted by the platform model, it is listed in a market of investors to get funding. The investors can select a loan and decide how much they will provide. The loan will be available to borrowers when the amount requested is achieved. For the Sub-Saharan microfinance institution (MFI) under study, the process is similar. In this case, the investors 2 can invest in the MFI aiming to grow the loan portfolio, but they will not decide which loan their money goes to. This is made automatically when the application is processed and accepted, so the borrowers will receive the amount the moment there is a final decision. The lending process can be defined in five steps: 1. The user must download the app and log in; 2. The user fills in the profile and loan details; 3. The loans are evaluated based on the probability of default by processing all the details gathered from the device; 4. If the loan is accepted, the money is paid out to the bank account from the user directly; 5. The user repays via bank transfer or online transaction using a debit card, within an interval of 30 days after the loans get accepted. This last step can be extended if the user does not pay on time. The user is granted a grace period of 3 days after the due date and even if, afterward, it still has not been paid, the loan is redirected to overdue where the Credit Collection Team will contact the user via SMS, app notifications, email or call, to become aware of the payment and the risks associated. In figure 1.2, it is possible to see a visual representation of how a loan can evolve through time, depending on if it is not paid, after being granted. Figure 1.2: Representation of the designations that a loan can have through time. 1.2 Motivation This dissertation was elaborated in a real business environment microfinance institution (MFI) from the Sub- Saharan area. And, it represents not only a scientific challenge but also keeps impacting socially the development 3 in emerging markets. This is important to refer to as it follows this MFI vision: “Impacting people’s lives in emergent markets through technology and entrepreneurship”. Most of the processes of this company are digital, and the interaction with the user is made by the app or through an officer in case the loan reaches an overdue phase. The process of requesting and accepting a loan can be described briefly as three stages - the first one is when the user downloads and fills the information needed to request the loan; the next stage is the loan evaluation by scoring algorithms and consequently the return of this decision (if the loan is or not accepted); and, lastly, the user can afford 30 days to repay the loan. If the user cannot pay during these 30 days, the loan is classified as an overdue loan and a list of actions is initiated to recover this loan and avoid loss. Since this MFI keeps increasing its business model and new users are joining, consequently, the amount of overdue loans is increasing as well. In order to be possible to call users to follow-up and understand the reasons behind the lack of payment on time, the easiest solution is to hire more and more resources to raise the availability of the team to contact more loans, however, that approach will bring more problems related to human resources management, infrastructures or information system management. For that reason, it is expected to keep optimizing the way this part of the process works and that is the main point for this dissertation, to be the first step in that direction. 1.3 Problem definition As it was mentioned in the previous section, this work is based on an after stage from the usual loan process. The usual loan process should finish on the thirtieth day after the application was approved. Sometimes, this process can finish before that in case the loan is repaid quite earlier than the due date (which does not bring any question or problem to the company), but other times the process can take more than usual when the user is not capable of paying on time. This represents loss and a problem to this microfinance institution. The figure 1.2 is a representation through the time to this process stages, where the ”Paid on Time” designation represents the usual loan process and the ”Overdue” designation is the after stage. There are as well two more designations - ”Potential Default” and ”Default”. The first is the overdue time plus three more days that the system awaits before trigger the recovery process; the second is the label given when a loan is practically lost and fewer efforts should be placed. 4 Figure 1.3: Stages through overdue phase with the approaches made in each. In figure 1.3 is represented the stages that an overdue phase (before defaulting) can be divided into and the approaches made to the user during them. The problem approached in this study is in this overdue phase, more concretely in the calls that the officers need to make to the users that did not pay the loan. Nowadays, the list of calls that each officer needs to make is generated daily based on some rules that can be consulted in the figure 1.4. Figure 1.4: Order of criteria to build the Credit Collection Team (CC team) contact lists. The first point on the list is promised calls which means they were called before and the user provided a date to repay but it was not fulfilled. The second point is loans that changed stages (for example, that finished stage A without payment and entered stage B) or loans that are on their eightieth day of overdue. Next, there are the loans that did not have the opportunity to be called. And, after, the ones that were called but did not have an answer. Lastly, the list covers the loans that are still in the last two stages of overdue. Note that whenever the list achieves 150 loans to be contacted, the order is stopped and the contact list closed. Since there is not an allocation rule of the loans/ lists to the officers and the rules that were presented previ- 5 ously are based on a business perspective, the company decided to search deeply on its data to try to find a more technological approach to the question in order to optimize the lists and the need for this project was settled. 1.4 Objectives The objective of this project started to be the development of a model of allocation between overdue loans and officers from the MFI Credit Collection Team (CC team) capable of reaching these three main points: • Increase the total amount collected, which can be achieved by sending more loans in total; • Definition of the rules of engagement by user/officer probability; • A better understanding/ communication between user and officer. However, with the results through the time of the study, this needed to be adapted according to the new knowledge that was discovered. The main research question was kept as the optimization of the allocation of overdue loans to Credit Collection Team (CC team) officers but, the expected results were varying depending on the need to build new experiments. The points presented before were based on the first experiment, which failed to present results so it was needed to move to a second experiment where the expected results were: • Definition of a risk of defaulting based on the probability of payment from the model; • Definition of the list of contacts of the officers based on the risk of defaulting; • Increase the total amount collected, which can be achieved by prioritizing the calls based on the risk of defaulting of a user. Furthermore, there was again a need for a third experiment, resulting in the definition of new expectations, always keeping in mind the main research question previously mentioned. In this last experiment it was possible to achieve these two important points: • Definition of a prioritization scale to call the users from the overdue loans; • Definition of the list of contacts of the officers based on the prioritization scale. Unfortunately, it was not possible to test how the final result would behave on the amount collected, since there was not enough time to deploy the model to the daily routine of the officers. 6 1.5 Dissertation structure This dissertation is divided into seven chapters. In the second chapter, a literature review was made to benchmark and describe the concepts that would be useful for this project. Here a historic revision can be found, as well as the techniques that are the basis and the support of the work developed. In the third chapter, it is presented the description of the research methodology and philosophy of this work, as well as how that structured the work developed. The libraries used as a tool to analyze and build the model, the algorithms selected and other tools that assisted this development and evaluation can be found in this chapter too. In the fourth chapter, the different approaches for the problem are starting to be described. However, only the features and their extraction process are detailed in this chapter. It is named Data Characterization since there can be found not only the features description but also their exploration from the different datasets needed to build the different points of view of this work. In the fifth chapter, the description of the three approaches to the problem continues to be described. But, this time, with more focus and detail into the experiments. The algorithms used in each experiment are enumerated and designed - the model building is present in this chapter. In the sixth chapter, there is the exhibition of the results from the modeling process. The behaviors are analyzed and discussed, and the changes suffered consequently from these results are supported here. In the seventh chapter, it is exposed the conclusions of all the approaches made and the recommendations for future work to keep developing this idea and improving this particular process of this MFI. Lastly, it can be found as well an appendix where there is more information that complements the one described during the seven chapters. 7 Chapter 2 Literature review This chapter follows a historic revision of the importance of the different areas when approaching the problem. It allows understanding the work developed until now and to structure the order of the ideas and concepts that evolved the thinking process behind what was done in this dissertation - improvement development, the impact of the data, allocation adaptation, and benchmark the basis of the scenarios built. 2.1 Industrial Engineering Management history Over time, history evolved in a lot of fields, impacting societies in many ways. Industrial Revolutions are one of the boosters of the application of scientific methods in the daily processes that surround and maintain human life. With that impact, the industrial revolutions are an important historical milestone to learn the positive and negative effects (to not commit mistakes from the past) and to understand how things came to this current situation and what are the roots for the nowadays strategy to a new industrial era. 2.1.1 First Industrial Revolution An industrial revolution is not a specific defined process or event that can be followed the same way in each country that wants to apply it. But there are identified changes in the economy that can, together, be a development that would be described as an industrial revolution (Deane et al. (1979)). The Deane et al. (1979) identifies seven changes related as: 1. implementation of modern science and empirical knowledge in the production processes; 2. change the focus of economic activity to production for national and international markets rather than family or parochial use; 8 In table 2.1, it is possible to see an evolution of data mining and how it impacted the technology, enabling new solutions. Rygielski et al. (2002) goes further and describes more of each stage presented in the table: 1. Data Collection: The questions on this stage were related to simple business questions such as total revenues or revenue averages. For this, the data needed was simple enough to do these calculations, and the sites only collected the basics of what was possible to have statically. 2. Data Access: Finally, it was possible to store and structure the data collected and, consequently, the companies needed to establish policies regarding data collection, storage, and how to report it. It was then possible to access historic information and to analyze it simply as to do business calculations for a specific period. 3. Data Navigation: The main add-on from the previous stage was the possibility to have overviews from the businesses and/or to go in detail and compare the performance of particular locations of stores, warehouses, and more depending on the question that was raised. 4. Data Mining: It is the most recent and the one happening now. The biggest advantage it brought was the ability to have real-time data and how that sequentially allowed to analyze real-time feedback and to access information exchange from the various company units in real-time. 2.2.2 Common applications Through some problems that result consequently from the evolution of human society, data mining presents an advantage to be a versatile solution, since it is quite flexible and adaptable to a lot of fields. The way it allows pre and post-processing data to bring new knowledge and information to evaluate how daily processes are performed represents some of the potentials this brought nowadays. In Sumathi and Sivanandam (2006), it is possible to verify the current applicability of data mining. Some of these applications can be described as, for example: • Patterns detection in the World Wide Web: it is possible to find an association between some keywords in order to improve the user experience through a website by labeling content, filtering the most similar contents, and suggesting new information sources. • Purchasing analysis: Purchased products or even simple products added to the basket allow to label, classify and predict more products that can complement and improve the shopping experience. For that reason, association and classification tools or even patterns finding are techniques that make it possible to identify 15 Table 2.1: Stages of the data mining evolution retrieved from Rygielski et al. (2002). Stage Business question Enabling technologies Product providers Characteristics Data Collection (1960s) “What was my average total revenue over the last five years?” Computers, tapes, disks IBM, CDC Retrospective, static data delivery Data Access (1980s) “What were unit sales in New England last March?” Relational databases (RDBMS), Structured Query Language (SQL), ODBC Oracle, Sybase, Informix, IBM, Microsoft Retrospective, dynamic data delivery at record level Data Navigation (1990s) “What were unit sales in New England last March? Drill down to Boston” On-line analytic processing (OLAP), multidimensional databases, data warehouses Pilot, IRI, Arbor, Redbrick, Evolutionary Technologies Retrospective, dynamic data delivery at multiple levels Data Mining (2000) “What is likely to happen in Boston unit sales next month? Why?” Advanced algorithms, multiprocessor computers, massive databases Lockheed, IBM, SGI, numerous startups (nascent industry) Prospective, proactive information delivery 16 shopping patterns, different types of customers, and customer characteristics that can be part of their choices analysis. • Customer segmentation: Through some techniques such as classification, clustering, or statistical analysis, it is possible to improve the customer experience, to attract new customers (improve the marketing strategies), or to analyze customers who exhibit signals of leaving for rival companies. This way, it is possible to analyze data related to customers and their behavior to identify particular characteristics that can explore the market. • Fraud detection: Credit cards, telecommunications, messages or software are examples of channels that can be used to commit fraud. By analyzing a lot of actions and transactions it is possible to find suspicious cases, preventing the malicious ones before having any loss. 2.3 Operational Research Operational Research can be defined as the scientific subject to approach problem analysis and decision making based on understanding complex problems and looking for the most rational and improved solution (Chelst and Edwards (1996)). For that, it applies numeric techniques to analyze, manipulate and develop mathematical models that are part of computer information systems. 2.3.1 History Operational Research is also an example of how scientific methods were integrated during wars and then how they were upgraded to societies and to be an academic area. World War II had particular importance in increasing the role of scientists, engineers, physicists and changing the importance of science to the state (Fortun and Schweber (1993)). In Britain, during World War II, there were problems faced by the military - radar (denomination for field tests) stations and anti-submarine warfare strategies, that made Operational Research quickly expand, and it became the backing on planning the strategy and logistics, manpower resources management, weapons cost analysis and allocation of resources (Fortun and Schweber (1993)). In the end, the main point of bringing operational research during World War II was for the optimization of the available military forces and weapons, using it the best way possible. At the end of the war, a lot of people were allocated to the analysis of strategic and tactical problems in Britain and it was also spread to more countries namely the United States of America. Afterward, it became an academic subject taught by professors and it started to be more ambitious when applied to more and new areas (Zuckerman 17 (1964)). The Chelst and Edwards (1996) exemplifies some of the industries that operational research has an impact on currently: • airline: in things like scheduling planes, price of the tickets; • pharmaceutical; • logistics industry; • financial: some examples are the credit scoring and service operations; • wood companies: in the management of forests and cutting trees; • government: emergency services and setting policies; • policy regulation: it goes through setting policies (from the previous point) when there is the need to study and regulate (for example climatic problems). 2.3.2 Assignment problem For decades, assignment problems have been successfully tackled by optimization methods, as integer programming, aiming to match elements of various sets, in general, termed as “tasks” and “agents” (Pentico (2007)). As also Pentico (2007) refers, the most basic version of assignment problems is the one that allows the assignment of an agent with multiple tasks. In this problem, one task must be assigned to one agent, but one agent can have more than one task associated. So, a generalised assignment problem (GAP) is just one of many problems that consider the resources capacity limit, redirecting to not exceed the resource capacity. Besides, several studies are based on the very basics of assigning resources, adapting them to a specific problem/ situation, or then making variations in order to introduce new concepts and create different models that involve different aspects that the basic one could not cover. For example, Yagiura et al. (2004) proposes a meta-heuristic algorithm to a multi-resource generalized assignment problems, incorporating a different algorithm to test its effectiveness. This algorithm is an extension of local search, which is a heuristic that starts with a random solution that is replaced over and over again for a better solution in the neighborhood until no better solutions can be found. Yagiura et al. (2004) extends it in a way of keeping iterations not only based on the neighborhood but on creating sequences based on shifting moves that make sense (a chained shift neighborhood, where instead of only having the neighbor node, it would have a set of solutions obtained from specific sequences of shift moves), in order to compare results and replace them with a better solution in the next move. 18 2.4 Benchmarked works Unfortunately, there was no academic literature where it was described a similar problem or a valid approach to this research question - how to optimize the allocation of overdue loans to officers. Having that in mind, it was decided to benchmark from two areas that have aspects in common and it could be applicable - the credit scoring and the customer relationship management (CRM). 2.4.1 Credit scoring The main purpose of credit scoring is to guarantee the minimization of loans accepted that later become defaulted. This means that there should be a continuous improvement in tracking the fraud users, to decrease the risk of losing money, and to potentiate loan opportunities for the ones who need them and that are looking to create a beneficial connection with a financial institution. Anderson (2007) went further in the definition of credit scoring and broke the expression into two words that constitute it - credit and scoring.Credit has an origin from the old Latin credo which means trust in, so if someone would be able to lend something to somebody, then it was obligated to have trust in the person to pay it back. Nowadays, after suffering natural changes of the language, it means buy now, pay later, making each scenario possible and not depending on if it is for short-term, something durable or investments. In the case of scoring, Anderson (2007) denominates it as a numeric tool to rank cases based on specific qualities that allow choosing between specific cases and making sure the best and most consistent decisions are made. In this case, it is usually used some predictive scoring models to understand the probability of a future event, based on past events. So, having this in mind, the models are used normally with historical data and can be applied in computers to automate the decisions based on the combination of scores and strategies. This allows having a reduction in the costs of decision making. Since the credit scoring models are used to categorize applications as accepted or rejected based on whether they are able to be paid or not, following some characteristics of the users like the demographics, age, work background, or marital status (Huang et al. (2007)), it is a good starting point to search for data mining techniques and algorithms that could be effective in the problem that is described in this dissertation. This means that a credit scoring approach can be adapted from the application moment to the overdue moment, where a revaluation of the users is made with more information relative to their payment time, allowing to know if the first result is kept or if it is not in agreement. Further, a revision on the algorithms selected will be presented in the subsection 3.3.1. 19 2.4.2 Customer relationship management CRM is responsible for developing and improving the customer experience and for creating strategies that can target the interests of new potential customers and for managing them together with the current ones. First, CRM depends on customer information (Buttle and Maklan (2019)) to keep questioning habits and behaviors that can be useful for strategies to improve services. With this, a lot of data related to users can be collected and applied to data mining tools to build models to predict new products and to understand which customers are a real part of the target group of the company. This data can be extracted from a lot of sources: sensors, social media, digital photos and videos, clicks, texts, audios, and so on (Buttle and Maklan (2019)) and it can be used in classification or clustering algorithms from data mining, for example. In figure 2.1, it is possible to check the basic CRM model, with seven components: database, analysis, selection, targeting, marketing, privacy, and metrics. Figure 2.1: Customer Relationship Management basic model exposed by Winer (2001) The focus from what was beneficial to bring for this dissertation grounded in the customer selection and targeting, adapting the customer as the user for this particular case. The customer selection is based on a segmentation to target the best marketing approach (Winer (2001)), so one of the approaches that can be made is to divide the customer database into clusters to analyze which group can be more influential on the results of the company (Cheng and Chen (2009)), for example. Then, the goal is to take the group of more profitable customers (already separated from the one that represents more costs) and trigger a way to leave the “bad” customers (the more costly ones) to save efforts and focus on the “good” ones which are the real responsible for the economic growth (Winer (2001)). Adapted to the loan context, this might be oriented to a way where it is possible to distinguish the different users behaviors of the users and to reorganize the effort from 20 the resources. Relatively to the customer targeting, Winer (2001) refers to the customization of the marketing strategies depending on the group that a customer can be labeled as. This can be described in examples like the companies providing different deals according to what are the group of customers interests or to filter what new releases could please a particular user in order to decrease the risk of oversharing or annoy them. So, targeting can be responsible for studying what are the best approaches to have to improve the customer experience and for making sure the message is well transmitted to the customers. Although this is not the focus of this dissertation, it is important to know that this is as well something that can be adapted and kept in mind as a possible approach in the future of the company. 21 Chapter 3 Materials and Methods Before going through the practical approach of this study, there are some important methods and tools that were crucial to its management and analysis. In this chapter, it will be described the auxiliary techniques used that do not contribute directly to the final result but that impact the way the results could be achieved. 3.1 Research description When starting the research project, it is important to define the most suitable approach and philosophy in order to better formulate the research plan for the research question - how to optimize the allocation of overdue loans to CC team officers. This type of formulation benefits making decisions relating to answer the research question, in a way of knowing exactly the basis of the study - if they are positive if they should be more precautions, what temporal limitations can influence or even if the solutions are focus on a practical or on a more theoretical way. Further, defining the methodology is fundamental to approach and to organize the different steps to understand the question context and to develop it until some solution can be found and readapted as possible answers for the research. First, philosophy is related to the development and nature of knowledge. So, from the perspective of this study, the philosophy chosen is pragmatism, due to a practical approach with an interpretation of different perspectives to collect and analyze data (Saunders et al. (2009)). As Tashakkori et al. (1998), the study should be based on what interest and value can bring for the researcher, using the results to build positive answers to the system. Second, the approach to this research is classified as deductive, since it will come from existing theory and tools, adapted specifically to this context. Moving forward to the most adequate strategy that should be applied, Action Research is not the most suitable due to the dissertation short-time of research, which is not enough to do more than one cycle of diagnosing, plan, 22 action, and evaluation. So, taking this also into consideration, the strategy to follow is Design Science Research (DSR), which focuses on problem-solving, understanding first the problem background and the solutions-oriented through the creation of technological artifacts (such as models) that create an impact on organizations (Hevner et al. (2004)). As Peffers et al. (2007) refer, DSR process can include six steps: 1. Problem identification and motivation 2. Definition of the goals based on the solution 3. Design and development 4. Demonstration 5. Evaluation 6. Communication In order to define the artifact, a data mining process will be done. So, for this reason, a Cross-Industry Standard Process for Data Mining (CRISP-DM) methodology can be followed, which describes an approach to data mining. Figure 3.1: CRISP-DM process adapted from Olson and Delen (2008) As Olson and Delen (2008) show in figure 3.1, the process has six steps: 1. Business understanding: set goals, revise the current situation and develop a plan. 2. Data understanding: collect data considered as relevant, describe and explore it, and check its quality. 3. Data preparation: data cleaning and transformation. 23 4. Model building: depending on the data type, different models can be tested, having a great variety of tools (for example, neural networks). It is needed to divide the data into training and testing phases. 5. Testing and evaluation: based on the goals set initially, the model results must be evaluated. 6. Deployment: the model is implemented and continuously monitored in order to guarantee a faster readaptation to significant changes in data. Having this in mind, the dissertation work steps can be elaborated to accomplish the project goals. 1. Business understanding and problem identification This is the first point when starting a new project. At this point, the process was observed, diagnosed, and mapped to have a clear overview and to create a direction for the project. More information regarding the project background can be found in chapter 1, which provides what was found during this phase (some details are protected to guarantee the integrity of the company). 2. Problem relevance and literature review After the identification, it is needed to prove the importance of solving the problem and the main goal. A solution was to look for similar work and history behind the evolution of specific areas by reviewing different literature. The year of publication, keywords, and research channels are some points to take into consideration since they define the credibility of this content. The output from this phase can be consulted in chapter 2. 3. Design and development It is important to collect data relevant to the problem to prepare it and to design the artifact as referred to before in CRISP-DM. A collection of features based on what was observed in the business understanding and in what the literature could bring was made and it is present in chapter 4 as well as its visualization which represents an important factor to get knowledge from the data before modeling. 4. Model building and deployment It is similar to what was referred to previously on the CRISP-DM. After preparing and cleaning all the data, some models were designed to understand which one could represent the best solution to the problem. The algorithms selection can the consulted in the next section and the way it was built in chapter 5. 5. Analysis and discussion of the results This phase consists of analyzing the model behavior and the adaptation to the system by the metrics chosen to evaluate the results of a model. The results can be found in the chapter 6. The design of the model 24 Figure 3.5: Example of a graphic representation of the Elbow Method from the book Grus (2019). To exemplify, in figure 3.5, it is possible to see clearly that the “elbow” occurs when K=3, as there is an abrupt change in the SSE decrease and where after that the SSE decrease rhythm is very low. 3.3.6 Principal Component Analysis Since large datasets are quite difficult to explore or visualize, the process of analyzing it and modeling becomes more difficult and less flowed. For this reason, sometimes reducing slightly the accuracy in the data brings more benefits to be possible to achieve some meaningful outputs. The aim when applying the Principal Component Analysis method is to reduce the dimensions of a large dataset, without disturbing the majority of the information contained. It is possible to do this by transforming the big set of variables into a smaller one, optimising always the preservation of its variability. For this reason, during the process of finding new variables, it is settled that the variability needs to be maximized, to make sure that it does not decrease from the initial value. To respect this goal, the new variables created are linear functions from the ones before, without correlating them. This process is automated in Python, by importing it from a package sklearn.decomposition. 31 Chapter 4 Data Characterization The features selected for each data set were based on the ones referred to in credit scoring models, being the time range of their collection the only difference for some attributes - during the loan payment period (from approval to due date). Some of the features usually used in credit scoring studies are personal information, housing, job title, or loan reason, as can be consulted in Huang et al. (2007) or West (2000). The features that will be analyzed in this study were all collected by this MFI, some of them will be renamed to protect the confidentiality of the data of this MFI. 4.1 Data Structure In this section, it will be described the collection of the datasets used in the different approaches of the analysis. Even though there were two different datasets extracted (one serving the first experiment and the other for the second and third one), the extraction, transformation, and cleaning are similar between both. The first step was the data extraction, where variables that would be related to the field in the study were selected, like personal information such as age, gender, or city and behavior of the user during the loan period such as if a competitor app was installed or SMS features. During this phase on the first dataset, there was a need to complement the data regarding the personal information of the officers, so an online form was elaborated for the collection. The process (represented in figure 4.1) to create the base of datasets for this study followed the next steps: 32 Figure 4.1: Process of collection, cleaning and construction of the dataset before treating it to model. •Read from Database: Using SQL to build the query to connect to the database and extract the raw data. Each line of the output table will represent an overdue loan; •Collect manually: Used exceptionally on the first experiment to collect more information about the officers that was not saved on the database; •Data Filtering: Filter the data by loans that were not paid on time. There was also a filter based on the period of the loan application that was different between the two datasets. On the first extraction, for the first dataset, the loans extracted were also filtered based on which ones were contacted by an officer from the sample of officers chosen previously; •Data Selection: Set the variables to predict as targets (different from each experimentation, as will be described further). Select the attributes by choosing which variables could be meaningful for the target; •Data Cleaning: Missing values replaced with 0 or categorical variables replaced by dummy variables as a 0 would address a wrong meaning to the variable (e.g. if marital_status was 0, that would indicate the user is single when it is unknown the real status); •Feature Engineering: Creation of new variables based on the need to transform numerical variables into categorical (e.g. number_children is numerical but as the user filled it with a wrong amount or did not fill at all, there was the need to create ranges of numbers as categories for not losing this variable information for the study. If a user would have two children, then it would be part of the category “[0-2]”.). Also, new attributes were branched from previous ones (e.g. date_of_birth as age); •Export CSV: Generate and store the new processed datasets. 33 As it was mentioned before, it was necessary to build two different datasets to study the three approaches to the problem presented in this project. Since the first approach was the prediction of what could be the best characteristics of the officers to deal with a specific loan and then improve the chance of recovering it, the variables needed to be more oriented to what could have a greater impact on this target and create the best allocation. The dataset used to model a solution for this experimentation, called dataset A from now on, considered the loans that went overdue and it was filtered not based on a period but on the sample of officers, selected for this study, that was the most recent contact of the specific loan, in order to increase the sample size. Regarding the second and third approaches, they are more focused on the loan itself and the behavior of their users, independently of the characteristics of officers. On the second approach, the target was predicting the probability of payment and for the third, the target was clustering the loans. For these reasons, the dataset used to model both situations, which will be from here on referred to as dataset B, is similar to dataset A in the loan-related variables that compose it, although the only difference is an increase in the number of SMS features extracted. Due to the large amount of time a query could take to run results of extraction, a need of restricting the period of the application of the loans arose. So, this dataset B includes overdue loans that were granted in a period between 2019-01-01 and 2019-11-01. Table 4.1 shows the principal differences between the two datasets, manifesting what needed to be improved from one to another in order to test the last two experiments. Table 4.1: Description of an overview of dataset A and B, and its main differences. Dataset A Dataset B Number of rows 46,132 26,825 Period Not defined 2019-01-01 to 2019-11-01 Percentage Paid 54.46% 55.50% Percentage Defaulting 45.54% 44.50% Total number of variables 43 56 Features related to officers 9 0 Features related to SMS 10 32 Since both datasets were quite balanced, there was no need to apply any resampling strategy. The next subsections can be consulted for more details regarding the variables. 34 4.2 Data Description As it was mentioned before, the variables collected follow the same basis as in credit scoring models, being related to personal information, loan characteristics (Huang et al. (2007),West (2000)) and mobile phone usage features (Björkegren and Grissen (2018)). Firstly, it is possible to access the personal information of a user from the moment a loan application is settled for the first time. There, the user needs to fill their profile to be able to interact with the service provided by this MFI. This profile includes personal information, such as date of birth and professional/ educational background; it includes information related to their family (marital status and number of dependents) and property like owning a car. Some of these variables can be updated later without creating a new profile to continue to apply for loans in this institution. Secondly, the loan characteristics are added based on the purpose of each application a user makes. In this case, the amount and the reason for the loan are selected as well when filling different applications. Finally, regarding the mobile phone usage features it was made two different approaches on dataset A and dataset B. On dataset A it was used some features related to the installation of applications (app) and SMS received during the loan period (which is one of the differences for a credit scoring model), while on dataset B the features related to SMS were extended, not only with new variables but also collecting information from before the approval of the loan (adding to the loan period features previously on dataset A). In addition, on dataset A, a sample of officers was set and some personal information was collected using an online form. The variables collected were related to demographics, educational background, and experience in the company measured by the number of working days, plus two other features that will be kept unknown to protect the personal profile of each officer. This sample worked as a restriction for what loans were considered in dataset A - the loans in which the last call to the user was made by one of these officers. Furthermore, during data cleaning, some values were not representing the reality since it was not possible to have a maximum age of 1000 or to have a maximum number of children of 100. It was considered both a typing and an extraction mistake (the age was derived from the date of birth, for example), and to correct these cases, a new interval of values was assumed based on some sources. The WorldBankGroup (2019) refers that life expectancy at birth in Sub-Saharan Africa in 2017 goes to 63 years in females and 59 years in males, but the UnitedNations (2016) mentioned in a study that the number of older persons “is projected to more than triple between 2015 and 2050” and that the participation of the elderly in labor work is one of the highest. So, an interval of 18 to 65 years old was the range considered for this dataset, and all the values outside of it were automatically excluded. Regarding the number of children, as UnitedNations (2019) concludes in their study, Sub-Saharan Africa is one 35 of the regions with the highest average household size with 4.8 persons but it also shows the maximum average can have cases with more than 8 persons. So, to avoid taking the risk of excluding meaningful information from the data, it was decided to take 7 as the maximum number of children even if it is not so usual. On top of this, when analyzing and cleaning the data collected from the officers, the variable related to the field of studies was so numerous and diversified that to be easier to analyze and predict, it was transformed into four categories - Applied sciences and professions, Humanities, Social Sciences, and Natural/ Formal sciences. These categories are based in the paper Ackermann and Chen (2013) where the fields of studies and academic disciplines are part of a derivation on the curricular corpus that compiled “over 37 million words of academic written and spoken texts from five major English-speaking countries”. On the tables A.1 and B.1, in appendixes A and B, it is possible to see the variables definition and their types, in more detail, for dataset A and B with some variables renamed to keep the confidentiality of this MFI. 4.3 Data Exploration The two datasets will be described further, in this section. Note again that for the protection of the information integrity of this company, the values presented are not absolute but they can show how the data behaved on this study and how the output can impact this MFI. On both tables 4.2 and 4.3, there is a first description of some particular features to describe each datasets. This is a representation before data cleaning and it is already possible to identify where is a lack of quality in the data, such as in the range of the variable age. Table 4.2: Table of descriptive statistics for dataset A. Dataset A user_age marital_status nr_children employ_status educ_status officer_age Mean 34.53 0.61 1.52 0.54 1.80 26.19 Std dev 14.03 0.56 1.87 0.64 0.41 3.28 Min 18.00 0.00 0.00 0.00 0.00 21.00 1st Q 29.00 0.00 0.00 0.00 2.00 25.00 2nd Q 34.00 1.00 1.00 0.00 2.00 26.00 3rd Q 39.00 1.00 2.00 1.00 2.00 27.00 Max 1,822.00 3.00 100.00 4.00 2.00 35.00 36 Table 4.3: Table of descriptive statistics for dataset B. Dataset B user_age marital_status nr_children employment_status education_status Mean 35.01 0.62 1.55 0.79 1.81 Std dev 11.81 0.56 1.84 1.16 0.40 Min 18.00 0.00 0.00 0.00 0.00 1st Q 30.00 0.00 0.00 0.00 2.00 2nd Q 34.00 1.00 1.00 1.00 2.00 3rd Q 40.00 1.00 2.00 1.00 2.00 Max 1,024.00 3.00 100.00 7.00 2.00 4.3.1 Dataset A For dataset A, the first one to be processed, the description will be divided into two populations - users and officers. First, the population of users is all part of a sample of loans approved (based on the requirements of this MFI in the specific emerging market) that went overdue. The big portion of the users is male (figure C.1) and with ages between 26 to 41 years old (figure C.2). The majority of the users are also part of a small family, being 56.4% married (figure C.3) and besides the biggest percentage of dependents is unknown, 38.7% has between 0 to 2 children (figure C.4). On the business side, the users are well distributed in employed or self-employed in their own business, with only a difference of around 2% between these two statuses (figure C.5), which explains why 42.11% of the loans are related to business reasons (figure C.6). Even if this could show some independence from the users, only 19.6% owns a car (figure C.7), which is a low percentage for an emergent market where there is a need to run more distances in order to have access to goods and services. On the other hand, the degree of education of this population is quite high - 80.5% of the population attended university (figure C.8), which is a remarkable situation. To sum up, figure 4.2 shows a visual summary of the main trends of dataset A from the side of the users. 37 Figure 4.2: Visual representation of the summary of the data exploration regarding the users from dataset A. Second, a sample of 42 officers was previously selected. Since there is no rule of allocation between a loan and an officer, for each call that is made to the user that has an overdue loan, there can be a different officer making it each time. For this reason, it was only considered the last call made since this officer could be seen as the one who recovered the loan. So, the loans presented in this dataset are loans in which the last call was made by one of these 42 officers from this sample. In this population, the majority of the officers are females (figure C.9) between 24 and 28 years old (figure C.10). Their experience in this MFI, in generality, is under one year and on average 226 days (figure C.11). Even if there are some more experienced officers in this sample, in reality, there are a lot of officers that are quite new in this company. In the education field, these officers also show a high level, with 85.7% having a Bachelor and 11.9% having a Masters (figure C.12), being Social Sciences the most common background - 54.8%. An important aspect to add as well in this field is the number of languages each officer knows. The biggest part of the sample knows more than one language, but there is also a good percentage of officers knowing more than two, so the maximum of languages talked that define this sample would be three (figure C.13). This is also proven by figure C.14, which describes that there are two languages particularly dominating - English and Language H. To summarize, in figure 4.3, it is possible to find a visual summary of the majority of the main characteristics of officers from dataset A. 38 Figure 4.3: Visual representation of the summary of the data exploration regarding the officers from dataset A. 4.3.2 Dataset B Since in dataset B there is information related to officers, the description will be only about one population, the users. This population of users is also associated with a sample of approved loans that went overdue like it was said in the case of dataset A. Again, the biggest part of the users is male (figure D.1), with ages between 26 and 41 years old (figure D.2). Relatively to the household, the majority of the users are married - 57.4% (figure D.3) and have between 0 and 2 children (figure D.4) - although, there is a high amount of an unknown number of children in the users. Moving to the employment status of the users, it continues to be well distributed between “Business Owner” and “Employed private sector” (figure D.5), keeping business as the reason for the loan with a big margin to the others (figure D.6). The percentage of users owning a car increased slightly (figure D.7), compared to dataset A, but not enough to be a trend in this population. Academically, this population continues to show high levels of education, with 81.5% of the users having university status (figure D.8). Summing up, the figure 4.4 has a visual simplification of what are the main points from the dataset B. 39 Figure 4.4: Visual representation of the summary of the data exploration from dataset B. Overall, both populations from dataset A and B do not present a big difference between them, which can lead to concluding both behave similarly. 4.4 Data Preparation During this phase, it is where the data is cleaned and constructed/ transformed, the data quality is evaluated and incongruities found are corrected. Both data cleaning and data construction are part of this phase of data preparation, although data preparation was not mentioned in figure 4.1. In this section there will not be a distinction between data preparation and data cleaning/ data construction, the term quality of data will be treated in general. One of the most important things to keep in mind during this phase is the data integrity and the best way to do it is having prevention mechanisms installed directly in the data source (for example, spaces for the user to fill nominal information not allowing numerical data or even categorize some types of answers to not allow the user to fill information that the system can not decode). Although this is an improvement process where it can always have solutions to increase the data quality, whenever there is the need to analyze historical data there will always be data that is stored and polluted. In this particular study, there was three main points addressed to tackle data quality: • Incomplete information (Missing values); • Errors/ outliers (noise); 40 5.2.1 Target Variable In this case, the focus of the experiment would continue to be the probability of payment per loan, depending on various factors from the user. So, the more information collected relating to the person the better would be the basis for a strong output. For this reason, all the variables will be considered to build a unique model to predict the target variable - paid. This approach is the most similar to modeling credit scoring, which is the one used in the loan application. However, this time the trigger is not an application submission but a user not fulfilling the repayment on time, starting an overdue period with the risk of losing benefits in overall loan applications. As it was presented in section 4.3, both explorations of dataset A and B showed similar behavior, which could save some time in this new approach on the stages of cleaning and transforming in data preparation. To sum up, the target variable for a loan that came to overdue is described as: paid(x) =      1if the loan xis recovered 0if the loan xis defaulted (5.2.1) 5.2.2 Modelling process This time, there will not be any organization of dependent variables like in the first experiment since the target variable is only one. Figure 5.4: Structure of the second experiment modeling. In figure 5.4, it is represented the structure adopted for this experiment modeling. As it can be compared, the structure is the same as in the first experiment, except for the data transformation, where it is used Dummy Coding instead of Label Encoder. This option was taken having in mind that both encoders work with nominal data but since 47 this second experiment is a new scenario, it would be interesting if something new could be applied to see if it could result in improvements in the model performance. The data partition followed the same configuration - random selection of 80% to train and 20% to test and it can be found in table 5.2. Table 5.2: Data partition for the Dataset B to model the second experiment. Dataset B Second Experiment Samples Nr. Observations Percentage Training 21,204 80% Testing 5,302 20% Total 26,506 100% 5.3 Third Experiment - Cluster Loans Instead of continuing to readjust the point of view and only approaching classification methods of Data Mining, the new perspective followed was to try to find group patterns in the data already exported and prepared from dataset B on the second experiment. This way, a clustering method was tested to discover if there are groups with similar behavior on the data and if it would be possible to prioritize the loans based on what group they would be part of. Using dataset B (the same as in the second experiment) allowed to save some time because some data cleaning and visualization were made earlier on for the second experiment, so the knowledge about the data was already known. 5.3.1 Target Variables The difference to the classification method is that in this case there is not an independent variable that is used to classify each loan. In this case, the target variable considered is a label that indicates which identified group the loan is part of. The definition of these labels is based on the ideal number of clusters, identified here recurring to the Elbow Method (3.3.5). This method provides a knumber of clusters, which indicates the target variable varies 48 between 0 and k-1, and it can be described mathematically as: Cluster(x) =                    0if the loan xbelongs to Cluster 0 1if the loan xbelongs to Cluster 1 ... k−1if the loan xbelongs to Cluster k-1 (5.3.1) These values kwill be presented in the next subsection. 5.3.2 Modeling process Following figure 5.5, it is possible to see that the transformation chosen is equal to the second experiment, which allowed saving time at the beginning of this scenario. Figure 5.5: Structure of the third experiment modeling. First, the optimal number of clusters was calculated through the Elbow Method (subsection 3.3.5). In figure 5.6, it is displayed how the sum of squared errors behaves when the number of clusters increases. Figure 5.6: Optimal number of clusters displayed by the Elbow Method. From the graphic in this figure 5.6, it is expected to be found the point where the balance between the sum 49 squared errors and the number of clusters is optimal - the “elbow” of the curve. This point is when the number of clusters is 3, so from now on the aim is to visualize them on the data and characterize them. Next, after running the K-Means algorithm, it was possible to model the three clusters and their centers. In order to be able to visualize them and evaluate how well they were defined, it was needed to apply the PCA method (subsection 3.3.6) since the number of features modeled was too large to be possible to represent them in two axes graphic. Then, it is possible to select the center of each cluster and analyze the differences between them and how distinctly they behave. If there are specific characteristics that have a higher impact in a singular cluster when compared to the others, then it is decided to filter the data by these variables and rerun the K-Means algorithm. A new visualization resulting from the PCA is deployed and it is compared to the previous one. After these steps, the clusters are analyzed and defined/ characterized based on three criteria selected following a business perspective. Lastly, the result is the definition of the prioritization scale supported by these three criteria. 5.4 Allocation Model This allocation model would run daily to select from all the overdue loans, the list of users to be called by each officer. It depends on what would be the best experiment to provide some form of weight for the loans to be distributed between the officers. This weight would be different according to each experiment, but defined as: •cij, for the first experiment: the probability of payment associated with the loan iand the officer j(based on the characteristics from the profile) for the experiment; •αi, for the second experiment: the probability of payment of the loan ionly associated with its characteristics; •Wi,Yiand Zi, for the third experiment: variables to indicate in which cluster the loan iis part. After finding what would work as trigger to the allocation, there is some assumptions that are present independently of each experiment. The first one is the objective that is to maximize the number of loans distributed per officer. The objective function will be different depending on the weights mentioned before for each experiment, as table 5.3 shows. 50 Table 5.3: Objective functions for each experiment. Experiments Objective functions First Experiment Maximize n ∑ i=1 m ∑ j=1 cijxij Second Experiment Maximize n ∑ i=1 m ∑ j=1 αixij Third Experiment Maximize n ∑ i=1 m ∑ j=1 (αWi+βYi+γZi)xij The second are the restrictions that need to be respected: n ∑ i=1 xij = 1,for each loan j(5.4.1) m ∑ j=1 xij ≤k, for each officer i(5.4.2) The restriction 5.4.1 is responsible to guarantee that one loan is allocated only to one officer. And, the restriction 5.4.2 makes sure that each officer is not overloaded, not having more than kloans to call each day. Note that here the xij represents a binary value that indicates if the loan jis allocated to the officer i. 51 Chapter 6 Discussion In this chapter, the results are presented, explained, and analyzed based on the metrics described in subsection 3.3.4, in the case of the classification algorithms, and on the visualization of the clusters using the PCA (subsection 3.3.6), in the case of the clustering algorithm. 6.1 Results from the First Experiment All the subsets mentioned were trained and tested using SVM, Neural Networks, Decision Trees, and Naive Bayes. The values from the metrics used to analyze the results should be between 0 and 1. The nearest to 1 the metrics are, the better a model can perform. In figures 6.1, 6.2 and 6.3, respectively representing the three different characteristics that build an officer profile - demographics merge, academic background, and experience in the company, it is displayed how the average of the metric F1 score behaves along with the different subsets for each algorithm. The average comes from the F1 score results of predicting paid or not paid (1 or 0 from the target), respectively. Moreover, the decision of displaying the F1 score to summarize the results is related to the fact that, like it was mentioned previously, it represents the balance between the other two metrics. All the results with all the metrics in detail can be consulted in Appendix H. 52 Figure 6.1: Variation of the F1 Score along the different tables (related to variable dem1Xdem2 modelled and tested. Figure 6.2: Variation of the F1 Score along the different tables (related to variable field_of_studies modelled and tested. 53 Figure 6.3: Variation of the F1 Score along the different tables (related to variable time_in_company modelled and tested. Regarding the demographics (figure 6.1), only three subsets could achieve an average of over 0.55, which is not a great value by itself. In the academic background (figure 6.2), the value is relatively better, as it reaches 0.58, and the values from each subset have less difference between them, however, it is not enough to prove to have a valuable model. Lastly, regarding the experience of the officers in the company (figure 6.3), the average value is also slightly better when compared to the other characteristics - 0.60, but the algorithm that represents the highest average is also the one that represents the lowest one, so it shows a lot of variation and a lack of confidence in this output as well. To sum up, overall, the results were weak, which makes it possible to conclude that any of the algorithms tested would behave quite randomly if applied. The reason behind it could be the lack of data to extract a visible pattern or that this Data Mining technique is not the most appropriate for this data. Solutions that could be taken are the collection of more data, or redefinition of a new approach to the problem. Since generating new data would require more time and it would put this experiment in stand-by, the solution took was moving to a new approach to the problem. 6.2 Results from the Second Experiment Going through with building a model that fits better the problem, the same models as in the first experiment were used for training and testing - SVM, Neural Networks, Decision Trees, and Naive Bayes. The metrics that will serve as criteria to choose the best performing model are the ones used as well in the first experiment and described 54 in subsection 3.3.4. In figure 6.4, it is possible to see the F1 score results from each algorithm tested - from the result of each target variable to their mean. The decision to choose the F1 score to evaluate the results is the same as in the first experiment, although all the results from the three metrics can be consulted in Appendix I. Figure 6.4: Variation of the F1 Score in the different algorithms tested. The SVM algorithm presents a potentially good result, with an average of 0.625, but there is something that must be taken into consideration - the good prediction is made for the paid loans, represented by the point SVM_1 on the graph with 0.70. When looking at the prediction of unpaid loans (SVM_0), the F1 score falls to 0.55, which will behave as a random attribution of unpaid (just as flipping a coin, the loan can be labeled correctly as potentially unpaid the same number of times as wrongly). This will bring uncertainty to the way the officers would be organized, so it was decided not to implement it. Furthermore, the rest of the results found are weak, very similar to the first experiment, which is not enough to implement a model - it would end up resulting in a random allocation. The lack of data or this Data Mining technique not being the most suitable are possible reasons behind these results. Although this dataset has data extracted from only eleven months, the facts that this extraction took a lot of the time reserved and that the first and second experiments did not show good results using classification models made this study move in a different direction. So, the next step was to search for better outputs in the same dataset with clustering, instead. 55 6.3 Results from the Third Experiment Succeeding the two new equivalent variables to deploy from the application of the PCA, the graph in figure 6.5 was plotted. Figure 6.5: Visual representation by the PCA method of the three clusters present in this data. The three clusters are well defined as can be seen, so the next step would be to analyze each center and to try to understand how each variable behaves, to see if there are values in common or in which features they are different. Figure 6.6: Representation of the coordinates of the centers of each cluster. According to figure 6.6, it is possible to understand the features that separate and organize each cluster from 56 Table 7.1: Objectives settled before and its corresponding achievements. Objectives Results • Definition of a prioritisation scale to call the users that have overdue loans; • Definition of the list of contacts of the officers based on the prioritisation scale. • Rearrangement of the overdue loans into three groups: –Group 0; –Group 1; –Group 2. • Prioritisation scale: Group 2 > Group 0 > Group 1 one was related to finding the probability of payment for each loan based in its characteristics (without taking officers in consideration); and, lastly, the third one was about finding clusters and define with it a prioritization scale. The first two scenarios were induced by four classification algorithms (data mining) - SVM, Neural Networks, Decision Tree, and Naive Bayes; and, in the last scenario was used one clustering algorithm - K-Means. While the first two experiments showed random predictions with F1 scores varying between 0.55 and 0.63, the last one was where the best results come from, with three clusters well defined and a prioritization scale from them that made this dissertation achieve the purposed results. 7.2 Reflecting on the experience This reflective action will follow an adaptation of The Integrated Reflective Cycle from Bassot (2016), which has four steps to help to guide through experiences in order to evaluate what was learned. In this adaptation, the focus was to revise some difficulties felt during the project, how they were surpassed and what can be learned for the future. That way, the model adapted from The Integrated Reflective Cycle follows these four steps: 1. Experience: Describe what experience was; 2. Reflection on Action: Reflect about the difficulties and barriers found, as well as on what went wrong or what could be the problem; 3. Mitigating Actions: What was done to face and to overcome the difficulties in this particular situation; 63 4. Preparation: Suggest what can be changed to prevent or to have a quick answer to such difficulties. In table 7.2, four difficulties were considered to be the biggest faced during this dissertation. They are described following the model explained in the previous paragraph. Table 7.2: Reflective analysis following an adaptation of The Integrated Reflective Cycle of Bassot (2016). The Experience Reflection on Action Mitigating Actions Preparation Collection of features related to the officers In the first experiment, it was necessary to gather some information to define the officers. Unfortunately, the records of the company did not have all the data needed. There were tables with incomplete information and the access to their CVs was not enough to collect all the features. It was created a form with the features needed for this particular study and the officers from the sample selected filled it. This allowed also to update some old records of the company. For the future, this collection can be improved by adding a document for each officer to fill during their onboarding or it can be included at the time they create the account in the information system (responsible for managing the loans to contact). 64 Slow data extraction of dataset B This obstacle only appeared in the dataset B due to the way the information system of this company is structured. The extra features related to SMS activity has a lot of more information, which would complicate its extraction. A lot of time was lost waiting for output and that complicated the identification of errors in the extraction and, consequently, their solution. The action taken to overtake the situation was the division of the SQL code in periods, and then to run a test for a small sample. In the future, when a project needs big extractions of data, it will be planned in how many runs/ how much time it can be done, and it will be always tested for a small sample to evaluate the duration and possible errors. Lack of similar works on the literature revised It is important when facing a challenge to find if someone already dealt with something similar and benchmark possible approaches. However, no related works were found. It was decided to search for different areas that have a connection with this topic or that could be adapted as the case of credit scoring models and/ or CRM. For the next situation, it will be increased the sites to search, not only academic papers with the highest citations, but also magazine articles or published studies from consultants. 65 Time/ Emotions Management During a project, there will always be the risk of rearranging the time available and periods where there is a lack of motivation. The important thing is to accept that will exist and to include in the plan actions to surpass/ to manage these situations. In this particular dissertation, the COVID-19 situation was the biggest challenge for time and emotions management. The workspace was readapted to a new layout at home in order to keep the division between home and work environment and a new work plan was elaborated. In future situations that require more isolation, it could be scheduled more periodic chats to keep the human contact and to increase the pressure over the deadline defined. 7.3 Next Steps Figure 7.1: Scheme of what was done and the next steps. 66 Despite the objectives of this thesis were achieved, some sequential tasks can be considered by this MFI. These tasks are the analysis of the deployment of the clustering method integrated with the integer programming model and keep monitoring if it brings a positive impact to the number of loans recovered by the team, as figure 7.1 shows. For that, it is needed to: • Define how the test period will occur, for example, start testing in a sample of five officers, during one and a half months; • Evaluate the results from the test period; • Define a monitoring and maintenance plan for the model; • Deploy and include it in the daily routine of all officers. Alternatively, another step that can be taken is to generate more data and to understand if the behavior of the classification techniques improves. However, this could be more difficult due to the pandemic situation the world has been going through since 2020. It would be hard to generate more data with a similar context to the one that was tested in this dissertation since the way the world is working, its processes, and how the money is flowing is different and adapted to this particular situation that is expected to be an outlier. Another area that can be improved is the information transfer between officers that called the same loan. For this, it is necessary to ensure that the officers get the proper training so there is a standardized way of filling out the information in the information systems of this company. This would ensure that the information transmission occurs smoothly as possible. Although this is a point that was not the focus of the dissertation, it appeared as a problem during the generation and extraction of the data. So, a revision and analysis of the onboarding and training process of the officers are left as well as a suggestion for the future, considering it can be an obstacle in future studies performed in the company. In summary, it is expected that the clustering method is seen as a valid option for the future of this company and that this study is complemented with an evaluation from the implementation/ deployment. 67 Bibliography Ackermann, K. and Chen, Y.-H. (2013). Developing the academic collocation list (acl)–a corpus-driven and expertjudged approach. Journal of English for Academic Purposes, 12(4):235–247. Adeyemi, B. (2011). Bank failure in nigeria: A consequence of capital inadequacy, lack of transparency and nonperforming loans. Banks and Bank systems, 6(1):99–109. Allen, R. C. (2017). The industrial revolution: a very short introduction, volume 509. Oxford University Press. Anderson, R. (2007). The credit scoring toolkit: theory and practice for retail credit risk management and decision automation. Oxford University Press. Baesens, B., Verstraeten, G., Van den Poel, D., Egmont-Petersen, M., Van Kenhove, P., and Vanthienen, J. (2004). Bayesian network classifiers for identifying the slope of the customer lifecycle of long-life customers. European Journal of Operational Research, 156(2):508–523. Bassot, B. (2016). The reflective journal. Macmillan International Higher Education. Björkegren, D. and Grissen, D. (2018). Behavior revealed in mobile phone usage predicts loan repayment. Available at SSRN 2611775. Bonaccorso, G. (2017). Machine Learning Algorithms. Packt Publishing. Buttle, F. and Maklan, S. (2019). Customer Relationship Management: Concepts and Technologies. Taylor & Francis. Byanjankar, A., Heikkilä, M., and Mezei, J. (2015). Predicting credit risk in peer-to-peer lending: A neural network approach. In 2015 IEEE Symposium Series on Computational Intelligence, pages 719–725. IEEE. Chelst, K. and Edwards, T. (1996). What is operations research. http://www.hsor.org/what_is_or.cfm. 68 Cheng, C.-H. and Chen, Y.-S. (2009). Classifying the segmentation of customer value via RFM model and RS theory. Expert systems with applications, 36(3):4176–4184. Deane, P., Deane, P., and Press, C. U. (1979). The First Industrial Revolution. Cambridge University Press. Flannery, M. (2007). Kiva and the birth of person-to-person microfinance. Innovations: Technology, Governance, Globalization, 2(1-2):31–56. Fortun, M. and Schweber, S. S. (1993). Scientists and the legacy of world war ii: The case of operations research (or). Social studies of science, 23(4):595–642. Gordon, R. J. (2000). Does the” new economy” measure up to the great inventions of the past? Journal of economic perspectives, 14(4):49–74. Grus, J. (2019). Data science from scratch: first principles with python. O’Reilly Media. Han, J., Pei, J., and Kamber, M. (2011). Data mining: concepts and techniques. Elsevier. Hand, D. J., Blunt, G., Kelly, M. G., Adams, N. M., et al. (2000). Data mining for fun and profit. Statistical Science, 15(2):111–131. Hevner, A. R., March, S. T., Park, J., and Ram, S. (2004). Design science in information systems research. MIS quarterly, pages 75–105. Huang, C.-L., Chen, M.-C., and Wang, C.-J. (2007). Credit scoring with a data mining approach based on support vector machines. Expert systems with applications, 33(4):847–856. Jensen, M. C. (1993). The modern industrial revolution, exit, and the failure of internal control systems. the Journal of Finance, 48(3):831–880. Lee, J., Kao, H.-A., Yang, S., et al. (2014). Service innovation and smart analytics for industry 4.0 and big data environment. Procedia Cirp, 16(1):3–8. Lu, Y. (2017). Industry 4.0: A survey on technologies, applications and open research issues. Journal of industrial information integration, 6:1–10. McIntosh, C. (2011). Monitoring repayment in online peer-to-peer lending. McKinney, W. (2012). Python for data analysis: Data wrangling with Pandas, NumPy, and IPython. ” O’Reilly Media, Inc.”. 69 Mohajan, H. (2019a). The first industrial revolution: creation of a new global human era. Mohajan, H. (2019b). The second industrial revolution has brought modern social and economic developments. Mokyr, J. (1998). The second industrial revolution, 1870-1914. Storia dell’economia Mondiale, 21945. Mousavi, M. R. and Sgall, J. (2017). Topics in Theoretical Computer Science: Second IFIP WG 1.8 International Conference, TTCS 2017, Tehran, Iran, September 12-14, 2017, Proceedings, volume 10608. Springer. Mpofu, T. R. and Nikolaidou, E. (2018). Determinants of credit risk in the banking system in sub-saharan africa. Review of development finance, 8(2):141–153. Ngai, E. W., Xiu, L., and Chau, D. C. (2009). Application of data mining techniques in customer relationship management: A literature review and classification. Expert systems with applications, 36(2):2592–2602. Olson, D. L. and Delen, D. (2008). Advanced data mining techniques. Springer Science & Business Media. Olson, D. L., Shi, Y., and Shi, Y. (2007). Introduction to business data mining, volume 10. McGraw-Hill/Irwin Englewood Cliffs. Paleologo, G., Elisseeff, A., and Antonini, G. (2010). Subagging for credit scoring models. European journal of operational research, 201(2):490–499. Peffers, K., Tuunanen, T., Rothenberger, M. A., and Chatterjee, S. (2007). A design science research methodology for information systems research. Journal of management information systems, 24(3):45–77. Pentico, D. W. (2007). Assignment problems: A golden anniversary survey. European Journal of Operational Research, 176(2):774–793. Qi, Q. and Tao, F. (2018). Digital twin and big data towards smart manufacturing and industry 4.0: 360 degree comparison. Ieee Access, 6:3585–3593. Reinhart, C. M. and Rogoff, K. S. (2011). From financial crash to debt crisis. American Economic Review, 101(5):1676–1706. Rygielski, C., Wang, J.-C., and Yen, D. C. (2002). Data mining techniques for customer relationship management. Technology in society, 24(4):483–502. Saunders, M., Thornhill, A., and Lewis, P. (2009). Research methods for business students. Prentice Hall: London. 70 Schwab, K. (2017). The Fourth Industrial Revolution. Crown. Spear, S., Bowen, H. K., et al. (1999). Decoding the dna of the toyota production system. Harvard business review, 77:96–108. Sumathi, S. and Sivanandam, S. (2006). Introduction to data mining and its applications, volume 29. Springer. Tashakkori, A., Teddlie, C., and Teddlie, C. B. (1998). Mixed methodology: Combining qualitative and quantitative approaches, volume 46. Sage. UnitedNations (2016). Sub-saharan africa’s growing population of older persons. https://www.un.org/en/ development/desa/population/publications/pdf/popfacts/PopFacts_2016-1.pdf. UnitedNations (2019). Patterns and trends in household size and composition: Evidence from a united nations dataset. https://www.un.org/en/development/desa/population/publications/pdf/ageing/household_ size_and_composition_technical_report.pdf. VanderPlas, J. (2016). Python data science handbook: Essential tools for working with data. ” O’Reilly Media, Inc.”. West, D. (2000). Neural network credit scoring models. Computers & Operations Research, 27(11-12):1131– 1152. Winer, R. S. (2001). A framework for customer relationship management. California management review, 43(4):89–105. Womack, J. P., Jones, D. T., and Roos, D. (2007). The machine that changed the world: The story of lean production–Toyota’s secret weapon in the global car wars that is now revolutionizing world industry. Simon and Schuster. Worku, Y. and Muchie, M. (2019). The survival of business enterprises and access to finance: the case of 4 african countries. Problems and perspectives in management, (17, Iss. 1):326–338. WorldBank (2019). Nonperforming loans are increasing in many european and sub-saharan african economies. https://datatopics.worldbank.org/world-development-indicators/stories/ non-performing-loans-are-increasing-in-many-european-and-sub-saharan-african-economies.html. 71 WorldBankGroup (2019). The little data book on gender. https://openknowledge.worldbank.org/bitstream/handle/ 10986/31689/LDB-Gender-2019.pdf?sequence=2&isAllowed=y. Yagiura, M., Iwasaki, S., Ibaraki, T., and Glover, F. (2004). A very large-scale neighborhood search algorithm for the multi-resource generalized assignment problem. Discrete Optimization, 1(1):87–98. Yang, L., Wang, Z., Ding, Y., and Hahn, J. (2016). The role of online peer-to-peer lending in crisis response: Evidence from kiva. Zheng, A. and Casari, A. (2018). Feature engineering for machine learning: principles and techniques for data scientists. ” O’Reilly Media, Inc.”. Zuckerman, S. (1964). In the beginning – and later. OR, 15(4):287–292. 72 Figure C.2: Distribution of the users by age. Figure C.3: Distribution of the users by marital status. 79 Figure C.4: Distribution of the users by number of children. 80 Figure C.5: Distribution of the users by employment status. 81 Figure C.6: Distribution of the users by reasons to request a loan. Figure C.7: Distribution of the users based in an ownership of a car. 82 Figure C.8: Distribution of the users by education status. Figure C.9: Distribution of the officers by gender. 83 Figure C.10: Distribution of the officers by age. Figure C.11: Distribution of the officers by the time in this company. 84 Figure C.12: Distribution of the officers by the education background. Figure C.13: Distribution of the officers by the number of languages they dominate. 85 Figure C.14: Distribution of the officers by the languages they talk. 86 Appendix D Variables Exploration from Dataset B Figure D.1: Distribution of the users from dataset B by gender. 87 Figure D.2: Distribution of the users from dataset B by age. Figure D.3: Distribution of the users from dataset B by marital status. 88 Appendix F Null values and noise from Dataset B Table F.1: Null values and noise from Dataset B Variable Number of missing values Percentage of missing values Total noise Percentage of noise cardinal 7 0.03% 2,151 8.02% product_id 0 0.00% 4,574 17.05% principal 0 0.00% 3,630 13.53% reason 0 0.00% 0 0.00% user_age 270 1.01% 296 1.10% user_state 0 0.00% 0 0.00% address_info_complete 0 0.00% 0 0.00% user_gender 0 0.00% 0 0.00% user_employment_status 0 0.00% 1,666 6.21% employment_info_complete 0 0.00% 0 0.00% user_marital_status 4 0.015% 255 0.95% user_number_children 3,248 12.11% 200 0.74% owns_car 0 0.00% 0 0.00% user_education_status 5 0.02% 4,946 18.44% entity_short_name 0 0.00% 0 0.00% sms_feature_01 8,996 33.54% 2,099 7.82% sms_feature_02 8,996 33.54% 1,034 3.85% 95 sms_feature_03 8,996 33.54% 0 0.00% sms_feature_04 9,211 34.34% 1,790 6.67% sms_feature_05 9,211 34.34% 947 3.53% sms_feature_06 9,211 34.34% 1,274 4.75% sms_feature_07 10,268 38.28% 1,566 5.84% sms_feature_08 10,268 38.28% 786 2.93% sms_feature_09 10,268 38.28% 0 0.00% sms_feature_10 8,370 31.20% 2,253 8.40% sms_feature_11 8,370 31.20% 923 3.44% sms_feature_12 8,370 31.20% 0 0.00% sms_feature_13 8,846 32.98% 2,039 7.60% sms_feature_14 8,846 32.98% 937 3.49% sms_feature_15 8,846 32.98% 1,157 4.31% sms_feature_16 9,530 35.53% 1,853 6.91% sms_feature_17 9,530 35.53% 791 2.95% sms_feature_18 9,530 35.53% 553 2.06% sms_feature_19 0 0.00% 2,256 8.41% sms_feature_20 0 0.00% 2,404 8.96% sms_feature_21 0 0.00% 3,329 12.41% sms_feature_22 0 0.00% 3,921 14.62% sms_feature_23 0 0.00% 2,284 8.51% sms_feature_24 6,287 23.44% 4 0.01% sms_feature_25 6,287 23.44% 299 1.11% sms_feature_26 7,460 27.81% 170 0.63% sms_feature_27 6,287 23.44% 6,223 23.20% sms_feature_28 0 0.00% 2,127 7.93% sms_feature_29 3,464 12.91% 268 1.00% sms_feature_30 3,464 12.91% 1,017 3.79% sms_feature_31 5,005 18.66% 1,265 4.72% sms_feature_32 3,464 12.92% 1,256 4.68% loan_installed 0 0.00% 0 0.00% 96 competitor_installed 0 0.00% 0 0.00% bank_installed 0 0.00% 6,312 23.53% otherbank_installed 0 0.00% 1,003 3.74% cryptocurrency_installed 0 0.00% 743 2.77% invet_trade_installed 0 0.00% 1,644 6.13% money_installed 0 0.00% 227 0.85% paid 0 0.00% 0 0.00% 97 Appendix G Data Partition for the First Experiment Table G.1: Data partition for each table used in dem1Xdem2 variable modeling. dem1Xdem2_A Samples Nr. Observations Percentage Training 2,152 80% Testing 538 20% Total 2,690 100% dem1Xdem2_B Samples Nr. Observations Percentage Training 3,088 80% Testing 772 20% Total 3,860 100% dem1Xdem2_C Samples Nr. Observations Percentage Training 760 80% Testing 191 20% Total 951 100% dem1Xdem2_D Samples Nr. Observations Percentage Training 941 80% 98 Testing 236 20% Total 1,177 100% dem1Xdem2_E Samples Nr. Observations Percentage Training 682 80% Testing 171 20% Total 853 100% dem1Xdem2_F Samples Nr. Observations Percentage Training 1,144 80% Testing 287 20% Total 1,431 100% dem1Xdem2_G Samples Nr. Observations Percentage Training 955 80% Testing 239 20% Total 1,194 100% dem1Xdem2_H Samples Nr. Observations Percentage Training 742 80% Testing 186 20% Total 928 100% dem1Xdem2_I Samples Nr. Observations Percentage Training 919 80% Testing 230 20% Total 1,149 100% dem1Xdem2_J Samples Nr. Observations Percentage Training 997 80% Testing 250 20% 99 Total 1,247 100% dem1Xdem2_K Samples Nr. Observations Percentage Training 988 80% Testing 247 20% Total 1,235 100% dem1Xdem2_L Samples Nr. Observations Percentage Training 1,613 80% Testing 404 20% Total 2,017 100% dem1Xdem2_M Samples Nr. Observations Percentage Training 745 80% Testing 187 20% Total 932 100% dem1Xdem2_N Samples Nr. Observations Percentage Training 308 80% Testing 77 20% Total 385 100% dem1Xdem2_O Samples Nr. Observations Percentage Training 6,340 80% Testing 1,585 20% Total 7,925 100% dem1Xdem2_P Samples Nr. Observations Percentage Training 5,268 80% Testing 1,317 20% Total 6,585 100% 100 dem1Xdem2_Q Samples Nr. Observations Percentage Training 2,157 80% Testing 540 20% Total 2,697 100% dem1Xdem2_R Samples Nr. Observations Percentage Training 648 80% Testing 163 20% Total 811 100% dem1Xdem2_S Samples Nr. Observations Percentage Training 2,420 80% Testing 605 20% Total 3,025 100% Table G.2: Data partition for each table used in field_of_studies variable modeling. Applied Sciences and Professions Samples Nr. Observations Percentage Training 6,029 80% Testing 1,508 20% Total 7,537 100% Humanities Samples Nr. Observations Percentage Training 2,030 80% Testing 508 20% Total 2,538 100% Natural or Formal Sciences Samples Nr. Observations Percentage 101 Training 6,064 80% Testing 1,516 20% Total 7,580 100% Social Sciences Samples Nr. Observations Percentage Training 18,713 80% Testing 4,679 20% Total 23,392 100% Table G.3: Data partition for each table used in time_in_company variable modeling. [0-165] Samples Nr. Observations Percentage Training 6,073 80% Testing 1,519 20% Total 7,592 100% [165-210] Samples Nr. Observations Percentage Training 7,524 80% Testing 1,882 20% Total 9,406 100% [210-265] Samples Nr. Observations Percentage Training 8,605 80% Testing 2,152 20% Total 10,757 100% >265 Samples Nr. Observations Percentage Training 10,669 80% Testing 2,668 20% 102 Total 13,337 100% 103 Appendix H Full results of the metrics from the First Experiment 104