A method, device, medium and equipment for obtaining target user portrait

By obtaining and converting user feature data, building a target training model, and using a large language model to process user portraits, the problem of insufficient comprehensive user portraits in the existing technology is solved, and the accuracy and efficiency of portraits are improved.

CN118916397BActive Publication Date: 2024-12-20ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411402308.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2024-12-20
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

The method of obtaining target user portraits in the prior art is limited and unstandardized due to the limited data source and unstandardization of the data, which makes the built user portraits not comprehensive enough and cannot meet the rapidly increasing user data types and scale, which reduces the accuracy of obtaining target user portraits.

Method used

By obtaining the initial user ID list and the target feature vector list, the target training model is built, and the user's different types of feature data are uniformly converted into vectors. The large language model is used to understand semantic relationships, avoiding the problems of diverse data sources and different formats, and improving the Accuracy of user portraits.

Benefits of technology

Through the processing of feature data by large language models, the problem of large and complex data volume is solved, the efficiency and accuracy of predicting user portraits is improved, data standardization is ensured, and the accuracy of user portraits is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916397B_ABST
    Figure CN118916397B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, medium and equipment for obtaining a target user portrait, and relates to the field of data processing technology, including: obtaining an initial user ID list and a target feature vector list set corresponding to the initial user ID list; constructing a target training model according to the target feature vector list set; obtaining a target feature data list corresponding to the target user ID; inputting the target feature data list into the target training model to obtain a target portrait corresponding to the target user ID; it can be seen that different types of feature data corresponding to the user are uniformly converted into vectors for training a large language model, thereby avoiding the problem of non-standardized data caused by diverse sources and different formats of user data, understanding the corresponding semantic relationship through the large language model, obtaining the correlation between data and data, and improving the accuracy of obtaining the target user portrait.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, medium and equipment for obtaining a target user portrait. Background Art

[0002] With the rapid development of big data and artificial intelligence, user data in the digital age has become unprecedentedly rich and complex. In this context, how to accurately describe user portraits and build models that can restore and reflect user characteristics has become an important focus and research direction. Among them, user portraits are an important application in the field of big data. Their goal is to establish descriptive label attributes for users in many dimensions, and then use these label attributes to outline the user's real personal characteristics in many aspects, and then discover user needs, analyze user preferences, and provide users with more efficient and targeted information delivery and a user experience that is closer to personal habits by matching user portraits.

[0003] The method for obtaining the target user portrait in the prior art is to obtain the text feature data corresponding to the user through user surveys and statistical analysis, and use machine learning algorithms to perform semantic recognition training on the obtained text feature data to obtain the target user portrait corresponding to the user. As mentioned above, due to the limited data sources, the constructed user portrait is not comprehensive enough, machine learning cannot meet the needs of the rapid increase in user data type and scale, and data standardization is not considered, which reduces the accuracy of obtaining the target user portrait. Summary of the invention

[0004] In view of the above technical problems, the technical solution adopted by the present invention is a method for obtaining a target user portrait, and the method comprises the following steps:

[0005] Obtaining an initial user ID list and a target feature vector list set corresponding to the initial user ID list, wherein obtaining the target feature vector list set corresponding to the initial user ID list includes the following steps:

[0006] Get the initial feature data list corresponding to each initial user ID.

[0007] According to the initial feature data list, a first data list and a second data list corresponding to the initial user ID are obtained, wherein the first data list includes a plurality of first data which are sequence data, and the second data list includes a plurality of second data which are text data.

[0008] According to the first data list and the second data list, a target feature vector list corresponding to each initial user ID is obtained.

[0009] Construct a target training model based on the target feature vector list set.

[0010] Get the target feature data list corresponding to the target user ID.

[0011] Input the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID.

[0012] The present invention also provides a device for obtaining a target user portrait, the device comprising:

[0013] The first execution module is configured to obtain an initial user ID list and a target feature vector list set corresponding to the initial user ID list, wherein the first execution module includes:

[0014] The first acquisition module is used to acquire an initial feature data list corresponding to each initial user ID.

[0015] The second acquisition module is used to acquire the first data list and the second data list corresponding to the initial user ID according to the initial feature data list.

[0016] The third acquisition module is used to acquire a target feature vector list corresponding to each initial user ID according to the first data list and the second data list.

