A method and device for customer group selection and comparative analysis

Through label selection and customer bitmap technology, it solves the problems of heavy programming workload and poor timeliness in customer group selection and comparative analysis in the existing technology, and realizes flexible customer group selection and efficient comparative analysis, which is suitable for large-scale Rapid analysis of customer data.

CN115879980BActive Publication Date: 2024-08-27BEIJING PACTERA JINXIN TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211616743.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-15
Publication Date
2024-08-27
Estimated Expiration
2042-12-15

AI Technical Summary

Technical Problem

The existing technology requires a lot of programming work in customer group selection and comparative analysis, resulting in solidified conditions and poor calculation timeliness. Especially when the amount of customer data is large and the conditions are complex, it takes a long time to generate results.

Method used

Flexibly select target customer groups by selecting tags, conduct comparative analysis in different tag dimensions, use customer bitmaps to improve calculation speed and efficiency, and achieve dynamic condition setting and rapid result generation.

Benefits of technology

It achieves flexibility and efficiency in customer group selection and comparative analysis, reduces programming workload, improves calculation speed and efficiency, and is suitable for rapid analysis of large-scale customer data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115879980B
    Figure CN115879980B
Patent Text Reader

Abstract

The present application provides a method and device for customer group selection and comparative analysis, including: receiving a customer group selection request; selecting a target customer group from a customer set and obtaining target customer group label data according to a customer label data set and the selected label associated data in the customer group selection request; the customer label data set includes a data time dimension, a label name dimension, a label value dimension, and a customer bitmap dimension; the customer bitmap is determined by the data time, the label name, and the label value; receiving a customer group comparative analysis request, including a reference customer group label identifier and a comparative label name; determining the comparative analysis results of the target customer group and the reference customer group on the comparative label dimension according to the target customer group label data, the reference customer group label data, and the comparative label name. In this way, by selecting labels, the target customer group can be flexibly selected and the customer group can be comparatively analyzed on different label dimensions; at the same time, the use of a customer bitmap can improve the calculation speed and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and device for customer group selection and comparative analysis. Background Art

[0002] At present, in the existing technology, when performing customer group selection and comparative analysis, first, the developer needs to pre-set the business rules for customer group selection and write a program, and then process the customer list through the ETL method; after that, the developer also needs to pre-set the analysis rules for the customer list and write a program, and process the analysis results of each customer group through the ETL method, and then perform comparative analysis by BI tools.

[0003] In this way, the existing customer group selection and comparative analysis methods require developers to perform a lot of programming work, resulting in the selection conditions and analysis conditions used for customer group selection and comparative analysis being fixed in the program and difficult to change; in addition, with the expansion of customer data, when the amount of customer data is huge and the conditions used for customer group selection and analysis are complex, the generation of customer group selection results and comparative analysis results requires a lot of time, resulting in poor timeliness of calculation. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a method and device for customer group selection and comparative analysis, which can flexibly select target customer groups by selecting labels, and flexibly compare and analyze customer groups in different label dimensions; at the same time, the customer group selection and comparative analysis method using customer bitmap can improve the calculation speed and efficiency.

[0005] The present application embodiment provides a method for customer group selection and comparative analysis, the method comprising:

[0006] Receive customer group selection requests;

[0007] According to the customer tag data set corresponding to the customer set and the selected tag association data included in the customer group selection request, a target customer group is selected from the customer set and target customer group tag data corresponding to the target customer group is obtained; wherein the customer tag data set includes a data time dimension, a tag name dimension, a tag value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the tag name under the tag name dimension and the tag value under the tag value dimension;

[0008] Receiving a customer group comparison analysis request; the customer group comparison analysis request includes a reference customer group identifier and a comparison tag name;

[0009] The comparative analysis result between the target customer group and the reference customer group in the comparative label dimension is determined according to the target customer group label data, the reference customer group label data retrieved by the reference customer group identifier, and the comparative label name.

[0010] Further, the selected tag associated data includes a target data time, at least one target tag name, a target tag value corresponding to each target tag name, and a logical calculation relationship between each target tag; and selecting a target customer group from the customer set according to the customer tag data set corresponding to the customer set and the selected tag associated data included in the customer group selection request includes:

[0011] According to the target data time, each target tag name and the target tag value corresponding to each target tag name, a customer bitmap corresponding to the target data time, each target tag name and each target tag value is found from the customer tag data set; wherein each bit in the customer bitmap corresponds to a customer in the customer set, and the value of the bit is used to indicate whether the customer has the target tag value corresponding to the target tag name at the target data time;

[0012] Performing a logical operation between each customer bitmap according to the logical operation relationship to obtain a target customer bitmap corresponding to the target customer group; wherein the logical operation relationship includes a combination of one or more of the following items: intersection and union;

[0013] The target customer group is determined according to the value of each bit in the target customer bitmap.

[0014] Furthermore, the customer label dataset is constructed in the following manner:

[0015] Obtaining an original customer data table corresponding to the customer set; wherein the original customer data table includes a customer record of each customer in the customer set; the customer record of each customer includes a data time of the customer record, a customer identifier of the customer, multiple tag names corresponding to the customer, and a tag value corresponding to each tag name;

