Telecom user churn prediction method, device, equipment and medium

By introducing distribution density calculation and local outlier factor index into the LOF algorithm, the problem of difficult parameter selection of the traditional LOF algorithm is solved, the accuracy of user churn prediction is improved, and effective identification and early warning of potential outliers are achieved.

CN117575675BActive Publication Date: 2024-10-11JIANGSU ZHIHENG INFORMATION TECH SERVICES CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311537726.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2024-10-11
Estimated Expiration
2043-11-17

AI Technical Summary

Technical Problem

The traditional LOF algorithm has difficulties in selecting parameter k in user churn prediction, resulting in large detection errors and inability to effectively predict user churn in data sets with unknown outliers.

Method used

By constructing user characteristic data, introducing distribution density calculation, combined with the improved LOF algorithm, using the dual measurement indicators of distribution density and local outlier factor, reversely restricts the selection of parameter k, and identifies potential outliers.

Benefits of technology

It improves the accuracy of abnormal point detection, reduces the false alarm rate, accurately identifies users who may be lost, and realizes user loss early warning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117575675B_ABST
    Figure CN117575675B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and medium for predicting loss of telecommunication users. The method comprises: obtaining user attribute data and user behavior data in a telecommunication network and performing preprocessing; performing distribution density calculation on each preprocessed data point respectively; selecting abnormal data points according to the distribution density of each data point to form a distribution density abnormal point set; calculating the outlier factor value of each preprocessed data point respectively through an improved LOF algorithm based on the number of the abnormal data points to determine the LOF abnormal point set; taking the intersection of the distribution density abnormal point set and the LOF abnormal point set to obtain the telecommunication users predicted to be lost. The present invention greatly improves the accuracy of abnormal point detection and reduces the false alarm rate, and can accurately and effectively identify users who may be lost, thereby achieving the effect of user loss warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information management, and in particular to a method, device, equipment and medium for predicting telecommunication user churn. Background Art

[0002] With the development of the times, the difficulty and cost of operators to acquire new valuable users are increasing. Although operators have launched various marketing strategies to attract users, due to the narrow space for new markets, existing customers have become the main market players and the main source of market revenue. In order to grab existing users, each operator will propose new marketing strategies, which will inevitably lead to the flow of existing users between operators and within operators. Therefore, it is particularly important for operators to predict the probability of user churn in advance and perceive the tendency of user churn in advance.

[0003] Under normal circumstances, the user groups that may churn have the following characteristics: First, they are relatively small in size and are outliers in the overall user data; second, they often have some "abnormal" behaviors before churn, such as long-term lack of recharge, call, and traffic behavior, or a surge in consumption and changes in points in a short period of time in order to clear the account balance as quickly as possible. Therefore, using an outlier detection algorithm to mine "potential outliers" in the overall user data, that is, users that may churn, can achieve the effect of user churn prediction.

[0004] Although traditional outlier detection algorithms such as the LOF algorithm (Local Outlier Factor) can determine whether a point is an outlier by calculating the degree of abnormality of each sample data point, and are easy to operate and implement, their shortcomings are also obvious: if the data set is determined, the final outlier factor value is only related to the parameter k (the k value means that each point must calculate its k nearest neighbors. The smaller the k value, the greater the difference between outliers and normal points, which makes it easier to detect outliers, but this may also lead to large detection errors). However, the parameter k of the traditional LOF algorithm is selected through manual experience. When the k value is selected differently, it is easy to cause the data samples that were outliers before to no longer be outliers. For data sets with unknown number of outliers, it is difficult to manually select the parameter k value to ensure a reasonable number of outliers to be mined, and user churn cannot be predicted well. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a telecommunications user churn prediction method, device, equipment and medium, which utilizes user attribute and behavior attribute data to construct user feature data, uses an improved LOF algorithm to detect anomalies, and can effectively identify users who may churn, thereby improving the accuracy of prediction.

[0006] To achieve the above object, the present invention is implemented by adopting the following technical solutions:

[0007] In a first aspect, the present invention provides a telecommunication user churn prediction method, comprising:

[0008] Obtain user attribute data and user behavior data in the telecommunications network and perform preprocessing;

[0009] Calculate the distribution density of each preprocessed data point;

[0010] According to the distribution density of each data point, the abnormal data points are selected to form a distribution density abnormal point set;