[0017] The second execution module constructs a target training model according to the target feature vector list set.

[0018] The third execution module obtains a target feature data list corresponding to the target user ID.

[0019] The fourth execution module inputs the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID.

[0020] The present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned method of obtaining a target user portrait.

[0021] The present invention also provides an electronic device, comprising a processor and the above-mentioned non-transitory computer-readable storage medium.

[0022] The present invention has at least the following beneficial effects: obtaining an initial user ID list and a target feature vector list set corresponding to the initial user ID list; constructing a target training model based on the target feature vector list set; obtaining a target feature data list corresponding to the target user ID; inputting the target feature data list into the target training model to obtain a target portrait corresponding to the target user ID; it can be seen that the feature data of different types corresponding to the user are uniformly converted into vectors for the training of a large language model, thereby avoiding the problem of non-standardized data caused by diverse sources and different formats of user data, understanding the corresponding semantic relationship through the large language model, obtaining the correlation between data and data, and improving the accuracy of obtaining the target user portrait. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 A flow chart of a method for obtaining a target user portrait provided in the first embodiment of the present invention;

[0025] Figure 2 This is a flow chart of S100 provided in the first embodiment of the present invention;

[0026] Figure 3 This is a flow chart of S103 provided in the first embodiment of the present invention;

[0027] Figure 4 A schematic diagram of the structure of a device for obtaining a target user portrait provided in Embodiment 2 of the present invention;

[0028] Figure 5 A schematic diagram of the structure of a first execution module 1 provided in Embodiment 2 of the present invention;

[0029] Figure 6 This is a schematic diagram of the structure of the third acquisition module 23 provided in the second embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] Embodiment 1

[0033] This embodiment provides a method for obtaining a target user portrait, the method comprising the following steps: Figure 1 As shown:

[0034] S100, obtaining an initial user ID list and a target feature vector list set corresponding to the initial user ID list.

[0035] Specifically, the initial user ID list includes a plurality of initial user IDs, wherein the initial user ID is a unique identifier representing an initial user.

[0036] Furthermore, the initial user is a user of a device with a communication function used for model training.

[0037] Furthermore, those skilled in the art know that any method for obtaining a user identifier in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0038] Specifically, the target feature vector list set includes several target feature vector lists, wherein each initial user ID corresponds to one target feature vector list, and the target feature vector list includes several target feature vectors.

[0039] Specifically, S100 also includes the following steps: Figure 2 As shown:

[0040] S101, obtaining an initial feature data list corresponding to each initial user ID.

[0041] Specifically, the initial feature data list includes a plurality of initial feature data, wherein the initial feature data is data related to the initial feature of the initial user corresponding to the acquired initial user ID before the current moment.

[0042] Furthermore, the initial features are the types of data related to the initial user obtained through the device of the initial user, such as: a list of installed apps, the names of installed apps and the time of installation, the names of uninstalled apps and the time of uninstallation, a list of used apps, geographic location information that has appeared, descriptions corresponding to installed apps, descriptions corresponding to uninstalled apps, and other initial features.

[0043] S102: Acquire a first data list and a second data list corresponding to the initial user ID according to the initial feature data list.

[0044] Specifically, the first data list includes a plurality of first data, wherein the first data is sequence data.

[0045] Further, when the initial feature data in the initial feature data list can be converted into a sequence, the sequence corresponding to the initial feature data obtained is the first data, for example: the name of the installed APP and the time of installation.

[0046] Specifically, the second data list includes a plurality of second data, wherein the second data is text data.

[0047] Further, when the initial feature data in the initial feature data list is text, the acquired text corresponding to the initial feature data is the second data, for example: a description of an APP, a message pushed to a user device, and the like.

[0048] S103: Obtain a target feature vector list corresponding to each initial user ID according to the first data list and the second data list.

[0049] Specifically, the target feature vector list includes several target feature vectors.

[0050] Specifically, S103 also includes the following steps: Figure 3 As shown:

[0051] S1031, obtaining a first target feature vector according to the first data list.

