Customer quality analysis method, device, computer equipment and storage medium
By constructing sub-models and social network graphs, calculating customer quality index and delivering value, the problem of low efficiency and poor accuracy of traditional manual analysis is solved, and efficient and accurate customer quality analysis and precision marketing are achieved.
Patent Information
- Application Number
- CN201811025446.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-04
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional method of manual customer quality analysis is inefficient and inaccurate, making it difficult to achieve precise marketing.
Build multiple sub-models by obtaining customer sample data, determine the weight factors of the sub-models, generate analysis models, calculate customer quality index and transfer value based on social network graphs, and achieve fast and accurate customer quality analysis.
It improves the efficiency and accuracy of customer quality analysis, and can comprehensively consider multiple dimensions of customer information to provide precise marketing guidance.
Smart Images

Figure CN109325781B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a customer quality analysis method, apparatus, computer equipment and storage medium. Background Art
[0002] Different customers have different qualities, and the service efforts that companies need to put in are also different. In the traditional way, business personnel manually judge customer qualities such as customer purchasing power, customer interest, and customer value. Since it is difficult for humans to comprehensively consider multiple factors, the manual method is not only inefficient, but also has poor accuracy, making it difficult to achieve the purpose of precision marketing. Summary of the invention
[0003] Based on this, it is necessary to provide a customer quality analysis method, device, computer equipment and storage medium that can improve the efficiency and accuracy of customer quality analysis in response to the above technical problems.
[0004] A method for analyzing customer quality, the method comprising: obtaining customer sample data, constructing multiple sub-models according to the customer sample data; determining weight factors respectively corresponding to the multiple sub-models; generating an analysis model according to the multiple sub-models and the respectively corresponding weight factors; when receiving a customer quality analysis request sent by a terminal, obtaining corresponding customer data according to a customer identifier contained in the customer quality analysis request, inputting the customer data into the analysis model, and obtaining a quality index corresponding to the customer identifier.
[0005] In one embodiment, constructing multiple sub-models based on the customer sample data includes: obtaining customer sample data of multiple customers in a historical period; establishing a customer profile based on the customer sample data; generating a quality label corresponding to each customer based on the customer profile; training an initial model using multiple customer sample data and their corresponding quality labels to obtain sub-models for corresponding historical periods; and screening a preset number of sub-models from the sub-models for multiple historical periods based on a preset sliding window function.
[0006] In one of the embodiments, determining the weight factors respectively corresponding to the plurality of sub-models includes: obtaining a time tag of the sub-model; and determining the weight factors respectively corresponding to the plurality of sub-models based on a preset time attenuation function and the time tag.
[0007] In one of the embodiments, the method further includes: obtaining a corresponding social network graph according to the customer identifier; the social network graph includes a target customer node and multiple associated customer nodes corresponding to the customer identifier; calculating a quality index of each associated customer node based on the analysis model; calculating the intimacy between each associated customer node and the target customer node; and determining the transfer value corresponding to the customer identifier based on the intimacy and the quality index.
[0008] In one of the embodiments, before obtaining the corresponding social network graph according to the customer identifier, it also includes: obtaining customer basic data, and determining a target customer node according to the customer basic data; obtaining customer association data, and determining multiple associated customer nodes according to the customer association data; calculating the shortest social distance between each associated customer node and the target customer node; screening the associated customer nodes based on the shortest social distance; and constructing the social network graph using the target customer node and the screened associated customer nodes.
[0009] In one of the embodiments, determining the transfer value corresponding to the customer identifier based on the intimacy and the quality index includes: constructing a target group using the target customer node and associated customer nodes whose intimacy exceeds a first threshold and whose quality index exceeds a second threshold; calculating the group size and group coreness of the target group; calculating the average quality index of multiple group members in the target group; and determining the transfer value corresponding to the customer identifier based on the group size, the group coreness and the average quality index.
[0010] A customer quality analysis device, the device comprising: a model building model, used to obtain customer sample data, build multiple sub-models according to the customer sample data; determine the weight factors corresponding to the multiple sub-models; generate an analysis model according to the multiple sub-models and the corresponding weight factors; a quality analysis module, used to, when receiving a customer quality analysis request sent by a terminal, obtain corresponding customer data according to a customer identifier included in the customer quality analysis request, input the customer data into the analysis model, and obtain a quality index corresponding to the customer identifier.
[0011] In one of the embodiments, the device also includes a value analysis module, which is used to obtain a corresponding social network graph according to the customer identifier; the social network graph includes a target customer node and multiple associated customer nodes corresponding to the customer identifier; calculate the quality index of each associated customer node based on the analysis model; calculate the intimacy between each associated customer node and the target customer node; and determine the transfer value corresponding to the customer identifier based on the intimacy and the quality index.
[0012] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the customer quality analysis method provided in any embodiment of the present application are implemented.
[0013] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a customer quality analysis method provided in any embodiment of the present application.
[0014] The above-mentioned customer quality analysis method, device, computer equipment and storage medium can construct multiple sub-models using customer sample data, determine corresponding weight factors for different sub-models, and generate an analysis model based on the multiple sub-models and the corresponding weight factors; when a customer quality analysis request sent by a terminal is received, the quality index of the corresponding customer can be output based on the analysis model. Since the analysis model is pre-constructed using customer sample data, the quality index of the corresponding customer can be quickly obtained based on the analysis model by only taking the customer data as an input parameter, and the information of multiple dimensions of the customer can also be comprehensively considered, thereby not only improving the efficiency of customer quality analysis, but also improving the accuracy of customer quality analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is an application scenario diagram of a customer quality analysis method in an embodiment;
[0016] Figure 2 is a flow chart of a customer quality analysis method in one embodiment;
[0017] Figure 3 A flowchart of a customer delivery value measurement step in one embodiment;
[0018] Figure 4A is a schematic diagram of a social network graph in one embodiment;
[0019] Figure 4B is a schematic diagram of a breadth-first search tree in one embodiment;
[0020] Figure 5 is a structural block diagram of a customer quality analysis device in one embodiment;
[0021] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0023] The customer quality analysis method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. Among them, the terminal 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers. The server 104 builds corresponding sub-models based on customer sample data of multiple customers in different historical periods. Specifically, the server 104 establishes a customer profile based on the customer sample data of a customer in a certain historical period, and generates a quality label corresponding to each customer based on the customer profile. The server 104 trains the initial model using multiple customer sample data and the corresponding quality labels to obtain the sub-model of the corresponding historical period. The server 104 selects a preset number of sub-models from the sub-models of multiple historical periods based on a preset sliding window function. Each sub-model has a corresponding time label. The server 104 determines the weight factors corresponding to the multiple sub-models based on the preset time decay function and the time label. The server 104 generates an analysis model based on the multiple sub-models and the corresponding weight factors. When receiving the customer quality analysis request sent by the terminal 102, the server 104 obtains the corresponding customer data according to the customer identifier contained in the customer quality analysis request, inputs the customer data into the analysis model, and obtains the quality index corresponding to the customer identifier. In the above customer quality analysis process, the analysis model is pre-built using the customer sample data, and the information of multiple dimensions of the customer can be comprehensively considered based on the analysis model, thereby improving not only the efficiency of customer quality analysis, but also the accuracy of customer quality analysis.
[0024] In one embodiment, Figure 2 As shown, a customer quality analysis method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0025] Step 202, obtain customer sample data, and build multiple sub-models based on the customer sample data.
[0026] The server constructs an analysis model for the corresponding monitoring cycle every other monitoring cycle. The length of the monitoring cycle can be freely set according to demand, such as 1 year. The analysis model corresponding to the current monitoring cycle can be constructed using analysis models of multiple historical monitoring cycles. For the convenience of description, the analysis model of the historical monitoring cycle is called a "sub-model". The initial sub-model can be obtained by the server training the initial model using a large amount of customer sample data.
[0027] Step 204: determine the weight factors corresponding to the multiple sub-models respectively.
[0028] The weight factor can be configured according to the accuracy evaluation results of each sub-model. For example, the weight factor of the sub-model with high accuracy is increased, and the weight factor of the sub-model with low accuracy is reduced. The weight factor can also be configured according to the time sequence corresponding to each sub-model. For example, the weight factor of the sub-model whose time is close to the current monitoring cycle is increased, and the weight factor of the sub-model whose time is far from the current monitoring cycle is reduced. The weight factor can also be determined in other ways, which are not limited to this.
[0029] Step 206: Generate an analysis model based on the multiple sub-models and their corresponding weight factors.
[0030] The server performs a linear regression operation based on multiple sub-models and the corresponding weight factors to obtain a first analysis model. In order to improve the accuracy of the first analysis model, the server trains and strengthens the first analysis model. Specifically, the server obtains customer sample data of multiple customers in the current monitoring period. The customer sample data has corresponding classification labels. The customer sample data includes information on multiple dimensions of the customer, such as age, occupation, family members, etc. The server inputs the customer sample data of the current monitoring period into the first analysis model to obtain an intermediate classification result. The server calculates the difference between the intermediate classification result and the classification label, adjusts the first analysis model according to the difference, and obtains a second analysis model (hereinafter referred to as the "analysis model").
[0031] Step 208: when receiving a customer quality analysis request sent by the terminal, obtaining corresponding customer data according to the customer identifier contained in the customer quality analysis request, inputting the customer data into the analysis model, and obtaining a quality index corresponding to the customer identifier.
[0032] When business personnel need to understand customer quality, they can initiate a customer quality analysis request to the server at the terminal. The customer quality analysis request carries the customer ID. The customer ID is used to uniquely identify a customer, such as an ID number, mobile phone number, etc. The server obtains the customer data corresponding to the customer based on the customer ID. The customer here can be an existing customer or a potential customer. When the customer is a potential customer, the corresponding customer data can be obtained by the server crawling on the network platform. The server cleans and quantifies the customer data, inputs the processed customer data into the analysis model, and outputs the quality index corresponding to the customer ID. The quality index can be a specific parameter indicator or a text description.
[0033] In this embodiment, multiple sub-models can be constructed using customer sample data, corresponding weight factors can be determined for different sub-models, and analysis models can be generated based on multiple sub-models and their corresponding weight factors; when a customer quality analysis request sent by a terminal is received, the quality index of the corresponding customer can be output based on the analysis model. Since the analysis model is pre-constructed using customer sample data, the quality index of the corresponding customer can be quickly obtained based on the analysis model by only taking the customer data as an input parameter, and the information of multiple dimensions of the customer can also be comprehensively considered, thereby not only improving the efficiency of customer quality analysis, but also improving the accuracy of customer quality analysis.
[0034] In one embodiment, multiple sub-models are constructed based on customer sample data, including: obtaining customer sample data of multiple customers in a historical period, and establishing a customer portrait based on the customer sample data; generating a quality label corresponding to each customer based on the customer portrait; training an initial model using multiple customer sample data and their corresponding quality labels to obtain sub-models for the corresponding historical period; and screening a preset number of sub-models from the sub-models for multiple historical periods based on a preset sliding window function.
[0035] The server obtains customer sample data for multiple historical periods. The historical period corresponds to the above-mentioned historical monitoring cycle. The server adds corresponding quality labels to the customer sample data of each customer. In order to reduce the tediousness of manual labeling, the server establishes a customer profile based on the customer sample data, and automatically generates the quality label of the corresponding customer based on the customer profile. Specifically, the server cleans the customer sample data and obtains multiple attribute labels corresponding to the customer, such as the user's age, gender, occupation, marital status, education level, occupation, property security, health status, etc. The server combines the obtained multiple attribute labels into a text vector and uses the composed text vector as the customer profile of the customer. As a virtual representative of the actual customer, the customer profile is often constructed based on the product and market, reflecting the characteristics and needs of the real customer. The server pre-stores a variety of attribute label combinations and the quality labels corresponding to each combination. Based on the correspondence between the pre-stored attribute label combination and the quality label, the server transforms the customer profile to obtain the quality label corresponding to the corresponding customer identifier. The quality label can be a quantitative indicator such as a score, or a qualitative indicator such as excellent, good, or poor.
[0036] The server trains the initial model based on a large amount of customer sample data and corresponding quality labels to obtain the corresponding sub-model. The initial model can be obtained by fitting the feature classification model and the feature fusion model. The initial model includes multiple customer indicators, each of which has corresponding customer attributes. For example, the customer attribute corresponding to the customer indicator "gender" can be "male" or "female". The server calculates the entropy gain corresponding to each customer indicator. The formula for calculating the entropy gain can be:
[0037]
[0038] Among them, GA represents the calculated entropy gain of customer indicator A; M represents the probability of customer quality evaluation; Ai represents the ratio of the number of customer attributes i corresponding to customer indicator A to the total number of customer attributes in the customer sample data, ai represents the probability of customer quality evaluation of customer attribute i based on the number of customer indicator A, and n represents the number of customer attributes corresponding to customer indicator A. The server weightedly sums the entropy gains of multiple customer indicators to obtain the entropy gains corresponding to the corresponding customer indicator combinations. The server trains the preset first model through the feature classification algorithm according to the entropy gains and quality labels corresponding to each customer indicator combination to obtain a feature classification model. The feature classification algorithm can be a combination of GBDT (Gradient Boost Decision Tree) and (Logistic Regression).
[0039] The server obtains a feature fusion model based on customer sample data training. Specifically, if the customer data is obtained by crawling through a network platform, different network platforms may have different naming methods for the same customer indicator. In order to reduce the impact of naming differences on model training, the server performs synonym expansion processing on each customer indicator to obtain an extended indicator combination corresponding to each customer indicator combination. The server obtains the synonyms corresponding to each participle in the customer indicator, and forms an extended word set with the participle and the corresponding synonym. Each participle has a corresponding extended word set. For example, if the customer indicator combination A is {a, b, c}, then each customer indicator in the customer indicator combination has a corresponding extended word set, such as the extended word set corresponding to customer indicator a is {a, a1, a2}, the extended word set corresponding to customer indicator b is {b, b1, b2, b3}, and the extended word set corresponding to customer indicator c is {c, c1, c2}. The server selects a word from the extended word set corresponding to each customer indicator in the order in which each customer indicator appears in the customer indicator combination, and forms an extended indicator set in order. When different words are selected from the extended word set, different extended indicator sets are formed, and different extended indicator sets constitute extended indicator combinations. The server trains the preset second model through a feature fusion algorithm according to each extended indicator combination and the corresponding monitoring results to obtain a feature fusion model. The feature fusion algorithm can be a random forest algorithm, etc.
[0040] First, an extended word set corresponding to each customer indicator is formed, and then an extended indicator combination corresponding to each customer indicator combination is formed through the extended word set, which greatly improves the extension degree of customer indicators. Each expanded customer indicator expresses the same or similar meaning as the original customer indicator, which improves the effective coverage of customer indicators. Therefore, after the trained feature fusion model is subsequently input, the accuracy of quality analysis can be improved.
[0041] The server fits the feature classification model with the feature fusion model to obtain the corresponding sub-model. In a specific embodiment, the server performs linear fitting on the logistic regression model, GBDT (Gradient Boost Decision Tree, nonlinear model), (Logistic Regression, logistic regression model), and random forest model to obtain a sub-model. For example, sub-model = logistic regression model * W1 + GBDT * W2 + LR * W3 + random forest model * W4. Where Wi is a weight factor.
[0042] In this embodiment, different types of models have differences in ROC (receiver operating characteristic curve). Here, fitting different types of models can improve the accuracy of customer quality analysis.
[0043] In one embodiment, determining weight factors corresponding to the plurality of sub-models respectively includes: obtaining time tags of the sub-models; and determining weight factors corresponding to the plurality of sub-models respectively based on a preset time decay function and the time tags.
[0044] Each sub-model has a corresponding time label. The time label can be generated according to the construction period of the sub-model, such as 2017, 20170317, etc. The server uses the time decay function Determine the contribution rate of each sub-model, that is, determine the weight factors corresponding to the multiple sub-models. Among them, Δt is the time difference between the time label and the current time; T is the optimal time length. For example, the time difference between the time label "2017" and the current time "2018" is Δt=1; T can be the time span corresponding to the sliding window function, that is, the number of sub-models screened. It is easy to understand that the sub-models farther away from the current time period are trained with earlier historical customer data, and the reference significance (i.e. contribution rate) for analyzing the quality of customers in the current time period is smaller. In other words, the larger the time difference, the smaller the contribution rate of the corresponding sub-model to the quality analysis, so that the weight factors of multiple sub-models can be determined based on the time decay function.
[0045] In this embodiment, the weight factors of multiple sub-models are determined based on the time decay function, which fully considers the contribution rate of the sub-models in different historical periods to the quality analysis of customers in the current period, thereby improving the accuracy of the analysis model.
[0046] In one embodiment, Figure 3 As shown, the method also includes the step of calculating the customer delivered value, specifically including:
[0047] Step 302: Acquire a corresponding social network graph according to the customer identifier; the social network graph includes a target customer node corresponding to the customer identifier and a plurality of associated customer nodes.
[0048] The social network graph is generated based on the social relationship data of the customer. The social relationship data can be crawled from a pre-specified social networking site. The social relationships in the social networking site can be interrelated relationships such as friendships, mutual attention, etc. The social relationship also includes data related to customer actions, such as the customer's posting or sharing of information affects friends to comment, like, forward, etc. The social network graph includes multiple customer nodes and edges used to connect customer nodes.
[0049] In one embodiment, before obtaining the corresponding social network graph according to the customer identifier, it also includes: obtaining customer basic data, and determining a target customer node according to the customer basic data; obtaining customer association data, and determining multiple associated customer nodes according to the customer association data; calculating the shortest social distance between each associated customer node and the target customer node; screening the associated customer nodes based on the shortest social distance; and constructing a social network graph using the target customer node and the screened associated customer nodes.
[0050] The server determines the target customer node corresponding to the customer ID based on the customer basic data. The customer basic data includes the customer's own attribute information, such as name, age, occupation, etc. The server determines the associated customer node corresponding to each key customer based on the customer association data. The customer association data includes the attribute information of other customers with whom the customer has a social relationship. Figure 4A As shown, the server identifies the relationship between customers through the edges between nodes, that is, the target customer node v1 is connected with the associated customer node vi (i≥2) according to the social relationship between customers to obtain the initial social network graph corresponding to the customer identification.
[0051] In order to improve the utilization rate of the social network graph, the associated customer nodes are screened. Specifically, the server constructs a breadth-first search tree (Breadth-First Search BFS) with the target customer node as the root node. The breadth-first search tree starts from the target customer identifier and traverses all customer nodes in the social network graph in sequence. The breadth-first search starts from the root node v1 of the social network graph. After visiting v1, it searches for each unvisited adjacent point v2, v3,... of v1 in sequence. Then, it searches for each unvisited adjacent point of v2, each unvisited adjacent point of v3,... in sequence. That is, starting from v1, from near to far, the nodes that have a path connected to v1 and whose path lengths are 1, 2,... are visited in order in a hierarchical manner until all nodes in the social network graph have been visited once. For example Figure 4B As shown, according to Figure 4A The social network graph in , and the breadth-first search tree constructed with the target customer node v1 as the root node.
[0052] The server determines the shortest social distance from each associated client node to the target client node based on the breadth-first search tree. Figure 4B Among them, the shortest social distance of v2, v3 and v5 is 1, the shortest social distance of v4, v6 and v8 is 2, and the shortest social distance of v7 is 3.
[0053] The server calculates the group size corresponding to the social network graph. The group size refers to the number of group members. The server calculates the difference between the group size and the shortest social distance of each associated customer node, and filters the associated customer nodes whose difference is less than or equal to the threshold, that is, removes the associated customer nodes whose difference is less than or equal to the threshold and the edge sets corresponding to the removed associated customer nodes in the social network graph, and obtains the final social network graph corresponding to the customer identifier. This embodiment filters the associated customer nodes, which can simplify the social network graph, thereby simplifying the amount of calculation when the social network graph is subsequently applied, thereby improving the efficiency of customer quality analysis.
[0054] Step 304, calculating the quality index of each associated client node based on the analysis model.
[0055] According to the final social network graph corresponding to the customer identification, the server obtains the customer data corresponding to each associated customer node, inputs the customer data into the analysis model, and obtains the quality index corresponding to each associated customer node. The quality index can represent the potential value of the associated customer.
[0056] Step 306, calculating the intimacy between each associated customer node and the target customer node.
[0057] The server uses a preset calculation formula to calculate the intimacy between each associated client node and the target client node. The intimacy calculation formula can be:
[0058]
[0059] Among them, Q(v,w) is the intimacy between the associated customer node w and the target customer node v; N(v) represents the set of adjacent nodes of the target customer node v; the number of common adjacent nodes of the target customer node v and the associated customer node w is |N(v)∩N(w)|; the number of nodes that are not adjacent to the target customer node v and the associated customer node is |N(v)∪N(w)|.
[0060] Step 308: Determine the delivery value corresponding to the customer identifier according to the intimacy and the quality index.
[0061] Based on the calculated intimacy, the server calculates the average intimacy between multiple associated customer nodes and the target customer node. The server calculates the average quality index of the quality index corresponding to the target customer node and the quality index corresponding to multiple associated customer nodes. The server calculates the transfer value corresponding to the customer identifier based on the average intimacy and the average quality index. For example, the transfer value is obtained by weighted summing the average intimacy and the average quality index. The transfer value refers to the probability that a customer pushes product information to other customers and that other customers are interested in the pushed information. There are also other ways to calculate the transfer value, which are not limited.
[0062] In one embodiment, the transfer value corresponding to the customer identifier is determined based on the intimacy and quality index, including: constructing a target group using the target customer node and associated customer nodes whose intimacy exceeds a first threshold and whose quality index exceeds a second threshold; calculating the group size and group verification of the target group; calculating the average quality index of multiple group members in the target group; and determining the transfer value corresponding to the customer identifier based on the group size, group verification and average quality index.
[0063] The server screens the associated customer nodes again according to the density and quality index. Specifically, the server screens the associated customer nodes whose intimacy with the target customer node reaches the first threshold and whose own quality index reaches the second threshold. The server uses the target customer node and the associated customer nodes obtained by the re-screening to construct a target group, and uses the target group as the effective social group of the customer to be analyzed. The server calculates the average quality index of multiple group members in the effective social group, that is, calculates the average value of the quality index corresponding to the target customer node and the quality index corresponding to multiple associated customer nodes. The server calculates the group size and group coreness of the effective social group. The group size refers to the number of group members. The group coreness refers to the minimum number of other group members in the adjacent group of each group member in the group. The group coreness can reflect the social heat between the associated customer nodes and the associated customer nodes. The server determines the transfer value corresponding to the customer identifier based on the group size, group coreness and average quality index. In this embodiment, the associated customer nodes are screened again, and the target group is constructed. The accuracy of the transfer value calculation can be improved by comprehensively considering the group size, group coreness and group average quality index.
[0064] In this embodiment, not only the quality index of the customer itself is analyzed, but also the customer's delivery value is analyzed based on the customer's social relationship, so that the analysis result is more comprehensive, which can provide business personnel with more accurate business guidance and achieve precision marketing.
[0065] It should be understood that although Figure 2 and Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 and Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0066] In one embodiment, Figure 5 As shown, a customer quality analysis device is provided, including: a model building model 502 and a quality analysis module 504, wherein:
[0067] Model building model 502 is used to obtain customer sample data, build multiple sub-models according to the customer sample data; determine the weight factors corresponding to the multiple sub-models; and generate an analysis model according to the multiple sub-models and the corresponding weight factors.
[0068] The quality analysis module 504 is used to, when receiving a customer quality analysis request sent by a terminal, obtain corresponding customer data according to the customer identifier contained in the customer quality analysis request, input the customer data into the analysis model, and obtain a quality index corresponding to the customer identifier.
[0069] In one embodiment, the model building model 502 is also used to obtain customer sample data of multiple customers in a historical period; establish a customer portrait based on the customer sample data; generate a quality label corresponding to each customer based on the customer portrait; use multiple customer sample data and the corresponding quality labels to train the initial model to obtain a sub-model of the corresponding historical period; and filter a preset number of sub-models from the sub-models of multiple historical periods based on a preset sliding window function.
[0070] In one embodiment, the model building model 502 is also used to obtain the time label of the sub-model; based on the preset time decay function and the time label, determine the weight factors corresponding to the multiple sub-models respectively.
[0071] In one embodiment, the device also includes a value analysis module 506, which is used to obtain a corresponding social network graph according to the customer identifier; the social network graph includes a target customer node and multiple associated customer nodes corresponding to the customer identifier; the quality index of each associated customer node is calculated based on the analysis model; the intimacy between each associated customer node and the target customer node is calculated; and the transfer value corresponding to the customer identifier is determined based on the intimacy and the quality index.
[0072] In one embodiment, the value analysis module 506 is also used to obtain customer basic data, determine the target customer node based on the customer basic data; obtain customer association data, determine multiple associated customer nodes based on the customer association data; calculate the shortest social distance between each associated customer node and the target customer node; filter the associated customer nodes based on the shortest social distance; and construct a social network graph using the target customer node and the filtered associated customer nodes.
[0073] In one embodiment, the value analysis module 506 is also used to construct a target group using target customer nodes and associated customer nodes whose intimacy exceeds a first threshold and whose quality index exceeds a second threshold; calculate the group size and group verification of the target group; calculate the average quality index of multiple group members in the target group; and determine the delivery value corresponding to the customer identifier based on the group size, group verification and average quality index.
[0074] For the specific definition of the customer quality analysis device, please refer to the definition of the customer quality analysis method above, which will not be repeated here. Each module in the above-mentioned customer quality analysis device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0075] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 The computer device includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store a social network graph. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a customer quality analysis method is implemented.
[0076] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0077] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a customer quality analysis method provided in any embodiment of the present application.
[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0079] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0080] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for analyzing customer quality, the method comprising: include: Acquire customer sample data, and construct multiple sub-models according to the customer sample data, wherein the sub-models are obtained by fitting a feature classification model and a feature fusion model; Determine the weight factors corresponding to each of the plurality of sub-models; Performing a linear regression operation based on the plurality of sub-models and the weight factors corresponding to each other to obtain a first analysis model; obtaining customer sample data of a plurality of customers in a current monitoring period, wherein the customer sample data has corresponding classification labels; Inputting the customer sample data of the current monitoring period into the first analysis model to obtain an intermediate classification result; Calculating the difference between the intermediate classification result and the classification label, and adjusting the first analysis model according to the difference to obtain a second analysis model; When receiving a customer quality analysis request sent by a terminal, acquiring corresponding customer data according to a customer identifier included in the customer quality analysis request, inputting the customer data into the second analysis model, and obtaining a quality index corresponding to the customer identifier; Acquire a corresponding social network graph according to the customer identifier; the social network graph includes a target customer node and multiple associated customer nodes corresponding to the customer identifier; the social network graph is obtained by acquiring customer basic data and customer associated data, determining the target customer node according to the customer basic data, determining the multiple associated customer nodes according to the customer associated data, calculating the shortest social distance between each associated customer node and the target customer node, screening the associated customer nodes based on the shortest social distance, and constructing the graph using the target customer node and the screened associated customer nodes; Calculating a quality index of each of the associated client nodes based on the second analysis model; Calculate the intimacy between each associated customer node and the target customer node; constructing a target group using the target client node and associated client nodes whose intimacy exceeds a first threshold and whose quality index exceeds a second threshold; Calculating the group size and group accuracy of the target group; Calculating an average quality index of a plurality of group members in the target group; The delivery value corresponding to the customer identifier is determined according to the group size, the group degree and the average quality index.
2. The method according to claim 1, It is characterized in that The constructing of multiple sub-models according to the customer sample data includes: acquiring customer sample data of multiple customers in a historical period; Establishing a customer profile based on the customer sample data; Generate a quality label corresponding to each customer based on the customer portrait; Using the plurality of customer sample data and the quality labels corresponding to each other to train the initial model, a sub-model of the corresponding historical period is obtained; A preset number of sub-models are selected from sub-models of multiple historical periods based on a preset sliding window function.
3. The method according to claim 1, It is characterized in that The determining of the weight factors respectively corresponding to the plurality of sub-models comprises: obtaining the time tags of the sub-models; Based on a preset time decay function and the time label, weight factors corresponding to each of the plurality of sub-models are determined.
4. The method according to claim 2, It is characterized in that The step of establishing a customer profile based on the customer sample data includes: Cleaning the customer sample data to obtain multiple attribute labels; The multiple attribute labels are combined into a text vector, and the text vector is used as the customer portrait.
5. The method according to claim 2, It is characterized in that Generating a quality label corresponding to each customer based on the customer portrait includes: Based on the correspondence between the pre-stored attribute label combination and the quality label, the customer portrait is converted to obtain the quality label corresponding to each customer.
6. The method according to claim 2, It is characterized in that The initial model is obtained by fitting the feature classification model and the feature fusion model.
7. A customer quality analysis device, It is characterized in that The device comprises: A model building model is used to obtain customer sample data, build multiple sub-models based on the customer sample data, and the sub-models are obtained by fitting a feature classification model and a feature fusion model; determine the weight factors corresponding to the multiple sub-models; perform linear regression operations based on the multiple sub-models and the corresponding weight factors to obtain a first analysis model; obtain customer sample data of multiple customers in the current monitoring period, and the customer sample data has corresponding classification labels; input the customer sample data of the current monitoring period into the first analysis model to obtain an intermediate classification result; calculate the difference between the intermediate classification result and the classification label, and adjust the first analysis model according to the difference to obtain a second analysis model; A quality analysis module, configured to, when receiving a customer quality analysis request sent by a terminal, obtain corresponding customer data according to a customer identifier included in the customer quality analysis request, input the customer data into the second analysis model, and obtain a quality index corresponding to the customer identifier; A value analysis module, for obtaining a corresponding social network graph according to the customer identifier; the social network graph includes a target customer node and multiple associated customer nodes corresponding to the customer identifier; the social network graph is obtained by obtaining customer basic data and customer associated data, determining the target customer node according to the customer basic data, determining the multiple associated customer nodes according to the customer associated data, calculating the shortest social distance between each associated customer node and the target customer node, screening the associated customer nodes based on the shortest social distance, and constructing the graph using the target customer node and the screened associated customer nodes; calculating the quality index of each associated customer node based on the second analysis model; calculating the intimacy between each associated customer node and the target customer node; constructing a target group using the target customer node and the associated customer nodes whose intimacy exceeds a first threshold and whose quality index exceeds a second threshold; calculating the group size and group coreness of the target group; calculating the average quality index of multiple group members in the target group; and determining the transfer value corresponding to the customer identifier according to the group size, the group coreness and the average quality index.
8. The device according to claim 7, It is characterized in that The device also includes a model building module, which is used to obtain customer sample data of multiple customers in a historical period; establish a customer profile based on the customer sample data; generate a quality label corresponding to each customer based on the customer profile; and train the initial model using the multiple customer sample data and the corresponding quality labels to obtain a sub-model for the corresponding historical period; A preset number of sub-models are selected from sub-models of multiple historical periods based on a preset sliding window function.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