[0016] Each customer record in the original customer data table is decomposed into multiple customer feature records to obtain a customer feature data table; wherein each customer feature record includes the data time of the customer feature record, the customer identifier of the customer, a tag name corresponding to the customer, and a tag value corresponding to the tag name;

[0017] According to the data time, tag name and tag value in each customer feature record in the customer feature data table, an aggregation operation is performed on each customer identifier in the customer feature data table to obtain a customer identifier corresponding to the data time, tag name and tag value;

[0018] Setting a mapping relationship between each bit in the customer bitmap and the customer identifier, and converting the customer identifier corresponding to the data time, the tag name and the tag value into the customer bitmap according to the mapping relationship;

[0019] The customer tag data set is constructed according to the data time, tag name, tag value and the converted customer bitmap.

[0020] Further, determining the comparative analysis result of the target customer group and the reference customer group on the comparison label dimension according to the target customer group label data, the reference customer group label data retrieved by the reference customer group identifier, and the comparison label name includes:

[0021] For each comparison label value corresponding to the comparison label name, a target comparison customer group having the comparison label value is screened out from the target customer group according to the target customer group label data; and a reference comparison customer group having the comparison label value is screened out from the reference customer group according to the reference customer group label data;

[0022] Based on the target comparison customer group and the reference comparison customer group corresponding to each comparison tag value, a comparison analysis result between the target customer group and the reference customer group in the comparison tag dimension is determined.

[0023] Furthermore, the step of determining the comparative analysis result of the target customer group and the reference customer group on the comparative label dimension based on the target comparative customer group and the reference comparative customer group corresponding to each comparative label value includes:

[0024] Determine the number of target customers in the target comparison customer group and the number of reference customers in the reference comparison customer group corresponding to each comparison label value;

[0025] The ratio of the number of target customers to the number of reference customers is determined as a comparative analysis result under the comparative label value in the comparative label dimension; wherein the comparative analysis result is used to characterize the similarity between the target customer group and the reference customer group under the comparative label dimension.

[0026] Further, after determining the ratio of the number of target customers to the number of reference customers as the comparison analysis result under the comparison tag value in the comparison tag dimension, the method further includes:

[0027] If the comparative analysis result indicates that the similarity between the target customer group and the reference customer group in the comparative label dimension is less than a preset threshold, the comparative label is determined as a distinguishing feature between the target customer group and the reference customer group.

[0028] Furthermore, for each comparison tag value corresponding to the comparison tag name, selecting a target comparison customer group having the comparison tag value from the target customer group according to the target customer group tag data includes:

[0029] Determine a comparison customer bitmap corresponding to the comparison tag name and the comparison tag value from the customer tag data set;

[0030] Performing an intersection operation on the comparison customer bitmap and the target customer bitmap in the target customer group label data to obtain a first customer bitmap;

[0031] According to the value of each bit in the first customer bitmap, a target comparison customer group having the comparison tag value in the target customer group is determined.

[0032] The present application also provides a device for customer group selection and comparative analysis, the device comprising:

[0033] A first receiving module is used to receive a customer group selection request;

[0034] A customer group selection module is used to select a target customer group from the customer set and obtain target customer group label data corresponding to the target customer group according to a customer label data set corresponding to the customer set and the label association data included in the customer group selection request; wherein the customer label data set includes a data time dimension, a label name dimension, a label value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the label name under the label name dimension and the label value under the label value dimension;

[0035] A second receiving module is used to receive a customer group comparison analysis request; the customer group comparison analysis request includes a reference customer group identifier and a comparison tag name;

[0036] The comparison analysis module is used to determine the comparison analysis result between the target customer group and the reference customer group in the comparison label dimension according to the target customer group label data, the reference customer group label data queried by the reference customer group identifier and the comparison label name.

[0037] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for customer group selection and comparative analysis as described above are performed.

[0038] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for selecting and comparing customer groups as described above are executed.

[0039] A method and device for customer group selection and comparative analysis provided by an embodiment of the present application include: receiving a customer group selection request; selecting a target customer group from the customer set and obtaining target customer group label data corresponding to the target customer group according to a customer label data set corresponding to a customer set and the selected label associated data included in the customer group selection request; wherein the customer label data set includes a data time dimension, a label name dimension, a label value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the label name under the label name dimension and the label value under the label value dimension; receiving a customer group comparative analysis request; the customer group comparative analysis request includes a reference customer group identifier and a comparative label name; determining a comparative analysis result between the target customer group and the reference customer group on the comparative label dimension according to the target customer group label data, the reference customer group label data queried by the reference customer group identifier and the comparative label name.

[0040] In this way, by selecting labels, the target customer groups can be flexibly selected, and the customer groups can be flexibly compared and analyzed in different label dimensions, forming a processed customer bitmap. The customer bitmap selects the fields that must be selected based on the specific scenarios of financial business, and the bitmap is set based on specific fields to form an important basis for subsequent selection and analysis; at the same time, the customer group selection and comparative analysis method using the customer bitmap can improve the calculation speed and efficiency.

