Item recommendation method, device, terminal device and storage medium

By obtaining and segmenting users' purchasing behavior characteristics in item recommendations, constructing time series features and weighted averages, and using linear and DNN models, we solve the problems of low personalization and insufficient recommendation accuracy in the existing technology, and achieve more accurate Item recommendations.

CN112766995BActive Publication Date: 2024-09-24CHINA MERCHANTS SECURITIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910999087.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-21
Publication Date
2024-09-24
Estimated Expiration
2039-10-21

AI Technical Summary

Technical Problem

Existing item recommendation methods have problems such as low degree of personalization and insufficient accuracy of item recommendation results. Rule recommendation is subjective and time-consuming. Algorithmic recommendation such as collaborative filtering and content-based recommendation are difficult to accurately predict user preferences.

Method used

By obtaining the user's purchasing behavior characteristics within a preset time period, dividing them into multiple target time windows, constructing user time series characteristics, and inputting them into the preset recommendation model for weighted average, utilizing the memory capabilities and generalization of linear models and DNN models Ability to dynamically track changes in user preferences and recommend items that best meet user needs.

Benefits of technology

It improves the accuracy and personalization of item recommendations, can better meet users' preferences in different time windows, and provides more accurate recommendation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112766995B
    Figure CN112766995B
Patent Text Reader

Abstract

The present application is applicable to the field of computer technology, and provides an item recommendation method, including: obtaining the purchase behavior characteristics of users within a preset time period; constructing the user time series characteristics corresponding to each target time window based on the purchase behavior characteristics; inputting the user time series characteristics corresponding to each target time window into a preset recommendation model, and outputting the preliminary recommendation results corresponding to each target time window; performing weighted averaging on the preliminary recommendation results corresponding to each target time window to obtain the item recommendation results. By dynamically tracking the changes in user preferences over time, the preset recommendation model combines the memory capacity of the linear model and the generalization capacity of the DNN model, solving the problems of low personalization and insufficient accuracy of the item recommendation results in the existing item recommendation methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to an item recommendation method, apparatus, terminal device and storage medium. Background Art

[0002] Current item recommendation methods are mainly based on rule recommendation and algorithm recommendation. The rule setting in rule recommendation is relatively subjective, and there are problems such as difficult and time-consuming rule extraction and low personalization. The current algorithm recommendation has the problem of insufficient accuracy of item recommendation results. Summary of the invention

[0003] The embodiments of the present application provide an item recommendation method, apparatus, terminal device, and storage medium, which can solve the problem of insufficient accuracy of item recommendation results in existing item recommendation methods.

[0004] In a first aspect, an embodiment of the present application provides an item recommendation method, comprising:

[0005] Obtain the purchasing behavior characteristics of users within a preset time period;

[0006] Constructing a user time series feature corresponding to each target time window according to the purchase behavior feature, wherein a plurality of the target time windows are included in the preset time period;

[0007] Inputting the user time series features corresponding to each of the target time windows into a preset recommendation model, and outputting a preliminary recommendation result corresponding to each of the target time windows;

[0008] The preliminary recommendation results corresponding to each of the target time windows are weighted averaged to obtain an item recommendation result.

[0009] The embodiment of the present application obtains the purchasing behavior characteristics of users within a preset time period, divides the preset time period into multiple target time windows, and constructs the user time series characteristics corresponding to each target time window based on the purchasing behavior characteristics, fully mines the time series information of users' preferences for items, and dynamically tracks the changes in user preferences over time; the user time series characteristics corresponding to each time window are input into a preset recommendation model, and the preliminary recommendation results of the corresponding target time windows are output respectively, and the preliminary recommendation results of each target time window are weighted averaged to obtain the item recommendation results, so as to recommend the items that best meet the user's needs to the user based on the user's preferences through the memory capacity of the linear model and the generalization capacity of the DNN model in the preset recommendation model, thereby solving the problems of low personalization and insufficient accuracy of item recommendation results in existing item recommendation methods.

[0010] In a second aspect, an embodiment of the present application provides an item recommendation device, comprising:

