WO2019061664A1 - Electronic device, user's internet surfing data-based product recommendation method, and storage medium - Google Patents

Electronic device, user's internet surfing data-based product recommendation method, and storage medium Download PDF

Info

Publication number
WO2019061664A1
WO2019061664A1 PCT/CN2017/108789 CN2017108789W WO2019061664A1 WO 2019061664 A1 WO2019061664 A1 WO 2019061664A1 CN 2017108789 W CN2017108789 W CN 2017108789W WO 2019061664 A1 WO2019061664 A1 WO 2019061664A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
keyword table
service keyword
product recommendation
predetermined
Prior art date
Application number
PCT/CN2017/108789
Other languages
French (fr)
Chinese (zh)
Inventor
刘睿恺
吴振宇
王建明
肖京
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019061664A1 publication Critical patent/WO2019061664A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries

Definitions

  • the present invention relates to the field of Internet product recommendation, and in particular, to an electronic device and a product recommendation method based on user internet data.
  • the present invention provides an electronic device and a product recommendation method based on user Internet data, which can automatically complete product recommendation of the user according to the user's online data, and improve recommendation efficiency and accuracy.
  • a first aspect of the present invention provides a product recommendation method based on user internet data, and the method includes the following steps:
  • the second business keyword table corresponding to each of the other users is generated, wherein the business keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes the same user at the first preset All business keywords during the time;
  • the predetermined terminal sends a product recommendation instruction for the user.
  • a second aspect of the present invention provides an electronic device including a memory, a processor, and a user-based data-based product stored on the memory and operable on the processor
  • the recommendation system when the product recommendation system based on the user's Internet data is executed by the processor, implements the following steps:
  • the first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
  • a third aspect of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a product recommendation system based on user internet data, and the product recommendation system based on user internet data
  • the at least one processor can be executed by the at least one processor to perform the following steps:
  • the first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
  • the electronic device, the product recommendation method based on the user's Internet access data, and the computer readable storage medium obtain the Internet data of each user within a preset time from a predetermined database;
  • the predetermined business keyword table generation rule analyzes the obtained online data of each user to generate a service keyword table corresponding to each user;
  • the product preference recommendation model corresponding to the user is analyzed according to the predetermined user preference product recommendation model to determine the product corresponding to the preference of the user, and the product recommendation instruction for the user preference is sent to the predetermined terminal.
  • FIG. 1 is a schematic diagram of an optional hardware architecture of an electronic device of the present invention
  • FIG. 2 is a schematic diagram of a program module of a product recommendation program based on user internet data in an implementation of an electronic device according to the present invention
  • FIG. 3 is a schematic flow chart of an implementation of a preferred embodiment of a product recommendation method based on user internet data according to the present invention.
  • first, second and the like in the present invention are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. .
  • features defining “first” and “second” may include at least one of the features, either explicitly or implicitly.
  • the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
  • FIG. 1 it is a schematic diagram of an optional application environment of the electronic device of the present invention.
  • the electronic device 1 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through a system bus. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static random access.
  • Memory SRAM
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • PROM programmable read only memory
  • magnetic memory magnetic disk, optical disk, and the like.
  • the memory 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1.
  • the memory 11 is also It may be an external storage device of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like.
  • the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device thereof.
  • the memory 11 is generally used to store an operating system installed on the electronic device 1 and various types of application software, such as a product recommendation program based on user Internet data. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is generally used to control the overall operation of the electronic device 1.
  • the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running product recommendation program based on user Internet data. .
  • the network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
  • the device may further include a user interface
  • the user interface may include a display
  • an input unit such as a keyboard
  • the optional user interface may further include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display may also be appropriately referred to as a display screen or a display unit for displaying information processed in the electronic device and a user interface for displaying visualization.
  • the memory 11 stores a product recommendation program based on the user's Internet data.
  • the processor 12 executes the product recommendation program based on the user's Internet data stored in the memory 11 , the following steps are implemented:
  • the first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
  • the online data of the user within a preset time may be obtained according to the user's identification information, such as a login name, a registered user name, a mobile phone number, and the like. And won
  • the received Internet data is data for recording the user's real behavior. For example, at 2:40 pm on March 27, 2017, the user named A clicks the button of the certificate to send the traffic activity, and downloads the certificate APP.
  • the user's behavior and preferred products can be analyzed according to the words with actual business meaning in the data recording the user's real behavior. For example, the verb can be clicked and downloaded according to the above-mentioned real behavior data to describe the user's online behavior, and the nouns describing the product.
  • the first online data of the user within the first preset time (for example, one week) is first obtained from a predetermined database (the user) The real online behavior data), and other individual users (for example, other users of the predetermined preset number of users except the other users), the second Internet data in the first preset time (other individual users) Real online behavior data); then, using the predetermined business keyword table generation rule to analyze the obtained first Internet data, generating a first service keyword table corresponding to the user, and acquiring the second Internet data Performing an analysis to generate a second service keyword table corresponding to each of the other users, where the predetermined service keyword table generation rule includes:
  • Constructing a set of service keywords in the online data of the preset number of users in the second preset time specifically, in an embodiment, constructing the business keywords in the Internet data of 300 users within two months
  • the process of forming the set includes pre-acquiring the online data of 300 users in two months, and extracting keywords with actual business meanings from the obtained online data, wherein the keywords have actual business meanings.
  • Including verbs that describe the user's online behavior eg, click, download, purchase, etc.
  • nouns describing the product eg, food, credit card, wealth management products, etc.
  • the set of nouns is a collection of business keywords constructed to meet the above requirements.
  • the business keyword generates a corresponding first business keyword table; similarly, the second online data traverses the set of the business keyword to obtain the business keyword in the set composed of the business keyword from the second online data.
  • Each of the second service keywords generates a corresponding second service keyword table based on the acquired second service keywords.
  • the predetermined similarity analysis rule may be a cosine angle similarity method, a Euclidean distance metric method, or a Pearson correlation coefficient method.
  • the Euclidean distance metric is taken as an example, wherein the Euclidean distance metric uses the following formula to calculate the similarity:
  • x and y in the above formula are respectively normalized vectors, and the result of the above formula is the similarity between the vector x and the vector y.
  • the user and other users are calculated.
  • the first service vector table corresponding to the user is normalized according to a preset normalization manner to obtain the first vector x in the above formula, and the second service corresponding to each other user is obtained.
  • a second vector y different from the above formula is obtained, and then the first vector x and the other second vectors y are respectively substituted into the above similarity calculation.
  • a formula that calculates a similarity between the user and each of the other users, and compares the calculated similarity with a preset similarity threshold, and if the calculated similarity is greater than a preset similarity threshold, Determined to be a similar user for this user.
  • the predetermined user preference product recommendation model is a collaborative filtering recommendation model
  • the training process of the user preference product recommendation model includes the following steps:
  • the user preference product recommendation model is trained by using a second business keyword table of each similar user in the training set to obtain a trained user preference product recommendation model;
  • the user preference product recommendation model is tested by using the second service keyword table of each similar user in the test set. If the test passes, the training ends, or if the test fails, the second business keyword of the similar user in the training set is increased.
  • the table samples and re-execute the steps described above for training the user preference product recommendation model.
  • the steps of testing the user preference product recommendation model using the second business keyword table of each similar user in the test set include:
  • a similar user's preference probability value for the preset type product is greater than a preset preference probability threshold, the model accuracy test is performed for the similar user, and the user is confirmed to pay attention to the preset type product from the online data of the similar user.
  • a frequency value if the similar user pays attention to the frequency value of the preset type product exceeds a preset frequency threshold, determining that the model accuracy test result for the similar user is correct, or if the similar user pays attention to the preset type product If the frequency value is equal to or less than the preset frequency threshold, it is determined that the model accuracy test result for the similar user is an error;
  • the test for the user preference product recommendation model is determined, or if the correct model accuracy test results account for all models If the percentage of the accuracy test result is less than or equal to the preset percentage threshold, it is determined that the test for the user preference product recommendation model fails.
  • the first service keyword table and the second service keyword table are analyzed by using a predetermined clustering algorithm to analyze the second service.
  • the users corresponding to the keyword table belong to the same user group.
  • the predetermined clustering algorithm includes a density-based clustering algorithm, and the specific process is: pre-setting a density hierarchy (for example, in the embodiment, the first service
  • the keyword list includes different preset types of business keywords corresponding to different density levels, a highest density threshold (eg, including 6 preset types of business keywords), and a minimum density threshold (eg, including 3 pre- Set the type of business keyword), and according to the set density level, the highest density threshold, and the lowest density threshold, analyze the density levels included in each second business keyword table, and the density thresholds included in each density level, and analyze The density thresholds are arranged according to the density threshold from high to low, the highest density threshold is selected, and all preset types of business keywords are clustered for the first time based on the selected density threshold to generate cluster clusters.
  • the residual density threshold repeatedly performs the above clustering process until the ith clustering is performed to generate a clustering family; wherein the clustering cluster generated by the i-th clustering process can only be expanded in the subsequent clustering process and cannot be Segmentation or merging into other clusters; and clusters that satisfy the current density threshold are preferentially extracted; the algorithm is for all preset classes in turn Keywords business at different cluster density threshold, the i-th cluster results directly as input i + 1-time clustering, until the remaining threshold value is less than the density of the lowest density threshold, then the algorithm ends. So far, the user corresponding to the first service keyword table corresponding to each user in the second service keyword table is clustered by the user group.
  • the product recommendation program based on the user's Internet data may be divided into one or more program modules, and one or more program modules are stored in the memory 11 and processed by one or more
  • the processor which is processor 12 in this embodiment
  • a program module as used herein refers to a series of computer program instructions that are capable of performing a particular function.
  • FIG. 2 it is a schematic diagram of a product recommendation program module based on user internet data in an embodiment of the electronic device of the present invention.
  • the product recommendation program based on the user's Internet access data may be divided into an acquisition module 201, a first analysis module 202, a second analysis module 203, and a third analysis module 204.
  • the functions or operation steps implemented by the program modules 201-204 in this embodiment are similar to the above, and are not described in detail herein, for example, where:
  • the obtaining module 201 is configured to: if the product is recommended to the user with the identification information, obtain the first online data of the user in the first preset time from the predetermined database, and the other users are in the first pre-preparation Set the second online data in time;
  • the first analysis module 302 is configured to analyze the obtained first Internet data by using a predetermined service keyword table generation rule, generate a first service keyword table corresponding to the user, and generate the second Internet data. Performing an analysis to generate a second service keyword table corresponding to each of the other users, wherein the service keyword includes a verb describing the user's online behavior and a noun describing the product, and the business keyword table includes all services of the same user within the first preset time. Key words;
  • the second analysis module 303 is configured to analyze the first service keyword table and the second service keyword table according to the predetermined similarity analysis rule to analyze the similar user corresponding to the user;
  • the third analysis module 304 is configured to analyze the first service keyword table and the second service keyword table corresponding to the similar user according to the predetermined user preference product recommendation model, to determine the product that the user prefers, to a predetermined
  • the terminal sends a product recommendation instruction for the user.
  • the present invention also provides a product recommendation method based on user online data.
  • FIG. 3 it is a schematic flowchart of an implementation example of a preferred example of a product recommendation method based on user Internet data according to the present invention. The method can be performed by a device that can be implemented by software and/or hardware.
  • the product recommendation method based on the user's online data includes:
  • Step S301 If the product needs to be recommended to the user with the identification information, the first online data of the user in the first preset time and the other users in the first preset time are obtained from the predetermined database. Second internet data;
  • Step S302 analyzing the acquired first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other each a second service keyword table corresponding to the user, wherein the service keyword includes a verb describing the user's online behavior and a noun describing the product, and the business keyword table includes all the business keywords of the same user within the first preset time;
  • Step S303 analyzing the first service keyword table and the second service keyword table according to the predetermined similarity analysis rule, to analyze the similar user corresponding to the user;
  • Step S304 analyzing the first service keyword table and the second service keyword table corresponding to the similar user according to the predetermined user preference product recommendation model, to determine the product preferred by the user, and sending the predetermined user to the predetermined terminal.
  • Product recommendation instructions analyzing the first service keyword table and the second service keyword table corresponding to the similar user according to the predetermined user preference product recommendation model, to determine the product preferred by the user, and sending the predetermined user to the predetermined terminal.
  • the online data of the user within a preset time may be obtained according to the user's identification information, such as a login name, a registered user name, a mobile phone number, and the like.
  • the obtained online data is data for recording the real behavior of the user. For example, at 2:40 pm on March 27, 2017, the user with the user name A clicks the button of the card to send the traffic activity, and downloads the certificate APP.
  • the product that has the actual business meaning in the data that records the user's real behavior can be used to analyze the user's behavior and preferred products. For example, the verb can be clicked and downloaded according to the above-mentioned real behavior data to describe the user's online behavior, and the product description is described.
  • Nouns, APPs, traffic, and buttons to analyze the user's behavior and preferences of the product, so if you can extract words with actual business meaning from the online data of the recorded user's real behavior, you can get the Words with actual business meaning effectively analyze the products that the user prefers, and recommend related products to the user according to the products preferred by the user.
  • the first online data of the user within the first preset time (for example, one week) is first obtained from a predetermined database (the user) The real online behavior data), and other individual users (for example, other users of the predetermined preset number of users except the other users), the second Internet data in the first preset time (other individual users) Real online behavior data); then, using the predetermined business keyword table generation rule to analyze the obtained first Internet data, generating a first service keyword table corresponding to the user, and acquiring the second Internet data Performing an analysis to generate a second service keyword table corresponding to each of the other users, where the predetermined service keyword table generation rule includes:
  • Constructing a set of service keywords in the online data of the preset number of users in the second preset time specifically, in an embodiment, constructing the business keywords in the Internet data of 300 users within two months
  • the process of composing the collection includes pre-acquisition of 300 users online within two months.
  • Keywords having actual business meanings include verbs describing user online behavior (eg, clicking, downloading, purchasing, etc.), and Descriptive product nouns (eg, food, credit cards, wealth management products, etc.), the set of extracted verbs describing the user's online behavior, and the nouns describing the product are the set of business keywords that satisfy the above requirements. .
  • Traversing the set of the business keyword obtaining the first words matching the business keywords in the set of the business keywords from the first online data, and generating the corresponding first service based on the acquired first words Keyword table; similarly, traversing a set of business keyword sets, obtaining second words matching the business keywords in the set of business keywords from the second internet data, and based on the acquired second words The word generates a corresponding second business keyword table.
  • the predetermined similarity analysis rule may be a cosine angle similarity method, a Euclidean distance metric method, or a Pearson correlation coefficient method.
  • the Euclidean distance metric is taken as an example, wherein the Euclidean distance metric uses the following formula to calculate the similarity:
  • x and y in the above formula are respectively normalized vectors, and the result of the above formula is the similarity between the vector x and the vector y.
  • the user and other users are calculated.
  • the first service vector table corresponding to the user is normalized according to a preset normalization manner to obtain the first vector x in the above formula, and the second service corresponding to each other user is obtained.
  • a second vector y different from the above formula is obtained, and then the first vector x and the other second vectors y are respectively substituted into the above similarity calculation.
  • a formula that calculates a similarity between the user and each of the other users, and compares the calculated similarity with a preset similarity threshold, and if the calculated similarity is greater than a preset similarity threshold, Determined to be a similar user for this user.
  • the predetermined user preference product recommendation model is a collaborative filtering recommendation model
  • the training process of the user preference product recommendation model includes the following steps:
  • the user preference product recommendation model is trained by using a second business keyword table of each similar user in the training set to obtain a trained user preference product recommendation model;
  • the user preference product recommendation model is tested by using the second service keyword table of each similar user in the test set. If the test passes, the training ends, or if the test fails, the second business keyword of the similar user in the training set is increased.
  • the table samples and re-execute the steps described above for training the user preference product recommendation model.
  • a similar user's preference probability value for the preset type product is greater than a preset preference probability threshold, the model accuracy test is performed for the similar user, and the user is confirmed to pay attention to the preset type product from the online data of the similar user.
  • a frequency value if the similar user pays attention to the frequency value of the preset type product exceeds a preset frequency threshold, determining that the model accuracy test result for the similar user is correct, or if the similar user pays attention to the preset type product If the frequency value is equal to or less than the preset frequency threshold, it is determined that the model accuracy test result for the similar user is an error;
  • the test for the user preference product recommendation model is determined, or if the correct model accuracy test results account for all models If the percentage of the accuracy test result is less than or equal to the preset percentage threshold, it is determined that the test for the user preference product recommendation model fails.
  • the first service keyword table and the second service keyword table are analyzed by using a predetermined clustering algorithm to analyze the Among the users corresponding to the two service keyword tables, the users corresponding to the first service keyword table belong to the same user group.
  • the predetermined clustering algorithm includes a density-based clustering algorithm, and the specific process is: pre-setting a density level (for example, in the embodiment, the first service keyword table includes different preset types of business keywords.
  • the number corresponds to setting different density levels), the highest density threshold (for example, including 6 preset types of business keywords), and the lowest density threshold (for example, including 3 preset types of business keywords), and according to the settings
  • the density level, the highest density threshold, and the lowest density threshold analyze the density levels contained in each of the second business keyword tables, and the density thresholds included in each density level, and the respective density thresholds to be analyzed are based on the density threshold Low arrangement, selecting the highest density threshold and performing the first clustering on all preset types of business keywords based on the selected density threshold, generating a cluster cluster, and repeating the remaining density threshold to perform the clustering process until proceeding
  • the i-th cluster generates a cluster family; wherein the cluster cluster generated by the i-th cluster process is in the subsequent clustering process Can only be extended and cannot be split or merged into other clusters; and clusters that satisfy the current density threshold are preferentially extracted; the algorithm sequentially clusters all preset types of business keywords at different density thresholds, i The result of the sub-
  • the embodiment of the present invention further provides a computer readable storage medium, where the product recommendation program based on the user's Internet data is stored, and the product recommendation program based on the user's Internet data is executed by the processor as follows: operating:
  • the first online data collected by the user is analyzed by using a predetermined business keyword table generation rule, and the first service keyword table corresponding to the user is generated, and the acquired second online data is analyzed to generate corresponding addresses of other users.
  • a second service keyword table wherein the service keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes all business keywords of the same user in the first preset time ;
  • the specific embodiment of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the electronic device and the product recommendation method based on the user's Internet access data, and will not be described herein.
  • the electronic device of the present invention, the product recommendation method based on the user's Internet access data, and the computer readable storage medium utilize the advance data by acquiring the Internet data of each user within a preset time period from a predetermined database.
  • the determined business keyword generation rule analyzes the obtained online data to generate a business keyword table corresponding to each user; analyzes the business keyword table according to the predetermined similarity analysis rule to analyze the corresponding user Similar user; analyzing the first service keyword table corresponding to the user and the second service keyword table corresponding to the similar user according to the predetermined user preference product recommendation model, to determine the product preferred by the user, to the predetermined terminal Send a product recommendation instruction for this user. It can automatically complete the product recommendation of the user's preference according to the user's online data, and improve the recommendation efficiency and accuracy.

