Customer behavior feature extraction method based on data analysis

By combining the neural network model and PageRank algorithm, combined with customer browsing time and click data, the topic content coherence index is constructed, which solves the problem of inaccurate extraction of customer behavior features caused by reliance on link structures in the existing technology and improves the extraction accuracy.

CN118520174BActive Publication Date: 2024-09-27BAYSHORE CONSULTING & SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969609.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-27
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

Existing customer behavior feature extraction methods rely on link structure, and there is the possibility of increasing the PageRank value through low-quality links, resulting in inaccurate extraction.

Method used

Using a method based on data analysis, combined with the neural network model, the text data of the web page is processed, the semantic vectors and TF-IDF scores of sentences and words are obtained, the keyword characteristic coefficient and the subject content coherence index of the web page are constructed, combined with the PageRank algorithm, comprehensive customer Browse time and click data to extract customer behavior characteristics.

Benefits of technology

It improves the accuracy of customer behavior feature extraction, avoids the limitations of the PageRank algorithm caused by over-reliance on link structures, and enhances the precise understanding of customer behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520174B
    Figure CN118520174B
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and specifically to a method for extracting customer behavior features based on data analysis, the method comprising: obtaining text data of web pages browsed by customers, preprocessing the text data, obtaining all sentences and corresponding words in the web pages; constructing a web page keyword feature coefficient based on the word frequency and part-of-speech distribution of words in the web page text data; constructing a topic content coherence index based on the importance of words to the web page and the semantic similarity between sentences, and obtaining a PageRank value using the PageRank algorithm; and obtaining a customer behavior feature extraction result by comprehensively considering the content relevance between web pages, the number of clicks on the web pages by customers, and the length of stay. The present application aims to resist the influence of low-quality links on web page rankings and improve the accuracy of customer behavior feature extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method for extracting customer behavior features based on data analysis. Background Art

[0002] In the digital age, companies have accumulated a large amount of customer data, including transaction records, online behaviors, social media interactions, etc. Data mining and data analysis are an indispensable part of modern business decision-making. They help companies extract valuable information from massive data to support more accurate market positioning and decision-making. By analyzing customers' web page data and extracting customer behavior characteristics, we can better understand customers' preferences, habits and needs.

[0003] In the process of extracting customer behavior features, although the PageRank algorithm can reduce the impact of manipulation to a certain extent, since it mainly relies on the link structure, there is still the possibility of increasing the PageRank value of a page through a large number of low-quality links, resulting in inaccurate extraction of customer behavior features. Summary of the invention

[0004] In view of the above, it is necessary to provide a customer behavior feature extraction method based on data analysis to solve the above problems.

[0005] An embodiment of the present application provides a method for extracting customer behavior features based on data analysis, the method comprising:

[0006] Based on the length of time that customers spend browsing web pages within a preset time and all text data on the web pages, combined with a neural network model, all sentences on each web page, all words in each sentence, and the semantic vector of each word are obtained; the words in each sentence on each web page are tagged with parts of speech, and the frequency of occurrence of each word in each sentence on each web page and the TF-IDF score are obtained;

[0007] According to the tag value, frequency distribution and distance distribution of the part of speech of any two words in each sentence of each web page, the web page keyword feature coefficient of each sentence of each web page is obtained;

[0008] According to the webpage keyword feature coefficients of all sentences in each webpage, combined with the TF-IDF scores and semantic vectors of all words in each sentence, the topic content coherence index of each webpage is obtained;

[0009] According to the coherence index of the subject content of each web page, combined with the similarity of the distribution of words between web pages, the PageRank algorithm is used to obtain the PageRank value of each web page;

[0010] The customer behavior feature extraction result is obtained by combining the total number of clicks and the length of stay of all web pages within the preset time of the customer, the subject content coherence index and the PageRank value.

[0011] The specific steps of obtaining the webpage keyword characteristic coefficient of each sentence of each webpage include:

[0012] Based on each sentence, if any two words have the same part of speech, a first preset value is used as the difference weight of the any two words; otherwise, a second preset value is used as the difference weight of the any two words; wherein the first preset value is greater than the second preset value;

