User data profile generation method, device, electronic device and storage medium
By preprocessing user data sets and extracting target factors, user data profiles are generated, which solves the problems of high resource usage and low accuracy in the existing technology, and achieves efficient and accurate user data profile generation.
Patent Information
- Application Number
- CN202011036816.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-27
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-09-27
AI Technical Summary
Building user data portraits in the existing technology requires a large amount of computer resources, and the accuracy of matching user data and tags is low.
By obtaining the original data set for preprocessing, the target factors in the target information are extracted, floating items are searched in the preset database, the floating target set is calculated, and user data portraits are generated to reduce the occupation of computer resources and improve matching accuracy.
It reduces the occupation of computer resources, simplifies the data processing process, improves the efficiency and accuracy of generating user data portraits, and avoids a large number of label settings and complex algorithm modeling.
Smart Images

Figure CN112184465B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a method, device, electronic device and computer-readable storage medium for generating a user data portrait. Background Art
[0002] User data portraits (Personas) are a collection of user attributes. According to the differences in user goals, behaviors and opinions, users are divided into different types. Then, typical features are extracted from each type, and a name, some statistical elements, scenes and other descriptions are given to form a person prototype. User data portraits are widely used in various fields, such as personalized recommendations, advertising systems, event marketing, content recommendations, and interest preferences, which are all applications based on user portraits.
[0003] Under the existing technology, the construction of user data portraits has the following defects: 1. When processing user data, a large number of user tags need to be constructed, and the accuracy rate is low when matching user data with user tags; 2. When constructing user data portraits, it is necessary to use natural language technology, machine learning, clustering algorithms and other technologies for modeling, which takes up a lot of computer resources. Summary of the invention
[0004] The present invention provides a method and device for generating a user data portrait and a computer-readable storage medium, the main purpose of which is to solve the problem of excessive computer resource occupation.
[0005] To achieve the above object, the present invention provides a method for generating a user data profile, comprising:
[0006] Acquire an original data set, and perform a preprocessing operation on the original data set to obtain a standard data set;
[0007] Acquire a target information set, extract target information from the target information set, and obtain a target factor according to the target information;
[0008] Find the floating item corresponding to the target factor in the preset database, calculate the floating target according to the floating item, and summarize the floating targets to obtain a floating target set;
[0009] A data portrait corresponding to the user in the target information set is generated according to the floating target set and the standard data set.
[0010] Optionally, obtaining a target factor according to the target information includes:
[0011] Extracting risk information from the target information according to a preset algorithm;
[0012] Obtaining historical risk information in the standard data set;
[0013] When the risk information is the same as the historical risk information, the risk information is determined to be the target factor.
[0014] Optionally, extracting risk information from the target information according to a preset algorithm includes:
[0015] Performing word segmentation processing on the text contained in the target information and removing stop words to obtain a word segmentation result;
[0016] One or more keywords are extracted from the word segmentation results as the risk information.
[0017] Optionally, searching for a floating item corresponding to the target factor in a preset database, calculating a floating target according to the floating item, and summarizing the floating targets to obtain a floating target set includes:
[0018] When a factor identical to the target factor is found in the preset database, the floating item corresponding to the found factor is determined as the floating item of the target factor;
[0019] Calculating the floating target of the target factor using the floating item;
[0020] The floating targets are aggregated to obtain the floating target set.
[0021] Optionally, the floating target of the target factor is calculated using the floating item using the following formula:
[0022]
[0023] Among them, B i is the floating target of the i-th target factor, i is an integer greater than 0, is the corresponding floating term, a i is the i-th target factor, and k is the number of floating items.
[0024] Optionally, generating a data portrait corresponding to a user in the target information set according to the floating target set and the standard data set includes:
[0025] Acquire a historical floating target set in the standard data set, calculate the average value of each historical floating target in the historical floating target set, and obtain a historical floating target average value set;
[0026] The floating target set is matched with the historical floating target average value set by using a preset mapping relationship to obtain the floating target and the historical floating target average value after successful matching, and the ratio result of each floating target and the corresponding historical floating target average value is calculated;
[0027] Obtain a preset data label, and obtain the data portrait according to the ratio result and the data label.
[0028] Optionally, the preset mapping relationship includes:
[0029] (T·R):D→C or C=(T·R)(D)
[0030] Among them, C represents the historical floating target average value set, T represents the classifier function of the floating target set, D represents the floating target set, and R represents the type semantic analysis function of the floating target set.
[0031] In order to solve the above problems, the present invention also provides a user data portrait generation device, the device comprising:
[0032] A data processing module is used to obtain an original data set, perform preprocessing operations on the original data set, and obtain a standard data set;
[0033] A factor extraction module, used to obtain a target information set, extract target information from the target information set, and obtain a target factor according to the target information;
[0034] A factor calculation module, used to search for floating items corresponding to the target factors in a preset database, calculate floating targets according to the floating items, and summarize the floating targets to obtain a floating target set;
[0035] The portrait generation module is used to generate a data portrait corresponding to the user in the target information set according to the floating target set and the standard data set.
[0036] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0037] a memory storing at least one instruction; and
[0038] The processor executes the instructions stored in the memory to implement the user data portrait generation method described above.
[0039] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned user data portrait generation method.
[0040] The present invention ensures the accuracy of the data in the standard data set through preprocessing operations. By extracting the target information in the target information set, obtaining the target factor according to the target information, and obtaining the floating item according to the target factor, and calculating the floating target set according to the floating item, a large number of labels do not need to be set during the data processing process, and the data processing process is simplified. The user data portrait is generated according to the floating target set and the standard data set, and there is no need to use a large number of algorithmic technologies to model, which reduces the occupation of computer resources. Therefore, the user data portrait generation method, device and computer-readable storage medium proposed in the present invention can solve the problem of occupying a large number of computer resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a flow chart of a method for generating a user data profile provided by an embodiment of the present invention;
[0042] Figure 2 for Figure 1 A detailed implementation flow chart of one of the steps in the process;
[0043] Figure 3 for Figure 1 A detailed implementation flow diagram of another step in FIG.
[0044] Figure 4 for Figure 1 A detailed implementation flow diagram of another step in FIG.
[0045] Figure 5 A functional module diagram of a user data portrait generating device provided by an embodiment of the present invention;
[0046] Figure 6 A schematic diagram of the structure of an electronic device for implementing the user data portrait generation method provided in one embodiment of the present invention.
[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0049] The execution subject of the user data portrait generation method provided in the embodiment of the present application includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the user data portrait generation method can be executed by software or hardware installed in a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0050] Reference Figure 1 FIG. 1 is a flow chart of a method for generating a user data profile provided by an embodiment of the present invention. In this embodiment, the method for generating a user data profile includes:
[0051] S1. Obtain an original data set, and perform a preprocessing operation on the original data set to obtain a standard data set.
[0052] In at least one embodiment of the present invention, the original data set includes, but is not limited to, one or more of the following combinations: historical business data, historical financial data, and product data. For example, in the insurance field, the historical business data may include: historical insurance data of the insured, historical insurance target factors, historical floating target sets, historical risk information, historical insurance quantities, historical insurance amounts, and historical insurance types, etc. The historical financial data may include: historical insurance fund proportions, historical insurance profits, and historical insurance return rates, etc. The historical product data may include: types of cargo insurance, life insurance, auto insurance, and accident insurance, etc.
[0053] In a preferred embodiment of the present invention, the preprocessing operation includes deduplication, outlier removal and missing value detection.
[0054] Preferably, the embodiment of the present invention performs a deduplication operation on the original data set by using a distance formula, and the distance formula includes:
[0055]
[0056] Among them, d represents the distance value between any two data in the original data set, and w 1j and w 2j Represents any two data in the original data set. When the distance value is less than a preset distance value, any one of the data is deleted. If the distance value is not less than the preset distance value, both data are retained. Preferably, the preset distance value can be 0.1.
[0057] The anomaly removal process in the embodiment of the present invention includes: bilateral test elimination and unilateral test elimination, wherein the unilateral test elimination includes minimum value unilateral test elimination and maximum value unilateral test elimination. In detail, the calculation method of the bilateral test elimination data includes:
[0058]
[0059] Among them, ω is a positive integer, represents the average value of the original data set after deduplication, S represents the standard deviation of the original data set after deduplication, and Y ω Represents the original data set after deduplication.
[0060] The calculation method of the minimum value single-side test elimination includes:
[0061]
[0062] in, represents the average value of the original data set after deduplication, Y min Indicates the smallest data in the original data set after deduplication.
[0063] The calculation method of the maximum value single-side test elimination includes:
[0064]
[0065] in, represents the average value of the original data set after deduplication, Y max Indicates the largest data in the original data set after deduplication.
[0066] In the embodiment of the present invention, the missing values include: completely random missing, random missing and non-random missing. In detail, the completely random missing refers to a completely random missing in which the missing value of a variable does not depend on any other reason; the random missing refers to the missing of a variable is related to other variables but not to the value of the variable itself; the non-random missing refers to the missing of a variable is related to the value of the variable itself.
[0067] Furthermore, the present invention detects whether there are missing data values in the original data set after the anomaly is removed by using the missmap function. If it is detected that there are no missing data values in the original data set after the anomaly is removed, no processing is performed and the original data set after the anomaly is removed is used as the standard data set.
[0068] If missing values appear in the original data set after the detection of anomalies, preferably, the embodiment of the present invention fills the missing values with a preset filling algorithm to obtain the standard data set. In detail, the preset filling algorithm includes:
[0069]
[0070] Among them, L(θ) represents the missing values of the filled data, Indicates data missing values, θ represents the probability parameter corresponding to the filled data missing values, and n represents the number of the original data set after removing the anomaly. Represents the probability of missing values in the filled data.
[0071] Further, in the embodiments of the present invention, after preprocessing the original data set, the accuracy of the data in the standard data set is ensured, making subsequent data extraction more accurate.
[0072] S2. Obtain a target information set, extract the target information in the target information set, and obtain a target factor according to the target information.
[0073] Preferably, referring to Figure 2 as shown, the obtaining of the target factor according to the target information includes:
[0074] S20. Extract risk information in the target information according to a preset algorithm;
[0075] S21. Obtain historical risk information in the standard data set;
[0076] S22. When the risk information is the same as the historical risk information, determine the risk information as the target factor.
[0077] Further, the extracting of the risk information in the target information according to the preset algorithm specifically includes:
[0078] Perform word segmentation on the text included in the target information and remove stop words to obtain a word segmentation result;
[0079] Extract one or more keywords from the word segmentation result as the risk information.
[0080] Among them, in the embodiments of the present invention, currently disclosed algorithms such as TextRank and keyword extraction algorithms based on semantics can be used to select one or more keywords. The stop words refer to certain words or terms that will be automatically filtered out before processing the text included in the target information in order to improve the search efficiency. For example: "de", "he", etc.
[0081] Preferably, the target information set can be the cargo insurance business information submitted by the user, including target information such as the departure place, destination, and transported goods. Target information with risks in the target information set is extracted to obtain the risk information, and the target factor is obtained by comparing the risk information with the historical risk information. The target factor refers to the risk data generated after matching with the historical risk information in the standard data set. For example, the cargo insurance business information on the transportation of apples from Guangdong to Shenzhen submitted by user A is obtained. The target information includes information such as the departure place Guangdong, the destination Shenzhen, and the transported goods apples. The extracted keywords include Guangdong, Shenzhen, apples, etc., and the keywords are used as risk information. According to the risk information, the historical risk information in the cargo insurance historical underwriting and claims data set in the standard data set is matched to obtain the target factors of this cargo insurance policy (departure place risk a1, destination risk a2, transported goods risk a3...).
[0082] Furthermore, the target factor is obtained according to the extracted target information, which greatly reduces the amount of data processing and the occupation of computer resources.
[0083] S3. Find the floating item corresponding to the target factor in the preset database, calculate the floating target according to the floating item, and summarize the floating targets to obtain a floating target set.
[0084] Preferably, see Figure 3 As shown, the S3 includes:
[0085] S30, when a factor identical to the target factor is found in the preset database, determining the floating item corresponding to the found factor as the floating item of the target factor;
[0086] S31, using the floating item to calculate the floating target of the target factor;
[0087] S32: Summarize the floating targets to obtain the floating target set.
[0088] Furthermore, the floating target of the target factor is calculated using the floating term using the following formula:
[0089]
[0090] Among them, B i is the floating target of the i-th target factor, i is an integer greater than 0, is the corresponding floating term, a i is the i-th target factor, and k is the number of floating items.
[0091] Preferably, in an embodiment of the present invention, the preset database may be a risk control database, which can update the floating items of the target factor in real time by connecting multiple databases. By matching the floating items in the risk control database with the target factor, the floating target of the cargo insurance policy can be accurately calculated. For example, if the place of departure in the above example is Guangdong, the floating items corresponding to the risk a1 of the place of departure are weather risk. Risk of war Transportation risks The floating target B1 corresponding to the risk a1 of the place of departure is: The floating targets corresponding to all target factors of this freight insurance policy are calculated, and the floating targets are summarized to obtain a floating target set.
[0092] Furthermore, in the embodiment of the present invention, the floating item corresponding to the target factor can be updated in real time through the preset database, thereby improving the timeliness of data processing.
[0093] S4. Generate a data portrait corresponding to the user in the target information set according to the floating target set and the standard data set.
[0094] Preferably, reference Figure 4 As shown, the S4 specifically includes:
[0095] S40, obtaining a historical floating target set in the standard data set, calculating an average value of each historical floating target in the historical floating target set, and obtaining a historical floating target average value set;
[0096] S41, matching the floating target set with the historical floating target average value set by using a preset mapping relationship, obtaining the floating target and the historical floating target average value after successful matching, and calculating the ratio of each floating target to the corresponding historical floating target average value;
[0097] S42. Obtain a preset data label, and obtain the data portrait according to the ratio result and the data label.
[0098] The preset mapping relationship includes:
[0099] (T·R):D→C or C=(T·R)(D)
[0100] Among them, C represents the historical floating target average value set, T represents the classifier function of the floating target set, D represents the floating target set, and R represents the type semantic analysis function of the floating target set.
[0101] Preferably, in an embodiment of the present invention, the historical floating target set is classified, and the historical floating target set includes historical floating targets of user information. The average value of each historical floating target in the historical floating target set is calculated to obtain the average degree of each historical floating target. For example, the floating target set of user A is calculated: B1, B2, B3..., the historical floating target set of user A obtained from the standard data set includes: B′1, B′2, B′3...; B″1, B″2, B″3..., the average value of each historical floating target in the historical floating target set of user A is calculated: The average values are summarized to obtain the historical floating target average value set of user A. The floating target set is identified and classified according to the type semantic analysis function R and the classifier function T: transportation route selection: B1, B2, common cargo: B3, .... The classified items are matched with the items of the average value of the historical floating target by using the mapping relationship, and the ratio result of the matched items is calculated: The preset data labels may be labels such as morality score A, transportation route selection score B, and common cargo score C. In the embodiment of the present invention, data labels are set by the target factors, and the morality score A label is set according to the user's credit risk, the transportation route selection score B label is set according to the origin risk and the destination risk, and the common cargo score C label is set according to the transportation product risk. Add to the transport route selection score B label, Add to the frequently transported goods score C, ... Use visualization technology to obtain the specific proportion of the ratio results under the data labels such as the moral score A, the transportation route selection score B, and the frequently transported goods score C, and generate a data portrait of user A.
[0102] In an embodiment of the present invention, by extracting the target factor, generating a floating target set according to the target factor, and using the floating target set and the historical floating target set to construct a data portrait, the complexity of the data processing process and the amount of data to be processed are reduced, and the phenomenon of system crashes caused by excessive data volume occupying a large amount of computer resources during data processing can be reduced.
[0103] The present invention ensures the accuracy of the data in the standard data set through preprocessing operations. By extracting the target information in the target information set, obtaining the target factor according to the target information, and obtaining the floating item according to the target factor, and calculating the floating target set according to the floating item, a large number of labels do not need to be set during the data processing process, and the data processing process is simplified. The user data portrait is generated according to the floating target set and the standard data set, and there is no need to use a large number of algorithmic technologies to model, which reduces the occupation of computer resources. Therefore, the user data portrait generation method, device and computer-readable storage medium proposed in the present invention can solve the problem of occupying a large number of computer resources.
[0104] like Figure 5 The figure shows a functional module diagram of a user data portrait generating device provided by an embodiment of the present invention.
[0105] The user data portrait generation device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the user data portrait generation device 100 may include a data processing module 101, a factor extraction module 102, a factor calculation module 103 and a portrait generation module 104. The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0106] In this embodiment, the functions of each module / unit are as follows:
[0107] The data processing module 101 is used to obtain an original data set, and perform a preprocessing operation on the original data set to obtain a standard data set.
[0108] In at least one embodiment of the present invention, the original data set includes, but is not limited to, one or more of the following combinations: historical business data, historical financial data, and product data. For example, in the insurance field, the historical business data may include: historical insurance data of the insured, historical insurance target factors, historical floating target sets, historical risk information, historical insurance quantities, historical insurance amounts, and historical insurance types, etc. The historical financial data may include: historical insurance fund proportions, historical insurance profits, and historical insurance return rates, etc. The historical product data may include: types of cargo insurance, life insurance, auto insurance, and accident insurance, etc.
[0109] In a preferred embodiment of the present invention, the preprocessing operation includes deduplication, outlier removal and missing value detection.
[0110] Preferably, the embodiment of the present invention performs a deduplication operation on the original data set by using a distance formula, and the distance formula includes:
[0111]
[0112] Among them, d represents the distance value between any two data in the original data set, and w 1j and w 2j Represents any two data in the original data set. When the distance value is less than a preset distance value, any one of the data is deleted. If the distance value is not less than the preset distance value, both data are retained. Preferably, the preset distance value can be 0.1.
[0113] The anomaly removal process in the embodiment of the present invention includes: bilateral test elimination and unilateral test elimination, wherein the unilateral test elimination includes minimum value unilateral test elimination and maximum value unilateral test elimination. In detail, the calculation method of the bilateral test elimination data includes:
[0114]
[0115] Among them, ω is a positive integer, represents the average value of the original data set after deduplication, S represents the standard deviation of the original data set after deduplication, and Y ω Represents the original data set after deduplication.
[0116] The calculation method of the minimum value single-side test elimination includes:
[0117]
[0118] in, represents the average value of the original data set after deduplication, Y min Indicates the smallest data in the original data set after deduplication.
[0119] The calculation method of the maximum value single-side test elimination includes:
[0120]
[0121] in, represents the average value of the original data set after deduplication, Y max Indicates the largest data in the original data set after deduplication.
[0122] In the embodiment of the present invention, the missing values include: completely random missing, random missing and non-random missing. In detail, the completely random missing refers to a completely random missing in which the missing value of a variable does not depend on any other reason; the random missing refers to the missing of a variable is related to other variables but not to the value of the variable itself; the non-random missing refers to the missing of a variable is related to the value of the variable itself.
[0123] Furthermore, the present invention detects whether there are missing data values in the original data set after the anomaly is removed by using the missmap function. If it is detected that there are no missing data values in the original data set after the anomaly is removed, no processing is performed and the original data set after the anomaly is removed is used as the standard data set.
[0124] If missing values appear in the original data set after the detection of anomalies, preferably, the embodiment of the present invention fills the missing values with a preset filling algorithm to obtain the standard data set. In detail, the preset filling algorithm includes:
[0125]
[0126] Among them, L(θ) represents the missing values of the filled data, Indicates data missing values, θ represents the probability parameter corresponding to the filled data missing values, and n represents the number of the original data set after removing the anomaly. Represents the probability of missing values in the filled data.
[0127] Furthermore, in the embodiment of the present invention, after the original data set is preprocessed, the accuracy of the data in the standard data set is guaranteed, so that subsequent data extraction is more accurate.
[0128] The factor extraction module 102 is used to obtain a target information set, extract target information from the target information set, and obtain a target factor according to the target information.
[0129] Preferably, the factor extraction module 102 obtains the target factor by the following operations:
[0130] Extracting risk information from the target information according to a preset algorithm;
[0131] Obtaining historical risk information in the standard data set;
[0132] When the risk information is the same as the historical risk information, the risk information is determined to be the target factor.
[0133] Furthermore, the extracting risk information from the target information according to a preset algorithm specifically includes:
[0134] Performing word segmentation processing on the text contained in the target information and removing stop words to obtain a word segmentation result;
[0135] One or more keywords are extracted from the word segmentation results as the risk information.
[0136] Among them, in the embodiments of the present invention, one or more keywords can be selected by using the currently disclosed TextRank, keyword extraction algorithms based on semantics, etc. The stop words refer to certain words or terms that will be automatically filtered out before processing the text included in the target information in order to improve the search efficiency. For example: "de", "he", etc.
[0137] Preferably, the target information set can be the freight insurance business information submitted by the user, including target information such as the place of origin, destination, and transported goods. Extract the target information with risks in the target information set to obtain the risk information, and compare the risk information with the historical risk information to obtain the target factor. The target factor refers to the risk data generated after matching with the historical risk information in the standard data set. For example, obtain the freight insurance business information of the apple transportation from Guangdong to Shenzhen submitted by user A. The target information includes information such as the place of origin Guangdong, destination Shenzhen, and transported goods apple. The extracted keywords include Guangdong, Shenzhen, apple, etc., and use the keywords as the risk information. According to the risk information, match the historical risk information in the freight insurance historical underwriting and claims settlement data set in the standard data set to obtain the target factor (place of origin risk a1, destination risk a2, transported goods risk a3...) of this freight insurance application behavior.
[0138] Furthermore, obtaining the target factor according to the extracted target information greatly reduces the data processing volume and reduces the occupation of computer resources.
[0139] The factor calculation module 103 is used to find the floating item corresponding to the target factor in the preset database, calculate the floating target according to the floating item, and summarize the floating targets to obtain a floating target set.
[0140] Preferably, the factor calculation module 103 obtains the floating target set through the following operations:
[0141] When a factor identical to the target factor is found in the preset database, the floating item corresponding to the found factor is determined as the floating item of the target factor;
[0142] Calculate the floating target of the target factor by using the floating item;
[0143] Summarize the floating targets to obtain the floating target set.
[0144] Furthermore, the following formula is used to calculate the floating target of the target factor by using the floating item:
[0145]
[0146] Wherein, B iis the floating target of the i-th target factor, i is an integer greater than 0, is the corresponding floating term, a i is the i-th target factor, and k is the number of floating items.
[0147] Preferably, in an embodiment of the present invention, the preset database may be a risk control database, which can update the floating items of the target factor in real time by connecting multiple databases. By matching the floating items in the risk control database with the target factor, the floating target of the cargo insurance policy can be accurately calculated. For example, if the place of departure in the above example is Guangdong, the floating items corresponding to the risk a1 of the place of departure are weather risk. Risk of war Transportation risks The floating target B1 corresponding to the risk a1 of the place of departure is: The floating targets corresponding to all target factors of this freight insurance policy are calculated, and the floating targets are summarized to obtain a floating target set.
[0148] Furthermore, in the embodiment of the present invention, the floating item corresponding to the target factor can be updated in real time through the preset database, thereby improving the timeliness of data processing.
[0149] The portrait generation module 104 is used to generate a data portrait corresponding to the user in the target information set according to the floating target set and the standard data set.
[0150] Preferably, the portrait generation module 104 obtains the data portrait corresponding to the user through the following operations:
[0151] Acquire a historical floating target set in the standard data set, calculate the average value of each historical floating target in the historical floating target set, and obtain a historical floating target average value set;
[0152] The floating target set is matched with the historical floating target average value set by using a preset mapping relationship to obtain the floating target and the historical floating target average value after successful matching, and the ratio result of each floating target and the corresponding historical floating target average value is calculated;
[0153] Obtain a preset data label, and obtain the data portrait according to the ratio result and the data label.
[0154] The preset mapping relationship includes:
[0155] (T·R):D→C or C=(T·R)(D)
[0156] Among them, C represents the historical floating target average value set, T represents the classifier function of the floating target set, D represents the floating target set, and R represents the type semantic analysis function of the floating target set.
[0157] Preferably, in an embodiment of the present invention, the historical floating target set is classified, and the historical floating target set includes historical floating targets of user information. The average value of each historical floating target in the historical floating target set is calculated to obtain the average degree of each historical floating target. For example, the floating target set of user A is calculated: B1, B2, B3..., the historical floating target set of user A obtained from the standard data set includes: B′1, B′2, B′3...; B″1, B″2, B″3..., the average value of each historical floating target in the historical floating target set of user A is calculated: The average values are summarized to obtain the historical floating target average value set of user A. The floating target set is identified and classified according to the type semantic analysis function R and the classifier function T: transportation route selection: B1, B2, common cargo: B3, .... The classified items are matched with the items of the average value of the historical floating target by using the mapping relationship, and the ratio result of the matched items is calculated: The preset data labels may be labels such as morality score A, transportation route selection score B, and common cargo score C. In the embodiment of the present invention, data labels are set by the target factors, and the morality score A label is set according to the user's credit risk, the transportation route selection score B label is set according to the origin risk and the destination risk, and the common cargo score C label is set according to the transportation product risk. Add to the transport route selection score B label, Add to the frequently transported goods score C, ... Use visualization technology to obtain the specific proportion of the ratio results under the data labels such as the moral score A, the transportation route selection score B, and the frequently transported goods score C, and generate a data portrait of user A.
[0158] like Figure 6 The figure is a schematic diagram of the structure of an electronic device for implementing a method for generating a user data portrait provided by an embodiment of the present invention.
[0159] The electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a user data portrait generation program 12.
[0160] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 11 can be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 can also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the user data portrait generation program 12, etc., but also can be used to temporarily store data that has been output or is to be output.
[0161] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as user data portrait generation programs, etc.) stored in the memory 11, and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0162] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0163] Figure 6 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 6The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0164] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0165] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0166] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0167] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0168] The user data portrait generation program 12 stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0169] Acquire an original data set, and perform a preprocessing operation on the original data set to obtain a standard data set;
[0170] Acquire a target information set, extract target information from the target information set, and obtain a target factor according to the target information;
[0171] Find the floating item corresponding to the target factor in the preset database, calculate the floating target according to the floating item, and summarize the floating targets to obtain a floating target set;
[0172] A data portrait corresponding to the user in the target information set is generated according to the floating target set and the standard data set.
[0173] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 4 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0174] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0175] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0176] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0177] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0178] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0179] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0180] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0181] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0182] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for generating a user data profile, characterized in that: The method comprises: Acquire an original data set, perform a preprocessing operation on the original data set to obtain a standard data set, wherein the preprocessing includes deduplication processing, outlier processing, and missing value detection, and detect whether there are missing data values in the original data set after the outlier processing, and if the missing data values are detected, fill the missing data values by using a preset filling algorithm; Perform word segmentation on the text contained in the target information and remove stop words to obtain a word segmentation result, extract one or more keywords from the word segmentation result as risk information, obtain historical risk information in the standard data set, and when the risk information is the same as the historical risk information, determine that the risk information is a target factor; When a factor identical to the target factor is found in the preset database, the floating item corresponding to the found factor is determined as the floating item of the target factor, the floating target of the target factor is calculated using the floating item, and the floating targets are summarized to obtain a floating target set, wherein the floating target of the target factor is calculated using the floating item using the following formula: Among them, B i is the floating target of the i-th target factor, i is an integer greater than 0, is the corresponding floating term, a i is the i-th target factor, k is the number of floating items; Acquire the historical floating target set in the standard data set, calculate the average value of each historical floating target in the historical floating target set, obtain the historical floating target average value set, use a preset mapping relationship to match the floating target set with the historical floating target average value set, obtain the floating target and the historical floating target average value after successful matching, calculate the ratio result of each floating target and the corresponding historical floating target average value, obtain the preset data label, and obtain the data portrait according to the ratio result and the data label.
2. The method for generating a user data profile according to claim 1, characterized in that: The preset mapping relationship includes: (T·R):D→C or C=(T·R)(D) Among them, C represents the historical floating target average value set, T represents the classifier function of the floating target set, D represents the floating target set, and R represents the type semantic analysis function of the floating target set.
3. A user data profile generating device, characterized in that: The device comprises: A data processing module is used to obtain an original data set, perform preprocessing operations on the original data set to obtain a standard data set, wherein the preprocessing includes deduplication processing, outlier processing and missing value detection, and detect whether there are missing data values in the original data set after the outlier processing. If the missing data values are detected, the missing data values are filled by a preset filling algorithm; A factor extraction module is used to perform word segmentation processing on the text contained in the target information and remove stop words to obtain a word segmentation result, extract one or more keywords from the word segmentation result as risk information, obtain historical risk information in the standard data set, and when the risk information is the same as the historical risk information, determine that the risk information is a target factor; The factor calculation module is used to, when a factor identical to the target factor is found in a preset database, determine the floating item corresponding to the found factor as the floating item of the target factor, calculate the floating target of the target factor using the floating item, and summarize the floating targets to obtain a floating target set, wherein the floating target of the target factor is calculated using the floating item using the following formula: Among them, B i is the floating target of the i-th target factor, i is an integer greater than 0, is the corresponding floating term, a i is the i-th target factor, k is the number of floating items; A portrait generation module is used to obtain a set of historical floating targets in the standard data set, calculate the average value of each historical floating target in the historical floating target set, obtain a set of historical floating target average values, match the floating target set with the set of historical floating target average values using a preset mapping relationship, obtain the floating targets and historical floating target average values after successful matching, calculate the ratio result of each floating target and the corresponding historical floating target average value, obtain a preset data label, and obtain a data portrait based on the ratio result and the data label.
4. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the user data portrait generation method as described in any one of claims 1 to 2.
5. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for generating a user data portrait as described in any one of claims 1 to 2 is implemented.