[0052] Specifically, the first target feature vector is a vector obtained by converting the first data in the first data list into a vector and then adding them together. It can be understood as: obtaining the i-th first data vector A i =(A i1 , ..., A ij , ..., A im ), A ij is the jth bit in the i-th first data vector, the value range of j is 1 to m, m is the dimension of the first data vector, and the first target feature vector B is obtained = (B 1 , ..., Bj , ..., B m ), where B j =∑ n i=1 A ij , the value range of i is 1 to n, and n is the number of first data in the first data list.

[0053] Furthermore, those skilled in the art know that any method for converting a sequence into a vector in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0054] S1032: Obtain a second target feature vector according to the second data list.

[0055] Specifically, the second target feature vector is a vector obtained by converting the second data in the second data list into vectors and then adding them.

[0056] Furthermore, the second target feature vector is obtained in the same manner as the first target feature vector.

[0057] S1033: Obtain a target feature vector according to the first target feature vector and the second target feature vector.

[0058] Specifically, the target feature vector is a vector obtained by adding the first target feature vector and the second target feature vector.

[0059] Furthermore, the method for acquiring the target feature vector is consistent with the method for acquiring the first target feature vector.

[0060] From the above content, we can see that the feature data of different types corresponding to users are uniformly converted into vectors for the training of the large language model, which avoids the problem of non-standardized data caused by diverse sources and formats of user data. The corresponding semantic relationships are understood by the large language model, the correlation between data is obtained, and the accuracy of obtaining the target user portrait is improved.

[0061] S200, constructing a target training model according to the target feature vector list set.

[0062] Specifically, S200 also includes the following steps:

[0063] S201, inputting the target feature vector list set into the initial LLM model for training.

[0064] S202, continuously adjusting the parameters of the initial LLM model and screening the initial features to adjust the target feature vector list set until the error is less than a preset threshold to obtain a target training model.

[0065] Specifically, the preset threshold value ranges from 0.2 to 0.3, wherein those skilled in the art know that the preset threshold value can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.

[0066] Specifically, those skilled in the art know that any method of adjusting model parameters and screening features to change model input in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0067] S300, obtaining a target feature data list corresponding to a target user ID.

[0068] Specifically, the target user ID is a unique identifier that represents the target user, wherein the method for obtaining the target user ID is consistent with the method for obtaining the initial user ID.

[0069] Furthermore, the target user is a user whose target portrait is to be obtained.

[0070] Specifically, the target feature data list includes a plurality of target feature data, wherein the target feature data is data related to the target feature of the target user corresponding to the acquired target user ID before the current moment.

[0071] Furthermore, the target feature is an initial feature screened from a number of initial features.

[0072] Furthermore, the number of features included in the target features is smaller than the number of features included in the initial features.

[0073] S400, input the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID.

[0074] Specifically, the target portrait is all data related to the initial features of the target user before the current moment obtained based on the target training model. It can be understood as: training the model through a large amount of data so that the model can obtain information related to the target user in certain contexts, such as what apps are installed, when they were installed and uninstalled, or what geographical locations they appeared in.

[0075] In another specific embodiment, the following steps are further included after S100:

[0076] S1, obtain the initial prediction model according to the target feature vector list set.

[0077] Specifically, the initial prediction model is a prediction model obtained by inputting the initial user ID list and the target feature vector list set into the initial LLM model for training.

[0078] Furthermore, those skilled in the art know that the methods for training LLM models in the prior art all fall within the protection scope of the present invention and will not be described in detail herein.

[0079] S2, obtaining a specified user ID list and a specified feature vector list set corresponding to the specified user ID list.

[0080] Specifically, the designated user ID list includes a plurality of designated user IDs, wherein the designated user ID is a unique identifier representing a designated user.

[0081] Furthermore, the designated user is a user having a communication device for detecting the initial prediction model.

[0082] Furthermore, the method for obtaining the designated user ID is consistent with the method for obtaining the initial user ID.

[0083] Specifically, the designated feature vector list set includes a plurality of designated feature vector lists, wherein each designated user ID corresponds to a designated feature vector list, and the designated feature vector list includes a plurality of designated feature vectors.

[0084] Specifically, S2 includes the following steps:

[0085] S21, obtaining a first designated data list corresponding to each designated user ID.

[0086] Specifically, the first designated data list includes a plurality of first designated data, wherein the first designated data is data related to the initial features and involved in a designated user corresponding to a designated user ID within a preset time period.