[0011] Based on the number of abnormal data points, the outlier factor value of each preprocessed data point is calculated by using an improved LOF algorithm to determine a LOF abnormal point set;

[0012] The intersection of the distribution density abnormal point set and the LOF abnormal point set is taken to obtain the predicted lost telecommunication users.

[0013] In combination with the first aspect, optionally, the user attribute data includes user number, user network age, user package charges and user package level information; the user behavior data includes traffic usage, call frequency, message frequency, call recharge and points change information during the user set period.

[0014] In combination with the first aspect, optionally, the preprocessing step includes:

[0015] The obtained user attribute data and user behavior data are spliced ​​according to data dimensions and then merged into one data set;

[0016] Each data point of the data set is normalized to scale each data point to within the range of (0, 1) without changing the distribution form of the data.

[0017] In combination with the first aspect, optionally, performing distribution density calculation on each preprocessed data point separately comprises the following steps:

[0018] The area formed by the pre-set distribution radius R with the data point q to be calculated as the center is taken as the R area of ​​the data point q;

[0019] Calculate the mean distance from other data points in the R neighborhood to point q as the R neighborhood average distance distr(q) of data point q. The calculation formula is as follows:

[0020]

[0021] Where p∈N R(q) represents the data points other than point q in the neighborhood of R, |N R (q)| represents the number of other data points in the neighborhood of R; dist(p,q) represents the distance between data point p and data point q, where:

[0022] dist(p,q)=1-sim(p,q)

[0023]

[0024] In the formula, p i Describe the data point vector p = {p 1 ,p 2 ,...,p l} in the i-th dimension data; q i Represents a data point vector q = {q 1 ,q 2 ,...,q l}, l represents the dimension of the data point vector;

[0025] Based on the average distance of the R neighborhood distr(q), the distribution density ρ of the data point q is calculated q as follows:

[0026]

[0027] In combination with the first aspect, optionally, the step of selecting abnormal data points according to the distribution density of each data point includes:

[0028] Sort each data point in descending order according to its distribution density to obtain a distribution density sequence;

[0029] Select the Z that is at the front of the distribution density sequence 1 data points and the final Z 2 data points as abnormal data points;

[0030] Among them, Z 1 is the first quantity set, Z 2 The second quantity is set.

[0031] In combination with the first aspect, optionally, the set first quantity Z 1 Less than the set second quantity Z 2 .

[0032] In combination with the first aspect, optionally, based on the number of abnormal data points, the outlier factor value of each preprocessed data point is calculated by an improved LOF algorithm to determine the LOF abnormal point set, including the following steps:

[0033] Initialize the parameter k value of the LOF algorithm and calculate the outlier factor value of each data point after preprocessing;

[0034] Count the number of data points M whose outlier factor value is greater than 1 in the current calculation 2 ;

[0035] Judge M 2 Does it meet the following conditions: M 1 -S<M 2 <M 1 +S; where M 1 is the number of abnormal data points in the distribution density abnormal point set, and S is the set third number;

[0036] If it does not meet the requirement, the value of parameter k is adjusted continuously, and the outlier factor value of each data point is repeatedly calculated until M 2 When the above conditions are met, stop the calculation and convert the M obtained at this time 2 The data points are combined into a LOF outlier set.

[0037] In a second aspect, the present invention provides a telecommunication user churn prediction device, the device comprising:

[0038] A data acquisition module is used to acquire user attribute data and user behavior data in the telecommunications network and perform preprocessing;

[0039] A distribution density calculation module is used to calculate the distribution density of each preprocessed data point;

[0040] The module for selecting abnormal data points is used to select abnormal data points according to the distribution density of each data point to form a distribution density abnormal point set;

[0041] A LOF outlier point set determination module is used to calculate the outlier factor value of each pre-processed data point by using an improved LOF algorithm based on the number of the outlier data points to determine the LOF outlier point set;

[0042] The telecommunication user churn prediction module is used to obtain the predicted churned telecommunication users by taking the intersection of the distribution density abnormal point set and the LOF abnormal point set.

[0043] In a third aspect, the present invention provides an electronic device, including a processor and a storage medium;

[0044] The storage medium is used to store instructions;

[0045] The processor is used to operate according to the instructions to execute the steps of the telecommunications user churn prediction method as described in any one of the first aspects.

