Method for constructing e-commerce user portrait based on big data

Through multi-data source preprocessing and feature fusion, combined with hidden Markov models and K-means clustering, the problem of incomplete data and insufficient timeliness in the construction of user profiles is solved, and accurate and dynamic updates of user profiles are achieved, improving It improves the personalized recommendations and marketing effects of e-commerce platforms.

CN118485464BActive Publication Date: 2024-10-11山东怡然信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410946336.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-11
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

The existing technology has problems in the construction of user portraits, such as imperfect data collection and preprocessing, single feature extraction methods, and the inability of interest point migration detection and change modeling to dynamically capture changes in user interests, resulting in insufficient accuracy and timeliness of user portraits.

Method used

Adopt a method based on big data to obtain user data from multiple data sources for preprocessing, extract feature vectors of basic information, behavioral characteristics, interest preferences and social relationships, perform data fusion and interest point migration detection, and use hidden Markov models Model changes in interest points, combine with K-means clustering to generate user portraits, and update them in real time.

Benefits of technology

It significantly improves the accuracy and timeliness of user portraits, provides more accurate personalized recommendations and precision marketing support, and improves the user experience and operational efficiency of the e-commerce platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118485464B_ABST
    Figure CN118485464B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of e-commerce technology, and in particular to a method for constructing an e-commerce user portrait based on big data, comprising the following steps: S1, data collection and preprocessing: obtaining user data from multiple data sources; S2, feature extraction: extracting multiple feature vectors reflecting user characteristics from the preprocessed user data; S3, data fusion: fusing the extracted multiple feature vectors; S4, interest point migration detection: analyzing the changes in user interests in different time periods and generating interest migration features; S5, user clustering and portrait generation: clustering analysis of the integrated user features after fusion; S6, portrait update: real-time monitoring of user data; S7, portrait application: applying the generated user portrait to the scene. The present invention helps the e-commerce platform to achieve more accurate personalized recommendations and marketing strategies, and improve user experience and operational efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of e-commerce, and in particular to a method for constructing e-commerce user portraits based on big data. Background Art

[0002] With the rapid development of e-commerce, e-commerce platforms have accumulated a large amount of user data, including transaction data, user behavior data, social media data, geographic location data, and device information. These data provide rich materials for the construction of user portraits, which can help e-commerce platforms better understand user needs and achieve personalized recommendations and precision marketing. However, how to extract valuable information from massive data and accurately construct user portraits has become an important challenge facing e-commerce platforms.

[0003] There are some shortcomings in the existing technology in constructing user portraits. First, data collection and preprocessing are not perfect, and there are often problems with incomplete and inconsistent data, which affects the accuracy of user portraits. Secondly, the feature extraction and data fusion methods are single, and they fail to fully utilize the advantages of multi-source heterogeneous data and cannot fully reflect the multi-dimensional characteristics of users. In addition, the existing interest point migration detection and change modeling methods cannot dynamically capture changes in user interests, resulting in untimely portrait updates and inability to adapt to the rapidly changing needs of users. Finally, the user portrait update mechanism is not perfect, lacks real-time and dynamic features, and it is difficult to ensure the timeliness and accuracy of user portraits.

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide an e-commerce user portrait construction method based on big data, which not only improves the effect of personalized recommendation and precision marketing, effectively improves the user experience and operational efficiency of the e-commerce platform, but also takes into account the integrity, consistency and timeliness of the data, and provides reliable data support and decision-making basis for the e-commerce platform. Summary of the invention

[0005] Based on the above objectives, the present invention provides a method for constructing e-commerce user portraits based on big data.

[0006] The e-commerce user portrait construction method based on big data includes the following steps:

[0007] S1, data collection and preprocessing: obtain user data from various data sources and preprocess the collected user data;

[0008] S2, feature extraction: Based on the user's basic information, behavioral characteristics, interest preferences, and social relationship dimensions, multiple feature vectors reflecting user characteristics are extracted from the preprocessed user data;

[0009] S3, data fusion: fuse the extracted multiple feature vectors to form comprehensive user features;

[0010] S4, interest point migration detection: Analyze the changes in user interests in different time periods and generate interest migration features, including:

[0011] S41, data time slicing: processing the user data by time slices to generate user data in multiple time slices;

[0012] S42, extracting points of interest: extracting points of interest of the user in the current time period from the user data in each time slice;

[0013] S43, interest point change modeling: construct an interest point change model, model the user's interest migration process by observing the transfer of the user's interest points in different time periods, and calculate the transfer probability of the user's interest points in time;

[0014] S44, interest migration feature extraction: based on the output of the interest point change model, extract the user's interest migration features during the entire observation period, including the stability of the interest point, the transfer frequency, and the main interest transfer direction;

[0015] S5, user clustering and portrait generation: cluster analysis is performed on the integrated user features to divide users into multiple groups with similar features. The interest migration features generated by interest point migration detection are combined to generate a portrait of each user.