[0013] The sum of the frequencies of any two words in each sentence and the product of the difference weight are used as the numerator of the first feature value of any two words in each sentence; the difference in word order of any two words in the corresponding sentence is used as the denominator of the first feature value of any two words in each sentence;

[0014] The fusion result of the first feature values ​​of all arbitrary two words in each sentence is used as the webpage keyword feature coefficient of each sentence of each webpage.

[0015] The step of obtaining the coherence index of the subject content of each web page is as follows:

[0016] According to the numerical characteristics of the web page keyword characteristic coefficients of the adjacent sentences of each web page, combined with the TF-IDF scores of all words in each sentence of each web page, the second characteristic value of each sentence of each web page is obtained;

[0017] Obtaining a third eigenvalue of each sentence on each web page according to the distribution difference of the semantic vectors of all words between each sentence on each web page and the next sentence;

[0018] The fusion result of the second eigenvalue and the third eigenvalue of all sentences in each web page is used as the topic content coherence index of each web page.

[0019] The step of obtaining the second characteristic value of each sentence of each webpage is as follows:

[0020] The sum of the webpage keyword feature coefficients of each sentence of each webpage and its adjacent sentences before and after is used as the local feature of each sentence of each webpage;

[0021] The fusion result of the local feature and the average TF-IDF score of all words in the corresponding sentence is used as the second feature value of each sentence.

[0022] The step of obtaining the third characteristic value of each sentence of each webpage is as follows:

[0023] The mean values ​​of the elements in the same position between the semantic vectors of all words in each sentence of each web page are used to form the mean vector of each sentence; the correlation coefficient between the mean vector of each sentence of each web page and the mean vector of the next sentence is used as the third eigenvalue of each sentence of each web page.

[0024] The specific steps of obtaining the PageRank value of each web page include:

[0025] For each web page, a preset number of words are selected based on the TF-IDF score to form an important word character sequence for each web page;

[0026] Based on the difference between the character sequences of important words of any two web pages, combined with the coherence index of the subject content, a correlation factor of the any two web pages is obtained;

[0027] The normalized value of the distribution trend value of the correlation factor obtained by combining all the web pages browsed by the customer in pairs is used as the damping coefficient of the customer in the PageRank algorithm;

[0028] All web pages browsed by customers are used as the input of PageRank algorithm, and combined with the damping coefficient, the PageRank value of each web page browsed by customers is obtained.

[0029] The step of obtaining the correlation factor between any two web pages includes:

[0030] Calculate the sum of the subject content coherence indexes of any two web pages; obtain the distance measure of the important word character sequences of the any two web pages;

[0031] Based on the addition result and the distance metric of the arbitrary two web pages, a correlation factor of the arbitrary two web pages is obtained; wherein the correlation factor is in an increasing relationship with the addition result and in a decreasing relationship with the distance metric.

[0032] The customer behavior feature extraction result is specifically:

[0033] Based on the total number of times customers click to enter each web page and the length of time they stay within a preset time, the uniformity of customers' clicks and stays on each web page is obtained;

[0034] According to the uniformity of the customer's clicks and stays on each web page, combined with the subject content coherence index, the consistency of the customer's stay interest on each web page is obtained;

[0035] The consistency of the customer's interest in each web page is integrated with the PageRank value to obtain the interest score of each web page; based on the interest score, all web pages browsed by the customer within a preset time are sorted in descending order, and the top set number of web pages are used as the customer's behavioral feature extraction results.

[0036] The steps for obtaining the uniformity of the clicks and stays of the customers on each web page are as follows:

[0037] For any web page browsed by a customer, the total number of times the customer clicks to enter the web page within a preset time and the average of all stay times are combined, and combined with the discrete degree of the customer's stay time on the web page, the uniformity of the customer's clicks and stays on the web page is obtained.

[0038] The obtaining of the consistency of the customer's interest in staying on each web page is specifically as follows:

[0039] The inverse of the difference between the subject content coherence index of any web page and all other web pages is obtained, and the result of merging the uniformity of the customer's click stay on any web page with the inverse is taken as the consistency of the customer's stay interest on any web page.

[0040] This application has at least the following beneficial effects:

[0041] This application first processes the text data collected from the web page, obtains all sentences and all words in the sentences, and provides an analysis basis for subsequent customer data analysis of the web page; and obtains the word's part of speech and frequency to provide a data basis for feature extraction of the main content of the web page, and obtains the word's TF-IDF score to measure the importance of the word to the web page text data; constructs a web page keyword feature coefficient to measure the part of speech distribution of each sentence, and measures the possibility of each sentence containing core content based on the part of speech; constructs a topic content coherence index to determine the customer's interest in the web page; obtains the PageRank value, and combines it with the PageRank algorithm to effectively avoid the damping coefficient in the PageRank algorithm being too large or too small, thereby improving the accuracy of subsequent extraction of customer behavior features; further combined with the customer's browsing time on the web page, the customer's behavior feature extraction results are obtained, which makes up for the limitations of the PageRank algorithm that may be caused by excessive reliance on the link structure, thereby improving the accuracy of customer behavior feature extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flowchart of a method for extracting customer behavior features based on data analysis provided for this application;

[0043] Figure 2 Flowchart for obtaining interest scores provided for this application. DETAILED DESCRIPTION

[0044] In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" and the like are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" and the like is intended to present related concepts in a concrete manner.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art in the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0046] It should also be noted that the terms "first" and "second" in this application and its drawings are used to distinguish similar objects, rather than to describe a specific order or sequence. The method disclosed in the embodiments of the present application or the method shown in the flow chart includes one or more steps for implementing the method. Without departing from the scope of protection of this application, the execution order of multiple steps can be interchanged with each other, and some steps can also be deleted.

[0047] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

[0048] The present application embodiment first proposes a customer behavior feature extraction method based on data analysis, which is applied to the field of data processing technology. Figure 1 , the method comprises the following steps:

[0049] Step 1: Based on the length of time the customer spends browsing the web page within the preset time and all the text data on the web page, combined with the neural network model, obtain all the sentences on each web page, all the words in each sentence, and the semantic vector of each word; perform part-of-speech tagging on the words in each sentence on each web page, and obtain the frequency of occurrence of each word in each sentence on each web page and the TF-IDF score.

[0050] When customers browse the web, the system will automatically record their web log information. With the authorization of the customer, the system can obtain the historical web page data browsed by the customer in the past six months and the time the customer stayed on each web page through the web log. In order to facilitate the analysis and feature extraction of customer data, the obtained web page data is preprocessed.

[0051] A neural network model is used to extract text data from each web page to obtain all text data. In some embodiments of the present application, a CRNN (Convolutional Recurrent Neural Network) neural network model is used to extract text data from a web page, the loss function is a CTC (Connectionist Temporal Classification) loss function, and the optimization model is set to Adam (Adaptive Moment Estimation). The input of the algorithm is a historical web page, and the output is all text data in the web page. It should be noted that the CRNN neural network model is a well-known technology, and the specific process will not be repeated.

[0052] Since there may be some non-informative data in the extracted text data, such as special symbols, emoticons, and HTML tags, which may interfere with subsequent data processing, the text data needs to be further processed. In some embodiments of the present application, Pandas and SciPy libraries in Python are used to remove non-informative data.

[0053] Since the frequency of each word is used as a reference for customer data analysis and behavioral feature extraction, in order to remove words that have no practical meaning in the text, such as prepositions and pronouns, the stop word list provided by the spaCy library in Python is used to process stop words, and each sentence in the web page can be divided.

[0054] Each sentence is segmented to obtain all the words in each sentence and the semantic vector of each word. In some embodiments of the present application, the BERT model is used to segment the text data after noise removal, the loss function is set to MLM (Masked Language Model), the optimizer is set to Adam, the input of the BERT model is each sentence, and the output is all the words in each sentence and the semantic vector of each word. It should be noted that Pandas, SciPy library and BERT model are well-known technologies, and the specific process will not be repeated.

[0055] Part-of-speech tagging is performed on the words of each sentence in each web page, and the frequency of occurrence of each word in each sentence in each web page and the TF-IDF score are obtained. In some embodiments of the present application, the spaCy library in Python is used for part-of-speech tagging to obtain the part of speech of each word and mark it, marking nouns as 1, verbs as 2, etc. Then the TF-IDF (TermFrequency-Inverse Document Frequency) algorithm is used to count the frequency of each word in the web page. The input of the algorithm is the preprocessed text data of each web page, and the output is the frequency of each word in each web page and the TF-IDF score. The TF-IDF score can represent the importance of the word in the web page. It should be noted that the spaCy library and the TF-IDF method are well-known technologies, and the specific process will not be repeated.