[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A flow chart of a method for customer group selection and comparative analysis provided in an embodiment of the present application is shown;

[0044] Figure 2 A schematic diagram of a process of constructing a customer tag data set provided in an embodiment of the present application is shown;

[0045] Figure 3 A schematic diagram showing the structure of a device for customer group selection and comparative analysis provided in an embodiment of the present application is shown;

[0046] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0047] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0048] After research, it was found that, at present, in the existing technology, when conducting customer group selection and comparative analysis, first, the developers need to pre-set the business rules for customer group selection and write programs, and then process the customer list through the ETL method; after that, the developers also need to pre-set the analysis rules for the customer list and write programs, and process the analysis results of each customer group through the ETL method, and then use the BI tool for comparative analysis.

[0049] In this way, the existing customer group selection and comparative analysis methods require developers to perform a lot of programming work, resulting in the selection conditions and analysis conditions used for customer group selection and comparative analysis being fixed in the program and difficult to change; in addition, with the expansion of customer data, when the amount of customer data is huge and the conditions used for customer group selection and analysis are complex, the generation of customer group selection results and comparative analysis results requires a lot of time, resulting in poor timeliness of calculation.

[0050] Based on this, the embodiments of the present application provide a method and device for customer group selection and comparative analysis, so as to flexibly select the target customer group by selecting labels, and flexibly compare and analyze the customer groups in different label dimensions; at the same time, the customer group selection and comparative analysis method using customer bitmap is used to improve the calculation speed and efficiency.

[0051] See also Figure 1 , Figure 1 This is a flow chart of a method for customer group selection and comparative analysis provided in an embodiment of the present application. Figure 1 As shown in, the method provided in the embodiment of the present application includes:

[0052] S101, receiving a customer group selection request.

[0053] The customer group selection request includes selection tag associated data; the selection tag associated data is used to select a customer group from a customer set by tag; the selection tag associated data includes target data time, at least one target tag name, a target tag value corresponding to each target tag name, and a logical calculation relationship between each target tag.

[0054] Here, the label can be a feature item obtained by abstractly summarizing the customer attributes; accordingly, the label value is the specific feature value corresponding to the feature item. For example, "gender" is the label name of a label of a customer, and "male" or "female" is the label value corresponding to the "gender" label. The logical operation relationship includes a combination of one or more of the following items: intersection and union.

[0055] In this step, the user can configure the target data time, target tag name, target tag value and the logical operation relationship between each target tag according to the actual business needs of customer group selection, so as to generate the selected tag associated data and trigger the customer group selection request; the server receives the customer group selection request, and can determine the target data time, at least one target tag name, the target tag value corresponding to each target tag name and the logical calculation relationship between each target tag included in the selected tag associated data by parsing the customer group selection request.

[0056] S102 , based on the customer tag data set corresponding to the customer set and the tag association data included in the customer group selection request, select a target customer group from the customer set, and obtain target customer group tag data corresponding to the target customer group.

[0057] Among them, the customer tag data set includes a data time dimension, a tag name dimension, a tag value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the tag name under the tag name dimension and the tag value under the tag value dimension.

[0058] The customer tag data set may cover multiple customer tag data. Accordingly, each customer tag data has a corresponding data time in the data time dimension, a corresponding tag name in the tag name dimension, a corresponding tag value in the tag value dimension, and a corresponding customer bitmap in the customer bitmap dimension; therefore, the customer bitmap of each customer tag data can represent the customer group in the customer set that has a tag value corresponding to the tag name at the data time. Specifically, the customer bitmap can be understood as an array, in which each bit corresponds to a customer in the customer set, and the number of bits in the customer bitmap is equal to the number of customers in the customer set; the value of each bit in the customer bitmap is used to represent whether the customer corresponding to the bit has a tag value corresponding to the tag name at the data time, for example, "1" represents that the customer corresponding to the bit has the tag value, and "0" represents that the customer corresponding to the bit does not have the tag value. For example, a certain customer tag data includes data time A, tag name "gender", tag value "male", and the corresponding customer bitmap [0,0,1,0]. Each bit in the customer bitmap corresponds to customers with customer numbers 001, 002, 003 and 004 respectively; then the customer bitmap indicates that in the customer set consisting of these four customers, the third bit in the customer bitmap (that is, customer number 003) has a tag value of "male" corresponding to the "gender" tag name, which means that the customer is a male customer.

[0059] In a possible implementation, step S102 may include:

[0060] S1021. According to the target data time, each target tag name and the target tag value corresponding to each target tag name, find out a customer bitmap corresponding to the target data time, each target tag name and each target tag value from the customer tag data set.

[0061] Exemplarily, the circled tag associated data includes target data time A, target tag name B and target tag value b corresponding to target tag name B, target tag name C and target tag value c corresponding to target tag name C. In a specific implementation, the corresponding customer bitmap bb can be found according to the target data time A, target tag name B and target tag value b; and the corresponding customer bitmap cc can be found according to the target data time A, target tag name C and target tag value c.