[0016] S6, portrait update: real-time monitoring of user data and regular updates of user portraits;

[0017] S7, portrait application: Apply the generated user portrait to scenarios of personalized recommendation, precision marketing, and user behavior analysis.

[0018] Furthermore, the data collection and preprocessing in S1 includes:

[0019] S11, Data Collection: Obtain user data from e-commerce platforms, user behavior data sources, social media platforms, geolocation services, and user devices, including:

[0020] E-commerce platform: Obtain user transaction data from the e-commerce platform, including purchase history, shopping cart data, and browsing history;

[0021] User behavior data source: obtain user behavior data from the user behavior data source, including click stream data, search history, and access duration;

[0022] Social Media Platforms: Obtain users’ social interaction data from social media platforms, including likes, comments, shares, and follows;

[0023] Geolocation service: Get the user's location information from the geolocation service, including latitude and longitude data and displacement trajectory;

[0024] User device: obtain device information from the user's device, including device type, operating platform, and browser type;

[0025] S12, data preprocessing: preprocess the collected user data, including data cleaning, data deduplication, formatting, missing value filling and outlier processing.

[0026] Furthermore, the feature extraction in S2 includes:

[0027] S21, basic information feature extraction: extract the basic information features of users from the preprocessed user data, including gender, age, occupation, and income, and use one-hot encoding to encode categorical features;

[0028] S22, behavioral feature extraction: extracting behavioral features from the user's transaction data and user behavior data, including purchase frequency, average shopping amount, and browsing time;

[0029] S23, interest preference feature extraction: Use the LDA topic model to perform topic analysis on the user's browsing history and search history to extract the user's interest preference features. The calculation formula is:

[0030] ;

[0031] in, Representation Document Medium Theme The probability of Indicates the subject Chinese Document The probability of Indicates the subject The prior probability of

[0032] S24, social relationship feature extraction: The PageRank algorithm is used to extract the user's social relationship features from social media data, including the number of friends, interaction frequency, and social influence. The calculation formula is:

[0033] ;

[0034] in, For users The PageRank value, is the damping factor, is the total number of users, For users The set of inbound users, For users The number of outgoing links.

[0035] Furthermore, the data time slice in S41 includes:

[0036] S411, determining a time slice interval: determining a time slice interval according to application requirements and characteristics of user behavior data;

[0037] S412, segment processing of user data: segment processing of user data according to the determined time slice interval to generate user data in multiple time slices. time slices, and the user’s data in each time slice is represented as ;

