A method, device and storage medium for generating subject portrait
By fusing the portrait tags of external and internal subjects and using a supervised learning algorithm to generate new portraits, the problem of long development cycle and high cost of subject portraits in the existing technology is solved, and efficient subject portrait generation is achieved.
Patent Information
- Application Number
- CN201910237636.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-03-27
AI Technical Summary
The existing technology requires analysis and induction from basic data when generating subject portraits, which consumes a lot of cost and time, has a long development cycle, and is low in efficiency.
By fusing the portrait label data of external subjects with the portrait labels of internal subjects, and using a supervised learning algorithm to build a portrait model, generate new portrait labels, and then generate extended portrait labels for other internal subjects to avoid cleaning the bottom data. and integration.
It shortens the development cycle of subject portraits, saves costs, improves work efficiency, and makes full use of existing mature subject portrait resources.
Smart Images

Figure CN111752985B
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a method, device and storage medium for generating a subject portrait. Background Art
[0002] With the development of Internet technology, almost every industry will use the Internet to meet business needs. For example: online shopping, online financial transactions, online real estate transactions, online education, online food ordering, etc. The terminals of these businesses may be ordinary users, companies or organizations, or certain commodities or items. No matter what kind of role, it can be called the subject of a certain business. In order to better understand the characteristics of the subject, a series of tags will be used to describe it. This description is a method of profiling the subject. For example, the subject is an online shopping user. It can be analyzed and summarized according to the user's basic attributes, living habits, behavioral preferences, consumption habits, address location, financial preferences, etc., abstracted or constructed a model to generate a series of tags for the user. Through these simple tags, the characteristics of the user, that is, the portrait, can be understood. The tags mentioned here are defined by different industries for the subject. For example, for online shopping users, their tags can be mobile phone numbers, ID numbers, gender, geographic location, monthly consumption, consumer credit, etc. However, since the relevant data of the subject is very large and the content is complicated, it takes a lot of time and manpower to build a subject portrait from the most basic underlying data, and the cost is very high. For example, it is necessary to clean, process and integrate the underlying data, and then develop various labels based on the data, such as factual labels, statistical labels, and predictive labels, and finally complete the subject portrait. Among them, factual labels usually refer to data obtained from the production system, qualitatively or quantitatively describing the natural attributes, product attributes, consumption attributes, resource attributes, etc. of the subject, such as gender, age, marital status, commodity price, commodity on and off shelf date, etc. Factual labels do not have complex integration logic, but are an intuitive display of the data itself. Statistical labels do not directly correspond to data, and need to define rules to calculate labels through certain logical combinations, such as the summary of consumption amounts in the past three months, the number of overdue payments in the past two months, etc. Predictive labels are abstractions and clusters of subject attributes and behaviors, and generate corresponding summary labels and indexes for the subject by analyzing the basic data of the subject, such as the subject's interest, interest level, preference, preference level, demand, demand level, etc. However, no matter what kind of label it is, its development requires a lot of manpower costs, and the development cycle is very long. Summary of the invention
[0003] The embodiment of the present application provides a method for generating a subject portrait, which can avoid a lengthy development cycle and save costs. The specific scheme is as follows:
[0004] A method for generating a subject portrait, the method comprising:
[0005] Acquire a portrait tag data strip of an external subject, wherein the external subject portrait tag data strip includes at least one external subject portrait tag, and the external subject portrait tag is used to represent the characteristics of the external subject to which it belongs;
[0006] The acquired portrait label of the external subject and the portrait label of the corresponding internal subject are merged to generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the acquired portrait label of the external subject and the portrait label of the corresponding internal subject;
[0007] Building a portrait model according to a supervised learning algorithm and using the corresponding new portrait label of the internal subject;
[0008] For other internal subjects except the corresponding internal subject, generating an extended portrait label for them according to the constructed portrait model, fusing the extended portrait label with the portrait label of the other internal subjects, and generating a new portrait label for the other internal subjects;
[0009] The new portrait tags of the corresponding internal subjects and the new portrait tags of the other internal subjects constitute the portraits of all internal subjects.
[0010] Furthermore, the step of obtaining the portrait tag data strip of the external subject includes:
[0011] Randomly sample the existing internal subjects according to the stratified sampling method to obtain the portrait label data strips of the internal subjects to be matched;
[0012] Matching the internal subject portrait label data strip to be matched with the external subject portrait label data strip, and determining the successfully matched external subject portrait label data strip and the corresponding internal subject portrait label data strip;
[0013] Input the portrait tag data strip of the successfully matched external subject.
[0014] Furthermore, the step of obtaining the portrait tag data strip of the successfully matched external subject and the step of fusing the obtained portrait tag of the external subject with the portrait tag of the corresponding internal subject further includes:
[0015] Verify the portrait label data strip of the successfully matched internal subject according to a pre-set sampling standard;
[0016] Determine whether the sampling criteria are met based on the verification results. If so, continue to execute the step of fusing the acquired external subject portrait labels with the corresponding internal subject portrait labels; otherwise, return to the step of randomly sampling the existing internal subjects according to the stratified sampling method.
[0017] Furthermore, the step of constructing a portrait model according to the supervised learning algorithm and using the corresponding new portrait label of the internal subject includes:
[0018] Classify the corresponding new portrait labels of the internal subject according to the label values, and use the label values of two as binary classification portrait labels, and use the label values of more than two as multi-classification portrait labels;
[0019] For the binary classification portrait labels of the corresponding internal subjects, a binary classification portrait model is constructed according to the binary classification supervised learning algorithm;
[0020] For the multi-classification portrait labels possessed by the corresponding internal subjects, a multi-classification portrait model is constructed according to the multi-classification supervised learning algorithm.
[0021] Furthermore, the step of generating an extended portrait tag for the portrait model according to the constructed portrait model includes:
[0022] For each internal subject of the other internal subjects, the original portrait label of the internal subject is used as the input of the portrait model, the result calculated by the portrait model is used as the output of the portrait model, and the output of the portrait model is used as the extended portrait label.
[0023] Furthermore, the portrait label data strip of the external subject is a subject portrait label data strip from a different external system, and the step of fusing the acquired portrait label of the external subject with the portrait label of the corresponding internal subject to generate a new portrait label for the corresponding internal subject includes:
[0024] The subject portrait labels obtained from different external systems and the portrait labels of the corresponding internal subjects are merged to generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the subject portrait labels obtained from different external systems and the portrait label of the corresponding internal subject.
[0025] Furthermore, the portrait label data strip of the external subject is a subject portrait label data strip from a different external system, and the step of fusing the acquired portrait label of the external subject with the portrait label of the corresponding internal subject to generate a new portrait label for the corresponding internal subject includes:
[0026] The subject portrait labels obtained from different external systems are respectively merged with the corresponding internal subject portrait labels to generate new portrait labels for the corresponding internal subjects;
[0027] The step of constructing a portrait model according to the supervised learning algorithm and using the corresponding new portrait label of the internal subject is: constructing portrait models corresponding to different external systems according to the supervised learning algorithm and using the new portrait label;
[0028] The step of generating extended portrait tags for other internal subjects except the corresponding internal subject according to the constructed portrait model includes:
[0029] For other internal subjects except the corresponding internal subjects, different extended portrait labels are generated for them according to the portrait models corresponding to the different external systems constructed, and the final extended portrait labels are obtained according to the pre-set weights.
[0030] The present application also provides a device for generating a subject portrait, which can avoid a lengthy development cycle and save costs. The device includes:
[0031] An acquisition module, used for acquiring a portrait tag data strip of an external subject, wherein the external subject portrait tag data strip includes at least one external subject portrait tag, and the external subject portrait tag is used for indicating the characteristics of the external subject to which it belongs;
[0032] A fusion module, used to fuse the acquired portrait label of the external subject with the portrait label of the corresponding internal subject, and generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the acquired portrait label of the external subject and the portrait label of the corresponding internal subject;
[0033] A modeling module, used for building a portrait model according to a supervised learning algorithm and using the corresponding new portrait label of the internal subject;
[0034] An extension module is used to generate extended portrait tags for other internal subjects except the corresponding internal subject according to the constructed portrait model, and merge the extended portrait tags with the portrait tags of the other internal subjects to generate new portrait tags for the other internal subjects; the new portrait tags of the corresponding internal subject and the new portrait tags of the other internal subjects constitute the portraits of all internal subjects.
[0035] Furthermore, the acquisition module includes:
[0036] A sampling module is used to randomly sample the existing internal subjects according to the stratified sampling method to obtain the portrait label data strips of the internal subjects to be matched;
[0037] A matching module, used for matching the internal subject portrait label data strip to be matched with the external subject portrait label data strip, and determining the successfully matched external subject portrait label data strip and the corresponding internal subject portrait label data strip;
[0038] The input module is used to input the portrait tag data strip of the successfully matched external subject.
[0039] Furthermore, it is characterized in that the device further comprises:
[0040] An input verification module is used to verify the portrait tag data strip of the successfully matched external subject according to the portrait tag specified in advance;
[0041] The input discrimination module is used to judge whether the pre-set sampling standard is met according to the verification result of the input verification module. If it is met, the fusion module is triggered to execute; otherwise, the sampling module is triggered to execute again.
[0042] An embodiment of the present application also discloses a computer-readable storage medium, which stores instructions, characterized in that when the instructions are executed by a processor, the processor executes the steps of the method for generating a subject portrait as described above.
[0043] An embodiment of the present application further discloses an electronic device, characterized in that the electronic device includes the computer-readable storage medium as described above, and also includes a processor capable of executing the computer-readable storage medium.
[0044] It can be seen that the embodiments of the present application provide a method, device and electronic device for generating a subject portrait. When performing subject portrait, it does not analyze and summarize from the most basic data, but directly uses the existing mature internal system subject portraits and external system subject portraits, which can greatly shorten the portrait development cycle, save costs, and also make full use of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of the first embodiment of the method of the present application.
[0046] Figure 2 It is a flow chart of the second embodiment of the method of the present application.
[0047] Figure 3 It is a structural diagram of the first embodiment of the device of the present application.
[0048] Figure 4 It is a schematic diagram of the internal structure of the acquisition module 301 in the first embodiment of the device of the present application.
[0049] Figure 5 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and examples.
[0051] The prior art needs to develop from basic data when generating subject portraits, which not only consumes a lot of costs, but also has a long development cycle and low efficiency. The present application finds that mature subject portraits have been generated within different industries or enterprises. If fully utilized, the process of basic data cleaning, processing and integration, and label development can be omitted, thereby improving development efficiency. Therefore, the present application proposes that when the system already has subject portrait labels, subject portrait labels from external systems can be introduced to enrich the existing subject portraits within itself and increase their availability without redevelopment. The internal system described here refers to the internal part of a subject portrait generation system, which is an independent system that can be composed of one or more computers or servers, referred to as system A here. The external system refers to another subject portrait generation system independent of the system A, which can be referred to as system B. The external system can be one or more, but relative to the internal system A, they are collectively referred to as external systems.
[0052] The first embodiment of the present invention proposes a specific method for generating a subject portrait. This embodiment assumes that the internal system has generated a portrait for the internal subject, with a number of portrait tags, and the external system has also generated a portrait for the external subject, with a number of portrait tags. The method for generating a new subject portrait based on the existing internal subject portrait is as follows: Figure 1 As shown, the method includes:
[0053] Step 101: Acquire a portrait tag data strip of an external subject, wherein the external subject portrait tag data strip includes at least one external subject portrait tag, and the external subject portrait tag is used to represent the characteristics of the external subject.
[0054] As mentioned above, the portrait tag represents the characteristics of the subject, which is usually called a portrait. In practical applications, in order to better portray its portrait, a subject usually has multiple portrait tags. The multiple portrait tags of a subject are referred to as a portrait label data strip in the embodiment of the present application. Of course, there are a large number of subjects in the external system or the internal system, and there are also a large number of portrait label data strips. However, each subject corresponds to its own portrait label data strip, and each portrait label data strip has several portrait labels that describe the characteristics of the subject.
[0055] Step 102: The acquired portrait label of the external subject and the corresponding portrait label of the internal subject are merged to generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the acquired portrait label of the external subject and the corresponding portrait label of the internal subject.
[0056] The fusion described in this step is actually a way of combining, which does not include repeated portrait labels. For example, the portrait labels of an external subject include three labels A, B, and C, and the corresponding portrait labels of the internal subject include three labels A, D, and E. Then the fused portrait labels are A, B, C, D, and E, a total of 5 labels. That is, a subject in the internal system originally had only 3 labels to describe its characteristics, but now has 5 labels to describe its characteristics, which has become richer.
[0057] Of course, the external subject can only be integrated with the corresponding internal subject. For example, the portrait tag A here is a portrait tag that uniquely identifies the internal subject or the external subject. It can be considered that the external subject and the internal subject that both contain the portrait tag A have a corresponding relationship.
[0058] Step 103: Construct a portrait model based on a supervised learning algorithm and using the corresponding new portrait label of the internal subject.
[0059] The supervised learning algorithm described in the embodiment of the present application seeks a correspondence between the existing features and the research objectives, thereby establishing a model, generating a function, and mapping the input to the appropriate output. Existing supervised learning algorithms include logistic regression, random forest, GBDT, xgboost, neural network, support vector machine, nearest neighbor method, Gaussian mixture model, naive Bayes method, decision tree and radial basis function classification, etc.
[0060] Step 104: For other internal subjects except the corresponding internal subject, generate extended portrait tags for them according to the constructed portrait model, merge the extended portrait tags with the portrait tags of the other internal subjects, and generate new portrait tags for the other internal subjects.
[0061] In step 102, the internal subject corresponding to the introduced external subject has obtained a new extended portrait label, but other internal subjects have not been extended. At this time, since step 103 constructs a portrait model based on the new portrait label of the internal subject corresponding to the external subject, the portrait model makes the original portrait label of the internal subject and its extended portrait label have a corresponding relationship. In this way, if the original portrait labels of other internal subjects are used as input, an output can be obtained according to the portrait model. This output is not available to other internal subjects before, and is directly expanded according to the portrait model. According to this method, the extended portrait labels of all internal subjects except the corresponding internal subject can be obtained.
[0062] Step 105: The new portrait tag of the corresponding internal subject and the new portrait tags of other internal subjects constitute the portraits of all internal subjects.
[0063] In the embodiment of the present application, due to the introduction of the portrait label of the external subject, a new portrait label of the internal subject is obtained, and a portrait model is constructed based on the new portrait label, and then the portrait model is used to generate new portrait labels for other internal subjects. Since the first embodiment of the present application method generates a new portrait for the subject, it does not clean, process, integrate and develop labels from the most basic underlying data, but uses the existing mature subject portraits of different systems to generate new subject portraits, thereby greatly shortening the portrait development cycle, improving work efficiency, and saving resources due to the effective use of existing mature portraits.
[0064] In order to better illustrate the present application scheme, method embodiment 2 is described in detail below. Figure 2 is a flow chart of Embodiment 2 of the present application method, such as Figure 2 As shown, the method includes:
[0065] Step 201: Randomly sample the existing internal subjects according to the stratified sampling method to obtain the portrait label data strips of the internal subjects to be matched.
[0066] Step 202: Match the internal subject portrait label data strip to be matched with the external subject portrait label data strip, and determine the successfully matched external subject portrait label data strip and the corresponding internal subject portrait label data strip.
[0067] Step 203: Input the portrait tag data strip of the successfully matched external subject.
[0068] The above steps 201 to 203 describe the specific implementation method of how to obtain the portrait label data strip of the external subject. In the second embodiment, in order to save resources and introduce fewer portrait label data strips of the external subject, and at the same time try to ensure that the introduced portrait label data strips of the external subject play an unbiased role in the subsequent modeling, step 201 adopts a stratified sampling method to randomly sample the internal subject first. And match these sampled internal subjects with the external subject, and only introduce the portrait label data strips of the successfully matched external subject.
[0069] For example: a certain system A and system B already have their own mature subject portraits. Among them, system A divides the subjects into three levels of ordinary, general and high-quality subjects according to the subject value. If the subject of system A in the actual application is a user of a shopping platform, they are risk users, ordinary users and high-quality users respectively. Assume that the subject of system B is the subject of a financial holding company. In other words, a certain shopping platform has established a mature portrait for its own users, and a certain financial holding company has also established a mature portrait for its own users, but they are two completely independent systems. At this time, a certain number of users can be randomly selected from the three levels of risk users, ordinary users, and high-quality users of the shopping platform, respectively, and matched with the users of the financial holding company to determine the users who are successfully matched. For example: the shopping platform randomly selects 20,000 users in layers, and determines that 10,000 of them can be successfully matched with the users of the financial holding company, and the matching rate reaches 50%. Based on this, the portrait label data strip of the successfully matched financial holding company and the portrait label data strip of the corresponding shopping platform can be determined. The reason why the embodiment of the present application can match the subjects of different systems is that in the context of big data in various industries, the subjects of different industries will always be connected. For example, some users may be the subject of both the shopping platform and the financial holding company, and both may contain portrait tags that uniquely identify the subject, such as ID card numbers or mobile phone numbers. At this time, the two subjects can be matched based on the ID card number or mobile phone number, so as to obtain the portrait tag data strips that are successfully matched.
[0070] In actual applications, the system can also stratify the subjects in other ways, such as stratifying by asset level, or it can be non-stratified. Whether to stratify and how to stratify in actual applications is determined by the user who has the embodiment of the present application. In addition, the above steps 201 to 203 are an implementation method proposed to save resources and introduce as few portrait label data strips of external subjects as possible. If saving resources is not considered in actual applications, all external subject portrait label data strips can also be introduced without the need to perform stratified sampling and matching operations on the internal subject.
[0071] Step 204: Verify the portrait label data strip of the successfully matched internal subject according to a pre-set sampling standard.
[0072] Step 205: Determine whether the sampling standard is met based on the verification result. If so, continue to step 206; otherwise, return to step 201.
[0073] The above steps 204 to 205 are the process of verifying the sampling situation, and their purpose is to make the distribution of the sampled samples consistent with the overall situation, so that the portrait model calculated later is more representative. For example: in the above shopping platform, the subjects aged 20 to 30 years old account for 30% of the total. If the subjects aged 20 to 30 years old in the sampled sample are also 30%, it means that the distribution of the sampled samples is consistent with the overall situation, and the sampling is reasonable. If it is verified to be unreasonable, you can return to step 201 and re-sample until the sampling standard is met. The sampling standard described here is the proportion of age groups. Of course, in actual applications, the sampling standard can be determined according to the situation, as long as it reflects the rationality of the sampling.
[0074] Step 206: The acquired portrait label of the external subject and the corresponding portrait label of the internal subject are merged to generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the acquired portrait label of the external subject and the corresponding portrait label of the internal subject.
[0075] As mentioned above, suppose the internal subject portrait tags matched by the shopping platform include: user mobile phone number, age group, gender, monthly shopping consumption, etc., and the external subject portrait tags corresponding to the financial holding company include: user mobile phone number, financial preference, whether there is real estate, whether there is a car, etc. Then, after fusion, the new portrait tags include: user mobile phone number, age group, gender, monthly shopping consumption, financial preference, whether there is real estate, whether there is a car, etc. In other words, the fused new portrait tags can reflect richer characteristics of the user.
[0076] Step 207: Construct a portrait model based on a supervised learning algorithm and using the corresponding new portrait label of the internal subject.
[0077] In actual applications, the portrait model is constructed according to the new portrait label. The specific processing method is as follows:
[0078] ① Classify the corresponding new portrait labels of the internal subject according to the label values, and use the ones with two label values as binary classification portrait labels, and use the ones with more than two label values as multi-classification portrait labels.
[0079] In practical applications, there are usually two or more portrait tag values. The examples with two tag values are shown in Table 1, and the examples with multiple tag values are shown in Table 2:
[0080] Image tag name Image tag value gender men and women Availability of room whether Do you have a car? whether … …
[0081] Table 1
[0082]
[0083] Table 2
[0084] The purpose of the above classification is to build different portrait models according to different types of portrait labels.
[0085] ②For the binary classification portrait labels possessed by the corresponding internal subjects, a binary classification portrait model is constructed based on the binary classification supervised learning algorithm.
[0086] ③For the multi-classification portrait labels possessed by the corresponding internal subjects, a multi-classification portrait model is constructed based on the multi-classification supervised learning algorithm.
[0087] Those skilled in the art understand that supervised learning algorithms can establish binary or multi-classification models, classify image labels in advance, and use them to establish different types of models. Of course, if there are only binary or multi-classification in the actual application, there is no need to classify, and modeling can be done directly.
[0088] Similar to step 103 described in Example 1, the supervised learning algorithms in the embodiments of the present application include logistic regression, random forest, GBDT, xgboost, neural network, support vector machine, nearest neighbor method, Gaussian mixture model, naive Bayes method, decision tree and radial basis function classification, etc.
[0089] Step 208: For each internal subject of other internal subjects, the original portrait label of the internal subject is used as the input of the portrait model, the result calculated by the portrait model is used as the output of the portrait model, and the output of the portrait model is used as the extended portrait label.
[0090] This step is a specific method for generating extended portrait tags for other subjects based on the constructed portrait model. Step 206 of this embodiment has generated new portrait tags for the matched internal subject, but has not yet generated new portrait tags for other internal subjects. Since only a small number of external subject portrait tag data strips are introduced, other internal subjects do not have a direct basis for extending portrait tags. Step 207 of this embodiment constructs a portrait model, which can reflect the correspondence between features and research objectives. Since the introduced external subject portrait tags and the matched internal subject portrait tags conform to this correspondence, it is reasonable to believe that other internal subject portrait tags also conform to this correspondence. For example: when the matched internal subject is aged 30 to 40 and is female, there is a high probability that it corresponds to a portrait tag value such as low-risk financial management, which can explain that women in this age group have certain economic strength, but their investments are relatively conservative. According to such a correspondence, the constructed portrait model can set a portrait tag value with low-risk financial management for other internal subjects aged 30 to 40 and female. That is, the original portrait labels of the internal subject, such as "age group (30-40 years old)" and "gender (female)", are used as input, and after calculation by the portrait model, the result is "financial preference (low-risk financial management)", which is used as the extended portrait label. According to this method, all the portrait labels that need to be extended can be obtained.
[0091] It should be noted that in actual applications, different portrait models can be constructed according to the situation to obtain the portrait labels that need to be expanded. For example, a portrait model can be established for "financial preference", and another portrait model can be established for "whether there is a house" at the same time. The specific number of portrait models to be established, or the portrait labels to be established, can be determined by the actual situation. But in either case, the supervised learning algorithm is used to match the corresponding internal subject new portrait labels to build.
[0092] Step 209: The new portrait tag of the corresponding internal subject and the new portrait tags of other internal subjects constitute the portraits of all internal subjects.
[0093] At this time, whether it is the corresponding internal subject or other internal subjects, the portrait tags have been expanded and new portrait tags have been generated, so a richer portrait is generated. Similarly, the second embodiment uses the existing portrait tags instead of processing from the most basic underlying data, which greatly shortens the subject portrait development cycle, improves work efficiency, and saves resources.
[0094] The second embodiment of the above method is described by taking only one external system as an example. In actual applications, the portrait label data strips of the external subject can also come from different external systems. For example, there are internal system A, external system B and external system C. Among them, internal system A can obtain the portrait label of external system B according to the method of the above embodiment, and can also obtain the portrait label of external system C according to the same method.
[0095] In this case, internal system A can handle it in the following two ways:
[0096] The first type: In step 206, the internal system A can fuse the subject portrait tags obtained from different external systems with the corresponding internal subject portrait tags, and generate different new portrait tags for the corresponding internal subjects, respectively, and the new portrait tags include the subject portrait tags of the different external systems obtained and the corresponding internal subject portrait tags. For example: It is still assumed that the internal subject portrait tags matched by the shopping platform include: user mobile phone number, age group, gender, shopping monthly consumption, etc., and the external subject portrait tags of a certain financial holding company include: user mobile phone number, financial preference, whether there is real estate, whether there is a car, asset amount, etc., while the external subject portrait tags of another medical institution include: user mobile phone number, age group, health status, asset amount, etc. Then, after fusion, the new portrait tags include: user mobile phone number, age group, gender, shopping monthly consumption, financial preference, whether there is real estate, whether there is a car, health status, etc. The other steps of this method are the same as those of Example 2.
[0097] Second, in step 206, the internal system A can merge the subject portrait tags obtained from different external systems with the corresponding internal subject portrait tags, and generate new portrait tags for the corresponding internal subjects. For example, it is still assumed that the internal subject portrait tags matched by the shopping platform include: user mobile phone number, age group, gender, shopping monthly consumption, etc., and the external subject portrait tags of a certain financial holding company include: user mobile phone number, financial preference, whether there is a property, whether there is a car, asset amount, etc., and the external subject portrait tags of another medical institution include: user mobile phone number, age group, health status, asset amount, etc. Then, the subject portrait tags of the shopping platform and the subject portrait tags of the financial holding company are merged to obtain new portrait tags including: user mobile phone number, age group, gender, shopping monthly consumption, financial preference, whether there is a property, whether there is a car, asset amount, etc. At the same time, the subject portrait tags of the shopping platform and the portrait tags of the medical institution are merged to obtain new portrait tags including: user mobile phone number, age group, health status, asset amount, etc. Accordingly, step 207 will construct portrait models corresponding to different external systems according to the supervised learning algorithm and using the new portrait label, such as constructing a portrait model corresponding to a financial holding company and constructing a portrait model constructed with a medical institution. Correspondingly, in step 208, for other internal subjects except the corresponding internal subject, different extended portrait labels are generated for them according to the portrait models corresponding to the constructed different external systems, and the final extended portrait label is obtained according to the weight set in advance. For example, in step 207, portrait model 1 and portrait model 2 are generated respectively, and the portrait label "asset amount X" is extended for the internal subject using portrait model 1, and the portrait label "asset amount Y" is extended for the internal subject using portrait model 2. In this case, assuming that the weight 0.8 is set for portrait model 1 in advance and the weight 0.2 is set for portrait model 2, then the value of the final extended portrait label "asset amount" calculated according to the weight is: asset amount X*0.8+asset amount Y*0.2. If other portrait labels need to be extended, they can also be implemented in the same way.
[0098] According to the above embodiments, a portrait can be generated for the subject. In practical applications, the quality of the generated portrait can also be verified. The verification method can adopt different methods according to different types of portrait labels. For example, factual portrait labels can be cross-validated, and the extended subject portrait labels of the internal system and the corresponding subject portrait labels of the external system can be compared, and the portrait quality can be judged according to the comparison results. For example: the internal system A builds a portrait model and extends a factual label "gender" to "male" for a subject S, while the corresponding factual label "gender" of subject S in the external system B is "female", which means that the portrait is inaccurate. Other types of portrait labels can also be verified, such as statistical portrait labels can be verified by sampling, etc. After verification, if the pre-set requirements are not met, the portrait model can be iteratively optimized.
[0099] The present application also provides a device for generating a subject portrait, such as Figure 3 As shown, the device includes: an acquisition module 301, a fusion module 302, a modeling module 303, and an expansion module 304, wherein:
[0100] The acquisition module 301 is used to acquire a portrait tag data strip of an external subject, wherein the external subject portrait tag data strip includes at least one external subject portrait tag, and the external subject portrait tag is used to represent the characteristics of the external subject.
[0101] The fusion module 302 is used to fuse the acquired portrait label of the external subject and the corresponding portrait label of the internal subject to generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the acquired portrait label of the external subject and the corresponding portrait label of the internal subject.
[0102] The modeling module 303 is used to construct a portrait model according to a supervised learning algorithm and using the corresponding new portrait label of the internal subject.
[0103] The extension module 304 is used to generate extended portrait tags for other internal subjects except the corresponding internal subject according to the constructed portrait model, and merge the extended portrait tags with the portrait tags of the other internal subjects to generate new portrait tags for the other internal subjects; the new portrait tags of the corresponding internal subject and the new portrait tags of the other internal subjects constitute the portraits of all internal subjects.
[0104] Figure 4 is a schematic diagram of the internal structure of the acquisition module 301, such as Figure 4 As shown, the acquisition module 301 includes a sampling module 3011, a matching module 3012, and an input module 3013. Among them:
[0105] The sampling module 3011 is used to randomly sample the existing internal subjects according to the stratified sampling method to obtain the portrait label data strips of the internal subjects to be matched.
[0106] The matching module 3012 is used to match the internal subject portrait label data strip to be matched with the external subject portrait label data strip, and determine the successfully matched external subject portrait label data strip and the corresponding internal subject portrait label data strip.
[0107] The input module 3013 is used to input the portrait tag data strip of the successfully matched external subject.
[0108] exist Figure 4 In the example, the acquisition module 301 may further include an input verification module 305 and an input discrimination module 306, wherein:
[0109] The input verification module 305 is used to verify the portrait tag data strip of the successfully matched external subject according to the pre-specified portrait tag.
[0110] The input discrimination module 306 is used to determine whether the pre-set sampling standard is met according to the verification result of the input verification module. If it is met, the fusion module is triggered to execute; otherwise, the sampling module is triggered to execute again.
[0111] That is, the sampling module 3011 randomly samples the internal subjects it has according to the stratified sampling method to obtain the portrait label data strip of the internal subject to be matched; the matching module 3012 matches the portrait label data strip of the internal subject to be matched with the portrait label data strip of the external subject to determine the portrait label data strip of the successfully matched external subject and the portrait label data strip of the corresponding internal subject; the input module 3013 inputs the portrait label data strip of the successfully matched external subject; the input verification module 305 verifies the portrait label data strip of the successfully matched external subject according to the portrait label specified in advance; the input discrimination module 306 determines whether the pre-set sampling standard is met according to the verification result of the input verification module, and if so, triggers the fusion module to execute; otherwise, triggers the sampling module 3011 to execute again. The fusion module 302 fuses the acquired portrait label of the external subject with the corresponding portrait label of the internal subject to generate a new portrait label for the corresponding internal subject, and the new portrait label includes the acquired portrait label of the external subject and the corresponding portrait label of the internal subject. The modeling module 303 constructs a portrait model according to the supervised learning algorithm and using the new portrait label of the corresponding internal subject. The extension module 304 is used to generate extended portrait labels for other internal subjects except the corresponding internal subject according to the constructed portrait model, merge the extended portrait labels with the portrait labels of the other internal subjects, and generate new portrait labels for the other internal subjects; the new portrait labels of the corresponding internal subject and the new portrait labels of the other internal subjects constitute the portraits of all internal subjects.
[0112] The embodiment of the present application also provides a computer-readable medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the processor executes the method steps of the subject portrait as described above. In practical applications, the computer-readable medium may be a RAM, a ROM, an EPROM, a disk, an optical disk, etc., and is not used to limit the scope of protection of the present application.
[0113] like Figure 5 As shown, the embodiment of the present application also provides an electronic device, which includes the above-mentioned computer-readable medium 501 and a processor 502 capable of executing the computer-readable storage medium. In practical applications, the electronic device can be one or more computers, as long as it includes the above-mentioned computer-readable medium and processor.
[0114] By applying the above-mentioned embodiments of the present application, the subject portrait is regenerated directly using the existing internal subject portrait tags and external subject portrait tags, instead of starting from the most basic data for induction and analysis. This can greatly improve the efficiency of subject portrait generation and save resources.
[0115] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for generating a subject portrait, It is characterized in that The method includes: Acquire a portrait tag data strip of an external subject, wherein the external subject portrait tag data strip includes at least one external subject portrait tag, and the external subject portrait tag is used to represent the characteristics of the external subject to which it belongs; The acquired portrait label of the external subject and the portrait label of the corresponding internal subject are merged to generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the acquired portrait label of the external subject and the portrait label of the corresponding internal subject; Building a portrait model according to a supervised learning algorithm and using the corresponding new portrait label of the internal subject; For other internal subjects except the corresponding internal subject, generating an extended portrait label for them according to the constructed portrait model, fusing the extended portrait label with the portrait label of the other internal subjects, and generating a new portrait label for the other internal subjects; The new portrait tags of the corresponding internal subjects and the new portrait tags of the other internal subjects constitute the portraits of all internal subjects.
2. The method according to claim 1, It is characterized in that The step of obtaining the image tag data strip of the external subject includes: Randomly sample the existing internal subjects according to the stratified sampling method to obtain the portrait label data strips of the internal subjects to be matched; Matching the internal subject portrait label data strip to be matched with the external subject portrait label data strip, and determining the successfully matched external subject portrait label data strip and the corresponding internal subject portrait label data strip; Input the portrait tag data strip of the successfully matched external subject.
3. The method according to claim 2, It is characterized in that The step of obtaining the portrait tag data strip of the successfully matched external subject and the step of fusing the obtained portrait tag of the external subject with the portrait tag of the corresponding internal subject further include: Verify the portrait label data strip of the successfully matched internal subject according to a pre-set sampling standard; Determine whether the sampling criteria are met based on the verification results. If so, continue to execute the step of fusing the acquired external subject portrait labels with the corresponding internal subject portrait labels; otherwise, return to the step of randomly sampling the existing internal subjects according to the stratified sampling method.
4. The method according to claim 1, It is characterized in that The step of constructing a portrait model according to a supervised learning algorithm and using the corresponding new portrait label of the internal subject includes: Classify the corresponding new portrait labels of the internal subject according to the label values, and use the label values of two as binary classification portrait labels, and use the label values of more than two as multi-classification portrait labels; For the binary classification portrait labels of the corresponding internal subjects, a binary classification portrait model is constructed according to the binary classification supervised learning algorithm; For the multi-classification portrait labels possessed by the corresponding internal subjects, a multi-classification portrait model is constructed according to the multi-classification supervised learning algorithm.
5. The method according to claim 1, It is characterized in that The step of generating an extended portrait tag for the portrait model according to the constructed portrait model comprises: For each internal subject of the other internal subjects, the original portrait label of the internal subject is used as the input of the portrait model, the result calculated by the portrait model is used as the output of the portrait model, and the output of the portrait model is used as the extended portrait label.
6. The method according to claim 5, It is characterized in that The portrait label data strips of the external subject are subject portrait label data strips from different external systems. The step of fusing the acquired portrait label of the external subject with the portrait label of the corresponding internal subject to generate a new portrait label for the corresponding internal subject includes: The subject portrait labels obtained from different external systems and the portrait labels of the corresponding internal subjects are merged to generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the subject portrait labels obtained from different external systems and the portrait label of the corresponding internal subject.
7. The method according to claim 5, It is characterized in that The portrait label data strips of the external subject are subject portrait label data strips from different external systems. The step of fusing the acquired portrait label of the external subject with the portrait label of the corresponding internal subject to generate a new portrait label for the corresponding internal subject includes: The subject portrait labels obtained from different external systems are respectively merged with the corresponding internal subject portrait labels to generate new portrait labels for the corresponding internal subjects; The step of constructing a portrait model according to the supervised learning algorithm and using the corresponding new portrait label of the internal subject is: constructing portrait models corresponding to different external systems according to the supervised learning algorithm and using the new portrait label; The step of generating extended portrait tags for other internal subjects except the corresponding internal subject according to the constructed portrait model includes: For other internal subjects except the corresponding internal subjects, different extended portrait labels are generated for them according to the portrait models corresponding to the different external systems constructed, and the final extended portrait labels are obtained according to the pre-set weights.
8. A device for generating a subject portrait, It is characterized in that The device includes: An acquisition module, used for acquiring a portrait tag data strip of an external subject, wherein the external subject portrait tag data strip includes at least one external subject portrait tag, and the external subject portrait tag is used for indicating the characteristics of the external subject to which it belongs; A fusion module, used to fuse the acquired portrait label of the external subject with the portrait label of the corresponding internal subject, and generate a new portrait label for the corresponding internal subject, wherein the new portrait label includes the acquired portrait label of the external subject and the portrait label of the corresponding internal subject; A modeling module, used for building a portrait model according to a supervised learning algorithm and using the corresponding new portrait label of the internal subject; An extension module is used to generate extended portrait tags for other internal subjects except the corresponding internal subject according to the constructed portrait model, and merge the extended portrait tags with the portrait tags of the other internal subjects to generate new portrait tags for the other internal subjects; the new portrait tags of the corresponding internal subject and the new portrait tags of the other internal subjects constitute the portraits of all internal subjects.
9. The device according to claim 8, It is characterized in that The acquisition module comprises: A sampling module is used to randomly sample the existing internal subjects according to the stratified sampling method to obtain the portrait label data strips of the internal subjects to be matched; A matching module, used for matching the internal subject portrait label data strip to be matched with the external subject portrait label data strip, and determining the successfully matched external subject portrait label data strip and the corresponding internal subject portrait label data strip; The input module is used to input the portrait tag data strip of the successfully matched external subject.
10. The device according to claim 9, It is characterized in that The device further comprises: An input verification module is used to verify the portrait tag data strip of the successfully matched external subject according to the portrait tag specified in advance; The input discrimination module is used to judge whether the pre-set sampling standard is met according to the verification result of the input verification module. If it is met, the fusion module is triggered to execute; otherwise, the sampling module is triggered to execute again.
11. A computer-readable storage medium storing instructions, It is characterized in that When the instruction is executed by a processor, the processor executes the steps of the method for generating a subject portrait as described in any one of claims 1 to 7.
12. An electronic device, It is characterized in that The electronic device comprises the computer-readable storage medium of claim 11, and further comprises a processor capable of executing the computer-readable storage medium.