[0062] S1022: Perform a logical operation between each customer bitmap according to the logical operation relationship to obtain a target customer bitmap corresponding to the target customer group.

[0063] The logical operation relationship includes a combination of one or more of the following items: intersection and union. Therefore, the logical operation performed between each customer bitmap can be intersection, union, or a combination of intersection and union. For example, the intersection of two customer bitmaps can be first performed, and then the union with the third customer bitmap can be performed. In a specific implementation, the intersection of two customer bitmaps is to perform a bitwise AND calculation on the corresponding bits in the two customer bitmaps, and the union of two customer bitmaps is to perform a bitwise OR calculation on the corresponding bits in the two customer bitmaps.

[0064] S1023: Determine the target customer group according to the value of each bit in the target customer bitmap.

[0065] In this step, because the value of each bit in the customer bitmap is used to indicate whether the customer corresponding to the bit has the label value, the target customer group can be determined by counting the value of each bit in the target customer bitmap. For example, when "1" indicates that the customer corresponding to the bit has the label value, and "0" indicates that the customer corresponding to the bit does not have the label value, the customers corresponding to each bit with a value of "1" in the target customer bitmap can be used to form the target customer group.

[0066] In another possible implementation, the customer tag data set may further include a tag data condition dimension, and accordingly, each piece of customer tag data may further include a data condition; the data condition may refer to other conditions corresponding to the piece of customer tag data, such as the geographical location and generation channel when the piece of customer tag data was generated. Accordingly, the circled tag associated data may further include a target condition; then step S102 may further include: firstly, filtering out a subset of customer tag data whose tag data condition meets the target condition from the customer tag data set, and then searching for a corresponding customer bitmap in the customer tag data subset according to the target data time, each target tag name, and the target tag value corresponding to the target tag name.

[0067] In this step, the target condition can be a specific condition value. By comparing and matching the target condition with the customer label data set, the customer label data whose label data conditions meet the condition value of the target condition can be screened out to form a customer label data subset. In addition, the target condition can also be a specific condition range. By comparing and matching the target condition with each customer label data in the customer label data set, the customer label data whose label data conditions fall within the condition range of the target condition can be screened out to form a customer label data subset.

[0068] In this way, logical operations are performed on the corresponding customer bitmap based on the target data time, target tag name, target tag value corresponding to each target tag name, and logical operation relationship between target tags configured by the user. This makes it possible to flexibly and accurately deduplicate massive customer data to select target customer groups. The calculation process is efficient and fast, and the timeliness can be controlled within seconds.

[0069] In a specific implementation, the customer label dataset can be constructed in the following manner:

[0070] Step 1: Obtain the original customer data table corresponding to the customer set. The original customer data table includes customer records corresponding to each customer in the customer set; each customer record includes the data time of the customer record, the customer ID of the customer, multiple tag names corresponding to the customer, and the corresponding tag value under each tag name.

[0071] Step 2: Split each customer record in the original customer data table into multiple customer feature records to obtain a customer feature data table, wherein each customer feature record includes the data time of the customer feature record, the customer ID of the customer, a tag name corresponding to the customer, and a tag value corresponding to the tag name.

[0072] Step 3: According to the data time, tag name and tag value in each customer feature record in the customer feature data table, aggregate operation is performed on each customer identifier in the customer feature data table to obtain the customer identifier corresponding to the data time, tag name and tag value.

[0073] Step 4: Set a mapping relationship between each bit in the customer bitmap and the customer identifier, and convert the customer identifier corresponding to the data time, tag name and tag value into the customer bitmap according to the mapping relationship.

[0074] Step 5: Construct the customer tag data set according to the data time, tag name, tag value and the converted customer bitmap.

[0075] See also Figure 2 , Figure 2 A schematic diagram of the process of constructing a customer tag dataset provided in an embodiment of the present application. Figure 2 The construction process of the above customer label dataset is introduced in detail.

[0076] like Figure 2As shown in , Table 1 is an original customer data table with a "wide table" structure, and the original customer data table includes a customer record corresponding to each customer in the customer set; exemplarily, the customer record corresponding to each customer includes the data time (report date) of the customer record, the customer identification (customer ID) of the customer, multiple tag names corresponding to the customer, and a tag value corresponding to each tag name.

[0077] For each customer record in the original customer data table, the customer record is disassembled into multiple customer feature records to obtain a customer feature data table with a "narrow table" structure in Table 2; the customer feature data table includes multiple customer feature records corresponding to each customer, and each customer feature record includes the data time (report date) of the customer record, the customer ID of the customer, a tag name corresponding to the customer, and a tag value corresponding to the tag name.

[0078] Then, according to the data time, label name and label value in each customer feature record in the customer feature data table, an aggregation operation is performed on each customer identifier in the customer feature data table to obtain a customer identifier corresponding to the data time, label name and label value, that is, the data table in Table 3; in specific implementation, the data time appearing under the data time dimension, the label name appearing under the label name dimension, and the label value corresponding to the label name in the customer feature data table can be combined into fields to obtain multiple field combinations of [data time, label name, label value], and then an aggregation operation is performed on each customer identifier based on each field combination to aggregate customer identifiers that meet each field combination, that is, to aggregate customer identifiers that have label values ​​corresponding to label names at data time.