[0056] Step 2: According to the tag value, frequency distribution and distance distribution of the part of speech of any two words in each sentence of each web page, the web page keyword feature coefficient of each sentence of each web page is obtained.

[0057] The historical web pages that customers have browsed all contain their own core content. The objects described by different web pages may be significantly different, and the texts of these web pages also show different characteristics in the distribution of parts of speech. For example, if a web page contains a large number of nouns, the web page may be a reference page introducing specific things or places; if the web page contains more verbs, the web page may be a sports-related introduction or news report; and web pages containing more adjectives or adverbs indicate that they contain more emotional descriptions.

[0058] Based on this, the first feature value of any two words in each sentence of each web page is obtained, specifically:

[0059] Based on each sentence, if any two words have the same part of speech, the first preset value is used as the difference weight of the any two words; otherwise, the second preset value is used as the difference weight of the any two words.

[0060] In some embodiments of the present application, the first preset value is 2, and the second preset value is 1; the implementer can adjust it according to the actual situation. It should be noted that the first preset value is greater than the second preset value.

[0061] The sum of the frequencies of any two words in each sentence and the product of the difference weight are used as the numerator of the first eigenvalue of any two words in each sentence. The larger the numerator, the more frequently the words with the same part of speech appear in the sentence, and the richer the description of the related content. The difference in word order between the any two words in the corresponding sentence is used as the denominator of the first eigenvalue of any two words in each sentence.

[0062] The webpage keyword characteristic coefficient of each sentence of each webpage is obtained, specifically, the result of the fusion of the first characteristic values ​​of all two arbitrary words in each sentence.

[0063] In some embodiments of the present application, the cumulative sum of the first feature values ​​of all two arbitrary words in each sentence is used as the webpage keyword feature coefficient of each sentence. The larger the webpage keyword feature coefficient, the more consistent the description of the sentence is with the main content of the webpage.

[0064] Step 3: Based on the keyword feature coefficients of all sentences on each web page, combined with the TF-IDF scores and semantic vectors of all words in each sentence, the topic content coherence index of each web page is obtained.

[0065] However, relying solely on the keyword feature coefficient of a single sentence cannot fully capture and summarize the entire object described by the web page text. A web page usually contains multiple sentences, each of which may convey different information, and when a sentence is examined separately, it may be associated with multiple different web page topics. If the sentences are semantically related, the content of the entire web page will revolve around the central theme. Therefore, analyzing the semantic relevance between these sentences helps to build a complete view of the content to analyze whether the web page content is consistent with the theme.

[0066] According to the numerical characteristics of the webpage keyword characteristic coefficients of the adjacent sentences of each webpage, combined with the TF-IDF scores of all words in each sentence of each webpage, the second characteristic value of each sentence of each webpage is obtained, which is specifically:

[0067] The sum of the webpage keyword feature coefficients of each sentence of each webpage and its adjacent sentences before and after is taken as the local feature of each sentence of each webpage.

[0068] In some embodiments of the present application, the sum of the webpage keyword feature coefficients of the i-th sentence and the i-1-th and i+1-th sentences of each webpage is used as the local feature of the i-th sentence of each webpage. It should be noted that the first sentence and the last sentence are processed as follows: the sum of the webpage keyword feature coefficient of the first sentence and the webpage keyword feature coefficient of the next sentence is used as the local feature of the i-th sentence of each webpage. As the local feature of the first sentence; the sum of the webpage keyword feature coefficient of the last sentence and the webpage keyword feature coefficient of the previous sentence As a local feature of the last sentence.

[0069] The fusion result of the local feature and the average TF-IDF score of all words in the corresponding sentence is used as the second feature value.

[0070] It should be noted that the specific fusion calculation methods include: addition, multiplication, mixed operations of addition and multiplication, etc., and this application does not impose any restrictions on this.

[0071] In some embodiments of the present application, the product of the local feature and the average TF-IDF score of all words in the corresponding sentence is used as the second feature value. If the second feature value is larger, it means that the description of the sentence and its two preceding and following sentences is more consistent with the main content of the webpage, and has a higher representativeness.