[0046] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the telecommunications user churn prediction method as described in any one of the first aspects.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] The present invention constructs user feature data through user attribute data and behavioral attribute data, introduces the concept of distribution density, uses the distribution density of data points to reversely restrict the selection of LOF algorithm parameter k, and uses the dual measurement indicators of distribution density outliers and local outlier factors to mine and verify "potential outliers" in the data, which greatly improves the accuracy of outlier detection and reduces the false alarm rate, thereby accurately and effectively identifying users who may churn, achieving the effect of user churn warning. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of a method for predicting telecommunication user churn provided by an embodiment of the present invention;

[0050] Figure 2 A structural principle block diagram of a telecommunication user churn prediction device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.

[0052] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0053] Embodiment 1:

[0054] Reference Figure 1 The embodiment of the present invention introduces a telecommunication user churn prediction method, which specifically includes the following steps:

[0055] S1: Obtain user attribute data and user behavior data in the telecommunications network and perform preprocessing;

[0056] In this embodiment, user attribute data includes information such as user number, user network age, user package charges and user package level; user behavior data includes information such as traffic usage, call frequency, message frequency, call recharge and points changes during the user-set period.

[0057] Further, the preprocessing steps include:

[0058] S1.1: The acquired attribute data U of each user 1 and user behavior data U 2 After splicing according to the data dimension, they are merged into a data set U; wherein the total number of data points in the data set U is N;

[0059] S1.2: Normalize each data point of the data set, scale each data point to the range of (0, 1), and do not change the distribution form of the data; the normalization mathematical formula is as follows:

[0060]

[0061] In the formula, x o Represents the oth data point o=1,2…,N in the data set U; represents the maximum value among all data points. Represents the minimum value among all data points, y o Represents the normalized data of the oth data point.

[0062] S2: Calculate the distribution density of each preprocessed data point;

[0063] As an embodiment of the present invention, the distribution density of the data points in step S2 mainly reflects the density of the data points on the data distribution scale. The specific calculation process is as follows:

[0064] S2.1: The area formed by the pre-set distribution radius R with the data point q to be calculated as the center is taken as the R area of ​​the data point q;

[0065] Among them, R is an empirical value taken in advance based on a specific data set.

[0066] S2.2: Calculate the mean distance from other data points in the R neighborhood to point q as the R neighborhood average distance distr(q) of data point q. The calculation formula is as follows:

[0067]

[0068] Where p∈N R (q) represents the data points other than point q in the neighborhood of R, |N R(q)| represents the number of other data points in the neighborhood of R; dist(p,q) represents the distance between data point p and data point q, where:

[0069] dist(p,q)=1-sim(p,q)

[0070]

[0071] In the formula, p i Describe the data point vector p = {p 1 ,p 2 ,...,p l} in the i-th dimension data; q i Represents a data point vector q = {q 1 ,q 2 ,...,q l}, l represents the dimension of the data point vector;

[0072] S2.3: Based on the average distance of the R neighborhood distr(q), the distribution density ρ of the data point q is calculated q as follows:

[0073]

[0074] S3: selecting abnormal data points according to the distribution density of each data point to form a distribution density abnormal point set;

[0075] As an embodiment of the present invention, step S3 specifically includes:

[0076] S3.1: Sort each data point in descending order according to its distribution density to obtain a distribution density sequence;

[0077] S3.2: Select the Z that is at the front of the distribution density sequence 1 data points and the final Z 2 data points as abnormal data points; the selected abnormal data points constitute the distribution density abnormal point set O 1 .

[0078] Among them, Z 1 is the first quantity set, Z 2 is the set second number; in this embodiment, Z 1 =N×5%, Z 2 =N×10%; distribution density abnormal point set O 1 The number of data points M 1 =Z 1 +Z 2 ; N is the total number of data points after preprocessing.

[0079] S4: Based on the number of abnormal data points, the outlier factor value of each preprocessed data point is calculated by using an improved LOF algorithm to determine a LOF abnormal point set;

[0080] As an embodiment of the present invention, step S4 specifically includes:

[0081] S4.1: Initialize the parameter k value of the LOF algorithm and calculate the outlier factor value of each preprocessed data point;

[0082] S4.2: Count the number of data points M whose outlier factor value is greater than 1 in the current calculation 2 ;

