Group portrait generation method and device, computer device, and storage medium
By utilizing preset relationships and image tag sets in the group profile generation method, group tag profiles can be directly generated, solving the problem of low efficiency in traditional methods and achieving efficient group profile generation.
Patent Information
- Application Number
- CN202211646283.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Traditional methods for generating user profiles require a large amount of user data, resulting in low generation efficiency.
By using preset relationships to find the target group's data source information and storage address, the target group's attribute information is obtained, and a group tag profile is directly generated using a preset profile tag set, thus avoiding the acquisition of a large amount of user data.
It improves the efficiency of group profile generation, saves server resources, and reduces the amount of data acquired.
Smart Images

Figure CN116303657B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a group portrait generation method and device, computer equipment, a storage medium, and a computer program product. BACKGROUND
[0002] With the development of Internet technology, user portrait technology has emerged. A user portrait is a feature portrayal of a target group of a product or service. For example, an enterprise can construct a group portrait of a customer group by conducting online research on the customer group to meet the needs of the enterprise to complete user analysis, marketing object analysis, and the like based on the group portrait. A traditional group portrait generation method involves obtaining a large amount of user data, then dividing the users into groups, and then generating a portrait corresponding to the groups based on the divided group data. However, the traditional group portrait generation method requires a large amount of user data, which leads to a low efficiency of generating group portraits. SUMMARY
[0003] Therefore, it is necessary to provide a group portrait generation method, device, computer equipment, computer readable storage medium, and computer program product that can improve the efficiency of generating group portraits.
[0004] In a first aspect, the present application provides a group portrait generation method. The method includes:
[0005] obtaining a group portrait generation request, the group portrait generation request carrying a target group identifier;
[0006] based on the target group identifier, searching for target group data source information and a target group data storage address corresponding to the target group identifier according to a preset association relationship;
[0007] using the target group data storage address to obtain target group attribute information from a target data source corresponding to the current group data source information;
[0008] obtaining a preset portrait label set corresponding to the target group identifier, and searching for label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information;
[0009] based on the label attribute information, searching for a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label, and using the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to the target group identifier.
[0010] In a second aspect, the present application also provides a group portrait generation device. The device includes:
[0011] a receiving module configured to obtain a group portrait generation request, the group portrait generation request carrying a target group identifier;
[0012] The address searching module is configured to search for target group data source information and a target group data storage address corresponding to the target group identifier according to a preset association relationship based on the target group identifier.
[0013] The information obtaining module is configured to obtain target group attribute information from a target data source corresponding to the current group data source information using the target group data storage address.
[0014] The label corresponding module is configured to obtain a preset portrait label set corresponding to the target group identifier, and search for label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information.
[0015] The portrait generating module is configured to search for a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and take the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to the target group identifier.
[0016] In a third aspect, the present application further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0017] obtaining a group portrait generation request, the group portrait generation request carrying a target group identifier;
[0018] searching for target group data source information and a target group data storage address corresponding to the target group identifier according to a preset association relationship based on the target group identifier.
[0019] obtaining target group attribute information from a target data source corresponding to the current group data source information using the target group data storage address.
[0020] obtaining a preset portrait label set corresponding to the target group identifier, and searching for label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information.
[0021] searching for a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and taking the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to the target group identifier.
[0022] In a fourth aspect, the present application further provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0023] obtaining a group portrait generation request, the group portrait generation request carrying a target group identifier;
[0024] finding target group data source information and a target group data storage address corresponding to the target group identifier according to a preset association relationship based on the target group identifier;
[0025] acquiring target group attribute information from a target data source corresponding to the current group data source information using the target group data storage address;
[0026] acquiring a preset portrait label set corresponding to the target group identifier, and finding label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information;
[0027] finding a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and taking the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to the target group identifier.
[0028] In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps:
[0029] acquiring a group portrait generation request, the group portrait generation request carrying a target group identifier;
[0030] finding target group data source information and a target group data storage address corresponding to the target group identifier according to a preset association relationship based on the target group identifier;
[0031] acquiring target group attribute information from a target data source corresponding to the current group data source information using the target group data storage address;
[0032] acquiring a preset portrait label set corresponding to the target group identifier, and finding label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information;
[0033] finding a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and taking the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to the target group identifier.
[0034] The aforementioned group profile generation method, apparatus, computer equipment, storage medium, and computer program product, by finding the target group data source information and target group data storage address corresponding to the target group identifier according to a preset association relationship, and retrieving the target group attribute information from the target data source corresponding to the current group data source information according to the target group data storage address, can quickly obtain the target group attribute information corresponding to the target group identifier, thereby improving the efficiency of obtaining target group attribute information. Then, by obtaining a preset profile tag set corresponding to the target group identifier, the system can directly determine the target profile tag corresponding to the target group identifier based on the preset profile tag set, and obtain the corresponding tag attribute information in the target group attribute information based on the target profile tag. Furthermore, it can directly use the sub-tags and sub-tag attribute information corresponding to the target profile tag in the tag attribute information as the target group tag profile corresponding to the target group identifier. Using the target group attribute information to generate the group tag profile avoids obtaining large amounts of user data, thereby improving the efficiency of group profile generation. Attached Figure Description
[0035] Figure 1 This is a diagram illustrating the application environment of a group portrait generation method in one embodiment.
[0036] Figure 2 This is a flowchart illustrating a group portrait generation method in one embodiment;
[0037] Figure 3 This is a schematic diagram of the information acquisition process in one embodiment;
[0038] Figure 4 This is a schematic diagram of an image tag set in one embodiment;
[0039] Figure 5 This is a schematic diagram of a label image in one embodiment;
[0040] Figure 6 This is a schematic diagram of the process for generating a group portrait in one embodiment;
[0041] Figure 7 This is a structural block diagram of a group portrait generation device in one embodiment;
[0042] Figure 8 This is an internal structural diagram of a computer device in one embodiment;
[0043] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0044] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not used to limit the present application.
[0045] The group portrait generation method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 The terminal 102 communicates with the server 104 through a network. The data storage system 106 can store data required to be processed by the server 104, and can include at least one data source. The data storage system 106 can be integrated on the server 104, or can be placed on a cloud or other network server. The server 104 obtains a group portrait generation request sent by the terminal 102, and the group portrait generation request carries a target group identifier. The server 104 finds target group data source information and a target group data storage address corresponding to the target group identifier based on a preset association relationship. The server 104 can obtain target group attribute information from a target data source corresponding to the target group data source information by using the target group data storage address through the data storage system 106. The server 104 obtains a preset portrait label set corresponding to the target group identifier, and finds label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information. The server 104 finds a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and takes the sub-label corresponding to the target portrait label and the sub-label attribute information as a target group label portrait corresponding to the target group identifier. The server 104 returns the target group label portrait corresponding to the target group identifier to the terminal 102. The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and the like. The server 104 can be implemented by an independent server or a server group composed of multiple servers.
[0046] In one embodiment, as shown in Figure 2 A group portrait generation method is provided, and the embodiment takes the method applied to a server as an example. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction of the terminal and the server. In the embodiment, the method includes the following steps.
[0047] In step 202, a group portrait generation request is obtained, and the group portrait generation request carries a target group identifier.
[0048] In step 204, target group data source information and a target group data storage address corresponding to the target group identifier are found based on a preset association relationship.
[0049] The group portrait refers to portrait information for describing features of a group, and the group can be a user group. The target group identifier refers to identifier information of a target group for which a group portrait is to be generated. The preset association relationship refers to an association relationship between a group identifier, group data source information, and a group data storage address that is set in advance. The target group data source information refers to information of a target data source corresponding to the target group identifier. The data source can be a database. The target group data storage address refers to a storage address of group data corresponding to the target group identifier. The target group data source stores data of each user in the target group.
[0050] Specifically, the server obtains group data source information and a group data storage address corresponding to each group identifier. The server establishes a preset association relationship according to each group identifier, the group data source information corresponding to the group identifier, and the group data storage address, and stores the preset association relationship.
[0051] The server obtains a group portrait generation request sent by the terminal, and the group portrait generation request carries a target group identifier. The server finds corresponding target group data source information and a target group data storage address according to the target group identifier and in accordance with the preset association relationship.
[0052] In step 206, the target group attribute information is obtained from the target data source corresponding to the current group data source information using the target group data storage address.
[0053] The target group attribute information refers to feature information corresponding to the target group. The group feature attribute information includes a feature label corresponding to the group and group distribution information corresponding to the feature label. The target data source refers to a data source that stores the target group attribute information.
[0054] Specifically, the server can send the target group data source information and the target group data storage address to a data storage system, which can be an external storage system. The data storage system determines a target data source according to the target group data source information, and then determines target group data attribute information corresponding to the target group identifier in the target data source according to the target group data storage address. The server obtains the target group data attribute information corresponding to the target group identifier returned by the data storage system.
[0055] In step 208, a preset portrait label set corresponding to the target group identifier is obtained, and label attribute information corresponding to a target portrait label in the preset portrait label set is found in the target group attribute information.
[0056] The preset portrait label set refers to a set of target portrait labels that are set in advance. The target portrait label refers to a feature label in a group portrait corresponding to the target group identifier. The label attribute information refers to group distribution information in the target group attribute information corresponding to the target portrait label.
[0057] Specifically, the server acquires the preset portrait label set corresponding to the target group identifier sent by the terminal, and the server searches for corresponding label attribute information in the target group attribute information according to a target portrait label in the preset portrait label set. The target group attribute information includes a feature label and feature distribution information corresponding to the feature label, and the server can search for a feature label consistent with the target portrait label in the target group attribute information, and acquire group distribution information corresponding to the feature label as label attribute information corresponding to the target portrait label.
[0058] In step 210, the target portrait label corresponding sub-label and the sub-label attribute information corresponding to the sub-label are searched based on the label attribute information, and the target portrait label corresponding sub-label and the sub-label attribute information corresponding to the sub-label are taken as the target group label portrait corresponding to the target group identifier.
[0059] The sub-label refers to a group distribution label in the label attribute information, which can be a feature distribution label in the group distribution information. The sub-label attribute information refers to group distribution quantity information corresponding to the group distribution label in the group distribution information. The target group label portrait refers to a group portrait corresponding to the target group identifier.
[0060] Specifically, the server acquires label attribute information corresponding to each target portrait label, and obtains each sub-label corresponding to each target portrait label and sub-label attribute information corresponding to the sub-label according to the label attribute information. The server generates a label portrait corresponding to the target portrait label according to each sub-label corresponding to the target portrait label and the sub-label attribute information corresponding to the sub-label, and then the server traverses each target portrait label to obtain a label portrait corresponding to each target portrait label. The server obtains a target group label portrait corresponding to the target group identifier according to the label portrait corresponding to each target portrait label.
[0061] In the above group portrait generation method, the target group data source information and the target group data storage address corresponding to the target group identifier are found according to the preset association relationship, and the target group attribute information is acquired from the target data source corresponding to the current group data source information according to the target group data storage address, so that the target group attribute information corresponding to the target group identifier can be quickly acquired, thereby improving the efficiency of acquiring the target group attribute information. Then the preset portrait label set corresponding to the target group identifier is acquired, the target portrait label corresponding to the target group identifier can be directly determined according to the preset portrait label set, the corresponding label attribute information can be acquired in the target group attribute information according to the target portrait label, and the target group label portrait corresponding to the target group identifier can be directly generated using the target group attribute information, which can avoid acquiring a large amount of user data, thereby improving the generation efficiency of the group portrait.
[0062] In one embodiment, such as Figure 3 As shown, step 206 involves using the target group data storage address to obtain target group attribute information from the target data source corresponding to the current group data source information, including:
[0063] Step 302: Establish a communication connection between the current group data source information and the target data source corresponding to the current group data source information;
[0064] Step 304: Send an information acquisition request to the target data source based on the communication connection. The information acquisition request carries the target group data storage address and preset standard format information. The target data source obtains the target original group data from the target group data storage address according to the information acquisition request, and performs data conversion on the target original group data according to the preset standard format information to obtain the target group attribute information.
[0065] Step 306: Obtain the target group attribute information returned by the target data source.
[0066] Among them, the preset standard format information refers to the pre-set data format information, which is used to convert the group data into the corresponding data format in the data source according to the preset data format information. The target raw group data refers to the group data corresponding to the target group identifier that has not undergone data conversion, and may be the characteristic information of the target group.
[0067] Specifically, after obtaining the target group data source information and target group data storage address corresponding to the target group identifier based on a preset association relationship, the server establishes a communication connection with the target data source corresponding to the target group data source information based on the interface information in the target group data source information. Then, the server obtains preset standard format information and generates an information retrieval request based on the preset standard format information and the target group data storage address. The server then sends the information retrieval request to the target data source through the communication connection.
[0068] The target data source receives an information retrieval request, retrieves the original target group data based on the target group data storage address in the request, and then transforms the original target group data according to a preset standard format to obtain the target group attribute information. The server then retrieves the target group attribute information returned by the target data source.
[0069] The target original group data is shown in Table 1:
[0070] Table 1
[0071] User Name Age Gender Consumption Amount Family Size Xiao Li 25 Male 600 2 Xiao Wang 36 Male 3000 4 Xiao Chen 47 Female 1500 3 Xiao Zhang 59 Unknown 200 3
[0072] In one embodiment, since different data sources of different data source types have different data storage manners, the server can be preconfigured with an adaptation program corresponding to each data source according to the data source type, data source information, data storage address, and preset standard format information of each data source. Different group identifiers correspond to different group data, and each group data is stored in a corresponding data source. The adaptation program is used to instruct the data source to perform data conversion on the group data and obtain target group attribute information.
[0073] The server obtains the group portrait generation request sent by the terminal, determines the corresponding adaptation program according to the target group identifier in the group portrait generation request, and runs the adaptation program. The server communicates with the target data source through the adaptation program, instructs the target data source to perform data conversion on the target original group data according to the preset standard format information, and obtains the target group attribute information corresponding to the target group identifier.
[0074] In this embodiment, the server sends an information acquisition request to the target data source through the communication connection, so that the target data source finds the target original group data and performs data conversion according to the target group data storage address and the preset standard format information in the information acquisition request. Thus, the server can directly obtain the target group attribute information in the standard format from the target data source, and generate a group portrait through the target group attribute information, thereby avoiding the acquisition of a large amount of user data, saving server resources, and further improving the generation efficiency of the group portrait.
[0075] In one embodiment, step 304, the target group original data is converted according to the preset standard format information, including:
[0076] Determining the numerical data from the target original group data, and determining the maximum value and the minimum value from the numerical data;
[0077] Calculating the difference between the maximum value and the minimum value, and calculating the proportion of the difference and the preset interval number, to obtain the interval interval;
[0078] Determining the interval range based on the interval interval, the maximum value, and the minimum value, counting the number of numerical data in each interval range, and obtaining the interval data number corresponding to each interval range;
[0079] Taking each interval range and interval number as the target group attribute information corresponding to the numerical data.
[0080] The numerical data refers to the numerical data in the target original group data. The preset interval number refers to the number of intervals in which the numerical data is distributed. The interval data number refers to the number of data in which the numerical data is distributed in each interval.
[0081] Specifically, the server sends an information acquisition request to the target data source, the target data source acquires target original group data according to a target group data storage address in the information acquisition request, and then determines a numerical feature label and numerical data corresponding to the numerical feature label from the target original group data according to preset standard format information in the target data source. The numerical feature label is, for example, an age label, an income label, etc. Each numerical feature label and each non-numerical feature label can be pre-stored in the preset standard format information, and the label type corresponding to each feature label in the target original group data can be determined by matching the feature label in the target original group data with each numerical feature label and each non-numerical feature label.
[0082] The maximum value and the minimum value are determined from the numerical data in the target data source, and the difference between the maximum value and the minimum value is calculated. Then, the proportion of the difference value to the preset interval number is calculated by the target data source to obtain an interval interval, and each interval range is determined according to the interval interval, the maximum value and the minimum value. Then, each numerical data corresponding interval range is matched in the target data source, and the number of numerical data in each interval range is counted to obtain the interval data number corresponding to each interval range. The target data source takes each interval range and interval number as the target group attribute information corresponding to the numerical data. The server acquires the target group attribute information corresponding to the numerical data through the target data source.
[0083] When the numerical feature label is a target portrait label, the target group attribute information corresponding to the numerical feature label is label attribute information, each interval range in the label attribute information is taken as a sub-label, and the interval data number corresponding to each interval range is taken as the sub-label attribute information corresponding to each sub-label.
[0084] For example, the numerical feature label is an age label, the numerical data corresponding to the age label is: 30, 36, 35, 39, 48, 75, 61, 80, the maximum value is 80, the minimum value is 30, the preset interval number is 5, the interval interval is (80-30) / 5=10, and each interval range is obtained: (30, 40), (40, 50), (50, 60), (60, 70), (70, 80), and the interval data quantity corresponding to each interval range is obtained: 4, 1, 0, 1, 2. Then "(30, 40): 4, (40, 50): 1, (50, 60): 0, (60, 70): 1, (70, 80): 2" is taken as the target group attribute information corresponding to the age label. When the age label is a target portrait label, the sub-labels corresponding to the age label are "(30, 40)", "(40, 50)", "(50, 60)", "(60, 70)", and "(70, 80)", and the sub-label attribute information corresponding to the sub-labels is "4", "1", "0", "1", and "2", respectively.
[0085] In the embodiment, when the numerical data is detected in the target data source, the numerical data is divided into intervals to obtain the interval range and the interval data quantity corresponding to the numerical data, and the target group attribute information corresponding to the numerical data is obtained according to the interval range and the interval data quantity, so that the server can directly obtain the target group attribute information to generate the label portrait corresponding to the numerical data, thereby improving the generation efficiency of the group portrait.
[0086] In one embodiment, step 304, the target original group data is data-converted according to the preset standard format information, including:
[0087] The non-numerical data is determined from the target original group data, and the data type of the non-numerical data is obtained.
[0088] The data quantity corresponding to the data type is counted from the non-numerical data, and the data type and the data quantity are taken as the target group attribute information corresponding to the non-numerical data.
[0089] The non-numerical data refers to the data in the target original group data in a non-numerical form, which can be data in a literal form. The data type refers to the type of data representation that is not the same in the non-numerical data.
[0090] Specifically, the server determines the non-numeric feature label and the non-numeric data corresponding to the non-numeric feature label from the target original population data according to the preset standard format information through the target data source. The non-numeric feature label is, for example, a gender label, a hobby label, etc. The target data source determines various data types according to the non-numeric data corresponding to the non-numeric feature label, for example, male data type and female data type in the non-numeric data corresponding to the gender label.
[0091] Then the target data source counts the data quantity corresponding to each data type in the non-numeric data, and takes the data type and the data quantity as the target population attribute information corresponding to the non-numeric data. The server obtains the target population attribute information corresponding to the non-numeric data through the target data source.
[0092] When the non-numeric feature label is a target portrait label, the target population attribute information corresponding to the non-numeric feature label is label attribute information, each data type in the label attribute information is taken as a sub-label, and the data quantity corresponding to each data type is taken as sub-label attribute information corresponding to each sub-label.
[0093] For example, the non-numeric feature label is a gender label, and the non-numeric data corresponding to the gender label is: male, male, female, unknown, male, female. The target data source determines the data types corresponding to male, female and unknown respectively according to the non-numeric data corresponding to the gender label, and counts the data quantity corresponding to each data type as: 3, 2, 1. Then, "male: 3, female: 2, unknown: 1" is taken as the target population attribute information corresponding to the gender label. When the gender label is a target portrait label, the sub-labels corresponding to the gender label are "male", "female" and "unknown", and the sub-label attribute information corresponding to the sub-labels is "3", "2" and "1" respectively.
[0094] In this embodiment, when non-numeric data is detected in the target data source, the target population attribute information corresponding to the non-numeric data is obtained according to the data type of the non-numeric data and the data quantity of the data type, so that the server can directly obtain the target population attribute information to generate the label portrait corresponding to the non-numeric data in the subsequent process, thereby improving the generation efficiency of the population portrait.
[0095] In one embodiment, step 208, obtaining a preset portrait label set corresponding to the target population identifier, includes:
[0096] Obtaining each portrait label and obtaining each business scenario information;
[0097] Dividing each portrait label based on each business scenario information to obtain a portrait label set corresponding to each business scenario information respectively;
[0098] Determine the preset portrait label set corresponding to the target group identifier from the portrait label set corresponding to each business scenario information.
[0099] The business scenario information refers to the business information applied by the user group through the terminal. The portrait label set refers to the set of portrait labels corresponding to the business scenario.
[0100] Specifically, the server obtains each portrait label and obtains each business scenario information, such as loan business, storage business, and application demand information. The server divides each portrait label according to each business scenario information, and obtains the portrait label set corresponding to each business scenario information. For example, the application demand information corresponding to the storage business includes user basic information and user storage information, such as gender, age, etc. The user storage information, such as storage amount, storage amount source, etc. The portrait label corresponding to the business scenario information of the storage business is divided from each portrait label, such as gender label, age label, storage amount label, and storage amount source label.
[0101] The server obtains the business scenario information corresponding to the target group identifier, and obtains the preset portrait label set corresponding to the target group identifier according to the business scenario information.
[0102] In one embodiment, as shown in Figure 4 The server divides each portrait label according to each business scenario information, and obtains the portrait label set corresponding to each business scenario information as a portrait label template. The server can also combine each portrait label according to each business scenario information to obtain each portrait label template. In the figure, the server obtains portrait label a to portrait label f, and combines each portrait label into portrait label template 1, portrait label template 2, and portrait label template 3 according to each business scenario information.
[0103] In this embodiment, by dividing each portrait label into the portrait label set corresponding to each business scenario according to the business scenario information, the preset portrait label set can be directly used for portrait generation when generating the group portrait corresponding to the target group identifier, thereby improving the generation efficiency of the group portrait.
[0104] In one embodiment, the target group identifier includes at least two; the group portrait generation method further comprises:
[0105] According to the preset association relationship, find the target group data source information and the target group data storage address corresponding to the at least two target group identifiers respectively;
[0106] Use the target group data storage address to obtain the target group attribute information from the target data source corresponding to the current group data source information;
[0107] obtaining a preset portrait label set corresponding to each of the at least two target group identifiers, and searching for label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information;
[0108] searching for a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and taking the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to each of the at least two target group identifiers.
[0109] Specifically, when the server obtains the at least two target group identifiers, the server searches for target group data source information and a target group data storage address corresponding to each target group identifier according to a preset association relationship. The server determines a target data source corresponding to each target group identifier according to the target group data source information corresponding to each target group identifier, establishes a communication connection with each target data source respectively, and sends preset standard format information and the target group data storage address to the corresponding target data source.
[0110] The server performs data conversion on the target original group data according to the preset standard format information through the target data source, and obtains target group attribute information corresponding to each target group identifier. Then, the server obtains the target group attribute information corresponding to each target group identifier through the communication connection.
[0111] The server obtains a preset portrait label set corresponding to each target group identifier according to business scenario information corresponding to each target group identifier, searches for label attribute information corresponding to a target portrait label in the target group attribute information according to the target portrait label in the preset portrait label set, and obtains the target portrait label and the label attribute information corresponding to each target group identifier.
[0112] The server searches for a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and takes the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to each of the at least two target group identifiers.
[0113] In one specific embodiment, as shown in Figure 5 a label portrait schematic diagram is provided. The server generates a label portrait corresponding to a target portrait label according to the target portrait label, a sub-label, and sub-label attribute information. In the figure, "lending times in the last 90 days" is a target portrait label, each interval range is a sub-label corresponding to the target portrait label, and the number of users corresponding to each interval range is sub-label attribute information.
[0114] In one specific embodiment, as shown in Figure 6As shown in the figure, a flowchart of a group portrait generation is provided. The server acquires at least two group portrait generation requests sent by a terminal, and calls a corresponding adaptation program according to a target group identifier in the group portrait generation request. The server connects a corresponding target data source through each adaptation program, acquires target group attribute information in a standard format after data conversion of the target data source, and obtains target group attribute information corresponding to each target group identifier. The server acquires a preset portrait label set corresponding to each target group identifier and a target portrait label in the preset portrait label set, and acquires label attribute information corresponding to the target portrait label from the target group attribute information. The server takes a sub-label corresponding to the target portrait label and sub-label attribute information as a target group label portrait corresponding to each target group identifier.
[0115] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiments of the present application also provide a group portrait generation device for implementing the above-mentioned group portrait generation method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more group portrait generation device embodiments provided below can refer to the limitations of the group portrait generation method in the above text, which will not be repeated here.
[0117] In one embodiment, as Figure 7 shown, a group portrait generation device 700 is provided, comprising a receiving module 702, an address lookup module 704, an information acquisition module 706, a label corresponding module 708, and a portrait generation module 710, wherein:
[0118] The receiving module 702 is configured to acquire a group portrait generation request, and the group portrait generation request carries a target group identifier;
[0119] The address lookup module 704 is configured to find target group data source information and a target group data storage address corresponding to the target group identifier according to a preset association relationship based on the target group identifier;
[0120] The information obtaining module 706 is configured to obtain target group attribute information from a target data source corresponding to the current group data source information using the target group data storage address.
[0121] The label corresponding module 708 is configured to obtain a preset portrait label set corresponding to the target group identifier, and search for label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information.
[0122] The portrait generating module 710 is configured to search for a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information, and use the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to the target group identifier.
[0123] In one embodiment, the information obtaining module 706 includes:
[0124] The communication unit is configured to establish a communication connection between the current group data source information and a target data source corresponding to the current group data source information, send an information obtaining request to the target data source based on the communication connection, and obtain target original group data from the target group data storage address according to the information obtaining request by the target data source, and convert the target original group data according to the preset standard format information to obtain target group attribute information. The target group attribute information returned by the target data source is obtained.
[0125] In one embodiment, the information obtaining module 706 includes:
[0126] The first data conversion unit is configured to determine numerical data from the target original group data, and determine a maximum value and a minimum value from the numerical data; calculate the difference between the maximum value and the minimum value, and calculate the proportion of the difference and the preset interval number to obtain an interval interval; determine each interval range based on the interval interval, the maximum value and the minimum value, count the number of numerical data in each interval range to obtain the interval data number corresponding to each interval range; and use each interval range and the interval number as target group attribute information corresponding to the numerical data.
[0127] In one embodiment, the information obtaining module 706 includes:
[0128] The second data conversion unit is configured to determine non-numerical data from the target original group data, and obtain the data type of the non-numerical data; and count the data quantity corresponding to the data type from the non-numerical data, and use the data type and the data quantity as target group attribute information corresponding to the non-numerical data.
[0129] In one embodiment, the label corresponding module 708 includes:
[0130] The label division unit is configured to obtain each portrait label and obtain each service scenario information; divide each portrait label based on each service scenario information to obtain a portrait label set corresponding to each service scenario information; and determine a preset portrait label set corresponding to the target group identifier from the portrait label set corresponding to each service scenario information.
[0131] In one embodiment, the group portrait generation apparatus 700 further includes:
[0132] The portrait generation unit is configured to find target group data source information and a target group data storage address corresponding to at least two target group identifiers according to a preset association relationship; obtain target group attribute information from a target data source corresponding to the current group data source information using the target group data storage address; obtain a preset portrait label set corresponding to at least two target group identifiers; find label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information; find a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label based on the label attribute information; and use the sub-label corresponding to the target portrait label and the sub-label attribute information as a target group label portrait corresponding to at least two target group identifiers.
[0133] Each module in the group portrait generation apparatus described above can be realized by software, hardware, and a combination thereof in whole or in part. Each module described above can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to each module.
[0134] In one embodiment, a computer device is provided, which can be a server, and an internal structure diagram of the computer device can be as shown in Figure 8 The computer device includes a processor, a memory, an input / output interface (I / O), and a communication interface. The processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured 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 operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is configured to store a preset association relationship and target group attribute information. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with external terminals through a network connection. The computer program is executed by the processor to implement a group portrait generation method.
[0135] In one embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram thereof can be as shown in the figure. Figure 9 The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capability. 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 and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be achieved through WIFI, mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by the processor to implement a group portrait generation method. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.
[0136] Those skilled in the art can understand that Figures 8-9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0137] In one embodiment, a computer device is also provided, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in each of the above method embodiments.
[0138] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps in each of the above method embodiments.
[0139] In one embodiment, a computer program product is provided, which includes a computer program. The computer program is executed by a processor to implement the steps in each of the above method embodiments.
[0140] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of the country and region.
[0141] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related 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 above-mentioned embodiments of each method. Among them, any reference to memory, database or other medium used in each embodiment provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in each embodiment provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in each embodiment provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0142] Each technical feature of the above embodiments can be combined arbitrarily. In order to make the description simple, not all possible combinations of each technical feature in the above embodiments are described, but as long as the combination of these technical features does not exist contradictory, it should be considered as the scope of the present application.
[0143] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.
Claims
1. A method for generating group portraits, characterized in that, The method comprises: acquiring a group portrait generation request carrying a target group identifier; based on the target group identifier, finding the target group data source information and the target group data storage address corresponding to the target group identifier according to a preset association relationship; using the target group data storage address to acquire target group attribute information from the target data source corresponding to the target group data source information; acquiring a preset portrait label set corresponding to the target group identifier, and finding label attribute information corresponding to a target portrait label in the preset portrait label set from the target group attribute information; based on the label attribute information, finding a sub-label corresponding to the target portrait label and sub-label attribute information corresponding to the sub-label, and taking the sub-label and the sub-label attribute information corresponding to the target portrait label as a target group label portrait corresponding to the target group identifier.
2. The method of claim 1, wherein, The use of the target group data storage address to acquire target group attribute information from the target data source corresponding to the target group data source information comprises: using the target group data source information to establish a communication connection with the target data source corresponding to the target group data source information; based on the communication connection, sending an information acquisition request to the target data source, the information acquisition request carrying the target group data storage address and preset standard format information, acquiring target original group data from the target group data storage address according to the information acquisition request through the target data source, and performing data conversion on the target original group data according to the preset standard format information to obtain the target group attribute information; acquiring the target group attribute information returned by the target data source.
3. The method of claim 2, wherein, The data conversion of the target original group data according to the preset standard format information comprises: determining numerical data from the target original group data, and determining a maximum value and a minimum value from the numerical data; calculating the difference between the maximum value and the minimum value, and calculating the proportion of the difference and the preset interval number to obtain an interval interval; based on the interval interval, the maximum value and the minimum value, determining each interval range, counting the number of numerical data in each interval range to obtain the interval data number corresponding to each interval range; taking each interval range and the interval number as the target group attribute information corresponding to the numerical data.
4. The method of claim 2, wherein, The data conversion of the target original group data according to the preset standard format information to obtain the target group attribute information comprises: determining non-numerical data from the target original group data, and acquiring the data type of the non-numerical data; counting the data number corresponding to the data type from the non-numerical data, and taking the data type and the data number as the target group attribute information corresponding to the non-numerical data.
5. The method of claim 1, wherein, The acquisition of the preset portrait label set corresponding to the target group identifier comprises: acquiring each portrait label and acquiring each business scenario information; dividing the portrait labels based on the respective business scenario information to obtain a portrait label set corresponding to each of the respective business scenario information; determining a preset portrait label set corresponding to the target group identifier from the portrait label set corresponding to each of the respective business scenario information.
6. The method of claim 1, wherein, The target group identifier includes at least two; the method further comprises: According to the preset association relationship, the target group data source information and the target group data storage address corresponding to the at least two target group identifiers are found respectively; Using the target group data storage address, target group attribute information is obtained from the target data source corresponding to the target group data source information; Obtaining the preset portrait label set corresponding to the at least two target group identifiers, and finding the label attribute information corresponding to the target portrait label in the preset portrait label set from the target group attribute information; Based on the label attribute information, the sub-label corresponding to the target portrait label and the sub-label attribute information corresponding to the sub-label are found, and the sub-label corresponding to the target portrait label and the sub-label attribute information are used as the target group label portrait corresponding to the at least two target group identifiers.
7. A group portrait generating apparatus characterized by comprising: The device comprises: The receiving module is configured to obtain a group portrait generation request, wherein the group portrait generation request carries a target group identifier; The address finding module is configured to find the target group data source information and the target group data storage address corresponding to the target group identifier based on the target group identifier according to a preset association relationship; The information obtaining module is configured to use the target group data storage address to obtain target group attribute information from the target data source corresponding to the target group data source information; The label corresponding module is configured to obtain a preset portrait label set corresponding to the target group identifier, and find the label attribute information corresponding to the target portrait label in the preset portrait label set from the target group attribute information; The portrait generation module is configured to find the sub-label corresponding to the target portrait label and the sub-label attribute information corresponding to the sub-label based on the label attribute information, and use the sub-label corresponding to the target portrait label and the sub-label attribute information as the target group label portrait corresponding to the target group identifier.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to realize the steps of the method of any one of claims 1 to 6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Method, apparatus and system for determining a label for a group of individuals represented in images
AU2013254921A1
Group user profiling method and system
CN105893406A