[0011] An acquisition module is used to acquire the purchasing behavior characteristics of users within a preset time period;

[0012] A construction module, configured to construct a user time series feature corresponding to each target time window according to the purchase behavior feature, wherein a plurality of the target time windows are included in the preset time period;

[0013] An output module, used to input the user time series features corresponding to each of the target time windows into a preset recommendation model, and output a preliminary recommendation result corresponding to each of the target time windows;

[0014] The weighting module is used to perform weighted averaging on the preliminary recommendation results corresponding to each of the time windows to obtain an item recommendation result.

[0015] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the item recommendation method described in any one of the first aspects above when executing the computer program.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the item recommendation method described in any one of the first aspects above is implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the item recommendation method described in any one of the first aspects above.

[0018] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 is a flowchart of an item recommendation method provided in an embodiment of the present application;

[0021] Figure 2 is a flowchart of another item recommendation method provided in an embodiment of the present application;

[0022] Figure 3is a flowchart of another item recommendation method provided in an embodiment of the present application;

[0023] Figure 4 is a flowchart of another item recommendation method provided in an embodiment of the present application;

[0024] Figure 5 is a flowchart of another item recommendation method provided in an embodiment of the present application;

[0025] Figure 6 is a flowchart of another item recommendation method provided in an embodiment of the present application;

[0026] Figure 7 is a schematic diagram of the structure of an item recommendation device provided in an embodiment of the present application;

[0027] Figure 8 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0029] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0030] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0031] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0032] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0033] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0034] As described in the related background technology, the current item recommendation methods are mainly based on rule recommendation and algorithm recommendation. In order to more accurately locate suitable customers for a certain product, rule recommendation takes advantage of a large amount of data, sets a series of association rules to screen customers, and finally obtains a customer list. However, this rule setting is relatively subjective, and there are problems such as difficulty in rule extraction, time-consuming and low personalization. Algorithm recommendation is mainly based on collaborative filtering recommendation and content-based recommendation. Among them, collaborative recommendation cannot accurately predict user preferences at the beginning of recommendation, and there is a problem of insufficient accuracy of recommendation results at the beginning of recommendation. Content-based recommendation requires that the feature content has good structure, and user preferences must be able to be expressed in the form of content features. It cannot explicitly obtain the judgment of other users, and there is also a problem of insufficient accuracy of recommendation results.

[0035] Therefore, a method for item recommendation is needed to construct user time series features corresponding to user preference features in different time windows based on the purchasing behavior characteristics of users in different time windows, predict the user time series features in different time windows through a preset recommendation model, obtain multiple preliminary recommendation results, and obtain the item recommendation results after weighting the multiple preliminary recommendation results, so as to improve the accuracy of the recommendation results of the item recommendation method.

[0036] Among them, user time series features include but are not limited to category features and continuity features. Category features include but are not limited to user type features, item type features, and user purchased item features, etc. Continuity features include but are not limited to user asset features and age features, etc.

[0037] The item recommendation method provided in the embodiments of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of terminal devices.

[0038] Figure 1 A schematic flow chart of the item recommendation method provided in the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned mobile phone.

[0039] S101, obtaining the purchasing behavior characteristics of the user within a preset time period;

[0040] In the above S101, the above purchase behavior characteristics are the behavior characteristics of the user who has purchased a certain type or a certain category of items. Before obtaining the purchase behavior characteristics of the user in the preset time period, the item types can be classified, each item type corresponds to a purchase behavior characteristic, and then the items actually purchased by the user in the preset time period are obtained, and the item type corresponding to each item actually purchased by the user in the preset time period is determined according to the classification of the item types, thereby determining the purchase behavior characteristics of the user.

[0041] For example, if a user has purchased cola, Sprite, apples, and lettuce in the past 15 days, then it can be determined that the user's purchase behavior characteristics in the past 15 days are that he has purchased soda, fruit, and vegetables. Further, based on the number of times the same type of items are purchased, it can be determined that the user prefers to buy soda, followed by fruit and vegetables. It should be understood that the user's purchase behavior characteristics can be obtained only for a certain field of items, such as only obtaining user purchase behaviors related to the field of financial products, which will not be repeated here.