[0072] According to the distribution difference of the semantic vectors of all words between each sentence of each web page and the next sentence, the third eigenvalue of each sentence of each web page is obtained, which is specifically:

[0073] The mean values ​​of the elements in the same position between the semantic vectors of all words in each sentence of each web page are used to form the mean vector of each sentence; the correlation coefficient between the mean vector of each sentence of each web page and the mean vector of the next sentence is used as the third eigenvalue of each sentence of each web page.

[0074] It should be noted that the correlation coefficient measures the similarity between sequences, and specifically includes: Pearson correlation coefficient, cosine similarity, Jaccard similarity, etc.; this application does not impose any limitation on this.

[0075] In some embodiments of the present application, the absolute value of the cosine similarity between the mean vector of each sentence in each web page and the mean vector of the next sentence is used as the third eigenvalue of each sentence in each web page. The larger the third eigenvalue, the more semantically consistent the two consecutive sentences are.

[0076] Get the coherence index of the subject content of each web page, specifically:

[0077] The fusion result of the second eigenvalue and the third eigenvalue of all sentences in each web page is recorded as the topic content coherence index of each web page.

[0078] In some embodiments of the present application, the cumulative sum of the products of the second eigenvalue and the third eigenvalue of all sentences in each web page is recorded as the subject content coherence index of each web page. If the subject content coherence index is larger, it means that the text data in the web page is more focused on a specific topic, the customer may be more interested, and the importance of the web page is higher.

[0079] Step 4: Based on the coherence index of the subject content of each web page and the similarity of the word distribution between web pages, the PageRank algorithm is used to obtain the PageRank value of each web page.

[0080] Furthermore, if the content correlation of text data of different web pages is found to be higher in the historical web pages browsed by the customer, this indicates that the customer has a clear preference for information related to one or more topics, that is, during the customer's browsing process, the possibility of jumping from a link in a web page to the next web page is higher, and the possibility of randomly opening a web page is lower.

[0081] According to the similarity of word distribution between web pages browsed by the user, combined with the subject content coherence index, the user's core content relevance index is obtained:

[0082] For each web page, a preset number of words are selected based on the TF-IDF score to form an important word character sequence for each web page.

[0083] In some embodiments of the present application, in order to better analyze the correlation between web pages, the TF-IDF scores of all words in a web page are arranged in order from large to small, and the words corresponding to the top 10% are taken in descending order of TF-IDF scores to form an important word character sequence.

[0084] Calculate the sum of the subject content coherence indexes of any two web pages; and obtain the distance measure of the important word character sequences of the any two web pages.

[0085] Based on the addition result and the distance metric of the arbitrary two web pages, a correlation factor of the arbitrary two web pages is obtained; wherein the correlation factor is in an increasing relationship with the addition result and in a decreasing relationship with the distance metric.

[0086] It should be noted that the distance metric between sequences is a method for measuring sequence similarity or difference, including: Jaccard similarity, Hamming distance, Levenshtein distance, etc.; the reverse relationship calculation method includes subtraction, division, inverse, etc.; this application does not impose any restrictions on this.

[0087] In some embodiments of the present application, the ratio of the addition result of any two web pages to the Levenshtein distance of the corresponding important word character sequence is used as the correlation factor of the any two web pages. It should be noted that in the process of calculating the ratio, in order to avoid the situation where the denominator is zero, a preset value needs to be added to the denominator, and the preset value is 1. In addition, the calculation of the Levenshtein distance is a well-known technology, and the specific process will not be repeated.

[0088] It should be understood that the smaller the denominator of the correlation factor is, the higher the similarity of the web page text content is, and the larger the numerator is, the more likely it is that they belong to the same topic.

[0089] In order to provide customers with web page recommendations that are more in line with their interests, during the web page sorting process, the lower the damping coefficient of the PageRank algorithm, the greater the probability of random jumps, and the calculated PageRank values ​​are relatively evenly distributed among the web pages; the higher the damping coefficient, the more likely it is that customers will jump between web pages through links rather than randomly, and the PageRank value will be more concentratedly allocated to web pages with highly related content and interconnected links. The higher the PageRank value, the higher the ranking of the web page.

