<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Classification of e-commerce customers based on Data Science techniques</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Piskunov</string-name>
          <email>EPiskunova@kneu.edu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rostysl</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>v Klo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>hko [</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Kyiv National Economic University named after Vadym Hetman</institution>
          ,
          <addr-line>Kyiv</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <fpage>6</fpage>
      <lpage>20</lpage>
      <abstract>
        <p>Currently, most organizations are trying to build their data-driven strategies investing heavily in developing their own intelligent decision-making systems. But there are many small online retailers in the economy who are looking to implement business intelligence systems but still lack the necessary knowledge and expertise to do it. The article provides an example of using data science techniques for classification online store customers by their purchasing activity. The analysis of different approaches allowed us to propose the solution of this problem in two stages. At first, we segmented our e-commerce customers by RFM metrics using the k-means method. The algorithms for automated selection of the number of clusters and the initial selection of group centers are applied. There were 6 groups of clients highlighted: first cluster - lost clients; cluster 2 is a new wholesale buyer; cluster 3 - customers that the company may soon lose; cluster 4 active retail buyer; cluster 5 new retail customers; cluster 6 is an active wholesale buyer. In the second stage, with help of machine learning algorithms the customers' classification system was built. The presence of the second stage is conditioned by the need to take into account the constant updating of the client base and accumulation of new information. Tenfold crossvalidation was performed to avoid retraining models. The analysis of calcu?ations by 5 classification methods allowed us to give the advantage of the "random forest" method. To perform the analysis and all calculations this study uses R programming language and RStudio system.</p>
      </abstract>
      <kwd-group>
        <kwd>clusterization</kwd>
        <kwd>classification</kwd>
        <kwd>rfm - model</kwd>
        <kwd>e-commerce</kwd>
        <kwd>machine learning</kwd>
        <kwd>data science</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Retail is one of the fastest-growing sectors of the Ukrainian economy. Today it is an
almost unique market in Ukraine that has a lot in common with perfect competition.
There are thousands of players in the segment that realize millions of different
products. Most of them are small and medium-sized businesses. Year by year it becomes
more and more difficult to win the loyalty of new customers and retain the loyalty of
regular customers. Therefore, the ability to offer an individual approach to each of the
clients in the coming years will be the only condition for successful business activity.
Copyright © 2020 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>In view of the rapid economy digitalization, e-commerce is becoming one of the
most important areas in retail activity. Despite the fact that Ukraine is far behind the
global pace of e-commerce market development, in recent years’ Ukrainian online
sales growth is even faster than in Europe. Nowadays, e-commerce companies have to
refer to clients' wants and need in the decision-making process to meet the
requirements of today's economy. At the same time, everyday contact with thousands of
customers makes it difficult to consider each of them. The solution to this problem is
facilitated by the development of a clear segmentation of the client base, which can be
done based on the mathematical modeling methods.</p>
      <p>Thus, modeling consumer behavior is an actual problem, which solution will not
only improve the efficiency of e-commerce but also contribute to the development of
the whole economy and better fulfilling of consumers' needs. In particular, the
important task of e-marketing is to classify online store consumers by the level of their
purchasing activity. The peculiarities of this task are a large amount of available data
and their constant updating and accumulation, which requires the use of Data Science
techniques, including machine learning methods.</p>
      <p>The goal of this work is to classify online store customers by the level of their
purchasing activity based on Data Science techniques, including machine learning
methods.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Literature review</title>
      <p>
        The majority of Ukrainian scientists' researches is based on the analysis of the client
base, which is supported only by a personal understanding of the process [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Also,
the overwhelming amount of scientific work is based on the socio-demographic
statistics of an individual company or the whole country [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. E-commerce customer
activity data is almost not investigated. Recently, the first publications with examples of the
application of machine learning methods in marketing have started to appear in the
Ukrainian scientific space [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. But most of them do not take full advantage of these
technologies. For example, if cluster analysis methods are used, then the number of
clusters is selected based on their own expert judgment [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. As the analysis of
Ukrainian scientific works shows, machine learning algorithms, the RFM model, and the
process of automated decision-making are hardly used in them. Even if these
technologies are used, they are quite limited. For example, the RFM model is used, but the
segmentation is performed manually [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ].
      </p>
      <p>
        Foreign scientific literature has many studies that reveal the peculiarities of the
usage of intelligent systems in marketing [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Most papers describe the complete
process of building an automated customer analysis system which includes: calculating
RFM activity metrics, customer clustering using the machine learning methods (e.g.
K-means), developing an individual approach for each segment [
        <xref ref-type="bibr" rid="ref7 ref8 ref9">7,8,9</xref>
        ]. However, the
methodology for selecting the number of clusters to which necessary to divide the
input data is hardly addressed. As a rule, only one method is used - “average
silhouette width”, which usually does not allow to solve the problem correctly [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. It is
advisable to decide the required number of clusters, based on the value of 26
additional criteria that can be obtained using the NbClust data analysis package in RStudio
[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>
        Also, the question of the further efficiency of the built algorithms is almost not
solved. Most of the research in this area details the methodology for clusterization's
existing customer base, but they do not take into account that new clients are coming
every day and current clients tend to change their behavior over time. It is considered
appropriate to consider clustering as the first stage of data analysis, which only allows
us to understand which customer groups are active, while it is important to have a
system for automatically assigning a segment to customers. In scientific research,
there are two approaches to solving this problem - fuzzy logic methods [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] or
classification algorithms [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. The analysis of different approaches allows us to give
preference to the classification model.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Proposed methodology and experiments</title>
      <p>The approach proposed in the paper is implemented in 2 stages: the first stage
involves customer segmentation by cluster analysis methods; the second stage involves
the development of a client classification algorithm that would allow continuously
update current clients segment and assign a segment to new customers.</p>
      <p>This research is aimed to reduce the human impact in strategic decisions making.
Therefore, particular attention is paid to the accuracy and relevance of the proposed
methods and algorithms. The number of clusters is selected based on 26 different
criteria and indices. For classification task were applied 5 different models with
tenfold cross-validations. After that, the most accurate and appropriate algorithm was
chosen for implementation.</p>
      <p>Note that all calculations are performed using the R-Studio software with R
programming techniques.
3.1</p>
      <sec id="sec-3-1">
        <title>Execution of RFM Analysis</title>
        <p>
          The study was performed on the sample of data from one of the online stores [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].
Data include 1 067 371 transactions of purchase and return of goods during the period
from 01.09.2009 to 09.12.2011.
        </p>
        <p>The database contains the following information: Invoice - unique operation code;
StockCode - unique product code; Description - the name of the product; Quantity
the quantity of purchased/returned products; InvoiceDate - date of operation; Price
the price of the goods; Customer ID - unique customer code; Country - a country of
the operation.</p>
        <p>
          The first task to be addressed in the research process is the selection of criteria for
evaluating the level of customer purchasing activity. We will take a classic approach
to measure purchasing activity - RMF-model (Recency - Frequency - Monetary) [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ].
        </p>
        <p>Recency for each individual customer is calculated as the difference between the
actual date in the database and the date of the customer's last purchase. In our case,
the metric is measured in days. The frequency of purchases (Frequency) for each
individual customer is determined by the number of transactions performed by the
client during his client life. Monetary for each individual customer is defined as the
total return on all customer transactions during his or her client life. In our case, the
metric is measured in dollars.</p>
        <p>In the previous research phase, these customer activity metrics were calculated for
each customer in the sample. After that, the characteristics of the statistical
distributions of Recency, Frequency, Monetary were calculated, namely: average, minimum
and maximum values of indicators, as well as 1, 2 and 3 quartiles. The values of these
characteristics are shown in Fig. 1.
As you can see, the average customer of our online store had the last purchase 202
days ago. On average the customers buy 6 goods during the client's life while
spending $ 2 720.</p>
        <p>Further, we will use these indicators as the main metrics.
The process of clustering an online store's customer base relates to Unsupervised
Learning algorithms where algorithms do not receive any clues as to the desired
result, but rather generate new results based on the data. Unsupervised learning
technologies are commonly used at the beginning of the study. The main result of the
implementation of these algorithms is to find certain patterns in the available data and
to characterize their structure.</p>
        <p>The most efficient and simple algorithm for cluster analysis is k-means. This
method is very common in economic research, but its practical application for
clustering e-commerce customers has some difficulties.</p>
        <p>
          Firstly, the final results are sensitive to the initial random selection of group
centers. To solve this problem, a procedure involving multiple executions of an algorithm
with different random assignment of initial centroids was applied. An iteration with a
minimum value of is selected as the final clustering option. Within Cluster
Sum of Squares ( ) measures the squared average distance of all the points
within a cluster to the cluster centroid [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ].
( ),
(1)
where ( ) is the sum of Euclidean distances between points within the cluster l;
- number of points in cluster l; k is the number of clusters.
        </p>
        <p>
          The sum of Euclidean distances between points within cluster l is calculated by the
formula:
( )
∑
(
),
(2)
where n is the number of points in cluster l; is the cent of the weight of cluster l
[
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
        </p>
        <p>The second problem is the need to prioritize a fixed number of clusters for
partitioning, which is certainly not always chosen to be optimal. Therefore, one of the
main tasks of cluster analysis is to select the optimal value of k.</p>
        <p>There are several versions of the solution:
 quantity is determined by business needs. This approach is commonly used if there
is exist a proven customer classification system in the enterprise segment. An
example would be the distribution of customers by their purchasing activity level
(Low, Below Average, Medium, High);
 quantity is selected using machine learning algorithms. This approach is used when
the decision-maker has no understanding of the typology of their clients. Machine
learning algorithms help you to select customer classes based on the level of
similarity of their behavior;
 a mixture of the first and second approaches. The most common approach is when
a decision is made based both on business understanding and the results of
mathematical modeling.</p>
        <p>
          The basic methods of machine learning that help to solve the problem of choosing the
number of clusters are the methods of "elbow" and "medium silhouette". The elbow
method explores the nature of the (1) variation spread with an increasing
number of groups k. Combining all n observations into one group, we have the largest
intra-cluster variance, which will decrease to 0 as k → n [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ].
        </p>
        <p>Another, popular method of assessing the quality of the model is the "Average
silhouette width". The value of the silhouette shows how similar the object is to its
cluster compared to other clusters.</p>
        <p>Suppose that the data were clustered into k clusters. For the point (the
point ), let:
(3)
; |
(
)
| |
∑
(
),
where ( ) is the average distance from
| | is the number of objects in clusters.</p>
        <p>We can interpret ( ) as a measure of how well
smaller the value, the better the destination).</p>
        <p>Then we determine the average dissimilarity of the point
the average distance from to all points (where
, we now define:
to other objects in the cluster
is assigned to its cluster (the
to some cluster as
). For each data point
(
)
| |
∑
(
),
where ( ) is the smallest average distance to all points of any other cluster,
where is not a member.</p>
        <p>A cluster with this smallest mean difference is considered a "neighboring cluster"
to , since it is the next cluster best suited for the point . Now let's define the
silhouette of one data point :
(4)
(5)
(
)</p>
        <p>(( () ) ( ( ) )),
where ( ) is the average distance from to other objects in the cluster ;
( ) is the smallest average distance to all points of any other cluster.</p>
        <p>
          The silhouette varies from -1 to +1, where a high value indicates that the object is
well-matched to its own cluster. If most objects are of high value, then the clustering
configuration is appropriate [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ].
        </p>
        <p>By the formula (1) for each number of clusters (from 1 to 10), the level of variance
explained by clustering was determined (Fig. 2).
In Fig. 2 we need to identify the breaking point where the drop starts to slow. Points
3, 6 and 8 look most similar to the hacking point, but decisions made on one approach
alone are in most cases not accurate.</p>
        <p>Therefore, the next step will be a silhouette check. Using formulas (3) - (5), we
calculate the value of "silhouette" for each variant of the number of clusters (from 1 to
10). A graphical representation of the calculation results is shown in Fig. 3.
By this method, we look for the highest value of this indicator. As we can see in Fig.
3, the optimal number of clusters is 2 (6 in second place).</p>
        <p>NbClust analytical package was used to refine the results, which allows us to
calculate 26 additional criteria.</p>
        <sec id="sec-3-1-1">
          <title>Ball</title>
        </sec>
        <sec id="sec-3-1-2">
          <title>Ptbiserial</title>
        </sec>
        <sec id="sec-3-1-3">
          <title>Dunn</title>
        </sec>
        <sec id="sec-3-1-4">
          <title>Rubin</title>
        </sec>
        <sec id="sec-3-1-5">
          <title>Cindex DB</title>
        </sec>
        <sec id="sec-3-1-6">
          <title>Duda</title>
        </sec>
        <sec id="sec-3-1-7">
          <title>Pseudot2</title>
        </sec>
        <sec id="sec-3-1-8">
          <title>Beale</title>
        </sec>
        <sec id="sec-3-1-9">
          <title>Frey</title>
        </sec>
        <sec id="sec-3-1-10">
          <title>McClain</title>
        </sec>
        <sec id="sec-3-1-11">
          <title>SDindex</title>
        </sec>
        <sec id="sec-3-1-12">
          <title>SDbw</title>
        </sec>
        <sec id="sec-3-1-13">
          <title>Maximum difference between hierarchy levels of the index</title>
        </sec>
        <sec id="sec-3-1-14">
          <title>Maximum value of the index</title>
        </sec>
        <sec id="sec-3-1-15">
          <title>Maximum value of the index Minimum value of second differences between levels of the index</title>
        </sec>
        <sec id="sec-3-1-16">
          <title>Minimum value of the index</title>
        </sec>
        <sec id="sec-3-1-17">
          <title>Minimum value of the index</title>
        </sec>
        <sec id="sec-3-1-18">
          <title>Smallest number of clusters</title>
          <p>such that index &gt; criticalValue</p>
          <p>Smallest number of clusters
such that index &lt; criticalValue
number of clusters such that
critical value of the index &gt;=
alpha
the cluster level before that
index value &lt; 1.00</p>
        </sec>
        <sec id="sec-3-1-19">
          <title>Minimum value of the index</title>
        </sec>
        <sec id="sec-3-1-20">
          <title>Minimum value of the index</title>
        </sec>
        <sec id="sec-3-1-21">
          <title>Minimum value of the index The results of calculations for each of the indices (Table 1) are presented in the Table. 2. The optimum values for each index are in bold. 14</title>
          <p>Index</p>
          <p>In Fig. 4 presents the number of criteria that supported the corresponding number
of clusters. As we can see, the number of clusters in size 3 showed itself best (eight
criteria selected this number). The next best option is to have 2 and 6 clusters. We can
immediately discard option "2" as it will not bring us any value in future calculations.</p>
          <p>Therefore, the main options are 3 and 6 clusters. The next step will be the practical
implementation of the k - means method and validation of the results on business
logic. The clients were divided into 3 and 6 clusters. Tables 3 and 4 show the average
values of RFM metrics for the case of clusters 3 and 6, respectively.</p>
          <p>The analysis of Table 3 allows us to give the following interpretation of clusters:
 Cluster 1. This includes customers who, on average, make small purchases every 2
months.
 Cluster 2. This includes wholesale buyers who, on average, purchase a large
number of goods once a month for a considerable amount.
 Cluster 3. Here, retail customers make an average purchase once a year.</p>
          <p>As can be seen from Table 4, the resulting clusters characterize the following types
of clients:
 Cluster 1. Lost clients - Has made less than 2 purchases, the last of which was over
a year ago.
 Cluster 2. New wholesale buyer - high average check and activity, but it's been a
while since the first purchase. Efforts must be made to increase customer loyalty to
the business.
 Cluster 3. Customers whose we will lose soon. They showed typical activity,
however, a long time has passed since the last purchase. We should pay attention to
these customers and try to persuade them to do more frequent operations.
 Cluster 4. Active retail buyer - high activity, buys for a long period, average check.</p>
          <p>The most valuable and loyal type of customer for the business.
 Cluster 5. New retail customers - high activity, but during a short period, average
check. Efforts should be made to turn them into regular customers.
 Cluster 6. Active wholesale buyer - high average check and activity, buys over a
long period. The most profitable type of customers.</p>
          <p>Given the business logic, it was decided that the division into 6 customer groups is
more acceptable and better characterizes the current situation of the functioning of the
online store. The number of clients in each cluster is shown in Table 5.
3.3</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>Classification of online store customers based on machine learning methods</title>
        <p>
          The next step after customer base segmentation is to build classification models for
the distribution of e-commerce customers by these segments. The classification is the
task of dividing the set of observations or objects by the values of certain attributes
into a priori given groups called classes. Within each of these groups, objects are
considered to be similar to each other [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ].
        </p>
        <p>The most common machine learning methods for classification are Linear
discriminant analysis (LDA); Support vector machine (SVM), Classification and regression
trees (CART), k - nearest neighbors (KNN), Random forests (RF).</p>
        <p>Discriminant Analysis is a kind of multidimensional data analysis designed to
solve random pattern recognition problems. It is used to decide what factors divide
(“discriminate") certain data sets (so-called "groups").</p>
        <p>
          SVM (support vector machine) is a set of similar supervised learning algorithms
used for classification and regression analysis tasks. A feature of the reference vector
method is the constant reduction of the empirical classification error and the intention
to increase the distance, so this method is also known as the maximum distance
classification method [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ].
        </p>
        <p>The decision tree develops solutions with the help of a tree model. The algorithm
splits the sample into two or more homogeneous sets (branches) based on the most
significant differentiators of the input variables. To select a differentiator (predictor),
the algorithm takes into account all the features and makes a binary partition. He then
selects the lowest cost option (the highest precision) and repeats recursively until the
successful partitioning of the data across all branches (or reaches the maximum
depth).</p>
        <p>The Classification and Regression Tree (CART) is one of the implementations of
the decision tree. Periodic nodes of trees of classification and regression are root and
internal nodes - branches. The end nodes are leaf nodes. Each periodic node
represents one input variable (x) and a splitting point on that variable; leaf nodes represent
the output variable (y). The model is used to predict the following algorithm: it is
necessary to go through all the splits of a tree in order to reach the node "leaves" and
deduce the value present in it.</p>
        <p>Random Forest (RF) is an ensemble model that builds several trees and classifies
objects on a "vote" basis. That is, the object belongs to the class that has the majority
of votes from all the trees. The algorithm trains several decision trees on different
subsamples of data and uses the average to improve model prediction accuracy.</p>
        <p>
          The K-Nearest Neighborhood Classification (KNN) algorithm assumes that objects
are divided into different classes so that they can be classified based on their
similarity. The distance between the objects may be a measure of similarity. KNN does not
need a training phase, it is trained in the sense that it begins to classify data points at
once, based on the majority of votes of its neighbors. The object is assigned the class
that is most common among its k nearest neighbors. [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ]
        </p>
        <p>The data set was divided into training and test samples (75% and 25%
respectively). As a result, the training sample includes data about 3388 clients, and the test
sample - 1130 clients. "Accuracy" was used to evaluate the quality of the simulation,
which is the ratio of correctly distributed customers to their total. The clients are
classified according to the 5 methods presented above (LDA, CART, KNN, SVM, RF).
Tenfold cross-validation was applied during the implementation of the customer
classification algorithm. It is necessary to test whether the simulation results are
dependent on a particular dataset. A ten-fold test involves splitting the sample into ten
randomly selected sets (test and training samples) and testing the model built on them.</p>
        <p>Table 5 shows the characteristics of the Accuracy distributions (minimum,
maximum and average values, as well as 1, 2, and 3 quartiles) obtained from the
training sample for each method.</p>
        <p>As can be seen from Table 5, the RF model showed the smallest error in the
training sample (mean 0.99). Using a built "random forest" model, we check it on a
test sample. The results of the customers' distribution by classes are presented in
Table 6.</p>
        <p>On the test sample, this algorithm showed an accuracy of 99%, so RF was chosen
to implement the classification process for the entire data sample (Table 7).</p>
        <p>Each cluster characterizes a specific group of customers that are similar in
purchasing activity. At the same time, clients have a significant difference between
clusters. A graphical representation of the difference between the level of purchasing
activity in different clusters is shown in Fig. 5-7.</p>
        <p>Segment
t
s
a
c
e
r
o
F
1
2
3
4
5
6
The paper deals with the task of classifying online store customers by their purchasing
activity based on Data Science techniques, including machine learning methods. The
analysis of different approaches allowed us to propose the solution of this problem in
two stages.</p>
        <p>First, the customers of the online store were segmented according to the k-means
method by RFM indicators, using algorithms for automated selection of the number of
clusters and initial centroids.</p>
        <p>There were 6 customer groups found: cluster 1 lost clients - Has made less than 2
purchases, the last of which was over a year ago; cluster 2 new wholesale buyer - high
average check and activity, but it's been a while since the first purchase; cluster 3
customers whose we will lose soon; cluster 4 active retail buyer - high activity, buys
for a long period, average check; cluster 5 new retail customers - high activity, but
during a short period, average check; cluster 6 active wholesale buyer - high average
check and activity, buys over a long period.</p>
        <p>The second step of the classification procedure, which is already directly carried
out the classification of customers, due to the need to take into account the constant
updating of the client base and the accumulation of new information. The analysis of
calculations by 5 classification methods allowed us to give advantages of the "random
forest" method.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Pursky</surname>
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Masokha</surname>
            <given-names>D.</given-names>
          </string-name>
          <article-title>Method of building a network of storefronts of online stores based on MVC architecture /</article-title>
          / Business Inform.
          <article-title>-</article-title>
          <year>2017</year>
          . -
          <fpage>№</fpage>
          10. - P.
          <fpage>319</fpage>
          -
          <lpage>324</lpage>
          . (in Ukrainian)
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Kondruk</surname>
            <given-names>N.</given-names>
          </string-name>
          <article-title>"Using a longitudinal measure of similarity in clustering problems" Radio electronics, informatics</article-title>
          , control, no.
          <volume>3</volume>
          (
          <issue>46</issue>
          ),
          <year>2018</year>
          , p.
          <fpage>98</fpage>
          -
          <lpage>105</lpage>
          . doi:
          <volume>10</volume>
          .15588 /
          <fpage>1607</fpage>
          -3274- 2018-3-11 (in Ukrainian)
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Roskladka</surname>
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Roskladka</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dzigman</surname>
            <given-names>O</given-names>
          </string-name>
          .
          <article-title>Cluster analysis of the client database of enterprises of the service industry. Economy and management of the national economy</article-title>
          .
          <source>International Economic Relations. No</source>
          .
          <volume>2</volume>
          (
          <issue>35</issue>
          ),
          <year>2019</year>
          . p.
          <fpage>151</fpage>
          -
          <lpage>159</lpage>
          (in Ukrainian)
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Matsuka</surname>
            <given-names>V</given-names>
          </string-name>
          .
          <article-title>Marketing technology of forming consumer loyalty in the tourist services market / V. Matsuka, A</article-title>
          . Balabanyts // Bulletin of the Mariupol State University. Series: Economics: Coll. of sciences. wash / goal ed.
          <source>KV Balabanov. - Mariupol</source>
          ,
          <year>2017</year>
          . - Issue. 14. P.
          <volume>177</volume>
          -
          <fpage>187</fpage>
          . (in Ukrainian)
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. Shulgina L.
          <article-title>"Methodical instructions on the application of analysis and quality assessment of tourist services" Business Inform</article-title>
          , no.
          <volume>3</volume>
          (
          <issue>482</issue>
          ),
          <year>2018</year>
          , pp.
          <fpage>180</fpage>
          -
          <lpage>185</lpage>
          . (in Ukrainian)
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Kamthania</surname>
            , Deepali &amp; Pahwa, Ashish &amp; Madhavan,
            <given-names>Srijit.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Market Segmentation Analysis and Visualization Using K-Mode Clustering Algorithm for E-Commerce Business</article-title>
          .
          <source>Journal of Computing and Information Technology</source>
          .
          <volume>26</volume>
          .
          <fpage>57</fpage>
          -
          <lpage>68</lpage>
          .
          <fpage>10</fpage>
          .20532/cit.
          <year>2018</year>
          .
          <volume>1003863</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sain</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Guo</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <article-title>Data mining for the online retail industry: A case study of RFM model-based customer segmentation using data mining</article-title>
          .
          <source>J Database Mark Cust Strategy Manag</source>
          <volume>19</volume>
          ,
          <fpage>197</fpage>
          -
          <lpage>208</lpage>
          (
          <year>2012</year>
          ). https://doi.org/10.1057/dbm.
          <year>2012</year>
          .17
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Dogan</surname>
            , Onur &amp; Ayçin, Ejder &amp; Bulut,
            <given-names>Zeki.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>CUSTOMER SEGMENTATION BY USING RFM MODEL AND CLUSTERING METHODS: A CASE STUDY IN RETAIL INDUSTRY</article-title>
          .
          <source>International Journal of Contemporary Economics and Administrative Sciences. 8</source>
          .
          <fpage>1</fpage>
          -
          <lpage>19</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Ait</surname>
            <given-names>daoud</given-names>
          </string-name>
          , Rachid. (
          <year>2015</year>
          ).
          <article-title>Customer Segmentation Model in E-commerce Using Clustering Techniques and LRFM Model: The Case of Online Stores in Morocco</article-title>
          .
          <source>International Journal of Computer</source>
          , Electrical, Automation,
          <source>Control and Information Engineering</source>
          .
          <volume>9</volume>
          .
          <fpage>1795</fpage>
          -
          <lpage>1805</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>P.</given-names>
            <surname>Anitha and M. M. Patil</surname>
          </string-name>
          ,
          <article-title>RFM model for customer purchase behavior using K-Means algorithm</article-title>
          ,
          <source>Journal of King</source>
          Saud University -Computer and Information Sciences,https://doi.org/10.1016/j.jksuci.
          <year>2019</year>
          .
          <volume>12</volume>
          .011
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Charrad</surname>
            , Malika &amp; Ghazzali, Nadia &amp; Boiteau, Véronique &amp; Niknafs,
            <given-names>Azam.</given-names>
          </string-name>
          (
          <year>2013</year>
          ).
          <article-title>An examination of indices for determining the number of clusters: NbClust Package</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Ansari</surname>
            , Azarnoush &amp; Riasi,
            <given-names>Arash.</given-names>
          </string-name>
          (
          <year>2016</year>
          ).
          <article-title>Customer Clustering Using a Combination of Fuzzy C-Means and Genetic Algorithms</article-title>
          .
          <source>International Journal of Business and Management. 11. 59. 10</source>
          .5539/ijbm. v11n7p59.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Mathivanan</surname>
            ,
            <given-names>N.M.N.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Md</surname>
            .ghani,
            <given-names>N.A.</given-names>
          </string-name>
          &amp;
          <string-name>
            <surname>Mohd Janor</surname>
          </string-name>
          , Roziah. (
          <year>2018</year>
          ).
          <article-title>Improving classification accuracy using clustering technique</article-title>
          .
          <source>Bulletin of Electrical Engineering and Informatics</source>
          .
          <volume>7</volume>
          .
          <fpage>465</fpage>
          -
          <lpage>470</lpage>
          .
          <fpage>10</fpage>
          .11591/eei. v7i3.
          <fpage>1272</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Online Retail II Data Set</surname>
            <given-names>URL</given-names>
          </string-name>
          : https://archive.ics.uci.edu/ml/datasets/Online+Retail+II
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Wei</surname>
          </string-name>
          ,
          <string-name>
            <surname>Jo-Ting</surname>
          </string-name>
          &amp; Lin,
          <string-name>
            <surname>Shih-Yen</surname>
          </string-name>
          &amp; Wu,
          <string-name>
            <surname>Hsin-Hung.</surname>
          </string-name>
          (
          <year>2010</year>
          ).
          <article-title>A review of the application of RFM model</article-title>
          .
          <source>African Journal of Business Management December Special Review</source>
          .
          <volume>4</volume>
          .
          <fpage>4199</fpage>
          -
          <lpage>4206</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Shitikov</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mastitsky</surname>
            <given-names>S</given-names>
          </string-name>
          .
          <article-title>Classification, regression, Data Mining algorithms using</article-title>
          R. URL: https://ranalytics.github.io/data-mining/
          <fpage>101</fpage>
          -Partitioning-Algos.html. (in Russian)
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Bertagnolli</surname>
            <given-names>N.</given-names>
          </string-name>
          <article-title>Elbow Method and Finding the Right Number of Clusters</article-title>
          . URL: http://www.nbertagnolli.com/jekyll/update/
          <year>2015</year>
          /12/10/Elbow.html.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Lengyel</surname>
          </string-name>
          , Attila &amp;
          <string-name>
            <surname>Botta-Dukat</surname>
            ,
            <given-names>Zoltan.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Silhouette width using generalized mean - a flexible method for assessing clustering efficiency</article-title>
          .
          <volume>10</volume>
          .1101/434100.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Lavrenyuk</surname>
            <given-names>M.</given-names>
          </string-name>
          <article-title>An overview of machine learning methods for the classification of large volumes of satellite data / [MS</article-title>
          . Lavrenyuk, OM Novikov];
          <source>Systems research and information technology</source>
          .
          <year>2018</year>
          . №. 1. P.
          <volume>52</volume>
          -
          <fpage>71</fpage>
          . (in Ukrainian)
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Soofi</surname>
            , Aized &amp; Awan,
            <given-names>Arshad.</given-names>
          </string-name>
          (
          <year>2017</year>
          ).
          <article-title>Classification Techniques in Machine Learning: Applications and Issues</article-title>
          .
          <source>Journal of Basic &amp; Applied Sciences</source>
          .
          <volume>13</volume>
          .
          <fpage>459</fpage>
          -
          <lpage>465</lpage>
          .
          <fpage>10</fpage>
          .6000/1927-
          <lpage>5129</lpage>
          .
          <year>2017</year>
          .
          <volume>13</volume>
          .76.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Akinsola</surname>
            ,
            <given-names>J E T</given-names>
          </string-name>
          . (
          <year>2017</year>
          ).
          <article-title>Supervised Machine Learning Algorithms: Classification and Comparison</article-title>
          .
          <source>International Journal of Computer Trends and Technology (IJCTT)</source>
          .
          <volume>48</volume>
          .
          <fpage>128</fpage>
          -
          <lpage>138</lpage>
          .
          <fpage>10</fpage>
          .14445/22312803/IJCTT-V48P126.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>