[0087] Furthermore, the end time of the preset time period is before the current time.

[0088] Furthermore, those skilled in the art know that the time span corresponding to the preset time period can be selected according to actual needs, which falls within the protection scope of the present invention and will not be described in detail here.

[0089] S22, obtaining a first designated feature vector according to the first designated data list.

[0090] Specifically, the method for acquiring the first designated feature vector is consistent with the method for acquiring the target feature vector, and may refer to steps S102 to S103.

[0091] S23, obtaining a second designated data list corresponding to each designated user ID.

[0092] Specifically, the second designated data list includes a plurality of second designated data, wherein the second designated data is data related to the initial features and involved in a designated user corresponding to a designated user ID within a designated time period.

[0093] Furthermore, the start time of the specified time period is the end time of the preset time period.

[0094] Furthermore, the end time of the specified time period is the current time.

[0095] S24, obtaining a second designated feature vector according to the second designated data list.

[0096] Specifically, the method for acquiring the second designated feature vector is consistent with the method for acquiring the target feature vector, and reference may be made to steps S102 to S103.

[0097] S25, obtaining a designated feature vector according to the first designated feature vector and the second designated feature vector.

[0098] Specifically, the designated feature vector includes a first designated feature vector and a second designated feature vector.

[0099] S3, input the specified feature vector list set into the initial prediction model to obtain the target priority.

[0100] Specifically, S3 also includes the following steps:

[0101] S31, obtaining a first intermediate feature vector list corresponding to a specified user ID list.

[0102] Specifically, the first intermediate feature vector list includes a plurality of first intermediate feature vectors, wherein each designated user ID corresponds to a first intermediate feature vector.

[0103] Furthermore, the first intermediate feature vector is a feature vector corresponding to a specified time period obtained by inputting the first specified feature vector into an initial prediction model for prediction.

[0104] S32, obtaining a second intermediate feature vector list corresponding to the specified user ID list.

[0105] Specifically, the second intermediate feature vector list includes a plurality of second intermediate feature vectors, wherein each designated user ID corresponds to a second intermediate feature vector.

[0106] Furthermore, the second intermediate feature vector is a second designated feature vector corresponding to the acquired designated user ID.

[0107] S33: Obtain target priority according to the first intermediate feature vector list and the second intermediate feature vector list.

[0108] Specifically, S33 also includes the following steps:

[0109] S331, according to the first intermediate feature vector list, obtain a first key feature vector list, that is, according to the first intermediate feature vector list, obtain a first key feature vector list H={H 1 , ..., H g , ..., H h}, H g is the gth first key eigenvector, the value range of g is 1 to h, and h is the number of first key eigenvectors.

[0110] Specifically, the first key feature vector list includes a first key feature vector, wherein the first key feature vector is a feature vector corresponding to a specific feature obtained from the first intermediate feature vector.

[0111] Furthermore, the specific feature is an initial feature in which an initial feature corresponding to the first intermediate feature vector overlaps with an initial feature corresponding to the second intermediate feature vector.

[0112] S332, according to the second intermediate feature vector list, obtain a second key feature vector list, that is, according to the second intermediate feature vector list, obtain a second key feature vector list P={P 1 , ..., P g , ..., P h}, P g is the g-th second key eigenvector.

[0113] Specifically, the second key feature vector list includes a second key feature vector, wherein the second key feature vector is a feature vector corresponding to a specific feature obtained from the second intermediate feature vector.

[0114] S333: Obtain a target priority according to the first key feature vector list and the second key feature vector list, that is, obtain a target priority F according to H and P, where F meets the following conditions:

[0115] F=∑ h g=1 Q g , Q g H g With P g The similarity between .

[0116] Specifically, those skilled in the art know that any method for calculating the similarity between vectors in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0117] S4, continuously adjusting the parameters corresponding to the initial prediction model until the target priority meets the preset priority threshold to obtain the target prediction model.

[0118] Specifically, the preset priority threshold value ranges from 0.75 to 0.9, wherein those skilled in the art know that the preset priority threshold value can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.

[0119] From the above content, we can see that the use of a large language model to process the feature information corresponding to the user solves the problem of large and complex data volume and improves the efficiency of predicting user portraits. When training the large language model, the model prediction value is not directly compared with the true value. The feature information after feature screening is compared through feature screening, which improves the accuracy of the target user portrait prediction model.