[0038] S413, time slice processing: for each user , user behavior data (in For the The timestamp of the action. For the The characteristics of the behavior are segmented according to the time slice interval to generate user data in multiple time slices. The calculation formula is:

[0039] ;

[0040] in, For the User data in a time slice, and Respectively The start and end time of a time slice.

[0041] Further, the extraction of interest points in S42 includes:

[0042] S421, text preprocessing: performing text preprocessing on the user data in each time slice, including word segmentation, stop word removal, and stem extraction, so as to standardize and normalize the text content in the user behavior data;

[0043] S422, keyword extraction: extract keywords from the user data after text preprocessing using the TF-IDF algorithm to represent the main points of interest of the user in the current time period. The calculation formula is:

[0044] ;

[0045] in, , , Words In the documentation The number of times it appears in is the total number of documents, To contain words The number of documents;

[0046] S423, topic modeling: Use the LDA topic model to perform topic modeling on the user data in each time slice, and extract the user's topic interests in the current time period.

[0047] Furthermore, the interest point change modeling in S43 includes:

[0048] S431, constructing a sequence of interest points: The user's interest points extracted in each time slice are arranged in chronological order to construct a sequence of interest points for the user. ,in Indicates Points of interest within a time slice;

[0049] S432, Hidden Markov Model Modeling: Use the hidden Markov model to build a point of interest change model, input the point of interest sequence into the hidden Markov model, and set the state transfer matrix of the model and the observation matrix ;

[0050] S433, Model training: Use the Baum-Welch algorithm to estimate the parameters of the hidden Markov model and train to obtain the optimal state transfer matrix and the observation matrix ;

[0051] S434, interest point transfer probability calculation: calculate the temporal transfer probability of the user's interest point through the trained hidden Markov model.

[0052] Furthermore, the hidden Markov model in S432 includes:

[0053] S4321, state transfer matrix : Introducing time decay factor , the calculation formula of state transition probability is:

[0054] ;

[0055] in, From the state Transfer to state The time-decayed transition probability, is the time decay factor, is the time interval between state transitions;

[0056] S4322, observation matrix :Introduce weight factor The observation probability is weighted according to the importance of user behavior, and the calculation formula is:

[0057] ;

[0058] in, For the status Observed below The weighted probability of For observation The weight factor of

[0059] S4323, initial state distribution : Considering the distribution of user interest points at the initial time, the calculation formula for the initial state distribution is:

[0060] ;

[0061] in, Status The initial probability of is the initial time, is the number of users;

[0062] S4324, interest point transfer probability calculation: Calculate the interest point transfer probability, the calculation formula is:

[0063] .

[0064] Furthermore, the interest migration feature extraction in S44 includes:

[0065] S441, interest point stability extraction: calculate the stability of each user's interest point during the entire observation period, which is defined as the proportion of time that the user's interest point remains unchanged. The calculation formula is:

[0066] stability ;

[0067] in, is the indicator function, is the total number of time slices;

[0068] S442, extraction of interest point transfer frequency: Calculate the interest point transfer frequency of each user during the entire observation period, which is defined as the ratio of the number of interest point changes to the total number of time slices. The calculation formula is:

[0069] Transfer frequency ;

[0070] in, is the indicator function;

[0071] S443, extracting the main interest transfer direction: Calculate the transfer direction of the user's main interest points during the entire observation period, which is defined as the transfer probability from one interest point to another interest point. The calculation formula is:

[0072] Main transfer direction ;

[0073] in, Indicates from the state Transfer to state The maximum transition probability, is the indicator function.

[0074] Furthermore, the user clustering and profile generation in S5 includes:

[0075] S51, comprehensive feature fusion: integrate the user's basic information, behavioral characteristics, interest preferences, social relationships, and interest migration characteristics to form a comprehensive user feature vector ;

[0076] S52, cluster analysis: K-means clustering algorithm is used to perform cluster analysis on the integrated user feature vector after fusion, and users are divided into multiple groups with similar characteristics. The calculation formula is:

[0077] ;

[0078] in, is the clustering objective function, is the number of clusters, It is In-cluster The feature vector of a user, It is The centroid of each cluster;

[0079] S53, centroid update: Update the centroid of each cluster through iterative calculation , until the clustering objective function Convergence, the centroid update formula is:

[0080] ;

[0081] in, It is The number of users in a cluster;

[0082] S54, user portrait generation: Based on the results of cluster analysis and combined with the interest migration features generated by interest point migration detection, a portrait of each user is generated, which includes demographic characteristics, purchase behavior characteristics, interest preferences and social relationships.

[0083] Furthermore, the portrait update in S6 includes:

[0084] S61, real-time data monitoring: real-time monitoring of user behavior data on e-commerce platforms, including browsing, clicking, purchasing, and commenting;

[0085] S62, incremental data collection: regularly (e.g., daily or weekly) collect incremental data of users (user behavior data added after the last data collection) and merge it with the existing behavior data;

[0086] S63, feature update: Based on the newly collected behavior data, the user's purchase frequency and browsing time are updated using the sliding window method. The calculation formula is:

[0087] New behavioral characteristics ;

[0088] in, and Represent the behavioral characteristics of old data and new data respectively, and is the corresponding weight;

[0089] S64, portrait update: regenerate the user portrait based on the updated features.

[0090] Beneficial effects of the present invention:

[0091] The present invention obtains user data from multiple data sources and ensures the integrity, consistency and reliability of the data through data cleaning, deduplication, formatting, missing value filling and outlier processing. It adopts feature extraction technology to extract multiple feature vectors reflecting user characteristics from the user's basic information, behavioral characteristics, interest preferences and social relationship dimensions, and then integrates them into comprehensive user characteristics through data fusion, providing a high-quality data foundation for subsequent user portrait generation, and significantly improving the accuracy and comprehensiveness of the portrait.

[0092] The present invention can accurately capture the changes in users' interests in different time periods through interest point migration detection, interest point change modeling and interest migration feature extraction. It adopts an improved hidden Markov model, introduces time decay factor and weight factor, and calculates the temporal transfer probability of users' interest points, ensuring that the model better reflects the real-time interest migration of users. In combination with these dynamic feature data, user clustering and portrait generation are performed. The K-means clustering algorithm is used to divide users into multiple groups with similar characteristics, and generate detailed user portraits including demographic characteristics, purchasing behavior characteristics, interest preferences and social relationships, providing reliable data support for personalized recommendations and precision marketing of e-commerce platforms.

[0093] The present invention ensures that the user portrait always reflects the user's latest behavior and interests by monitoring user data in real time, regularly collecting incremental data and updating the user's behavioral characteristics and interest preferences. It adopts a sliding window method to update features, smoothly integrates new and old data, and avoids the impact of sudden changes on the portrait. The user portrait finally generated is significantly improved in accuracy and timeliness, which helps e-commerce platforms to achieve more accurate personalized recommendations and marketing strategies, and improve user experience and operational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0095] Figure 1 A schematic diagram of a construction method flow chart of an embodiment of the present invention;