[0042] S102, constructing a user time series feature corresponding to each of the target time windows according to the purchase behavior feature, wherein a plurality of the target time windows are included in the preset time period;

[0043] In the above S102, the above user time series features are time series features composed of the purchase behavior features of the user at various time points within the target time window. All the purchase behavior features of the user within each target time window can be combined into a user time series feature in chronological order to obtain multiple user time series features. It can be understood that in addition to the purchase behavior features, the user time series features can also include but are not limited to user asset features and user age features. This step constructs the user time series features of each target time window, so that the implicit features of user preferences that change over time can be extracted.

[0044] S103, inputting the user time series features corresponding to each of the target time windows into a preset recommendation model, and outputting a preliminary recommendation result corresponding to each of the target time windows;

[0045] In the above S103, the above preset recommendation model is a deep model based on a wide algorithm model and a deep algorithm model, wherein the wide algorithm can be a logistic regression algorithm (Logistics Regression, LR), and the deep algorithm can be a deep neural network algorithm (DNN) or a factorization machine algorithm (Factorization Machines, FM). The above preliminary recommendation result is that the user inputs the user time series features of each target time window into the preset recommendation model trained by training samples at a certain time, and the wide model and deep model in the preset recommendation model jointly operate on the user time series features and output multiple preliminary recommendation results. This step optimizes the recommendation ability of the overall model by utilizing the memory capacity of the LR model and the generalization capacity of the DNN model in the preset recommendation model.

[0046] S104: Perform weighted averaging on the preliminary recommendation results corresponding to the target time windows to obtain an item recommendation result.

[0047] In the above S104, the above item recommendation result is the final recommendation result. The weighted average of all the preliminary recommendation results is taken, and the item recommendation result can be: Among them, m score represents the preliminary recommendation result, w i represents the weight of the preliminary recommendation result of the i-th target time window, and r represents the number of target time windows.

[0048] The embodiment of the present application obtains the purchasing behavior characteristics of users within a preset time period, divides the preset time period into multiple target time windows, and constructs the user time series characteristics corresponding to each target time window based on the purchasing behavior characteristics, fully mines the time series information of users' preferences for items, and dynamically tracks the changes in user preferences over time; the user time series characteristics corresponding to each time window are input into a preset recommendation model, and the preliminary recommendation results of the corresponding target time windows are output respectively, and the preliminary recommendation results of each target time window are weighted averaged to obtain the item recommendation results, so as to recommend the items that best meet the user's needs to the user based on the user's preferences through the memory capacity of the linear model and the generalization capacity of the DNN model in the preset recommendation model, thereby solving the problems of low personalization and insufficient accuracy of item recommendation results in existing item recommendation methods.

[0049] exist Figure 1 Based on the embodiment shown, the present application provides another embodiment of an item recommendation method. The above step S102 includes S1021 before step S102. It should be noted that Figure 1 The same steps as in the embodiment will not be repeated here, please refer to the above.

[0050] S1021: Use a sliding time window to divide the preset time period into multiple target time windows.

[0051] In the above S1021, the above sliding time window may be a time window with the same length as the preset time period. The sliding time window divides the preset time period, and each time the sliding time window is slid by a preset displacement on the preset time period, part or all of the preset time period overlapping with the sliding time window is used as a target time window, and multiple target time windows are obtained after multiple sliding. Alternatively, each time the sliding time window is reduced by a preset time length, part or all of the preset time period overlapping with the reduced sliding time window is used as a target time window, and multiple target time windows are obtained after multiple reductions. It should be understood that the sliding time window may also be a time window of a custom length.

[0052] exist Figure 1 Based on the embodiment shown, Figure 2 FIG. 2 is a flow chart of another method for recommending items provided in an embodiment of the present application. Figure 2 As shown, the above step S1021 includes S201 and S202. It should be noted that Figure 1 The same steps as in the embodiment will not be repeated here, please refer to the above.

[0053] S201, obtaining a time interval between the preset time period and the time to be recommended, where the time to be recommended is a time point or time period when an item is to be recommended to the user;