[0079] Furthermore, a mapping relationship between each bit in the customer bitmap and the customer identifier is set, and the customer identifier that meets each field combination is converted into a corresponding customer bitmap (Bitmap structure) according to the mapping relationship; finally, the data time, label name, label value and the converted customer bitmap can be filled into each dimension in the data model of the customer label data set respectively, so as to construct a customer label data set; in this way, the storage space occupied by the customer data is reduced by half, and the logical operation process of the customer bitmap can speed up the calculation time and efficiency.

[0080] Return to Reference Figure 1 , S103, receiving a customer group comparison analysis request.

[0081] The customer group comparison analysis request includes a reference customer group identifier and a comparison tag name corresponding to the reference customer group.

[0082] In this step, a graphical visualization interface can be provided as an example, which includes options for each reference customer group and options corresponding to each comparison label name; the user can set the reference customer group and comparison label name to be compared according to the actual business needs of the customer group comparison analysis, that is, select the corresponding option and trigger the customer group comparison analysis request; the server receives the customer group comparison analysis request, and can determine the reference customer group identifier and comparison label name requested by the user by parsing the customer group comparison analysis request. Among them, the reference customer group can be a mature customer group pre-configured and verified in the database, or it can be other target customer groups selected by labels in a similar way to selecting the target customer group. The reference customer group label data can be queried through the reference customer group identifier.

[0083] S104: Determine a comparative analysis result between the target customer group and the reference customer group in the comparative label dimension according to the target customer group label data and the reference customer group label data retrieved by the reference customer group identifier.

[0084] In a possible implementation, step S104 may include:

[0085] S1041. For each comparison label value corresponding to the comparison label name, select a target comparison customer group having the comparison label value from the target customer group according to the target customer group label data; and select a reference comparison customer group having the comparison label value from the reference customer group according to the reference customer group label data.

[0086] In this step, for each comparison label value corresponding to the comparison label name, a target comparison customer group having the comparison label value is screened out from the target customer group according to the target customer group label data, and a reference comparison customer group having the comparison label value is screened out from the reference customer group according to the reference customer group label data.

[0087] Specifically, step S1041, for each comparison tag value corresponding to the comparison tag name, selects the target comparison customer group with the comparison tag value from the target customer group according to the target customer group tag data, which may include: determining the comparison customer bitmap corresponding to the comparison tag name and the comparison tag value from the customer tag data set; performing an intersection operation on the comparison customer bitmap with the target customer bitmap in the target customer group tag data to obtain a first customer bitmap; and determining the target comparison customer group in the target customer group that meets the comparison tag value under the comparison tag name according to the value of each bit in the first customer bitmap. It should be noted that, because the data time corresponding to the target customer group has been determined, the comparison customer bitmap can be determined based on the data time corresponding to the target customer group, combined with the comparison tag name and the comparison tag value.

[0088] S1042: Based on the target comparison customer group and the reference comparison customer group corresponding to each comparison tag value, determine the comparison analysis result of the target customer group and the reference customer group in the comparison tag dimension.

[0089] In this way, a processed customer bitmap is formed by selecting comparison tags for customer group comparison. In this process, the customer bitmap selects necessary specific fields based on specific scenarios of financial business, and the bitmap is set based on specific fields to form an important basis for subsequent selection and analysis.

[0090] In a possible implementation, step S1042 may include: determining the number of target customers in the target comparison customer group and the number of reference customers in the reference comparison customer group corresponding to each comparison label value; and determining the ratio of the number of target customers to the number of reference customers as the comparison analysis result under the comparison label value in the comparison label dimension.

[0091] Here, because the value of each bit in the customer bitmap is used to indicate whether the customer corresponding to the bit has the corresponding label value, the number of target customers in the target comparison customer group and the number of reference customers in the reference comparison customer group can be determined by counting the value of each bit in the customer bitmap. For example, the number of bits with a value of "1" in the first customer bitmap corresponding to the target comparison customer group is the number of target customers.

[0092] The comparative analysis result is used to characterize the similarity between the target customer group and the reference customer group in the comparative label dimension with respect to each comparative label value. The closer the ratio is to 1, the higher the similarity between the target customer group and the reference customer group in the comparative label dimension; the closer the ratio is to 0, the lower the similarity between the target customer group and the reference customer group in the comparative label dimension.

[0093] In specific implementation, the number of target customers, the number of reference customers, and the comparative analysis results can be displayed in the form of visual charts on the page, so that users can more intuitively and conveniently conduct comparative analysis on the target customer group and the reference customer group. In one example, the "marketing high-value enterprise customer group" can be circled as the target customer group from the customer set through the circled tag association data included in the customer group circled request, and the "high-asset enterprise customer group" can be used as the reference customer group. The "operating status" is selected as the comparative tag, and there are multiple comparative tag values ​​such as "cancellation", "revocation", and "closure" under the comparative tag; through the customer group comparative analysis, the distribution of each comparative tag value of the "marketing high-value enterprise customer group" under the "operating status" comparative tag and the distribution of each comparative tag value of the "high-asset enterprise customer group" under the "operating status" comparative tag can be determined; finally, for each comparative tag value under the "operating status" comparative tag, by comparing the distribution of the "marketing high-value customer group" and the "high-asset customer group" under the comparative tag value, the comparative analysis results of the "marketing high-value enterprise customer group" and the "high-asset enterprise customer group" on the "operating status" tag dimension can be determined.