[0083] S4.3: Determine M 2 Does it meet the following conditions: M 1 -S<M 2 <M 1 +S; where M 1 is the number of abnormal data points in the distribution density abnormal point set, and S is the set third number;

[0084] S4.4: If it does not meet the requirements, the value of parameter k is continuously adjusted, and the outlier factor value of each data point is repeatedly calculated until M 2 When the above conditions are met, stop the calculation and convert the M obtained at this time 2 The data points are combined into a LOF outlier set.

[0085] In this embodiment, the parameter k is adjusted in an incremental trial manner, and k=2, 3, 4, etc. can be selected in sequence and the number of data points M with "LOF outlier factor value>1" can be continuously tried. 2 The above termination conditions are met.

[0086] It should be further explained that the parameter k and the outlier factor value are both common professional terms in the LOF algorithm, and the calculation method of the outlier factor value is also calculated using the traditional calculation formula, which will not be repeated here.

[0087] S5: Taking the intersection of the distribution density abnormal point set and the LOF abnormal point set to obtain predicted lost telecommunication users.

[0088] The users in the outlier set O output in step S5 are the users predicted to churn, and the intersection formula is as follows:

[0089] O=O 1 ∩O 2

[0090] In summary, the present invention utilizes user attribute data and behavior attribute data to construct user feature data, and uses an improved LOF algorithm, which utilizes the distribution density of data points to reversely restrict the selection of parameter k, to accurately mine the "potential outliers" in all user data, that is, users who may be lost, thereby achieving the effect of user loss warning, which is beneficial for operators to analyze different users in advance and make corresponding decisions, improve user satisfaction, thereby reducing the probability of user loss and increasing corporate profitability.

[0091] Embodiment 2:

[0092] like Figure 2 As shown, the embodiment of the present invention provides a telecommunication user churn prediction device, which can be used to implement the method described in the first embodiment, and the device includes:

[0093] A data acquisition module is used to acquire user attribute data and user behavior data in the telecommunications network and perform preprocessing;

[0094] A distribution density calculation module is used to calculate the distribution density of each preprocessed data point;

[0095] The module for selecting abnormal data points is used to select abnormal data points according to the distribution density of each data point to form a distribution density abnormal point set;

[0096] A LOF outlier point set determination module is used to calculate the outlier factor value of each pre-processed data point by using an improved LOF algorithm based on the number of the outlier data points to determine the LOF outlier point set;

[0097] The telecommunication user churn prediction module is used to obtain the predicted churned telecommunication users by taking the intersection of the distribution density abnormal point set and the LOF abnormal point set.

[0098] The telecommunication user churn prediction device provided in the embodiment of the present invention and the telecommunication user churn prediction method provided in the first embodiment are based on the same technical concept and can produce the beneficial effects as described in the first embodiment. For the contents not described in detail in this embodiment, please refer to the first embodiment.

[0099] Embodiment three:

[0100] An embodiment of the present invention provides an electronic device, including a processor and a storage medium;

[0101] The storage medium is used to store instructions;

[0102] The processor is used to operate according to the instructions to execute the steps of any method in the first embodiment.

[0103] Embodiment 4:

[0104] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of any method in the first embodiment are implemented.