[0120] From the above content, it can be seen that the first embodiment of the present invention can obtain the target user portrait: obtain the initial user ID list and the target feature vector list set corresponding to the initial user ID list; build a target training model based on the target feature vector list set; obtain the target feature data list corresponding to the target user ID; input the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID; it can be seen that the feature data of different types corresponding to the user are uniformly converted into vectors for the training of the large language model, which avoids the problem of non-standardized data caused by diverse sources and different formats of user data, understands the corresponding semantic relationship through the large language model, obtains the correlation between data and data, and improves the accuracy of obtaining the target user portrait.

[0121] Embodiment 2

[0122] like Figure 4 As shown, this embodiment provides a device for obtaining a target user portrait, the device comprising:

[0123] The first execution module 1 is used to obtain an initial user ID list and a target feature vector list set corresponding to the initial user ID list.

[0124] Specifically, the initial user ID list includes a plurality of initial user IDs, wherein the initial user ID is a unique identifier representing an initial user.

[0125] Furthermore, the initial user is a user of a device with a communication function used for model training.

[0126] Furthermore, those skilled in the art know that any method for obtaining a user identifier in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0127] Specifically, the target feature vector list set includes several target feature vector lists, wherein each initial user ID corresponds to one target feature vector list, and the target feature vector list includes several target feature vectors.

[0128] like Figure 5 As shown, the first execution module 1 also includes:

[0129] The first acquisition module 11 is used to acquire an initial feature data list corresponding to each initial user ID.

[0130] Specifically, the initial feature data list includes a plurality of initial feature data, wherein the initial feature data is data related to the initial feature that the initial user corresponding to the initial user ID is involved in before the current moment.

[0131] Furthermore, the initial features are the types of data related to the initial user obtained through the device of the initial user, such as: a list of installed apps, the names of installed apps and the time of installation, the names of uninstalled apps and the time of uninstallation, a list of used apps, geographic location information that has appeared, descriptions corresponding to installed apps, descriptions corresponding to uninstalled apps, and other initial features.

[0132] The second acquisition module 22 is used to acquire a first data list and a second data list corresponding to the initial user ID according to the initial feature data list.

[0133] Specifically, the first data list includes a plurality of first data, wherein the first data is sequence data and the like.

[0134] Further, when the initial feature data in the initial feature data list can be converted into a sequence, the sequence corresponding to the initial feature data obtained is the first data, for example: the name of the installed APP and the time of installation.

[0135] Specifically, the second data list includes a plurality of second data, wherein the second data is text data.

[0136] Further, when the initial feature data in the initial feature data list is text, the acquired text corresponding to the initial feature data is the second data, for example: a description of an APP, a message pushed to a user device, and the like.

[0137] The third acquisition module 23 is used to acquire a target feature vector list corresponding to each initial user ID according to the first data list and the second data list.

[0138] Specifically, the target feature vector list includes several target feature vectors.

[0139] like Figure 6 As shown, the third acquisition module 23 also includes:

[0140] The first target feature vector acquisition module 231 is used to acquire the first target feature vector according to the first data list.

[0141] Specifically, the first target feature vector is a vector obtained by converting the first data in the first data list into a vector and then adding them together. It can be understood as: obtaining the i-th first data vector A i =(A i1 , ..., A ij , ..., A im ), A ij is the jth bit in the i-th first data vector, the value range of j is 1 to m, m is the dimension of the first data vector, and the first target feature vector B is obtained = (B 1 , ..., B j , ..., B m ), where B j =∑ n i=1 A ij , the value range of i is 1 to n, and n is the number of first data in the first data list.

[0142] Furthermore, those skilled in the art know that any method for converting a sequence into a vector in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0143] The second target feature vector acquisition module 232 is used to acquire the second target feature vector according to the second data list.

[0144] Specifically, the second target feature vector is a vector obtained by converting the second data in the second data list into vectors and then adding them.

[0145] Furthermore, the second target feature vector is obtained in the same manner as the first target feature vector.

[0146] The target feature vector acquisition module 233 is used to acquire a target feature vector according to the first target feature vector and the second target feature vector.

[0147] Specifically, the target feature vector is a vector obtained by adding the first target feature vector and the second target feature vector.