[0090] The distribution trend value of the correlation factor obtained by combining all the web pages browsed by the customer in pairs is used as the customer's core content correlation index.

[0091] It should be noted that the distribution trend value describes the degree of dispersion or concentration of the data distribution, specifically including: mean, variance, standard deviation, median, mode, etc., and this application does not impose any restrictions on this.

[0092] In some embodiments of the present application, the average value of the correlation index obtained by combining all web pages in pairs is used as the core content correlation index of the client. The higher the calculated core content correlation index is, the greater the correlation between the historical web pages browsed by the client is.

[0093] Furthermore, the damping coefficient of the PageRank algorithm is obtained according to the core content relevance index of the client; wherein the damping coefficient has a consistent changing trend with the core content relevance index.

[0094] In some embodiments of the present application, since the damping coefficient is a value between 0 and 1, a logarithmic normalization method is used to normalize the core content relevance index of the customer, and the result is used as the damping coefficient. The logarithmic normalization method is a well-known technology, and the specific process is not repeated here.

[0095] All web pages browsed by customers are used as inputs to the PageRank algorithm. Combined with the damping coefficient, the PageRank values ​​of each web page browsed by customers are obtained and used as the customer data analysis results. The higher the PageRank, the more important the web page is to the customer, and customers are more inclined to browse web pages with high PageRank values.

[0096] Step 5: The total number of clicks and the length of stay of all web pages within the preset time of the customer are combined with the subject content coherence index and PageRank value to obtain the customer behavior feature extraction result.

[0097] By applying the PageRank algorithm, the importance of a customer's historical web pages can be evaluated. However, the calculation of PageRank mainly depends on the link structure of the web page. If a web page contains a large number of low-quality links, this may distort the calculation result of its importance. For example, a web page may get a high PageRank value because it has many links, but in fact, the customer is not interested in the web page.

[0098] Furthermore, the customer's operation behavior on a certain webpage is combined to make up for the defect of the PageRank algorithm that the PageRank value may be inconsistent with the interest level due to low-quality links. The longer the stay time on a single webpage and the more clicks it receives, the higher the customer's attention to the webpage. Moreover, if the stay time on the webpage is relatively long each time it is clicked, it means that the attention is greater.

[0099] Based on this, based on the total number of times customers click to enter each web page within the preset time and the length of time they stay, we can get the uniformity of customers' clicks and stays on each web page:

[0100] For any web page browsed by a customer, the total number of times the customer clicks to enter the web page within a preset time and the average of all stay times are combined, and combined with the discrete degree of the customer's stay time on the web page, the uniformity of the customer's clicks and stays on the web page is obtained.

[0101] In some embodiments of the present application, the formula for the uniformity of a customer's click stay on the jth web page is: ,in, represents the uniformity of customers’ clicks and stays on the jth web page, represents the total number of clicks on the jth web page by customers within half a year, represents the average length of time a customer spends on the jth webpage within half a year. represents the standard deviation of the duration of all clicks on the jth web page by customers within half a year, where It represents the coefficient of variation of the length of time a customer stays on the jth webpage within six months.

[0102] As another embodiment of the present application, the formula for the uniformity of the click stay of the customer on the jth web page is: , Represents the base 2 logarithmic function.

[0103] It should be understood that the more clicks there are on each web page, the smaller the standard deviation of the dwell time is, which means that the time a customer spends on the jth web page each time after clicking on it is more uniform, which means that the customer pays more attention to the web page and the uniformity of clicks and dwell times on the web page is higher.

[0104] Since the subject content coherence index indicates the relevance between the content of a web page and other web pages to a certain extent, the greater the difference in the core content relevance index between web pages, the more prominent the subject content is between the two web pages. The greater the uniformity of clicks and stays on the current web page, the more attention customers pay to the current web page. When customers pay more attention to a web page, the smaller the difference between the main content of the web page and other web pages, the more interested customers are in the web page.

[0105] According to the uniformity of customers' clicks and stays on each web page, combined with the subject content coherence index, the consistency of customers' stay interest on each web page is obtained:

[0106] The inverse of the difference between the subject content coherence index of any web page and all other web pages is obtained, and the result of merging the uniformity of the customer's click stay on any web page with the inverse is taken as the consistency of the customer's stay interest on any web page.