[0094] In addition, for labels with certain numerical label values ​​(for example, labels of quantity and amount), after selecting such a label as a comparison label, the comparison label value under the label can be divided into multiple intervals according to certain division rules, and then the distribution of the target customer group and the reference customer group in each interval under the comparison label is determined, so as to obtain the comparative analysis results of the target customer group and the reference customer group in the comparison label dimension. For example, for the "age" label, the comparison label value under the label can be divided into multiple age intervals such as "under 18 years old", "18-25 years old", "25-40", "41-60" and "over 60 years old", and then the distribution of the target customer group and the reference customer group in each age interval is determined respectively, and finally the comparative analysis results on the "age" label dimension are obtained.

[0095] Furthermore, if the comparative analysis result indicates that the similarity between the target customer group and the reference customer group in the comparative label dimension is less than a preset threshold, the comparative label is determined as a distinguishing feature between the target customer group and the reference customer group.

[0096] Here, if the comparative analysis result indicates that the similarity between the target customer group and the reference customer group under the comparative label dimension is less than a preset threshold, it means that the distribution difference between the target customer group and the reference customer group under this comparative label dimension is relatively large. Therefore, the comparative label can be determined as the distinguishing feature of the target customer group and the reference customer group, and the distinguishing feature can be used to guide the optimization of the customer group operation strategy, such as matching different services and content for different customer groups to perform personalized operations.

[0097] A method for customer group selection and comparative analysis provided by an embodiment of the present application includes: receiving a customer group selection request; selecting a target customer group from the customer set and obtaining target customer group label data corresponding to the target customer group according to a customer label data set corresponding to a customer set and the selected label associated data included in the customer group selection request; wherein the customer label data set includes a data time dimension, a label name dimension, a label value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the label name under the label name dimension and the label value under the label value dimension; receiving a customer group comparative analysis request; the customer group comparative analysis request includes a reference customer group identifier and a comparative label name; determining a comparative analysis result between the target customer group and the reference customer group on the comparative label dimension according to the target customer group label data, the reference customer group label data queried by the reference customer group identifier and the comparative label name.

[0098] In this way, by selecting labels, the target customer groups can be flexibly selected, and the customer groups can be flexibly compared and analyzed in different label dimensions; at the same time, the customer group selection and comparative analysis method using customer bitmaps can improve the calculation speed and efficiency.

[0099] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a device for customer group selection and comparative analysis provided in an embodiment of the present application. Figure 3 As shown in , the device 300 includes:

[0100] The first receiving module 310 is used to receive a customer group selection request;

[0101] The customer group selection module 320 is used to select a target customer group from the customer set and obtain target customer group label data corresponding to the target customer group according to the customer label data set corresponding to the customer set and the label association data included in the customer group selection request; wherein the customer label data set includes a data time dimension, a label name dimension, a label value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the label name under the label name dimension and the label value under the label value dimension;

[0102] The second receiving module 330 is used to receive a customer group comparison analysis request; the customer group comparison analysis request includes reference customer group label data and comparison label name corresponding to the reference customer group;

[0103] The comparison analysis module 340 is used to determine the comparison analysis result between the target customer group and the reference customer group in the comparison tag dimension according to the target customer group tag data, the reference customer group tag data retrieved by the reference customer group identifier and the comparison tag name.

[0104] Further, the selected tag associated data includes a target data time, at least one target tag name, a target tag value corresponding to each target tag name, and a logical calculation relationship between each target tag; when the customer group selection module 320 is used to select a target customer group from the customer set according to the customer tag data set corresponding to the customer set and the selected tag associated data included in the customer group selection request, the customer group selection module 320 is used to:

[0105] According to the target data time, each target tag name and the target tag value corresponding to each target tag name, a customer bitmap corresponding to the target data time, each target tag name and each target tag value is found from the customer tag data set; wherein each bit in the customer bitmap corresponds to a customer in the customer set, and the value of the bit is used to indicate whether the customer has the target tag value corresponding to the target tag name at the target data time;

[0106] Performing a logical operation between each customer bitmap according to the logical operation relationship to obtain a target customer bitmap corresponding to the target customer group; wherein the logical operation relationship includes a combination of one or more of the following items: intersection and union;

[0107] The target customer group is determined according to the value of each bit in the target customer bitmap.

[0108] Furthermore, the device further comprises a construction module; the construction module is used to construct the customer label data set in the following manner:

[0109] Obtaining an original customer data table corresponding to the customer set; wherein the original customer data table includes a customer record of each customer in the customer set; the customer record of each customer includes a data time of the customer record, a customer identifier of the customer, multiple tag names corresponding to the customer, and a tag value corresponding to each tag name;