[0054] In the above S201, the time to be recommended is the time point or time period for recommending items that the user may need. For example, if the preset time period is from October 15 to October 31, and the time to be recommended is November 5, the time interval between the two is 5 days.

[0055] S202, moving the sliding time window forward in the time direction of the preset time period at the time interval each time until the sliding time window moves to before the preset time period, thereby obtaining a plurality of the target time windows.

[0056] In the above S202, after each movement of the sliding time window, part or all of the preset time period that overlaps with the sliding time window is used as a target time window. For example, the preset time period is 10.15-10.31, and the sliding time window completely overlaps with the preset time period, that is, 10.15-10.31 is used as a target time window, and the sliding time window moves 5 days before the preset time period, then 10.15-10.26 is used as another target time window, and so on until the sliding time window moves to before the preset time period (no longer overlaps with the preset time period).

[0057] The preset time period is divided according to the time interval between the time to be recommended and the preset time period, so that the change of the user's preference in each time interval can be learned, so that the recommendation result of the time to be recommended with the same time interval as the preset time period is more accurate.

[0058] exist Figure 1 Based on the embodiment shown, Figure 3 FIG. 2 is a flow chart of another method for recommending items provided in an embodiment of the present application. Figure 3 As shown, the above step S104 includes S301 to S303. Figure 1 The same steps as in the embodiment will not be repeated here, please refer to the above.

[0059] S301, randomly sampling negative samples and dividing them into several sets, wherein the negative samples are items that the user has not purchased, and each set corresponds to one of the preset recommendation models;

[0060] In the above S301, the items purchased by the user are taken as positive samples, and the items purchased by the user are taken as negative samples. Since the proportion of users purchasing a certain type of items is relatively low compared to negative samples, the negative samples are randomly sampled and divided into h sets, and a preset recommendation model is trained based on each set to enrich the sample features.

[0061] S302, inputting a first user time series feature into a preset recommendation model of each of the sets, and outputting a plurality of first results corresponding to the first user time series feature, wherein the first user time series feature is one of the user time series features;

[0062] In the above S302, the above first user time series feature is one of all user time series features. It can be understood that the user time series feature of each target time window can be used as the first user time series feature, that is, each first user time series feature is input into the preset recommendation model to obtain the first result.

[0063] S303: Perform weighted averaging on the multiple first results to obtain the preliminary recommendation result corresponding to the target time window of the first user temporal feature.

[0064] In the above S303, a weighted average is taken for the multiple first results, and the preliminary recommendation result for a target time window may be: Where P i (Y=1|x) is the first result of the i-th order, w i is the weight of the i-th first result, and h is the number of negative samples in the set.

[0065] This embodiment performs weighted averaging on the first results corresponding to the user's temporal features in each target time window, thereby determining the recommendation results for the time to be recommended according to the user's purchase preferences in each target time window with different weights.

[0066] exist Figure 3 Based on the embodiment shown, Figure 4 FIG. 2 is a flow chart of another method for recommending items provided in an embodiment of the present application. Figure 4 As shown, each of the preset recommendation models includes a wide model and a deep model, and the above step S302 includes S401 to S403. Figure 3 The same steps as in the embodiment will not be repeated here, please refer to the above.

[0067] S401, inputting the first user time series feature into the wide model of each of the preset recommendation models to obtain a plurality of second results;

[0068] In the above S401, the above wide model is a linear model such as an LR model, such as y=wx+b, where x is a user time series feature and a cross feature obtained by feature conversion of the user time series feature. It should be understood that each of the above preset recommendation models corresponds to a second result.

[0069] S402, inputting the first user time series feature into the deep model of each of the preset recommendation models to obtain a plurality of third results;

[0070] In the above S402, the above deep model is a feedforward neural network model such as a DNN model and an FM model. The category features (such as product type features, user type features, etc.) in the first user time series features are uniquely encoded to obtain sparse data, and the reduced dimension features after the sparse data is reduced in dimension are input into the deep model. Optionally, the activation function of the deep model is a ReLU function.

[0071] S403: Weight each of the second results and the corresponding third result to obtain a plurality of first results.