[0096] Figure 2 Schematic diagram of interest point migration detection according to an embodiment of the present invention. DETAILED DESCRIPTION

[0097] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0098] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0099] like Figure 1-Figure 2 As shown in the figure, the e-commerce user portrait construction method based on big data includes the following steps:

[0100] S1, data collection and preprocessing: obtain user data from various data sources and preprocess the collected user data to ensure data integrity and consistency;

[0101] S2, feature extraction: Based on the user's basic information, behavioral characteristics, interest preferences, and social relationship dimensions, multiple feature vectors reflecting user characteristics are extracted from the preprocessed user data;

[0102] S3, data fusion: fuse the extracted multiple feature vectors to form comprehensive user features;

[0103] S4, interest point migration detection: Analyze the changes in user interests in different time periods and generate interest migration features, including:

[0104] S41, data time slicing: processing the user data by time slices to generate user data in multiple time slices;

[0105] S42, extracting points of interest: extracting points of interest of the user in the current time period from the user data in each time slice;

[0106] S43, interest point change modeling: construct an interest point change model, model the user's interest migration process by observing the transfer of the user's interest points in different time periods, and calculate the transfer probability of the user's interest points in time;

[0107] S44, interest migration feature extraction: based on the output of the interest point change model, extract the user's interest migration features during the entire observation period, including the stability of the interest point, the transfer frequency, and the main interest transfer direction;

[0108] S5, user clustering and portrait generation: cluster analysis is performed on the integrated user features to divide users into multiple groups with similar features. The interest migration features generated by interest point migration detection are combined to generate a portrait of each user.

[0109] S6, portrait update: real-time monitoring of user data, regular updates of user portraits to maintain the timeliness and accuracy of user portraits;

[0110] S7, portrait application: Apply the generated user portraits to scenarios such as personalized recommendations, precision marketing, and user behavior analysis to improve the user experience and operational efficiency of the e-commerce platform;

[0111] Through the above steps, a comprehensive, accurate and dynamic user portrait construction is achieved, the effect of personalized recommendation and precision marketing is improved, and the user experience and operational efficiency of the e-commerce platform are effectively improved, while taking into account data integrity, consistency and timeliness.

[0112] Data collection and preprocessing in S1 include:

[0113] S11, Data Collection: Obtain user data from e-commerce platforms, user behavior data sources, social media platforms, geolocation services, and user devices, including:

[0114] E-commerce platform: Obtain user transaction data from the e-commerce platform, including purchase history, shopping cart data, and browsing history;

[0115] User behavior data source: obtain user behavior data from the user behavior data source, including click stream data, search history, and access duration;

[0116] Social Media Platforms: Obtain users’ social interaction data from social media platforms, including likes, comments, shares, and follows;

[0117] Geolocation service: Get the user's location information from the geolocation service, including latitude and longitude data and displacement trajectory;

[0118] User device: obtain device information from the user's device, including device type, operating platform, and browser type;

[0119] S12, data preprocessing: preprocessing the collected user data, including data cleaning, data deduplication, formatting, missing value filling and outlier processing, among which;

[0120] Data cleaning removes duplicate and invalid data;

[0121] Data deduplication and deletion of duplicate records to ensure data uniqueness;

[0122] Formatting converts data from different sources into a standard format;

[0123] Missing value filling uses mean filling and interpolation to fill missing values ​​in the data;

[0124] Outlier processing identifies and handles outliers in the data to improve the reliability and consistency of the data;

[0125] Through the above content, the integrity, consistency and reliability of the data are ensured, providing a high-quality data foundation for the subsequent construction of user portraits, and improving the accuracy and effectiveness of the portraits.

[0126] Feature extraction in S2 includes:

[0127] S21, basic information feature extraction: extract the basic information features of users from the preprocessed user data, including gender, age, occupation, and income, and use one-hot encoding to encode categorical features;

[0128] S22, behavioral feature extraction: extracting behavioral features from the user's transaction data and user behavior data, including purchase frequency, average shopping amount, and browsing time;

[0129] The calculation formula for purchase frequency is:

[0130] Purchase frequency = number of purchases ÷ total time period;

[0131] Among them, the number of purchases is the total number of purchases made by the user during the observation period, and the total time period is the total length of the observation period (such as days, weeks, etc.);

[0132] The average shopping amount is calculated as follows:

[0133] Average purchase amount ;

[0134] in, It is The amount of the purchase, It is The weight of the purchase can be assigned based on time or other factors. is the total number of purchases;

[0135] The calculation formula for browsing time is:

[0136] Total browsing time: Total browsing time ;

[0137] in, It is The duration of each visit, is the total number of browsing behaviors;

[0138] Average browsing time: Average browsing time ;

[0139] in, It is The duration of each visit, is the total number of browsing behaviors;

[0140] Weighted average browsing time: Weighted average browsing time ;

