{"id":6848,"date":"2023-07-28T21:49:30","date_gmt":"2023-07-28T19:49:30","guid":{"rendered":"https:\/\/eurocc.nscc.sk\/?p=6848"},"modified":"2023-08-02T14:28:49","modified_gmt":"2023-08-02T12:28:49","slug":"detekcia-anomalii-v-casovych-radoch-prevencia-gamblingu-pomocou-hlbokeho-ucenia","status":"publish","type":"post","link":"https:\/\/eurocc.nscc.sk\/en\/detekcia-anomalii-v-casovych-radoch-prevencia-gamblingu-pomocou-hlbokeho-ucenia\/","title":{"rendered":"Anomaly Detection in Time Series Data:\nGambling prevention using Deep Learning"},"content":{"rendered":"<div class=\"is-layout-flow wp-block-group alignfull posts-all\"><div class=\"wp-block-group__inner-container\">\n<div class=\"is-layout-flex wp-container-4 wp-block-columns\">\n<div class=\"is-layout-flow wp-block-column\" style=\"flex-basis:60%\">\n<div class=\"is-layout-flow wp-block-group alignfull\"><div class=\"wp-block-group__inner-container\">\n<p><strong>Anomaly Detection in Time Series Data:\nGambling prevention using Deep Learning<\/strong><\/p>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n\n\n<p>Gambling prevention of online casino players is a challenging ambition with positive impacts both on player\u2019s\nwell-being, and for casino providers aiming for responsible gambling. To facilitate this, we propose an\nunsupervised deep learning method with an objective to identify players showing signs of problem gambling\nbased on available data in a form of time series. We compare the transformer-based autoencoder architecture for\nanomaly detection proposed by us with recurrent neural network and convolutional neural network autoencoder\narchitectures and highlight its advantages. Due to the fact that the players\u2019 clinical diagnosis was not part of\nthe data at hand, we evaluated the outcome of our study by analyzing correlation of anomaly scores obtained\nfrom the autoencoder and several proxy indicators associated with the problem gambling reported in the\nliterature.<\/p>\n\n\n\n<p> <\/p>\n<\/div>\n\n\n\n<div class=\"is-layout-flow wp-block-column\">\n<figure class=\"wp-block-image alignwide size-large\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280.jpg\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"768\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280-1024x768.jpg\" alt=\"\" class=\"wp-image-6849\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280-1024x768.jpg 1024w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280-300x225.jpg 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280-768x576.jpg 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280-16x12.jpg 16w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280-1200x900.jpg 1200w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/ai-generated-7992460_1280.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">illustrative image<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Gambling prevention of players with problem\nor pathological gambling, currently conceptualized\nas a behavioural pattern where individuals\nstake an object of value (typically money) on the\nuncertain prospect of a larger reward [1], [2], is\nof high societal importance. Research over the\npast decade has revealed multiple similarities between\npathological gambling and the substance\nuse disorders [3]. With the high accessibility of\nthe Internet, the incidence of pathological gambling\nhas increased. This disorder can result\nin significant negative consequences for the affected\nindividual and his\/her family too. Therefore\ndetecting early warning signs of problem\ngambling is crucial for maintaining player\u2019s wellbeing. This work is a joint effort of Slovak National\nCompetence Center for High-performance\nComputing, DOXXbet, ltd. \u2013 sports betting\nand online casino, and Codium, ltd. \u2013 software\ndeveloper of the DOXXbet sports betting and\niGaming platform, with the goal to enhance\ncustomer service and players\u2019 engagement\nvia identification and prevention of gambling\nbehaviour. This proof of concept is a foundation for future tools, which will help casino mitigate\nnegative consequences for players, even for a\nprice of less provision for the provider, as in\nline with European trends in risk management\nrelated to problem gambling.<\/p>\n\n\n\n<p>In our study we propose a completely\nunsupervised deep learning approach using\ntransformer-based AE architecture to detect\nanomalies in the dataset - players with anomalous\nbehaviour. The dataset at hand does not\ncomprehend the clinical diagnosis, and amongst\nother proxy indicators mentioned before only\nfew are available - requests to increase spending\nlimits, chasing losses by gambling more (referred\nto as chasing episodes later in this article), usage\nof multiple payment methods, frequent withdrawals\nof small amount of money and other\nmentioned later in the text. Clearly, not all the\nanomalous users must necessarily have problem\ngambling, hence the proxy indicators are\nused in combination with AE results, namely the\nanomaly score. The foundation of our approach\nrests on the idea that a compulsive gambler is an\nanomaly within the active casino players, with\nthe literature mentioning their fraction amongst\nall players being between 0.5% to 5% for chancebased\ngames.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"has-normal-font-size\">Data<\/h2>\n\n\n\n<p>The data acquired for this research consist of sequences\nof data points collected over time, tracking\nmultiple aspects of player\u2019s behaviour such\nas frequency and timing of their gaming activities,\nfrequency and amount of cash deposits,\npayment methods used when depositing cash,\ninformation about the bets, wins, losses, withdrawals\nand requests for change of deposit limit.\nFeature engineering resulted in 19 features in\na form of time series (TS), so that each feature consists of multiple time stamps. These features\ncan be classified into three categories - \u201dtime\u201d,\n\u201dmoney\u201d and \u201ddespair\u201d, as inspired by Seth et\nal. [7]. Table 1 summarizes the full set of TS\nfeatures with a short explanation.\nEach feature is a sequence of N values, where\neach value stands for one out of N consecutive\ntime windows. This value was produced by\naggregating daily data in the respective time\nwindow, with the time window length being\nspecified in the Table 1 together with the information\nabout the time window being sliding or\nnot. Hence, for each sample we needed a history\nof N time windows. Feature engineering procedure\nis displayed in Figure 1 and the final data\nshape is depicted in Figure 2.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-1024x284.png\" alt=\"\" class=\"wp-image-6867\" width=\"768\" height=\"213\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-1024x284.png 1024w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-300x83.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-768x213.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-1536x427.png 1536w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-2048x569.png 2048w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-18x5.png 18w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-1200x333.png 1200w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-1-1-1980x550.png 1980w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 1: Visualization of the data aggregation from daily basis into time windows, and eventually to TS features.\nt<sub>1<\/sub>, &#8230;, t<sub>450<\/sub>&nbsp;represent time stamps for daily data x1, ..., x450. Daily data points from a time window are aggregated into a\nsingle value zi for all i \u2208 (1, . . . , 8).<sub>1<\/sub>, &#8230;, x<sub>450<\/sub>. Denn\u00e9 z\u00e1znamy z&nbsp;\u010dasov\u00e9ho okna s\u00fa agregovan\u00e9 do jednej hodnoty z<sub>i<\/sub>&nbsp;pre v\u0161etky i&nbsp;\u2208&nbsp;(1, . . . , 8).<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-1024x557.png\" alt=\"\" class=\"wp-image-6868\" width=\"512\" height=\"279\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-1024x557.png 1024w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-300x163.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-768x417.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-1536x835.png 1536w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-2048x1113.png 2048w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-18x10.png 18w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-1200x652.png 1200w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/Picture-2-1980x1076.png 1980w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 2: Final data shape obtained after feature engineering.\nEach sample is represented by 19 features consisting\nof 8 time windows.<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"has-normal-font-size\"><strong>AE models comparison<\/strong> <\/h2>\n\n\n\n<p>Autoencoder is a \"self-supervised\" deep learning method suitable for anomaly detection in the Czech Republic. The idea behind using this type of neural network for anomaly detection is based on the model's reconstruction capability. AE learns to reconstruct the data in the training set and since the training set should ideally only contain \"normal\" observations, the model learns to reconstruct only such observations correctly. Therefore, when the input observation is anomalous, the trained AE model cannot reconstruct this input sufficiently correctly, resulting in a high reconstruction error. This reconstruction error can be used as an anomaly score for the given observation, where a higher score means a higher probability that the observation deviates from the general trend.<\/p>\n\n\n\n<p>In the study, we trained an AE model based on transformers, where both the encoder and decoder contain a layer called \"Multi Head Attention\" with four \"heads\" and 32-dimensional key and value vectors. This layer is followed by a classical neural network with so-called \"dropout\" layers and residual connections. The entire AE model has just over 100k trainable parameters.<\/p>\n\n\n\n<h2 class=\"has-normal-font-size\"><strong>Reconstruction loss and Prediction ability<\/strong><\/h2>\n\n\n\n<p>We performed a 3-fold\ncross-validation by splitting the data into training,\nvalidation, and test sets, and trained the\nmodels for each split to assess their stability. Resulting\naverage loss values and their variances\nare displayed in the Table 3. The average reconstruction\nerror of Transformer model is significantly\nlower than all the other models. LSTM B\nmodel comes second in the reconstruction performance\nand CNN model seems to have the\nworst prediction performance. Generally, the\ntest loss is observed to be always higher than\ntrain and validation losses. The reason for this\nis that those 211 data points that were removed\nfrom the training set in the data cleaning process,\nwere moved to the test set. Without moving these samples, the test loss for transformer-based\nmodel would be as low as 0.012, for CNN model\n0.33, for LSTM A model 0.27, and for LSTM B\nmodel 0.13. More detailed overview of the models\u2019 performance\nis displayed on the Figure 6 as histograms\nof loss values of the test set. All histograms have\nheavy right tail, which is expected for datasets\ncontaining anomalies.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer-1024x768.png\" alt=\"\" class=\"wp-image-6856\" width=\"512\" height=\"384\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer-1024x768.png 1024w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer-300x225.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer-768x576.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer-1536x1152.png 1536w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer-16x12.png 16w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer-1200x900.png 1200w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/hist_transformer.png 1920w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure\u00a03: Reconstruction error histograms of the transformer-based AE model for the test set. On the x-axis is the value of the anomaly score and on the y-axis is the frequency of the corresponding value.<\/figcaption><\/figure><\/div>\n\n\n<p>To demonstrate the quality of the CR reconstruction, the original (blue line) and predicted (red line) values for a randomly selected anomalous observation of one player are shown in Figure 4. The value of the anomaly score for the respective models is given in the caption of the graphs.<\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-1024x1024.png\" alt=\"\" class=\"wp-image-6857\" width=\"512\" height=\"512\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-1024x1024.png 1024w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-300x300.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-150x150.png 150w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-768x768.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-1536x1536.png 1536w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-2048x2048.png 2048w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-12x12.png 12w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-1200x1200.png 1200w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/fit_transformer_new-1980x1980.png 1980w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure\u00a04: Comparison of the predictive ability of AE models. All models reconstructed the same observation coming from the test set. Predictive ability: the blue line represents the input data, the red reconstruction obtained using the transformer-based AE model. The number shown in the graph header represents the anomaly score for that data sample.<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"has-normal-font-size\"><strong>Results<\/strong><\/h2>\n\n\n\n<p>Since clinical diagnosis was not part of the data we had, we can only rely on auxiliary indicators to identify players with potentially problem gambling. We approached this task by detecting anomalies in the data, but we are aware that not all anomalies necessarily indicate a gambling problem. Therefore, we will correlate the results of the AE model with the following auxiliary indicators:<\/p>\n\n\n\n<ul>\n<li>Mean number of logins in a time window.<\/li>\n\n\n\n<li>Mean number of withdrawals in a time window.<\/li>\n\n\n\n<li>Mean number of small and frequent withdrawals\nin a time window.<\/li>\n\n\n\n<li>Mean number of requests for the change of\nthe deposit limit in a time window.<\/li>\n\n\n\n<li>Sum of the chasing episodes in the time slot\nof N time window<\/li>\n<\/ul>\n\n\n\n<p>Figure 5 depicts the correlation of the anomaly\nscore with the proxy indicators. Each subplot contains 10 bars, each bar representing one\ndecile of the data samples (i.e. each bar represents\n10% of data samples sorted by anomaly\nscore). The bar colors represent the category\nvalue of the respective proxy indicator.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/logins.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/logins.png\" alt=\"\" class=\"wp-image-6858\" width=\"460\" height=\"288\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/logins.png 920w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/logins-300x188.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/logins-768x481.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/logins-18x12.png 18w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/a><figcaption class=\"wp-element-caption\">(a)<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/vybery.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/vybery.png\" alt=\"\" class=\"wp-image-6859\" width=\"460\" height=\"288\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/vybery.png 920w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/vybery-300x188.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/vybery-768x481.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/vybery-18x12.png 18w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/a><figcaption class=\"wp-element-caption\">(b)<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/smallfreqvybery.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/smallfreqvybery.png\" alt=\"\" class=\"wp-image-6860\" width=\"460\" height=\"288\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/smallfreqvybery.png 920w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/smallfreqvybery-300x188.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/smallfreqvybery-768x481.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/smallfreqvybery-18x12.png 18w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/a><figcaption class=\"wp-element-caption\">(c)<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/limitchange.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/limitchange.png\" alt=\"\" class=\"wp-image-6861\" width=\"462\" height=\"288\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/limitchange.png 923w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/limitchange-300x187.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/limitchange-768x479.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/limitchange-18x12.png 18w\" sizes=\"(max-width: 462px) 100vw, 462px\" \/><\/a><figcaption class=\"wp-element-caption\">(d)<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/chasingeps.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/chasingeps.png\" alt=\"\" class=\"wp-image-6862\" width=\"462\" height=\"289\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/chasingeps.png 923w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/chasingeps-300x188.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/chasingeps-768x480.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/07\/chasingeps-18x12.png 18w\" sizes=\"(max-width: 462px) 100vw, 462px\" \/><\/a><figcaption class=\"wp-element-caption\">(e)<br>Figure\u00a05: Each bar in the graphs represents one decile of the anomaly score (MSE). The colors represent the categories of the relevant auxiliary indicators, with category values specified in the legend.<\/figcaption><\/figure><\/div>\n\n\n<p>A distinctive pattern in players\u2019 behavior can\nbe observed, where players with larger anomaly\nscores tend to exhibit high values for all the indicators\nevaluated. Higher frequency of logins\nis proportionate to higher anomaly score with\nmore than half of the players in the last decile of\nreconstruction error having a mean number of logins\nin a time window greater than 50. The same\napplies for mean number of cash withdrawals\nin a time window. Players with low anomaly\nscore have almost none or very few withdrawals,\nwhilst more than one fourth of players in the\nlast anomaly score decile have two or more withdrawals\nin a time window on average. Another\nsecondary indicator we utilize is the number of\nsmall and frequent withdrawals. Most of the\nplayers with at least one of these events is in\n10% of players with the highest MSE. When analyzing\nanother indicator, namely the number\nof requests for a deposit limit change, we observe\na more subtle pattern. It is evident that\nplayers in the first five deciles generally have no\nrequests for a limit change (with very few exceptions),\nwhile as the anomaly score increases,\nthe frequency of limit change requests also tends\nto rise. The last proxy indicator depicted is the\nnumber of chasing episodes. A rising frequency\nof these events proportionate to their anomaly\nscore can be observed. More than half of the\nplayers in the last decile have at least one chasing\nepisode in the time window.<\/p>\n\n\n\n<p>If these plots are overlapped in order to identify\nthe portion of players fulfilling multiple\nproxy indicators, following observations result:\nin the last five percentiles of the anomaly scores\n98.6% of players satisfy at least one proxy indicator,\nand 77.3% satisfy at least three indicators.\nAs for the last two percentiles, so 2% of players\nwith the highest reconstruction error, almost\n90% of them satisfy at least three indicators. The\nthresholds used to calculate these proportion are\n&gt;= 1 chasing episode, &gt;= 1 limit change, &gt;= 1\nsmall and frequent withdrawal, &gt;= 31 logins\nand &gt;= 1.25 withdrawal on average per time\nwindow.<\/p>\n\n\n\n<h2 class=\"has-normal-font-size\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>In this work, we successfully applied a\ntransformer-based autoencoder (AE) to detect\nanomalies in the dataset of online casino players.\nThe aim was to detect problem gamblers\nin dataset at hand in an unsupervised manner.\n19 features were derived from the raw time series\n(TS) data reflecting players\u2019 behavior in the\ncontext of time, money and despair.\nWe compared the performance of this architecture\nwith three other AE architectures based on\nLSTM and convolutional layers and found that\nthe transformer-based AE achieved the best results\namongst the four models in terms of reconstruction capability. This model also showcases\nhigh correlation with proxy indicators such as\nthe number of logins, number of player\u2019s withdrawals,\nnumber of chasing episodes and other,\nthat are commonly mentioned in literature in relation\nto the gambling disorder. This alignment of AE\u2019s anomaly score with proxy indicators\nenables us to gain insights into prediction\u2019s effectiveness\nin identifying players with potential\nproblem gambling.\nEven though these proxy indicators were also\nused as predictors, we suggest to use them as a secondary check when detecting players with potential\nproblem gambling in order to avoid false\npositives, as not all anomalies must be linked to\nthe condition of gambling disorder.\nOur findings demonstrate the potential\nof transformer-based AEs for unsupervised\nanomaly detection tasks in TS data, particularly\nin the context of online casino player behavior.<\/p>\n\n\n\n<p><a href=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2023\/08\/nscc_gambling_en.pdf\">Full version of the article<\/a><\/p>\n\n\n\n<p><strong>References:<\/strong>:<\/p>\n\n\n\n<p>[1] Alex Blaszczynski and Lia Nower. \u201cA Pathways Model of Problem and Pathological Gambling\u201d. In: Addiction (Abingdon, England) 97 (June 2002), pp. 487\u201399. doi: 10.1046\/j.1360-0443.2002.00015.x.<\/p>\n\n\n\n<p>[2] National Research Council. Pathological Gambling: A Critical Review. Washington, DC: The National Academies Press, 1999. isbn: 978-0-309-06571-9. doi: 10 . 17226 \/ 6329. url: https :\/\/nap .nationalacademies.org\/catalog\/6329\/pathological &#8211; gambling &#8211; a &#8211; critical -review.<\/p>\n\n\n\n<p>[3] Luke Clark et al. \u201cPathological Choice: The Neuroscience of Gambling and Gambling Addiction\u201d. In: Journal of Neuroscience 33.45 (2013), pp. 17617\u201317623. issn: 0270-6474. doi:&nbsp;&nbsp;0.1523\/JNEUROSCI.3231-13.2013.eprint: https : \/ \/ www . jneurosci . org \/content \/ 33 \/ 45 \/ 17617 . full . pdf. url:<a href=\"https:\/\/www.jneurosci.org\/content\/33\/45\/17617\"> https:\/\/www.jneurosci.org\/content\/33\/45\/17617<\/a>.<\/p>\n\n\n\n<p>[4] Deepanshi Seth et al. \u201cA Deep Learning Framework for Ensuring Responsible Play in Skill-based Cash Gaming\u201d. In: 2020 19<sup>th<\/sup>&nbsp;IEEE International Conference on Machine Learning and Applications (ICMLA) (2020), pp. 454\u2013459.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<div class=\"is-horizontal is-content-justification-center is-layout-flex wp-container-5 wp-block-buttons\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/success-stories\/\">Success-Stories<\/a><\/div>\n<\/div>\n\n\n<div class=\"display-posts-listing grid\"><div class=\"listing-item\"><a class=\"image\" href=\"https:\/\/eurocc.nscc.sk\/en\/umela-inteligencia-a-superpocitac-ako-nova-zbran-proti-ekologickym-havariam\/\"><img width=\"300\" height=\"164\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/kl-300x164.png\" class=\"attachment-medium size-medium wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/kl-300x164.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/kl-768x420.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/kl-18x10.png 18w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/kl.png 908w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <a class=\"title\" href=\"https:\/\/eurocc.nscc.sk\/en\/umela-inteligencia-a-superpocitac-ako-nova-zbran-proti-ekologickym-havariam\/\"><strong>Artificial Intelligence and a Supercomputer as a New Weapon Against Environmental Disasters<\/strong><\/a> <span class=\"date\">26 Mar<\/span> <span class=\"excerpt-dash\">-<\/span> <span class=\"excerpt\">Scientists from Nitra, Slovakia are teaching machines to predict industrial failures before they can cause damage. Thanks to collaboration with the European supercomputer LUMI, they have developed a digital \u201cguardian\u201d capable of detecting pipeline leaks or manufacturing faults with high accuracy\u2014helping protect both the environment and companies\u2019 budgets.<\/span><\/div><div class=\"listing-item\"><a class=\"image\" href=\"https:\/\/eurocc.nscc.sk\/en\/slovensky-recept-na-ferove-hry-a-spokojnejsich-hracov\/\"><img width=\"300\" height=\"164\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/lm-300x164.png\" class=\"attachment-medium size-medium wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/lm-300x164.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/lm-768x420.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/lm-18x10.png 18w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/lm.png 908w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <a class=\"title\" href=\"https:\/\/eurocc.nscc.sk\/en\/slovensky-recept-na-ferove-hry-a-spokojnejsich-hracov\/\"><strong>The Slovak Recipe for Fair Play and Happier Players<\/strong><\/a> <span class=\"date\">25 Mar<\/span> <span class=\"excerpt-dash\">-<\/span> <span class=\"excerpt\">Do you play games on your phone and sometimes feel like the game just doesn\u2019t understand you? Experts from Nitra, Slovakia, have used one of Europe\u2019s most powerful supercomputers to change that. Thanks to the Italian giant named Leonardo, they discovered how to read between the lines of player behavior and make the gaming experience more personal and fair.<\/span><\/div><div class=\"listing-item\"><a class=\"image\" href=\"https:\/\/eurocc.nscc.sk\/en\/mestske-budovy-sa-prebudzaju-slovenska-ai-dava-druhu-sancu-nevyuzitym-priestorom\/\"><img width=\"300\" height=\"200\" src=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/NextUseAI-300x200.png\" class=\"attachment-medium size-medium wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/NextUseAI-300x200.png 300w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/NextUseAI-1024x683.png 1024w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/NextUseAI-768x512.png 768w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/NextUseAI-18x12.png 18w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/NextUseAI-1200x800.png 1200w, https:\/\/eurocc.nscc.sk\/wp-content\/uploads\/2026\/03\/NextUseAI.png 1536w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <a class=\"title\" href=\"https:\/\/eurocc.nscc.sk\/en\/mestske-budovy-sa-prebudzaju-slovenska-ai-dava-druhu-sancu-nevyuzitym-priestorom\/\"><strong>Urban buildings awaken: Slovak AI gives a second chance to underused spaces<\/strong><\/a> <span class=\"date\">4 Mar<\/span> <span class=\"excerpt-dash\">-<\/span> <span class=\"excerpt\">Mest\u00e1 s\u00fa \u017eiv\u00e9 organizmy, ktor\u00e9 sa neust\u00e1le menia. Mnoh\u00ed z n\u00e1s v\u0161ak v susedstve denne m\u00ed\u0148aj\u00fa tich\u00e9 svedectv\u00e1 minulosti \u2013 pr\u00e1zdne \u0161koly, nevyu\u017e\u00edvan\u00e9 \u00farady \u010di ch\u00e1traj\u00face verejn\u00e9 budovy. \u010casto si kladieme ot\u00e1zky: \u201ePre\u010do je to zatvoren\u00e9?\u201c \u201eNemohol by tu by\u0165 rad\u0161ej denn\u00fd stacion\u00e1r, \u0161k\u00f4lka alebo kult\u00farne centrum?\u201c<\/span><\/div><\/div>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Gambling prevention of online casino players is a challenging ambition with positive impacts both on player\u2019s well-being, and for casino providers aiming for responsible gambling. To facilitate this, we propose an unsupervised deep learning method with an objective to identify players showing signs of problem gambling based on available data in a form of time series. We compare the transformer-based autoencoder architecture for anomaly detection proposed by us with recurrent neural network and convolutional neural network autoencoder architectures and highlight its advantages. Due to the fact that the players\u2019 clinical diagnosis was not part of the data at hand, we evaluated the outcome of our study by analyzing correlation of anomaly scores obtained from the autoencoder and several proxy indicators associated with the problem gambling reported in the literature.<\/p>","protected":false},"author":2,"featured_media":6849,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/posts\/6848"}],"collection":[{"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/comments?post=6848"}],"version-history":[{"count":15,"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/posts\/6848\/revisions"}],"predecessor-version":[{"id":8532,"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/posts\/6848\/revisions\/8532"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/media\/6849"}],"wp:attachment":[{"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/media?parent=6848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/categories?post=6848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eurocc.nscc.sk\/en\/wp-json\/wp\/v2\/tags?post=6848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}