[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0109] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A telecommunication user churn prediction method, characterized in that: include: Obtain user attribute data and user behavior data in the telecommunications network and perform preprocessing; Calculate the distribution density of each preprocessed data point; According to the distribution density of each data point, the abnormal data points are selected to form a distribution density abnormal point set; Based on the number of abnormal data points, the outlier factor value of each preprocessed data point is calculated by using an improved LOF algorithm to determine a LOF abnormal point set; Taking the intersection of the distribution density abnormal point set and the LOF abnormal point set to obtain predicted lost telecommunication users; The user attribute data includes user number, user network age, user package charges and user package level information; the user behavior data includes traffic usage, call frequency, message frequency, call charge recharge and points change information within the user set period; The method of calculating the distribution density of each preprocessed data point comprises the following steps: The data points to be calculated Centered, pre-set The area formed by the distribution radius is used as the data point of Neighborhood; calculate Other data points in the neighborhood The mean of the distances between of Neighborhood average distance , and its calculation formula is as follows: , In the formula, Description In addition to the point Data points outside Description The number of other data points in the neighborhood; Represents data points With data points The distance between: , , In the formula, Representing data point vector The Dimensional data; Represents a data point vector The Dimensional data, Represents the dimension of the data point vector; based on Neighborhood average distance , calculate the data points The distribution density as follows: ; The step of selecting abnormal data points according to the distribution density of each data point includes: Sort each data point in descending order according to its distribution density to obtain a distribution density sequence; Select the first one in the distribution density sequence data points and the last data points as abnormal data points; in, is the first quantity set, is the set second quantity; Based on the number of abnormal data points, the outlier factor value of each pre-processed data point is calculated by the improved LOF algorithm to determine the LOF abnormal point set, including the following steps: Initialize the parameters of the LOF algorithm Value, calculate the outlier factor value of each data point after preprocessing; Count the number of data points whose outlier factor value is greater than 1 in the current calculation ; judge Do you meet the following conditions: ;in is the number of abnormal data points in the distribution density abnormal point set, is the third quantity set; If it does not meet the requirements, the parameters are adjusted continuously. The outlier factor value of each data point is repeatedly calculated until When the above conditions are met, stop the calculation and convert the The data points are combined into a LOF outlier set.

2. The method for predicting telecommunication user churn according to claim 1, characterized in that: The pre-processing steps include: The obtained user attribute data and user behavior data are spliced ​​according to data dimensions and then merged into one data set; Each data point of the data set is normalized to scale each data point to the range of (0, 1) without changing the distribution of the data.

3. The method for predicting telecommunication user churn according to claim 1, characterized in that: The first number of Less than the set second quantity .

4. A telecommunication user churn prediction device, characterized in that: The device comprises: A data acquisition module is used to acquire user attribute data and user behavior data in the telecommunications network and perform preprocessing; A distribution density calculation module is used to calculate the distribution density of each preprocessed data point; The module for selecting abnormal data points is used to select abnormal data points according to the distribution density of each data point to form a distribution density abnormal point set; A LOF outlier point set determination module is used to calculate the outlier factor value of each pre-processed data point by using an improved LOF algorithm based on the number of the outlier data points to determine the LOF outlier point set; A telecommunication user churn prediction module, used for taking the intersection of the distribution density abnormal point set and the LOF abnormal point set to obtain the predicted churned telecommunication users; The user attribute data includes user number, user network age, user package charges and user package level information; the user behavior data includes traffic usage, call frequency, message frequency, call charge recharge and points change information within the user set period; The method of calculating the distribution density of each preprocessed data point comprises the following steps: The data points to be calculated Centered, pre-set The area formed by the distribution radius is used as the data point of Neighborhood; calculate Other data points in the neighborhood The mean of the distances between of Neighborhood average distance , and its calculation formula is as follows: , In the formula, Description In addition to the point Data points outside Description The number of other data points in the neighborhood; Represents data points With data points The distance between: , , In the formula, Representing data point vector The Dimensional data; Represents a data point vector The Dimensional data, Represents the dimension of the data point vector; based on Neighborhood average distance , calculate the data points The distribution density as follows: ; The step of selecting abnormal data points according to the distribution density of each data point includes: Sort each data point in descending order according to its distribution density to obtain a distribution density sequence; Select the first one in the distribution density sequence data points and the last data points as abnormal data points; in, is the first quantity set, is the set second quantity; Based on the number of abnormal data points, the outlier factor value of each pre-processed data point is calculated by the improved LOF algorithm to determine the LOF abnormal point set, including the following steps: Initialize the parameters of the LOF algorithm Value, calculate the outlier factor value of each data point after preprocessing; Count the number of data points whose outlier factor value is greater than 1 in the current calculation ; judge Do you meet the following conditions: ;in is the number of abnormal data points in the distribution density abnormal point set, is the third quantity set; If it does not meet the requirements, the parameters are adjusted continuously. The outlier factor value of each data point is repeatedly calculated until When the above conditions are met, stop the calculation and convert the The data points are combined into a LOF outlier set.

5. An electronic device, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the telecommunication user churn prediction method according to any one of claims 1 to 3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the telecommunication user churn prediction method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Customer churn prediction method and device

    CN107818376A

  • Internet financial application anti-fraud identification method based on LOF algorithm

    CN111833174A

  • Capacity planning of telecommunications network by detecting anomalies in site behavior

    US11153765B1