[0148] Furthermore, the method for acquiring the target feature vector is consistent with the method for acquiring the first target feature vector.

[0149] Based on the above content, we can know that by uniformly converting different types of feature data corresponding to users into vectors for training the large language model, we can avoid the problem of non-standardized data caused by diverse sources and different formats of user data. By understanding the corresponding semantic relationships through the large language model, we can obtain the correlation between data and data, thus improving the accuracy of obtaining the target user portrait.

[0150] The second execution module 2 is used to construct a target training model according to the target feature vector list set.

[0151] Specifically, the second execution module 2 further includes:

[0152] The first candidate module is used to input the target feature vector list set into the initial LLM model for training.

[0153] The second candidate module is used to continuously adjust the parameters of the initial LLM model and screen the initial features to adjust the target feature vector list set until the error is less than a preset threshold to obtain the target training model.

[0154] Specifically, the preset threshold value ranges from 0.2 to 0.3, wherein those skilled in the art know that the preset threshold value can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.

[0155] Specifically, those skilled in the art know that any method of adjusting model parameters and screening features to change model input in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0156] The third execution module 3 is used to obtain a target feature data list corresponding to the target user ID.

[0157] Specifically, the target user ID is a unique identifier that represents the target user, wherein the method for obtaining the target user ID is consistent with the method for obtaining the initial user ID.

[0158] Furthermore, the target user is a user whose target portrait is to be obtained.

[0159] Specifically, the target feature data list includes a plurality of target feature data, wherein the target feature data is data related to the target feature that the target user corresponding to the target user ID is involved in before the current moment.

[0160] Furthermore, the target feature is an initial feature screened from a number of initial features.

[0161] Furthermore, the number of features included in the target features is smaller than the number of features included in the initial features.

[0162] The fourth execution module 4 is used to input the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID.

[0163] Specifically, the target portrait is all data related to the initial features of the target user before the current moment obtained based on the target training model. It can be understood as: training the model through a large amount of data so that the model can obtain information related to the target user in certain contexts, such as what apps are installed, when they were installed and uninstalled, or what geographical locations they appeared in.

[0164] Specifically, the device further includes:

[0165] The first processing module is used to obtain an initial prediction model according to the target feature vector list set.

[0166] Specifically, the initial prediction model is a prediction model obtained by inputting the initial user ID list and the target feature vector list set into the initial LLM model for training.

[0167] Furthermore, those skilled in the art know that the methods for training LLM models in the prior art all fall within the protection scope of the present invention and will not be described in detail herein.

[0168] The second processing module is used to obtain a specified user ID list and a specified feature vector list set corresponding to the specified user ID list.

[0169] Specifically, the designated user ID list includes a plurality of designated user IDs, wherein the designated user ID is a unique identifier representing a designated user.

[0170] Furthermore, the designated user is a user having a communication device for detecting the initial prediction model.

[0171] Furthermore, the method for obtaining the designated user ID is consistent with the method for obtaining the initial user ID.

[0172] Specifically, the designated feature vector list set includes a plurality of designated feature vector lists, wherein each designated user ID corresponds to a designated feature vector list, and the designated feature vector list includes a plurality of designated feature vectors.

[0173] Specifically, the second processing module further includes:

[0174] The first designated data list acquisition module is used to acquire the first designated data list corresponding to each designated user ID.

[0175] Specifically, the first designated data list includes a plurality of first designated data, wherein the first designated data is data related to the initial features and involved in a designated user corresponding to a designated user ID within a preset time period.

[0176] Furthermore, the end time of the preset time period is before the current time.

[0177] Furthermore, those skilled in the art know that the time span corresponding to the preset time period can be selected according to actual needs, which falls within the protection scope of the present invention and will not be described in detail here.

[0178] The first designated feature vector acquisition module is used to acquire the first designated feature vector according to the first designated data list.

[0179] Specifically, the method for acquiring the first designated feature vector is consistent with the method for acquiring the target feature vector.

[0180] The second designated data list acquisition module is used to acquire the second designated data list corresponding to each designated user ID.

[0181] Specifically, the second designated data list includes a plurality of second designated data, wherein the second designated data is data related to the initial features and involved in a designated user corresponding to a designated user ID within a designated time period.

