Number portability risk assessment method, device and equipment
Through cluster analysis of initial user information and the construction of a risk assessment model, the problem in the existing technology of being unable to discover users intending to port their number in advance has been solved, and the early discovery and maintenance of users at risk of number porting and network transfer have been achieved, improving Increased user retention rate.
Patent Information
- Application Number
- CN202410650340.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, users with the intention of number portability cannot be discovered in advance, resulting in operators being unable to maintain and retain them in advance, resulting in user loss and economic losses.
By obtaining initial user information and performing cluster analysis, the important features are determined, and a risk assessment model is constructed based on the sample data, which is used to assess the risk of number portability for target users, discover and maintain users at risk of number portability in advance.
It has realized the early discovery and maintenance of users at risk of number portability, avoided user loss, and improved user retention rate.
Smart Images

Figure CN118674261A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing, and specifically relates to a number portability risk assessment method, device, equipment and storage medium. Background Art
[0002] In order to provide more convenience to users, operators have now launched number portability services, so that users can change operators and use the telecommunications services provided by the new operator while keeping the phone number unchanged.
[0003] In the prior art, there is no method to discover in advance the users who intend to port their numbers. The method is limited to informing the users through outbound calls or at business halls. In this case, the operators are unable to maintain and retain the users who intend to port their numbers in advance, resulting in user loss and direct economic losses. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a number portability risk assessment method, device, equipment and storage medium, which can solve the problem that there is currently no method for early detection of users who intend to port their numbers, and it is impossible to maintain and retain users who intend to port their numbers in advance, resulting in user loss.
[0005] In a first aspect, an embodiment of the present application provides a method for assessing number portability risk, including:
[0006] Obtaining multiple initial user information of multiple initial users who have ported their numbers to other networks;
[0007] Based on the initial user information, cluster analysis is performed on the initial users to divide the initial users into a plurality of clusters, and for each cluster, importance of the initial user information of the initial users included therein is determined, and indicator features are determined based on the importance;
[0008] Acquire sample data, and perform model training based on the sample data to build a risk assessment model; the sample data includes sample user information of multiple sample users corresponding to the indicator characteristics, and the user categories of the sample users include users who have ported their numbers to other networks and users who have not ported their numbers to other networks;
[0009] The user information to be analyzed corresponding to the indicator characteristics of the target user is obtained, and the user information to be analyzed is input into the risk assessment model for characteristic analysis to obtain the number portability risk level of the target user.
[0010] Optionally, the risk assessment model is a risk assessment decision tree model; the acquiring sample data and performing model training based on the sample data to construct the risk assessment model includes:
[0011] Get sample data;
[0012] The indicator features are respectively matched to each layer of nodes to obtain a preset decision tree model;
[0013] Input the sample data into the preset decision tree model, perform decision classification on the sample data based on the indicator characteristics corresponding to each layer node of the preset decision tree model, and determine the predicted risk level corresponding to each sample data according to the classification result;
[0014] Evaluate the prediction result of the preset decision tree model according to the predicted risk level and the user type corresponding to the sample data;
[0015] When the evaluation result meets the preset conditions, the preset decision tree model is used as the risk evaluation model.
[0016] Optionally, the indicator features are respectively matched to each layer of nodes to obtain a preset decision tree model, including:
[0017] Based on each indicator feature, classify the sample data, and determine the score of the indicator feature based on the classification result;
[0018] The indicator feature with the highest score is sequentially matched to each layer of nodes from top to bottom to obtain a preset decision tree model.
[0019] Optionally, when the assessment result meets a preset condition, using the preset decision tree model as a risk assessment model includes:
[0020] When the evaluation result meets the preset conditions, the preset decision tree model is pruned until the number of layers of the preset decision tree reaches the preset number of layers, thereby obtaining a risk evaluation model.
[0021] Optionally, the step of inputting the sample data into the preset decision tree model, performing decision classification on the sample data based on the indicator features corresponding to each layer node of the preset decision tree model, and determining the predicted risk level corresponding to each sample data according to the classification result includes:
[0022] Input the sample data into the preset decision tree model, take the first layer node of the preset decision tree model as the target node, perform decision classification on the sample data according to the indicator characteristics corresponding to the target node, and determine the next layer child node corresponding to the sample data;
[0023] The next layer of nodes are taken as new target nodes in turn, and the step of making a decision classification on the sample data according to the indicator characteristics corresponding to the target node is returned to determine the next layer of child nodes corresponding to the sample data, until the target node is the last layer of nodes of the preset decision tree, and then the predicted risk level corresponding to the sample data is determined according to the classification identifier of the target node.
[0024] Optionally, obtaining sample data includes:
[0025] Get initial sample data;
[0026] Perform sample balancing processing on the initial sample data to obtain sample data.
[0027] Optionally, the obtaining of multiple types of initial user information of multiple users who have ported their numbers to other networks further includes:
[0028] Obtain basic data of multiple users who have ported their numbers to other networks;
[0029] Feature extraction and data cleaning are performed on the basic data to obtain a variety of initial user information.
[0030] Optionally, performing cluster analysis on the initial users based on the initial user information to divide the initial users into multiple clusters includes:
[0031] Treat each initial user as a data point and determine the distance between each data point;
[0032] Traverse each data point and take the data point whose number of other data points within the neighborhood radius is greater than the minimum sample number as the core point;
[0033] Other data points that are densely reachable from each core point are determined from the data points, and each core point and the corresponding other data points are regarded as a cluster.
[0034] Optionally, determining other data points that are density-reachable from each core point from the data points, and treating each core point and the corresponding other data points as a cluster, comprises:
[0035] Calculate the closeness between each data point and other data points in the same cluster, as well as the separation between each data point and data points in other clusters;
[0036] When the compactness and the separation do not meet the preset conditions, a new neighborhood radius and a minimum number of samples are obtained, and the step of traversing each data point and taking the data point whose number of other data points within the neighborhood radius is greater than the minimum number of samples as the core point is returned.
[0037] Optionally, determining, for each cluster, the importance of the initial user information of the included initial user, and determining an indicator feature based on the importance, includes:
[0038] For each cluster, performing a difference analysis on the initial user information corresponding to the included data points to obtain an importance score of the initial user information;
[0039] The preset number of initial user information with the highest importance scores are deduplicated to screen out the indicator features.
[0040] In a second aspect, an embodiment of the present application provides a number portability risk assessment device, including:
[0041] An acquisition module, used to acquire multiple initial user information of multiple initial users who have ported their numbers to other networks;
[0042] A clustering module, configured to perform cluster analysis on the initial users based on the initial user information, divide the initial users into a plurality of clusters, and determine the importance of the initial user information of the initial users included in each cluster, and determine an indicator feature based on the importance;
[0043] A training module, used to obtain sample data, and perform model training based on the sample data to build a risk assessment model; the sample data includes sample user information corresponding to the indicator characteristics of multiple sample users, and the user categories of the sample users include users who have ported their numbers and users who have not ported their numbers;
[0044] The analysis module is used to obtain the user information to be analyzed corresponding to the indicator characteristics of the target user, and input the user information to be analyzed into the risk assessment model for characteristic analysis to obtain the number portability risk level of the target user.
[0045] Optionally, the risk assessment model is a risk assessment decision tree model; and the training module is used to:
[0046] Get sample data;
[0047] The indicator features are respectively matched to each layer of nodes to obtain a preset decision tree model;
[0048] Input the sample data into the preset decision tree model, perform decision classification on the sample data based on the indicator characteristics corresponding to each layer node of the preset decision tree model, and determine the predicted risk level corresponding to each sample data according to the classification result;
[0049] Evaluate the prediction result of the preset decision tree model according to the predicted risk level and the user type corresponding to the sample data;
[0050] When the evaluation result meets the preset conditions, the preset decision tree model is used as the risk evaluation model.
[0051] Optionally, the training module is used to:
[0052] Based on each indicator feature, classify the sample data, and determine the score of the indicator feature based on the classification result;
[0053] The indicator feature with the highest score is sequentially matched to each layer of nodes from top to bottom to obtain a preset decision tree model.
[0054] Optionally, the training module is used to:
[0055] When the evaluation result meets the preset conditions, the preset decision tree model is pruned until the number of layers of the preset decision tree reaches the preset number of layers, thereby obtaining a risk evaluation model.
[0056] Optionally, the training module is used to:
[0057] Input the sample data into the preset decision tree model, take the first layer node of the preset decision tree model as the target node, perform decision classification on the sample data according to the indicator characteristics corresponding to the target node, and determine the next layer child node corresponding to the sample data;
[0058] The next layer of nodes are taken as new target nodes in turn, and the step of making a decision classification on the sample data according to the indicator characteristics corresponding to the target node is returned to determine the next layer of child nodes corresponding to the sample data, until the target node is the last layer of nodes of the preset decision tree, and then the predicted risk level corresponding to the sample data is determined according to the classification identifier of the target node.
[0059] Optionally, the training module is used to:
[0060] Get initial sample data;
[0061] Perform sample balancing processing on the initial sample data to obtain sample data.
[0062] Optionally, the acquisition module is used to:
[0063] Obtain basic data of multiple users who have ported their numbers to other networks;
[0064] Feature extraction and data cleaning are performed on the basic data to obtain a variety of initial user information.
[0065] Optionally, the clustering module is used to:
[0066] Treat each initial user as a data point and determine the distance between each data point;
[0067] Traverse each data point and take the data point whose number of other data points within the neighborhood radius is greater than the minimum sample number as the core point;
[0068] Other data points that are densely reachable from each core point are determined from the data points, and each core point and the corresponding other data points are regarded as a cluster.
[0069] Optionally, the clustering module is used to:
[0070] Calculate the closeness between each data point and other data points in the same cluster, as well as the separation between each data point and data points in other clusters;
[0071] When the compactness and the separation do not meet the preset conditions, a new neighborhood radius and a minimum number of samples are obtained, and the step of traversing each data point and taking the data point whose number of other data points within the neighborhood radius is greater than the minimum number of samples as the core point is returned.
[0072] Optionally, the clustering module is used to:
[0073] For each cluster, performing a difference analysis on the initial user information corresponding to the included data points to obtain an importance score of the initial user information;
[0074] The preset number of initial user information with the highest importance scores are deduplicated to screen out the indicator features.
[0075] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0076] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0077] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0078] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0079] In an embodiment of the present application, a method for assessing the risk of number portability is provided, comprising: obtaining multiple types of initial user information of multiple initial users who have ported their numbers; performing cluster analysis on the initial users based on the initial user information, dividing the initial users into multiple clusters, and determining, for each cluster, the importance of the initial user information of the initial users included, and determining indicator characteristics based on the importance; obtaining sample data, and performing model training based on the sample data to construct a risk assessment model; the sample data includes sample user information of multiple sample users corresponding to the indicator characteristics, and the user categories of the sample users include users who have ported their numbers and users who have not ported their numbers; obtaining user information to be analyzed corresponding to the indicator characteristics of the target user, and inputting the user information to be analyzed into the risk assessment model for feature analysis to obtain the number portability risk level of the target user.
[0080] In this way, by introducing the logistic regression algorithm and performing cluster analysis on the initial users who have ported their numbers, some common initial user information is determined as indicator features, and then a risk assessment model is constructed based on the indicator features to conduct number portability risk assessment on target users. In this way, it is possible to discover target users with number portability risks in advance based on the target users' user information to be analyzed, and then maintain and retain these risky users in advance, thereby avoiding user loss and improving user retention rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 is a flow chart of a number portability risk assessment method according to an exemplary embodiment;
[0082] Figure 2 is a schematic diagram of a risk assessment model according to an exemplary embodiment;
[0083] Figure 3 It is a logical schematic diagram of a number portability risk assessment method according to an exemplary embodiment;
[0084] Figure 4 is a block diagram of a number portability risk assessment device according to an exemplary embodiment;
[0085] Figure 5 A block diagram showing a base station terminal accessing an electronic device according to an exemplary embodiment;
[0086] Figure 6 It is a block diagram of a device for terminal access according to an exemplary embodiment. DETAILED DESCRIPTION
[0087] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0088] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0089] The number portability risk assessment method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0090] Figure 1 The present invention is a flowchart of a number portability risk assessment method according to an exemplary embodiment. The number portability risk assessment method includes the following steps.
[0091] In step S11, a plurality of initial user information of a plurality of initial users who have ported their numbers to other networks is obtained.
[0092] In order to provide more convenience to users, operators have now launched number portability services, so that users can change operators and use the telecommunications services provided by the new operator while keeping the phone number unchanged.
[0093] At present, there is no method to detect in advance the users who intend to port their numbers. The only way is to inform the users through outbound calls or in the business halls. In this case, the operators cannot maintain and retain the users who intend to port their numbers in advance, which leads to the loss of users and direct economic losses.
[0094] Based on this, the solution of this application is proposed to solve the above problems.
[0095] In this step, firstly, a variety of initial user information of multiple initial users who have ported their numbers is obtained. The initial user information can reflect the user characteristics of the initial users. Different categories of initial users may have different initial user information, and the initial users who have ported their numbers as a group also have their corresponding user characteristics. Therefore, the initial user information can be used for subsequent indicator feature extraction.
[0096] The data source of the initial user information may be a business database, and therefore the initial user information may be represented as T+1, T+2, and so on.
[0097] In one implementation, obtaining multiple types of initial user information of multiple users who have ported their numbers to other networks also includes:
[0098] Obtain basic data of multiple users who have ported their numbers to other networks;
[0099] Perform feature extraction and data cleaning on basic data to obtain a variety of initial user information.
[0100] For example, users who have been ported out of their account for six months can be regarded as users who have ported their numbers. The basic data of users who have ported their numbers can include:
[0101] 1) Basic information: the name of the package before the number is ported, the level of the package before the number is ported, the age of the user, the length of time the number is online, the gender of the user, the time the number is opened, etc.;
[0102] 2) Usage behavior: the number of calls to common numbers, whether voice and data usage decreased in the month before the network transfer, the average amount of bills in the six months before the network transfer, the amount of bills in the previous month before the network transfer, and the monthly usage of integrated broadband by the users who transfer networks, etc.
[0103] 3) Termination of subscription relationship: number of contract terminations, broadband termination time, family network termination time, joint account termination, etc.
[0104] After obtaining the basic data, it is necessary to clean and process the basic data, including but not limited to:
[0105] 1) Data preprocessing: including deleting invalid or missing data, standardizing attribute formats, etc.
[0106] 2) Deduplication: Deduplication is performed based on user information to ensure user uniqueness.
[0107] 3) Outlier processing: Find and process abnormal data through statistical analysis methods.
[0108] After data cleaning and processing, the initial user information obtained is more standardized, which can also reduce the occurrence of some errors in the subsequent processing process, thereby improving the accuracy of risk assessment.
[0109] In step S12, based on the initial user information, a cluster analysis is performed on the initial users to divide the initial users into multiple clusters, and for each cluster, the importance of the initial user information of the included initial users is determined, and the indicator feature is determined based on the importance.
[0110] In this step, a clustering algorithm is used to analyze the initial user information, and finally the index characteristics of the initial user are determined. The index characteristics can provide a basis for judging the risky users of transfer and improve the accuracy of judging the risky users of transfer.
[0111] Among them, commonly used clustering analysis algorithms include k-means, hierarchical clustering, DBSCAN and Gaussian mixture model, etc. In this application, the data set has a complex shape and the number of clusters is uncertain, so the DBSCAN algorithm can be used to select high-importance indicator features in each cluster.
[0112] In one implementation, based on the initial user information, a cluster analysis is performed on the initial users to divide the initial users into multiple clusters, including:
[0113] Treat each initial user as a data point and determine the distance between each data point;
[0114] Traverse each data point and take the data point whose number of other data points within the neighborhood radius is greater than the minimum number of samples as the core point;
[0115] Determine other data points that are densely reachable from each core point from the data points, and regard each core point and the corresponding other data points as a cluster.
[0116] That is to say, using the DBSCAN algorithm, data points are divided into three different types: core points, boundary points, and noise points. The determination of the three types of points depends on the selection of two hyperparameters: neighborhood radius and minimum number of samples. A data point is a core point if the number of samples within the neighborhood radius is greater than the minimum number of samples, a boundary point if the number of samples within the neighborhood radius is less than the minimum number of samples but contains a core point, and a noise point if there is no core point within the neighborhood radius and the number of samples is less than the minimum number of samples. By scanning all data points one by one, the category of each data point and the cluster to which each data point belongs can be determined.
[0117] In one implementation, determining other data points that are density-reachable from each core point from the data points, and treating each core point and the corresponding other data points as a cluster includes:
[0118] Calculate the closeness between each data point and other data points in the same cluster, as well as the separation between each data point and data points in other clusters;
[0119] When the closeness and separation do not meet the preset conditions, a new neighborhood radius and a minimum number of samples are obtained, and each data point is traversed back and forth, and the data points whose number of other data points within the neighborhood radius is greater than the minimum number of samples are taken as core points.
[0120] In other words, the silhouette coefficient can be used as a clustering evaluation indicator. The silhouette coefficient measures the compactness of a data point within its cluster and its separation from other clusters. By using this as a standard, clustering analysis can achieve better results by adjusting the neighborhood radius and the minimum number of samples.
[0121] In one implementation, for each cluster, the importance of the initial user information of the initial users included therein is determined, and the indicator feature is determined based on the importance, including:
[0122] For each cluster, a difference analysis is performed on the initial user information corresponding to the included data points to obtain the importance score of the initial user information;
[0123] The preset number of initial user information with the highest importance scores are deduplicated to screen out the indicator features.
[0124] That is to say, for each cluster, the importance score of each indicator feature can be comprehensively calculated through difference analysis to measure the variability of the indicator feature within the cluster. Then, the first few most important indicator features of all clusters are removed and the indicator features are finally screened out.
[0125] Among them, the difference analysis may include variance analysis, information gain, variance ratio, etc. The preset number can be 5, and there is no specific limitation.
[0126] In step S13, sample data is obtained, and model training is performed based on the sample data to build a risk assessment model; the sample data includes sample user information corresponding to indicator characteristics of multiple sample users, and user categories of the sample users include users who have ported their numbers and users who have not ported their numbers.
[0127] In this step, the model is trained through sample data to build a risk assessment model. The trained risk assessment model can be deployed in a production environment to predict whether the target user has a risk of number portability.
[0128] Among them, this application uses supervised machine learning technology to establish a risk assessment model, including decision trees, random forests, support vector machines, and neural networks, etc., without specific limitation.
[0129] Before model training, the sample data set can be split. First, the sample data set is randomly divided into a training set and a test set, and 70% of the sample data is selected as the training set and 30% of the sample data is selected as the test set. The training set is used to train the risk assessment model, and the test set is used to further test the trained risk assessment model. In this way, the prediction accuracy of the risk assessment model can be further improved.
[0130] In one implementation, the risk assessment model is a risk assessment decision tree model; sample data is obtained, and model training is performed based on the sample data to construct a risk assessment model, including:
[0131] Get sample data;
[0132] Correspond the indicator features to each layer of nodes respectively to obtain the preset decision tree model;
[0133] Input the sample data into the preset decision tree model, perform decision classification on the sample data based on the indicator characteristics corresponding to each layer node of the preset decision tree model, and determine the predicted risk level corresponding to each sample data according to the classification result;
[0134] Evaluate the prediction results of the preset decision tree model according to the predicted risk level and the user type corresponding to the sample data;
[0135] When the assessment results meet the preset conditions, the preset decision tree model is used as the risk assessment model.
[0136] That is to say, the risk assessment model can be trained based on a multi-layer decision tree algorithm, where the decision tree algorithm is a classification and regression method based on a tree structure, which can divide the input data request features into different categories according to a series of rules or conditions, corresponding to different read and write performance requirements.
[0137] When evaluating the prediction results of the preset decision tree model, the evaluation indicators that can be used include accuracy, recall, precision, etc. By comparing the evaluation results under different algorithms and different parameter combinations, the optimal algorithm and parameter combination can be selected to further improve the accuracy and reliability of the risk assessment model.
[0138] In addition, if the evaluation result does not meet the preset conditions, then the model parameters of the preset decision tree model can be adjusted, such as adjusting the correspondence between each layer of nodes and indicator features, or adjusting the characteristic value corresponding to a certain indicator feature, etc., without specific limitation.
[0139] In one implementation, the indicator features are respectively matched to each layer of nodes to obtain a preset decision tree model, including:
[0140] Based on each indicator feature, the sample data is classified, and based on the classification result, the score of the indicator feature is determined;
[0141] The indicator features with the highest scores are matched with each layer of nodes from top to bottom in turn to obtain the preset decision tree model.
[0142] That is, first, an optimal indicator feature is selected from all available indicator features as the root node, the sample data is divided into multiple subsets, and then the above steps are repeated for each subset until all leaf nodes are pure nodes or the predetermined tree depth is reached.
[0143] The optimal indicator feature can be determined based on the score of the indicator adjustment, and the score of the indicator feature can be determined based on the classification effect of different indicator features on sample data. Furthermore, the indicator feature with a higher score is likely to be closer to the root node in the preset decision model.
[0144] Among them, the classification effect of the indicator feature on the sample data can be determined according to the number of each category after classification. For example, if a certain indicator feature can divide 40 sample data into two categories of 20:20, then the indicator feature is better than another indicator feature that divides 40 sample data into two categories of 1:19.
[0145] In one implementation, when the evaluation result meets the preset conditions, the preset decision tree model is used as the risk evaluation model, including:
[0146] When the assessment results meet the preset conditions, the preset decision tree model is pruned until the number of layers of the preset decision tree reaches the preset number of layers to obtain a risk assessment model.
[0147] In other words, in order to avoid overfitting, the constructed decision tree can be pruned to reduce the number of layers of the risk assessment model. For example, this can be achieved by deleting some leaf nodes and corresponding parent nodes. In this way, the complexity of the decision tree can be reduced.
[0148] In one implementation, the sample data is input into a preset decision tree model, and the sample data is classified based on the indicator characteristics corresponding to each layer of the node of the preset decision tree model, and the predicted risk level corresponding to each sample data is determined according to the classification result, including:
[0149] Input the sample data into the preset decision tree model, take the first layer node of the preset decision tree model as the target node, make decision classification on the sample data according to the indicator characteristics corresponding to the target node, and determine the next layer child node corresponding to the sample data;
[0150] The next layer of nodes is taken as the new target node in turn, and the sample data is classified according to the indicator characteristics corresponding to the target node. The steps of determining the next layer of child nodes corresponding to the sample data are determined until the target node is the last layer of nodes in the preset decision tree. The predicted risk level corresponding to the sample data is determined according to the classification identifier of the target node.
[0151] That is to say, after the sample data is input into the preset decision tree model, starting from the first layer of nodes, judgments are made based on the corresponding indicator characteristics in turn, and the corresponding branches are determined according to the judgment results, and then the next target node is determined, and the judgment continues until the last layer of leaf nodes of the preset decision tree model is reached, and the predicted risk level corresponding to the sample data can be determined.
[0152] For example, Figure 2 The figure shows a schematic diagram of a preset decision tree model. The sample data includes Serv_Mon basic users, single product users, contract users, SMS transfer, contract termination behavior, common numbers, age groups, channels and other indicator characteristics. Contract users include users with binding relationships such as family network, home network, and broadband.
[0153] First, the root node samples 141 data of Serv_Mon basic users, with a gini coefficient of 0.491, and the passed and failed sample data are 61 and 80 respectively; single product users and contract users are selected for decision calculation, and decision calculation is performed on the passed and failed sample data respectively, and the corresponding results are output; SMS portability and contract termination behaviors are selected for decision calculation, and common numbers, age groups, channels, etc. are selected as decision calculation indicators based on the passed and failed sample data after the decision; through the above algorithm, the classification results of the sample data are finally obtained, and different classification results correspond to different predicted risk levels.
[0154] Furthermore, branch nodes can be expanded and selected, such as user behavior indicators: SMS transfer, contract termination behavior, single product, etc.; through the selection of different indicator characteristics and the corresponding gini parameters, a more accurate preset decision tree can be determined as a risk assessment model.
[0155] In one implementation, obtaining sample data includes:
[0156] Get initial sample data;
[0157] Perform sample balancing processing on the initial sample data to obtain sample data.
[0158] It is understandable that since the number of users who have not ported their numbers may be much larger than the number of users who have ported their numbers, the initial sample data needs to be balanced to ensure the accuracy of the risk assessment model training and assessment results.
[0159] For example, sample equalization processing may adopt methods such as undersampling, oversampling, and generating new data, without specific limitation.
[0160] In step S14, the user information to be analyzed corresponding to the indicator characteristics of the target user is obtained, and the user information to be analyzed is input into the risk assessment model for characteristic analysis to obtain the number portability risk level of the target user.
[0161] In this step, existing users can be extracted as target users according to the account period, and the user information to be analyzed corresponding to the indicator characteristics of the target users can be input into the risk assessment model. The target users' behaviors and characteristics can be analyzed, and finally the target users' risk level of number portability can be confirmed to predict whether the target users have the risk of number portability.
[0162] After model evaluation, the risk assessment model established using the decision tree algorithm provided by this application achieved an accuracy and recall rate of more than 90% on the test set, showing good performance. Therefore, using this risk assessment model for number portability detection can predict outbound users in advance, and by recovering users who are about to be ported out in advance, reduce the porting rate, and ensure stable operation of the enterprise.
[0163] like Figure 3 As shown, it is a logic diagram of the present application, including the following parts:
[0164] Data source determination: The economic database is used as the data source;
[0165] Basic user acquisition: Identify multiple initial users who have ported their numbers, including single-product users and contract users. Contract users include users with binding relationships such as family network, home network, and broadband.
[0166] User behavior analysis: Based on the basic data of the initial user, the initial user information is obtained. The initial user information includes whether the initial user has certain behaviors, such as: the behavior of contract users terminating their contracts to become single-product users (single-product portability does not require termination); the behavior of sending portability qualification verification SMS; the behavior of having terminated the contract but not yet becoming a single-product user; the behavior of users querying the commitment period; the behavior of users querying number portability;
[0167] User clustering analysis: The initial users are analyzed by clustering algorithms to obtain multiple clusters, and then the indicator characteristics are determined and trained to obtain a risk assessment model;
[0168] Prediction of the number portability level of online users: Based on the user information to be analyzed corresponding to the indicator characteristics of the target user, the user information to be analyzed is input into the risk assessment model for feature analysis to obtain the target user's number portability risk level.
[0169] From the above, it can be seen that the technical solution provided by the present application, by introducing a logistic regression algorithm, performs cluster analysis on the initial users who have ported their numbers, determines some common initial user information as indicator features, and then constructs a risk assessment model based on the indicator features for conducting number portability risk assessment on target users. This makes it possible to discover target users with number portability risks in advance based on the target users' user information to be analyzed, and then maintain and retain these risky users in advance, thereby avoiding user loss and improving user retention rate.
[0170] The number portability risk assessment method provided in the embodiment of the present application can be executed by a number portability risk assessment device. In the embodiment of the present application, a method for executing terminal access by a number portability risk assessment device is taken as an example to illustrate the device of the number portability risk assessment method provided in the embodiment of the present application.
[0171] Figure 4 The present invention is a block diagram of a number portability risk assessment device according to an exemplary embodiment, including:
[0172] An acquisition module 201 is used to acquire multiple types of initial user information of multiple initial users who have ported their numbers to other networks;
[0173] A clustering module 202 is used to perform cluster analysis on the initial users based on the initial user information, divide the initial users into multiple clusters, and determine the importance of the initial user information of the initial users included in each cluster, and determine indicator features based on the importance;
[0174] The training module 203 is used to obtain sample data, and perform model training based on the sample data to build a risk assessment model; the sample data includes sample user information corresponding to the indicator characteristics of multiple sample users, and the user categories of the sample users include users who have ported their numbers and users who have not ported their numbers;
[0175] The analysis module 204 is used to obtain the user information to be analyzed corresponding to the indicator characteristics of the target user, and input the user information to be analyzed into the risk assessment model for characteristic analysis to obtain the number portability risk level of the target user.
[0176] Optionally, the risk assessment model is a risk assessment decision tree model; the training module 203 is used to:
[0177] Get sample data;
[0178] The indicator features are respectively matched to each layer of nodes to obtain a preset decision tree model;
[0179] Input the sample data into the preset decision tree model, perform decision classification on the sample data based on the indicator characteristics corresponding to each layer node of the preset decision tree model, and determine the predicted risk level corresponding to each sample data according to the classification result;
[0180] Evaluate the prediction result of the preset decision tree model according to the predicted risk level and the user type corresponding to the sample data;
[0181] When the evaluation result meets the preset conditions, the preset decision tree model is used as the risk evaluation model.
[0182] Optionally, the training module 203 is used to:
[0183] Based on each indicator feature, classify the sample data, and determine the score of the indicator feature based on the classification result;
[0184] The indicator feature with the highest score is sequentially matched to each layer of nodes from top to bottom to obtain a preset decision tree model.
[0185] Optionally, the training module 203 is used to:
[0186] When the evaluation result meets the preset conditions, the preset decision tree model is pruned until the number of layers of the preset decision tree reaches the preset number of layers, thereby obtaining a risk evaluation model.
[0187] Optionally, the training module 203 is used to:
[0188] Input the sample data into the preset decision tree model, take the first layer node of the preset decision tree model as the target node, perform decision classification on the sample data according to the indicator characteristics corresponding to the target node, and determine the next layer child node corresponding to the sample data;
[0189] The next layer of nodes are taken as new target nodes in turn, and the step of making a decision classification on the sample data according to the indicator characteristics corresponding to the target node is returned to determine the next layer of child nodes corresponding to the sample data, until the target node is the last layer of nodes of the preset decision tree, and then the predicted risk level corresponding to the sample data is determined according to the classification identifier of the target node.
[0190] Optionally, the training module 203 is used to:
[0191] Get initial sample data;
[0192] Perform sample balancing processing on the initial sample data to obtain sample data.
[0193] Optionally, the acquisition module 201 is used to:
[0194] Obtain basic data of multiple users who have ported their numbers to other networks;
[0195] Feature extraction and data cleaning are performed on the basic data to obtain a variety of initial user information.
[0196] Optionally, the clustering module 202 is used to:
[0197] Treat each initial user as a data point and determine the distance between each data point;
[0198] Traverse each data point and take the data point whose number of other data points within the neighborhood radius is greater than the minimum sample number as the core point;
[0199] Other data points that are densely reachable from each core point are determined from the data points, and each core point and the corresponding other data points are regarded as a cluster.
[0200] Optionally, the clustering module 202 is used to:
[0201] Calculate the closeness between each data point and other data points in the same cluster, as well as the separation between each data point and data points in other clusters;
[0202] When the compactness and the separation do not meet the preset conditions, a new neighborhood radius and a minimum number of samples are obtained, and the step of traversing each data point and taking the data point whose number of other data points within the neighborhood radius is greater than the minimum number of samples as the core point is returned.
[0203] Optionally, the clustering module 202 is used to:
[0204] For each cluster, performing a difference analysis on the initial user information corresponding to the included data points to obtain an importance score of the initial user information;
[0205] The preset number of initial user information with the highest importance scores are deduplicated to screen out the indicator features.
[0206] From the above, it can be seen that the technical solution provided by the embodiment of the present application, by introducing a logistic regression algorithm, performs cluster analysis on the initial users who have ported their numbers, determines some common initial user information as indicator features, and then builds a risk assessment model based on the indicator features for performing number portability risk assessment on target users. This makes it possible to discover target users with number portability risks in advance based on the target users' user information to be analyzed, and then maintain and retain these risky users in advance, thereby avoiding user loss and improving user retention rate.
[0207] The method for assessing the risk of number portability provided in the embodiment of the present application can be executed by a terminal access terminal. The method for assessing the risk of number portability provided in the embodiment of the present application is described by taking a method for assessing the risk of number portability performed by a terminal access terminal as an example.
[0208] The number portability risk assessment device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or a device other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0209] The number portability risk assessment device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0210] Alternatively, if Figure 5As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be executed on the processor 501, and when the program or instruction is executed by the processor 501, each step of the above-mentioned number portability risk assessment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0211] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0212] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0213] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0214] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0215] From the above, it can be seen that the technical solution provided by the embodiment of the present application, by introducing a logistic regression algorithm, performs cluster analysis on the initial users who have ported their numbers, determines some common initial user information as indicator features, and then builds a risk assessment model based on the indicator features for performing number portability risk assessment on target users. This makes it possible to discover target users with number portability risks in advance based on the target users' user information to be analyzed, and then maintain and retain these risky users in advance, thereby avoiding user loss and improving user retention rate.
[0216] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0217] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0218] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0219] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned number portability risk assessment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0220] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0221] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned number portability risk assessment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0222] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0223] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned number portability risk assessment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0224] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0225] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0226] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for assessing number portability risk, characterized in that: include: Obtaining multiple initial user information of multiple initial users who have ported their numbers to other networks; Based on the initial user information, cluster analysis is performed on the initial users to divide the initial users into a plurality of clusters, and for each cluster, importance of the initial user information of the initial users included therein is determined, and indicator features are determined based on the importance; Acquire sample data, and perform model training based on the sample data to build a risk assessment model; the sample data includes sample user information of multiple sample users corresponding to the indicator characteristics, and the user categories of the sample users include users who have ported their numbers to other networks and users who have not ported their numbers to other networks; The user information to be analyzed corresponding to the indicator characteristics of the target user is obtained, and the user information to be analyzed is input into the risk assessment model for characteristic analysis to obtain the number portability risk level of the target user.
2. The number portability risk assessment method according to claim 1, characterized in that: The risk assessment model is a risk assessment decision tree model; The obtaining of sample data, and performing model training based on the sample data to construct a risk assessment model includes: Get sample data; The indicator features are respectively matched to each layer of nodes to obtain a preset decision tree model; Input the sample data into the preset decision tree model, perform decision classification on the sample data based on the indicator characteristics corresponding to each layer node of the preset decision tree model, and determine the predicted risk level corresponding to each sample data according to the classification result; Evaluate the prediction result of the preset decision tree model according to the predicted risk level and the user type corresponding to the sample data; When the evaluation result meets the preset conditions, the preset decision tree model is used as the risk evaluation model.
3. The number portability risk assessment method according to claim 2, characterized in that: The indicator features are respectively matched to each layer of nodes to obtain a preset decision tree model, including: Based on each indicator feature, classify the sample data, and determine the score of the indicator feature based on the classification result; The indicator feature with the highest score is sequentially matched to each layer of nodes from top to bottom to obtain a preset decision tree model.
4. The number portability risk assessment method according to claim 2, characterized in that: When the evaluation result meets the preset conditions, the preset decision tree model is used as the risk evaluation model, including: When the evaluation result meets the preset conditions, the preset decision tree model is pruned until the number of layers of the preset decision tree reaches the preset number of layers, thereby obtaining a risk evaluation model.
5. The number portability risk assessment method according to claim 2, characterized in that: The step of inputting the sample data into the preset decision tree model, performing decision classification on the sample data based on the indicator characteristics corresponding to each layer node of the preset decision tree model, and determining the predicted risk level corresponding to each sample data according to the classification result includes: Input the sample data into the preset decision tree model, take the first layer node of the preset decision tree model as the target node, perform decision classification on the sample data according to the indicator characteristics corresponding to the target node, and determine the next layer child node corresponding to the sample data; The next layer of nodes are taken as new target nodes in turn, and the steps of making decisions and classifying the sample data according to the indicator characteristics corresponding to the target nodes are returned to determine the next layer of child nodes corresponding to the sample data, until the target node is the last layer of nodes of the preset decision tree, and the predicted risk level corresponding to the sample data is determined according to the classification identifier of the target node.
6. The number portability risk assessment method according to claim 2, characterized in that: The obtaining of sample data comprises: Get initial sample data; Perform sample balancing processing on the initial sample data to obtain sample data.
7. The number portability risk assessment method according to claim 1, characterized in that: The obtaining of a plurality of initial user information of a plurality of users who have ported their numbers to other networks also includes: Obtain basic data of multiple users who have ported their numbers to other networks; Feature extraction and data cleaning are performed on the basic data to obtain a variety of initial user information.
8. The number portability risk assessment method according to claim 1, characterized in that: The performing cluster analysis on the initial users based on the initial user information to divide the initial users into a plurality of clusters includes: Treat each initial user as a data point and determine the distance between each data point; Traverse each data point and take the data point whose number of other data points within the neighborhood radius is greater than the minimum sample number as the core point; Other data points that are densely reachable from each core point are determined from the data points, and each core point and the corresponding other data points are regarded as a cluster.
9. The number portability risk assessment method according to claim 8, characterized in that: The determining of other data points that are density-reachable from each core point from the data points, and treating each core point and the corresponding other data points as a cluster, comprises: Calculate the closeness between each data point and other data points in the same cluster, as well as the separation between each data point and data points in other clusters; When the compactness and the separation do not meet the preset conditions, a new neighborhood radius and a minimum number of samples are obtained, and the step of traversing each data point and taking the data point whose number of other data points within the neighborhood radius is greater than the minimum number of samples as the core point is returned.
10. The number portability risk assessment method according to claim 1, characterized in that: The step of determining, for each cluster, the importance of the initial user information of the initial user included therein, and determining an indicator feature based on the importance includes: For each cluster, performing a difference analysis on the initial user information corresponding to the included data points to obtain an importance score of the initial user information; The preset number of initial user information with the highest importance scores are deduplicated to screen out the indicator features.
11. A number portability risk assessment device, characterized in that: include: An acquisition module, used to acquire multiple initial user information of multiple initial users who have ported their numbers to other networks; A clustering module, configured to perform cluster analysis on the initial users based on the initial user information, divide the initial users into a plurality of clusters, and determine the importance of the initial user information of the initial users included in each cluster, and determine an indicator feature based on the importance; A training module, used to obtain sample data, and perform model training based on the sample data to build a risk assessment model; the sample data includes sample user information corresponding to the indicator characteristics of multiple sample users, and the user categories of the sample users include users who have ported their numbers and users who have not ported their numbers; The analysis module is used to obtain the user information to be analyzed corresponding to the indicator characteristics of the target user, and input the user information to be analyzed into the risk assessment model for characteristic analysis to obtain the number portability risk level of the target user.
12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the number portability risk assessment method as described in any one of claims 1 to 10.
13. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the number portability risk assessment method as described in any one of claims 1-10 are implemented.