[0110] Each customer record in the original customer data table is decomposed into multiple customer feature records to obtain a customer feature data table; wherein each customer feature record includes the data time of the customer feature record, the customer identifier of the customer, a tag name corresponding to the customer, and a tag value corresponding to the tag name;

[0111] According to the data time, tag name and tag value in each customer feature record in the customer feature data table, an aggregation operation is performed on each customer identifier in the customer feature data table to obtain a customer identifier corresponding to the data time, tag name and tag value;

[0112] Setting a mapping relationship between each bit in the customer bitmap and the customer identifier, and converting the customer identifier corresponding to the data time, the tag name and the tag value into the customer bitmap according to the mapping relationship;

[0113] The customer tag data set is constructed according to the data time, tag name, tag value and the converted customer bitmap.

[0114] Further, when the comparative analysis module 340 is used to determine the comparative analysis result of the target customer group and the reference customer group on the comparative label dimension according to the target customer group label data, the reference customer group label data retrieved by the reference customer group identifier, and the comparative label name, the comparative analysis module 340 is used to:

[0115] For each comparison label value corresponding to the comparison label name, a target comparison customer group having the comparison label value is screened out from the target customer group according to the target customer group label data; and a reference comparison customer group having the comparison label value is screened out from the reference customer group according to the reference customer group label data;

[0116] Based on the target comparison customer group and the reference comparison customer group corresponding to each comparison tag value, a comparison analysis result between the target customer group and the reference customer group in the comparison tag dimension is determined.

[0117] Furthermore, when the comparison analysis module 340 is used to determine the comparison analysis result of the target customer group and the reference customer group on the comparison label dimension based on the target comparison customer group and the reference comparison customer group corresponding to each comparison label value, the comparison analysis module 340 is also used to:

[0118] Determine the number of target customers in the target comparison customer group and the number of reference customers in the reference comparison customer group corresponding to each comparison label value;

[0119] The ratio of the number of target customers to the number of reference customers is determined as a comparative analysis result under the comparative label value in the comparative label dimension; wherein the comparative analysis result is used to characterize the similarity between the target customer group and the reference customer group under the comparative label dimension.

[0120] Further, after determining the ratio of the number of target customers to the number of reference customers as the comparison analysis result under the comparison tag value in the comparison tag dimension, the comparison analysis module 340 is further used to:

[0121] If the comparative analysis result indicates that the similarity between the target customer group and the reference customer group in the comparative label dimension is less than a preset threshold, the comparative label is determined as a distinguishing feature between the target customer group and the reference customer group.

[0122] Furthermore, when the comparison analysis module 340 is used to filter out a target comparison customer group having the comparison label value from the target customer group according to the target customer group label data for each comparison label value corresponding to the comparison label name, the comparison analysis module 340 is used to:

[0123] Determine a comparison customer bitmap corresponding to the comparison tag name and the comparison tag value from the customer tag data set;

[0124] Performing an intersection operation on the comparison customer bitmap and the target customer bitmap in the target customer group label data to obtain a first customer bitmap;

[0125] According to the value of each bit in the first customer bitmap, a target comparison customer group having the comparison tag value in the target customer group is determined.

[0126] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0127] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 as well as Figure 2 The steps of a method for customer group selection and comparative analysis in the method embodiment shown are specifically implemented in the method embodiment and will not be described in detail here.

[0128] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 as well as Figure 2 The steps of a method for customer group selection and comparative analysis in the method embodiment shown are specifically implemented in the method embodiment and will not be described in detail here.

[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0130] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0133] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0134] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for customer group selection and comparative analysis, characterized in that: The method comprises: Receive customer group selection requests; According to the customer tag data set corresponding to the customer set and the selected tag association data included in the customer group selection request, a target customer group is selected from the customer set and target customer group tag data corresponding to the target customer group is obtained; wherein the customer tag data set includes a data time dimension, a tag name dimension, a tag value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the tag name under the tag name dimension and the tag value under the tag value dimension; Receiving a customer group comparison analysis request; the customer group comparison analysis request includes a reference customer group identifier and a comparison tag name; Determine a comparative analysis result between the target customer group and the reference customer group in a comparative label dimension according to the target customer group label data, the reference customer group label data retrieved by the reference customer group identifier, and the comparative label name; The step of determining the comparative analysis result between the target customer group and the reference customer group in the comparative label dimension according to the target customer group label data, the reference customer group label data retrieved by the reference customer group identifier, and the comparative label name includes: For each comparison label value corresponding to the comparison label name, a target comparison customer group having the comparison label value is screened out from the target customer group according to the target customer group label data; and a reference comparison customer group having the comparison label value is screened out from the reference customer group according to the reference customer group label data; Based on the target comparison customer group and the reference comparison customer group corresponding to each comparison tag value, a comparison analysis result between the target customer group and the reference customer group in the comparison tag dimension is determined.