[0107] In some embodiments of the present application, the formula for the consistency of the customer's interest in staying on the jth web page is: , represents the consistency of the customer's interest in staying on the jth web page, represents the uniformity of customers’ clicks and stays on the jth web page, represents the normalized value of the topic content coherence index of the jth web page, represents the normalized value of the topic content coherence index of the kth web page, Indicates the total number of web pages viewed by customers. Indicates that the preset parameter factor is greater than zero, and the default value is 0.1.

[0108] It should be understood that the greater the consistency of the customer's interest in each web page, the higher the customer's attention to the web page. If the degree of subject prominence between the web page and other historical web pages is small, the interest in the web page should be increased.

[0109] Based on the consistency of the customer's interest in each web page and the PageRank value of each web page, the customer behavior feature extraction results are obtained:

[0110] The consistency of the customer's interest in each web page is integrated with the PageRank value to obtain the interest score of each web page; based on the interest score, all web pages browsed by the customer within a preset time are sorted in descending order, and the top set number of web pages are used as the customer's behavioral feature extraction results.

[0111] In some embodiments of the present application, the PageRank value represents the importance of a web page, and the sum of the customer's interest consistency at the jth web page and the PageRank value is used as the interest score of the jth web page; wherein the flowchart for obtaining the interest score is as follows: Figure 2 shown.

[0112] Furthermore, all web pages browsed by customers in the past six months are sorted in descending order according to their interest scores. The higher the ranking of the web pages, the higher the customer's interest level, and the customers who browse the top-ranked web pages have higher browsing frequency and stay time. The top 100 web pages are used as the customer behavior feature extraction results. In this way, the browsing behavior pattern of the customer's browsing history web pages can be analyzed, and the extraction of customer browsing behavior features is realized.

[0113] The embodiment of the present application provides a method for extracting customer behavior features based on data analysis, the method comprising: firstly processing text data collected from a web page to obtain all sentences and all words in the sentences, providing an analysis basis for subsequent customer data analysis of the web page; and obtaining the word's part of speech and frequency to provide a data basis for feature extraction of the main content of the web page, obtaining the word's TF-IDF score to measure the importance of the word to the web page text data; constructing a web page keyword feature coefficient to measure the part of speech distribution of each sentence, and based on the part of speech to measure the possibility of each sentence containing core content; constructing a topic content coherence index to judge the customer's interest in the web page; obtaining a PageRank value, combining with the PageRank algorithm to effectively avoid the damping coefficient in the PageRank algorithm being too large or too small, thereby improving the accuracy of subsequent extraction of customer behavior features; further combining with the customer's browsing time on the web page to obtain the customer's behavior feature extraction result, making up for the limitations of the PageRank algorithm that may be caused by excessive reliance on the link structure, thereby improving the accuracy of customer behavior feature extraction.

[0114] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two continuous operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

[0115] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A customer behavior feature extraction method based on data analysis, characterized in that: The method comprises the following steps: Based on the length of time that customers spend browsing web pages within a preset time and all text data on the web pages, combined with a neural network model, all sentences on each web page, all words in each sentence, and the semantic vector of each word are obtained; the words in each sentence on each web page are tagged with parts of speech, and the frequency of occurrence of each word in each sentence on each web page and the TF-IDF score are obtained; According to the tag value, frequency distribution and distance distribution of the part of speech of any two words in each sentence of each web page, the web page keyword feature coefficient of each sentence of each web page is obtained; According to the webpage keyword feature coefficients of all sentences in each webpage, combined with the TF-IDF scores and semantic vectors of all words in each sentence, the topic content coherence index of each webpage is obtained; According to the coherence index of the subject content of each web page, combined with the similarity of the distribution of words between web pages, the PageRank algorithm is used to obtain the PageRank value of each web page; The total number of clicks and the length of stay of all web pages within the preset time of the customer are combined with the subject content coherence index and PageRank value to obtain the customer behavior feature extraction result; The customer behavior feature extraction result is obtained as follows: Based on the total number of times customers click to enter each web page and the length of time they stay within a preset time, the uniformity of customers' clicks and stays on each web page is obtained; According to the uniformity of the customer's clicks and stays on each web page, combined with the subject content coherence index, the consistency of the customer's stay interest on each web page is obtained; The consistency of the customer's interest in each web page is combined with the PageRank value to obtain the interest score of each web page; based on the interest score, all web pages browsed by the customer within a preset time are sorted in descending order, and the top set number of web pages are used as the customer's behavior feature extraction results; The steps for obtaining the uniformity of the customer's click stay on each web page are: For any web page browsed by a customer, the total number of times the customer clicks to enter the web page within a preset time and the average of all the stay times are combined, and combined with the discrete degree of the customer's stay time on the web page, the uniformity of the customer's clicks and stays on the web page is obtained; The consistency of the customer's interest in staying on each web page is obtained as follows: The inverse of the difference between the subject content coherence index of any web page and all other web pages is obtained, and the result of merging the uniformity of the customer's click stay on any web page with the inverse is taken as the consistency of the customer's stay interest on any web page.