[0141] S23, interest preference feature extraction: Use the LDA topic model to perform topic analysis on the user's browsing history and search history to extract the user's interest preference features. The calculation formula is:

[0142] ;

[0143] in, Representation Document Medium Theme The probability of Indicates the subject Chinese Document The probability of Indicates the subject The prior probability of

[0144] S24, social relationship feature extraction: The PageRank algorithm is used to extract the user's social relationship features from social media data, including the number of friends, interaction frequency, and social influence. The calculation formula is:

[0145] ;

[0146] in, For users The PageRank value, is the damping factor, is the total number of users, For users The set of inbound users, For users The number of outgoing links;

[0147] Through the above content, the user's consumption behavior and browsing habits are fully reflected, providing rich and detailed data support for the construction of user portraits, thereby improving the accuracy and comprehensiveness of the portraits, and helping to achieve more accurate personalized recommendations and marketing strategies.

[0148] The data time slices in S41 include:

[0149] S411, determining a time slice interval: determining a time slice interval, such as a day, a week, a month, etc., according to application requirements and characteristics of user behavior data;

[0150] S412, segment processing of user data: segment processing of user data according to the determined time slice interval to generate user data in multiple time slices. time slices, and the user’s data in each time slice is represented as ;

[0151] S413, time slice processing: for each user , user behavior data (in For the The timestamp of the action. For the The characteristics of the behavior are segmented according to the time slice interval to generate user data in multiple time slices. The calculation formula is:

[0152] ;

[0153] in, For the User data in a time slice, and Respectively The start and end time of each time slice;

[0154] Through the above steps, we can not only capture the temporal dynamic changes of user behavior, but also provide basic data for subsequent interest point migration detection and interest migration feature extraction. By accurately segmenting and processing user data, we can better understand the user's time series behavior pattern, thereby improving the accuracy and dynamics of user portraits.

[0155] The interest point extraction in S42 includes:

[0156] S421, text preprocessing: performing text preprocessing on the user data in each time slice, including word segmentation, stop word removal, and stem extraction, so as to standardize and normalize the text content in the user behavior data;

[0157] S422, keyword extraction: extract keywords from the user data after text preprocessing using the TF-IDF algorithm to represent the main points of interest of the user in the current time period. The calculation formula is:

[0158] ;

[0159] in, , , Words In the documentation The number of times it appears in is the total number of documents, To contain words The number of documents;

[0160] S423, topic modeling: using the LDA topic model to perform topic modeling on the user data in each time slice, and extracting the user's topic interests in the current time period;

[0161] Through the above content, it is possible to accurately capture the changes in users' interests in different time periods, provide high-quality input data for interest point migration detection and user portrait generation, and thus improve the accuracy and dynamic adaptability of user portraits.

[0162] The interest point change modeling in S43 includes:

[0163] S431, constructing a sequence of interest points: The user's interest points extracted in each time slice are arranged in chronological order to construct a sequence of interest points for the user. ,in Indicates Points of interest within a time slice;

[0164] S432, Hidden Markov Model Modeling: Use the hidden Markov model to build a point of interest change model, input the point of interest sequence into the hidden Markov model, and set the state transfer matrix of the model and the observation matrix ;

[0165] S433, Model training: Use the Baum-Welch algorithm to estimate the parameters of the hidden Markov model and train to obtain the optimal state transfer matrix and the observation matrix ;

[0166] S434, interest point transfer probability calculation: calculate the time transfer probability of the user's interest point through the trained hidden Markov model;

[0167] The present invention constructs a sequence of user's interest points and inputs it into a hidden Markov model for modeling, sets and trains a state transition matrix and an observation matrix, and can capture the dynamic changes of user's interest points in different time periods. By calculating the temporal transition probability of user's interest points, the user's interest migration process can be accurately modeled, providing accurate dynamic feature data for user portrait generation and updating, thereby improving the timeliness and adaptability of the portrait.

[0168] The hidden Markov models in S432 include:

[0169] S4321, state transfer matrix : Introducing time decay factor , the calculation formula of state transition probability is:

[0170] ;

[0171] in, From the state Transfer to state The time-decayed transition probability, is the time decay factor, is the time interval between state transitions;

[0172] S4322, observation matrix :Introduce weight factor The observation probability is weighted according to the importance of user behavior, and the calculation formula is:

[0173] ;

[0174] in, For the status Observed below The weighted probability of For observation The weight factor of

[0175] S4323, initial state distribution : Considering the distribution of user interest points at the initial time, the calculation formula for the initial state distribution is:

[0176] ;

[0177] in, Status The initial probability of is the initial time, is the number of users;

[0178] S4324, interest point transfer probability calculation: Calculate the interest point transfer probability, the calculation formula is:

[0179] ;

[0180] Through the above content, the changes in users' interests and behavioral characteristics in different time periods can be captured more accurately. By calculating the time-attenuated transfer probability and weighted observation probability, the model can better reflect the real-time interest migration of users and provide accurate and dynamic feature data for user portrait generation and updating, thereby improving the timeliness and adaptability of the portrait.

[0181] The Baum-Welch algorithm in S433 includes:

[0182] S4331, Forward Algorithm: Forward Probability Indicates at time When some sequences are observed and is in state The probability is calculated as:

[0183] ;

[0184] The recursive relationship is: ;

[0185] The initial conditions are: ;

[0186] S4332, Backward Algorithm: Backward Probability Indicates at time When in state And from time arrive Observed sequence The probability is calculated as:

[0187] ;

[0188] The recursive relationship is: ;

[0189] The initial conditions are: ;

[0190] S4333, calculate the expected value:

[0191] ;

[0192] ;

[0193] S4334, parameter update: use the expected value to update the HMM parameters, including the initial state probability distribution , state transfer matrix and the observation probability matrix , the calculation formula is:

[0194] Initial state distribution : ;

[0195] State transition matrix : ;

[0196] Observation probability matrix : ;

[0197] in, is the indicator function, when hour, ,otherwise ;

[0198] Through the above content, it is possible to better reflect the user's real-time interest migration, provide accurate and dynamic feature data for user portrait generation and updating, and thus improve the timeliness and adaptability of the portrait.

[0199] The interest transfer feature extraction in S44 includes:

[0200] S441, interest point stability extraction: calculate the stability of each user's interest point during the entire observation period, which is defined as the proportion of time that the user's interest point remains unchanged. The calculation formula is:

[0201] stability ;

[0202] in, is the indicator function, when and At the same time, ,otherwise , is the total number of time slices;

[0203] S442, extraction of interest point transfer frequency: Calculate the interest point transfer frequency of each user during the entire observation period, which is defined as the ratio of the number of interest point changes to the total number of time slices. The calculation formula is:

[0204] Transfer frequency ;

[0205] in, is the indicator function, when and At the same time, ,otherwise ;

[0206] S443, extracting the main interest transfer direction: Calculate the transfer direction of the user's main interest points during the entire observation period, which is defined as the transfer probability from one interest point to another interest point. The calculation formula is:

[0207] Main transfer direction ;

[0208] in, Indicates from the state Transfer to state The maximum transition probability, is the indicator function, when and hour, ,otherwise ;

[0209] Through the above steps, based on the output of the interest point change model, we can comprehensively capture the user's interest migration characteristics during the entire observation period, calculate the stability, transfer frequency and main interest transfer direction of the user's interest points, which can not only reveal the dynamic changes and stability of the user's interests, but also provide the main paths for users to transfer between different interest points. Through these calculation formulas, the model can accurately extract the user's interest migration characteristics, and provide more refined and dynamic data support for the generation and update of user portraits, thereby improving the accuracy and practicality of the portraits.

[0210] User clustering and profile generation in S5 include:

[0211] S51, comprehensive feature fusion: integrate the user's basic information, behavioral characteristics, interest preferences, social relationships, and interest migration characteristics to form a comprehensive user feature vector ;

[0212] S52, cluster analysis: K-means clustering algorithm is used to perform cluster analysis on the integrated user feature vector after fusion, and users are divided into multiple groups with similar characteristics. The calculation formula is:

[0213] ;

[0214] in, is the clustering objective function, is the number of clusters, It is In-cluster The feature vector of a user, It is The centroid of each cluster;

[0215] S53, centroid update: Update the centroid of each cluster through iterative calculation , until the clustering objective function Convergence, the centroid update formula is:

[0216] ;

[0217] in, It is The number of users in a cluster;

[0218] S54, user portrait generation: based on the results of cluster analysis and combined with the interest migration features generated by interest point migration detection, a portrait of each user is generated, the portrait including demographic characteristics, purchase behavior characteristics, interest preferences and social relationships, wherein;

[0219] Demographic characteristics include gender, age, occupation, and income;

[0220] Purchasing behavior characteristics include purchase frequency and average purchase amount;

[0221] Interest preference describes the user's interest areas based on interest point extraction and topic modeling results;

[0222] Social relationships include the number of friends, interaction frequency, and social influence;

[0223] Through the above content, users can be effectively divided into multiple groups with similar characteristics. The centroid update ensures the accuracy and stability of the clustering results. Combined with the interest migration features generated by interest point migration detection, a detailed portrait is generated for each user, which can fully reflect the user's characteristics and behaviors, and provide reliable data support for personalized recommendations, precision marketing and user behavior analysis of e-commerce platforms, thereby improving the platform's user experience and operational efficiency.

[0224] The portrait updates in S6 include:

[0225] S61, real-time data monitoring: real-time monitoring of user behavior data on e-commerce platforms, including browsing, clicking, purchasing, and commenting;

[0226] S62, incremental data collection: regularly (e.g., daily or weekly) collect incremental user data (user behavior data added after the last data collection) and merge it with the existing behavior data to ensure data continuity and integrity;

[0227] S63, feature update: Based on the newly collected behavior data, the user's purchase frequency and browsing time are updated using the sliding window method. The calculation formula is:

[0228] New behavioral characteristics ;

[0229] in, and Represent the behavioral characteristics of old data and new data respectively, and is the corresponding weight;

[0230] S64, portrait update: regenerate user portraits based on updated features to ensure the timeliness and accuracy of the portraits. The updated portraits include new demographic features, purchase behavior features, interest preferences, and social relationships.

[0231] The present invention ensures that the user portrait always reflects the user's latest behavior and interests by monitoring user data in real time, regularly collecting incremental data and updating the user's behavioral characteristics and interest preferences. The sliding window method is used for feature update, which can smoothly integrate new and old data and avoid the impact of mutations on the portrait. The user portrait finally generated is significantly improved in accuracy and timeliness, supporting e-commerce platforms to make more accurate personalized recommendations and marketing strategies, and effectively improving user experience and operational efficiency.

[0232] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.

Claims

1. A method for constructing e-commerce user portraits based on big data, characterized in that: The following steps are involved: S1, data collection and preprocessing: obtain user data from various data sources and preprocess the collected user data; S2, feature extraction: Based on the user's basic information, behavioral characteristics, interest preferences, and social relationship dimensions, multiple feature vectors reflecting user characteristics are extracted from the preprocessed user data; S3, data fusion: fuse the extracted multiple feature vectors to form comprehensive user features; S4, interest point migration detection: Analyze the changes in user interests in different time periods and generate interest migration features, including: S41, data time slicing: processing the user data by time slices to generate user data in multiple time slices, specifically including: S411, determining a time slice interval: determining a time slice interval according to application requirements and characteristics of user behavior data; S412, segment processing of user data: segment processing of user data according to the determined time slice interval to generate user data in multiple time slices. Assume T time slices, and the user data in each time slice is represented as {D1, D2, ..., D T }; S413, time slicing processing: For each user u, the user behavior data {(t i ,x i )}Segment processing is performed according to the time slice interval to generate user data in multiple time slices. The calculation formula is: Among them, D j is the user data in the jth time slice, and are the start and end time of the jth time slice respectively; S42, extracting points of interest: extracting points of interest of the user in the current time period from the user data in each time slice, specifically including: S421, text preprocessing: performing text preprocessing on the user data in each time slice, including word segmentation, stop word removal, and stem extraction, so as to standardize and normalize the text content in the user behavior data; S422, keyword extraction: extract keywords from the user data after text preprocessing using the TF-IDF algorithm to represent the main points of interest of the user in the current time period. The calculation formula is: TF-IDF(t,d)=TF(t,d)×IDF(t); in, f t,d is the number of times word t appears in document d, N is the total number of documents, and {d∈D:t∈d} is the number of documents containing word t; S423, topic modeling: using the LDA topic model to perform topic modeling on the user data in each time slice, and extracting the user's topic interests in the current time period; S43, interest point change modeling: construct an interest point change model, model the user's interest migration process by observing the transfer of the user's interest points in different time periods, and calculate the transfer probability of the user's interest points in time, specifically including: S431, constructing a sequence of interest points: The user interest points extracted in each time slice are arranged in chronological order to construct a sequence of user interest points {z1, z2, ..., z T }, where z i represents the point of interest in the i-th time slice; S432, Hidden Markov Model Modeling: Use the hidden Markov model to build an interest point change model, input the interest point sequence into the hidden Markov model, set the model's state transfer matrix A and observation matrix B, specifically including: S4321, state transfer matrix A: Introducing the time decay factor λ, the calculation formula of the state transfer probability is: Among them, A ij (t) is the time decay transition probability from state i to state j, λ is the time decay factor, t ij is the time interval between state transitions; S4322, observation matrix B: introduce the weight factor ω to weight the observation probability according to the importance of user behavior. The calculation formula is: Among them, B j (o t ) is the observation o in state j t The weighted probability of To observe o t The weight factor of S4323, initial state distribution π: Considering the distribution of user interest points at the initial time, the calculation formula of the initial state distribution is: Among them, π i is the initial probability of state i, t i is the initial time, U is the number of users; S4324, interest point transfer probability calculation: calculate the interest point transfer probability, the calculation formula is: P(z t+1 =j|z t =i)=A ij (t); S433, model training: use the Baum-Welch algorithm to estimate the parameters of the hidden Markov model and train to obtain the optimal state transfer matrix A and observation matrix B; S434, interest point transfer probability calculation: calculate the time transfer probability of the user's interest point through the trained hidden Markov model; S44, interest migration feature extraction: Based on the output of the interest point change model, the interest migration features of the user during the entire observation period are extracted, including the stability of the interest point, the transfer frequency, and the main interest transfer direction, including: S441, interest point stability extraction: calculate the stability of each user's interest point during the entire observation period, which is defined as the proportion of time that the user's interest point remains unchanged. The calculation formula is: Among them, δ(z t =z t+1 ) is the indicator function, T is the total number of time slices; S442, extraction of interest point transfer frequency: Calculate the interest point transfer frequency of each user during the entire observation period, which is defined as the ratio of the number of interest point changes to the total number of time slices. The calculation formula is: Among them, δ(z t ≠z t+1 ) is the indicator function; S443, extracting the main interest transfer direction: Calculate the transfer direction of the user's main interest points during the entire observation period, which is defined as the transfer probability from one interest point to another interest point. The calculation formula is: Among them, arg max j represents the maximum transition probability from state i to state j, δ(z t =i∧z t+1 =j) is the indicator function; S5, user clustering and portrait generation: cluster analysis is performed on the integrated user features to divide users into multiple groups with similar features. The interest migration features generated by interest point migration detection are combined to generate a portrait of each user. S6, portrait update: real-time monitoring of user data and regular updates of user portraits; S7, portrait application: Apply the generated user portrait to scenarios of personalized recommendation, precision marketing, and user behavior analysis.

2. The method for constructing an e-commerce user portrait based on big data according to claim 1, characterized in that: The data collection and preprocessing in S1 include: S11, Data Collection: Obtain user data from e-commerce platforms, user behavior data sources, social media platforms, geolocation services, and user devices, including: E-commerce platform: Obtain user transaction data from the e-commerce platform, including purchase history, shopping cart data, and browsing history; User behavior data source: obtain user behavior data from the user behavior data source, including click stream data, search history, and access duration; Social Media Platforms: Obtain users’ social interaction data from social media platforms, including likes, comments, shares, and follows; Geolocation service: Get the user's location information from the geolocation service, including latitude and longitude data and displacement trajectory; User device: obtain device information from the user's device, including device type, operating platform, and browser type; S12, data preprocessing: preprocess the collected user data, including data cleaning, data deduplication, formatting, missing value filling and outlier processing.

3. The method for constructing an e-commerce user portrait based on big data according to claim 2, characterized in that: The feature extraction in S2 includes: S21, basic information feature extraction: extract the user's basic information features from the preprocessed user data, including gender, age, occupation, and income, and use one-hot encoding to encode the categorical features; S22, behavioral feature extraction: extracting behavioral features from the user's transaction data and user behavior data, including purchase frequency, average shopping amount, and browsing time; S23, interest preference feature extraction: Use the LDA topic model to perform topic analysis on the user's browsing history and search history to extract the user's interest preference features. The calculation formula is: Among them, P(z|d) represents the probability of topic z in document d, P(d|z) represents the probability of document d in topic z, and P(z) represents the prior probability of topic z; S24, social relationship feature extraction: The PageRank algorithm is used to extract the user's social relationship features from social media data, including the number of friends, interaction frequency, and social influence. The calculation formula is: Among them, PR(u) is the PageRank value of user u, d is the damping factor, N is the total number of users, L(u) is the set of inbound users of user u, and C(v) is the number of outbound links of user v.

4. The method for constructing an e-commerce user portrait based on big data according to claim 1, characterized in that: The user clustering and profile generation in S5 includes: S51, comprehensive feature fusion: The user's basic information, behavioral characteristics, interest preferences, social relationships, and interest migration characteristics are integrated to form a comprehensive user feature vector X i ; S52, cluster analysis: K-means clustering algorithm is used to perform cluster analysis on the integrated user feature vector after fusion, and users are divided into multiple groups with similar characteristics. The calculation formula is: Among them, J is the clustering objective function, k is the number of clusters, is the feature vector of the jth user in the ith cluster, μ i is the centroid of the ith cluster; S53, centroid update: Update the centroid μ of each cluster through iterative calculation i , until the clustering objective function J converges, the centroid update formula is: Among them, n i is the number of users in the ith cluster; S54, user portrait generation: Based on the results of cluster analysis and combined with the interest migration features generated by interest point migration detection, a portrait of each user is generated, which includes demographic characteristics, purchase behavior characteristics, interest preferences and social relationships.

5. The method for constructing an e-commerce user portrait based on big data according to claim 1, characterized in that: The image updates in S6 include: S61, real-time data monitoring: real-time monitoring of user behavior data on e-commerce platforms, including browsing, clicking, purchasing, and commenting; S62, incremental data collection: regularly collect incremental data of users and merge it with existing behavior data; S63, feature update: Based on the newly collected behavior data, the user's purchase frequency and browsing time are updated using the sliding window method. The calculation formula is: Among them, x i and x j 'represent the behavioral characteristics of old data and new data respectively, w i and w j ' is the corresponding weight; S64, portrait update: regenerate the user portrait based on the updated features.