2. The method according to claim 1, characterized in that The circled tag associated data includes a target data time, at least one target tag name, a target tag value corresponding to each target tag name, and a logical calculation relationship between each target tag; and the step of circled tag associated data included in the customer group selection request and selecting a target customer group from the customer set according to the customer tag data set corresponding to the customer set and the circled tag associated data included in the customer group selection request includes: According to the target data time, each target tag name and the target tag value corresponding to each target tag name, a customer bitmap corresponding to the target data time, each target tag name and each target tag value is found from the customer tag data set; wherein each bit in the customer bitmap corresponds to a customer in the customer set, and the value of the bit is used to indicate whether the customer has the target tag value corresponding to the target tag name at the target data time; Performing a logical operation between each customer bitmap according to the logical operation relationship to obtain a target customer bitmap corresponding to the target customer group; wherein the logical operation relationship includes a combination of one or more of the following items: intersection and union; The target customer group is determined according to the value of each bit in the target customer bitmap.

3. The method according to claim 1, characterized in that The customer label dataset is constructed in the following way: Obtaining an original customer data table corresponding to the customer set; wherein the original customer data table includes a customer record of each customer in the customer set; the customer record of each customer includes a data time of the customer record, a customer identifier of the customer, multiple tag names corresponding to the customer, and a tag value corresponding to each tag name; Each customer record in the original customer data table is decomposed into multiple customer feature records to obtain a customer feature data table; wherein each customer feature record includes the data time of the customer feature record, the customer identifier of the customer, a tag name corresponding to the customer, and a tag value corresponding to the tag name; According to the data time, tag name and tag value in each customer feature record in the customer feature data table, an aggregation operation is performed on each customer identifier in the customer feature data table to obtain a customer identifier corresponding to the data time, tag name and tag value; Setting a mapping relationship between each bit in the customer bitmap and the customer identifier, and converting the customer identifier corresponding to the data time, the tag name and the tag value into the customer bitmap according to the mapping relationship; The customer tag data set is constructed according to the data time, tag name, tag value and the converted customer bitmap.

4. The method according to claim 1, characterized in that: The step of determining the comparative analysis result of the target customer group and the reference customer group on the comparative label dimension based on the target comparative customer group and the reference comparative customer group corresponding to each comparative label value includes: Determine the number of target customers in the target comparison customer group and the number of reference customers in the reference comparison customer group corresponding to each comparison label value; The ratio of the number of target customers to the number of reference customers is determined as a comparative analysis result under the comparative label value in the comparative label dimension; wherein the comparative analysis result is used to characterize the similarity between the target customer group and the reference customer group under the comparative label dimension.

5. The method according to claim 4, characterized in that After determining the ratio of the number of target customers to the number of reference customers as a comparison analysis result under the comparison tag value in the comparison tag dimension, the method further includes: If the comparative analysis result indicates that the similarity between the target customer group and the reference customer group in the comparative label dimension is less than a preset threshold, the comparative label is determined as a distinguishing feature between the target customer group and the reference customer group.

6. The method according to claim 1, characterized in that For each comparison label value corresponding to the comparison label name, filtering out a target comparison customer group having the comparison label value from the target customer group according to the target customer group label data includes: Determine a comparison customer bitmap corresponding to the comparison tag name and the comparison tag value from the customer tag data set; Performing an intersection operation on the comparison customer bitmap and the target customer bitmap in the target customer group label data to obtain a first customer bitmap; According to the value of each bit in the first customer bitmap, a target comparison customer group having the comparison tag value in the target customer group is determined.

7. A device for customer group selection and comparative analysis, characterized in that: The device comprises: A first receiving module is used to receive a customer group selection request; A customer group selection module is used to select a target customer group from the customer set and obtain target customer group label data corresponding to the target customer group according to a customer label data set corresponding to the customer set and the label association data included in the customer group selection request; wherein the customer label data set includes a data time dimension, a label name dimension, a label value dimension and a customer bitmap dimension; the customer bitmap under the customer bitmap dimension is jointly determined by the data time under the data time dimension, the label name under the label name dimension and the label value under the label value dimension; A second receiving module is used to receive a customer group comparison analysis request; the customer group comparison analysis request includes a reference customer group identifier and a comparison tag name; A comparison analysis module, configured to determine a comparison analysis result between the target customer group and the reference customer group in a comparison label dimension according to the target customer group label data, the reference customer group label data retrieved by the reference customer group identifier, and the comparison label name; When the comparative analysis module is used to determine the comparative analysis result of the target customer group and the reference customer group on the comparative label dimension according to the target customer group label data, the reference customer group label data retrieved by the reference customer group identifier, and the comparative label name, the comparative analysis module is used to: For each comparison label value corresponding to the comparison label name, a target comparison customer group having the comparison label value is screened out from the target customer group according to the target customer group label data; and a reference comparison customer group having the comparison label value is screened out from the reference customer group according to the reference customer group label data; Based on the target comparison customer group and the reference comparison customer group corresponding to each comparison tag value, a comparison analysis result between the target customer group and the reference customer group in the comparison tag dimension is determined.

8. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via the bus. When the machine-readable instructions are run by the processor, the steps of a method for customer group selection and comparative analysis as described in any one of claims 1 to 6 are executed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for selecting and comparing customer groups as described in any one of claims 1 to 6 are executed.