Are you a good borrower? Mining interpretable pattern structures in credit scoring
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Kuznecov, Sergej O.; Masyutin, Alexey; Ageev, Aleksandr Article Are you a good borrower? Mining interpretable pattern structures in credit scoring Asian Journal of Economics and Banking (AJEB) Provided in Cooperation with: Ho Chi Minh University of Banking (HUB), Ho Chi Minh City Suggested Citation: Kuznecov, Sergej O.; Masyutin, Alexey; Ageev, Aleksandr (2020) : Are you a good borrower? Mining interpretable pattern structures in credit scoring, Asian Journal of Economics and Banking (AJEB), ISSN 2633-7991, Emerald, Leeds, Vol. 4, Iss. 3, pp. 67-85, https://doi.org/10.1108/AJEB-08-2020-0056 This Version is available at: https://hdl.handle.net/10419/334034 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/
Are you a good borrower? Mining interpretable pattern structures in credit scoring Sergei O. Kuznetsov National Research University Higher School of Economics, Moscow, Russian Federation Alexey Masyutin Sberbank, Moscow, Russia and National Research University Higher School of Economics, Moscow, Russia, and Aleksandr Ageev Sberbank, Moscow, Russia Abstract Purpose –The purpose of this study is to show that closure-based classification and regression models provide both high accuracy and interpretability. Design/methodology/approach –Pattern structures allow one to approach the knowledge extraction problem in case of partially ordered descriptions. They provide a way to apply techniques based on closed descriptions to non-binary data. To provide scalability of the approach, the author introduced a lazy (querybased) classification algorithm. Findings –The experiments support the hypothesis that closure-based classification and regression allow one to both achieve higher accuracy in scoring models as compared to results obtained with classical banking models and retain interpretability of model results, whereas black-box methods grant better accuracy for the cost of losing interpretability. Originality/value –This is an original research showing the advantage of closure-based classification and regression models in the banking sphere. Keywords Credit scoring, Closed descriptions, Lazy classification, Pattern structures Paper type Research paper 1. Introduction Banks and credit institutions face classification problem each time they consider a loan application. A bank aims to have a tool to discriminate between solvent and potentially delinquent borrowers, i.e. the tool to predict whether the applicant is going to meet his or her obligations or not. Before 1950s, such decision-making process was expert-driven and © Sergei O. Kuznetsov, Alexey Masyutin and Aleksandr Ageev. Published in Asian Journal of Economics and Banking. Published by Emerald Publishing Limited. This article is published under the Creative Commons Attribution (CC BY 4.0) licence. Anyone may reproduce, distribute, translate and create derivative works of this article (for both commercial and non-commercial purposes), subject to full attribution to the original publication and authors. The full terms of this licence maybe seen at http://creativecommons.org/licences/by/4.0/legalcode JEL classification –C10, C13, C14, C15 MSC2020 classification –68T05, 68T09, 68T37 Mining interpretable pattern structures 67 Received 9 September 2020 Revised 11 September 2020 Accepted 11 September 2020 Asian Journal of Economics and Banking Vol. 4 No. 3, 2020 pp. 67-85 Emerald Publishing Limited 2615-9821 DOI 10.1108/AJEB-08-2020-0056 The current issue and full text archive of this journal is available on Emerald Insight at: https://www.emerald.com/insight/2615-9821.htm Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
involved no explicit statistical modeling (Thomas et al.,2002). The decision whether to grant a loan or not was made upon an interview and information about spouse and close relatives. From the 1960s, banks have started to adopt statistical scoring systems that were trained on data sets of applicants, consisting of their socio-demographic factors and loan application features (Thomas et al.,2002;Siddiqi, 2005). Classification algorithms can either produce so-called “black box”models with limited interpretability of model result, or, on the contrary, provide interpretable results and transparent model structure (Baesens et al., 2003). As a rule, black-box models have superior accuracy and less sophisticated models may provide less accurate predictions. This is also shown in previous work as soon as credit scoring problem has been approached with various statistical and machine learning techniques (Yap et al.,2011;Lee et al.,2006;Nanni and Lumini, 2009). However, the key feature of banking risk management practice is that, regardless of the model accuracy, it should not be a black box. Regulators require that banks are able to provide reject reasons for borrowers and also when central banks examine the bank models they have to understand economic intuition behind them to prove the models are going to show expected and stable performance (bis.org, 2020;law.cornell, 2020). That is why methods such as neural networks and support vector machines (SVM) classifiers did not earn much trust within banking community. The dividing hyperplane in an artificial high-dimensional space (dependent on the chosen kernel) cannot be easily interpreted to claim the reject reason for the client (Ghodselahi, 2011). As far as neural networks are concerned, they also do not provide the user with a set of reasons why a particular loan application has been approved or rejected. In other words, these algorithms do not provide a decision-maker with knowledge. The predicted class is produced, but no intuition is retrieved from data. This paper introduces data analysis algorithms that have accuracy superior to simple algorithms widely adopted within the banks (such as logisitic regression, decision trees and scorecards) and still maintain the property of interpretability in sense that they provide a decision-maker with a set of rules applicable to assess the borrower. 2. Lattices of closed descriptions in classification problem Methods such as generating association rules, emerging patterns and decision trees provide the user with easily interpretable rules which can be applied to the loan application. Algorithms based on formal concept analysis (FCA) also belong to this group of methods, as they use clearly defined concepts to classify objects (Ganter and Wille, 1999;Kuznetsov, 1999;Meddouri et al., 2014). The intent of a concept can be seen as a set of rules supported by the extent of the concept. However, for non-binary data the computation of the concepts and their relations can be very time-consuming. In case of credit scoring we deal with numerical data, as soon as categorical variables can be transformed into a set of dummy variables. Lazy classification (query-based) (Aha, 1997) seems to be appropriate in this case, as it provides a decision-maker with a set of explicit rules for the loan application and can be easily parallelized. 2.1 Main definitions Let Gbe a set (of objects), let Dbe a set of all possible object descriptions equipped with a “more general than”or subsumption partial order v, which is a very natural requirement. For many description types this partial order induces an intersection operation, which is idempotent, commutative and associative (i.e. induces a semilattice on descriptions): for binary attributes this is just a set-theoretic intersection, for multisets this is component-wise min or max, etc. For sequences and graphs this is intersection on sets of graphs and sequences based maximal common subsequences and subgraphs (Kuznetsov, 1999;Kaytoue et al., 2015). So, in what AJEB 4,3 68 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
follows we will assume that the set of descriptions Dis equipped with such an intersection u, such that given c,d[Done has cvd$cud=c. So, let (D, u) be a meet-semi-lattice of all possible object descriptions called patterns and let d :G!D be a mapping taking each object to its description. Then (G, D, d ), where D¼D;u ðÞ , is called a pattern structure (Ganter and Kuznetsov, 2001). Operation uis also called a similarity operation. A pattern structure G;D; d ðÞgives rise to the following derivation operators (·) ^ : A¼u g2A d g ðÞ for A2G; d¼fg2Gjdv d g ðÞ gfor d2D;u ðÞ : Here, A ^ means similarity (as intersection) of all objects from set A, and d ^ means the set of all objects with descriptions subsuming (i.e. more specific or equal to) d. The pairs (A,d) satisfying A(G,d[D,A ^ =d, and A=d ^ are called pattern concepts of G;D; d ðÞ with pattern extent A and pattern intent d. Operator (·) ^^ is a closure operator on patterns, as it is idempotent, extensive and monotone (Ganter and Kuznetsov, 2001). Now consider a standard machine learning setting. Suppose we have a set of positive examples G þ and a set of negative examples G - w.r.t. a target attribute, G þ \G – =1. The objects from the set G t =G\(G þ |G – ) are called undetermined examples. A pattern c[Dis called a -weak positive classifier iff the size of the set of negative examples it covers is no more than a -fraction of the size of the covered set of positive examples: jc\Gj jcj # a and 9AGþ:cvA(1) A pattern h[Dis called an a -weak positive hypothesis iff: jh\Gj jhj # a and 9AGþ:h¼A(2) In case of credit scoring we work with pattern structures where descriptions are tuples of intervals of many-valued attributes. Instead of binarizing (scaling) data, one can directly work with many-valued attributes by applying interval pattern structure. For two intervals [a 1 ,b 1 ] and [a 2 ,b 2 ], with a 1 ,b 1 ,a 2 ,b 2 [Rthe meet operation (or similarity operator)isdefined as follows (Kaytoue et al.,2011): a1;b1 ½ ua2;b2 ½ ¼min a1;a2 ðÞ ;max b1;b2 ðÞ :(3) This definition may seem counterintuitive at the first glance, as intersection of two intervals gives a larger interval. The explanation is that the intersection gives actually less information, as the attribute values are allowed to vary in a larger interval. To make these main definitions clear, let us provide an example and apply the meet operator (3) to a “toy”data set provided in Table 1. Table 1. Toy data set for example 1 Ab g 1 1 1.5 g 2 10 g 3 0.5 1 Mining interpretable pattern structures 69 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
Example 1: G¼fg1;g2;g3g; D¼f a1;a2 ½ ;b1;b2 ½ ja1;a2;b1;b22Rg; d g1 ðÞ ¼1;1 ½ ;1:5;1:5 ½ðÞ ; d g2 ðÞ ¼1;1 ½ ;0;0 ½ðÞ ; d g3 ðÞ ¼0:5;0:5 ½ ;1;1 ½ðÞ ; d¼ d g1 ðÞ u d g2 ðÞ ¼1;1 ½ ;0;1:5 ½ðÞ ; dv d g3 ðÞ , thus d¼fg1;g2;g3g¼G. 2.2 Lazy classification with pattern structures To efficiently classify test objects one can employ the lazy learning approach (Veloso et al.,2006; Veloso and Wagner, 2011), where one does not need to generate all possible good classifiers in advance. Having a similarity operation on object descriptions, one can compute similarity of the test object with the objects from the training set. Consider a pattern structure (G(D,u), d )and suppose that we have a training set given by disjoint sets G þ ,G – (Gof positive and negative examples w.r.t. a target attribute, and a set of unclassified test objects G t . Then the value of the target attribute of a test object g n [G t appears in the closure of the intersection of description of g n with descriptions of every object g[G. If for some object gthe closure contains the target attribute, then g n is classified positively, otherwise the test object is classified negatively. More formally, this can be described as the following simple two-stage procedure: (1) For every g[Gcompute ( d (g n )u d (g)) ^ , i.e. select all objects from Gwhose descriptions contain ( d (g n )u d (g)) ^ . This takes O(jGj(p(u)þjGjp(v))) time; and (2) If for some g[Gall objects from ( d (g n )u d (g)) ^ have the target attribute, classify g n positively, otherwise negatively. This takes O(jGj 2 ) time for looking for the target attribute in object descriptions in at most jGjfamilies of object subsets, each subset consisting of at most jGjobjects. Lazy classification is thus reduced to computing ( d (g n )u d (g)) ^ and testing the target attribute in all objects of this set. This computation is easily parallelizable: one partitions the data set G in G=G 1 |...|G k , where k is the number of processors, computes the set of objects ( d (g n )u d (g)) ^ in each G i , tests the target attribute for all objects in the union of these sets over i. 2.3 Query-based classification algorithm In credit scoring, however, the original lazy classification setting may become inappropriate (Masyutin and Kuznetsov, 2016,Masyutin et al., 2015). The reason is that the data is typically numerical, features can have arbitrary distributions and take wide range of values. At the same time categorical variables and dummies can occur. With relatively large number of attributes (over 100) it produces high-dimensional space of continuous variables. So, the meet operator (3) gives a very specific result, i.e. for almost every g[Gonly gand g n have the description d (g n )u d (g). This happens owing to the fact that numerical variables, ratios especially, can have unique values for every object. This results in that for test object g n the number of positive and negative classifiers is close to the number of examples in G þ ,G - , respectively. Thus, it seems reasonable to seek the concepts with larger extents and with not too specific intent. At the same time, we would like to preserve the advantages of lazy AJEB 4,3 70 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
classification, as we do not need to compute full concept lattice and one can take advantage of parallelization. The query-based classification algorithm is our modification. Idea behind proposed algorithm is to check whether it is positive or negative class that test object is more similar to. The first step is a mining step, when we extract a -weak hypotheses from the data. The procedure is carried out for G þ and G - separately. Random subsample of examples is extracted and their descriptions are intersected. The resulting description d= d (g 1 )u...u d (g s ) is checked whether it is a -weak or not. If hypothesis is a -weak then it is added to a set of hypotheses to be used for classification later. The size of subsample sis an algorithm’s hyperparameter, and it is tuned via grid search. The number of times (i.e. number of iterations) we randomly select a subsample is the second hyperparameter, which is also tuned through grid search. As we mentioned, the greater the subsample size, the more it is likely that ( d (g 1 )u...u d (g s )) ^ contains an example of the opposite class. It is a threshold hyperparameter that controls this issue. The second step is an updating step, when the test object description d (g n ) is intersected with each a -weak hypothesis. If resulting description is also a -weak then it is considered to be a -weak classifier, i.e. the rule relevant for this particular test object g n . The third and final step is a voting step, when all a -weak classifiers vote to produce prediction for a test object g n . 2.4 Voting schemes The final classification for a test object is based on the voting of a -weak classifiers. In the most general case voting scheme Fis a mapping: Fg n;cþ 1;...;cþ p;c 1;...;c n !1;1;1 ½ where g n is the test object with unknown class, cþ iis a positive a -weak classifier 8i¼1;p and c jis a negative a -weak classifier 8j¼1;n,1 is the label for the negative class, and 1 is the label for the positive class (i.e. defaulters). In other words, Fis an aggregating rule that takes classifiers to classification labels (empty label is allowed). If the label is empty it is said that the algorithm abstains from classification. It can happen when there is no a -weak classifier found for the test object, which can be owing to poor algorithm tuning (e.g. inappropriately low a threshold or small number of iterations). There may be different approaches to build up aggregating rules. The voting scheme is built upon weighting function v (·), aggregation operator A(·) and comparing operator . F v ðÞ ;A ðÞ ; ¼ ¼Ap i¼1 v cþ i An j¼1 v c j ðÞ½ To configure a new weighting scheme it is sufficient to define the operators and the weighting function. In this paper, the best weighting scheme (in terms of accuracy) is based on the relative number of positive versus negative a -weak classifiers, weighted by their confidence: A ðÞ¼X ðÞ ; v c ðÞ¼1jc\G=þj jcj; ab¼a b: Mining interpretable pattern structures 71 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
However, there are many different ways to build voting schemes, and a number of them can be found in Github code repository [1]. One can think of margin abas a measure for discrimination between two classes and consider, e.g. the decision boundary based on receiver operating characteristic analysis. As soon as decision boundary is defined (i.e. when ab>xthen1else –1), the voting scheme produces the predicted label. 3. Experiments with open data In this paper we use open data sets for credit scoring. To compare our algorithm against benchmarks we keep some portion of data as validation sample, which is not used when training the model, and then we calculate performance metrics (Gini coefficient) for that sample. Where applicable we use grid search for hyperparameters to tune benchmark performance. The results are summarized in Table 2. 3.1 Lending club loan data Lending Club is a large US peer-to-peer online credit platform. It has accumulated hundreds of thousands of payment profiles on loans being issued since 2007 till nowadays [2]. The data has been used widely as a benchmark when testing machine learning models (kaggle. com, 2020;triamus.github.io, 2020). We extracted 25,000 observations with nine features. They represent client credit history, loan term, rate, borrower’s ownership information, income, employment length, etc. The target attribute is loan status which indicates whether the payments were made on time or not. 3.2 Credit Scoring Catalonia data This data set is designed for studying purposes but, nevertheless, it is still applicable for benchmark analysis. The data consists of 4,456 observations and 13 numeric and categorical features with single target attribute [3]. Categorical variables were one-hot-encoded before applying algorithms. The features are similar to the ones in previous data sets. 3.3 Give me some credit data “Give Me Some Credit”data set is taken from Kaggle contest held in 2012 [4]. The data has a binary target variable (class label) whether the borrower defaulted or not. We develop a scorecard and examine its accuracy via out-of-sample validation with provided target variable. The data set we used consists of 25,000 observations with ten numeric features. They describe client’s status and previous credit experience and contain information on total balance on credit cards, monthly income, debt-to-income ratio, number of dependents (children, spouse), current revolving utilization limit, etc. Table 2. Experiments results (Gini coefficients) Lending club loan data Credit scoring Catalonia Give me some credit Scorecard 0.5292 0.6487 0.7034 Random forest 0.5523 0.6979 0.7249 Decision tree 0.4374 0.5781 0.6071 kNN 0.3913 0.3962 0.2267 XGBoost 0.5654 0.7155 0.7304 QBCA 0.5576 0.7043 0.7281 AJEB 4,3 72 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
3.4 Benchmarking: scorecards and black-box methods We compare our algorithm to both classical algorithms adopted in banks and ML algorithms. As far as, classical algorithms are concerned, we use scorecards (Siddiqi, 2005) which are, in effect, logistic regressions run on transformed features. The features are transformed according to weight-of-evidence transformation (WOE) (stats.stackexchange. com, 2020;documentation.statsoft.com, 2020). The WOE-transformation was controlled for maximum number of observations in the final nodes of one-factor trees to escape overfitting at the starting point. The example of variable binning is provided in Figure 1. As soon as we have transformed the factors, the individual Gini coefficients were calculated to assess predictive power of features. We excluded variables that have shown dramatic pairwise correlation and Gini drop on validation sample, so the rest were fed to logistic regression and the final model was fitted. The pipeline can be found in Bitbucket code repository [5]. Finally, we applied the Xgboost, Random Forest, Decision Tree and kNN algorithms to the same data to estimate the classification quality achievable with the “black-box”models as well. As we can see, Xgboost performs better in terms of Gini. However, its results are not interpretable, and the best explanation for classification that we one can extract from the trained Xgboost model is the estimated feature importance, based on the number of times splits in trees that were done with each feature. 3.5 Random sampling alteration In subsection 3.5, we study an alternative approach to generate a -weak hypotheses, which described in the previous section. Modification impacts the way we extract random subsamples from G þ or G - . In previous setting subsample of fixed size sis extracted. Thus, such classifiers have some fixed predictive power, and therefore, their effectiveness can be lower for some test objects and higher for others. To solve this problem, it is proposed to vary subsample size while the algorithm is running, and extract subsamples of different sizes in each iteration. In this paper, two ways of specifying the size of subsample in each iteration were considered: (1) Random choice of a number from the uniform distribution from 1 to N, where Nis the size of the subsample. (2) The choice of the number mfrom 1 to Nwith probability proportional to the number of combinations N m . Figure 1. One-factor trees for WOE-transformation of revolving utilization of unsecured lines Mining interpretable pattern structures 73 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
It is worth noting that the second method is equivalent to uniform sampling from the power set of the context. Thus, the second method provides convergence to classic lazy classification, as it considers descriptions of all possible combinations of objects (after a large number of iterations). Nevertheless, even with a small training sample size N, convergence will never be achieved, as the number of all subsets 2 N is too large. In practice, given large values of the subsample size m, the description of d (g n )u d (g m ) turns out to be too “general”and the proportion of objects of the opposite class in the set ( d (g 1 )u...u d (g k )u d (g m )) ^ exceeds the given threshold a in each iteration. That is, for any value of the threshold a ,itmakes sense to extract such subsamples that its size does not exceed a certain maximum value of M. Thus, the two methods described above for setting the subsample size in each iteration can be slightly modified as follows: (1) Random choice of a number from the uniform distribution from 1 to M, where Mis the number calculated experimentally, depending on the data array used. (2) Select a number mfrom 1 to Mwith a probability proportional to the number of combinations N m . Note that in the second method, probabilities of sampling a subsample of size kand kþ1 are related as follows: N kþ1 N k ¼N!k!Nk ðÞ ! kþ1 ðÞ !Nk1 ðÞ !N!¼Nk kþ1: It means that the sample of size kþ1 will be extracted approximately Nk kþ1times more frequently than the sample size k. It follows that given a large amount of data and a fixed number of iterations, small sample sizes is not used in the classification. The most probable size of the subsamples equals the value min M;N 2 ! . As a result of experiments with Kaggle data set, it was found that the optimal maximal subsample size is M= 20. 3.6 Visualization and interpretability of hypotheses There is no unified definition for model interpretability in machine learning. However, there are some general requirements which are common among researchers. Some authors focus on the rule induction criterion (Feraud and Clerot, 2002), i.e. model is interpretable if it provides user with a set of simple rules to make decision. Also, the causality is emphasized in (Miller, 2017) by stating that interpretability is the degree to which a human can understand the cause of a decision. Further, one distinguishes between global and local interpretability in (Kim et al.,2016). Global interpretability shows which features have major impact on prediction and also impact direction. Local interpretability answers the question why this particular test object received that particular prediction. In this paper, we try to combine previously mentioned criteria and, to be more precise, we outline three properties of interpretability: AJEB 4,3 74 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
4.3 Data and experiments The data we used for the calculations represent verified borrower income information. We predict the income level using all other borrower features. Having an income prediction model one can apply it to the borrowers when there is no opportunity to verify income (e.g. in online lending). In case when the predicted value is dramatically lower than the value provided in a loan application form one can expect the borrower is trying to embellish his or her financial standing. Other use cases for income modeling include client base segmentation when different products are offered to customers based on their expected income level. All three data sets Lending Club, Credit Scoring Catalonia and Give Me Some Credit contain income column which is a new target variable for QBRA. The data was randomly divided into two parts with 70% of observations in one part and 30% in the other. The bigger part was used for training benchmarks and QBRA and 30% was used as a test set to evaluate predictions and their accuracy summarized in Table 4. The accuracy of predictions were evaluated in terms of mean absolute percentage deviation (MAPE) [6]: MAPE ¼100% NX N i¼1 yi^ yi yi where y i is a target attribute (recovery rate) for i-th client in the test set and ^ yiis prediction. The accuracy of the algorithm was compared to benchmarks represented by random forests, as soon as their predictions are based on combination of simple rules, too. The proposed query-based regression algorithm showed comparable quality in the greater number of runs and in certain parameters area it outperformed random forests. 5. Conclusion In this paper, we propose query-based classification approach to credit scoring problem. Model interpretability versus model accuracy is discussed and it is emphasized that model transparency is an important requirement in banking risk management. We define properties of interpretability and demonstrate that proposed algorithms satisfy them. We also address the continuous target variable prediction with query-based regression algorithm. We argue that proposed algorithms allow user to extract interpretable rules for prediction and at the same time they outperform wide-spread methods in banking (e.g. scorecards, decision trees), however, black box models may have superior accuracy at the cost of interpretability. Introduced algorithms are applied to open data on retail loan applicants and benchmark analysis is performed. Gini coefficient is used as a model quality metric. We performed grid search by running algorithms with different hyperparameter values. Then, we describe a query-based regression algorithm and apply it to income prediction problem. The proposed algorithm shows comparable quality with benchmarks and in certain hyperparameters area it outperforms random forests. Mean absolute percentage error is used as a model quality metrics. Table 4. Experiments results comparison (MAPE) Lending club loan data Credit scoring Catalonia Give me some credit Random Forest 44.36 41.65 35.66 Decision Tree 45.36 43.33 38.17 kNN 49.22 44.89 42.81 XGBoost 42.84 40.65 35.88 QBRA 38.53 38.94 35.64 Mining interpretable pattern structures 81 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
As an area for further research, one can consider and compare accuracy when other voting schemes are used. It is expected that taking into account a -weak classifiers specificity one can improve overall accuracy of the classification algorithm or, alternatively, one will reach the same accuracy given less number of iterations, which can improve time required for calculations. As for regression algorithm, one can consider keeping the density function h not only for target attribute in regressors, but also for explanatory attributes as well. It can be expected, that if a -weak regressors are mined based on some additional properties of features distribution, then they will be more relevant for test objects and will produce more accurate predictions for target attribute. Acknowledgment The work of Sergei O. Kuznetsov presented in Sections 1-2 was carried out at St Petersburg Department of Steklov Mathematical Institute of Russian Academy of Science and supported by the Russian Science Foundation grant no. 17-11-01276. Notes 1. Available at: https://github.com/veegaaa/Interval-Pattern-Structures 2. Available at: www.lendingclub.com/info/download-data.action 3. Available at: https://github.com/gastonstat/CreditScoring 4. Available at: www.kaggle.com/c/GiveMeSomeCredit 5. Available at: https://bitbucket.org/Mosyamac/scorecards-in-r 6. Give Me Some Credit data set contains a significant number of observations with income close to zero, therefore, for this case we used MAE divided by sample average income value instead of classical MAPE. 7. Available at: https://github.com/veegaaa/Interval-Pattern-Structures References Aha, D.W. (Ed.) (1997),Lazy Learning, Kluwer Academic Publishers, Norwell, MA. Baesens, B., Van Gestel, T., Viaene, S., Stepanova, M. and Suykens, J. (2003), “Benchmarking state-of- the-art classification algorithms for credit scoring”,Journal of the Operational Research Society, Vol. 54 No. 6, pp. 627-635. bis.org (2020), available at: www.bis.org/publ/bcbsca.htm documentation.statsoft.com (2020), available at: http://documentation.statsoft.com/STATISTICAHelp. aspx?path=WeightofEvidence/WeightofEvidenceWoEIntroductoryOverview Feraud, R. and Clerot, F. (2002), “A methodology to explain neural network classification”,Neural Networks: the Official Journal of the International Neural Network Society, Vol. 15, pp. 237-246, doi: 10.1016/S0893-6080(01)00127-7. Ganter, B. and Kuznetsov, S. (2001), “Pattern structures and their projections”, in Delugach, H. and Stumme, G. (Eds), “Conceptual structures: broadening the base”, vol. 2120 of Lecture Notes in Computer Science, Springer, Berlin/Heidelberg, pp. 129-142. Ganter, B. and Wille, R. (1999), Formal Concept Analysis: Mathematical Foundations, Springer, Berlin. Ghodselahi, A. (2011), “A hybrid support vector machine ensemble model for credit scoring”, International Journal of Computer Applications (0975-8887), Vol. 17 No. 5. kaggle.com (2020), available at: www.kaggle.com/janiobachmann/lending-club-risk-analysis-and-metrics AJEB 4,3 82 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
Kaytoue, M., Codocedo, V., Buzmakov, A., Baixeries, J. and Kuznetsov, S.O. (2015), “Amedeo Napoli: pattern structures and concept lattices for data mining and knowledge processing”, ECML/ PKDD (3), pp. 227-231. tKaytoue, M., Kuznetsov, S.O., Napoli, A. and Duplessis, S. (2011), “Mining gene expression data with pattern structures in formal concept analysis”,Information Sciences, Vol. 181 No. 10, pp. 1989-2001. Kim, B., Khanna, R. and Koyejo, O.O. (2016), “Examples are not enough, learn to criticize! Criticism for interpretability”, Advances in Neural Information Processing Systems. Kuznetsov, S.O. (1999), “Learning of simple conceptual graphs from positive and negative examples”, LNCS (LNAI). 1704, pp. 384-391. law.cornell (2020), available at: www.law.cornell.edu/uscode/text/15/1691 Lee, T.S., Chiu, C.-C., Chou, Y.-C. and Lu, C.-J. (2006), “Mining the customer credit using classification and regression tree and multivariate adaptive regression splines”,Computational Statistics and Data Analysis, Vol. 50 No. 4, pp. 1113-1130. Masyutin, A. and Kuznetsov, S.O. (2016), Continuous Target Variable Prediction with Augmented Interval Pattern Structures: A Lazy Algorithm, CLA, pp. 273-284. Masyutin, A., Kashnitsky, Y. and Kuznetsov, S.O. (2015), Lazy Classication with Interval Pattern Structures: Application to Credit Scoring, FCA4AI@IJCAI, pp. 43-54. Meddouri, N., Khoufi, H. and Maddouri, M. (2014), “Parallel learning and classification for rules based on formal concepts”,Procedia Computer Science, Vol. 35, pp. 358-367. Miller, T. (2017), “Explanation in artificial intelligence: insights from the social sciences”, arXiv Preprint, arXiv:1706.07269. Nanni, L. and Lumini, A. (2009), “An experimental comparison of ensemble of classifiers for bankruptcy prediction and credit scoring”,Expert Systems with Applications, Vol. 36 No. 2, pp. 3028-3033. SAS Institute Inc (2012), Developing Credit Scorecards Using Credit Scoring for SAS Enterprise Miner 12.1, SAS Institute Inc, Cary, NC. Siddiqi, N. (2005), Credit Risk Scorecards: Developing and Implementing Intelligent Credit Scoring, Wiley, ISBN: 978-0-471-75451-0. stats.stackexchange.com (2020), available at: https://stats.stackexchange.com/questions/189568/ replacing-variables-by-woe-weight-of-evidence-in-logistic-regression Thomas, L., Edelman, D. and Crook, J. (2002), “Credit scoring and its applications”,Monographs on Mathematical Modeling and Computation, SIAM, Pliladelphia, pp. 107-117. triamus.github.io (2020), available at: https://triamus.github.io/project/lending-club-loan-data-in-r/ #defining-default Veloso, A. and Wagner, M. Jr. (2011), Demand-Driven Associative Classification, Springer. Veloso, A., Wagner, M. Jr and Zaki, M.J. (2006), “Lazy associative classification”, ICDM, IEEE Computer Society, pp. 645-654. Yap, B.W., Ong, S.H. and Husain, N.H.M. (2011), “Using data mining to improve assessment of credit worthiness via credit scoring models”,Expert Systems with Applications, Vol. 38 No. 10, pp. 13274-13283. Zhou, L. and Wang, H. (2012), “Loan default prediction on large imbalanced data using random forests”. Appendix Query-based algorithms described above have been implemented in Python and tested on three credit scoring datasets. The source code is available in the public Github repository [7]. It allows one to reproduce results derived in this paper as well as perform experiments with any custom dataset. Mining interpretable pattern structures 83 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
In the repository we provide separate Jupyter-notebooks for every dataset and algorithm considered in this paper. Those notebooks are fully executable so any user is able to run all the cells sequentially. We also provide this section with hyperparameters grid search for classification and regression versions of algorithms. In addition, we present the set of hyperparameters that delivers the best model quality metric (Gini for classification and MAPE for regression). We also provide the pseudo-code of query-based classification and regression algorithms so the reader grasps the idea behind them. Classification algorithm Algorithm 1 Mining step (case of positive a - weak hypotheses) Input: {G þ ,G – }–positive and negative numerical contexts. Output: H þ and H – are lists for positive and negative a -weak hypotheses. 1: for num.iter times do 2: {g 1 ,...,g s } is a random sample from G þ of size sub.smpl 3: d¼ d g1 ðÞ u...u d gs ðÞ 4: d ¼fg2djg2Gg 5: if jd j# a jdjthen 6: Add dto H þ Algorithm 2 Classification and voting step Input: {G þ ,G – }–positive and negative numerical contexts. g t –test object. H þ and H – are lists for positive and negative a -weak hypotheses. A(·),w(·),–voting scheme. Output: margin(g t )–measure that is produced by the voting rule. 1: P¼Ap iwh þ iu d gt ðÞ 2: N¼An jwh ju d gt ðÞ 3: margin gt ðÞ ¼PN Regression algorithm Algorithm 3 Mining hypotheses) Input: –numerical context. Output: His a list of a -weak hypotheses. 1: for num.iter times do 2: {g 1 ,...,g s } is a random sample from Gof size sub.smpl 3: dx¼ d xg1 ðÞ u...u d xgs ðÞ 4: A¼d x 5: if 1jfg2Ajdmin y# d yg ðÞ #dmax ygj jAj# a then 6: d¼dx;dy 7: Add dto H Algorithm 4 Regression step Input: G–numerical context. g t –test object. His a list of a -weak hypotheses. Output: c d yðgtÞ–predicted target value. 1:for hypothesis din Hdo 2: dx;t¼dxu d xgt ðÞ 3: wa¼1jfg2d xjdmin y# d yg ðÞ #dmax ygj jd x;tj 4: wp¼1 s hy ðÞ AJEB 4,3 84 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025
5: wh¼wawp 6: add w h to W 7: add X g2d x d yg ðÞ whto S 8: c d yðgtÞ¼ X s2S s X w2W w All hyperparameters were tuned through the grid search. subsample size took values from 1 to 20, number of iterations: 10,000, 50,000, 100,000, 200,000, 300,000, 400,000. Alpha threshold –from 0 to 1 with 0.01 step. The best combinations of hyperparameters are shown in Tables A1 to A3. Corresponding author Sergei O. Kuznetsov can be contacted at: [email protected] For instructions on how to order reprints of this article, please visit our website: www.emeraldgrouppublishing.com/licensing/reprints.htm Or contact us for further details: [email protected] Table A1. Best hyperparameters sets in classification problem (positive hypotheses) Num.iter Subs.size a Give me some credit 400,000 3 0.4 Lending club loan data 300,000 2 0.9 Credit scoring Catalonia 200,000 2 0.12 Table A2. Best hyperparameters sets in classification problem (negative hypotheses) Num.iter Subs.size a Give me some credit 400,000 5 0.9 Lending club loan data 300,000 5 0.95 Credit scoring Catalonia 200,000 3 0.57 Table A3. The best hyperparameters sets in regression problem Num.iter Subs.size a Give me some credit 200,000 2 0.33 Lending club loan data 200,000 2 0.76 Credit scoring Catalonia 100,000 2 0.41 Mining interpretable pattern structures 85 Downloaded from http://www.emerald.com/ajeb/article-pdf/4/3/67/108566/ajeb-08-2020-0056.pdf by ZBW German National Library of Economics user on 16 December 2025