scieee AI-readable full text Open interactive document viewer

A dynamic credit risk assessment model with data mining techniques: Evidence from Iranian banks

Moradi, Somayeh,Mokhatab Rafiei, Farimah

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Moradi, Somayeh; Mokhatab Rafiei, Farimah Article A dynamic credit risk assessment model with data mining techniques: Evidence from Iranian banks Financial Innovation Provided in Cooperation with: Springer Nature Suggested Citation: Moradi, Somayeh; Mokhatab Rafiei, Farimah (2019) : A dynamic credit risk assessment model with data mining techniques: Evidence from Iranian banks, Financial Innovation, ISSN 2199-4730, Springer, Heidelberg, Vol. 5, Iss. 1, pp. 1-27, https://doi.org/10.1186/s40854-019-0121-9 This Version is available at: https://hdl.handle.net/10419/237161 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ RESEARCH Open Access A dynamic credit risk assessment model with data mining techniques: evidence from Iranian banks Somayeh Moradi 1 and Farimah Mokhatab Rafiei 2* * Correspondence: [email protected] 2 Tarbiat Modares University, Tehran, Iran Full list of author information is available at the end of the article Abstract Giving loans and issuing credit cards are two of the main concerns of banks in that they include the risks of non-payment. According to the Basel 2 guidelines, banks need to develop their own credit risk assessment systems. Some banks have such systems; nevertheless they have lost a large amount of money simply because the models they used failed to accurately predict customers’defaults. Traditionally, banks have used static models with demographic or static factors to model credit risk patterns. However, economic factors are not independent of political fluctuations, and as the political environment changes, the economic environment evolves with it. This has been especially evident in Iran after the 2008–2016 USA sanctions, as many previously reliable customers became unable to repay their debt (i.e., became bad customers). Nevertheless, a dynamic model that can accommodate fluctuating politicoeconomic factors has never been developed. In this paper, we propose a model that can accommodate factors associated with politico-economic crises. Human judgement is removed from the customer evaluation process. We used a fuzzy inference system to create a rule base using a set of uncertainty predictors. First, we train an adaptive network-based fuzzy inference system (ANFIS) using monthly data from a customer profile dataset. Then, using the newly defined factors and their underlying rules, a second round of assessment begins in a fuzzy inference system. Thus, we present a model that is both more flexible to politico-economic factors and can yield results that are max compatible with real-life situations. Comparison between the prediction made by proposed model and a real non-performing loan indicates little difference between them. Credit risk specialists also approve the results. The major innovation of this research is producing a table of bad customers on a monthly basis and creating a dynamic model based on the table. The latest created model is used for assessing customers henceforth, so the whole process of customer assessment need not be repeated. We assert that this model is a good substitute for the static models currently in use as it can outperform traditional models, especially in the face of economic crisis. Keywords: Fuzzy clustering, Non-performing loan, Credit risk, FIS, Dynamism, ANFIS Introduction A commercial bank, hereafter referred to as a bank, is a type of financial institution that provides services such as accepting deposits, making business loans, and offering basic investment products. Inevitably, banks must take risks in giving loans and credit Financia l Innovation © The Author(s). 2019 Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 https://doi.org/10.1186/s40854-019-0121-9 cards to customers because these are economic drivers. This is delicate because a bank’s survival is tied to taking appropriate risks; a non-risk-taking bank is as vulnerable as an overly-risk-taking one (Narindra Mandalaa & Fransiscus, 2012). Therefore, when banks are faced with a risk, appropriate risk management depends on identifying, understanding, measuring, and finally providing appropriate strategies towards it (Bekhet & Eletter, 2014). According to the Basel 2 accord, credit risk is one of the risks that banks face in allocating resources. It is defined as the probability of non-payment or delayed payment by customers or their inability to repay a loan (Cisko & Klieštik, 2013). Customers with a high probability of loan repayment are classified in the good customer group and customers with a high probability of default are classified in the bad customer group (Akkoc, 2012). Credit risk assessment is vital for banks; they must ensure that borrowers are able to pay their installments before allocating a loan to them (Narindra Mandalaa & Fransiscus, 2012). According to Basel 2, each bank needs to organize and develop its own internal credit scoring system with which they can analyze a borrower’s risk. This has led to an upsurge in the demand for scoring systems that can accurately model risks at high resolution; some institutions are remunerated very well to develop such models for banks upon request. These credit-scoring techniques can then be used as decision support tools or as automated decision algorithms for a wide range of customers (Heiat, 2012). Most current credit risk models have been developed based on trial and error and lack a theoretical framework (Wang et al., 2014). Moreover, most of these models are static and are unable to function efficiently in economic crises. Traditionally, banks have used static modeling frameworks to assess customer credit risks; however, the lack of responsiveness to the evolving economic environment renders these models inefficient, especially in the face of concept drifts, where a portion of previously good costumers fall into default (i.e., become bad customers). While, the traditional static models have proven to work reasonably well during periods of stasis, they fail to do so in the face of economic and political fluctuations. This is especially evident in Iran, after the governing regime (the Islamic Republic) came under several international political and economic sanctions. Consequently, the number of non-performing loans (NPLs) increased and many Iranian customers became unable to repay their obligations. As new factors were introduced during this period, the model criteria needed to be updated, as well. Opting for appropriate factors that work well in all circumstances is difficult (if not impossible); therefore, a dynamic model that can accommodate new factors is desirable. In this paper, we introduce a new model that can accommodate changing uncertain factors as well as the more stable certain factors used in static models. Background Analyzing credit risk is a pattern recognition problem (Kruppa & Schwarz, 2013) and includes functions for predicting whether or not a customer will pay off a loan (Emel et al., 2003); therefore, the most important features are resolution and accuracy. Credit scoring evaluation used to focus primarily on delinquencies. In recent years, however, loss given default (LGD) and exposure have been among its most important criteria. In this field, researchers have tried to solve the customer credit risk assessment problem, each using a different approach and technique; and each of them has tried to Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 2 of 27 present a more accurate model than the others (see Table 1). With the advances made in computer technology, data collection and manipulation has become more feasible than ever; consequently, the demand for data analysis and data classification has increased (Zanin et al., 2016). Machine learning and data mining are among the most popular techniques used in this area. The latter refers to mining data in order to recognize its hidden patterns and relationships (Sumathi & Sivanandam, 2006). Systems such as artificial intelligence, which reveal patterns in a database, are called data mining systems (Saitta et al., 2008). Table 1 Proposed models of credit risk. The researchers have tried to solve the customer credit risk assessment problem, using a different approach and technique, and each of them has tried to present a more accurate model than others. Table 1summarizes these researches. It shows that 90.9% of the previous models are static and only 9.1% of them are dynamic Authors’name Techniques Static / Dynamic Type of predictor (Certain/Uncertain) Hussain Ali Bekhet et al., 2014 ANN: RBF Static Certain Gusti Ngurah Narndra Mandalaa. Et al, 2012 Decision Tree: c 5.0 Static Certain Weimin Chen et al., 2012 Clustering, SVM Static Certain Fatemeh Nemati Koutanaei et al., 2015 GA, SVM, PCA Static Certain Zhiwang Zhang et al., 2014 Kernel, fuzzification, penalty factors Static Certain Danenas P et al., 2015 SVM Static Certain Ghodselahi, 2011 SVM, Fuzzy clustering Static Certain Shahrzad Zaman, 2013 MLP, RBF Static Certain Vahid Baradaran, 2015 ANFIS Static Certain Blanco et al., 2013 MLP, linear discriminant analysis, quadratic discriminant analysis, logistic regression Dynamic Certain Bensic et al., 2005 Logistic regression, NNs and Classification and regression trees Static Certain West, 2000 Linear discriminant, analysis and logistic regression, decision trees, kernel density estimation, nearest neighbor Static Certain Witkowska et al., 2004 MLP, RBF Static Certain Yeh et al., 2009 K-nearest neighbor (KNN) classifiers, Logistic regression, Discriminant analysis, Naı¨ve Bayesian classifier, Classification trees, ANN Static Certain Ping et al., 2011 SVM Static Certain Tsai, 2008 MLP Static Certain Twala, 2010 ANN, decision tree, Naïve Bayes, k-NN,logistic, discriminant analysis Static Certain Hsieh et al., 2010 NN, support vector machine, and Bayesian network Static Certain Paleologo et al., 2010 SVM, decision trees, KNN, AdaBoost, Subagged classifiers Static Certain Wang et al., 2011 SVM Static Certain Oreski et al., 2014 Presented a new hybrid GA with ANN Static Certain Maria Rocha Sousa et al., 2016 Generalized Additive Model (GAM) Dynamic Certain Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 3 of 27 There are several techniques for data mining, each with different capabilities: e.g., decision trees and rule induction, neural networks, fuzzy modeling, support vector machines (SVMs), k-nearest neighbors (k-NN), Bayesian networks (BNs), instance-based algorithms, and learning classifier systems (Berthold & Hand, 2003). All of these techniques can be classified into one of three categories: a) classical statistics, b) artificial intelligence, and c) machine learning (Girjia & Sirvatsa, 2006). Attempts to acquire knowledge using machines date back to the 1950s (see (Rosenblatt, 1958) and the references therein). Today, machine learning is used in a wide range of fields including speech and image recognition, and its algorithms facilitate many routines such as fraud detection, web searches, text-based sentiment analysis, image segmentation, object recognition, and credit scoring. Materials science pioneered machine learning in the 1990s, applying artificial neural networks (ANNs) and other methods to predict corrosion behavior (Rao & Mukherjee, 1996). Statistical learning concerns learning from existing data and includes two types: supervised and unsupervised learning. The approach of clustering, i.e., partitioning a dataset into groups of similar members, has been established (Kaufman & Rousseeuw, 2009). To find appropriate machine learning techniques such as ensemble methods, Nanni et al. (Nanni & Lumini, 2009) used Australian, German, and Japanese financial datasets. They found that the “random subspace”of the Levenberg–Marquardt neural net was the best method of classification (Nanni & Lumini, 2009). The models presented so far can be organized into two categories. The first category applies already existing models such as ANN and SVM. The second category proposes a new hybrid model based on the existing models. Many models have been presented; however, banks still require a model that calculates customer credit risk and decreases the amount of NPLs. Here we review some such models. Single-method model Mandala et al. (Narindra Mandalaa & Fransiscus, 2012), identified factors at a rural bank–Bank Perkreditan Rakyat–that are necessary for assessing credit applications. Additionally, a decision tree model was proposed on the basis of data mining methodology. Aiming to reduce the number of NPLs, current decision criteria for credit risk assessment are evaluated. The credit risk assessment model was applied to the bank PT BPR X in Bali, which contains 1082 lenders (11.99%) with NPLs identified as bad loan cases. This brought PT BPR X into the category of poorly performing banks. Data mining is used in developing a decision tree model for credit assessment as it can indicate whether the class of the request of lenders is of performing loan or NPL risk. Using C 5.0 methodology, a new decision tree model was generated. The model suggests new criteria for analyzing loan applications. The evaluation results show that, by applying this model, PT BPR X can reduce the amount of NPLs to less than 5% and the bank can be consequently classified as a well-performing bank (Narindra Mandalaa & Fransiscus, 2012). Abdou et al. (Abdou & Pointon, 2009) considered the current credit-scoring approach, which is based on personal judgment. It is shown that, compared to the currently used judgment techniques, statistical scoring techniques provide more efficient classification results (Abdou & Pointon, 2009). Furthermore, neural net Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 4 of 27 models provide better average correct classification rates, but the optimal choice of technique depends on the misclassification cost ratio. For a lower cost ratio, a probabilistic neural net is preferred while, for a higher ratio, multiple discriminant analysis (MDA) is the preferred choice (Abdou & Pointon, 2009). Thus, there is a role for MDA as well as for neural nets. There is some evidence of statistically significant differences between advanced scoring models and conventional models (Abdou & Pointon, 2009). Zamani (Zamani, 2011) studied customers’behavior patterns under two models: a multilayer perceptron network (MLP) and a neural network composed of radial basis functions (RBFs). Comparison of the two models showed that the MLP is better than RBFs in predicting the credit risk of legal clients (Zamani, 2011). Bensic (Bensic et al., 2005) studied some important features of credit scoring in small-business lending by comparing the accuracy of logistic regression, neural networks (NNs), and classification and regression tree (CART) decision trees. The results showed that the probabilistic NN model achieves the highest “hit rate”and the lowest type I error (Bensic et al., 2005). West (West, 2000) investigated the accuracy of five NN models of credit scoring; namely, multilayer perceptron, mixture-of experts, RBF, learning vector quantization, and fuzzy adaptive resonance. The results showed that the mixture-of-experts and RBF neural network models are more sensitive than the multilayer perceptron approach (West, 2000). Yeh et al. (Yeh & Lien, 2009) explored data mining methods in an attempt to find the most accurate and predictive methods for finding the probability of defaults. They found that artificial neural networks provide the most accurate estimation of the probability of default among the six data mining techniques examined. Based on this, they established a model called the sorting smoothing method (Yeh & Lien, 2009). Hybrid model A hybrid data mining model of feature selection and ensemble learning classification algorithms was developed by Koutanaei et al. (Nemati Koutanaei et al., 2015) based on three stages. The first stage concerns data gathering and pre-processing. In the second stage, four feature selection (FS) algorithms, including principal component analysis (PCA), genetic algorithms (GA), information gain ratio, and relief attribute evaluation functions are employed. Here, parameters of the FS methods are set from the classification accuracy of the SVM classification algorithm. After selecting the appropriate model for each selected feature, they are applied to the base and ensemble classification algorithms. Accordingly, the best FS algorithm (along with its parameters) is indicated for the modeling stage of the proposed model. In the third stage, classification algorithms are employed for the prepared dataset of each FS algorithm. The results of the second stage revealed that the PCA algorithm is the best FS algorithm. In the third stage, the classification results showed higher accuracy achieved by the ANN adaptive boosting (AdaBoost) method (Nemati Koutanaei et al., 2015). A novel multi-criteria optimization classifier based on kernel, fuzzy, and penalty factors was proposed by Zhang et al. (Zhang, 2014): a kernel function is used first to map the input points into a high-dimensional feature space; an appropriate fuzzy membership function is then introduced to a multi-criteria optimization classifier that Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 5 of 27 associates it with each data point in the feature space; and finally, unequal penalty factors are added to the input points of the imbalanced classes. Thus, the effects of the aforementioned problems are reduced (Zhang, 2014). Rather than expending effort on determining which of the two models provides greater predictive capacity, Baixauli et al. (Baixauli et al., 2012) highlighted the importance of combining a structural model with an accounting model. In fact, recent literature indicates that there is no superiority of one approach over the other because they both capture different aspects of the risk of bankruptcy in companies, and they should be combined to improve credit risk management (Baixauli et al., 2012). Shahari et al. (Shahari et al., 2015) collected the annual panel data from 2005 to 2012 from 40 Islamic banks from 12 countries. They provided some policy recommendations that can result in further reduction of credit risks and improvement of bankers’confidence level in implementing asset-based financing policies (Shahari et al., 2015). Using a hybrid data mining technique, Chen et al. (Chen et al., 2012) proposed a credit-scoring model that has two processing stages: clustering and classification. In the clustering stage, samples of accepted and new applicants are divided into homogeneous clusters, the isolated samples are excluded, and inconsistent samples are relabeled. In the classification stage, samples with new labels are fed into SVMs to build the scoring model. One difference between this model and the other credit-scoring models is that the samples are classified into three or four classes rather than just “good”and “bad”classes. Based on the credit data set provided by a local bank in China, their experimental results showed that choosing a proper cut-off point can result in superior classification accuracy of good and bad customers. According to the characteristics of each class, risk management strategies are then developed (Chen et al., 2012). Research shows that defaults relate largely to macroeconomic variables (Yurdakul, 2014) and that uncertainty of economic policies increases banks’credit risks (Chi & Li, 2017) with negative effects on loan size (Chi & Li, 2017). Danenas (Danenas & Garsva, 2015) proposed a credit risk evaluation method consisting of SVM classifier selection, external evaluation, and a sliding window. Results showed that the proposed method is comparable to other classifications like RBF networks and logistic regression (Danenas & Garsva, 2015). Ping et al. (Ping & Yongheng, 2011) proposed a hybrid SVM-based model for evaluating credit scores based on customer variables which consists of four methods: (1) using a rough neighborhood to set input feature selections; (2) applying a grid search for optimizing RBF kernel parameters; (3) using hybrid optimal input features and a model; and (4) comparison between the accuracy of the suggested method and other methods. Results illustrated that the SVM-based hybrid classifier and the rough neighborhood set yield the best credit-scoring ability in comparison with other hybrid classifiers. They also outperformed linear discriminant analysis, logistic regression, and NNs (Ping & Yongheng, 2011). Combining classifiers is one of the concerns of recent research in machine learning. Twala (Twala, 2010) explored the predictions of five classifiers in credit risk predictions based on their manner of confronting noise and accuracy in applying classifier ensembles. He showed that the ensemble of classifiers can improve the accuracy of prediction (Twala, 2010). Hsieh et al. (Hsieh & Hung, 2010) introduced a preprocessing step for obtaining an efficient ensemble classifier. They proposed class-wise classification using several data-mining techniques such as NN, SVM, and Bayesian networks to further increase the efficiency of the ensemble of classifiers (Hsieh & Hung, 2010). Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 6 of 27 Table 1summarizes data-mining techniques and types of predictors. It shows that 90.9% of the previous models are static and only 9.1% of them are dynamic. International sanctions were inflicted on the Iranian regime during 2008–2016. The number of NPLs increased (Fig. 1) and economic sectors were affected by the NPLs (Fig. 2). Our experiences with Iran showed that critical circumstances such as hyperinflation, sanctions, and unemployment can affect customers’lives and move them from the “good customer”segment to the “bad customer”segment. Interestingly, more than 73% of NPLs were backed loans (in which the borrower offers very large collaterals to secure the loan). Apparently, these collaterals could not guarantee customer repayment. The prevailing credit risk assessment models were inaccurate in critical situations like those of sanctions. Customer behavior is subject to change with the passage of time, and so is customer credit risk. A sophisticated dynamic model that can account for these kinds of crises is required. A dynamical modelling framework for credit risk assessment was recently proposed by Sousa et al. (Sousa & Gama, 2016); it extends the prevailing models developed on the basis of historical data static settings. This model was inspired by the principle of films, using “a sequence of snapshots, rather than a single photograph.”In this dynamic modeling framework, customer credit risk is assessed using a batch data processing model. A generalized additive model (GAM) is used for classification of data in a supervised training environment and the learning units are set as static units. The researchers used a Gini coefficient for measuring model performance from data from previous months. The model deals with defaults in two ways: a full-memory time window based on all previous data, in which new data is appended to the training set (which is unable to adapt to major changes); and a fixed short-memory time window that forgets the past. The latter was used because the researchers believed that there is a low correlation between ongoing defaults and past instances. Figures 3and 4show the fulland short-memory time windows, respectively (Sousa & Gama, 2016). Although this model has been proven to outperform static models in helping the banks to prevent probable future losses, it has some shortcomings. In the banking industry, credit-scoring models are usually developed from static windows and are kept unchanged for long periods of time, possibly years. Although, Sousa et al. (Sousa & Gama, 2016) provided convincing results in their research, they did not consider some important topics in credit risk assessment. For example, their model considered a set of fixed Fig. 1 Non-performing loan chart. International sanctions inflicted the Iranian regime during 2008–2016 and the NPL increased. The vertical axis shows the average of NPL and the horizontal axis shows the year. The chart shows the NPL at each year Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 7 of 27 predictors even though they suggested that a “predictor of variable length”would be more effective in finding the reason behind NPLs (Figs. 3,4and 5). In this research we propose a model that considers a wider array of factors than in the previous studies: a set of certain factors like age, marital status, monthly income, etc. and a set of uncertain predictors (Table 2). A group of ten top risk managers and banking specialists (credit risk workgroup) helped us to determine new factors based on their experiences and according to Basel 2. In this model, we construct a table of bad customers (i.e., those that have failed to repay their debts for over 2 months) on a Fig. 2 The economic sector affected by the sanction. International sanctions have affected the economic sector such as industry, export, agriculture, commerce, and building Fig. 3 Full memory time window. A dynamical modeling framework for credit risk assessment was recently proposed by Maria Rocha Sousa et al. (Sousa & Gama, 2016) that extends the prevailing models developed on the historical data static settings. This model that was inspired by the principle of films uses “a sequence of snapshots, rather than a single photograph”. In this dynamic modeling framework, the customer credit risk is assessed using a batch data processing model. The model deals with the defaults in two ways. This Fig is about the full memory time window which is based on all previous data and the new data is appended to the training set. As you see at the Figure, learning 2 at month2 includes learning 1 which belongs to the months 1 Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 8 of 27 so); then we train the ANFIS and construct a dynamic model based on the data in this table. This model is then used to assess the customers’credit risk at the time of registry. Only if the customer is assessed to be risk free based on the static models from the dataset containing the information on all customers, is the customer given credit. Otherwise, if the customer is found to be too risky, the customer is given no credit. Alternatively, if the customer belongs to the medium-risk segment in the analysis using the dynamic model, a second round of assessment begins using a fuzzy inference system based on our predefined rules. The system classifies customers into three clusters of low, medium, and high risk. The analysis ends if the customer is still shown to be too risky. However, if the customer is shown to belong to the medium-risk group, conditional credit can be allocated; if classified in the low-risk group based on the second round of analysis, the customer is given credit and the analysis ends. All calculations and the construction of FIS and ANFIS was done by the FIS and ANFIS toolboxes in MATLAB R2015b. However, for developing the model for a larger scale, Java and Oracle can be used. Figure 13 summarizes the research methodology. Dynamic model for credit risk Traditionally, researchers have applied methods like SVM, PCA, and ANN and focused mainly on repetitive demographic factors to forecast credit risk. While these models work reasonably well during periods of stasis, they cannot take economic crises into account. A model is needed that can account for the passage of time and critical situations like sanctions, which can have unfortunate impacts on customers’personal lives and, more importantly, on their ability to repay their obligations. Fig. 13 Research methodology. The research methodology includes four steps as follows: Credit risk variables, FIS, Clustering the dataset and ANFIS. Each step includes one or some activities. The first step is credit risk variables which define and approve factors for evaluating customer credit risk according to risk managers. The second step is FIS which includes the activities shows in FIS step of Fig. 13. The third step is clustering the dataset which includes the activities shows in clustering the dataset step of Fig. 13.The fourth step is ANFIS which includes the activities shows in ANFIS step of Fig. 13 Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 15 of 27 The default rate has grown at an alarming rate in Iran following the economic and political sanctions applied against the governing regime. This growth has been unpredictable in the static models that Iranian banks currently use. We combine FIS, fuzzy clustering, and ANFIS to create a dynamic model that is robust to these political and economic fluctuations. Therefore, the factors applied in this model are different from those of previous research, and can be used for both individuals and legal customers (see Table 2). We defined these factors and a group of ten top risk managers in several meetings, who approved them. Some of the factors do not change over time; we called these certain factors. Others do change; we called these uncertain factors. We applied fuzzy theory to the uncertain factors. We used FIS and fuzzy theory to implement risk managers’opinions as a rule base for the dynamic model. The FIS contained the new credit risk factors and related rules between them. Considering the behavioral features of customers in special economic and political conditions, fuzzy numbers and their related calculations can be applied in solving customer credit risk problems. Fuzzy systems have a unique capability in utilizing human knowledge and are appropriate tools for modelling complex systems dealing with uncertainty. As reviewed in the background section, ANNs cannot individually exploit human knowledge as they are a data driven method and need data; but fuzzy systems are knowledge-based systems. In ANNs, it is difficult to define a rule that can be used by a human. However, in a fuzzy system, it is possible to create a rule that is understandable and implementable by a human. We divide the customers into three groups based on how late they have been in paying instalments: low risk (LR), indicating less than 2 months; medium risk (MR), from 2 to 6 months; and high risk (HR), more than 6 months. According to the membership function concept, each customer belongs partly to each group and there are no definite boundaries between them. Dynamic engine of the proposed model The statistical population used in this study contains 9000 records of bank customer profiles in a database that includes properties like name, age, time at current address, monthly income, and application date, due date, instalment date, and number of products, gender, and names of the parents of the customers. Some behavioral patterns are clearly observable based on the database; however, these patterns have proved to change as the political and economic environment changes. Moreover, training using all data from the customer dataset and constructing a dynamic model of credit risk that needs to be updated every few months is costly for banks and financial institutions; they usually decline to use such models. They prefer to construct a model once and use it for years. In order to determine the behavioral patterns of customers in a period of economic crisis, we collected data monthly on customers that failed to repay their debts for over 2 months and organized them into a table. Then we used this data in an ANFIS to create a new dynamic model. Jang (Sugeno, 1985) found that models developed via ANFIS, which is a general approximator, can be very close to reality. This model then became the dynamic engine of our model. Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 16 of 27 The customer features with the most impact on the patterns were selected in this research; they include age, monthly income, number of dependents, marital status, occupation code, type of home, and bill payment experience. As mentioned above, the input for ANFIS was the monthly customer profile dataset. Some underlying rules in the customer profile dataset are hidden from a human observer; therefore, we fuzzy-clustered the customers before feeding them into the ANFIS, thus letting the models recognize the rules better and decreasing the calculation load. There are several available clustering methods like k-means, FCM, and subtractive approaches. To find which is best for our research, we clustered the customers using k-means, FCM, and subtractive clustering methods. The MSEs of three methods (k-means, FCM, and subtractive clustering) are shown respectively in Figs. 14,15,and16. Figure 15 shows that the FCM yields the best results. The k-means method had a crisp border between the three clusters but most of the risks occurred along the borders. How best to behave with these borderline customers is an important problem. The results of FCM analysis were the best because it changed to adopt milder behavior at the borders. The subtractive method clustered customers into several segments and did not fit the purpose of the model. The customer dataset was clustered into three segments fed into the ANFIS as input. After training the ANFIS, the underlying hidden rules of the system became evident. We first clustered the data set into manageable segments using an unsupervised fuzzy clustering method because it assumed no definite boundaries between the customer segments. The unsupervised approach was taken because we wanted the system to cluster customers without any bias. This network can adapt itself over time and can discover the rules of the system. Fig. 14 K-means MSE. There are some clustering methods like K-Means, FCM, and subtractive. To find which one is the best for our research, we have clustered the customers using K-Means, FCM, and subtractive clustering methods and compared the methods’MSEs. The MSEs (Mean-Square Error) of the k-means is shown in Fig. 14. The error mean is = −1.7356e-0.5 and std. = 0.00020128. The Mean squared error (MSE) measures the average of the squares of the errors Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 17 of 27 Making a fuzzy inference system for the proposed model The fuzzy variables used to create the FIS rule base in this research were defined based on trapezoidal fuzzy numbers. As an example, consider these two factors: the number of loan repayments past due and debt-to-income ratio, as shown in Table 3. To limit the description of the value of factors, we used SD as little, MD as medium and LD as Fig. 15 The FCM MSE. There are some clustering methods like K-Means, FCM, and subtractive. To find which one is the best for our research, we have clustered the customers using K-Means, FCM, and subtractive clustering methods and compared the methods’MSEs. The MSEs (Mean-Square Error) of the FCM is shown in Fig. 15. The error mean is = −2.177e-0.6 and std. = 6.343e-0.5. The Mean squared error (MSE) measures the average of the squares of the errors Fig. 16 The subtractive clustering MSE. There are some clustering methods like K-Means, FCM, and subtractive. To find which one is the best for our research, we have clustered the customers using K-Means, FCM, and subtractive clustering methods and compared the methods’MSEs. The MSEs (Mean-Square Error) of the subtractive is shown in Fig. 16. The error mean is = 2.9142e-0.8 and std. = 5.5786e-0.5 The Mean squared error (MSE) measures the average of the squares of the errors Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 18 of 27 high (SD, MD, and LD are not acronyms. They are just terms that we assumed. SD stands for little, MD stands for medium, and LD stands for high). When debt to income is greater than one it is SD. When debt to income is equal to one it is MD, and when debt to income is less than one it is LD. If loan repayments past due is less than two it is SD. If loan repayments past due is between two and six it is MD, and if loan repayments past due is greater than six it is LD. Table 3combines two input variables. It indicates that, if the number of loan repayments past due is low (SD) and the ratio of debt-to-income is low (SD), then the customer is recognized as low-risk. If the number of loan repayments past due is around the middle (MD) and the ratio of debt-to-income is high (LD) then the customer is recognized as high-risk (HR). The following are some of the rules applied according to specialist knowledge: 1. If (debt-to-income ratio is SD) and (number of loan repayments past due is SD), then (customer evaluation is MR) (1). 2. If (debt-to-income ratio is SD) and (number of loan repayments past due is MD), then (customer evaluation is HR) (2). For each factor, the membership function was defined; it is shown in Fig. 17. The aggregation function was defined to map the input to the output, as shown in Fig. 18. Among defuzzifying methods such as “large of maximum”(LOM), “small of maximum”(SOM), and “centroid of area”(COA), COA was applied because it had the least error and the best results. The FIS toolbox in MATLAB R2015b was used for the calculations. Statistical analysis and model estimation As mentioned above, the statistical population of this research includes defaulters, i.e., customers who paid their installments late: from 2 to 6 months, from 6 to 18 months, and more than 18 months late. We collected data randomly by meeting with credit experts from bank branches, examining existing archives, and monitoring the collection of claims. Thus, we used 9000 records of customers who received credit from banks from 2008 to 2016. From this collection of data, we used 7920 records to design and train the ANFIS and 1080 records to test the efficiency and predictive power of the model. Sample customers consisted of 6658 medium-risk customers (i.e., who had repaid their installments between 2 and 6 months late) and 1262 high-risk customers (who had not paid their installments for more than 6 months). Considering the number Table 3 Fuzzy evaluation for debt to Income ratio and Number of Loan Repayments Past Due. This table combines two input variables. It describes that if the number of loan repayments past due is low (SD) and the amount of debt to income is low (SD) then the customer is recognized as low-risk. If the number of loan repayments past due is at around the middle (MD) and the amount of debt to income is high (LD) then the customer is recognized as the high-risk (HR). To limit the describing of the value of factors, we have used SD as little, MD as medium and LD as high Number of loan repayment past due SD MD LD Debt to income ratio SD LR LR MR MD MR MR MR LD MR HR HR Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 19 of 27 of variables in the customer profile, in order to improve the accuracy of the model, it was necessary to select the most important variables to include in the model. SPSS software (IBM SPSS Statistics) (SPSS Statistics, 2009) was used to calculate correlation coefficients. Variables with the largest correlation coefficients with respect to the dependent variable (i.e. the amount of delay in installment payment) were determined. Figure 19 displays the design of the model. In this section of the study, customer information was processed in MATLAB R2015b before entering the model. Next, 9000 records were entered into the model. Given that the range of values each variable can take was different, we normalized all data by converting them into numbers between zero and one. After this stage, the training and testing data are separately entered into the software, which then began to fit the model. Figure 20 shows the fuzzy inference system obtained in the process of training the network in MATLAB R2015b. The parameters of the model, including the target error rate, number of repetitions, and number of fuzzy sets of each of the variables, were considered to be 0, 80, and 3, Fig. 17 Membership function of Number of Loan Repayments Past Due. The factors applied in this model as predictors are different from the previous researches. We defined these factors and a group of 10 top risk managers in several meetings approved them. Some of the factors do not change through the time, we called them certain factors. Others do, and we called them uncertain factors. We have applied fuzzy theory to uncertain factors. The fuzzy variables used to create the FIS rule base of this research were defined based on trapezoidal fuzzy numbers Fig. 18 Aggregation function. The aggregation function was defined to map the inputs such as input1 (number of loan repayment past due) and input2 (debt to income) to the output (customer evaluation) as it can be seen in this Fig Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 20 of 27 respectively. It should be noted that the numbers of fuzzy sets for each of variables 3 and 4 were investigated. Based on the error index, fuzzy set 3 was selected. The rate of root-mean-square error (RMSE) was determined in different repetitions. The RMSE was reduced to less than 80 repetitions, after which no significant change was observed. Therefore, 80 repetitions were selected in executing the algorithm. The performance of the model was evaluated by two indicators: 1) degree of sensitivity: the proportion of bad customers that the model classifies into the bad customer group. 2) degree of diagnosis: the proportion of well-off customers that the model classifies into the good customer group. In order to judge customers and group them into low, medium, and high risk, the probability of default within the interval [0, 1] was Fig. 19 Design of the model. This Figure shows the ANFIS model. It has five layers. The input layer. The left nodes are the inputs. Actually, the inputs are more than eight but it is just a sample. The second layer from the left is the inputmfs which are the membership functions of the inputs. The third layer is the rules which ANFIS find them after training. The fourth layer is outputmfs which are the membership functions of the outputs. The fifth and last layer is the output Fig. 20 The fuzzy Inference system of the network. Customer information was processed in Matlab R2015b before entering the model. Next, the 9000 records were entered into the model. Given that the range of the values each variable can take is different, we normalized all data by converting them into numbers between zero and one. After this stage, the training and testing data are separately entered into the software and begin to fit the model. This Fig shows the Fuzzy Inference system that is obtained in process of training the network in Matlab R2015b Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 21 of 27 determined. If the probability of default was greater than one, the customer was considered as high-risk; a probability of less than one meant that the customer was low risk. The optimized threshold limits of the model were assigned using the evaluation criteria. Korsholm (2004) proposed various target functions for optimization. In this study, the optimal threshold limit is equal to a value that maximizes the degree of sensitivity and the degree of diagnosis of the model. Figure 21 shows that the optimal threshold (Y) of the degree of sensitivity and degree of detection is 0.37. Table 4shows the predicted values of the probability for the dependent variable Y based on being above or below the threshold in contrast with the actual values observed in the model data. It shows that the degree of sensitivity and degree of diagnosis of ANFIS in the model data were 87.08% and 91.03%, respectively. To evaluate the performance of the model, we used its predictive power for data outside the model. 54,000 records that were not used in training were entered into the model and their probability was calculated and compared with the values of the table. The results can be seen in Table 5. The degree of sensitivity and diagnosis of the model were 0.84.05% and 89.23%, respectively. Results and discussion We compared the NPL rate predicted by the static models used by the banks with our proposed dynamic model; there was a significant difference (pvalue = 0.006) between the predictions of the two models (Fig. 22). Figure 22 shows the comparison between the prediction of our proposed model and the real NPL. There was little difference between them according to the proposed Fig. 21 The optimal threshold. The performance of the model is evaluated by two indicators: 1) Degree of sensitivity: A proportion of bad customers that the model classifies in a bad customer group. 2) The degree of diagnosis: A proportion of well-off customers that the model classifies in a good customer group. In order to judge customers and group them into low risk, medium risk, and high-risk customers, the probability of default within the interval [0, 1] was determined. If the probability of defaults were on more than one point, the customer was considered with a high risk and less than that means the customer is low risk. In this paper, the optimal threshold limit equals a value that maximizes the degree of sensitivity and the degree of diagnosis of the model. This Fig shows that the optimal threshold (Y) of the degree of sensitivity and degree of detection is 0.37. The blue line is the degree of sensitivity and the red line is the degree of diagnosis Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 22 of 27 model. As an example, the average NPL was predicted as 200 billion Rials: more than the real NPL in 2012. The ability of the new predictors to cluster customers into segments was analyzed and approved by the credit risk workgroup. Table 6shows the dynamism of customers between segments of the bank’s static model and the proposed model in terms of economic sectors. For example, it shows that, because of the sanctions, 17.1% and 5.1% of customers moved from the good segment to the bad (i.e., high-risk) segment, respectively. In the export sector, 0.2% of customers moved from the good segment to the high-risk segment. In the agriculture sector, 8.3% of customers moved from the good segment to the high-risk segment and 4.1% moved from the good segment to the medium-risk segment. In the commercial sector, 12.5% of customers moved from the good segment to the high-risk segment and 6.3% of customers moved from the good segment to the medium-risk segment. In the building sector, 9.7% of customers moved from the good segment to the high-risk segment and 3.4% moved from the good segment to the medium-risk segment. Morality plays an impressive role in defaults. 5% of bad debtors on high-amount loans do not suffer from any economic or other special challenge. They simply would not repay their loans before the bank forecloses. We propose a new dynamic model for assessing the credit risk that outperforms the static models currently used, especially in the face of economic crises. Our model samples the customer database and creates a table containing data on bad customers (those with arrearage of more than 2 months) and reveals the behavioral patterns of these customers. Additionally, the model takes into account some previously neglected factors; by combining them with expert knowledge, it yields results that are closer to reality. Table 4 Predictive power of the model. This table shows the predicted values of the probability for the dependent variable Y based on being above or below the threshold, in contrast with the actual values observed in the model data. It shows that the degree of sensitivity and degree of diagnosis of ANFIS in the model data were 87.08% and 91.03%, respectively Real estimate observation Medium risk customers High risk customers Total P(Y) < =0.37 6061 163 6224 P(Y) > 0.37 597 1099 1696 Total 6658 1262 7920 Correct 6061 1099 7160 Correct percent 91.03% 87.08% 90.04% Incorrect percent 8.96% 12.91% 9.5% Table 5 Performance of the model. To evaluate the performance of the model, we use its predictive power for data outside the model. 54,000 records that were not used in training were entered into the model and their probability was calculated and compared with the values of the table. The degree of sensitivity and diagnosis of the model were 0.84.05% and 89.23%, respectively Real estimate observation Medium risk customers High risk customers Total P(Y) < =0.37 638 58 696 P(Y) > 0.37 77 307 384 Total 715 365 1080 Correct 638 307 945 Correct percent 89.23% 84.05% 87.5% Incorrect percent 10.76% 84.1% 12.5% Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 23 of 27 During the last decade or so, the governing regime in Iran has been under many political and economic international sanctions, which has introduced new credit risk factors. Consequently, traditional models have failed to accurately predict the behaviors of customers. This may lead to major losses on the part of banks. Interestingly, we found that many of the defaults were among backed loans and were securitized by large collaterals. Therefore, the accuracy of the segmentations is crucial for the banks to recognize and deal with vulnerable customers. Traditional static models have proved to work reasonably well in predicting credit risks during periods of stasis, but they fail to do so in the face of economic and political fluctuations. As new factors are introduced during such a period, the model criteria need to be updated, as well. Opting for appropriate factors that work well in all circumstances is difficult (if not impossible), and a model frame that can accommodate the new factors is desirable. The credit risk workgroups can update the criteria for the model in intervals of, say, 3 months, and thus help the model to maintain its dynamism and predictions with optimum accuracy. Subsequently, banks may reserve some money for credit loss, which may help them to survive crises. Fig. 22 The comparison between the static model, dynamic model and real. We compared the NPL rate predicted by the static models used by the banks with our proposed dynamic model and there is a significant difference (pvalue = 0.006) between the predictions of the two models. This Fig shows the comparison between the prediction of our proposed model and the real NPL. There is a little difference between them according to the proposed model. As an example, the average of NPL has been predicted 200billion Rials more than real NPL in 2012. The light blue line is the NPL according to the dynamic model. The dark blue line is the NPL according to the real and the gray line is the NPL base on the static model Table 6 Dynamism between segments. This table shows the dynamism of customers between segments of the bank’s static model and the proposed model in terms of economic sectors. For example, it shows that because of the sanctions 17.1% and 5.1% of the customers have moved from the good segment to the bad (i.e. high-risk) segment, respectively Moradi and Mokhatab Rafiei Financial Innovation (2019) 5:15 Page 24 of 27