2. The method for extracting customer behavior features based on data analysis according to claim 1, characterized in that: The specific steps of obtaining the webpage keyword characteristic coefficient of each sentence of each webpage include: Based on each sentence, if any two words have the same part of speech, a first preset value is used as the difference weight of the any two words; otherwise, a second preset value is used as the difference weight of the any two words; wherein the first preset value is greater than the second preset value; The sum of the frequencies of any two words in each sentence and the product of the difference weight are used as the numerator of the first feature value of any two words in each sentence; the difference in word order of any two words in the corresponding sentence is used as the denominator of the first feature value of any two words in each sentence; The fusion result of the first feature values ​​of all arbitrary two words in each sentence is used as the webpage keyword feature coefficient of each sentence of each webpage.

3. The method for extracting customer behavior features based on data analysis according to claim 1, characterized in that: The method of obtaining the coherence index of the subject content of each web page is specifically as follows: According to the numerical characteristics of the web page keyword characteristic coefficients of the adjacent sentences of each web page, combined with the TF-IDF scores of all words in each sentence of each web page, the second characteristic value of each sentence of each web page is obtained; Obtaining a third eigenvalue of each sentence on each web page according to the distribution difference of the semantic vectors of all words between each sentence on each web page and the next sentence; The fusion result of the second eigenvalue and the third eigenvalue of all sentences in each web page is used as the topic content coherence index of each web page.

4. The method for extracting customer behavior characteristics based on data analysis according to claim 3, characterized in that: The method of obtaining the second characteristic value of each sentence of each web page is specifically as follows: The sum of the webpage keyword feature coefficients of each sentence of each webpage and its adjacent sentences before and after is used as the local feature of each sentence of each webpage; The fusion result of the local feature and the average TF-IDF score of all words in the corresponding sentence is used as the second feature value of each sentence.

5. The method for extracting customer behavior characteristics based on data analysis according to claim 3, characterized in that: The third characteristic value of each sentence of each web page is obtained as follows: The mean values ​​of the elements in the same position between the semantic vectors of all words in each sentence of each web page are used to form the mean vector of each sentence; the correlation coefficient between the mean vector of each sentence of each web page and the mean vector of the next sentence is used as the third eigenvalue of each sentence of each web page.

6. The method for extracting customer behavior characteristics based on data analysis according to claim 1, characterized in that: The specific steps of obtaining the PageRank value of each web page include: For each web page, a preset number of words are selected based on the TF-IDF score to form an important word character sequence for each web page; Based on the difference between the character sequences of important words of any two web pages, combined with the coherence index of the subject content, a correlation factor of the any two web pages is obtained; The normalized value of the distribution trend value of the correlation factor obtained by combining all the web pages browsed by the customer in pairs is used as the damping coefficient of the customer in the PageRank algorithm; All web pages browsed by customers are used as the input of PageRank algorithm, and combined with the damping coefficient, the PageRank value of each web page browsed by customers is obtained.

7. The method for extracting customer behavior characteristics based on data analysis according to claim 6, characterized in that: The step of obtaining the correlation factor of any two web pages comprises: Calculate the sum of the subject content coherence indexes of any two web pages; obtain the distance measure of the important word character sequences of the any two web pages; Based on the addition result and the distance metric of the arbitrary two web pages, a correlation factor of the arbitrary two web pages is obtained; wherein the correlation factor is in an increasing relationship with the addition result and in a decreasing relationship with the distance metric.