[0072] In the above S403, each second result and the second result are weighted, and the first result can be: P(Y=1|x)=σ(w wide [x,φ(x)])+w deep a (lf) +b, where Y is a binary variable, σ is the activation function, φ(x) is the original feature generated after cross-conversion, and b represents the error term. wide Represents the weight of the wide model, w deep is the activation function a of the final deep model (lf) The weight of .

[0073] exist Figure 4 Based on the embodiment shown, Figure 5 FIG. 2 is a flow chart of another method for recommending items provided in an embodiment of the present application. Figure 5 As shown, the above step S401 includes S501 and S502. It should be noted that Figure 4 The same steps as in the embodiment will not be repeated here, please refer to the above.

[0074] S501, cross any two features of the first user time series features to obtain multiple cross features;

[0075] S502: Use the cross feature and the first user time series feature as input of each of the wide models, and output a plurality of the second results.

[0076] In the above S501 and S502, the behavior characteristics of the user purchasing items and other characteristics (such as continuity characteristics and category characteristics) are used to generate cross-features, and the cross-features can be defined as: c∈{0,1}, where x i Represents the i-th feature in the time window. Since the input x is of one-hot encoding type, the cross feature can be understood as the product of any two features.

[0077] exist Figure 4 Based on the embodiment shown, Figure 6FIG. 2 is a flow chart of another method for recommending items provided in an embodiment of the present application. Figure 6 As shown, the above step S402 includes S601 to S603. It should be noted that Figure 4 The same steps as in the embodiment will not be repeated here, please refer to the above.

[0078] S601, performing one-hot encoding on the first user time series features to obtain sparse features;

[0079] In the above S601, the above unique hot encoding is one-hot encoding, so as to make the first user time series feature sparse.

[0080] S602, densifying the sparse features through an embedding layer to obtain a plurality of reduced-dimensional features;

[0081] S603: Use the dimension reduction feature as the input of each of the deep models, and output a plurality of the third results.

[0082] In the above S602 and S603, the above embedding layer can be a hidden layer based on the principal component analysis algorithm (PCA). After the sparse features are densified, the generalization ability of the model can be achieved by learning low-dimensional dense vectors, and the expansion ability of the model can be enhanced. It should be understood that in other embodiments, dimensionality reduction can also be achieved by embedding.

[0083] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0084] Corresponding to the item recommendation method described in the above embodiment, Figure 7 A structural block diagram of an item recommendation device 700 provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0085] Reference Figure 7 , the device comprises:

[0086] Acquisition module 701, used to acquire the purchase behavior characteristics of the user within a preset time period;

[0087] A construction module 702 is used to construct a user time series feature corresponding to each target time window according to the purchase behavior feature, wherein a plurality of the target time windows are included in the preset time period;

[0088] An output module 703, configured to input the user time series features corresponding to each of the target time windows into a preset recommendation model, and output a preliminary recommendation result corresponding to each of the target time windows;

[0089] The weighting module 704 is used to perform weighted averaging on the preliminary recommendation results corresponding to each of the time windows to obtain an item recommendation result.

[0090] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0091] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0092] Figure 8 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 8 As shown, the terminal device 8 of this embodiment includes: at least one processor 80 ( Figure 8 Only one is shown in the figure) a processor, a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, wherein the processor 80 implements the steps in any of the above-mentioned item recommendation method embodiments when executing the computer program 82.