[0182] Furthermore, the start time of the specified time period is the end time of the preset time period.

[0183] Furthermore, the end time of the specified time period is the current time.

[0184] The second designated feature vector acquisition module is used to acquire the second designated feature vector according to the second designated data list.

[0185] Specifically, the method for acquiring the second designated feature vector is consistent with the method for acquiring the target feature vector.

[0186] The designated feature vector acquisition module is used to acquire the designated feature vector according to the first designated feature vector and the second designated feature vector.

[0187] Specifically, the designated feature vector includes a first designated feature vector and a second designated feature vector.

[0188] The third processing module is used to input the specified feature vector list set into the initial prediction model to obtain the target priority.

[0189] Specifically, the third processing module further includes:

[0190] The first intermediate feature vector list acquisition module is used to acquire the first intermediate feature vector list corresponding to the specified user ID list.

[0191] Specifically, the first intermediate feature vector list includes a plurality of first intermediate feature vectors, wherein each designated user ID corresponds to a first intermediate feature vector.

[0192] Furthermore, the first intermediate feature vector is a feature vector corresponding to a specified time period obtained by inputting the first specified feature vector into an initial prediction model for prediction.

[0193] The second intermediate feature vector list acquisition module is used to acquire the second intermediate feature vector list corresponding to the specified user ID list.

[0194] Specifically, the second intermediate feature vector list includes a plurality of second intermediate feature vectors, wherein each designated user ID corresponds to a second intermediate feature vector.

[0195] Furthermore, the second intermediate feature vector is a second designated feature vector corresponding to the acquired designated user ID.

[0196] The target acquisition module is used to acquire the target priority according to the first intermediate feature vector list and the second intermediate feature vector list.

[0197] Specifically, the target acquisition module also includes:

[0198] The first key feature vector list acquisition module is used to acquire the first key feature vector list according to the first intermediate feature vector list, that is, to acquire the first key feature vector list H={H 1 , ..., H g , ..., H h}, H g is the gth first key eigenvector, the value range of g is 1 to h, and h is the number of first key eigenvectors.

[0199] Specifically, the first key feature vector list includes a first key feature vector, wherein the first key feature vector is a feature vector corresponding to a specific feature obtained from the first intermediate feature vector.

[0200] Furthermore, the specific feature is an initial feature in which an initial feature corresponding to the first intermediate feature vector overlaps with an initial feature corresponding to the second intermediate feature vector.

[0201] The second key feature vector list acquisition module is used to acquire the second key feature vector list according to the second intermediate feature vector list, that is, to acquire the second key feature vector list P={P1 , ..., P g , ..., P h}, P g is the g-th second key eigenvector.

[0202] Specifically, the second key feature vector list includes a second key feature vector, wherein the second key feature vector is a feature vector corresponding to a specific feature obtained from the second intermediate feature vector.

[0203] The target priority acquisition module is used to acquire the target priority according to the first key feature vector list and the second key feature vector list, that is, to acquire the target priority F according to H and P, wherein F meets the following conditions:

[0204] F=∑ h g=1 Q g , Q g H g With P g The similarity between .

[0205] Specifically, those skilled in the art know that any method for calculating the similarity between vectors in the prior art falls within the protection scope of the present invention and will not be described in detail herein.

[0206] The fourth processing module is used to continuously adjust the parameters corresponding to the initial prediction model until the target priority meets a preset priority threshold to obtain the target prediction model.

[0207] Specifically, the preset priority threshold value ranges from 0.75 to 0.9, wherein those skilled in the art know that the preset priority threshold value can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.

[0208] Embodiment 3

[0209] An embodiment of the present invention provides a non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the steps:

[0210] Obtaining an initial user ID list and a target feature vector list set corresponding to the initial user ID list, wherein obtaining the target feature vector list set corresponding to the initial user ID list includes the following steps:

[0211] Get the initial feature data list corresponding to each initial user ID.

[0212] According to the initial feature data list, a first data list and a second data list corresponding to the initial user ID are obtained, wherein the first data list includes a plurality of first data which are sequence data, and the second data list includes a plurality of second data which are text data.

[0213] According to the first data list and the second data list, a target feature vector list corresponding to each initial user ID is obtained.

[0214] Construct a target training model based on the target feature vector list set.

