A form data push method and system based on associated objects
By obtaining user behavior data for user model pruning and correlation adaptation, the problem of inaccurate form data push caused by the lack of user data in traditional methods is solved, and more accurate user portraits and data push are achieved.
Patent Information
- Application Number
- CN202410961214.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-18
AI Technical Summary
Due to the lack of user data, traditional form data push methods are difficult to generate accurate and complete user portraits, resulting in inaccurate form data push.
By obtaining user behavior data, pruning the original user model, establishing an actual user model, and performing association adaptation in a large database based on the actual user model, filtering out form data that matches user characteristics and needs.
It improves the accuracy and effectiveness of form data push, ensures that the information received by users meets their real needs and preferences, and reduces the possibility of human error.
Smart Images

Figure CN118503546B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of big data analysis and processing, and in particular to a form data pushing method and system based on associated objects. Background Art
[0002] With the advancement of modern communication and dissemination technologies, such as radio, television, satellite communication, and electronic computer communication, the speed and breadth of information dissemination have been greatly improved, overcoming the traditional time and space barriers and further connecting the world. In today's era of information explosion, through accurate analysis of users and intelligent adaptation of form data, users can be provided with services that better meet their needs and preferences. This personalized big data adaptation service can enhance user satisfaction, improve data processing efficiency, and reduce the possibility of human errors. The traditional form data push method mainly measures the similarity and matching between user portraits and form data by establishing a matching model, and then finds the form data that best matches the user portrait through comparison and analysis.
[0003] However, the traditional form data push method is limited by the quality and quantity of user data. In order to generate an accurate and complete user portrait, it is necessary to collect a large amount of data about the user and conduct in-depth analysis and mining. In most cases, users directly input limited data for adaptation, making it difficult to generate an accurate and complete user portrait, resulting in inaccurate form data push. Summary of the invention
[0004] The present invention provides a form data push method and system based on associated objects, so as to solve the problem that it is difficult to generate a user portrait according to the user behavior data input in real time and realize the accurate push of form data.
[0005] In order to solve the above problems, the present invention provides a form data push method based on associated objects, comprising:
[0006] Obtain user behavior data;
[0007] The original user model is pruned according to the behavior data to obtain an actual user model; wherein the original user model is established within a preset cluster label range according to the feature points represented by each cluster center in the cluster scatter plot; the cluster scatter plot is established by clustering the basic information and interest preferences of the user, and using the features most relevant to the daily behavior data of the user to perform feature dimensionality reduction;
[0008] Establishing an actual user profile based on the core attributes and behavior patterns of the actual user model;
[0009] According to the actual user portrait, association adaptation is performed in a preset big database to obtain form data;
[0010] The form data is pushed to the user.
[0011] The present invention establishes an original user model based on the user's basic information and interest preferences, so that the original user model includes the user's common features, solving the problem of data scarcity caused by only inputting a small amount of immediate information; and the behavioral data input by the user in real time serves as an important guiding direction to guide the original user model to perform pruning processing. This method can identify the data information that the user currently needs most based on the behavioral data, and can also remove those features in the original user model that have little impact on user behavior or are redundant while retaining key information, simplify the model structure, and improve computing efficiency, which helps the model respond to user needs more quickly. Therefore, an actual user portrait is established based on the actual user model obtained after pruning, which can accurately reflect the user's current real needs and preferences. By associating and adapting the actual user portrait with the information in the large database, form data that highly matches the user's characteristics and needs can be screened out, which avoids pushing irrelevant or low-value information to the user, thereby improving the accuracy and effectiveness of data push.
[0012] Compared with the prior art, the present invention solves the defect of lack of user data by pre-establishing an original user model, and by giving play to the guiding role of behavioral data, prunes the original user model to generate an accurate and complete user portrait, thereby ensuring the validity of user features, and then obtains accurate form data through data association adaptation. Therefore, it is possible to solve the problem of difficulty in generating user portraits based on user behavior data input in real time and achieve accurate push of form data.
[0013] As a preferred solution, the original user model is pruned according to the behavior data to obtain the actual user model, specifically:
[0014] According to the coupling relationship between the parameter pairs, repeated groups in the original user model are removed to obtain a first user model;
[0015] According to the behavior data, obtaining a first list recording different levels of importance in the first user model;
[0016] Pruning channels in the first user model whose weights are less than a preset threshold according to the first list to obtain a second user model;
[0017] The second user model is fine-tuned based on the original user model to obtain the actual user model.
[0018] In this preferred solution, the coupling relationship between parameter pairs refers to the correlation between different parameters or attributes, which may represent various characteristics of users. When there is a high degree of correlation between these parameters, it may cause overlap or redundancy between user groups. Therefore, by removing duplicate groups, the model can be more finely organized.
[0019] As a preferred solution, according to the first list, channels in the first user model whose weights are less than a preset threshold are pruned to obtain a second user model, specifically:
[0020] In the convolution layer of the first user model, an importance average value of each channel is calculated according to the importance recorded in the first list;
[0021] Performing sparse training on the importance averages of the channels, so that the weights of the channels with the same or redundant functions in the first user model gradually tend to zero, and obtaining a training result;
[0022] According to the training result, channels whose weights are less than a preset threshold are pruned to obtain the second user model.
[0023] This preferred solution uses sparsity training to set the weights of unimportant channels to zero or close to zero during the training process of the model, so that it can determine which channels are redundant or unimportant, so as to perform pruning according to a preset threshold, thereby significantly reducing the complexity of the second user model.
[0024] As a preferred solution, the second user model is fine-tuned based on the original user model to obtain the actual user model, specifically:
[0025] Normalizing the first type of activation map of the original user model so that the first type of activation map becomes the attention distribution of the class;
[0026] Instructing the second user model to learn attention distribution of different categories according to the attention distribution of the class to obtain a third user model;
[0027] The actual user model is obtained by updating the network parameters of the third user model.
[0028] This preferred solution uses the class attention distribution to guide the learning of the second user model, so that the obtained third user model can focus more on the truly important parts of the user behavior or characteristics, so that the model can more accurately capture the different characteristics and needs of the user in subsequent predictions or analyses.
[0029] As a preferred solution, the actual user model is obtained by updating the network parameters of the third user model, specifically:
[0030] By defining the first type of activation map of the original user model as a target value and the second type of activation map of the third user model as a predicted value, a mean absolute error is calculated, and the mean absolute error is defined as a first loss function;
[0031] Obtaining a first probability distribution predicted by the original user model according to the data set, and obtaining a second probability distribution of the real labels in the data set;
[0032] Calculate a standard cross entropy loss according to the first probability distribution and the second probability distribution;
[0033] Generate a comprehensive loss function according to the first loss function and the standard cross entropy loss;
[0034] The actual user model is obtained by iteratively updating the network parameters of the third user model so that the comprehensive loss function converges.
[0035] This preferred solution generates a comprehensive loss function based on the first loss function and the standard cross entropy loss, which means that the optimization goal of this solution is to minimize this comprehensive error; the loss function is a key part used to guide model training in machine learning. It measures the gap between the model prediction value and the actual target value. Therefore, by minimizing the comprehensive loss function, the actual user model can be better adapted to the data, and the original user model can be learned to capture and explain the inherent laws of user data, thereby improving its generalization ability on future data.
[0036] As a preferred solution, according to the actual user portrait, association adaptation is performed in a preset large database to obtain form data, specifically:
[0037] According to the actual user portrait, with the goal of maximizing the degree of adaptation, an objective function is established based on the behavior data and the big database;
[0038] Establishing a data key node set according to the large database;
[0039] According to the objective function and the initial weight of the optimal data key node in the data key node set, the weights of all data key nodes in the data key node set are updated to obtain a first key node set;
[0040] According to the discrete state of each data key node in the first key node set, the weight of each data key node is updated to obtain a second key node set;
[0041] Acquire the first data with the largest weight in the second key node set, and define the first data as the form data;
[0042] Wherein, the objective function is:
[0043] ;
[0044] in, is the adaptation score of data t after the content is automatically adapted according to the behavior data, is the total number of data in the large database, represents the user preference score corresponding to data t, represents the content popularity index of the key data node s, o is the total number of key data nodes, is the scalability score corresponding to data t.
[0045] By combining actual user portraits and behavioral data, the objective function of this preferred solution can capture the user's unique preferences and needs, and aims to maximize the degree of adaptation, thereby ensuring that the recommended form data meets the user's personalized requirements; and the second key node set is an updated and optimized node set, which reflects which nodes have higher importance and influence under a given objective function, so that it can screen out the form data that best suits the user based on more accurate data and analysis results.
[0046] As a preferred solution, a data key node set is established according to the large database, specifically:
[0047] Acquire key nodes with information identification function of all data from the large database to obtain several key nodes;
[0048] Establishing an original key node set according to the plurality of key nodes;
[0049] According to the maximum value and the minimum value of the objective function, the weight of each node in the original key node set is initialized by linear interpolation to obtain the data key node set.
[0050] This preferred solution initializes weights by linear interpolation, which can ensure that each node in the original key node set has a certain weight in the initial state, rather than being completely equal or completely random. This helps to consider the role of each node more fairly in the subsequent optimization process, and avoids certain nodes being overly ignored or overly emphasized due to improper initial weight settings, resulting in data push errors.
[0051] As a preferred solution, according to the discrete state of each data key node in the first key node set, the weight of each data key node is updated to obtain the second key node set, which is specifically:
[0052] Establishing a distance function according to the weights of the first preset node pair in the first key node set when they are far away from each other, and establishing a proximity function according to the weights of the second preset node pair in the first key node set when they are close to each other;
[0053] The weights of all data key nodes in the first key node set are updated according to the distance function and the proximity function in a random probability generation manner to obtain the second key node set.
[0054] This preferred solution can simulate the interaction relationship between nodes and more accurately characterize the dynamic characteristics of nodes by establishing a moving away function and a moving closer function. When the nodes are moving away from each other, the moving away function determines the changing trend of the weight. When the nodes are moving closer to each other, the moving closer function takes effect. This dynamic adjustment helps to reflect the real-time changes in the interaction between nodes and expands the application scenarios.
[0055] As a preferred solution, an actual user portrait is established based on the core attributes and behavior patterns of the actual user model, specifically:
[0056] Establishing an initial user profile based on the core attributes and behavior patterns of the actual user model;
[0057] If the degree of match between the behavior data and the descriptive label attribute generated according to the behavior classification in the initial user portrait is greater than a preset threshold, the corresponding behavior classification in the initial user portrait is updated according to the behavior data to obtain the actual user portrait.
[0058] This preferred solution is to obtain the degree of match by comparing the behavioral data with the descriptive label attributes based on behavioral classification in the initial user portrait. If the degree of match is greater than a preset threshold, the latest behavioral data is used to update the initial user portrait, thereby obtaining an actual user portrait that is closer to the user's actual situation, ensuring that the actual user portrait can more accurately reflect the user's current status and behavioral characteristics.
[0059] The present invention also provides a form data push system based on associated objects, including a data module, a pruning module, a portrait module, an associated module and a push module;
[0060] Wherein, the data module is used to obtain user behavior data;
[0061] The pruning module is used to prune the original user model according to the behavior data to obtain an actual user model; wherein the original user model is established within a preset cluster label range based on the feature points represented by each cluster center in the cluster scatter plot; the cluster scatter plot is established by performing cluster analysis on the basic information and interest preferences of the user, and performing feature dimensionality reduction using the features most relevant to the daily behavior data of the user;
[0062] The portrait module is used to establish an actual user portrait based on the core attributes and behavior patterns of the actual user model;
[0063] The association module is used to perform association adaptation in a preset big database according to the actual user portrait to obtain form data;
[0064] The push module is used to push the form data to the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a flowchart of a form data push method based on an associated object provided in an embodiment of the present application;
[0066] Figure 2 It is a structural diagram of a form data push system based on associated objects provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0068] In the description of the present application, it should be understood that the terms "first", "second" and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first", "second" and "third" may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, "several" means two or more.
[0069] A form data push method based on associated objects provided in an embodiment of the present application is mainly used in situations where it is necessary to select adapted form data based on user profiles according to behavioral data input by the user to achieve accurate form push.
[0070] Embodiment 1:
[0071] See also Figure 1 The embodiment of the present invention provides a form data push method based on an associated object, including S1 to S4, and the specific implementation steps are as follows:
[0072] S1. Obtain user behavior data.
[0073] Step S1 of the embodiment of the present application is specifically as follows:
[0074] Obtain user behavior data; behavior data refers to the data information that users input into a system, application or platform.
[0075] S2. Prune the original user model according to the behavioral data to obtain the actual user model; wherein the original user model is established within the preset cluster label range based on the feature points represented by each cluster center in the cluster scatter plot; the cluster scatter plot is established by clustering the user's basic information and interest preferences, and using the features most relevant to the user's daily behavioral data to perform feature dimensionality reduction.
[0076] Step S2 of the embodiment of the present application includes S2.1 to S2.4, specifically:
[0077] S2.1. In the original user model, the coupling relationship between parameter pairs is obtained according to the local dependency relationship between adjacent layers;
[0078] According to the coupling relationship between the parameter pairs, repeated groups in the original user model are removed to obtain a first user model;
[0079] Obtaining, based on the behavior data, a first list recording different levels of importance in the first user model;
[0080] Among them, the original user model is established as follows:
[0081] Obtain the user's occupational and educational background, basic information, interest preferences, and daily behavior data; among which, occupational and educational background includes the user's occupational category, education level, and professional background; basic information includes the user's name, age, and gender; interest preferences include the user's attention to specific topics, news, or daily reports; and daily behavior data includes the user's browsing history, search behavior, and click records on historical platforms;
[0082] Clean and normalize the user's occupation and education background, basic information, interest preferences, and daily behavior data to obtain a comprehensive data set;
[0083] In the comprehensive data set, the features most relevant to daily behavior are used to reduce the dimensionality of the remaining features to reduce the redundant information and noise level in the comprehensive data, thus obtaining a transitional data set;
[0084] Use the K-means clustering algorithm to perform cluster analysis on the transition data set to obtain clustering results; draw a cluster scatter plot on a two-dimensional plane based on the transition data set and the clustering results, and color each data point according to the cluster to which it belongs to obtain the final cluster scatter plot;
[0085] Within the preset clustering label range, the original user model is established according to the characteristic points represented by each cluster center in the clustering scatter plot; wherein the clustering label range is obtained by forming the identification range of different clusters or groups in the clustering process, and then dividing the identification range according to the behavioral data.
[0086] In embodiment S2.1 of the present application, the coupling relationship between parameter pairs refers to the correlation between different parameters or attributes, which may represent various characteristics of users. When there is a high correlation between these parameters, it may cause overlap or redundancy between user groups. Therefore, by removing duplicate groups, the model can be organized more finely.
[0087] S2.2. In the convolution layer of the first user model, calculate the importance average of each channel according to the importance recorded in the first list;
[0088] The average importance value of each channel is sparsely trained so that the weights of the channels with the same or redundant functions in the first user model gradually tend to zero, and the training result is obtained; specifically, in the original user model, the loss function L is generated according to the loss of the original task and the regularization term L1 regularization (i.e., the sum of the absolute values of the weights); with the goal of minimizing the loss function L, the SGD optimization algorithm is used to train the average importance value of each channel, so that the weights of the channels with the same or redundant functions in the first user model gradually tend to zero, and the training result is obtained;
[0089] According to the training results, channels whose weights are less than a preset threshold are pruned to obtain a second user model.
[0090] Embodiment S2.2 of the present application uses sparsity training to enable the model to set the weights of unimportant channels to zero or close to zero during the training process, thereby being able to determine which channels are redundant or unimportant so as to perform pruning according to preset thresholds, thereby significantly reducing the complexity of the second user model.
[0091] S2.3, normalizing the first-class activation map of the original user model so that the first-class activation map becomes the attention distribution of the class;
[0092] According to the attention distribution of the class, the second user model is guided to learn the attention distribution of different categories to obtain the third user model;
[0093] By defining the first type of activation map of the original user model as the target value and the second type of activation map of the third user model as the predicted value, the mean absolute error is calculated, and the mean absolute error is defined as the first loss function;
[0094] Obtain a first probability distribution predicted by the original user model according to the data set, and obtain a second probability distribution of the true label in the data set;
[0095] The standard cross entropy loss is calculated based on the first probability distribution and the second probability distribution;
[0096] Generate a comprehensive loss function based on the first loss function and the standard cross entropy loss;
[0097] Embodiment S2.3 of the present application uses the attention distribution of the class to guide the learning of the second user model, so that the obtained third user model can be more focused on the truly important parts of the user's behavior or characteristics, so that the model can more accurately capture the different characteristics and needs of the user in subsequent predictions or analyses;
[0098] Moreover, a comprehensive loss function is generated according to the first loss function and the standard cross entropy loss, which means that the optimization goal of this scheme is to minimize this comprehensive error. As a key part used to guide model training in machine learning, the loss function measures the gap between the model prediction value and the actual target value. Therefore, by minimizing the comprehensive loss function, the actual user model can be better adapted to the data, and the original user model can be learned to capture and explain the inherent laws of user data, thereby improving its generalization ability on future data.
[0099] S2.4. Input the preset training data into the third user model to obtain the predicted output of the third user model; use the loss function to calculate the loss value between the predicted output and the true label;
[0100] Calculate the gradient according to the loss value, propagate the gradient from the output layer back to the input layer; and update the parameters of the third user model using the optimization algorithm according to the gradient;
[0101] After a preset number of update iterations, the performance of the third user model is evaluated using a preset validation set to ensure that the model is not overfitting or underfitting; if overfitting or underfitting occurs, the situation is resolved by controlling the learning rate decay;
[0102] If the rate of decrease of the loss value on the validation set in several consecutive iterations is less than the preset rate, it is considered that the comprehensive loss function has converged and the actual user model is obtained.
[0103] In Example S2.4 of the present application, a larger learning rate can help the model converge quickly to a relatively good area. As the training progresses, gradually reducing the learning rate can make the model show better fine-tuning ability when approaching the optimal solution, avoiding excessive fluctuations near the optimal solution, thereby helping to solve the underfitting problem.
[0104] S3. Establish actual user portraits based on the core attributes and behavior patterns of the actual user model.
[0105] Step S3 of the embodiment of the present application is specifically as follows:
[0106] Establish initial user profiles based on the core attributes and behavior patterns of the actual user model;
[0107] Map the behavior data to the behavior classification labels in the initial user portrait;
[0108] Convert the user's behavior data and initial user portrait label into a numerical vector, obtain a behavior data vector and an initial user portrait label vector, and normalize the behavior data vector and the initial user portrait label vector;
[0109] The cosine similarity value is calculated based on the dot product of the behavior data vector and the initial user portrait label vector, as well as their respective lengths;
[0110] If the cosine similarity value is not within the preset threshold, the corresponding behavior classification in the initial user portrait is updated according to the behavior data to obtain the actual user portrait.
[0111] Embodiment S3 of the present application is to obtain a cosine similarity value by comparing the behavior data with the descriptive label attributes based on the behavior classification in the initial user portrait. If the cosine similarity value is not within the preset threshold, the initial user portrait is updated with the latest behavior data to obtain an actual user portrait that is closer to the user's real situation, thereby ensuring that the actual user portrait can more accurately reflect the user's current status and behavior characteristics.
[0112] S4. According to the actual user portrait, association adaptation is performed in the preset big database to obtain the form data.
[0113] Step S4 of the embodiment of the present application includes S4.1 to S4.2, specifically:
[0114] S4.1. Based on the actual user portrait, aiming at maximizing the degree of adaptation, establish the objective function based on behavioral data and large database ;
[0115] Obtain all key nodes with information identification function from the big database, and obtain several key nodes;
[0116] Establishing an original key node set according to a number of key nodes;
[0117] According to the objective function The maximum and minimum values of are used to initialize the weights of each node in the original key node set by linear interpolation to obtain the data key node set;
[0118] Among them, the objective function is:
[0119] ;
[0120] in, is the adaptation score of data t after the content is automatically adapted according to the behavioral data, is the total number of data in the large database, represents the user preference score corresponding to data t, represents the content popularity index of the key data node s, o is the total number of key data nodes, is the scalability score corresponding to data t; and the data key node s belongs to data t;
[0121] Among them, the adaptation score is:
[0122] ;
[0123] User preference scores are:
[0124] ;
[0125] The scalability scores are:
[0126] ;
[0127] in, is the total number of key data nodes of data t, For key nodes The probability of overlap between key data nodes and behavioral data; is the natural transition probability between data logic segments of data t and behavioral data;
[0128] is the search frequency of user's historical search data t, Content retention rate for users who continue to pay attention to data t; is a coefficient that adjusts the relative weight between search frequency and content retention rate;
[0129] is the key node of data t The degree of data integration, is the key node of data t The number of times the structure is repeated, is the key node of data t The query frequency.
[0130] Embodiment S4.1 of the present application initializes weights by linear interpolation, which can ensure that each node in the original key node set has a certain weight in the initial state, rather than being completely equal or completely random. This helps to consider the role of each node more fairly in the subsequent optimization process, and avoid certain nodes being overly ignored or over-emphasized due to improper initial weight setting, resulting in data push errors.
[0131] S4.2. According to the objective function and the initial weight of the optimal data key node in the data key node set, updating the weights of all data key nodes in the data key node set to obtain the first key node set;
[0132] A distance function is established according to the weights of the first preset node pair in the first key node set when they are far away from each other. , and establish a close function according to the weight of the second preset node pair when they are close to each other in the first key node set ;
[0133] According to the random probability generation method, according to the distance function and close to functional Iteratively update the weights of all data key nodes in the first key node set to obtain a second key node set;
[0134] Acquire the first data with the largest weight in the second key node set, and define the first data as form data;
[0135] Among them, the away function is:
[0136] ;
[0137] The close function is:
[0138] ;
[0139] in, represents the weight of the current key node, and They correspond to the horizontal and vertical coordinates of the current key node in the first key node set, respectively. is a random number between [0,1], is a preset constant, is the current iteration number, represents the maximum number of iterations, is the j-th dimension value close to the type node.
[0140] Embodiment S4.2 of the present application can simulate the interaction relationship between nodes and more accurately characterize the dynamic characteristics of nodes by establishing a moving away function and a moving closer function. When the nodes are moving away from each other, the moving away function determines the changing trend of the weight. When the nodes are moving closer to each other, the moving closer function takes effect. This dynamic adjustment helps to reflect the real-time changes in the interaction between nodes and expands the application scenarios of this solution.
[0141] From a holistic perspective, in Example S4 of the present application, by combining actual user portraits and behavioral data, the objective function can capture the user's unique preferences and needs, and with the goal of maximizing the degree of adaptation, it can ensure that the recommended form data meets the user's personalized requirements; and the second key node set is an updated and optimized node set, which reflects which nodes have higher importance and influence under a given objective function, so that it can screen out the form data that best suits the user based on more accurate data and analysis results.
[0142] S5. Push the form data to the user.
[0143] Step S5 of the embodiment of the present application is specifically as follows:
[0144] Use front-end frameworks (such as React, Vue) to build form interfaces;
[0145] Verify the form data to ensure the integrity and accuracy of the data; if the form data is incomplete, index the key data nodes in the form data in the big database to obtain the corresponding complete data to repair the form data;
[0146] Generate complete target data information based on the form interface and form data;
[0147] Use search engines to directly push target data information to users, or push target data information to users by sending emails, SMS notifications, in-app message displays, or API calls.
[0148] In embodiment S5 of the present application, if the form data is incomplete, manually supplementing this data will consume a lot of time and manpower. Therefore, by utilizing the information recognition function of key data nodes, indexing and searching in a large database are performed to obtain complete original data for data repair, thereby ensuring the integrity of the data and guaranteeing the validity of the data.
[0149] Overall, this embodiment has the following beneficial effects:
[0150] After acquiring the functional nodes, the present invention executes these nodes in a predetermined order or logic. The execution of these functional nodes usually involves processing, conversion or operation of data to ensure that the data can flow between different systems or applications in an expected manner. When the import node is executed, it means that it is necessary to start preparing to import the target data into the target application. During the processing of the import node, the content in the target data is converted into a suitable import format according to the requirements of the target application to ensure that the structure and content of the data meet the expectations of the target application. Position coding is the position identifier of each element or record in the data relative to the entire data set. Using position coding to reasonably divide and concurrently import the first data set can ensure that each batch of data can be completely and accurately imported into the target application; at the same time, since each batch is relatively independent, even if a batch has problems during the import process, it will not affect the normal import of other batches. This method helps to ensure the integrity and accuracy of the data and reduces the risk of data loss or damage.
[0151] Embodiment 2:
[0152] See also Figure 2 , an embodiment of the present invention provides a form data push system based on associated objects, including a data module 10, a pruning module 20, a portrait module 30, an associated module 40 and a push module 50;
[0153] Wherein, the data module 10 is used to obtain the user's behavior data;
[0154] The pruning module 20 is used to prune the original user model according to the behavior data to obtain the actual user model; wherein the original user model is established within the preset cluster label range according to the feature points represented by each cluster center in the cluster scatter diagram; the cluster scatter diagram is established by clustering the basic information and interest preferences of the user, and using the features most relevant to the daily behavior data of the user to perform feature dimensionality reduction;
[0155] A portrait module 30, used to establish an actual user portrait based on the core attributes and behavior patterns of the actual user model;
[0156] The association module 40 is used to perform association adaptation in a preset big database according to the actual user portrait to obtain form data;
[0157] The push module 50 is used to push the form data to the user.
[0158] In one embodiment, the data module 10 is specifically:
[0159] Obtain user behavior data; behavior data refers to the data information that users input into a system, application or platform.
[0160] In one embodiment, the pruning module 20 includes a model unit, a training unit, a function unit, and a loss unit;
[0161] The model unit is used to obtain the coupling relationship between parameter pairs according to the local dependency relationship between adjacent layers in the original user model;
[0162] The model unit is further used to remove repeated groups in the original user model according to the coupling relationship between the parameter pairs to obtain a first user model;
[0163] The model unit is further used to obtain a first list recording different levels of importance in the first user model according to the behavior data;
[0164] Among them, the original user model is established as follows:
[0165] Obtain the user's occupational and educational background, basic information, interest preferences, and daily behavior data; among which, occupational and educational background includes the user's occupational category, education level, and professional background; basic information includes the user's name, age, and gender; interest preferences include the user's attention to specific topics, news, or daily reports; and daily behavior data includes the user's browsing history, search behavior, and click records on historical platforms;
[0166] Clean and normalize the user's occupation and education background, basic information, interest preferences, and daily behavior data to obtain a comprehensive data set;
[0167] In the comprehensive data set, the features most relevant to daily behavior are used to reduce the dimensionality of the remaining features to reduce the redundant information and noise level in the comprehensive data, thus obtaining a transitional data set;
[0168] Use the K-means clustering algorithm to perform cluster analysis on the transition data set to obtain clustering results; draw a cluster scatter plot on a two-dimensional plane based on the transition data set and the clustering results, and color each data point according to the cluster to which it belongs to obtain the final cluster scatter plot;
[0169] Within the preset clustering label range, the original user model is established according to the characteristic points represented by each cluster center in the clustering scatter plot; wherein the clustering label range is obtained by forming the identification range of different clusters or groups in the clustering process, and then dividing the identification range according to the behavioral data.
[0170] In the model unit of the embodiment of the present application, the coupling relationship between parameter pairs refers to the correlation between different parameters or attributes, which may represent various characteristics of users. When there is a high correlation between these parameters, it may cause overlap or redundancy between user groups. Therefore, by removing duplicate groups, the model can be organized more finely.
[0171] A training unit, configured to calculate, in a convolutional layer of the first user model, an average importance value of each channel according to the importance values recorded in the first list;
[0172] The training unit is further used to perform sparsity training on the average importance value of each channel, so that the weights of the channels with the same or redundant functions in the first user model gradually tend to zero, and obtain a training result; specifically, in the original user model, a loss function L is generated according to the loss of the original task and the regularization term L1 regularization (that is, the sum of the absolute values of the weights); with the goal of minimizing the loss function L, the SGD optimization algorithm is used to train the average importance value of each channel, so that the weights of the channels with the same or redundant functions in the first user model gradually tend to zero, and obtain a training result;
[0173] The training unit is further used to prune channels whose weights are less than a preset threshold according to the training results to obtain a second user model.
[0174] The training unit of the embodiment of the present application uses sparsity training to enable the model to set the weights of unimportant channels to zero or close to zero during the training process, so that it can determine which channels are redundant or unimportant, so as to perform pruning according to preset thresholds, thereby significantly reducing the complexity of the second user model.
[0175] A function unit, used for normalizing the first-class activation map of the original user model so that the first-class activation map becomes the attention distribution of the class;
[0176] The function unit is further used to guide the second user model to learn the attention distribution of different categories according to the attention distribution of the class to obtain the third user model;
[0177] The function unit is further used to calculate a mean absolute error by defining a first type of activation map of the original user model as a target value and a second type of activation map of the third user model as a predicted value, and define the mean absolute error as a first loss function;
[0178] The function unit is further used to obtain a first probability distribution predicted by the original user model according to the data set, and to obtain a second probability distribution of the true label in the data set;
[0179] The function unit is further used to calculate a standard cross entropy loss according to the first probability distribution and the second probability distribution;
[0180] The function unit is further used to generate a comprehensive loss function according to the first loss function and the standard cross entropy loss;
[0181] The function unit of the embodiment of the present application guides the learning of the second user model by using the attention distribution of the class, so that the obtained third user model can be more focused on the truly important part of the user behavior or characteristics, so that the model can more accurately capture the different characteristics and needs of the user in subsequent predictions or analysis;
[0182] Moreover, a comprehensive loss function is generated according to the first loss function and the standard cross entropy loss, which means that the optimization goal of this scheme is to minimize this comprehensive error. As a key part used to guide model training in machine learning, the loss function measures the gap between the model prediction value and the actual target value. Therefore, by minimizing the comprehensive loss function, the actual user model can be better adapted to the data, and the original user model can be learned to capture and explain the inherent laws of user data, thereby improving its generalization ability on future data.
[0183] A loss unit, used to input preset training data into the third user model to obtain a predicted output of the third user model; and use a loss function to calculate a loss value between the predicted output and a true label;
[0184] The loss unit is further used to calculate a gradient according to the loss value, propagate the gradient from the output layer back to the input layer; and update the parameters of the third user model using an optimization algorithm according to the gradient;
[0185] The loss unit is further used to evaluate the performance of the third user model using a preset validation set after a preset number of update iterations to ensure that the model is not overfitting or underfitting; if overfitting or underfitting occurs, the situation is solved by controlling the learning rate decay;
[0186] The loss unit is also used to determine that the comprehensive loss function has converged and the actual user model is obtained if the loss value on the validation set decreases at a rate less than a preset rate in several consecutive iterations.
[0187] In the loss unit of the embodiment of the present application, a larger learning rate can help the model converge quickly to a relatively good area. As the training progresses, gradually reducing the learning rate can make the model show better fine-tuning ability when approaching the optimal solution, avoiding excessive fluctuations near the optimal solution, thereby helping to solve the underfitting problem.
[0188] In one embodiment, the portrait module 30 is specifically:
[0189] Establish initial user profiles based on the core attributes and behavior patterns of the actual user model;
[0190] Map the behavior data to the behavior classification labels in the initial user portrait;
[0191] Convert the user's behavior data and initial user portrait label into a numerical vector, obtain a behavior data vector and an initial user portrait label vector, and normalize the behavior data vector and the initial user portrait label vector;
[0192] The cosine similarity value is calculated based on the dot product of the behavior data vector and the initial user portrait label vector, as well as their respective lengths;
[0193] If the cosine similarity value is not within the preset threshold, the corresponding behavior classification in the initial user portrait is updated according to the behavior data to obtain the actual user portrait.
[0194] The portrait module 30 of the embodiment of the present application obtains a cosine similarity value by comparing the behavioral data with the descriptive label attributes based on the behavioral classification in the initial user portrait. If the cosine similarity value is not within the preset threshold, the latest behavioral data is used to update the initial user portrait, thereby obtaining an actual user portrait that is closer to the user's actual situation, which can ensure that the actual user portrait can more accurately reflect the user's current status and behavioral characteristics.
[0195] In one embodiment, the association module 40 includes a node unit and an update unit;
[0196] Among them, the node unit is used to establish the objective function based on the actual user portrait, with the goal of maximizing the degree of adaptation, and based on the behavioral data and the large database. ;
[0197] The node unit is also used to obtain all the key nodes with information identification function from the large database to obtain several key nodes;
[0198] The node unit is also used to establish an original key node set based on a number of key nodes;
[0199] Node units are also used to The maximum and minimum values of are used to initialize the weights of each node in the original key node set by linear interpolation to obtain the data key node set;
[0200] Among them, the objective function is:
[0201] ;
[0202] in, is the adaptation score of data t after the content is automatically adapted according to the behavioral data, is the total number of data in the large database, represents the user preference score corresponding to data t, represents the content popularity index of the key data node s, o is the total number of key data nodes, is the scalability score corresponding to data t; and the data key node s belongs to data t;
[0203] Among them, the adaptation score is:
[0204] ;
[0205] User preference scores are:
[0206] ;
[0207] The scalability scores are:
[0208] ;
[0209] in, is the total number of key data nodes of data t, For key nodes The probability of overlap between key data nodes and behavioral data; is the natural transition probability between data logic segments of data t and behavioral data;
[0210] is the search frequency of user's historical search data t, Content retention rate for users who continue to pay attention to data t; is a coefficient that adjusts the relative weight between search frequency and content retention rate;
[0211] is the key node of data t The degree of data integration, is the key node of data t The number of times the structure is repeated, is the key node of data t The query frequency.
[0212] The node units in the embodiment of the present application initialize weights by linear interpolation, which can ensure that each node in the original key node set has a certain weight in the initial state, rather than being completely equal or completely random. This helps to consider the role of each node more fairly in the subsequent optimization process, and avoid certain nodes being overly ignored or overly emphasized due to improper initial weight settings, resulting in data push errors.
[0213] Update unit, used to update the and the initial weight of the optimal data key node in the data key node set, updating the weights of all data key nodes in the data key node set to obtain the first key node set;
[0214] The updating unit is further used to establish a distance function according to the weights of the first preset node pair in the first key node set when they are far away from each other. , and establish a close function according to the weight of the second preset node pair when they are close to each other in the first key node set ;
[0215] The update unit is also used to generate according to the random probability, according to the distance function and close to functional Iteratively update the weights of all data key nodes in the first key node set to obtain a second key node set;
[0216] The updating unit is further used to obtain the first data with the largest weight in the second key node set, and define the first data as form data;
[0217] Among them, the away function is:
[0218] ;
[0219] The close function is:
[0220] ;
[0221] in, represents the weight of the current key node, and They correspond to the horizontal and vertical coordinates of the current key node in the first key node set, respectively. is a random number between [0,1], is a preset constant, is the current iteration number, represents the maximum number of iterations, is the j-th dimension value close to the type node.
[0222] The update unit of the embodiment of the present application can simulate the interaction relationship between nodes and more accurately characterize the dynamic characteristics of the nodes by establishing a moving away function and a moving closer function. When the nodes are moving away from each other, the moving away function determines the changing trend of the weight; when the nodes are moving closer to each other, the moving closer function takes effect. This dynamic adjustment helps to reflect the real-time changes in the interaction between nodes and expands the application scenarios of the present solution.
[0223] From a holistic perspective, the association module 40 of the embodiment of the present application combines actual user portraits and behavioral data, and the objective function can capture the user's unique preferences and needs, and aims to maximize the degree of adaptation, thereby ensuring that the recommended form data meets the user's personalized requirements; and the second key node set is an updated and optimized node set, which reflects which nodes have higher importance and influence under a given objective function, so that it can filter out the form data that is most suitable for the user based on more accurate data and analysis results.
[0224] In one embodiment, the push module 50 is specifically:
[0225] Use front-end frameworks (such as React, Vue) to build form interfaces;
[0226] Verify the form data to ensure the integrity and accuracy of the data; if the form data is incomplete, index the key data nodes in the form data in the big database to obtain the corresponding complete data to repair the form data;
[0227] Generate complete target data information based on the form interface and form data;
[0228] Use search engines to directly push target data information to users, or push target data information to users by sending emails, SMS notifications, in-app message displays, or API calls.
[0229] In the push module 50 of the embodiment of the present application, if the form data is incomplete, manually supplementing this data will consume a lot of time and manpower. Therefore, by utilizing the information recognition function of key data nodes, indexing and searching in a large database are performed to obtain complete original data for data repair, thereby ensuring the integrity of the data and guaranteeing the validity of the data.
[0230] Overall, this embodiment has the following beneficial effects:
[0231] After acquiring the functional nodes, the present invention executes these nodes in a predetermined order or logic. The execution of these functional nodes usually involves processing, conversion or operation of data to ensure that the data can flow between different systems or applications in an expected manner. When the import node is executed, it means that it is necessary to start preparing to import the target data into the target application. During the processing of the import node, the content in the target data is converted into a suitable import format according to the requirements of the target application to ensure that the structure and content of the data meet the expectations of the target application. Position coding is the position identifier of each element or record in the data relative to the entire data set. Using position coding to reasonably divide and concurrently import the first data set can ensure that each batch of data can be completely and accurately imported into the target application; at the same time, since each batch is relatively independent, even if a batch has problems during the import process, it will not affect the normal import of other batches. This method helps to ensure the integrity and accuracy of the data and reduces the risk of data loss or damage.
[0232] Embodiment three:
[0233] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the form data push method based on the associated object;
[0234] Wherein, the form data push method based on the associated object, if implemented in the form of a software functional unit and used as an independent product, can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0235] The above are preferred embodiments of the present invention. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A form data push method based on associated objects, characterized in that: include: Obtain user behavior data; The original user model is pruned according to the behavior data to obtain an actual user model; wherein the original user model is established within a preset cluster label range according to the feature points represented by each cluster center in the cluster scatter plot; the cluster scatter plot is established by clustering the basic information and interest preferences of the user, and using the features most relevant to the daily behavior data of the user to perform feature dimensionality reduction; Establishing an actual user profile based on the core attributes and behavior patterns of the actual user model; According to the actual user portrait, association adaptation is performed in a preset big database to obtain form data; Pushing the form data to the user; The original user model is pruned according to the behavior data to obtain the actual user model, specifically: according to the coupling relationship between the parameter pairs, the repeated groups in the original user model are removed to obtain the first user model; according to the behavior data, a first list recording the importance of different levels in the first user model is obtained; according to the first list, channels in the first user model whose weights are less than a preset threshold are pruned to obtain the second user model; based on the original user model, the second user model is fine-tuned to obtain the actual user model; Among them, the second user model is fine-tuned based on the original user model to obtain the actual user model, specifically: the first type of activation map of the original user model is normalized to convert the first type of activation map into the attention distribution of the class; the second user model is guided to learn the attention distribution of different categories according to the attention distribution of the class to obtain the third user model; the actual user model is obtained by updating the network parameters of the third user model.
2. A form data push method based on associated objects as claimed in claim 1, characterized in that: According to the first list, channels in the first user model whose weights are less than a preset threshold are pruned to obtain a second user model, specifically: In the convolution layer of the first user model, an importance average value of each channel is calculated according to the importance recorded in the first list; Performing sparse training on the importance averages of the channels, so that the weights of the channels with the same or redundant functions in the first user model gradually tend to zero, and obtaining a training result; According to the training result, channels whose weights are less than a preset threshold are pruned to obtain the second user model.
3. A form data push method based on associated objects as claimed in claim 1, characterized in that: The actual user model is obtained by updating the network parameters of the third user model, specifically: By defining the first type of activation map of the original user model as a target value and the second type of activation map of the third user model as a predicted value, a mean absolute error is calculated, and the mean absolute error is defined as a first loss function; Obtaining a first probability distribution predicted by the original user model according to the data set, and obtaining a second probability distribution of the real labels in the data set; Calculate a standard cross entropy loss according to the first probability distribution and the second probability distribution; Generate a comprehensive loss function according to the first loss function and the standard cross entropy loss; The actual user model is obtained by iteratively updating the network parameters of the third user model so that the comprehensive loss function converges.
4. A form data push method based on associated objects as claimed in claim 1, characterized in that: According to the actual user portrait, association adaptation is performed in the preset big database to obtain form data, specifically: According to the actual user portrait, with the goal of maximizing the degree of adaptation, an objective function is established based on the behavior data and the big database; Establishing a data key node set according to the large database; According to the objective function and the initial weight of the optimal data key node in the data key node set, the weights of all data key nodes in the data key node set are updated to obtain a first key node set; According to the discrete state of each data key node in the first key node set, the weight of each data key node is updated to obtain a second key node set; Acquire the first data with the largest weight in the second key node set, and define the first data as the form data; Wherein, the objective function is: ; in, is the adaptation score of data t after the content is automatically adapted according to the behavior data, is the total number of data in the large database, represents the user preference score corresponding to data t, represents the content popularity index of the key data node s, o is the total number of key data nodes, is the scalability score corresponding to data t.
5. A form data push method based on associated objects as claimed in claim 4, characterized in that: A data key node set is established based on the large database, specifically: Acquire key nodes with information identification function of all data from the large database to obtain several key nodes; Establishing an original key node set according to the plurality of key nodes; According to the maximum value and the minimum value of the objective function, the weight of each node in the original key node set is initialized by linear interpolation to obtain the data key node set.
6. A form data push method based on associated objects as claimed in claim 4, characterized in that: According to the discrete state of each data key node in the first key node set, the weight of each data key node is updated to obtain a second key node set, which is specifically: Establishing a distance function according to the weights of the first preset node pair in the first key node set when they are far away from each other, and establishing a proximity function according to the weights of the second preset node pair in the first key node set when they are close to each other; The weights of all data key nodes in the first key node set are updated according to the distance function and the proximity function in a random probability generation manner to obtain the second key node set.
7. A form data push method based on associated objects as claimed in claim 4, characterized in that: Based on the core attributes and behavior patterns of the actual user model, an actual user profile is established, specifically: Establishing an initial user profile based on the core attributes and behavior patterns of the actual user model; If the degree of match between the behavior data and the descriptive label attribute generated according to the behavior classification in the initial user portrait is greater than a preset threshold, the corresponding behavior classification in the initial user portrait is updated according to the behavior data to obtain the actual user portrait.
8. A form data push system based on associated objects, characterized in that: It includes data module, pruning module, image module, association module and push module; Wherein, the data module is used to obtain user behavior data; The pruning module is used to prune the original user model according to the behavior data to obtain an actual user model; wherein the original user model is established within a preset cluster label range based on the feature points represented by each cluster center in the cluster scatter plot; the cluster scatter plot is established by performing cluster analysis on the basic information and interest preferences of the user, and performing feature dimensionality reduction using the features most relevant to the daily behavior data of the user; The portrait module is used to establish an actual user portrait based on the core attributes and behavior patterns of the actual user model; The association module is used to perform association adaptation in a preset big database according to the actual user portrait to obtain form data; The push module is used to push the form data to the user; The original user model is pruned according to the behavior data to obtain the actual user model, specifically: according to the coupling relationship between the parameter pairs, the repeated groups in the original user model are removed to obtain the first user model; according to the behavior data, a first list recording the importance of different levels in the first user model is obtained; according to the first list, channels in the first user model whose weights are less than a preset threshold are pruned to obtain the second user model; based on the original user model, the second user model is fine-tuned to obtain the actual user model; Among them, the second user model is fine-tuned based on the original user model to obtain the actual user model, specifically: the first type of activation map of the original user model is normalized to convert the first type of activation map into the attention distribution of the class; the second user model is guided to learn the attention distribution of different categories according to the attention distribution of the class to obtain the third user model; the actual user model is obtained by updating the network parameters of the third user model.
