Full text
i Fraud- and anomaly detection in healthcare – an unsupervised machine learning approach Lennart Dangers Internship report as partial requirement for obtaining the Master’s degree in Data Science and Advanced Analytics Mestrado em Data Science and Advanced Analytics Master Program in Data Science and Advanced Analytics DSAA
1 NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa FRAUD- AND ANOMALY DETECTION IN HEALTHCARE – AN UNSUPERVISED MACHINE LEARNING APPROACH by Lennart Dangers Internship report presented as partial requirement for obtaining the Master’s degree in Data Science and Advanced Analytics Advisor: Nuno Miguel da Conceição António September 2021
2 ABSTRACT Fraud and abuse in healthcare are critical and cause significant damage. However, the auditing of healthcare encounters is cumbersome, and the detection of fraud and abuse is challenging and binds capacity. Data-driven fraud and anomaly detection models can help to overcome these issues. This work proposes several unsupervised learning methods to understand patterns and detect abnormal healthcare encounters which might be fraudulent or abusive. The ensemble of models is split into subprocesses and applied on a healthcare data set belonging to Future Healthcare group, a Portuguese group acting in health insurance. One major part of the ensemble is the implementation of the Isolation Forest algorithm, which achieves good results in precision and recall and detect new potential fraudulent abnormal behaviour. Due to unlabelled data and the application of unsupervised learning methods, the proposed model detects new fraudulent patterns instead of learning from existing patterns. Besides the model to predict whether new incoming medical encounters are fraudulent or abusive, this work illustrates a visual method to detect suspicious networks among medical providers. In addition, this work contains an approach to predict whether a customer will cancel the insurance based on anomalous behaviour. This internship report aims to contribute to science and be public, even though some parts could not be explained in detail due to confidentiality. KEYWORDS Fraud detection; Anomaly detection; Healthcare data; Unsupervised learning; Clustering; Machine learning; Isolation forest; Network analysis; Cancellation Prediction
3 ACKNOWLEDGEMENTS This work is a practical project related to an academic internship as a partial requirement for obtaining a Master’s degree in Data Science and Advanced Analytics. I would like to thank the Future Healthcare Group for giving me the opportunity, especially Ana Pina, for all the support during and after the project. I would also like to thank my thesis advisor Nuno António for his great help and effort before and during the project phase. Finally, I would like to thank my family and friends, without whom I would not be at this point. Thank you!
4 INDEX 1. INTRODUCTION ........................................................................................................ 8 2. LITERATURE REVIEW .............................................................................................. 10 2.1. MACHINE LEARNING ....................................................................................... 10 2.1.1. UNSUPERVISED LEARNING VS SUPERVISED LEARNING ............................. 10 2.1.2. MODEL EVALUATION AND METRICS ......................................................... 10 2.1.3. MODEL EXPLAINABILITY ........................................................................... 12 2.2. ALGORITHMS .................................................................................................. 14 2.2.1. ISOLATION FOREST ................................................................................... 14 2.2.2. DBSCAN .................................................................................................... 15 2.2.3. K-MEANS .................................................................................................. 16 2.2.4. XGBOOST CLASSIFIER ............................................................................... 17 2.3. RELATED WORK ............................................................................................... 17 3. METHODOLOGY ..................................................................................................... 22 3.1. TOOLS AND TECHNOLOGY ............................................................................... 22 3.2. BUSINESS UNDERSTANDING............................................................................ 22 3.2.1. BACKGROUND AND CURRENT SITUATION ................................................ 23 3.2.2. BUSINESS AND DATA MINING GOAL ......................................................... 25 3.3. DATA UNDERSTANDING .................................................................................. 26 3.3.1. DATA COLLECTION AND DESCRIPTION ...................................................... 26 3.3.2. DATA QUALITY.......................................................................................... 27 3.4. DATA PREPARATION........................................................................................ 27 3.4.1. DATA CLEANING AND FILTERING .............................................................. 27 3.4.2. FEATURE ENGINEERING AND SELECTION .................................................. 28 3.5. MODELLING .................................................................................................... 29 4. RESULTS AND DISCUSSION ..................................................................................... 36 4.1. CLUSTERING .................................................................................................... 36 4.2. ANOMALY DETECTION .................................................................................... 39 4.3. CANCELLATION PREDICTION BASED ON ANOMALOUS BEHAVIOR ................... 45 5. CONCLUSIONS........................................................................................................ 48 6. LIMITATIONS AND RECOMMENDATIONS FOR FUTURE WORKS .............................. 49 7. BIBLIOGRAPHY ....................................................................................................... 50 8. APPENDIX .............................................................................................................. 53
5 LIST OF FIGURES Figure 1: Confusion matrix ....................................................................................................11 Figure 2: Comparison between PR-Curve (left) and ROC-Curve (right) from (Géron & Safari, 2019) ............................................................................................................................12 Figure 3: Example of feature importance plot with SHAP ......................................................13 Figure 4: Example of a partial dependency plot with SHAP ...................................................14 Figure 5: Iteration overview of K-Means algorithm from (Bishop, 2006) ...............................16 Figure 6: Subsets of the entire population. Fraud and abuse as a subset of anomalies and the entire population ..........................................................................................................23 Figure 7: Data collection and preparation at a glance ...........................................................26 Figure 8: Time filtering for each of the main models .............................................................27 Figure 9: Clustering process overview ...................................................................................29 Figure 10: Dendrogram for hierarchical clustering of insurance users. Here for the first year of insurance ......................................................................................................................30 Figure 11: Elbow graphs and silhouette score graphs for each year of insurance ..................30 Figure 12: Clustering workflow for each year, including persons who cancelled ...................31 Figure 13: Anomaly detection process overview ...................................................................31 Figure 14: Anomaly score calculation for the healthcare provider ........................................32 Figure 15: Process steps within the classification. Zero stands for the number of people with no cancellation and one for people who cancelled .......................................................34 Figure 16: Idealised learning curve to explain the best number of estimators (Source: own elaboration based on (Géron & Safari, 2019) ................................................................35 Figure 17: Learning curves (error and PR-AUC) for the best working algorithm (XGBoost Classifier) with over- and undersampling for 2000 and 60 estimators ...........................35 Figure 18: Radar plot to profile the insurance users’ clusters ................................................36 Figure 19: Sankey diagram to show the movement among the profiles of the insurance users in the first three years of insurance ..............................................................................38 Figure 20: Model evaluation for persons: Isolation Forest vs. DBSCAN .................................39 Figure 21: Confusion matrix for anomaly score person: DBSCAN (left) vs Isolation Forest (right) .....................................................................................................................................40 Figure 22: Error analysis isolation forest: evaluation around each anomaly score group .......41 Figure 23: Feature importance for anomaly score persons with SHAP values .......................41 Figure 24: Feature importance for anomaly score provider with SHAP values (here: only service dental care) ..................................................................................................................42 Figure 25: SHAP dependency plot for provider anomaly score ..............................................42
6 Figure 26: Overview network 1 .............................................................................................43 Figure 27: Enlargement of network 1 ....................................................................................43 Figure 28: Overview network 2 (all providers) ......................................................................43 Figure 29: Example of a smaller suspicious network of providers..........................................44 Figure 30: Evaluation of anomaly score encounters ..............................................................45 Figure 31: Confusion matrix normalised (validation set), without (left) and with (right) over- and undersampling .......................................................................................................46 Figure 32: Precision-Recall-Curve ..........................................................................................47 Figure 33: Reinforcement learning as a recommendation for future works in anomaly detection, marked in purple..........................................................................................49 Figure 34: Feature importance for anomaly score encounters (here: service dental care) with SHAP values ..................................................................................................................55 LIST OF TABLES Table 1: Most essential terminologies ..................................................................................24 Table 2: Main characteristics of the two network designs .....................................................33 Table 3: Distribution of insurance users among each year of insurance ................................37 Table 4: Metrics for anomaly score person: DBSCAN vs Isolation Forest ...............................40 Table 5: Comparing metrics between a model with and without over- and undersampling ..46
7 LIST OF ABBREVIATIONS AND ACRONYMS CRISP-DM Cross-industry process for data mining DBSCAN Density-based spatial clustering of applications with noise EDA Exploratory data analysis ETL Extract, transform, and load FN False negatives FP False positives IDE Integrated development environment iForest Isolation Forest GAN Generative adversarial network GMM Gaussian mixture models PR-AUC Precision-Recall Area under the curve RFM Recency, frequency, and monetary SHAP Shapley additive explanations TN True negatives TP True positives XGBoost Extreme Gradient Boosting
8 1. INTRODUCTION Fraud and abuse in healthcare cause high financial harm, and medical encounters are rapidly increasing. Around 10 per cent of healthcare expenditures can be related to fraud and abuse (Zhang et al., 2020). While healthcare insurance companies already implemented auditing departments and specific rule-based techniques, detecting fraud and abuse is challenging and cumbersome (Carvalho et al., 2017). Due to the high and rising number of daily healthcare encounters, hand checking every encounter binds too many human resources and cannot be the desired goal. Nevertheless, human domain knowledge is a valuable and rare resource for insurance companies and should be used wisely. Besides the number of encounters, the difficulties in detecting fraud are varied. One reason is the small number of fraudulent or abusive encounters among all healthcare encounters. Due to this tiny ratio, it is challenging to detect those encounters because they might disappear into the crowd. Fraudsters adapt their strategy over time, and rule-based detection needs to be updated steadily. However, detecting novelties while implementing new fraudulent patterns rules based on business knowledge is not always possible (Zhang et al., 2020). The detection of fraud and abuse, also called “anomalies”, can be considered either an unsupervised or a supervised classification task. Since the given raw data does not contain any labels, this work focuses on unsupervised learning techniques to detect anomalies containing fraudulent and abusive encounters. Labelling data is cumbersome, and unlabelled data increases the difficulty of measuring the model performance (Domingues et al., 2018). However, unsupervised learning methods applied to anomaly detection help detect new fraudulent patterns. This work is a practical project related to an academic internship at Future Healthcare Group 1 . Future Healthcare provides corporate customers, such as insurance companies, with services related to health insurance and a healthcare provider network. Services are delivered through a digital platform in which the healthcare providers bill the corresponding healthcare encounters. The anonymised data from the encounters are the primary data set for this work. In this context, fraud and abusive behaviour can be perpetrated by the healthcare provider, the insurance user, or even both. This work attempts to connect both to rank the daily incoming encounters checked by the auditing department. Overall, the goal is to detect suspicious behaviour and increase knowledge about behaviour patterns in healthcare. Concerning this goal, the project covers three main approaches. The first approach is clustering to understand the different behaviour groups of patients and if insurance might have odd behaviour. The second approach is the core part of this work, namely anomaly detection. In this part, the goal is to detect whether an insurance user, a healthcare provider, or the encounter itself is anomalous. The final approach is using a supervised learning model to predict if an insurance user with anomalous behaviour will cancel the insurance within the first year after contracting. The ultimate objective of the final part is to build a proof of concept to determine if it is possible to detect insurance users who have an odd behaviour and are more likely to cancel in the first year, after three months of insurance utilization. The primary approaches, however, are the unsupervised learning approaches of clustering and anomaly detection. 1 Future Healthcare Group, https://www.future-healthcare.pt/en/
15 The main output of this algorithm is the anomaly score for each instance, which is computed as such: (5) 𝑠𝑝𝑎𝑝𝑒𝑟 = 2− 𝐸(ℎ(𝑥)) 𝑐(𝑛) 𝐸(ℎ(𝑥)): Average number of edges to be separated for an instance x. 𝑐(𝑛): Normalisation constant for a data set with n instances. An anomaly score of one gives a high probability of being an anomaly, whereas instances with a score lower than 0.5 are usually considered regular points. Anomaly scores around the threshold of 0.5 are on the edge of being anomalous or normal. In this work, the implementation of iForest is done with the Python machine learning library scikitlearn (Pedregosa et al., 2011), available since 2016. This implementation uses ExtraTreeRegressor as the base estimator (iTree) and splits the data randomly on chosen variables and values. The output can either be a binary label (-1’s are anomalies and 1’s are regular points) and an anomaly score. Unlike described in the paper, the anomaly score in scikit-learn is calculated as such: (6) 𝑠𝑠𝑐𝑖𝑘𝑖𝑡 =(0.5 − 𝑠𝑝𝑎𝑝𝑒𝑟) More minor scores are considered anomalies or more anomalous instances. 2.2.2. DBSCAN DBSCAN, short for Density-based spatial clustering of applications with noise, is a clustering algorithm based on density. Unlike distance-based clustering algorithms, DBSCAN can detect different shapes that contain outliers and noise (Ram et al., 2010). Initially, the algorithm was introduced in 1996 (Ester et al., 1996). Its main parameters are the distance measure epsilon and the number of minimum samples within the distance epsilon. For each data point, DBSCAN counts the number of instances within the defined distance epsilon. If the number of points is equal to or higher than the minimum samples number, the given point is called a core point. Core points are located in dense areas, and all instances in a neighbourhood of a core point form a cluster. Any given point which is neither a core point nor has a core point in the neighbourhood (border point) is called an anomaly or noise point. DBSCAN is not only a clustering algorithm but also a method to detect anomalies (Géron & Safari, 2019). Unlike K-Means, one does not have to define the number of clusters because the number is based on the hyperparameter settings of epsilon and the minimum number of samples (Abdulraheem et al., 2015). A main advantage is detecting clusters with arbitrary shapes (Z. Chen & Li, 2011). However, the main drawbacks of DBSCAN are the determination of epsilon and the minimum number of samples in advance. Finding the appropriate values for both is a challenging task and can lead to suboptimal performance (Abdulraheem et al., 2015). Again, the implementation is done with scikit-learn. Anomalies or noise points obtain the label “-1”, and each cluster gets a label from zero onwards. The counting of labels can give a notion about the distribution of each cluster and the anomalies. The computational complexity is around O(n log n) and slightly higher than linear. In scikit-learn, the complexity depends on the value of epsilon and can rise to O(n2) (Géron & Safari, 2019).
16 2.2.3. K-MEANS K-Means is an established unsupervised machine learning algorithm clustering proposed mainly by James MacQueen and Stuart Lloyd (Lloyd, 1982; MacQueen, 1967). The algorithm divides the data set into a given number of K clusters. In K-Means, the number of clusters (K) needs to be set in advance, which can be an issue according to the given problem. First, the (Euclidean) distance from each data point to one of the randomly generated seed points, so-called centroids, is computed. The number of centroids is equal to the number of selected clusters (K), and each data point is assigned to its closest centroid. Next, the centroids are re-calculated. The new centroids are the mean of the point within one cluster, considering the sum of the squares of the distance to its assigned centroid. Finally, the distance of each instance to each (new) centroid is calculated and probably reassigned. The process is iterative, and the algorithm converges with no reassignment of data points and their corresponding centroids (Bishop, 2006). The steps of iteration are displayed in Figure 5. The main advantage of K-Means is its ability to converge fast and the scalability with large data sets. However, it is necessary to run K-Means several times to obtain stable solutions. As mentioned, defining the number of clusters in advance can be complex and arbitrary. To overcome the preselection of K, one can use methods such as the elbow-graph method and the silhouette score. The elbow method computes the inertia for each K, where usually low inertia is desired. The silhouette score considers the mean intra-cluster distance and the mean distance to the instances of the next cluster. The score varies from -1 to +1, where +1 is the perfect score (Géron & Safari, 2019). Another drawback is the sensibility towards outliers (Han et al., 2012). Figure 5: Iteration overview of K-Means algorithm from (Bishop, 2006)
17 2.2.4. XGBOOST CLASSIFIER Current machine learning competitions show that tree boosting is an effective algorithm to use for classification problems. More precisely, XGBoost (short for extreme gradient boosting), a scalable ensemble method for tree boosting, was introduced by Chen and Guestrin in 2016 and since then has often achieved good results in classification tasks. (T. Chen & Guestrin, 2016). The XGBoost algorithm is an optimized implementation of the Gradient Boosting algorithm. Gradient Boosting adds predictors to an ensemble model, improves each previously made prediction, and minimizes overall prediction error (Géron & Safari, 2019). 2.3. RELATED WORK In this section, some of the research related to this study is summarized and evaluated. This review gives an overview of the current state of the art and justifies the methods chosen in the methodology part of this work. In addition, it contains the work related to anomaly detection in general, applied to healthcare, and clustering techniques as a special section for anomaly detection. Anomaly detection, sometimes referred to as outlier detection or novelty detection, is a process to detect observations that are far apart from other instances. Over the last decades, anomaly detection and its increasing demand in various domains is a common subject of research (Pang et al., 2021). This work overviews unsupervised machine learning algorithms' general performance and characteristics applied for anomaly detection, including fraud detection. It introduces the possibility of using an anomaly score which acts as a label to show if an instance is an anomaly. In contrast, the label is based on a certain threshold of the anomaly score. They are pointing out the significant challenges of unsupervised anomaly detection. These are class imbalance, class overlap, and the speciality for which the unsupervised detection model is created. Anomaly detection models suffer from imbalanced classes because, per definition, an anomaly is a rare case. Due to the imbalance, the evaluation metrics are recall and precision, in addition to the memory and runtime complexity and robustness (Domingues et al., 2018). Anomalies might have similar values in some variables and are overlapping with no anomaly class. According to Domingues, these methods can be differentiated into probabilistic methods, distancebased methods, density-based methods, neighbour-based methods, information theory, neural networks, domain-based methods, and isolation methods. The authors conclude that iForest is an excellent method to detect anomalies efficiently and with high scalability on extensive data compared to good memory usage. Due to a more general perspective considering a large sample of models, this work acts as a good starting point to implement iForest as the main algorithm in this study. When sampling a small proportion of anomalies from a classification data set, applying density-based methods or gaussian mixture models (GMM) can work well. However, GMM methods are time and resource-consuming without outweighing models such as iForest. The authors use a generative adversarial network (GAN) to detect fraudulent health care providers. The GAN’s model identifies the labels distinguished into normal and anomalous labels and generates new labels. It turns an almost unsupervised problem into a supervised classification model. Based on these labels, standard classification algorithms such as Logistic Regression, XGBoost, Random Forest, and Decision Tree are used to predict whether a healthcare encounter is fraudulent. To explain the
18 model, SHAP is implemented. Here, one-hot encoding for categorical features is applied, and highly correlated features were removed. Despite having good results, to train a GAN, one needs to have a few true labels. For this reason, this might instead be applicable as a semi-supervised problem when having a few labels. Nevertheless, using SHAP as an explanatory model is good practice to understand which features have a higher impact on anomalies. Lastly, applying a similar method might improve the performance after obtaining true labels in business tests (compare chapter recommendations and future works) (Naidoo & Marivate, 2020). Thornton et al. (2014) applied an anomaly detection model on healthcare data with healthcare providers, encounters, and patients as entities. They provide a process, a roadmap for anomaly detection in healthcare in which an anomaly score is computed. Zhang et al. (2020) consider 10 per cent anomalies to fraud and abuse and mention the main problems to develop and apply anomaly detection systems in healthcare. Firstly, without an exact rule, it is challenging to differentiate abnormalities from regular treatments. Secondly, fraudsters cover their behaviour behind a high number of regular transactions in an already imbalanced environment. Finding one solution that fits all is problematic due to various diseases, patient characteristics, and doctors’ specialities. Lastly and because of a high number of transactional data, updating anomaly detection systems can cause issues. If the patterns are well known, supervised learning techniques promise to achieve better performance. However, supervised learning approaches mean that the data is trained on specific patterns and has issues in detecting novelties. Secondly, in healthcare, the dataset is usually not comprehensive, which increases the chance of an overfitted model. In contrast, they point out that most unsupervised learning anomaly detections are based on clustering with K-Means and DBSCAN and anomaly detection with iForest. Based on Ikono (2019) meta-analysis, in which 88 articles were studied, traditional fraud detection is difficult to apply in healthcare because new fraud patterns occur frequently. Zhang et al., 2020 introduce a group of features related to monetary, frequency, and information regarding the person and the medical treatment. The authors tested traditional rule sorts, K-Means, DBSCAN, iForest, and local outlier factor, with iForest having the best detection rate. The result is justified by the ability of iForest to deal with irrelevant features. This article is one of the main justifications behind using iForest and DBSCAN in this work (Pourhabibi et al., 2020). Another anomaly detection approach is the creation of a network, also called a graph. According to J. Liu et al. (2016), graph analysis is applied to detect suspicious entities, their relationships, geospatial dispersion, and anomalous network structure. A network is a visual tool that gives a good overview of the data. Suspicious entities and relationships can be found with filtering, selection, and zoom into the network according to the user’s needs. Transactional healthcare data usually contains various encounters with many patients and healthcare providers. As mentioned previously, this variety exacerbates the implementation of a good-working fraud detection model and requires fundamental domain knowledge. The detection of suspicious connections among healthcare providers, graphanalytics methods can help to overcome these issues. In their network design, they include geospatial data to recognise fraudulent patterns in a specific region. Once a suspicious connection of providers is found, the final step is applying the iForest algorithm on this sub-sample to detect anomalies within one group.
19 In a broader perspective, Pourhabibi et al.(2020) analysed 39 academic papers related to graph-based anomaly detection among various areas. Graph-based anomaly detection enables one to find new network designs according to the area of implementation. Even though it works as a roadmap for future network designs, another finding is the dependency of research studies on domain knowledge. Without this knowledge, the finding of new patterns is not likely (Pourhabibi et al., 2020). These authors examined different credit card fraud techniques and pointed out that fraudsters change their behaviour over time. Even though the majority of credit card fraud detection is supervised, supervised learning methods have drawbacks. Besides, they require labels, which are challenging to get in anomaly detection, mainly when humans perform it as class imbalance affects the efficiency of supervised algorithms. Based on a public data set on Kaggle, the authors compare the unsupervised learning anomaly detection algorithms local outlier factor (LOF), One-class support vector, K-Means, and iForest with each other. Eventually, the comparison shows that iForest outranks the other methods by far in each metric (F1 score, accuracy, and AUC score). Even though the paper deals with credit card fraud, the results can be adapted towards anomaly detection in healthcare data and are helpful for this work (Ounacer et al., 2018). Also, John & Naaz (2019) studied fraud and anomaly detection related to credit card transactions. The authors studied several techniques applied for anomaly detection, such as genetic algorithms and support vector machines and found the effectiveness of random sampling. The experimental part deals with credit card data with labels and compares iForest and LOF among other supervised methods. The usage of iForest is justified with the small memory requirement and low linear time complexity. Applied on the example data set, LOF has the best accuracy, but iForest has higher precision and recall. According to the authors, accuracy usage is critical since it might skew results from data set with imbalanced targets. Due to these results and the imbalance target in the studied data set, the application of iForest is appropriate for this work. This paper points out the advantages and disadvantages of iForest. The advantages, as previously mentioned, are the reduction of flooding and masking, the ability for high scalability, and the low computational overhead and linear time complexity. On the other hand, iForest introduces some random factors that might lead to lower accuracy and stability. The authors describe a combination of iForest and LOF in the related work section, which improves the accuracy and stability but leads to reduced efficiency. The proposed algorithm uses the simulated annealing (SA) method to optimize iForest in terms of generalization and reduces the redundant iTrees and time complexity and is called SA-iForest. This paper compares SA- iForest, iForest and LOF on different data sets. The improved iForest (SA-iForest) performs best in accuracy and execution by the standard implementation of iForest. SA-iForest is an excellent method to test the studied data set after finalizing the test scenario (Xu et al., 2017). The research from Tang et al. (2011) deals with the medical healthcare data in Australia and unsupervised techniques to tackle fraud and abuse, especially targeting the abuse of prescription. The authors proposed a system containing unsupervised sub-processes, underlying components called feature extractor, cluster builder, model constructor, and outlier detector. According to the authors, the model's modularity increases flexibility and decreases the maintenance complexity due to better localisation. The feature extractor is comparable with the process step of feature engineering and feature selection. The aim is to extract and select a few features to get as much information possible without having too many dimensions (curse of dimensionality). The cluster builder groups the consumers based on their activities which are the input for the model constructor, which builds Hidden Markov Models as an unsupervised learning technique. N-dimensional vectors represent the consumer
20 patterns, and each dimension implies a pattern encoded as a Hidden Markov Model. The outlier detector generates an n-dimensional score vector compared by the distance against the vector of the same pattern group to compute a final outlier score. This paper shows the advantages of building an ensemble model and considering several unsupervised learning methods to detect anomalies. Based on these insights, this project is structured into parts such as clustering and the utilization of several sub-processes within the implementation of iForest (Tang et al., 2011). The authors implemented a two steps iForest model to detect anomalies to monitor gas turbines. Like healthcare and credit card fraud, anomalies in gas turbines are a rare event and represent an imbalanced data set. After grouping the given data by time series, the first step is to run an iForest with low contamination. The observations labelled as anomalies within the first iForest run are the input for another iForest iteration. In this step, the contamination parameter is high. This filtering can help to detect real anomalies and decrease the false positive rate. Anomaly detection in a supervised context usually works quite well. However, in practical engineering, anomalies are less common and have often not occurred before, making unsupervised learning techniques such as clustering more suitable for this problem. According to the authors, models with unlabelled data have fewer issues with overfitting. They point out that unsupervised techniques based on distance, density, and clustering depend highly on prior knowledge, making it sometimes challenging to achieve high accuracy. iForest overcomes these issues and has other advantages, as mentioned above. In the second step, iForest show promising results in precision, recall, and F1 score and outweigh the one-class support vector machine results. This paper gives values insights to use iForest for the data of the studied data set, even though it was applied in another context. Secondly, a two-way filter of running the iForest algorithm might be a suitable process for future works and the application in healthcare data (Zhong et al., 2019). The study gives a more general overview of unsupervised anomaly detection algorithms without considering iForest. It deals with 19 different unsupervised learning anomaly detection algorithms classified into nearest neighbour-based, clustering-based, and statistical methods evaluated on ten public data sets from several domains. The evaluation criteria are accuracy, the stability of the scoring, the sensitivity to parameters, and the computation time. In general, for global anomalies, the authors recommend nearest-neighbours based methods and LOF for local anomalies. However, to a certain extent, each studied algorithm requires prior knowledge (Goldstein & Uchida, 2016). This paper introduces several data mining tools and techniques to detect fraud in healthcare data. According to this work, the most common technique is anomaly detection, which aims to point out outliers with a data pattern far apart from other observations. These data mining techniques disclose patterns among large data sets. Kirlidog and Asuk introduce valuable data mining techniques for fraud and anomaly detection: associations, classification, clustering, modelling, and sequential patterns. The types of fraud differ with their type of service, making it more challenging to detect fraud in healthcare data. However, they point out some behaviour that is commonly seen and generally applicable. For example, this can be an unusually high number of encounters for a specific insurance user in general or in a short time frame or excessive prices for medical treatments or consultations. This explanation is a valid rationale to divide features into groups of recency, frequency, and monetary values. In conclusion, the authors attest to techniques such as clustering, anomaly detection, and classification as valuable tools to detect fraudulent encounters and patterns in large data sets. With these three techniques, insurance companies can detect fraudulent encounters and find new fraudulent patterns and knowledge about the behaviour. This article is one of the fundamental bases for the structure and methodology of this study (Kirlidog & Asuk, 2012). Samriya (2016) describes the clustering of healthcare data in his work. In summary, clustering with the k-means algorithm is recommended. Also, Li & Wu (2012) say k-means performs well, especially brevity, efficiency and speed. The authors examine the power of unsupervised learning techniques to
21 reveal an unrecognised pattern. Mainly, clustering was one of the main methods used (Ogbuabor & F. N, 2018). In clustering, several different methods occur. The standard methods can be grouped into fuzzy clustering, density-based clustering, hierarchical clustering, and partition clustering. In the latter, one needs to define the number of clusters in advance. In contrast, hierarchical and most densitybased clustering does not require such a definition, which is advantageous for these algorithm types. The choice of the proper framework in healthcare is challenging. Their work compares clustering methods, precisely K-Means and Density-based spatial clustering of applications with noise (DBSCAN). The performance evaluation is measured with the silhouette score that measures the separation distance between the resulting clusters. Regarding the results, both clustering algorithms show a high intra-cluster cohesion and an excellent inter-cluster separation. In terms of the silhouette score and runtime, K-Means outweigh DBSCAN. In addition, the authors suggest a model of clustering in comparison with a classification model to predict the activity of instances. The last article is the primary motivation for clustering and the following prediction model. To summarise the related work, most of the research for anomaly detection deals with supervised data. Nonetheless, unsupervised learning techniques are improving and outweigh supervised techniques depending on the context. The most significant advantage of unsupervised anomaly detection methods is finding anomalies that have not occurred yet, unknown anomalies. In contrast, in supervised methods, the algorithms learn only from known anomalies. Since fraudsters adapt their behaviour and patterns, unsupervised methods help to detect also new fraudulent patterns. Around these methods, it turns out that algorithms such as iForest, DBSCAN, and to a certain extent also LOF have the best results overall studies and broadest context of implementation. Due to its ability to scale on large data sets without requiring much prior knowledge, iForest is the first choice to apply to this study. Based on the literature review, clustering is an appropriate method to understand abnormal behaviour and act as an additional method.
22 3. METHODOLOGY The methodology is based on the CRISP-DM process. However, according to this work, not all CRISPDM output described in the paper is shown here. The phase of deployment, for instance, will just be briefly emphasised. This approach is distinguished into clustering, anomaly detection, and prediction, whereby the central part is anomaly detection. 3.1. TOOLS AND TECHNOLOGY The following sub-chapter introduces the main tools and technologies used in this work. Python version 3.8 is the primary tool used for all the data preparation and visualisation. Python is an opensource, object-oriented programming language commonly used in data mining and data science projects (Van Rossum & Drake, 2009). Python provides community-contributed packages which support the user with specific tasks such as data preparation, visualisation, and the implementation of machine learning models. While several packages are utilised, the primary two are “Pandas” and “Scitkit-Learn”. “Pandas” is a package built on top of the library “NumPy” that supports multidimensional arrays and is specialised for tasks from reading the data until data preparation. For modelling and the implementation of machine learning algorithms, Scikit-learn provides state-of-the- art implementations. The main algorithm used in this work, isolation forest, is implemented with Scikitlearn. A complete list of packages applied can be found in the appendix. Jupyter Notebook, a webbased Python development tool, is used as an integrated development environment (IDE) (Kluyver et al., 2016). In addition to Python, the programming language R and its corresponding IDE RStudio is used (R Core Team, 2017). The later introduced network of healthcare providers is done with “Gephi”, open-source software to create, visualise, and explore graphs and networks. To build networks, the input data sets (nodes and edges) need to be in a particular format to display the source-target connection, which is done with Python. Besides creating a graph, Gephi allows computing graph statistics such as centrality measures to fulfil complete graph analysis. The software uses different layout algorithms to spread the network and make it more readable (Bastian et al., 2009). 3.2. BUSINESS UNDERSTANDING The initial phase of the CRISP-DM process deals with understanding the objectives from a business perspective transformed into a data mining/machine learning goal. The following sub-chapters introduce the general business field and the current situation, the business objective, and the data mining goal. Since this work discusses anomaly- and fraud detection, defining and differentiating these subjects is vital. Abuse in healthcare is a direct or indirect treatment or indication without the medical necessity or failure to meet professional standards that end up preventable cost for the payer. As an example, an abusive encounter would be billing for services that were not medically needed. In comparison, health care fraud is an intentional action with the full knowledge of ending up in an unauthorised benefit. Unlike abuse, fraud is officially defined as a crime, for instance, the billing for services that have not been performed (Joudaki et al., 2014).
23 Anomalies, on the other hand, are instances that have different behaviours than the majority. These behaviours pertain to fraud- and abuse, but also for typical cases that are legitimated. In other words, not every anomaly is fraud or abuse. For example, more severe medical cases that do not occur often might be classified as anomalies. Nevertheless, they are entirely appropriate. Fraud and abusive behaviour can be done by the healthcare provider, the insurance user, or even both. Figure 6 shows the different kinds of subsets. It is challenging to get accurate estimations regarding the percentage of anomalies, specifically fraud and abuse. According to the literature and figures published by insurance associations, around 6 to 12 per cent can be considered fraud and abuse. In this work, the model assumption works with a value (contamination parameter in isolation forest) of 8 per cent for anomalies. Figure 6: Subsets of the entire population. Fraud and abuse as a subset of anomalies and the entire population 3.2.1. BACKGROUND AND CURRENT SITUATION According to the Insurance Europe’s report, fraud and abuse represent up to 10 per cent of all encounters expenditure in Europe over all types of insurances. 2 Since the dark figure of undetected cases is even higher, fraud and abuse cause impactful damage to insurances and increase premiums. For those reasons, it is crucial to investigate and identify possible fraudulent or abusive behaviour: verify the medical necessity, suitability of services provided, coverage eligibility, and the billing process. It is a common industry standard to have cost containment rules implemented. These rules automatically check and block the billing of encounters when specific rules are triggered. For instance, an encounter could be refused if medical services were requested, not captured by a specific insurance policy. In addition, fraud detection is cumbersome and involves many human resources and business knowledge — fraudulent and abusive behaviour changes over time. One disadvantage of fixed cost containment rules is that it is less likely to detect new suspicious patterns. Even though business knowledge exists and encounters are examined thoroughly, checking daily encounters can be overwhelming without the notion that cases might be more suspicious. One technique to overcome this issue is implementing data-driven fraud- and anomaly detection models based on machine learning. These models aim to detect encounters with different patterns 2 Insurance Europe aisbl, https://www.insuranceeurope.eu/impact-insurance-fraud/
24 than similar cases. They aim to detect anomalies with suspicious circumstances. As mentioned above, this does not necessarily mean it is fraud. However, it represents rare encounters wherefore fraud and abuse also count (around 8-10 per cent). Fraud- and anomaly detection in machine learning is commonly solved either with supervised or unsupervised learning techniques. Supervised learning requires labels that historical flag encounters fraud or no fraud, which usually requires humans to do so. In many cases, these flags do not exist, and unsupervised techniques have to be applied. Since this study deals with unlabeled data, unsupervised algorithms such as isolation forest are implemented. To better understand the modelling, it is vital to point out the main entities and the general appearance of encounters. The data contains insurance users and healthcare providers, which can bill encounters on a provided web-based platform. Before continuing, it is vital to deal with the business terminology briefly. Terminology Meaning Health plans Healthcare products with fixed conditions (for instance, how many service treatments) that do not contain risks for the insurance company. Health insurance A broader health coverage than health plans which covers more and has risks. Insured person A person who has valid health insurance. Insurance user An insured person who utilises the insurance. Provider A healthcare provider for certain medical acts which can access the web-based platform to bill their encounters. Encounter Whenever an insured person visits a healthcare provider, one encounter includes all the items associated with one specific indication. One encounter has one person and one provider. Sometimes also called a claim. Item One encounter can contain several medical items. Service Each encounter can be associated with one medical service, such as treatments or consultations. Table 1: Most essential terminologies
31 The insurance users are distinguished if they used the insurance within one year and ran the clustering for those who used it. If people cancelled in one year, a separate clustering is performed to see what kind of profile they are (Figure 12). Based on this approach, one can see the behaviour movement of people over time. Figure 12: Clustering workflow for each year, including persons who cancelled Even though it is an unsupervised learning technique without labels, cluster stability can be tested. For this reason, several iterations of clustering are performed to see whether the clusters are stable and instances are assigned to the same cluster. Anomaly detection: Anomaly detection is the core part of this work. As mentioned, the goal is to rank the daily incoming encounters by their probability of being an anomaly so that the auditing department can focus on the correct encounters. Figure 13 illustrates the entire process and model. For example, one encounter contains three entities: the insured person, the healthcare provider, and the encounter itself, containing all information. Figure 13: Anomaly detection process overview The model's core is split into three sub-processes to compute an anomaly score for each, the person, the provider, and the encounter itself. Each sub-model is explained in the next section. The algorithms used are isolation forest and DBSCAN (for persons) implemented with the python library scikit-learn. The reasoning for using both algorithms is illustrated in chapter 2.3, related work. Primarily, the algorithms are chosen due to Zhang (2020) and Zhong (2019), showing excellent results for iForest and considering DBSCAN to detect medical fraud and abuse. However, predominantly because of Zhang (2020) and the results for iForest to detect medical fraud and abuse. In addition, John & Naaz (2019) describe the advantages of iForest and its good results in the detection of credit card fraud. Even though credit card fraud is not related to medical fraud and abuse, the described modelling technique is applicable for fraud and anomaly detection in healthcare. Lastly, Zhong (2019) obtained good results in applying iForest twice to detect anomalies in gas turbines. Like credit card fraud, this domain can be applied to medical fraud and anomaly detection. The approach to combine
32 sub-process is based on Tang (2011), who achieved an excellent result with the ensemble model. For all sub-models, the contamination in isolation forest is 8 per cent. The hyperparameters are, according to the main paper, the default settings: • Number of estimators: 100, • The maximum number of samples: 256 (F. T. Liu et al., 2008). The anomaly score is the main output of all models. Unlike the original isolation forest paper, the scikitlearn implementation of isolation forest returns 0.5 minus the anomaly score. When the contamination parameter has a specific value, anomalies have a score below 0, which means that the decision threshold considering an instance as an anomaly is 0. Regarding the general test design and model evaluation, a specific date is chosen, and model training is based on all encounters until this date. Due to the lack of labels, no automatic evaluation can be fulfilled. Samples of persons, providers, and encounters are examined by the business. More precisely, by the auditing department as well as clinical staff. Sub-process 1 - Anomaly score person: Computing the score and label for persons, isolation forest and DBSCAN are used to compare both algorithms performance. The input is the grouped data set with information up to the test date. The output is an anomaly score and labels for each person. In contrast, scikit-learn labels anomalies as -1, a mapping is applied to label anomalies with one and regular observations with 0. Sub-process 2 - Anomaly score provider: Providers differ according to their size and speciality. The output of this sub-process is an anomaly score for each provider, considering their specific characteristics. The following chart displays the calculation for each provider. Figure 14: Anomaly score calculation for the healthcare provider Provider network: Besides calculating the anomaly score for providers within the sub-process, the following paragraph describes the approach to detect anomalous entities in a network of providers. For the creation, the open-source software for exploring and manipulating networks “gephi” is used. A network is an appropriate tool to visually explore connections and detect suspicious inactions based on specific filtering. Besides, this allows performing a complete network /graph analysis. One can compute various statistical measures of centrality, such as degree centrality, which computes how many edges (connections to other providers) one provider (node) has. However, the focus is not on the statistical
33 approach, instead of on the exploratory part. Based on the business goal to specialise in suspicious connections, the correct filtering of the variables within the network is vital. A network design usually contains nodes that are connected with edges. These edges could either be directed or undirected. In this work, two main undirected network designs are applied that consider providers and encounters’ anomaly scores and labels. The first network is an example of one specific medical service. The nodes are specific providers as well as patients, coloured by geographical location. The edges are encounters between a patient and provider that could either be anomalous (coloured in red) or normal. Force Atlas 2 is the layout algorithm used. The second network design for exploratory purposes contains all providers as nodes coloured by geographical location. The edges are patients shared among the providers, where the edge weight is the number of shared patients. Since this includes all providers and is a complex network, the layout algorithm is “open ord” to increase the performance. Table 2 shows the main characteristics, although the tool allows changing according to the needs. Sub-process 3 - Anomaly score encounter: Like providers, the data set is split by their service associated with an isolation forest for each service. The first output of this sub-model is an anomaly score and the binary label for each encounter of the date chosen. The encounter anomaly score is the most important. To better understand the magnitude, the min-max normalisation score is normalised, obtaining values ranging from 0 to 1 in each service. The reception of high values close to one for more anomalous encounter, the normalised score is subtracted from 1, where 0 is absolutely no anomaly, and 1 means a high anomalous encounter. (7) 𝑠𝑛𝑒𝑤 = 1 − 𝑠−𝑠𝑚𝑖𝑛 𝑠𝑚𝑎𝑥−𝑠𝑚𝑖𝑛 As a result, each service will have encounters with an anomaly score of 1, which is the most anomalous encounter for one service and is vital to get a notion of the most anomalous encounters within one service. Cancellation prediction based on anomalous behaviour: After feature engineering and selection, the first step is to split the data into a training (70 per cent of the data) and test set (30 per cent). Then, a function compares the most popular classification Network 1 Network 2 Nodes Specific providers and patients All providers of all medical services Node colours Geographical location Geographical location Edges Encounters (anomalous encounters are coloured in red) Shared patients among the providers Edge weight uniform Number of shared patients Layout algorithm in gephi Force Atlas 2 Open Ord Table 2: Main characteristics of the two network designs
34 algorithms in default settings with each other. The list contains linear classifiers, support vector machines, kernel estimations, neural networks, decision trees, and so-called dummy classifiers. The dummy classifier gives a first notion of how well the default models perform with the given data. Two set-ups of the dummy classifier (scikit-learn implementation) are considered: “most_frequent”, which consistently predict the majority class, and “stratified”, which generates predictions by the distribution of the class. The entire list can be found in the appendix. Around 10 per cent of the entire data set cancelled and get the label one. Based on this distribution, the prediction class is called imbalanced. As already mentioned, an imbalanced data set needs different treatments in terms of metrics. In addition, undersampling the majority class and oversampling the minority class increase the model performance. This model contains both under- and oversampling. At first, the majority class instances are reduced by about 40 per cent, followed by oversampling the minority class by about 50 per cent. The final distribution of the target is 60 per cent negative class and 40 per cent positive class, which turns out to get better performance. Algorithms based on decision trees, such as random forest or XGBoost, are powerful algorithms. However, they tend to overfit. For that reason, plotting the learning curve (error and chosen evaluation metric) with many estimators (for instance, the number of trees in a random forest) helps choose the correct number of estimators. With this number fixed, the other hyperparameter can be improved by using the grid search optimisation algorithm. The following figure displays the process at a glance. Figure 15: Process steps within the classification. Zero stands for the number of people with no cancellation and one for people who cancelled When considering both the test and the training set, learning curves give insights into whether the model will over-or underfit. The following graphic shows an ideal learning curve plotting the model error. Although the error of the training set is still decreasing, the optimal number of estimators is the turning point (minimum) of the validation error (see dashed line), which is called the bias-variance trade-off point. If both lines run parallel without a drop in error, this implies too little data to learn.
35 Figure 16: Idealised learning curve to explain the best number of estimators (Source: own elaboration based on (Géron & Safari, 2019) In most real-life data set, however, the learning curve is not always ideal. The following figure shows the learning curves (error and the desired performance metric PR-AUC) for the best working model (XGBoost Classifier) with over-and undersampling for 2000 and 60 estimators. Based on this visual approach, the number of estimators chosen is 36. This number is a fixed hyperparameter to optimise the hyperparameter with the grid search algorithm. Figure 17: Learning curves (error and PR-AUC) for the best working algorithm (XGBoost Classifier) with over- and undersampling for 2000 and 60 estimators
36 4. RESULTS AND DISCUSSION This chapter contains the results and evaluation of each model described in the previous chapters, which conforms with the evaluation phase in CRISP-DM. The results are split into the sub-chapters of clustering, anomaly detection, and cancellation prediction based on anomalous behaviour. In contrast, the anomaly part is further divided into its corresponding sub-processes. 4.1. CLUSTERING The result for clustering is the profiling, or that is to say, the profiles of the insurance users within their first three years of insurance. The features used can be grouped into recency and general, frequency, and monetary, based on the RFM model, known from marketing analysis. The following radar plot (Figure 18) is an example for the second year of insurance and visualises all characteristics of each cluster. Their core points, called centroids, represent each cluster and could be either the mean or mode for all instances within one cluster, depending on the feature. The plot illustrates the variables used for clustering and additional features that are solely used for profiling. Figure 18: Radar plot to profile the insurance users’ clusters The clusters have evident peculiarities in each group of features, but mostly in frequency and monetary features. Based on this radar plot and the centroids representing the clusters, the three profiles can be described. With around 80 to 82 per cent, cluster 1 represents the most frequent pattern of insurance users each year. They do not have outstanding characteristics to be associated with “regular” users. Cluster 2 is the second most frequent cluster and have striking characteristics within the group of frequency features. The smallest cluster each year is cluster 3, which are highly related to monetary features. According to the distribution of the profiles among all years, the second and third years are similar. The first year, in contrast, contains significantly fewer instances of cluster 3 but more from cluster 1. This difference might be explained by the waiting period an insured person has.
37 Total Profile 1st year Profile 2nd year Profile 3rd year Cluster 1 26112 insurance users 10537 (82.76 %) 10426 (80.91 %) 8773 (80.84 %) Cluster 2 2167 (17.02 %) 2091 (16.23 %) 1790 (16.50 %) Cluster 3 28 (0.22 %) 369 (2.86 %) 289 (2.66 %) Table 3: Distribution of insurance users among each year of insurance The number of insurance users per year differs because persons cancelled the insurance or had no encounter within one year. Behaviour over time: The reception of a better understanding of how people’s behaviour changes over the time studied. The Sankey diagram gives a good overview and insights into the years' movements between clusters, cancellation, and no utilisation. When insurance users had no usage in a year, they are more likely to be in cluster 1 in the following year. Vice versa, if one started being in cluster 1, the chance of not using the policy in the second and third years is higher. Within the cancellations of each year, many persons did not use the insurance in the previous year, and this number remained constant in the studied period. The proportion of the cluster profiles seems to be roughly the same whether people cancelled or not. However, none of the persons in cluster 3 during the first year withdrew in the following year. Cluster 3 during the first year did not use the insurance in the following years, except for one person who moved to cluster 2. For both cluster 1 and cluster 2, a proportion of subjects keep their profile through all the years. Although this proportion is small, the absolute number, especially for cluster 2, can be relevant in the context of abuse detection.
38 Figure 19: Sankey diagram to show the movement among the profiles of the insurance users in the first three years of insurance Who cancelled in between? Separate clustering analysis is performed to detect what kind of behaviour they had before their cancellation for those who cancelled each year. The first perception is that the clusters can also be distinguished into the exact characteristics of clusters 1,2, and 3 for the second and third years. Given that the characteristics of the centroids only consider cancelled insurance users, one can say that the second and third-year look like the characteristics of the insurance users who stayed in the policy in the corresponding years. Nevertheless, the pattern in the first year deviates. There is no clear pattern that is outstanding for cluster 3. It turns out that insurance users represent a cluster with characteristics from both cluster 2 and cluster 3. In other words, these insurance users spent and used a significant amount in the first year and cancelled their insurance afterwards. Nevertheless, the second and third-year behaviour is comparable with the characteristics of those who did not cancel. It stands out that in the first two years, fewer people of cluster 3 cancelled the policy, whereas the share in the third year is higher than the years before.
39 4.2. ANOMALY DETECTION The core results of this work are the results of the anomaly detection model and its underlying submodels, which are discussed in this chapter. Due to the lack of labels, the testing of each model is based on manual check-ups by the auditing department based on provided, anonymised files. Sub-process 1 - Anomaly score person: The evaluation of both algorithms' performance requires the actual labels for each person, whether anomalous or normal. For this task, a sample of 90 instances is chosen after running an isolation forest for the first time. Due to this approach, samples are picked based on their anomaly score. To better understand the error the model makes, the exact size of samples (30 each group) is chosen with a high and low anomaly score and a score around the decision score of being anomalous or not. Every instance is examined by business experts and labelled as anomalous or normal without seeing the predicted label. According to the literature review, two algorithms are implemented: DBSCAN and isolation forest. In terms of accuracy, it turns out that isolation forest (82 per cent accuracy) outweighs DBSCAN (60 per cent accuracy) for this sample (Figure 20). Figure 20: Model evaluation for persons: Isolation Forest vs. DBSCAN
40 A deeper examination of the actual results in a confusion matrix and the metrics for each algorithm (Figure 21 and Table 4) show that in other, isolation forest performs better than DBSCAN in all metrics. Figure 21: Confusion matrix for anomaly score person: DBSCAN (left) vs Isolation Forest (right) Metrics DBSCAN Isolation Forest Accuracy 0.60 0.82 Recall 0.58 0.77 Precision 0.68 0.91 F1 0.63 0.83 Specificity 0.62 0.89 Table 4: Metrics for anomaly score person: DBSCAN vs Isolation Forest The results for DBSCAN are relatively balanced, around 0.6 in each metric, whereas the performance of isolation forest deviates more. It has higher precision (0.91) than recall (0.77), meaning it does a better job classifying anomalies than normal instances. This insight is reinforced with the analysis in which scenarios the model performs poorer. Figure 22 displays the distribution of correctly classified instances around each score. The accuracy in classifying instances with a high anomaly score, hence a higher probability of being an anomaly, is higher than for those with a low score (93 per cent to 87 per cent). When it comes to instances with an anomaly score around the decision threshold, meaning persons without an outstanding probability being either an anomaly or normal, the models perform worse (accuracy of 67 per cent). The manual adjustment of this decision threshold score can drive better results in detecting anomalous persons. This adjustment needs to be aligned with the business goal, whether it tends to have a higher precision (persons who are predicted anomalous) or recall (of all anomalies, how many were captured).
47 On the other hand, a higher recall means more people who will cancel are captured. Nevertheless, more people predicted positive who will not cancel. Based on this interaction, a strategy to adjust the threshold needs to be developed. Figure 32: Precision-Recall-Curve According to the goal to predict after three months whether insurance users cancel the policy, it can be said that it is generally possible. However, to obtain better results, more data is needed. More personal data is known in advance, or the prediction time is closer to the end of the first year of insurance.
48 5. CONCLUSIONS The literature review shows several supervised and unsupervised techniques to detect fraud and anomalies. This work combines unsupervised methods and one supervised approach applied on healthcare encounters: clustering, an ensemble of anomaly detection models, and a predictive model. Although evaluation in unsupervised learning is more challenging and binds more human expertise, not having labels opens a new opportunity to detect new fraudulent patterns. In contrast, this might not be the case when using a supervised learning approach. An initial clustering is a suitable method to get more knowledge about the behaviour of the entities, such as providers and insurance users. It gives the first notion of how these entities behave and clusters further apart from others that might be anomalies. A mixture of hierarchical clustering and the kmeans algorithm is easy to implement and fast solution. However, as a complete and independent fraud- and anomaly detection model, solely using clustering is too general. The implementation of other clustering algorithms, for instance, DBSCAN, might improve the model. The variety of medical encounters is too high to implement clustering as a single tool. However, it is a vital step to understand the behaviour. The core part of this work is an anomaly detection model. This model ensemble of different scores and labels connects all instances (provider, insurance user, and the actual encounter) and examines one encounter solely. In healthcare, the behaviour and consumption vary where factors such as medical service, type of provider, or type of insurance policy impact whether an encounter is anomalous or not. These circumstances prevent a so-called one-fits-all solution and need to be differentiated in more detail. On the other hand, too granular data means less data for model training, which leads to issues to separate anomalies. This unsupervised approach is a suitable add-on to static cost containment rules. However, it is crucial to further test and continuously update and evaluate the model. Due to the requirement of expert knowledge for evaluation, more testing, especially in the anomaly score for encounter and the final sorting, is necessary to obtain a better performance. Overall, this model shows good results, and with future improvements, it is ready to test in deployment. Although not an unsupervised machine learning technique, the predictive model can hint at who is more likely to cancel the insurance within the first year. Nevertheless, the rate of false positives and false negatives are relatively high to deploy fully or to use as a tool to detect fraudsters and abusive people in advance. For this reason, more data, such as a medical questionnaire or socio-demographic data, is needed. Also, before further improving this model, the business actions that follow its results need to be defined. For example, a more promising model can be a model to predict churn for loyalty campaigns rather than use it for fraud detection.
49 6. LIMITATIONS AND RECOMMENDATIONS FOR FUTURE WORKS No labels cause the exclusion of supervised learning techniques, which is one of the main limitations to detect fraud and anomalies. Although unsupervised learning approaches helps to detect new patterns, the evaluation binds more resources to get the ground truth. For these reasons, the test samples are relatively small concerning the entire data set. However, the test and evaluation is not terminated and will continue after this work. This project is a project from scratch without knowing the data and established data science processes and infrastructure. With general fraud and anomaly detection, the project goal is rather broad, and the development of pipelines to do the proof of concept takes time. Although good expertise is present, the business knowledge is spread and obtained with a time offset. Consequently, this can require changes even in the first process steps, such as data preparation. Eventually, this leads to a longer cycle time. Encoding features with high cardinality is computationally expensive. It is highly recommended that the deployment use a big data environment or cloud computing services such as AWS by Amazon or Microsoft Azure. One of the main recommendations and improvements for future works is the implementation of a supervised learning pipeline. The purple lines in Figure 33 show a process draft. Whenever the auditing department sees a ranked encounter, it will label them as fraud, no fraud, or anomaly. Then, a supervised learning model can be implemented based on these labels, giving additional input to rank the daily incoming encounters. Figure 33: Reinforcement learning as a recommendation for future works in anomaly detection, marked in purple One of the main improvements for this work is extending and finalising the test scenario to obtain more real labels. With these labels, one can evaluate used models more accurate. Based on these adjustments, further models, such as SA-iForest in Xu (2017) and the two steps iForest, are proposed in Zhong (2019). The implementation of SHAP values for single observations (local interpretability) to explain which features impact the observation to be normal or anomalous would help the auditing department understand the predicted label. Lastly, other anomaly detection models, such as Gaussian mixture models or deep learning models, can be implemented and tested. According to Naiboo (2020), GANs can be developed to improve the supervised models with some labels.
50 7. BIBLIOGRAPHY Abdulraheem, A., Abdul-Hadi, J., Akintola, A., & Ameen, A. O. (2015). Anomaly Detection in Dataset for Improved Model Accuracy Using DBSCAN Clustering Algorithm. African Journal of Computing & ICT, Vol 8. No.1 Bastian, M., Heymann, S., & Jacomy, M. (2009). Gephi: An Open Source Software for Exploring and Manipulating Networks. https://www.aaai.org/ocs/index.php/ICWSM/09/paper/view/154 Bishop, C. M. (2006). Pattern Recognition and Machine Learning (Information Science and Statistics). Springer-Verlag. Carvalho, L. F. M., Teixeira, C. H. C., Meira, W., Ester, M., Carvalho, O., & Brandao, M. H. (2017). Provider-Consumer Anomaly Detection for Healthcare Systems. 2017 IEEE International Conference on Healthcare Informatics (ICHI), 229–238. https://doi.org/10.1109/ICHI.2017.75 Chapman, P., Clinton, J., Kerber, R., Khabaza, T., Reinartz, T., Shearer, C., & Wirth, R. (2000). CRISPDM 1.0: Cross Industry Standard Process for Data Mining. In CRISP-DM Consortium. Chen, T., & Guestrin, C. (2016). XGBoost. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794. https://doi.org/10.1145/2939672.2939785 Chen, Z., & Li, Y. F. (2011). Anomaly Detection Based on Enhanced DBScan Algorithm. Procedia Engineering, 15, 178–182. https://doi.org/10.1016/j.proeng.2011.08.036 Davis, J., & Goadrich, M. (2006). The Relationship Between Precision-Recall and ROC Curves. Proceedings of the 23rd International Conference on Machine Learning, ACM, 06. https://doi.org/10.1145/1143844.1143874 Domingues, R., Filippone, M., Michiardi, P., & Zouaoui, J. (2018). A comparative evaluation of outlier detection algorithms: Experiments and analyses. Pattern Recognition, 74, 406–421. https://doi.org/10.1016/j.patcog.2017.09.037 Ester, M., Kriegel, H.-P., Sander, J., & Xu, X. (1996). A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise. Proceedings of the Second International Conference on Knowledge Discovery and Data Mining, 226–231. Géron, A., & Safari, an O. M. C. (2019). Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd Edition. O’Reilly Media, Incorporated. https://books.google.pt/books?id=O2VJzQEACAAJ Giudici, P., & Figini, S. (2009). Applied Data Mining for Business and Industry (2nd ed.). Wiley Publishing. Goldstein, M., & Uchida, S. (2016). A Comparative Evaluation of Unsupervised Anomaly Detection Algorithms for Multivariate Data. PLOS ONE, 11(4), e0152173. https://doi.org/10.1371/journal.pone.0152173 Han, J., Kamber, M., & Pei, J. (2012). Data Mining: Concepts and Techniques. In Data Mining: Concepts and Techniques. https://doi.org/10.1016/C2009-0-61819-5 John, H., & Naaz, S. (2019). Credit Card Fraud Detection using Local Outlier Factor and Isolation Forest. International Journal of Computer Sciences and Engineering, 7(4), 1060–1064. https://doi.org/10.26438/ijcse/v7i4.10601064
51 Joudaki, H., Rashidian, A., Minaei-Bidgoli, B., Mahmoodi, M., Geraili, B., Nasiri, M., & Arab, M. (2014). Using Data Mining to Detect Health Care Fraud and Abuse: A Review of Literature. Global Journal of Health Science, 7(1). https://doi.org/10.5539/gjhs.v7n1p194 Kelleher, J. D., Namee, B. Mac, & D’Arcy, A. (2015). Fundamentals of Machine Learning for Predictive Data Analytics: Algorithms, Worked Examples, and Case Studies. The MIT Press. Kirlidog, M., & Asuk, C. (2012). A Fraud Detection Approach with Data Mining in Health Insurance. Procedia - Social and Behavioral Sciences, 62, 989–994. https://doi.org/10.1016/j.sbspro.2012.09.168 Kluyver, T., Ragan-Kelley, B., Pérez, F., Granger, B., Bussonnier, M., Frederic, J., Kelley, K., Hamrick, J. B., Grout, J., Corlay, S., Ivanov, P., Avila, D., Abdalla, S., Willing, C., & Team, J. D. (2016). Jupyter Notebooks - a publishing format for reproducible computational workflows. ELPUB. Li, Y., & Wu, H. (2012). A Clustering Method Based on K-Means Algorithm. Physics Procedia, 25, 1104–1109. https://doi.org/10.1016/j.phpro.2012.03.206 Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2008). Isolation Forest. 2008 Eighth IEEE International Conference on Data Mining, 413–422. https://doi.org/10.1109/ICDM.2008.17 Liu, J., Bier, E., Wilson, A., Guerra Gómez, J. A., Honda, T., Sricharan, K., Gilpin, L., & Davies, D. (2016). Graph Analysis for Detecting Fraud, Waste, and Abuse in Health-Care Data. Ai Magazine, 37, 33–46. Lloyd, S. (1982). Least squares quantization in PCM. IEEE Transactions on Information Theory, 28(2), 129–137. https://doi.org/10.1109/TIT.1982.1056489 Lundberg, S., Erion, G., Chen, H., DeGrave, A., Prutkin, J., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S.-I. (2019). Explainable AI for Trees: From Local Explanations to Global Understanding. Lundberg, S., & Lee, S.-I. (2017). A Unified Approach to Interpreting Model Predictions. MacQueen, J. (1967). Some methods for classification and analysis of multivariate observations. Naidoo, K., & Marivate, V. (2020). Unsupervised Anomaly Detection of Healthcare Providers Using Generative Adversarial Networks (pp. 419–430). https://doi.org/10.1007/978-3-030-44999- 5_35 Ogbuabor, G., & F. N, U. (2018). Clustering Algorithm for a Healthcare Dataset Using Silhouette Score Value. International Journal of Computer Science and Information Technology, 10(2), 27–37. https://doi.org/10.5121/ijcsit.2018.10203 Ounacer, S., el Bour, H., Oubrahim, Y., Ghoumari, M., & Azzouazi, M. (2018). Using Isolation Forest in anomaly detection: the case of credit card transactions. Periodicals of Engineering and Natural Sciences (PEN), 6, 394. https://doi.org/10.21533/pen.v6i2.533 Pang, G., Shen, C., Cao, L., & Hengel, A. Van Den. (2021). Deep Learning for Anomaly Detection. ACM Computing Surveys, 54(2), 1–38. https://doi.org/10.1145/3439950 Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, E. (2011). Scikit-learn: Machine Learning in {P}ython. Journal of Machine Learning Research, 12, 2825–2830. Pourhabibi, T., Ong, K.-L., Kam, B. H., & Boo, Y. L. (2020). Fraud detection: A systematic literature
52 review of graph-based anomaly detection approaches. Decision Support Systems, 133, 113303. https://doi.org/10.1016/j.dss.2020.113303 Powers, D. M. W. (2015). Visualization of Tradeoff in Evaluation: from Precision-Recall {\&} {PN} to LIFT, {ROC} {\&} {BIRD}. CoRR, abs/1505.0. http://arxiv.org/abs/1505.00401 Provost, F., & Fawcett, T. (2013). Data Science for Business: What You Need to Know about Data Mining and Data-Analytic Thinking (1st ed.). O’Reilly Media, Inc. R Core Team. (2017). R: A Language and Environment for Statistical Computing. https://www.rproject.org/ Ram, A., Jalal, S., Jalal, A. S., & Kumar, M. (2010). A Density Based Algorithm for Discovering Density Varied Clusters in Large Spatial Databases. International Journal of Computer Applications, 3(6), 1–4. https://doi.org/10.5120/739-1038 Samriya, J. (2016). EFFICIENT K-MEANS CLUSTERING FOR HEALTHCARE DATA. 2393–8390. Tang, M., Mendis, B., Murray, D., Hu, Y., & Sutinen, A. (2011). Unsupervised fraud detection in Medicare Australia. Conferences in Research and Practice in Information Technology Series, 121, 103–110. Thornton, D., van Capelleveen, G., Poel, M., Hillegersberg, J., & Mueller, R. (2014). Outlier-based health insurance fraud detection for U.S. medicaid data. ICEIS 2014 - Proceedings of the 16th International Conference on Enterprise Information Systems, 2, 684–694. Van Rossum, G., & Drake, F. L. (2009). Python 3 Reference Manual. CreateSpace. Xu, D., Wang, Y., Meng, Y., & Zhang, Z. (2017). An Improved Data Anomaly Detection Method Based on Isolation Forest. 2017 10th International Symposium on Computational Intelligence and Design (ISCID), 287–291. https://doi.org/10.1109/ISCID.2017.202 Zhang, C., Xiao, X., & Wu, C. (2020). Medical Fraud and Abuse Detection System Based on Machine Learning. International Journal of Environmental Research and Public Health, 17(19), 7265. https://doi.org/10.3390/ijerph17197265 Zhong, S., Fu, S., Lin, L., Fu, X., Cui, Z., & Wang, R. (2019). A novel unsupervised anomaly detection for gas turbine using Isolation Forest. 1–6. https://doi.org/10.1109/ICPHM.2019.8819409
53 8. APPENDIX Cancellation Prediction:
54 Anomaly Persons: Relative numbers confusion matrix for anomaly score persons:
55 Anomaly Encounters: Figure 34: Feature importance for anomaly score encounters (here: service dental care) with SHAP values
Page | i