Abstract

Disclosed in the present invention is a user's Internet surfing data-based product recommendation method. Said method comprises acquiring, from a predetermined database, Internet surfing data of each user within a preset time; using a predetermined service keyword table generation rule to analyze the acquired Internet surfing data of each user, so as to generate a service keyword table corresponding to each user; and analyzing, according to a predetermined user preferred product recommendation model, the service keyword table corresponding to the user, so as to determine a preferred product corresponding to the user, and sending, to a predetermined terminal, a product recommendation instruction for the user preference. In this way, the present invention can not only avoid the drawbacks in the prior art of a heavy workload caused by the necessarily analyzing mass redundant data having a low value density, but also improve the working efficiency and the accuracy of product recommendation.

Description

电子装置、基于用户上网数据的产品推荐方法及存储介质Electronic device, product recommendation method based on user internet data, and storage medium
本申请要求于2017年9月30日提交中国专利局、申请号为201710916189.2,发明名称为“电子装置、基于用户上网数据的产品推荐方法及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on September 30, 2017, the Chinese Patent Office, the application number is 201710916189.2, and the invention name is "electronic device, product recommendation method based on user Internet data and storage medium", all contents thereof This is incorporated herein by reference.
技术领域Technical field
本发明涉及互联网产品推荐领域,尤其涉及一种电子装置及基于用户上网数据的产品推荐方法。The present invention relates to the field of Internet product recommendation, and in particular, to an electronic device and a product recommendation method based on user internet data.
背景技术Background technique
在近年来,随着互联网的发展,更好地理解和分析互联网用户的上网行为对于互联网行业的相关应用变得至关重要,例如,个性化产品的推荐、用户的安全性、用户行为的定向等变得至关重要。In recent years, with the development of the Internet, better understanding and analysis of Internet users' online behavior has become crucial for the related applications of the Internet industry, for example, recommendation of personalized products, user security, and user behavior orientation. Etc. became crucial.
目前,已有的针对互联网用户的上网行为的研究没有快速高效的方法,这主要受限于互联网用户真实行为数据的冗余且价值密度低,要从海量冗余的且价值密度低的数据中分析得出互联网用户的兴趣爱好,并根据兴趣爱好有针对性地推荐相关的产品至相关用户的过程需要做大量繁琐的工作,必要的时候还需要人工进行归纳筛选。因此,现有的方法工作量大、效率低,且准确性较低。At present, there is no fast and efficient method for the Internet behavior of Internet users. This is mainly limited by the redundancy of the real behavior data of Internet users and the low value density. It is necessary to obtain data from massive redundancy and low value density. It is necessary to do a lot of tedious work in the process of analyzing the hobbies and interests of Internet users and recommending related products to relevant users according to hobbies and hobbies. Therefore, the existing methods have a large workload, low efficiency, and low accuracy.
发明内容Summary of the invention
有鉴于此,本发明提出一种电子装置及基于用户上网数据的产品推荐方法,能够根据用户的上网数据自动完成用户偏好的产品推荐,提高推荐效率及准确性。In view of this, the present invention provides an electronic device and a product recommendation method based on user Internet data, which can automatically complete product recommendation of the user according to the user's online data, and improve recommendation efficiency and accuracy.
首先,为实现上述目的,本发明第一方面提出一种基于用户上网数据的产品推荐方法,所述方法包括如下步骤:First, in order to achieve the above object, a first aspect of the present invention provides a product recommendation method based on user internet data, and the method includes the following steps:
A、若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;A. If the product needs to be recommended to the user with the identification information, obtain the first online data of the user within the first preset time from the predetermined database, and the other users are in the first preset time. Second online data;
B、利用预先确定的业务关键词表生成规则对所获取的第一上网数据及第二上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同一用户在所述第一预设时间内的所有业务关键词;B. analyzing the obtained first Internet data and the second Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and performing the acquired second Internet data. The second business keyword table corresponding to each of the other users is generated, wherein the business keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes the same user at the first preset All business keywords during the time;
C、根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;C. analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
D、根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向 预先确定的终端发送针对该用户的产品推荐指令。D. analyzing the first service keyword table and the second service keyword table corresponding to the similar user according to a predetermined user preference product recommendation model, to determine a product that the user prefers, to The predetermined terminal sends a product recommendation instruction for the user.
此外,为实现上述目的,本发明第二方面提供一种电子装置,所述电子装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于用户上网数据的产品推荐系统,所述基于用户上网数据的产品推荐系统被所述处理器执行时实现如下步骤:In addition, in order to achieve the above object, a second aspect of the present invention provides an electronic device including a memory, a processor, and a user-based data-based product stored on the memory and operable on the processor The recommendation system, when the product recommendation system based on the user's Internet data is executed by the processor, implements the following steps:
A、若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;A. If the product needs to be recommended to the user with the identification information, obtain the first online data of the user within the first preset time from the predetermined database, and the other users are in the first preset time. Second online data;
B、利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同一用户在所述第一预设时间内的所有业务关键词;B. analyzing the obtained first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other users. Corresponding second service keyword table, wherein the service keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes all services of the same user in the first preset time Key words;
C、根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;C. analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
D、根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。D. The first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
进一步地,为实现上述目的,本发明第三方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有基于用户上网数据的产品推荐系统,所述基于用户上网数据的产品推荐系统可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:Further, in order to achieve the above object, a third aspect of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a product recommendation system based on user internet data, and the product recommendation system based on user internet data The at least one processor can be executed by the at least one processor to perform the following steps:
A、若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;A. If the product needs to be recommended to the user with the identification information, obtain the first online data of the user within the first preset time from the predetermined database, and the other users are in the first preset time. Second online data;
B、利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同一用户在所述第一预设时间内的所有业务关键词;B. analyzing the obtained first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other users. Corresponding second service keyword table, wherein the service keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes all services of the same user in the first preset time Key words;
C、根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;C. analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
D、根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。D. The first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
相较于现有技术,本发明所提出的电子装置、基于用户上网数据的产品推荐方法及计算机可读存储介质,通过从预先确定的数据库中获取各个用户在预设时间内的上网数据;利用预先确定的业务关键词表生成规则对所获取的各个用户的上网数据进行分析,以生成各个用户对应的业务关键词表;根 据预先确定的用户偏好产品推荐模型分析该用户对应的业务关键词表,以确定该用户对应偏好的产品,向预先确定的终端发送针对该用户偏好的产品推荐指令。这样,既可以避免现有技术中要对海量冗余的且价值密度低的数据进行分析而导致的工作量大的弊端,也提高了工作效率以及推荐产品的准确性。Compared with the prior art, the electronic device, the product recommendation method based on the user's Internet access data, and the computer readable storage medium obtain the Internet data of each user within a preset time from a predetermined database; The predetermined business keyword table generation rule analyzes the obtained online data of each user to generate a service keyword table corresponding to each user; The product preference recommendation model corresponding to the user is analyzed according to the predetermined user preference product recommendation model to determine the product corresponding to the preference of the user, and the product recommendation instruction for the user preference is sent to the predetermined terminal. In this way, the disadvantages of the large amount of work caused by the analysis of the data with large redundancy and low value density in the prior art can be avoided, and the work efficiency and the accuracy of the recommended products are also improved.
附图说明DRAWINGS
图1是本发明电子装置一可选的硬件架构的示意图;1 is a schematic diagram of an optional hardware architecture of an electronic device of the present invention;
图2是本发明电子装置一实施中基于用户上网数据的产品推荐程序的程序模块示意图;2 is a schematic diagram of a program module of a product recommendation program based on user internet data in an implementation of an electronic device according to the present invention;
图3是本发明基于用户上网数据的产品推荐方法较佳实施例的实施流程示意图。3 is a schematic flow chart of an implementation of a preferred embodiment of a product recommendation method based on user internet data according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions of "first", "second" and the like in the present invention are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. . Thus, features defining "first" and "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
参阅图1所示,是本发明电子装置一可选的应用环境示意图。Referring to FIG. 1 , it is a schematic diagram of an optional application environment of the electronic device of the present invention.
本实施例中,电子装置1可包括,但不仅限于,可通过系统总线相互通信连接存储器11、处理器12、网络接口13。需要指出的是,图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In this embodiment, the electronic device 1 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through a system bus. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
其中,存储器11至少包括一种类型的可读存储介质,可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器11可以是电子装置1的内部存储单元,例如电子装置1的硬盘或内存。在另一些实施例中,存储器11也 可以是电子装置1的外部存储设备,例如电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器11还可以既包括电子装置1的内部存储单元也包括其外部存储设备。本实施例中,存储器11通常用于存储安装于电子装置1的操作系统和各类应用软件,例如基于用户上网数据的产品推荐程序等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static random access. Memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 is also It may be an external storage device of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like. . Of course, the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device thereof. In this embodiment, the memory 11 is generally used to store an operating system installed on the electronic device 1 and various types of application software, such as a product recommendation program based on user Internet data. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。处理器12通常用于控制电子装置1的总体操作,例如,本实施例中,处理器12用于运行存储器11中存储的程序代码或者处理数据,例如运行的基于用户上网数据的产品推荐程序等。Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is generally used to control the overall operation of the electronic device 1. For example, in this embodiment, the processor 12 is configured to run program code or processing data stored in the memory 11, such as a running product recommendation program based on user Internet data. .
网络接口13可包括无线网络接口或有线网络接口,网络接口13通常用于在电子装置1与其他电子设备之间建立通信连接。The network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
可选地,该装置还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子装置中处理的信息以及用于显示可视化的用户界面。Optionally, the device may further include a user interface, the user interface may include a display, an input unit such as a keyboard, and the optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like. Wherein, the display may also be appropriately referred to as a display screen or a display unit for displaying information processed in the electronic device and a user interface for displaying visualization.
在图1所示的电子装置实施例中,存储器11中存储有基于用户上网数据的产品推荐程序,处理器12执行存储器11中存储的基于用户上网数据的产品推荐程序时实现如下步骤:In the electronic device embodiment shown in FIG. 1 , the memory 11 stores a product recommendation program based on the user's Internet data. When the processor 12 executes the product recommendation program based on the user's Internet data stored in the memory 11 , the following steps are implemented:
A、若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;A. If the product needs to be recommended to the user with the identification information, obtain the first online data of the user within the first preset time from the predetermined database, and the other users are in the first preset time. Second online data;
B、利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同一用户在所述第一预设时间内的所有业务关键词;B. analyzing the obtained first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other users. Corresponding second service keyword table, wherein the service keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes all services of the same user in the first preset time Key words;
C、根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;C. analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
D、根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。D. The first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
通常,可以根据用户的标识信息,例如登录名、注册的用户名、手机号等获取到用户在预设时间内,例如,一周内、一个月内等的上网数据。而获 取到的上网数据为记录用户真实行为的数据,例如,2017年3月27日下午2点40分,用户名为A的用户点击证劵APP送流量活动的按钮,并下载了证劵APP,可以根据记录用户真实行为的数据中具有实际业务含义的词语来分析用户的行为及偏好的产品,例如,可以根据上述的真实行为数据中描述用户上网行为的动词点击与下载,以及描述产品的名词证劵APP、流量、及按钮,来分析用户的行为及偏好的产品,因此,若能从获取的记录用户真实行为的上网数据中提取出具有实际业务含义的词语,则能够根据获取到的具有实际业务含义的词语有效地分析出用户偏好的产品,并根据用户偏好的产品来推荐相关产品至该用户。Generally, the online data of the user within a preset time, for example, one week, one month, etc., may be obtained according to the user's identification information, such as a login name, a registered user name, a mobile phone number, and the like. And won The received Internet data is data for recording the user's real behavior. For example, at 2:40 pm on March 27, 2017, the user named A clicks the button of the certificate to send the traffic activity, and downloads the certificate APP. The user's behavior and preferred products can be analyzed according to the words with actual business meaning in the data recording the user's real behavior. For example, the verb can be clicked and downloaded according to the above-mentioned real behavior data to describe the user's online behavior, and the nouns describing the product. Proof of APP, traffic, and buttons to analyze the user's behavior and preferred products. Therefore, if the words with actual business meaning can be extracted from the obtained online data that records the user's real behavior, then it can be obtained according to the obtained The words of actual business meaning effectively analyze the products that the user prefers, and recommend related products to the user according to the products preferred by the user.
在本实施例中,若需要给带有标识信息的用户推荐产品,则首先从预先确定的数据库中获取该用户在第一预设时间内(例如,一周内)的第一上网数据(该用户的真实上网行为数据)、及其他各个用户(例如,预先确定的预设数量的用户中除该用户以为的其他用户)在所述第一预设时间内的第二上网数据(其他各个用户的真实上网行为数据);然后,利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,预先确定的业务关键词表生成规则包括:In this embodiment, if the product needs to be recommended to the user with the identification information, the first online data of the user within the first preset time (for example, one week) is first obtained from a predetermined database (the user) The real online behavior data), and other individual users (for example, other users of the predetermined preset number of users except the other users), the second Internet data in the first preset time (other individual users) Real online behavior data); then, using the predetermined business keyword table generation rule to analyze the obtained first Internet data, generating a first service keyword table corresponding to the user, and acquiring the second Internet data Performing an analysis to generate a second service keyword table corresponding to each of the other users, where the predetermined service keyword table generation rule includes:
构造由第二预设时间内预设数量用户的上网数据中的业务关键词组成的集合,具体地,在一实施例中,构造由两个月内300名用户的上网数据中的业务关键词组成的集合的过程包括,可预先获取两个月内300名用户的上网数据,并从所获取的上网数据中,提取出具有实际业务含义的关键词,其中,具有实际的业务含义的关键词包括描述用户上网行为的动词(例如,点击、下载、购买等)、以及描述产品的名词(例如,美食、信用卡、理财产品等),则由提取出的描述用户上网行为的动词、以及描述产品的名词组成的集合即为构造的满足上述需求的业务关键词组成的集合。Constructing a set of service keywords in the online data of the preset number of users in the second preset time, specifically, in an embodiment, constructing the business keywords in the Internet data of 300 users within two months The process of forming the set includes pre-acquiring the online data of 300 users in two months, and extracting keywords with actual business meanings from the obtained online data, wherein the keywords have actual business meanings. Including verbs that describe the user's online behavior (eg, click, download, purchase, etc.), and nouns describing the product (eg, food, credit card, wealth management products, etc.), the extracted verbs describing the user's online behavior, and description products The set of nouns is a collection of business keywords constructed to meet the above requirements.
基于第一上网数据遍历业务关键词组成的集合,从第一上网数据中获取与业务关键词组成的集合中的业务关键词相匹配的各个第一业务关键词,并基于所获取的各个第一业务关键词生成对应的第一业务关键词表;同样地,基于第二上网数据遍历业务关键词组成的集合,从第二上网数据中获取与业务关键词组成的集合中的业务关键词相匹配的各个第二业务关键词,并基于所获取的各个第二业务关键词生成对应的第二业务关键词表。And acquiring, according to the first online data, a plurality of first service keywords that match the business keywords in the set of the business keywords, and based on the acquired first The business keyword generates a corresponding first business keyword table; similarly, the second online data traverses the set of the business keyword to obtain the business keyword in the set composed of the business keyword from the second online data. Each of the second service keywords generates a corresponding second service keyword table based on the acquired second service keywords.
进一步地,在本实施例中,预先确定的相似性分析规则可以为余弦夹角相似法、欧几里德距离度量法、或皮尔逊相关系数法等。例如,在一实施例中,以欧几里德距离度量法为例来说明,其中,欧几里德距离度量法采用如下公式来计算相似度:Further, in the embodiment, the predetermined similarity analysis rule may be a cosine angle similarity method, a Euclidean distance metric method, or a Pearson correlation coefficient method. For example, in one embodiment, the Euclidean distance metric is taken as an example, wherein the Euclidean distance metric uses the following formula to calculate the similarity:
Figure PCTCN2017108789-appb-000001
Figure PCTCN2017108789-appb-000001
需要说明的是,上述公式中的x和y分别为归一化之后的向量,上述公式的结果即为向量x和向量y的相似度,在本实施例中,在计算该用户与其他用户之间的相似性时,将该用户对应的第一业务关键词表按照预设的归一化方式进行归一化处理后得到上述公式中的第一向量x,将其他各个用户对应的第二业务关键词表分别按照预设的归一化方式进行归一化处理后,得到上述公式中不同的第二向量y,然后将第一向量x与其他各个第二向量y分别代入上述相似度的计算公式,计算得到该用户与其他各个用户之间的相似度,并分别将计算出的相似度与预设的相似度阈值进行比较,若有计算出的相似度大于预设的相似度阈值,则确定为该用户的相似用户。It should be noted that x and y in the above formula are respectively normalized vectors, and the result of the above formula is the similarity between the vector x and the vector y. In this embodiment, the user and other users are calculated. The first service vector table corresponding to the user is normalized according to a preset normalization manner to obtain the first vector x in the above formula, and the second service corresponding to each other user is obtained. After the keyword table is normalized according to the preset normalization method, a second vector y different from the above formula is obtained, and then the first vector x and the other second vectors y are respectively substituted into the above similarity calculation. a formula that calculates a similarity between the user and each of the other users, and compares the calculated similarity with a preset similarity threshold, and if the calculated similarity is greater than a preset similarity threshold, Determined to be a similar user for this user.
进一步需要说明的是,在本实施例中,预先确定的用户偏好产品推荐模型为协同过滤推荐模型,用户偏好产品推荐模型的训练过程包括如下步骤:It should be further noted that, in this embodiment, the predetermined user preference product recommendation model is a collaborative filtering recommendation model, and the training process of the user preference product recommendation model includes the following steps:
获取预设数量的相似用户的第二业务关键词表样本,将各个相似用户的第二业务关键词表样本分为对应的第一比例的训练集和第二比例的测试集;Obtaining a preset number of second service keyword table samples of similar users, and dividing the second service keyword table samples of each similar user into a corresponding first ratio training set and a second ratio test set;
利用训练集中的各个相似用户的第二业务关键词表训练用户偏好产品推荐模型,以得到训练好的用户偏好产品推荐模型;The user preference product recommendation model is trained by using a second business keyword table of each similar user in the training set to obtain a trained user preference product recommendation model;
利用测试集中各个相似用户的第二业务关键词表对用户偏好产品推荐模型进行测试,若测试通过,则训练结束,或者,若测试不通过,则增加训练集中的相似用户的第二业务关键词表样本并重新执行上述训练用户偏好产品推荐模型的步骤。The user preference product recommendation model is tested by using the second service keyword table of each similar user in the test set. If the test passes, the training ends, or if the test fails, the second business keyword of the similar user in the training set is increased. The table samples and re-execute the steps described above for training the user preference product recommendation model.
利用测试集中各个相似用户的第二业务关键词表对用户偏好产品推荐模型进行测试的步骤包括:The steps of testing the user preference product recommendation model using the second business keyword table of each similar user in the test set include:
利用训练好的用户产品推荐模型对测试集中的各个相似用户的第二业务关键词表进行分析,以得出各个相似用户对不同产品的偏好概率值;Using the trained user product recommendation model to analyze the second business keyword table of each similar user in the test set to obtain the preference probability values of different similar users for different products;
若有相似用户对预设类型产品的偏好概率值大于预设的偏好概率阈值,则针对该相似用户进行模型准确性测试,从该相似用户的上网数据中确认该用户关注该预设类型产品的频率值,若该相似用户关注该预设类型产品的频率值超过预设的频率阈值,则确定针对该相似用户的模型准确性测试结果为正确,或者,若该相似用户关注该预设类型产品的频率值等于或小于预设频率阈值,则确定针对该相似用户的模型准确性测试结果为错误;If a similar user's preference probability value for the preset type product is greater than a preset preference probability threshold, the model accuracy test is performed for the similar user, and the user is confirmed to pay attention to the preset type product from the online data of the similar user. a frequency value, if the similar user pays attention to the frequency value of the preset type product exceeds a preset frequency threshold, determining that the model accuracy test result for the similar user is correct, or if the similar user pays attention to the preset type product If the frequency value is equal to or less than the preset frequency threshold, it is determined that the model accuracy test result for the similar user is an error;
若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比大于预设百分比阈值,则确定对用户偏好产品推荐模型的测试通过,或者,若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比小于或等于预设百分比阈值,则确定对用户偏好产品推荐模型的测试不通过。If the correct model accuracy test results account for more than the preset percentage threshold for all model accuracy test results, then the test for the user preference product recommendation model is determined, or if the correct model accuracy test results account for all models If the percentage of the accuracy test result is less than or equal to the preset percentage threshold, it is determined that the test for the user preference product recommendation model fails.
在另一实施方式中,为了使计算过程更快捷,在上述步骤B之后,还通过采用预先确定的聚类算法分析第一业务关键词表及第二业务关键词表,以分析出第二业务关键词表对应的各个用户中与第一业务关键词表对应的用户属于同一用户群体的用户。其中,预先确定的聚类算法包括基于密度的聚类算法,具体过程为:预先设定密度层次(例如,在本实施例中,以第一业务 关键词表包含不同预设类型业务关键词的数量对应设定不同的密度层次)、最高密度阈值(例如,包含6个预设类型业务关键词)、以及最低密度阈值(例如,包含3个预设类型业务关键词),并根据所设定的密度层次、最高密度阈值、以及最低密度阈值分析出各个第二业务关键词表包含的密度层次,以及各个密度层次包含的密度阈值,将分析得到的各个密度阈值根据密度阈值的大小从高到低进行排列,选取排列最高的密度阈值并基于所选取的密度阈值对所有预设类型业务关键词进行第一次聚类,产生聚类簇,将剩余密度阈值重复执行上述聚类过程,直至进行第i次聚类,产生聚类族;其中,第i次聚类过程产生的聚类簇,在后续聚类过程中只能被扩展而不能被分割或者合并到其他聚类簇中;并且满足当前密度阈值的簇被优先提取出来;算法依次对所有预设类型业务关键词在不同的密度阈值下聚类,第i次聚类的结果直接作为第i+1次聚类的输入,直到剩余的密度阈值均小于最低密度阈值,则算法结束。至此,完成将第二业务关键词表对应的各个用户与第一业务关键词表对应的用户进行用户群体的聚类。In another embodiment, in order to make the calculation process faster, after the step B above, the first service keyword table and the second service keyword table are analyzed by using a predetermined clustering algorithm to analyze the second service. Among the users corresponding to the keyword table, the users corresponding to the first service keyword table belong to the same user group. The predetermined clustering algorithm includes a density-based clustering algorithm, and the specific process is: pre-setting a density hierarchy (for example, in the embodiment, the first service The keyword list includes different preset types of business keywords corresponding to different density levels, a highest density threshold (eg, including 6 preset types of business keywords), and a minimum density threshold (eg, including 3 pre- Set the type of business keyword), and according to the set density level, the highest density threshold, and the lowest density threshold, analyze the density levels included in each second business keyword table, and the density thresholds included in each density level, and analyze The density thresholds are arranged according to the density threshold from high to low, the highest density threshold is selected, and all preset types of business keywords are clustered for the first time based on the selected density threshold to generate cluster clusters. The residual density threshold repeatedly performs the above clustering process until the ith clustering is performed to generate a clustering family; wherein the clustering cluster generated by the i-th clustering process can only be expanded in the subsequent clustering process and cannot be Segmentation or merging into other clusters; and clusters that satisfy the current density threshold are preferentially extracted; the algorithm is for all preset classes in turn Keywords business at different cluster density threshold, the i-th cluster results directly as input i + 1-time clustering, until the remaining threshold value is less than the density of the lowest density threshold, then the algorithm ends. So far, the user corresponding to the first service keyword table corresponding to each user in the second service keyword table is clustered by the user group.
然后,根据预先确定的相似性分析规则对第一业务关键词表及该用户所属的客户群体中的其他用户对应的第四业务关键词表进行分析,以分析出该用户所属的客户群体中与该用户对应的相似用户。Then, analyzing, according to the predetermined similarity analysis rule, the first service keyword table and the fourth service keyword table corresponding to other users in the customer group to which the user belongs, to analyze the customer group to which the user belongs A similar user corresponding to the user.
可选地,在其他的实施例中,基于用户上网数据的产品推荐程序可以被分割成一个或多个程序模块,一个或者多个程序模块被存储于存储器11中,并由一个或多个处理器(本实施例中为处理器12)所执行,以完成本发明。本发明所称的程序模块是指能够完成特定功能的一系列计算机程序指令段。Optionally, in other embodiments, the product recommendation program based on the user's Internet data may be divided into one or more program modules, and one or more program modules are stored in the memory 11 and processed by one or more The processor (which is processor 12 in this embodiment) is executed to complete the present invention. A program module as used herein refers to a series of computer program instructions that are capable of performing a particular function.
例如,参照图2所示,为本发明电子装置一实施例中基于用户上网数据的产品推荐程序模块示意图。在本实施例中,基于用户上网数据的产品推荐程序可以被分割成获取模块201、第一分析模块202、第二分析模块203、以及第三分析模块204。本实施例中程序模块201-204所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:For example, referring to FIG. 2, it is a schematic diagram of a product recommendation program module based on user internet data in an embodiment of the electronic device of the present invention. In this embodiment, the product recommendation program based on the user's Internet access data may be divided into an acquisition module 201, a first analysis module 202, a second analysis module 203, and a third analysis module 204. The functions or operation steps implemented by the program modules 201-204 in this embodiment are similar to the above, and are not described in detail herein, for example, where:
获取模块201,用于在若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在第一预设时间内的第二上网数据;The obtaining module 201 is configured to: if the product is recommended to the user with the identification information, obtain the first online data of the user in the first preset time from the predetermined database, and the other users are in the first pre-preparation Set the second online data in time;
第一分析模块302,用于利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,业务关键词包括描述用户上网行为的动词及描述产品的名词,业务关键词表包括同一用户在第一预设时间内的所有业务关键词;The first analysis module 302 is configured to analyze the obtained first Internet data by using a predetermined service keyword table generation rule, generate a first service keyword table corresponding to the user, and generate the second Internet data. Performing an analysis to generate a second service keyword table corresponding to each of the other users, wherein the service keyword includes a verb describing the user's online behavior and a noun describing the product, and the business keyword table includes all services of the same user within the first preset time. Key words;
第二分析模块303,用于根据预先确定的相似性分析规则对第一业务关键词表及第二业务关键词表进行分析,以分析出该用户对应的相似用户;The second analysis module 303 is configured to analyze the first service keyword table and the second service keyword table according to the predetermined similarity analysis rule to analyze the similar user corresponding to the user;
第三分析模块304,用于根据预先确定的用户偏好产品推荐模型分析第一业务关键词表、及相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。 The third analysis module 304 is configured to analyze the first service keyword table and the second service keyword table corresponding to the similar user according to the predetermined user preference product recommendation model, to determine the product that the user prefers, to a predetermined The terminal sends a product recommendation instruction for the user.
此外,本发明还提供一种基于用户上网数据的产品推荐方法。参阅图3所示,为本发明的基于用户上网数据的产品推荐方法一较佳事实例的实施流程示意图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。In addition, the present invention also provides a product recommendation method based on user online data. Referring to FIG. 3, it is a schematic flowchart of an implementation example of a preferred example of a product recommendation method based on user Internet data according to the present invention. The method can be performed by a device that can be implemented by software and/or hardware.
在本实施例中,基于用户上网数据的产品推荐方法包括:In this embodiment, the product recommendation method based on the user's online data includes:
步骤S301,若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在第一预设时间内的第二上网数据;Step S301: If the product needs to be recommended to the user with the identification information, the first online data of the user in the first preset time and the other users in the first preset time are obtained from the predetermined database. Second internet data;
步骤S302,利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,业务关键词包括描述用户上网行为的动词及描述产品的名词,业务关键词表包括同一用户在第一预设时间内的所有业务关键词;Step S302, analyzing the acquired first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other each a second service keyword table corresponding to the user, wherein the service keyword includes a verb describing the user's online behavior and a noun describing the product, and the business keyword table includes all the business keywords of the same user within the first preset time;
步骤S303,根据预先确定的相似性分析规则对第一业务关键词表及第二业务关键词表进行分析,以分析出该用户对应的相似用户;Step S303, analyzing the first service keyword table and the second service keyword table according to the predetermined similarity analysis rule, to analyze the similar user corresponding to the user;
步骤S304,根据预先确定的用户偏好产品推荐模型分析第一业务关键词表、及相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。Step S304, analyzing the first service keyword table and the second service keyword table corresponding to the similar user according to the predetermined user preference product recommendation model, to determine the product preferred by the user, and sending the predetermined user to the predetermined terminal. Product recommendation instructions.
通常,可以根据用户的标识信息,例如登录名、注册的用户名、手机号等获取到用户在预设时间内,例如,一周内、一个月内等的上网数据。而获取到的上网数据为记录用户真实行为的数据,例如,2017年3月27日下午2点40分,用户名为A的用户点击证劵APP送流量活动的按钮,并下载了证劵APP,可以根据记录用户真实行为的数据中具有实际业务含义的词语来分析用户的行为及偏好的产品,例如,可以根据上述的真实行为数据中描述用户上网行为的动词点击与下载,以及描述产品的名词证劵APP、流量、及按钮,来分析用户的行为及偏好的产品,因此,若能从获取的记录用户真实行为的上网数据中提取出具有实际业务含义的词语,则能够根据获取到的具有实际业务含义的词语有效地分析出用户偏好的产品,并根据用户偏好的产品来推荐相关产品至该用户。Generally, the online data of the user within a preset time, for example, one week, one month, etc., may be obtained according to the user's identification information, such as a login name, a registered user name, a mobile phone number, and the like. The obtained online data is data for recording the real behavior of the user. For example, at 2:40 pm on March 27, 2017, the user with the user name A clicks the button of the card to send the traffic activity, and downloads the certificate APP. The product that has the actual business meaning in the data that records the user's real behavior can be used to analyze the user's behavior and preferred products. For example, the verb can be clicked and downloaded according to the above-mentioned real behavior data to describe the user's online behavior, and the product description is described. Nouns, APPs, traffic, and buttons to analyze the user's behavior and preferences of the product, so if you can extract words with actual business meaning from the online data of the recorded user's real behavior, you can get the Words with actual business meaning effectively analyze the products that the user prefers, and recommend related products to the user according to the products preferred by the user.
在本实施例中,若需要给带有标识信息的用户推荐产品,则首先从预先确定的数据库中获取该用户在第一预设时间内(例如,一周内)的第一上网数据(该用户的真实上网行为数据)、及其他各个用户(例如,预先确定的预设数量的用户中除该用户以为的其他用户)在所述第一预设时间内的第二上网数据(其他各个用户的真实上网行为数据);然后,利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,预先确定的业务关键词表生成规则包括:In this embodiment, if the product needs to be recommended to the user with the identification information, the first online data of the user within the first preset time (for example, one week) is first obtained from a predetermined database (the user) The real online behavior data), and other individual users (for example, other users of the predetermined preset number of users except the other users), the second Internet data in the first preset time (other individual users) Real online behavior data); then, using the predetermined business keyword table generation rule to analyze the obtained first Internet data, generating a first service keyword table corresponding to the user, and acquiring the second Internet data Performing an analysis to generate a second service keyword table corresponding to each of the other users, where the predetermined service keyword table generation rule includes:
构造由第二预设时间内预设数量用户的上网数据中的业务关键词组成的集合,具体地,在一实施例中,构造由两个月内300名用户的上网数据中的业务关键词组成的集合的过程包括,可预先获取两个月内300名用户的上网 数据,并从所获取的上网数据中,提取出具有实际业务含义的关键词,其中,具有实际的业务含义的关键词包括描述用户上网行为的动词(例如,点击、下载、购买等)、以及描述产品的名词(例如,美食、信用卡、理财产品等),则由提取出的描述用户上网行为的动词、以及描述产品的名词组成的集合即为构造的满足上述需求的业务关键词组成的集合。Constructing a set of service keywords in the online data of the preset number of users in the second preset time, specifically, in an embodiment, constructing the business keywords in the Internet data of 300 users within two months The process of composing the collection includes pre-acquisition of 300 users online within two months. Data, and extracting keywords having actual business meanings from the obtained online data, wherein keywords having actual business meanings include verbs describing user online behavior (eg, clicking, downloading, purchasing, etc.), and Descriptive product nouns (eg, food, credit cards, wealth management products, etc.), the set of extracted verbs describing the user's online behavior, and the nouns describing the product are the set of business keywords that satisfy the above requirements. .
遍历业务关键词组成的集合,从第一上网数据中获取与业务关键词组成的集合中的业务关键词相匹配的各个第一词语,并基于所获取的各个第一词语生成对应的第一业务关键词表;同样地,遍历业务关键词组成的集合,从第二上网数据中获取与业务关键词组成的集合中的业务关键词相匹配的各个第二词语,并基于所获取的各个第二词语生成对应的第二业务关键词表。Traversing the set of the business keyword, obtaining the first words matching the business keywords in the set of the business keywords from the first online data, and generating the corresponding first service based on the acquired first words Keyword table; similarly, traversing a set of business keyword sets, obtaining second words matching the business keywords in the set of business keywords from the second internet data, and based on the acquired second words The word generates a corresponding second business keyword table.
进一步地,在本实施例中,预先确定的相似性分析规则可以为余弦夹角相似法、欧几里德距离度量法、或皮尔逊相关系数法等。例如,在一实施例中,以欧几里德距离度量法为例来说明,其中,欧几里德距离度量法采用如下公式来计算相似度:Further, in the embodiment, the predetermined similarity analysis rule may be a cosine angle similarity method, a Euclidean distance metric method, or a Pearson correlation coefficient method. For example, in one embodiment, the Euclidean distance metric is taken as an example, wherein the Euclidean distance metric uses the following formula to calculate the similarity:
Figure PCTCN2017108789-appb-000002
Figure PCTCN2017108789-appb-000002
需要说明的是,上述公式中的x和y分别为归一化之后的向量,上述公式的结果即为向量x和向量y的相似度,在本实施例中,在计算该用户与其他用户之间的相似性时,将该用户对应的第一业务关键词表按照预设的归一化方式进行归一化处理后得到上述公式中的第一向量x,将其他各个用户对应的第二业务关键词表分别按照预设的归一化方式进行归一化处理后,得到上述公式中不同的第二向量y,然后将第一向量x与其他各个第二向量y分别代入上述相似度的计算公式,计算得到该用户与其他各个用户之间的相似度,并分别将计算出的相似度与预设的相似度阈值进行比较,若有计算出的相似度大于预设的相似度阈值,则确定为该用户的相似用户。It should be noted that x and y in the above formula are respectively normalized vectors, and the result of the above formula is the similarity between the vector x and the vector y. In this embodiment, the user and other users are calculated. The first service vector table corresponding to the user is normalized according to a preset normalization manner to obtain the first vector x in the above formula, and the second service corresponding to each other user is obtained. After the keyword table is normalized according to the preset normalization method, a second vector y different from the above formula is obtained, and then the first vector x and the other second vectors y are respectively substituted into the above similarity calculation. a formula that calculates a similarity between the user and each of the other users, and compares the calculated similarity with a preset similarity threshold, and if the calculated similarity is greater than a preset similarity threshold, Determined to be a similar user for this user.
进一步需要说明的是,在本实施例中,预先确定的用户偏好产品推荐模型为协同过滤推荐模型,用户偏好产品推荐模型的训练过程包括如下步骤:It should be further noted that, in this embodiment, the predetermined user preference product recommendation model is a collaborative filtering recommendation model, and the training process of the user preference product recommendation model includes the following steps:
获取预设数量的相似用户的第二业务关键词表样本,将各个相似用户的第二业务关键词表样本分为对应的第一比例的训练集和第二比例的测试集;Obtaining a preset number of second service keyword table samples of similar users, and dividing the second service keyword table samples of each similar user into a corresponding first ratio training set and a second ratio test set;
利用训练集中的各个相似用户的第二业务关键词表训练用户偏好产品推荐模型,以得到训练好的用户偏好产品推荐模型;The user preference product recommendation model is trained by using a second business keyword table of each similar user in the training set to obtain a trained user preference product recommendation model;
利用测试集中各个相似用户的第二业务关键词表对用户偏好产品推荐模型进行测试,若测试通过,则训练结束,或者,若测试不通过,则增加训练集中的相似用户的第二业务关键词表样本并重新执行上述训练用户偏好产品推荐模型的步骤。The user preference product recommendation model is tested by using the second service keyword table of each similar user in the test set. If the test passes, the training ends, or if the test fails, the second business keyword of the similar user in the training set is increased. The table samples and re-execute the steps described above for training the user preference product recommendation model.
利用测试集中各个相似用户的第二业务关键词表对用户偏好产品推荐模 型进行测试的步骤包括:Using the second business keyword table of each similar user in the test set to recommend the product preference product The steps for testing are:
利用训练好的用户产品推荐模型对测试集中的各个相似用户的第二业务关键词表进行分析,以得出各个相似用户对不同产品的偏好概率值;Using the trained user product recommendation model to analyze the second business keyword table of each similar user in the test set to obtain the preference probability values of different similar users for different products;
若有相似用户对预设类型产品的偏好概率值大于预设的偏好概率阈值,则针对该相似用户进行模型准确性测试,从该相似用户的上网数据中确认该用户关注该预设类型产品的频率值,若该相似用户关注该预设类型产品的频率值超过预设的频率阈值,则确定针对该相似用户的模型准确性测试结果为正确,或者,若该相似用户关注该预设类型产品的频率值等于或小于预设频率阈值,则确定针对该相似用户的模型准确性测试结果为错误;If a similar user's preference probability value for the preset type product is greater than a preset preference probability threshold, the model accuracy test is performed for the similar user, and the user is confirmed to pay attention to the preset type product from the online data of the similar user. a frequency value, if the similar user pays attention to the frequency value of the preset type product exceeds a preset frequency threshold, determining that the model accuracy test result for the similar user is correct, or if the similar user pays attention to the preset type product If the frequency value is equal to or less than the preset frequency threshold, it is determined that the model accuracy test result for the similar user is an error;
若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比大于预设百分比阈值,则确定对用户偏好产品推荐模型的测试通过,或者,若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比小于或等于预设百分比阈值,则确定对用户偏好产品推荐模型的测试不通过。If the correct model accuracy test results account for more than the preset percentage threshold for all model accuracy test results, then the test for the user preference product recommendation model is determined, or if the correct model accuracy test results account for all models If the percentage of the accuracy test result is less than or equal to the preset percentage threshold, it is determined that the test for the user preference product recommendation model fails.
在另一具体的实施例中,为了使计算过程更快捷,在上述步骤B之后,还通过采用预先确定的聚类算法分析第一业务关键词表及第二业务关键词表,以分析出第二业务关键词表对应的各个用户中与第一业务关键词表对应的用户属于同一用户群体的用户。其中,预先确定的聚类算法包括基于密度的聚类算法,具体过程为:预先设定密度层次(例如,在本实施例中,以第一业务关键词表包含不同预设类型业务关键词的数量对应设定不同的密度层次)、最高密度阈值(例如,包含6个预设类型业务关键词)、以及最低密度阈值(例如,包含3个预设类型业务关键词),并根据所设定的密度层次、最高密度阈值、以及最低密度阈值分析出各个第二业务关键词表包含的密度层次,以及各个密度层次包含的密度阈值,将分析得到的各个密度阈值根据密度阈值的大小从高到低进行排列,选取排列最高的密度阈值并基于所选取的密度阈值对所有预设类型业务关键词进行第一次聚类,产生聚类簇,将剩余密度阈值重复执行上述聚类过程,直至进行第i次聚类,产生聚类族;其中,第i次聚类过程产生的聚类簇,在后续聚类过程中只能被扩展而不能被分割或者合并到其他聚类簇中;并且满足当前密度阈值的簇被优先提取出来;算法依次对所有预设类型业务关键词在不同的密度阈值下聚类,第i次聚类的结果直接作为第i+1次聚类的输入,直到剩余的密度阈值均小于最低密度阈值,则算法结束。至此,完成将第二业务关键词表对应的各个用户与第一业务关键词表对应的用户进行用户群体的聚类。In another specific embodiment, in order to make the calculation process faster, after the step B above, the first service keyword table and the second service keyword table are analyzed by using a predetermined clustering algorithm to analyze the Among the users corresponding to the two service keyword tables, the users corresponding to the first service keyword table belong to the same user group. The predetermined clustering algorithm includes a density-based clustering algorithm, and the specific process is: pre-setting a density level (for example, in the embodiment, the first service keyword table includes different preset types of business keywords. The number corresponds to setting different density levels), the highest density threshold (for example, including 6 preset types of business keywords), and the lowest density threshold (for example, including 3 preset types of business keywords), and according to the settings The density level, the highest density threshold, and the lowest density threshold analyze the density levels contained in each of the second business keyword tables, and the density thresholds included in each density level, and the respective density thresholds to be analyzed are based on the density threshold Low arrangement, selecting the highest density threshold and performing the first clustering on all preset types of business keywords based on the selected density threshold, generating a cluster cluster, and repeating the remaining density threshold to perform the clustering process until proceeding The i-th cluster generates a cluster family; wherein the cluster cluster generated by the i-th cluster process is in the subsequent clustering process Can only be extended and cannot be split or merged into other clusters; and clusters that satisfy the current density threshold are preferentially extracted; the algorithm sequentially clusters all preset types of business keywords at different density thresholds, i The result of the sub-cluster is directly used as the input of the i+1th cluster until the remaining density thresholds are less than the lowest density threshold, and the algorithm ends. So far, the user corresponding to the first service keyword table corresponding to each user in the second service keyword table is clustered by the user group.
然后,根据预先确定的相似性分析规则对第一业务关键词表及该用户所属的客户群体中的其他用户对应的第四业务关键词表进行分析,以分析出该用户所属的客户群体中与该用户对应的相似用户。Then, analyzing, according to the predetermined similarity analysis rule, the first service keyword table and the fourth service keyword table corresponding to other users in the customer group to which the user belongs, to analyze the customer group to which the user belongs A similar user corresponding to the user.
此外,本发明实施例还提出一种计算机可读存储介质,该计算机可读存储介质上存储有基于用户上网数据的产品推荐程序,该基于用户上网数据的产品推荐程序被处理器执行时实现如下操作:In addition, the embodiment of the present invention further provides a computer readable storage medium, where the product recommendation program based on the user's Internet data is stored, and the product recommendation program based on the user's Internet data is executed by the processor as follows: operating:
若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取 该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;If you need to recommend products to users with identification information, you can get them from a predetermined database. The first Internet access data of the user in the first preset time, and the second Internet access data of the other users in the first preset time;
利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同一用户在所述第一预设时间内的所有业务关键词;The first online data collected by the user is analyzed by using a predetermined business keyword table generation rule, and the first service keyword table corresponding to the user is generated, and the acquired second online data is analyzed to generate corresponding addresses of other users. a second service keyword table, wherein the service keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes all business keywords of the same user in the first preset time ;
根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;And analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。And analyzing, according to the predetermined user preference product recommendation model, the first service keyword table and the second service keyword table corresponding to the similar user, to determine a product that is preferred by the user, and sending the target to the predetermined terminal. User's product recommendation instructions.
进一步地,该基于用户上网数据的产品推荐程序被处理器执行时还实现如下操作:Further, when the product recommendation program based on the user's Internet data is executed by the processor, the following operations are also implemented:
根据预先确定的聚类算法分析所述第一业务关键词表及所述第二业务关键词表,以分别将所述第二业务关键词表对应的各个用户与所述第一业务关键词表对应的用户进行用户群体的聚类。And analyzing the first service keyword table and the second service keyword table according to a predetermined clustering algorithm, respectively, to respectively respectively, the respective users corresponding to the second service keyword table and the first service keyword table The corresponding users perform clustering of user groups.
进一步地,该基于用户上网数据的产品推荐程序被处理器执行时还实现如下操作:Further, when the product recommendation program based on the user's Internet data is executed by the processor, the following operations are also implemented:
根据预先确定的相似性分析规则对所述第一业务关键词表及该用户所属的客户群体中的其他用户对应的第四业务关键词表进行分析,以分析出该用户所属的客户群体中与该用户对应的相似用户。And analyzing, according to the predetermined similarity analysis rule, the first service keyword table and the fourth service keyword table corresponding to other users in the customer group to which the user belongs, to analyze the customer group to which the user belongs A similar user corresponding to the user.
本发明计算机可读存储介质具体实施方式与上述电子装置以及基于用户上网数据的产品推荐方法各实施例基本相同,在此不作累述。The specific embodiment of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the electronic device and the product recommendation method based on the user's Internet access data, and will not be described herein.
通过上述各实施例可知,本发明的电子装置、基于用户上网数据的产品推荐方法、及计算机可读存储介质,通过从预先确定的数据库中获取各个用户在预设时间内的上网数据,利用预先确定的业务关键词生成规则对所获取的上网数据进行分析,以生成各个用户对应的业务关键词表;根据预先确定的相似性分析规则对业务关键词表进行分析,以分析出该用户对应的相似用户;根据预先确定的用户偏好产品推荐模型分析该用户对应的第一业务关键词表、及相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。能够根据用户的上网数据自动完成用户偏好的产品推荐,提高推荐效率及准确性。According to the foregoing embodiments, the electronic device of the present invention, the product recommendation method based on the user's Internet access data, and the computer readable storage medium utilize the advance data by acquiring the Internet data of each user within a preset time period from a predetermined database. The determined business keyword generation rule analyzes the obtained online data to generate a business keyword table corresponding to each user; analyzes the business keyword table according to the predetermined similarity analysis rule to analyze the corresponding user Similar user; analyzing the first service keyword table corresponding to the user and the second service keyword table corresponding to the similar user according to the predetermined user preference product recommendation model, to determine the product preferred by the user, to the predetermined terminal Send a product recommendation instruction for this user. It can automatically complete the product recommendation of the user's preference according to the user's online data, and improve the recommendation efficiency and accuracy.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘) 中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD) There are a number of instructions for causing a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种基于用户上网数据的产品推荐方法,其特征在于,所述方法包括如下步骤:A product recommendation method based on user internet data, characterized in that the method comprises the following steps:
    A、若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;A. If the product needs to be recommended to the user with the identification information, obtain the first online data of the user within the first preset time from the predetermined database, and the other users are in the first preset time. Second online data;
    B、利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同一用户在所述第一预设时间内的所有业务关键词;B. analyzing the obtained first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other users. Corresponding second service keyword table, wherein the service keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes all services of the same user in the first preset time Key words;
    C、根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;C. analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
    D、根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。D. The first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
  2. 如权利要求1所述的基于用户上网数据的产品推荐方法,其特征在于,所述预先确定的业务关键词表生成规则包括:The product recommendation method based on the user's Internet access data according to claim 1, wherein the predetermined business keyword table generation rule comprises:
    构造由第二预设时间内所有用户的上网数据中的业务关键词组成的集合;Constructing a set of business keywords in the online data of all users in the second preset time;
    根据预先确定的匹配规则将所述第一上网数据与所述业务关键词进行匹配,以得到所述第一上网数据与所述业务关键词之间的第一映射关系;Matching the first Internet data with the service keyword according to a predetermined matching rule to obtain a first mapping relationship between the first Internet data and the service keyword;
    根据所述预先确定的匹配规则将所述第二上网数据与所述业务关键词进行匹配,以得到所述第二上网数据与所述业务关键词之间的第二映射关系;Matching the second Internet data with the service keyword according to the predetermined matching rule to obtain a second mapping relationship between the second Internet data and the service keyword;
    基于所述第一映射关系,生成该用户对应的第一业务关键词表;Generating, according to the first mapping relationship, a first service keyword table corresponding to the user;
    基于所述第二映射关系,分别生成其他用户对应的第二业务关键词表。And generating, according to the second mapping relationship, a second service keyword table corresponding to another user.
  3. 如权利要求2所述的基于用户上网数据的产品推荐方法,其特征在于,所述预先确定的相似性分析规则包括余弦夹角相似法、欧几里德距离度量法、或皮尔逊相关系数法。The product recommendation method based on user internet data according to claim 2, wherein the predetermined similarity analysis rule comprises a cosine angle similarity method, a Euclidean distance metric method, or a Pearson correlation coefficient method. .
  4. 如权利要求2所述的基于用户上网数据的产品推荐方法,其特征在于,所述用户偏好产品推荐模型为协同过滤推荐模型,所述用户偏好产品推荐模型的训练过程包括如下步骤:The product recommendation method based on user internet data according to claim 2, wherein the user preference product recommendation model is a collaborative filtering recommendation model, and the training process of the user preference product recommendation model includes the following steps:
    E、获取预设数量的相似用户的第三业务关键词表样本,将各个相似用户的第三业务关键词表样本分为对应的第一比例的训练集和第二比例的测试集;E. Obtain a preset number of third service keyword table samples of similar users, and divide the third service keyword table samples of each similar user into a corresponding first ratio training set and a second ratio test set;
    F、利用所述训练集中的各个相似用户的第三业务关键词表训练所述用户偏好产品推荐模型,以得到训练好的用户偏好产品推荐模型;F. training the user preference product recommendation model by using a third service keyword table of each similar user in the training set to obtain a trained user preference product recommendation model;
    G、利用所述测试集中各个相似用户的第三业务关键词表对所述用户偏好产品推荐模型进行测试,若测试通过,则训练结束,或者,若测试不通过, 则增加所述训练集中的相似用户的第三业务关键词表样本并重新执行所述步骤E和所述步骤F。G. testing, by using a third service keyword table of each similar user in the test set, the user preference product recommendation model, if the test passes, the training ends, or if the test fails, Then, the third service keyword table sample of the similar user in the training set is added and the step E and the step F are re-executed.
  5. 如权利要求4所述的基于用户上网数据的产品推荐方法,其特征在于,所述利用所述测试集中各个相似用户的第三业务关键词表对所述用户偏好产品推荐模型进行测试的步骤包括:The method for recommending a product based on user online data according to claim 4, wherein the step of testing the user preference product recommendation model by using a third service keyword table of each similar user in the test set comprises: :
    利用训练好的所述用户产品推荐模型对所述测试集中的各个相似用户的第三业务关键词表进行分析,以得出各个相似用户对不同产品的偏好概率值;Using the trained user product recommendation model to analyze the third service keyword table of each similar user in the test set to obtain a preference probability value of each similar user for different products;
    若有相似用户对预设类型产品的偏好概率值大于预设的偏好概率阈值,则针对该相似用户进行模型准确性测试,从该相似用户的上网数据中确认该用户关注该预设类型产品的频率值,若该相似用户关注该预设类型产品的频率值超过预设的频率阈值,则确定针对该相似用户的模型准确性测试结果为正确,或者,若该相似用户关注该预设类型产品的频率值等于或小于预设频率阈值,则确定针对该相似用户的模型准确性测试结果为错误;If a similar user's preference probability value for the preset type product is greater than a preset preference probability threshold, the model accuracy test is performed for the similar user, and the user is confirmed to pay attention to the preset type product from the online data of the similar user. a frequency value, if the similar user pays attention to the frequency value of the preset type product exceeds a preset frequency threshold, determining that the model accuracy test result for the similar user is correct, or if the similar user pays attention to the preset type product If the frequency value is equal to or less than the preset frequency threshold, it is determined that the model accuracy test result for the similar user is an error;
    若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比大于预设百分比阈值,则确定对所述用户偏好产品推荐模型的测试通过,或者,若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比小于或等于预设百分比阈值,则确定对所述用户偏好产品推荐模型的测试不通过。If the correct model accuracy test result accounts for more than the preset percentage threshold for all model accuracy test results, then the test for the user preference product recommendation model is determined, or if the correct model accuracy test results account for If the percentage of all model accuracy test results is less than or equal to the preset percentage threshold, it is determined that the test of the user preference product recommendation model fails.
  6. 如权利要求1所述的基于用户上网数据的产品推荐方法,其特征在于,在所述步骤B之后,还包括如下步骤:The product recommendation method based on the user's Internet access data according to claim 1, wherein after the step B, the method further comprises the following steps:
    根据预先确定的聚类算法分析所述第一业务关键词表及所述第二业务关键词表,以将各个用户进行客户群体聚类。The first service keyword table and the second service keyword table are analyzed according to a predetermined clustering algorithm to cluster each customer into a customer group.
  7. 如权利要求6所述的基于用户上网数据的产品推荐方法,其特征在于,所述步骤C替换为:The product recommendation method based on user internet data according to claim 6, wherein the step C is replaced by:
    根据预先确定的相似性分析规则对所述第一业务关键词表及该用户所属的客户群体中的其他用户对应的第四业务关键词表进行分析,以分析出该用户所属的客户群体中与该用户对应的相似用户。And analyzing, according to the predetermined similarity analysis rule, the first service keyword table and the fourth service keyword table corresponding to other users in the customer group to which the user belongs, to analyze the customer group to which the user belongs A similar user corresponding to the user.
  8. 如权利要求7所述的基于用户上网数据的产品推荐方法,其特征在于,所述预先确定的聚类算法包括基于密度的聚类算法。The product recommendation method based on user internet data according to claim 7, wherein the predetermined clustering algorithm comprises a density-based clustering algorithm.
  9. 一种电子装置,其特征在于,所述电子装置包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于用户上网数据的产品推荐系统,所述基于用户上网数据的产品推荐系统被所述处理器执行时实现如下步骤:An electronic device, comprising: a memory, a processor, and a product recommendation system based on user internet data stored on the memory and operable on the processor, the user internet data The product recommendation system is implemented by the processor to implement the following steps:
    A、若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;A. If the product needs to be recommended to the user with the identification information, obtain the first online data of the user within the first preset time from the predetermined database, and the other users are in the first preset time. Second online data;
    B、利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同 一用户在所述第一预设时间内的所有业务关键词;B. analyzing the obtained first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other users. Corresponding second business keyword table, wherein the business keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes the same All business keywords of a user within the first preset time;
    C、根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;C. analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
    D、根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。D. The first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
  10. 如权利要求9所述的电子装置,其特征在于,所述预先确定的业务关键词表生成规则包括:The electronic device according to claim 9, wherein the predetermined business keyword table generation rule comprises:
    构造由第二预设时间内所有用户的上网数据中的业务关键词组成的集合;Constructing a set of business keywords in the online data of all users in the second preset time;
    根据预先确定的匹配规则将所述第一上网数据与所述业务关键词进行匹配,以得到所述第一上网数据与所述业务关键词之间的第一映射关系;Matching the first Internet data with the service keyword according to a predetermined matching rule to obtain a first mapping relationship between the first Internet data and the service keyword;
    根据所述预先确定的匹配规则将所述第二上网数据与所述业务关键词进行匹配,以得到所述第二上网数据与所述业务关键词之间的第二映射关系;Matching the second Internet data with the service keyword according to the predetermined matching rule to obtain a second mapping relationship between the second Internet data and the service keyword;
    基于所述第一映射关系,生成该用户对应的第一业务关键词表;Generating, according to the first mapping relationship, a first service keyword table corresponding to the user;
    基于所述第二映射关系,分别生成其他用户对应的第二业务关键词表。And generating, according to the second mapping relationship, a second service keyword table corresponding to another user.
  11. 如权利要求10所述的电子装置,其特征在于,所述预先确定的相似性分析规则包括余弦夹角相似法、欧几里德距离度量法、或皮尔逊相关系数法。The electronic device according to claim 10, wherein said predetermined similarity analysis rule comprises a cosine angle similarity method, a Euclidean distance metric, or a Pearson correlation coefficient method.
  12. 如权利要求10所述的电子装置,其特征在于,所述用户偏好产品推荐模型为协同过滤推荐模型,所述用户偏好产品推荐模型的训练过程包括如下步骤:The electronic device according to claim 10, wherein the user preference product recommendation model is a collaborative filtering recommendation model, and the training process of the user preference product recommendation model comprises the following steps:
    E、获取预设数量的相似用户的第三业务关键词表样本,将各个相似用户的第三业务关键词表样本分为对应的第一比例的训练集和第二比例的测试集;E. Obtain a preset number of third service keyword table samples of similar users, and divide the third service keyword table samples of each similar user into a corresponding first ratio training set and a second ratio test set;
    F、利用所述训练集中的各个相似用户的第三业务关键词表训练所述用户偏好产品推荐模型,以得到训练好的用户偏好产品推荐模型;F. training the user preference product recommendation model by using a third service keyword table of each similar user in the training set to obtain a trained user preference product recommendation model;
    G、利用所述测试集中各个相似用户的第三业务关键词表对所述用户偏好产品推荐模型进行测试,若测试通过,则训练结束,或者,若测试不通过,则增加所述训练集中的相似用户的第三业务关键词表样本并重新执行所述步骤E和所述步骤F。G. testing, by using a third service keyword table of each similar user in the test set, the user preference product recommendation model, if the test passes, the training ends, or if the test fails, the training set is increased. The third user keyword table sample of the similar user and the step E and the step F are re-executed.
  13. 如权利要求12所述的电子装置,其特征在于,所述利用所述测试集中各个相似用户的第三业务关键词表对所述用户偏好产品推荐模型进行测试的步骤包括:The electronic device according to claim 12, wherein the step of testing the user preference product recommendation model by using a third service keyword table of each similar user in the test set comprises:
    利用训练好的所述用户产品推荐模型对所述测试集中的各个相似用户的第三业务关键词表进行分析,以得出各个相似用户对不同产品的偏好概率值;Using the trained user product recommendation model to analyze the third service keyword table of each similar user in the test set to obtain a preference probability value of each similar user for different products;
    若有相似用户对预设类型产品的偏好概率值大于预设的偏好概率阈值,则针对该相似用户进行模型准确性测试,从该相似用户的上网数据中确认该用户关注该预设类型产品的频率值,若该相似用户关注该预设类型产品的频 率值超过预设的频率阈值,则确定针对该相似用户的模型准确性测试结果为正确,或者,若该相似用户关注该预设类型产品的频率值等于或小于预设频率阈值,则确定针对该相似用户的模型准确性测试结果为错误;If a similar user's preference probability value for the preset type product is greater than a preset preference probability threshold, the model accuracy test is performed for the similar user, and the user is confirmed to pay attention to the preset type product from the online data of the similar user. Frequency value, if the similar user pays attention to the frequency of the preset type product If the rate value exceeds the preset frequency threshold, it is determined that the model accuracy test result for the similar user is correct, or if the similar user pays attention to the preset type product, the frequency value is equal to or less than the preset frequency threshold, The model accuracy test result of the similar user is an error;
    若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比大于预设百分比阈值,则确定对所述用户偏好产品推荐模型的测试通过,或者,若为正确的模型准确性测试结果占所有模型准确性测试结果的百分比小于或等于预设百分比阈值,则确定对所述用户偏好产品推荐模型的测试不通过。If the correct model accuracy test result accounts for more than the preset percentage threshold for all model accuracy test results, then the test for the user preference product recommendation model is determined, or if the correct model accuracy test results account for If the percentage of all model accuracy test results is less than or equal to the preset percentage threshold, it is determined that the test of the user preference product recommendation model fails.
  14. 如权利要求9所述的电子装置,其特征在于,在所述步骤B之后,还包括如下步骤:The electronic device according to claim 9, further comprising the following steps after said step B:
    根据预先确定的聚类算法分析所述第一业务关键词表及所述第二业务关键词表,以将各个用户进行客户群体聚类。The first service keyword table and the second service keyword table are analyzed according to a predetermined clustering algorithm to cluster each customer into a customer group.
  15. 如权利要求14所述的电子装置,其特征在于,所述步骤C替换为:The electronic device according to claim 14, wherein said step C is replaced by:
    根据预先确定的相似性分析规则对所述第一业务关键词表及该用户所属的客户群体中的其他用户对应的第四业务关键词表进行分析,以分析出该用户所属的客户群体中与该用户对应的相似用户。And analyzing, according to the predetermined similarity analysis rule, the first service keyword table and the fourth service keyword table corresponding to other users in the customer group to which the user belongs, to analyze the customer group to which the user belongs A similar user corresponding to the user.
  16. 如权利要求15所述的电子装置,其特征在于,所述预先确定的聚类算法包括基于密度的聚类算法。The electronic device of claim 15, wherein the predetermined clustering algorithm comprises a density based clustering algorithm.
  17. 一种计算机可读存储介质,所述计算机可读存储介质存储有基于用户上网数据的产品推荐系统,所述基于用户上网数据的产品推荐系统可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:A computer readable storage medium storing a product recommendation system based on user internet data, the product recommendation system based on user internet data being executable by at least one processor to enable the at least one The processor performs the following steps:
    A、若需要给带有标识信息的用户推荐产品,则从预先确定的数据库中获取该用户在第一预设时间内的第一上网数据、及其他各个用户在所述第一预设时间内的第二上网数据;A. If the product needs to be recommended to the user with the identification information, obtain the first online data of the user within the first preset time from the predetermined database, and the other users are in the first preset time. Second online data;
    B、利用预先确定的业务关键词表生成规则对所获取的第一上网数据进行分析,生成该用户对应的第一业务关键词表,并对所获取的第二上网数据进行分析生成其他各个用户对应的第二业务关键词表,其中,所述业务关键词包括描述用户上网行为的动词及描述产品的名词,所述业务关键词表包括同一用户在所述第一预设时间内的所有业务关键词;B. analyzing the obtained first Internet data by using a predetermined business keyword table generation rule, generating a first service keyword table corresponding to the user, and analyzing the acquired second Internet data to generate other users. Corresponding second service keyword table, wherein the service keyword includes a verb describing a user's online behavior and a noun describing the product, and the business keyword table includes all services of the same user in the first preset time Key words;
    C、根据预先确定的相似性分析规则对所述第一业务关键词表及所述第二业务关键词表进行分析,以分析出该用户对应的相似用户;C. analyzing the first service keyword table and the second service keyword table according to a predetermined similarity analysis rule to analyze a similar user corresponding to the user;
    D、根据预先确定的用户偏好产品推荐模型分析所述第一业务关键词表、及所述相似用户对应的第二业务关键词表,以确定出该用户偏好的产品,向预先确定的终端发送针对该用户的产品推荐指令。D. The first service keyword table and the second service keyword table corresponding to the similar user are analyzed according to a predetermined user preference product recommendation model, and the product preferred by the user is determined, and sent to a predetermined terminal. Product recommendation instructions for this user.
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述预先确定的业务关键词表生成规则包括:The computer readable storage medium of claim 17, wherein the predetermined business keyword table generation rule comprises:
    构造由第二预设时间内所有用户的上网数据中的业务关键词组成的集合;Constructing a set of business keywords in the online data of all users in the second preset time;
    根据预先确定的匹配规则将所述第一上网数据与所述业务关键词进行匹配,以得到所述第一上网数据与所述业务关键词之间的第一映射关系; Matching the first Internet data with the service keyword according to a predetermined matching rule to obtain a first mapping relationship between the first Internet data and the service keyword;
    根据所述预先确定的匹配规则将所述第二上网数据与所述业务关键词进行匹配,以得到所述第二上网数据与所述业务关键词之间的第二映射关系;Matching the second Internet data with the service keyword according to the predetermined matching rule to obtain a second mapping relationship between the second Internet data and the service keyword;
    基于所述第一映射关系,生成该用户对应的第一业务关键词表;Generating, according to the first mapping relationship, a first service keyword table corresponding to the user;
    基于所述第二映射关系,分别生成其他用户对应的第二业务关键词表。And generating, according to the second mapping relationship, a second service keyword table corresponding to another user.
  19. 如权利要求18所述的计算机可读存储介质,其特征在于,所述预先确定的相似性分析规则包括余弦夹角相似法、欧几里德距离度量法、或皮尔逊相关系数法。The computer readable storage medium of claim 18, wherein the predetermined similarity analysis rule comprises a cosine angle similarity method, a Euclidean distance metric, or a Pearson correlation coefficient method.
  20. 如权利要求18所述的计算机可读存储介质,其特征在于,所述用户偏好产品推荐模型为协同过滤推荐模型,所述用户偏好产品推荐模型的训练过程包括如下步骤:The computer readable storage medium according to claim 18, wherein the user preference product recommendation model is a collaborative filtering recommendation model, and the training process of the user preference product recommendation model comprises the following steps:
    E、获取预设数量的相似用户的第三业务关键词表样本,将各个相似用户的第三业务关键词表样本分为对应的第一比例的训练集和第二比例的测试集;E. Obtain a preset number of third service keyword table samples of similar users, and divide the third service keyword table samples of each similar user into a corresponding first ratio training set and a second ratio test set;
    F、利用所述训练集中的各个相似用户的第三业务关键词表训练所述用户偏好产品推荐模型,以得到训练好的用户偏好产品推荐模型;F. training the user preference product recommendation model by using a third service keyword table of each similar user in the training set to obtain a trained user preference product recommendation model;
    G、利用所述测试集中各个相似用户的第三业务关键词表对所述用户偏好产品推荐模型进行测试,若测试通过,则训练结束,或者,若测试不通过,则增加所述训练集中的相似用户的第三业务关键词表样本并重新执行所述步骤E和所述步骤F。 G. testing, by using a third service keyword table of each similar user in the test set, the user preference product recommendation model, if the test passes, the training ends, or if the test fails, the training set is increased. The third user keyword table sample of the similar user and the step E and the step F are re-executed.