[0215] Get the target feature data list corresponding to the target user ID.

[0216] Input the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID.

[0217] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0218] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0219] Embodiment 4

[0220] An embodiment of the present invention provides an electronic device, which includes a processor and the non-transitory computer-readable storage medium in Embodiment 3 of the present invention.

[0221] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A method for obtaining a target user portrait, characterized in that: The method comprises the following steps: Obtaining an initial user ID list and a target feature vector list set corresponding to the initial user ID list, wherein obtaining the target feature vector list set corresponding to the initial user ID list includes the following steps: Get the initial feature data list corresponding to each initial user ID; According to the initial feature data list, a first data list and a second data list corresponding to the initial user ID are obtained, wherein the first data list includes a plurality of first data, which are sequence data, and the second data list includes a plurality of second data, wherein the second data are text data; According to the first data list and the second data list, a target feature vector list corresponding to each initial user ID is obtained, wherein according to the first data list and the second data list, obtaining the target feature vector list corresponding to each initial user ID comprises the following steps: According to the first data list, a first target feature vector is obtained, wherein the first target feature vector is a vector obtained by converting the first data in the first data list into a vector and then adding the converted vectors; According to the second data list, a second target feature vector is obtained, wherein the second target feature vector is a vector obtained by converting the second data in the second data list into vectors and then adding them; Obtaining a target feature vector according to the first target feature vector and the second target feature vector, wherein the target feature vector is a vector obtained by adding the first target feature vector to the second target feature vector; According to the target feature vector list set, a target training model is constructed; Get the target feature data list corresponding to the target user ID; Input the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID.

2. The method for obtaining a target user portrait according to claim 1, characterized in that: The initial user ID list includes a plurality of initial user IDs, wherein the initial user ID is a unique identifier representing an initial user.

3. The method for obtaining a target user portrait according to claim 1, characterized in that: The initial feature data list includes a plurality of initial feature data, wherein the initial feature data is data related to the initial feature of the initial user corresponding to the acquired initial user ID before the current moment.

4. The method for obtaining a target user portrait according to claim 1, characterized in that: The target feature data list includes a plurality of target feature data, wherein the target feature data is data related to the target feature of the target user corresponding to the acquired target user ID before the current moment.

5. A device for obtaining a target user portrait, characterized in that: The device comprises: The first execution module is configured to obtain an initial user ID list and a target feature vector list set corresponding to the initial user ID list, wherein the first execution module includes: A first acquisition module is used to acquire an initial feature data list corresponding to each initial user ID; A second acquisition module, used to acquire a first data list and a second data list corresponding to an initial user ID according to the initial feature data list; The third acquisition module is used to acquire a target feature vector list corresponding to each initial user ID according to the first data list and the second data list, wherein the third acquisition module includes: A first target feature vector acquisition module, used to acquire a first target feature vector according to a first data list, wherein the first target feature vector is a vector acquired by converting the first data in the first data list into a vector and then adding the converted vectors; A second target feature vector acquisition module, used to acquire a second target feature vector according to a second data list, wherein the second target feature vector is a vector acquired by converting the second data in the second data list into vectors and then adding them; A target feature vector acquisition module, used to acquire a target feature vector according to the first target feature vector and the second target feature vector, wherein the target feature vector is a vector acquired by adding the first target feature vector to the second target feature vector; The second execution module constructs a target training model according to the target feature vector list set; The third execution module obtains a target feature data list corresponding to the target user ID; The fourth execution module inputs the target feature data list into the target training model to obtain the target portrait corresponding to the target user ID.

6. The device for obtaining a target user portrait according to claim 5, characterized in that: The initial user ID list includes a plurality of initial user IDs, wherein the initial user ID is a unique identifier representing an initial user.

7. The device for obtaining a target user portrait according to claim 5, characterized in that: The initial feature data list includes a plurality of initial feature data, wherein the initial feature data is data related to the initial feature of the initial user corresponding to the acquired initial user ID before the current moment.

8. The device for obtaining a target user portrait according to claim 5, characterized in that: The target feature data list includes a plurality of target feature data, wherein the target feature data is data related to the target feature of the target user corresponding to the acquired target user ID before the current moment.

9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the method for obtaining a target user portrait as described in any one of claims 1-4.

10. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.