[0093] The terminal device 8 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the terminal device 8 and does not constitute a limitation on the terminal device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0094] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0095] In some embodiments, the memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or memory of the terminal device 8. In other embodiments, the memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device 8. Further, the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0096] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0097] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0099] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0100] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0101] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0103] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An item recommendation method, characterized in that: include: Acquiring the purchasing behavior characteristics of the user within a preset time period, including: acquiring the items actually purchased by the user within the preset time period, determining the item type corresponding to each item actually purchased by the user within the preset time period according to the classification of the item types, and determining the purchasing behavior characteristics of the user; According to the purchase behavior characteristics, construct a user time series feature corresponding to each target time window, wherein a plurality of the target time windows are included in the preset time period, and the plurality of target time windows are obtained by segmenting the preset time period using a sliding time window, and the user time series feature also includes a user asset feature and a user age feature; Inputting the user time series features corresponding to each of the target time windows into a preset recommendation model, and outputting a preliminary recommendation result corresponding to each of the target time windows; Taking a weighted average of the preliminary recommendation results corresponding to each of the target time windows to obtain an item recommendation result; The user time series features corresponding to each target time window are input into a preset recommendation model, and a preliminary recommendation result corresponding to each target time window is output, including: Randomly sampling negative samples and dividing them into several sets, wherein the negative samples are items that the user has not purchased, each set corresponds to one of the preset recommendation models, and the preset recommendation model is a deep model based on the wide model and the deep model; Inputting a first user time series feature into a preset recommendation model of each of the sets, and outputting a plurality of first results corresponding to the first user time series feature, wherein the first user time series feature is one of the user time series features; A weighted average is performed on the multiple first results to obtain the preliminary recommendation result of the target time window corresponding to the first user temporal feature.

2. The item recommendation method according to claim 1, characterized in that: The step of dividing the preset time period by using a sliding time window to obtain a plurality of target time windows includes: Acquire the time interval between the preset time period and the time to be recommended, where the time to be recommended is the time point or time period when an item is to be recommended to the user; The sliding time window is moved forward in the time direction of the preset time period at the time interval each time until the sliding time window moves to before the preset time period, thereby obtaining a plurality of the target time windows.

3. The item recommendation method according to claim 1, wherein: Each of the preset recommendation models includes a wide model and a deep model, and the first user time series feature is input into each of the preset recommendation models of the set, and a plurality of first results corresponding to the first user time series feature are output, including: Inputting the first user time series feature into the wide model of each of the preset recommendation models to obtain a plurality of second results; Inputting the first user time series feature into the deep model of each of the preset recommendation models to obtain a plurality of third results; Each of the second results and the corresponding third result is weighted to obtain a plurality of first results.

4. The item recommendation method according to claim 3, characterized in that: The step of inputting the first user time series feature into the wide model of each of the preset recommendation models to obtain a plurality of second results includes: Crossing any two features of the first user time series features to obtain multiple cross features; The cross-features and the first user time series features are used as inputs of each of the wide models, and a plurality of the second results are output.

5. The item recommendation method according to claim 3, characterized in that: The step of inputting the first user time series feature into the deep model of each of the preset recommendation models to obtain a plurality of third results includes: Performing one-hot encoding on the first user time series features to obtain sparse features; Densifying the sparse features through an embedding layer to obtain multiple dimensionality reduction features; The dimension reduction feature is used as the input of each of the deep models, and a plurality of the third results are output.

6. An item recommendation device, characterized in that: include: An acquisition module, used to acquire the purchase behavior characteristics of the user within a preset time period, including: acquiring the items actually purchased by the user within the preset time period, determining the item type corresponding to each item actually purchased by the user within the preset time period according to the classification of the item types, and determining the purchase behavior characteristics of the user; A construction module, configured to construct a user time series feature corresponding to each target time window according to the purchase behavior feature, wherein a plurality of the target time windows are included in the preset time period, the plurality of target time windows are obtained by segmenting the preset time period using a sliding time window, and the user time series feature further includes a user asset feature and a user age feature; An output module, used to input the user time series features corresponding to each of the target time windows into a preset recommendation model, and output a preliminary recommendation result corresponding to each of the target time windows; A weighting module, used to perform weighted averaging on the preliminary recommendation results corresponding to each of the time windows to obtain an item recommendation result; Among them, the output module is specifically used to randomly sample negative samples and divide them into several sets, wherein the negative samples are items that the user has not purchased, and each of the sets corresponds to a preset recommendation model, and the preset recommendation model is a deep model based on the wide model and the deep model; the first user time series feature is input into the preset recommendation model of each of the sets, and multiple first results corresponding to the first user time series feature are output, wherein the first user time series feature is one of the user time series features; the multiple first results are weighted averaged to obtain the preliminary recommendation result of the target time window corresponding to the first user time series feature.

7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.