PCT/CN2017/108789 2017-09-30 2017-10-31 Electronic device, user's internet surfing data-based product recommendation method, and storage medium WO2019061664A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710916189.2A CN107818491A (en) 2017-09-30 2017-09-30 Electronic installation, Products Show method and storage medium based on user's Internet data
CN201710916189.2 2017-09-30

Publications (1)

Publication Number Publication Date
WO2019061664A1 true WO2019061664A1 (en) 2019-04-04

Family

ID=61607714

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108789 WO2019061664A1 (en) 2017-09-30 2017-10-31 Electronic device, user's internet surfing data-based product recommendation method, and storage medium

Country Status (2)

Country Link
CN (1) CN107818491A (en)
WO (1) WO2019061664A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609958A (en) * 2019-09-19 2019-12-24 Oppo广东移动通信有限公司 Data pushing method and device, electronic equipment and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108860162B (en) * 2018-07-18 2022-02-15 平安科技(深圳)有限公司 Electronic device, safety early warning method based on user driving behavior and storage medium
CN110895588B (en) * 2018-09-13 2022-07-22 中国移动通信有限公司研究院 Data processing method and equipment
CN111027993B (en) * 2018-10-09 2023-09-22 中国移动通信集团山西有限公司 Mobile phone recommendation method, device, equipment and storage medium
CN109325146A (en) * 2018-11-12 2019-02-12 平安科技(深圳)有限公司 A kind of video recommendation method, device, storage medium and server
CN111256347B (en) * 2018-11-30 2022-09-02 广东美的制冷设备有限公司 Recommendation terminal, receiving terminal, pushing method of comfortable temperature zone and storage medium
CN110321431B (en) * 2019-05-31 2023-11-14 平安科技(深圳)有限公司 Information analysis method, information analysis device, computer equipment and storage medium
CN115577167B (en) * 2022-08-29 2023-11-21 建信金融科技有限责任公司 Webassembl-based content recommendation method, device, equipment and storage medium
CN116842211B (en) * 2023-07-05 2024-03-15 北京能量时光教育科技有限公司 User analysis method and system based on live big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411596A (en) * 2010-09-21 2012-04-11 阿里巴巴集团控股有限公司 Information recommendation method and system
CN103428076A (en) * 2013-08-22 2013-12-04 北京奇虎科技有限公司 Method and device for transmitting information to multi-type terminals or applications
CN103886090A (en) * 2014-03-31 2014-06-25 北京搜狗科技发展有限公司 Content recommendation method and device based on user favorites
CN104750760A (en) * 2013-12-31 2015-07-01 中国移动通信集团上海有限公司 Application software recommending method and device
US20160092768A1 (en) * 2014-09-26 2016-03-31 Quixey, Inc. Providing application recommendations

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609523B (en) * 2012-02-10 2018-03-06 上海视畅信息科技有限公司 The collaborative filtering recommending method classified based on taxonomy of goods and user
CN102609533B (en) * 2012-02-15 2015-03-18 中国科学技术大学 Kernel method-based collaborative filtering recommendation system and method
CN103049865A (en) * 2012-12-17 2013-04-17 中国农业大学 Method and system for initiatively recommending product information service
CN105095256B (en) * 2014-05-07 2019-06-11 阿里巴巴集团控股有限公司 The method and device of information push is carried out based on similarity between user
CN104156450B (en) * 2014-08-15 2017-11-07 同济大学 A kind of Item Information based on user network data recommends method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411596A (en) * 2010-09-21 2012-04-11 阿里巴巴集团控股有限公司 Information recommendation method and system
CN103428076A (en) * 2013-08-22 2013-12-04 北京奇虎科技有限公司 Method and device for transmitting information to multi-type terminals or applications
CN104750760A (en) * 2013-12-31 2015-07-01 中国移动通信集团上海有限公司 Application software recommending method and device
CN103886090A (en) * 2014-03-31 2014-06-25 北京搜狗科技发展有限公司 Content recommendation method and device based on user favorites
US20160092768A1 (en) * 2014-09-26 2016-03-31 Quixey, Inc. Providing application recommendations

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609958A (en) * 2019-09-19 2019-12-24 Oppo广东移动通信有限公司 Data pushing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107818491A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
WO2019061664A1 (en) Electronic device, user's internet surfing data-based product recommendation method, and storage medium
CN107818344B (en) Method and system for classifying and predicting user behaviors
CN107613022B (en) Content pushing method and device and computer equipment
WO2019061994A1 (en) Electronic device, insurance product recommendation method and system, and computer readable storage medium
WO2021174944A1 (en) Message push method based on target activity, and related device
US11756059B2 (en) Discovery of new business openings using web content analysis
US20210056458A1 (en) Predicting a persona class based on overlap-agnostic machine learning models for distributing persona-based digital content
US10511681B2 (en) Establishing and utilizing behavioral data thresholds for deep learning and other models to identify users across digital space
CN112613917A (en) Information pushing method, device and equipment based on user portrait and storage medium
CN111666492A (en) Information pushing method, device and equipment based on user behaviors and storage medium
US20230004979A1 (en) Abnormal behavior detection method and apparatus, electronic device, and computer-readable storage medium
US20130198240A1 (en) Social Network Analysis
CN105069036A (en) Information recommendation method and apparatus
US10147020B1 (en) System and method for computational disambiguation and prediction of dynamic hierarchical data structures
US20150262079A1 (en) Program boosting including using crowdsourcing for correctness
CN110909222A (en) User portrait establishing method, device, medium and electronic equipment based on clustering
WO2016122575A1 (en) Product, operating system and topic based recommendations
CN114186760A (en) Analysis method and system for stable operation of enterprise and readable storage medium
CN114493255A (en) Enterprise abnormity monitoring method based on knowledge graph and related equipment thereof
WO2019095569A1 (en) Financial analysis method based on financial and economic event on microblog, application server, and computer readable storage medium
US10474688B2 (en) System and method to recommend a bundle of items based on item/user tagging and co-install graph
CN112070559A (en) State acquisition method and device, electronic equipment and storage medium
CN114495137B (en) Bill abnormity detection model generation method and bill abnormity detection method
CN112347457A (en) Abnormal account detection method and device, computer equipment and storage medium
CN114925275A (en) Product recommendation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17927530

Country of ref document: EP

Kind code of ref document: A1