A product recommendation method based on convolutional neural network and related equipment
The convolutional neural network is used to analyze user gaze behavior and obtain interest scores in real time, which solves the problem of inaccurate recommendation results in the existing technology and achieves high efficiency and accuracy in personalized product recommendations.
Patent Information
- Application Number
- CN202111221961.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-10-20
AI Technical Summary
Existing product recommendation methods are difficult to accurately capture changes in users' shopping thoughts, resulting in inaccurate recommendation results.
Using a method based on convolutional neural networks, by obtaining videos and eye movement videos of users browsing product display pages, the user's gaze behavior is analyzed, the user's area of interest is determined, and products are recommended in real time based on interest scores and product information.
It improves the accuracy and real-timeness of product recommendations, can better adapt to changes in users' shopping thoughts, and provides personalized product recommendations.
Smart Images

Figure CN113850653B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a product recommendation method based on convolutional neural network and related equipment. Background Art
[0002] With the development of information technology, the Internet is flooded with a large amount of content and information. Users are easily misled by a large amount of information and cannot find content and products that suit them. For example, in a shopping scenario, product recommendations can be made to users, that is, products suitable for users can be screened out for recommendation. At present, product recommendations are mostly made to users based on the customer's identity information, purchased products, or the popularity of products. Specifically, the user's preferences can be determined based on the user's historical operations on the terminal device, that is, the operations of clicking, browsing, collecting, adding to cart, and trading on one or more products, so as to recommend products to the user based on the user's preferences. However, if the user's shopping ideas change, and product recommendations are still made based on the user's historical operations, it will be impossible to find products suitable for the user, and the recommended products to the user will be inaccurate.
[0003] Therefore, how to accurately recommend products to users is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The embodiment of the present application provides a product recommendation method based on a convolutional neural network, which can obtain user preferences in real time and recommend products to users based on their preferences, thereby improving the accuracy of product recommendations.
[0005] In a first aspect, an embodiment of the present application provides a product recommendation method based on a convolutional neural network, comprising:
[0006] A first image frame and a first eye movement video of a user browsing a product display page are obtained, wherein the first image frame is any image frame in a first video to be tested, the first video to be tested is a video including the eyes of the user, and the first eye movement video is a video including the position where the user gazes at the product display page; when it is determined that the first image frame satisfies the gaze condition, difference information between a second image frame and the first image frame is determined, wherein the second image frame is an image frame adjacent to the first image frame in the first video to be tested; when it is determined that the difference information between the second image frame and the first image frame satisfies the similarity condition according to the difference information, the first image frame and the second image frame are determined as image frames under a target category; a time period of all image frames included in the target category in the first video to be tested is determined to obtain a first time period, and a target area of the product display page where the user gazes at in the first time period in the first eye movement video is determined; the first image frame is input into a pre-trained target convolutional neural network to obtain a first interest score of the user for the target area, and a product is recommended to the user according to the first interest score and the product information included in the target area.
[0007] Furthermore, in the case where it is determined that the first image frame satisfies the gaze condition, before determining the difference information between the second image frame and the first image frame, the method further includes: inputting the first video to be tested into a pre-trained eye recognition model to obtain eye information included in each image frame in the first video to be tested output by the eye recognition model, wherein the eye information includes the eye area of the user and the position information of N different feature points of the pupil in the eye of the user, where N is an integer greater than 1; determining whether the first image frame satisfies the gaze condition based on the position information of the eye area of the user and the N different feature points of the pupil in the eye of the user; and determining that the first image frame satisfies the gaze condition when it is determined that the size of the eye area of the user is within a preset size range and the position information of the N different feature points of the pupil in the eye of the user satisfies the static state.
[0008] Furthermore, the N different feature points of the pupil in the user's eye include a center feature point of the pupil and N-1 circular feature points in the pupil; the method also includes: determining the position information of the center feature point and a first circular feature point of the pupil in the user's eye in the first image frame, wherein the first circular feature point is any feature point among the N-1 circular feature points in the pupil; determining a first position range where the center feature point is located and a second position range where the first circular feature point is located according to the position information of the center feature point and the first circular feature point of the pupil in the user's eye in each image frame of the first video to be tested; when it is determined that the first position range and the second position range are both smaller than the preset position range, determining that the position information of the N different feature points of the pupil in the user's eye satisfies a stationary state.
[0009] Further, the above-mentioned determination of the difference information between the second image frame and the above-mentioned first image frame includes: calculating the pixel difference value of the matching pixel points between the above-mentioned second image frame and the above-mentioned first image frame, and performing binarization processing according to the above-mentioned pixel difference value to obtain an inter-frame difference binary map between the above-mentioned second image frame and the above-mentioned first image frame; wherein the pixel values on the above-mentioned inter-frame difference binary map include a first preset value and a second preset value, and when the pixel value difference value of the matching pixel points between the above-mentioned second image frame and the above-mentioned first image frame is greater than the preset difference value threshold, the pixel value of the corresponding position on the above-mentioned inter-frame difference binary map is determined to be the first preset value, otherwise, the pixel value of the corresponding position on the above-mentioned inter-frame difference binary map is determined to be the second preset value; the pixel point corresponding to the above-mentioned first preset value is used as the difference information between the above-mentioned second image frame and the above-mentioned first image frame; in the above-mentioned inter-frame difference binary map, when the number of pixel points of the above-mentioned first preset value is less than the preset number threshold, it is determined that the difference information between the above-mentioned second image frame and the above-mentioned first image frame meets the above-mentioned similarity condition.
[0010] Furthermore, the above-mentioned recommending products to the above-mentioned user based on the above-mentioned first interest score and the product information included in the above-mentioned target area includes: determining the target product label corresponding to the above-mentioned product information, and determining the target user label of the above-mentioned user based on the above-mentioned target product label and the above-mentioned first interest score; inputting the image frames other than the above-mentioned first image frame in the above-mentioned target category into the above-mentioned pre-trained target convolutional neural network to obtain the interest scores of the above-mentioned user for the above-mentioned target area in each image frame; updating the above-mentioned first interest score in the above-mentioned target user label according to the interest scores of the above-mentioned user for the above-mentioned target area in each image frame to obtain an updated target user label; obtaining the to-be-recommended product corresponding to the above-mentioned updated target user label, and recommending the above-mentioned to-be-recommended product to the above-mentioned user.
[0011] Furthermore, the method also includes: if it is determined that the first interest score is higher than a preset score threshold, obtaining reference product information of the target product label, the reference product information being refined product information of the product information; sending a display instruction to the terminal device of the user, the display instruction being used to instruct the terminal device to display a reference product display page including the reference product information in the user interface, and obtaining a second test video and a second eye movement video of the user browsing the reference product display page; inputting the second test video into the pre-trained target convolutional neural network to obtain the user's second interest score for the reference product information; when the second interest score is lower than the preset score threshold, determining a low-score area where the user browses the reference product display page based on the second eye movement video, and adjusting the recommended product based on the reference product information and the low-score area.
[0012] Furthermore, the above-mentioned reference product information includes product attributes, and the above-mentioned adjusting the above-mentioned to-be-recommended products based on the above-mentioned reference product information and the above-mentioned low-score region includes: determining the target product attributes corresponding to the above-mentioned low-score region, and obtaining user tags for the above-mentioned target product attributes from multiple reference users whose similarity with the identity information of the above-mentioned user is greater than a preset similarity threshold; determining the proportion of the number of user tags for the above-mentioned target product attributes whose interest scores are lower than the above-mentioned preset score threshold to the total number of reference users, and when the above-mentioned proportion is greater than the preset proportion threshold, adjusting the above-mentioned target product attributes according to the identity information of the above-mentioned user.
[0013] In a second aspect, an embodiment of the present application provides a product recommendation device based on a convolutional neural network, comprising:
[0014] an acquisition unit, configured to acquire a first image frame and a first eye movement video of a user browsing a product display page, wherein the first image frame is any image frame in a first video to be tested, the first video to be tested is a video including the eyes of the user, and the first eye movement video is a video including a position where the user is gazing at the product display page;
[0015] a determining unit, configured to determine difference information between a second image frame and the first image frame when it is determined that the first image frame satisfies the gaze condition, the second image frame being an image frame adjacent to the first image frame in the first video to be tested;
[0016] The determination unit is further configured to determine the first image frame and the second image frame as image frames under the target category when it is determined according to the difference information that the difference information between the second image frame and the first image frame meets a similarity condition;
[0017] The determination unit is further configured to determine a time period of all image frames included in the target category in the first video to be tested, obtain a first time period, and determine a target area of the product display page that the user gazes at during the first time period in the first eye movement video;
[0018] An input unit is used to input the above-mentioned first image frame into a pre-trained target convolutional neural network to obtain the above-mentioned user's first interest score for the above-mentioned target area, and recommend products to the above-mentioned user based on the above-mentioned first interest score and the product information included in the above-mentioned target area.
[0019] In addition, in this aspect, other optional implementations of the product recommendation device based on convolutional neural network can refer to the relevant content of the first aspect mentioned above, which will not be described in detail here.
[0020] In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a transceiver; the processor is connected to the memory and the transceiver, respectively, wherein the memory stores a computer program code, and the processor and the transceiver are used to call the program code to execute the method provided by the first aspect and / or any possible implementation of the first aspect.
[0021] In a fourth aspect, an embodiment provides a computer-readable storage medium storing a computer program, which, when executed by a computer device, implements a product recommendation method based on a convolutional neural network as disclosed in any possible implementation of the first aspect.
[0022] In an embodiment of the present application, by obtaining a video to be tested and an eye movement video including the user's eyes when the user browses a product display page, and analyzing the video to be tested and the eye movement video, the user's preferences can be obtained in real time, wherein, by determining that a certain image frame in the video to be tested meets the gaze condition, and determining that the image frame adjacent to the image frame in the video to be tested meets the similar condition, similar image frames can be classified into one category to obtain image frames of the target category. Further, the image frames of the target category are analyzed, specifically, the time period of similar image frames in the video to be tested is determined, and the target area of the user's gaze in the eye movement video can be determined through the time period, and the interest score of the image frame of the target category to the target area is determined according to the pre-trained target convolutional neural network. Finally, through the interest score and the product information included in the target area, the product is recommended to the user, and the user's preferences can be determined in real time according to the content of the user's gaze, and the user's interest score can be obtained by analyzing the image including the user's eyes. Therefore, the user's preferences can be accurately and real-timely obtained, which is conducive to improving the real-time and accuracy of the products recommended to the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 It is a structural schematic diagram of a product recommendation system based on a convolutional neural network provided in an embodiment of the present application;
[0025] Figure 2 It is a flowchart of a product recommendation method based on a convolutional neural network provided in an embodiment of the present application;
[0026] Figure 3 is another flowchart of a product recommendation based on a convolutional neural network provided in an embodiment of the present application;
[0027] Figure 4 It is a structural schematic diagram of a product recommendation device based on a convolutional neural network provided in an embodiment of the present application;
[0028] Figure 5 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] The following is combined with Figure 1 -Attached Figure 3 A product recommendation method based on a convolutional neural network provided in an embodiment of the present application is schematically illustrated.
[0031] A product recommendation method based on a convolutional neural network provided in an embodiment of the present application can be applied to a product recommendation platform, which can be carried in a product recommendation system or application based on a convolutional neural network. In some embodiments, the above-mentioned product recommendation platform can be a platform that provides product recommendations to users, can provide users with product information of various products, and can also provide users with channels for product transactions. Among them, the user is a user of the above-mentioned product recommendation platform, and completes the transaction by browsing the products and product information recommended by the product recommendation platform. In some embodiments, the product recommendation platform can establish a communication connection with the user's terminal device, and the user browses the product through the terminal device and completes the transaction. In some embodiments, the above-mentioned communication connection method may include but is not limited to wireless communication technology (Wireless Fidelity, WIFI), Bluetooth, near field communication (Near Field Communication, NFC), etc.
[0032] Specifically, the product recommendation platform can obtain the first image frame and the first eye movement video of the user browsing the product display page, where the first image frame is any image frame in the first video to be tested, the first video to be tested is a video including the user's eyes, and the first eye movement video is a video including the position where the user is gazing at the product display page. The product recommendation platform can obtain the user's browsing data in real time and analyze the browsing data, so as to grasp the user's points of interest in real time. The product recommendation platform can determine the difference information between the second image frame and the first image frame when it is determined that the first image frame meets the gaze condition. The second image frame is an image frame adjacent to the first image frame in the first video to be tested, that is, the product recommendation platform can first filter out the image frame that is gazing at the product display page from the first video to be tested. The product recommendation platform can then determine the difference information between the second image frame adjacent to the first image frame and the first image frame. When the difference information meets the similarity condition, the first image frame and the second image frame are determined as image frames under the target category, that is, the image frames in the first video to be tested are classified, and then the image frames under each category are analyzed, that is, the first time period of all image frames included in the target category in the first video to be tested is determined, and then the target area that the user is fixating on in the first time period in the first eye movement video is determined, and the first image frame in the target category is input into the pre-trained target convolutional neural network to obtain the user's first interest score for the target area. Then, the product recommendation platform can recommend products to users based on the first interest score and the product information included in the target area.
[0033] The product recommendation method based on convolutional neural network proposed in the embodiment of the present application involves artificial intelligence, machine learning and other technologies, among which: Artificial Intelligence (AI) is the theory, method, technology and application system of using digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. Basic artificial intelligence technologies generally include technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction system, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology and machine learning / deep learning and other major directions. Machine learning is a multidisciplinary cross-disciplinary major that covers probability theory knowledge, statistical knowledge, approximate theoretical knowledge and complex algorithm knowledge. It uses computers as tools and is committed to simulating human learning methods in real time, and divides existing content into knowledge structures to effectively improve learning efficiency.
[0034] Based on the above description, Figure 1 A product recommendation system based on a convolutional neural network provided in an embodiment of the present application is schematically illustrated.
[0035] See also Figure 1 , Figure 1 It is a structural diagram of a product recommendation system based on a convolutional neural network provided in an embodiment of the present application. The above-mentioned product recommendation system based on a convolutional neural network includes: a product recommendation platform 101, one or more terminal devices (such as terminal device 102). Among them, one or more terminal devices (such as terminal device 102) can be directly or indirectly connected to the product recommendation platform 101 by wired or wireless means. Optionally, the product recommendation system based on a convolutional neural network may also include an eye movement device 103, a shooting device 104, and one or more training devices (a first training device 105 and a second training device 106). The eye movement device 103 can be directly or indirectly connected to one or more terminal devices (such as terminal device 102) by wired or wireless means, and the eye movement device 103 can also be directly or indirectly connected to the product recommendation platform 101 by wired or wireless means. The shooting device 104 can also be directly or indirectly connected to one or more terminal devices (such as terminal device 102) by wired or wireless means, and the shooting device 104 can also be directly or indirectly connected to the product recommendation platform 101 by wired or wireless means. One or more training devices (such as the first training device 105 and the second training device 106 ) may be directly or indirectly connected to the product recommendation platform 101 via wired or wireless means.
[0036] It should be noted that Figure 1 The number and form of devices shown are used for example and do not constitute a limitation on the embodiments of the present application. In practical applications, the product recommendation system based on convolutional neural networks may also include more than one terminal device, or more than one product recommendation platform, or more than two training devices. Among them, the terminal device 102 may be equipped with a shooting device, that is, the terminal device 102 and the shooting device 104 are the same device, and the terminal device 102 may also be equipped with an eye movement device, that is, the terminal device 102 may be the same device as the eye movement device 103. The product recommendation platform 101 can be used for training models, that is, the product recommendation platform 101 may be the same device as the first training device 105 and the second training device 106. The embodiments of the present application are explained by taking a terminal device (terminal device 102), the terminal device 102 and the shooting device 104 are the same device, an eye movement device 103, a product recommendation platform 101, and the product recommendation platform 101 and the training device (the first training device 105 and the second training device 106) as the same device as an example.
[0037] Among them, the terminal device 102 is the terminal device used by the user, and the product recommendation platform 101 can recommend products to the user. The user views the products recommended by the product recommendation platform 101 through the terminal device and interacts with the product recommendation platform 101, thereby obtaining the eye movement video of the user browsing the product display page displayed in the terminal device 102 through the eye movement device 103, and obtaining the test video of the user browsing the product display page through the built-in shooting device of the terminal device 102, and then the product recommendation platform 101 can analyze the obtained eye movement video and the test video, so as to better recommend products to the user. Among them, the user has registered an account in the product recommendation platform 101 through the terminal device 102, and the product recommendation platform 101 recommends products to the user, and outputs the product display page through the user's account.
[0038] Specifically, when the user starts to browse the product display page through the terminal device 102, the product recommendation platform 101 can obtain the video to be tested and the eye movement video of the user browsing the product recommendation page. Then, the product recommendation platform 101 determines the difference information between the second image frame adjacent to the first image frame and the first image frame when determining that the first image frame in the video to be tested meets the gaze condition. Further, the product recommendation platform 101 determines the first image frame and the second image frame as image frames under the target category when determining that the difference information between the first image frame and the second image frame meets the similarity condition according to the difference information; further, the product recommendation platform 101 can determine the time period of all image frames included in the target category in the video to be tested, obtain the first time period, and determine the target area that the user gazes at in the first time period in the eye movement video. Then, the product recommendation platform 101 can input the first image frame into the pre-trained target convolutional neural network to obtain the user's first interest score for the target area, and recommend products to the user based on the interest score and the product information included in the target area. Therefore, the product recommendation platform 101 can determine the user's preference characteristics in real time according to the target area and interest score of the user browsing the product display page, and then recommend products to the user according to the user's preferences, which can improve the real-time and accuracy of product recommendations.
[0039] Among them, the target convolutional neural network used by the product recommendation platform 101 to determine the user's first interest score for the target area can be pre-trained by the first training device 105. Further, the product recommendation platform 101 can also analyze the above-mentioned video to be tested, and the video to be tested is a video including the user's eyes. Then, the product recommendation platform 101 can also identify the eye information in each image frame in the video to be tested through an eye recognition model, and the eye recognition model can be trained by the second training device 106.
[0040] The above-mentioned product recommendation platform 101, the above-mentioned terminal device 102, the above-mentioned eye movement device 103, the above-mentioned shooting device 104 and the training device (the first training device 105 and the second training device 106) can all be smart phones, tablet computers, laptops, desktop computers, smart speakers, smart watches, etc.; the above-mentioned product recommendation platform 101 and can also be a server, for example, it can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms and other basic cloud computing services, and this application does not limit this.
[0041] The following is a detailed description of a product recommendation method based on a convolutional neural network provided in an embodiment of the present application. Figure 2 , Figure 2 is a flow chart of a product recommendation method based on a convolutional neural network provided in an embodiment of the present application. Figure 2 As shown, the product recommendation method based on convolutional neural network may include:
[0042] 201. Obtain a first image frame and a first eye movement video of a user browsing a product display page.
[0043] In an embodiment of the present application, in order to better analyze the user's preferences, the product recommendation platform can obtain the first image frame and the first eye movement video of the user browsing the product display page, and then analyze the first image frame and the first eye movement video, and recommend products to the user based on the analysis results. Among them, the first image frame is any image frame in the first video to be tested, and the first video to be tested is a video including the eyes of the above-mentioned user. The user's interest score can be analyzed based on the image frame including the user's eyes to determine the user's preferences. The first eye movement video is a video including the position where the user is looking at the product display page, that is, in the first eye movement video, the position where the user is looking at the product display page is marked by a special mark, and the special mark can be a circular frame, etc. In this way, the product recommendation platform can obtain the content browsed by the user, and determine the user's preferences based on the user's interest score and the content browsed by the user, and then filter out products to recommend to the user.
[0044] 202. When it is determined that the first image frame satisfies a gaze condition, determine difference information between a second image frame and the first image frame.
[0045] In one possible implementation, the product recommendation platform first removes the image frames that are not gazing at the product display page from the first video to be tested in order to accurately analyze the user's emotions, that is, to obtain an accurate interest score. That is, the product recommendation platform first determines whether the first image frame meets the gaze condition. If so, the product recommendation platform further analyzes the first image frame. If not, the product recommendation platform may remove the first image frame from the image frames included in the first video to be tested, thereby selecting another image frame in the first video to be tested as the first image frame, and determining whether the selected image frame meets the gaze condition.
[0046] Specifically, the product recommendation platform determines whether the first image frame meets the gaze condition. First, the first video to be tested can be input into a pre-trained eye recognition model to obtain eye information included in each image frame in the first video to be tested output by the eye recognition model, wherein the eye information includes the eye area of the user and the position information of N different feature points of the pupil in the user's eye. Further, the product recommendation platform can determine whether the first image frame meets the gaze condition based on the eye area of the user and the position information of N different feature points of the pupil in the user's eye. Specifically, the product recommendation platform determines that the above-mentioned first image frame meets the above-mentioned gaze condition when it is determined that the size of the user's eye area is within a preset size range and the position information of N different feature points of the pupil of the user's eye satisfies the static state.
[0047] It can be seen that when the product recommendation platform determines that the size of the eye area in the eye information included in each image frame in the first video to be tested is within the preset size range, that is, when it is determined based on the size of the eye area that the user is neither particularly close nor far away from the terminal device when browsing the product display page, and when it is determined that the position change of the user's pupil is within the preset range, that is, when it is determined that the user's pupil position does not change much, it is determined that the first image frame meets the gaze condition, and the product recommendation platform can further analyze the first image frame.
[0048] In one possible implementation, the product recommendation platform may classify the image frames in the first video to be tested that are similar to the first image frame, and analyze the classified image frames under each category. Specifically, the product recommendation platform may calculate the difference information between the second image frame adjacent to the first image frame and the first image frame, and determine whether the difference information between the second image frame and the first image frame meets the similarity condition based on the difference information. If the similarity condition is met, the second image frame and the first image frame are classified into one category, that is, the first image frame and the second image frame are determined as image frames under the target category. Conversely, if the difference information between the first image frame and the second image frame does not meet the similarity condition, the second image frame and the first image frame are not classified into the same category, and a new image frame may be selected from the first video to be tested as the first image frame, and the first image frame may be classified and calculated again.
[0049] Specifically, the product recommendation platform can calculate the pixel difference value between the matching pixels between the second image frame and the first image frame, perform binarization processing according to the pixel difference value, and obtain the inter-frame difference binary map between the second image frame and the first image frame. Among them, the matching pixels between the second image frame and the first image frame can be pixels at the same position in the second image frame and the first image frame, and the pixel difference value between the pixels can be the difference caused by the pixel value of a certain pixel of the first image frame and the pixel between the second image frame, wherein the difference value can be an absolute value, that is, the pixel difference value can not be a negative number. Furthermore, when the pixel difference value of the pixel point is greater than the preset difference value threshold, the corresponding pixel value of the pixel point on the inter-frame difference binary map is set to the first preset data, and conversely, when the pixel difference value of the pixel point is less than or equal to the preset difference value threshold, the pixel value of the corresponding position of the pixel point on the inter-frame difference binary map is set to the second preset data, thereby obtaining the inter-frame difference binary map. It can be understood that if the first preset value is 1 and the second preset value is 0, the inter-frame difference binary image is an image that only includes black pixels and white pixels, and the position of the white pixel is the position of the first preset value (1), and the position of the black pixel is the position of the second preset value (0).
[0050] Furthermore, since the first preset value is determined by the pixel difference value of the pixel being greater than the preset difference value threshold, the pixel corresponding to the first preset value may be used as the difference information between the second image frame and the first image frame.
[0051] 203. When it is determined according to the difference information that the difference information between the second image frame and the first image frame meets a similarity condition, determine the first image frame and the second image frame as image frames under a target category.
[0052] In one possible implementation, the product recommendation platform determines that in the above-mentioned binary difference image between frames, when the number of pixel points corresponding to the first preset value is less than the preset number threshold, the difference information between the second image frame and the first image frame satisfies the similarity condition; conversely, the product recommendation platform determines that in the above-mentioned binary difference image between frames, when the number of pixel points corresponding to the first preset value is greater than or equal to the preset number threshold, the difference information between the second image frame and the first image frame does not satisfy the similarity condition.
[0053] Optionally, when determining that the difference information between the first image frame and the second image frame satisfies the similarity condition, the product recommendation platform may further determine whether the difference information between the first image frame and adjacent image frames of the second image frame satisfies the similarity condition, or further determine whether the difference information between the second image frame and adjacent image frames of the second image frame satisfies the similarity condition; if so, the first image frame, the second image frame, and adjacent image frames of the second image frame may be determined as image frames of the same category for subsequent analysis.
[0054] In a possible implementation, when the product recommendation platform determines that the difference information between the second image frame and the first image frame meets the similarity condition, the first image frame and the second image frame are determined as image frames under the target category, that is, the first image frame and the second image frame are image frames of the same category. The target category may include multiple image frames, and the multiple image frames are adjacent image frames, that is, continuous image frames. The product recommendation platform can determine the time period of all image frames included in the target category, and then determine the user's preference based on the area that the user is looking at in the first eye movement video corresponding to the time period, and recommend products to the user based on the preference.
[0055] 204 , determining a time period of all image frames included in the target category in the first video to be tested to obtain a first time period, and determining a target area of the product display page that the user gazes at during the first time period in the first eye movement video.
[0056] In a possible implementation, it can be understood that the first video to be tested is composed of multiple frames of images, each frame of the image occupies a unit time period in the first video to be tested, and the image frame of the target category includes multiple image frames, and the multiple image frames are continuous image frames. Then, the time period occupied by all image frames included in the target category in the first video to be tested can be determined based on the unit time period occupied by each image frame in the image frame of the target category in the first video to be tested, and the first time period can be obtained. Since the first video to be tested and the first eye movement video are shot at the same time and end at the same time, the shooting duration is the same. Then, based on the first time period in the first eye movement video, the area where the user browses the product display page in the first time period in the first eye movement video can be determined to obtain the target area.
[0057] Among them, if the area browsed by the user has not changed in the first time period of the first eye movement video, the product information included in the target area may be the product information included in the browsed area; if the area browsed by the user has changed, the product information included in the area browsed by the user before the change and after the change may be included in the area browsed by the user.
[0058] 205. Input the first image frame into a pre-trained target convolutional neural network to obtain a first interest score of the user for the target area, and recommend products to the user based on the first interest score and product information included in the target area.
[0059] In one possible implementation, after determining the target area browsed by the user, the first image frame may be input into a target convolutional neural network to obtain a first interest score of the user for the target area output by the target convolutional neural network.
[0060] Among them, the Convolutional Neuron Network (CNN) is a neural network including a convolution structure and a deep learning architecture. CNN includes a feature extractor consisting of a convolution layer and a subsampling layer, wherein the feature extractor can be considered as a filter, and the convolution process is to use a pre-trained filter to convolve with an input data (such as image data) or a convolution feature plane (feature map). The convolution layer refers to the neuron layer in CNN that performs convolution processing on the input signal. In the convolution layer of CNN, a neuron can be connected to neurons in some adjacent layers. In a convolution layer of CNN, multiple feature planes can be included, and each feature plane can be composed of some rectangularly arranged neural units. The neural units of the same feature plane share the convolution kernel, that is, the weight. The convolution kernel can be initialized in the form of a matrix, and the convolution kernel can obtain reasonable weights through learning during the training process of CNN.
[0061] Before inputting the first image frame into the target convolutional neural network, the target convolutional neural network can be trained, that is, a training sample set can be obtained, each training sample in the training sample set can include an image of an eye, and each training sample carries a label of an interest score, and the interest score is used to indicate the degree of interest, wherein the interest score can be a number greater than zero, or a number within a preset interval, for example, the interest score can be a number between -10 and 10. The initial convolutional neural network is trained by each training sample in the training sample set to obtain a training loss, and the parameters of the initial convolutional neural network are adjusted by the training loss, and the initial convolutional neural network is iteratively trained by each training sample in the training sample set until the obtained training loss satisfies the training end condition, and the initial convolutional neural network whose training loss satisfies the training end condition is determined as the target convolutional neural network. Among them, the training end condition can be the convergence of the value of the training loss, or other training end conditions, which are not limited in this application.
[0062] In one possible implementation, the first interest score may represent the user's interest in the content included in the target area. The product recommendation platform may recommend products to the user based on the product information and interest level (i.e., the first interest score) included in the target area. Specifically, the product recommendation platform may determine the target product tag corresponding to the product information included in the target area, and determine the user's target user tag based on the target product tag and the first interest score, wherein the target user tag includes two parts, the first part is the tag part, that is, the target product tag is used as the tag part of the target user tag, and the second part is the weight part, that is, the first interest score is used as the weight of the target user tag.
[0063] Among them, since the first interest score of the target area is obtained by processing the first image frame through the target convolutional neural network, it may be inaccurate. Therefore, the other image frames in the target category except the first image frame can be input into the pre-trained target convolutional neural network to obtain the user's interest score for the target area in each image frame. It can be understood that the target convolutional neural network can process the other image frames except the first image frame under the target category to obtain the interest score corresponding to each image frame, and then update the first interest score according to the interest score corresponding to each image frame to obtain the updated target user label.
[0064] Specifically, the average score of the interest scores of each image frame and the first interest score can be used as the updated first interest score; or a first weight can be set for the first interest score of the first image frame, and a second weight can be set for the remaining image frames under the target category, and the weighted average result of the first weight and the first interest score and the second weight and the interest scores of each image frame under the target category can be used as the updated first interest score. By updating the first interest score, the error caused by determining the interest score only through the first image frame can be reduced, so that the target user label can be determined more accurately, and the product recommendation for the user can be more accurate.
[0065] After obtaining the updated target user tag, the recommended product corresponding to the target user tag can be obtained according to the target user tag, and the recommended product can be recommended to the user. Exemplarily, when the target area is the product information of a product in the product display page, the target product tag of the product can be used as the tag part of the target user tag. For example, the main information of the product can be displayed in the product display page. Taking the scenario of financial products as an example, the product display page can display several different categories of products, such as low-risk products, medium-risk products and high-risk products. The yield, financial management period and product name can be displayed separately on the product display page. If the target area browsed by the user is the area of high-risk products, and the interest score in the target user tag indicates that the user is more interested in the high-risk product, other stock and bond type products can be obtained for recommendation based on the product information of the product, such as high-risk products.
[0066] In a possible implementation, if it is determined that the first interest score is higher than a preset score threshold, it is determined that the user is very interested in the product information of the target area, and the reference product information of the target product label can be obtained, and the reference product information can be the refined product information of the product information. Taking the above target area including high-risk financial products as an example, the product recommendation platform can obtain the refined product information of the products included in the target area, which can be the product attributes of the product, such as the risk level, risk level, buying time, selling time, etc. of the product.
[0067] Furthermore, the product recommendation platform can send a display instruction to the user's terminal device, and the display instruction is used to instruct the terminal device to display the obtained reference product information, that is, to display the obtained product attributes of the product in the display interface, and obtain the reference product display page, so that the user can browse it again, and obtain the user browsing the reference product display page again, and obtain the second video to be tested and the second eye movement video of the user browsing the reference product display page, and the second video to be tested is also a video including the user's eyes, and the second eye movement video is a video including the gaze position of the user browsing the reference product display page. And each image frame in the second video to be tested is input into the pre-trained target convolutional neural network to obtain the user's second interest score for the reference product information.
[0068] It is understandable that if the user's second interest score is also higher than the preset score threshold, it is determined that the user is also interested in the reference product information. The user tag can be determined based on the product tag corresponding to the reference product information and the first interest score. The user tag can be a refined tag of the target user tag, and then the product recommendation platform can recommend products to the user based on the target user tag and the user tag. If the user's second interest score is lower than the preset score threshold, it is determined that the user is not particularly interested in the reference product information. The area browsed by the user in the second eye movement video can be determined based on the time period of the second interest score, and determined as a low-scoring area, and then the product to be recommended can be adjusted based on the product information of the low-scoring area in the reference product information, that is, the product to be recommended can be optimized.
[0069] Specifically, for example, the above-mentioned reference product information may include the product's risk level, risk level, buying time, and selling time. If the product information included in the low-scoring area is the selling time, the product recommendation platform can optimize the operated products. For example, the target product attribute corresponding to the low-scoring area can be determined, that is, the selling time attribute in the reference product information, and then the user tags of multiple reference users whose similarity with the user's identity information is greater than a preset similarity threshold for the target product attribute are obtained, that is, the interest scores in the user tags of multiple reference users similar to the user for the target product attribute are obtained, and the degree of interest of multiple reference users similar to the user in the target product attribute is further determined. If it is determined that the proportion of the number of reference users whose interest scores in the user tags are lower than the preset score threshold accounts for the total number of reference users, and if the proportion is greater than the preset proportion threshold, the target product attribute is adjusted according to the user's identity information.
[0070] For example, if most of the reference users among the multiple reference users have a low interest in the target product attribute, such as the selling time, the product can be optimized based on the user's identity information. For example, if it is determined that the income in the user's identity information is higher than a preset income threshold, the selling time of the product can be adjusted and a penalty option can be added, so that the user can change the selling time but needs to pay the penalty, thereby completing the optimization of the product to be recommended. Furthermore, the product recommendation platform can recommend the optimized product to the user.
[0071] Optionally, after the optimized product is recommended to the user, the video to be tested and the eye movement video of the user browsing the optimized product may be obtained, and the browsing situation of the user may be analyzed to make better recommendations.
[0072] In an embodiment of the present application, by obtaining a video to be tested and an eye movement video including the user's eyes when the user browses a product display page, and analyzing the video to be tested and the eye movement video, the user's preferences can be obtained in real time, wherein, by determining that a certain image frame in the video to be tested meets the gaze condition, and determining that the image frame adjacent to the image frame in the video to be tested meets the similar condition, similar image frames can be classified into one category to obtain image frames of the target category. Further, the image frames of the target category are analyzed, specifically, the time period of similar image frames in the video to be tested is determined, and the target area of the user's gaze in the eye movement video can be determined through the time period, and the interest score of the image frame of the target category to the target area is determined according to the pre-trained target convolutional neural network. Finally, through the interest score and the product information included in the target area, the product is recommended to the user, and the user's preferences can be determined in real time according to the content of the user's gaze, and the user's interest score can be obtained by analyzing the image including the user's eyes. Therefore, the user's preferences can be accurately and real-timely obtained, which is conducive to improving the real-time and accuracy of the products recommended to the user.
[0073] See also Figure 3 , Figure 3 It is a flow chart of a product recommendation method based on a convolutional neural network provided in an embodiment of the present application. It should be noted that the same or similar parts between the various embodiments in the present application can refer to each other. In the various embodiments in the present application, and the various implementation methods / implementation methods / implementation methods in each embodiment, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their internal logical relationships. The above-mentioned implementation methods of the present application do not constitute a limitation on the scope of protection of the present application. As Figure 3 As shown, the product recommendation method based on convolutional neural network may include:
[0074] 301. Input the first video to be tested into a pre-trained eye recognition model to obtain eye information included in each image frame in the first video to be tested output by the eye recognition model, wherein the eye information includes the eye area of the user and position information of N different feature points of the pupil in the user's eye.
[0075] In one possible implementation, a first video to be tested is input into a pre-trained eye recognition model to obtain eye information included in each image frame in the first video to be tested, wherein the eye information includes the identified eye areas in each image frame in the first video to be tested, and the positions of N different feature points of the pupil in the eye.
[0076] Optionally, before the first video to be tested is input into the eye recognition model, the eye recognition model can be trained. Specifically, a marked training sample set can be obtained, in which the area of the eye can be marked in each image sample in the training sample set, and the feature point position of the pupil in the eye can be included. Among them, the feature point of the pupil in the eye can be the center feature point of the pupil and the circumference feature point of the pupil. Then, the training sample set is input into the eye recognition model, and the eye recognition model can also be an initial CNN or other implementation methods, which is not limited in the present application. The initial eye recognition model is iteratively trained with each sample in the training sample set until the training loss reaches the training end condition, for example, the loss converges (the loss approaches the minimum value), etc., then the initial eye recognition model whose training loss reaches the training end condition can be determined as the eye recognition model.
[0077] 302. Determine whether the first image frame meets a gaze condition according to the eye region of the user and position information of N different feature points of the pupil in the eye of the user.
[0078] In a possible implementation, the user's eye area may be an area including each of the user's eyes, and the N different feature points of the pupil in the user's eye may be 1 pupil center feature point and N-1 circumference feature points. For example, N may be 3, that is, the N feature points may be the center of the pupil and the feature points of 0 degrees and 180 degrees on the pupil circumference. N may be 5, that is, the N feature points may be the center of the pupil and the feature points of 0 degrees, 90 degrees, 180 degrees and 270 degrees on the pupil circumference. Optionally, if N is 0, it is determined that the user is in a closed-eye state, and an image may be reselected from the first video to be tested as the first image frame and input into the eye recognition model for detection.
[0079] Furthermore, the product recommendation platform can determine whether the user in the first image frame meets the gaze condition based on the eye area output by the eye recognition model and the position information of N different feature points of the pupil in the user's eye. Specifically, the product recommendation platform can determine whether the size of the user's eye area is within a preset range, and can determine whether the position information of N different feature points of the pupil in the user's eye meets the static state. If all of them meet, it is determined that the first image frame meets the gaze state. On the contrary, if one does not meet, it is determined that the first image frame does not meet the gaze state, and the first image frame can be removed from the first video to be tested, and a new image frame can be selected as the first image frame for processing.
[0080] 303. When it is determined that the size of the eye region of the user is within a preset size range and the position information of N different feature points of the pupil in the eye of the user satisfies a static state, it is determined that the first image frame satisfies the gaze condition.
[0081] In one possible implementation, determining whether the size of the user's eye area is within a preset range is to determine the distance between the user and the shooting device. For example, if the shooting device is the user's terminal device, then if the user is far away from the terminal device, the size of the eye area is smaller, and the user may not have browsed the product display page displayed by the terminal device. Similarly, if the user is close to the terminal device, the size of the eye area is larger, and the user may not have browsed the product display page displayed by the terminal device.
[0082] Furthermore, the product recommendation platform can determine the first position range of the center feature point and the second position range of the circumferential feature point based on the position information of the center feature point of the pupil of the user's eye and each circumferential feature point (for example, the first circumferential feature point) in each image frame in the first video to be tested.
[0083] Specifically, the first video to be tested includes multiple image frames, and the position of the center feature point of the pupil of the user's eye in each image frame may be different. The position range of each center feature point can be determined by multi-point fitting circle, or the smallest rectangular frame that can include all center feature points can be determined based on the position information of multiple center feature points, and the rectangular frame is used as the position range of the center feature point. Similarly, for a certain circumferential feature point, the position range of the circumferential feature point can be determined based on the position information of the circumferential feature point in each image frame in the first video to be tested, and the second position range can be obtained.
[0084] Since the user can browse the product display page on the terminal device only in a static state, by detecting the pupil position and determining that the position range of the center feature point and the circumference feature point of the pupil are both within the preset position range, and that the position of the pupil in the user's eyes does not change much, the static state is satisfied, and thus the gaze state can be satisfied.
[0085] Further, in the case that the first image frame meets the gaze condition, the first image frame may be classified to obtain an image frame of a target category, and the image frame of the target category may be analyzed.
[0086] In an embodiment of the present application, by obtaining a video to be tested and an eye movement video including the user's eyes when the user browses a product display page, and analyzing the video to be tested and the eye movement video, the user's preferences can be obtained in real time, wherein, by determining that a certain image frame in the video to be tested meets the gaze condition, and determining that the image frame adjacent to the image frame in the video to be tested meets the similar condition, similar image frames can be classified into one category to obtain image frames of the target category. Further, the image frames of the target category are analyzed, specifically, the time period of similar image frames in the video to be tested is determined, and the target area of the user's gaze in the eye movement video can be determined through the time period, and the interest score of the image frame of the target category to the target area is determined according to the pre-trained target convolutional neural network. Finally, through the interest score and the product information included in the target area, the product is recommended to the user, and the user's preferences can be determined in real time according to the content of the user's gaze, and the user's interest score can be obtained by analyzing the image including the user's eyes. Therefore, the user's preferences can be accurately and real-timely obtained, which is conducive to improving the real-time and accuracy of the products recommended to the user.
[0087] See also Figure 4 , Figure 4 : is a structural diagram of a product recommendation device based on a convolutional neural network provided in an embodiment of the present application. The product recommendation device based on a convolutional neural network 400 includes:
[0088] An acquisition unit 401 is used to acquire a first image frame and a first eye movement video of a user browsing a product display page, wherein the first image frame is any image frame in a first video to be tested, the first video to be tested is a video including the eyes of the user, and the first eye movement video is a video including a position where the user is gazing at the product display page;
[0089] A determination unit 402 is used to determine difference information between a second image frame and the first image frame when it is determined that the first image frame satisfies the gaze condition, wherein the second image frame is an image frame adjacent to the first image frame in the first video to be tested;
[0090] The determination unit 402 is further configured to determine the first image frame and the second image frame as image frames under a target category when it is determined according to the difference information that the difference information between the second image frame and the first image frame meets a similarity condition;
[0091] The determination unit 402 is further configured to determine a time period of all image frames included in the target category in the first video to be tested, obtain a first time period, and determine a target area of the product display page that the user gazes at during the first time period in the first eye movement video;
[0092] The input unit 403 is used to input the above-mentioned first image frame into the pre-trained target convolutional neural network to obtain the above-mentioned user's first interest score for the above-mentioned target area, and recommend products to the above-mentioned user based on the above-mentioned first interest score and the product information included in the above-mentioned target area.
[0093] Furthermore, when determining that the first image frame satisfies the gaze condition, the determining unit 402 is further configured to:
[0094] Inputting the first video to be tested into a pre-trained eye recognition model, obtaining eye information included in each image frame in the first video to be tested output by the eye recognition model, wherein the eye information includes an eye region of the user and position information of N different feature points of a pupil in the user's eye, where N is an integer greater than 1;
[0095] determining whether the first image frame meets the gaze condition according to the eye region of the user and the position information of N different feature points of the pupil in the eye of the user;
[0096] When it is determined that the size of the eye region of the user is within a preset size range and the position information of N different feature points of the pupil in the eye of the user satisfies a stationary state, it is determined that the first image frame satisfies the gaze condition.
[0097] Further, the N different feature points of the pupil in the user's eye include a center feature point of the pupil and N-1 circumferential feature points in the pupil; the determination unit 402 is further used to determine position information of the center feature point and a first circumferential feature point of the pupil in the user's eye in the first image frame, where the first circumferential feature point is any feature point among the N-1 circumferential feature points in the pupil;
[0098] Determine a first position range where the center feature point is located and a second position range where the first circumference feature point is located according to position information of the center feature point of the pupil of the user's eye and the first circumference feature point in each image frame of the first video to be tested;
[0099] When it is determined that both the first position range and the second position range are smaller than the preset position range, it is determined that the position information of the N different feature points of the pupil in the eye of the user satisfies the stationary state.
[0100] Further, the determination unit 402 is used to determine difference information between the second image frame and the first image frame, specifically for:
[0101] Calculating pixel difference values of matching pixels between the second image frame and the first image frame, and performing binarization processing according to the pixel difference values to obtain an inter-frame difference binary image between the second image frame and the first image frame;
[0102] The pixel values on the above-mentioned inter-frame difference binary image include a first preset value and a second preset value. When the pixel value difference between the matching pixel points of the second image frame and the first image frame is greater than the preset difference value threshold, the pixel value at the corresponding position on the above-mentioned inter-frame difference binary image is determined to be the first preset value; otherwise, the pixel value at the corresponding position on the above-mentioned inter-frame difference binary image is determined to be the second preset value.
[0103] Using the pixel points corresponding to the first preset value as difference information between the second image frame and the first image frame;
[0104] In the above-mentioned inter-frame difference binary image, when the number of pixel points of the above-mentioned first preset value is less than the preset number threshold, it is determined that the difference information between the above-mentioned second image frame and the above-mentioned first image frame meets the above-mentioned similarity condition.
[0105] Furthermore, the input unit 403 is used to recommend products to the user according to the first interest score and the product information included in the target area, specifically for:
[0106] Determine a target product tag corresponding to the product information, and determine a target user tag for the user according to the target product tag and the first interest score;
[0107] Inputting image frames other than the first image frame in the target category into the pre-trained target convolutional neural network to obtain the interest score of the user for the target area in each image frame;
[0108] updating the first interest score in the target user tag according to the interest score of the user for the target area in each image frame to obtain an updated target user tag;
[0109] Obtain the recommended product corresponding to the updated target user tag, and recommend the recommended product to the user.
[0110] Furthermore, the acquisition unit 401 is further configured to acquire reference product information of the target product label if it is determined that the first interest score is higher than a preset score threshold, wherein the reference product information is refined product information of the product information;
[0111] A sending unit 404 is used to send a display instruction to the terminal device of the user, wherein the display instruction is used to instruct the terminal device to display a reference product display page including the reference product information in a user interface, and obtain a second to-be-tested video and a second eye movement video of the user browsing the reference product display page;
[0112] The input unit 403 is further used to input the second video to be tested into the pre-trained target convolutional neural network to obtain the second interest score of the user for the reference product information;
[0113] The determination unit 402 is also used to determine the low-score area of the reference product display page browsed by the user based on the second eye movement video when the second interest score is lower than the preset score threshold, and adjust the product to be recommended based on the reference product information and the low-score area.
[0114] Furthermore, the reference product information includes product attributes, and the determination unit 402 is used to adjust the to-be-recommended product according to the reference product information and the low-scoring region, specifically to:
[0115] Determine the target product attributes corresponding to the low-scoring region, and obtain user tags for the target product attributes of multiple reference users whose identity information similarity with the user is greater than a preset similarity threshold;
[0116] Determine the ratio of the number of user tags of the reference users for the target product attributes whose interest scores are lower than the preset score threshold to the total number of reference users; if the ratio is greater than the preset ratio threshold, adjust the target product attributes according to the identity information of the users.
[0117] For detailed description of the acquisition unit 401, the determination unit 402, the input unit 403 and the sending unit 404, please refer to the above Figures 2 to 3 The relevant description in the illustrated method embodiment is directly obtained and will not be repeated here.
[0118] In an embodiment of the present application, by obtaining a video to be tested and an eye movement video including the user's eyes when the user browses a product display page, and analyzing the video to be tested and the eye movement video, the user's preferences can be obtained in real time, wherein, by determining that a certain image frame in the video to be tested meets the gaze condition, and determining that the image frame adjacent to the image frame in the video to be tested meets the similar condition, similar image frames can be classified into one category to obtain image frames of the target category. Further, the image frames of the target category are analyzed, specifically, the time period of similar image frames in the video to be tested is determined, and the target area of the user's gaze in the eye movement video can be determined through the time period, and the interest score of the image frame of the target category to the target area is determined according to the pre-trained target convolutional neural network. Finally, through the interest score and the product information included in the target area, the product is recommended to the user, and the user's preferences can be determined in real time according to the content of the user's gaze, and the user's interest score can be obtained by analyzing the image including the user's eyes. Therefore, the user's preferences can be accurately and real-timely obtained, which is conducive to improving the real-time and accuracy of the products recommended to the user.
[0119] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, such as Figure 5 As shown, the computer device 500 in the embodiment of the present application may include:
[0120] Processor 501, transceiver 502 and memory 505. In addition, the above-mentioned computer device 500 may also include: a user interface 504, and at least one communication bus 503. The communication bus 503 is used to realize the connection and communication between these components. The user interface 504 may include a display screen (Display) and a keyboard (Keyboard). The memory 505 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 505 may optionally be at least one storage device located away from the aforementioned processor 501 and the aforementioned transceiver 502. Figure 5 As shown, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0121] exist Figure 5 In the computer device 500 shown, the transceiver 502 can provide a network communication function so that the servers can communicate with each other; the user interface 504 is mainly used to provide an input interface for the user; and the processor 501 can be used to call the device control application stored in the memory 505 to perform the following operations:
[0122] The processor 501 is configured to obtain a first image frame and a first eye movement video of a user browsing a product display page, wherein the first image frame is any image frame in a first video to be tested, the first video to be tested is a video including the eyes of the user, and the first eye movement video is a video including a position where the user is gazing at the product display page;
[0123] The processor 501 is configured to determine difference information between a second image frame and the first image frame when it is determined that the first image frame satisfies the gaze condition, wherein the second image frame is an image frame adjacent to the first image frame in the first video to be tested;
[0124] The processor 501 is configured to determine the first image frame and the second image frame as image frames under a target category when it is determined according to the difference information that the difference information between the second image frame and the first image frame meets a similarity condition;
[0125] The processor 501 is used to determine the time period of all image frames included in the target category in the first video to be tested, obtain a first time period, and determine the target area of the product display page that the user gazes at during the first time period in the first eye movement video;
[0126] The processor 501 is used to input the first image frame into a pre-trained target convolutional neural network to obtain the user's first interest score for the target area, and recommend products to the user based on the first interest score and the product information included in the target area.
[0127] In a possible implementation, the processor 501 is further used to input the first video to be tested into a pre-trained eye recognition model before determining the difference information between the second image frame and the first image frame when determining that the first image frame satisfies the gaze condition, to obtain eye information included in each image frame in the first video to be tested output by the eye recognition model, wherein the eye information includes the eye region of the user and position information of N different feature points of the pupil in the eye of the user, where N is an integer greater than 1;
[0128] determining whether the first image frame meets the gaze condition according to the eye region of the user and the position information of N different feature points of the pupil in the eye of the user;
[0129] When it is determined that the size of the eye region of the user is within a preset size range and the position information of N different feature points of the pupil in the eye of the user satisfies a stationary state, it is determined that the first image frame satisfies the gaze condition.
[0130] In a possible implementation, the N different feature points of the pupil in the user's eye include a center feature point of the pupil and N-1 circumferential feature points in the pupil; the processor 501 is further configured to:
[0131] Determine position information of a center feature point and a first circumference feature point of a pupil in the eye of the user in the first image frame, where the first circumference feature point is any feature point among N-1 circumference feature points in the pupil;
[0132] Determine a first position range where the center feature point is located and a second position range where the first circumference feature point is located according to position information of the center feature point of the pupil of the user's eye and the first circumference feature point in each image frame of the first video to be tested;
[0133] When it is determined that both the first position range and the second position range are smaller than the preset position range, it is determined that the position information of the N different feature points of the pupil in the eye of the user satisfies the stationary state.
[0134] In a possible implementation manner, the processor 501 is configured to determine difference information between the second image frame and the first image frame, specifically to:
[0135] Calculating pixel difference values of matching pixels between the second image frame and the first image frame, and performing binarization processing according to the pixel difference values to obtain an inter-frame difference binary image between the second image frame and the first image frame;
[0136] The pixel values on the above-mentioned inter-frame difference binary image include a first preset value and a second preset value. When the pixel value difference between the matching pixel points of the second image frame and the first image frame is greater than the preset difference value threshold, the pixel value at the corresponding position on the above-mentioned inter-frame difference binary image is determined to be the first preset value; otherwise, the pixel value at the corresponding position on the above-mentioned inter-frame difference binary image is determined to be the second preset value.
[0137] Using the pixel points corresponding to the first preset value as difference information between the second image frame and the first image frame;
[0138] In the above-mentioned inter-frame difference binary image, when the number of pixel points of the above-mentioned first preset value is less than the preset number threshold, it is determined that the difference information between the above-mentioned second image frame and the above-mentioned first image frame meets the above-mentioned similarity condition.
[0139] In a possible implementation, the processor 501 is configured to recommend a product to the user according to the first interest score and the product information included in the target area, specifically:
[0140] Determine a target product tag corresponding to the product information, and determine a target user tag for the user according to the target product tag and the first interest score;
[0141] Inputting image frames other than the first image frame in the target category into the pre-trained target convolutional neural network to obtain the interest score of the user for the target area in each image frame;
[0142] updating the first interest score in the target user tag according to the interest score of the user for the target area in each image frame to obtain an updated target user tag;
[0143] Obtain the recommended product corresponding to the updated target user tag, and recommend the recommended product to the user.
[0144] In a possible implementation manner, the processor 501 is further configured to:
[0145] If it is determined that the first interest score is higher than the preset score threshold, obtaining reference product information of the target product label, where the reference product information is the refined product information of the product information;
[0146] Control the transceiver 502 to send a display instruction to the terminal device of the user, wherein the display instruction is used to instruct the terminal device to display a reference product display page including the reference product information in a user interface, and obtain a second video to be tested and a second eye movement video of the user browsing the reference product display page;
[0147] Inputting the second video to be tested into the pre-trained target convolutional neural network to obtain a second interest score of the user for the reference product information;
[0148] When the second interest score is lower than the preset score threshold, the low-score area where the user browses the reference product display page is determined based on the second eye movement video, and the recommended product is adjusted based on the reference product information and the low-score area.
[0149] In a possible implementation, the reference product information includes product attributes, and the processor 501 is used to adjust the to-be-recommended product according to the reference product information and the low-scoring region, specifically to:
[0150] Determine the target product attributes corresponding to the low-scoring region, and obtain user tags for the target product attributes of multiple reference users whose identity information similarity with the user is greater than a preset similarity threshold;
[0151] Determine the ratio of the number of user tags of the reference users for the target product attributes whose interest scores are lower than the preset score threshold to the total number of reference users; if the ratio is greater than the preset ratio threshold, adjust the target product attributes according to the identity information of the users.
[0152] It should be understood that in some feasible implementations, the processor 501 may be a central processing unit (CPU), and the processor 501 may also be 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 the processor may also be any conventional processor, etc.
[0153] The memory 505 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory 505 may also include a nonvolatile random access memory.
[0154] In a specific implementation, the computer device 500 can execute the above-mentioned functions through its built-in functional modules. Figure 2 and Figure 3 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.
[0155] In an embodiment of the present application, by obtaining a video to be tested and an eye movement video including the user's eyes when the user browses a product display page, and analyzing the video to be tested and the eye movement video, the user's preferences can be obtained in real time, wherein, by determining that a certain image frame in the video to be tested meets the gaze condition, and determining that the image frame adjacent to the image frame in the video to be tested meets the similar condition, similar image frames can be classified into one category to obtain image frames of the target category. Further, the image frames of the target category are analyzed, specifically, the time period of similar image frames in the video to be tested is determined, and the target area of the user's gaze in the eye movement video can be determined through the time period, and the interest score of the image frame of the target category to the target area is determined according to the pre-trained target convolutional neural network. Finally, through the interest score and the product information included in the target area, the product is recommended to the user, and the user's preferences can be determined in real time according to the content of the user's gaze, and the user's interest score can be obtained by analyzing the image including the user's eyes. Therefore, the user's preferences can be accurately and real-timely obtained, which is conducive to improving the real-time and accuracy of the products recommended to the user.
[0156] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the computer device mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned Figure 2 or Figure 3 Therefore, the description of any method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0157] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by hardware related to computer program instructions, and the above-mentioned program can be stored in a computer-readable storage medium, which, when executed, can include the processes of the embodiments of the above-mentioned methods. The above-mentioned storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0158] It should be emphasized that in order to further ensure the privacy and security of the above data, the above data can also be stored in a node of a blockchain. Among them, the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.
[0159] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A product recommendation method based on convolutional neural network, characterized in that: include: Acquire a first image frame and a first eye-movement video of a user browsing a product display page, wherein the first image frame is any image frame in a first video to be tested, the first video to be tested is a video including the user's eyes, and the first eye-movement video is a video including a position where the user is gazing at the product display page; Inputting the first video to be tested into a pre-trained eye recognition model, obtaining eye information included in each image frame in the first video to be tested output by the eye recognition model, wherein the eye information includes an eye region of the user and position information of N different feature points of a pupil in the user's eye, where N is an integer greater than 1; determining whether the first image frame meets a gaze condition according to the eye region of the user and position information of N different feature points of the pupil in the eye of the user; When it is determined that the size of the eye region of the user is within a preset size range and the position information of N different feature points of the pupil in the eye of the user satisfies a stationary state, determining that the first image frame satisfies the gaze condition; In the case where it is determined that the first image frame satisfies the gaze condition, determining difference information between a second image frame and the first image frame, where the second image frame is an image frame adjacent to the first image frame in the first video to be tested; In a case where it is determined according to the difference information that the difference information between the second image frame and the first image frame meets a similarity condition, determining the first image frame and the second image frame as image frames under a target category; Determine the time period of all image frames included in the target category in the first video to be tested to obtain a first time period, and determine the target area of the product display page that the user gazes at in the first eye movement video during the first time period; Inputting the first image frame into a pre-trained target convolutional neural network to obtain a first interest score of the user for the target area, and determining a target product label corresponding to the product information included in the target area, and determining a target user label of the user according to the target product label and the first interest score; Inputting image frames other than the first image frame in the target category into the pre-trained target convolutional neural network to obtain the interest score of the user for the target area in each image frame; updating the first interest score in the target user tag according to the interest score of the user for the target area in each image frame to obtain an updated target user tag; Obtain the product to be recommended corresponding to the updated target user tag, and recommend the product to be recommended to the user.
2. The method according to claim 1, characterized in that The N different feature points of the pupil in the user's eye include a center feature point of the pupil and N-1 circumference feature points in the pupil; the method further includes: Determine position information of a center feature point and a first circumference feature point of a pupil in the user's eye in the first image frame, where the first circumference feature point is any feature point among N-1 circumference feature points in the pupil; Determine a first position range where the center feature point is located and a second position range where the first circumference feature point is located according to position information of a center feature point of a pupil in an eye of the user and the first circumference feature point in each image frame of the first video to be tested; When it is determined that both the first position range and the second position range are smaller than a preset position range, it is determined that the position information of N different feature points of the pupil in the user's eye meets the stationary state.
3. The method according to claim 1, characterized in that The determining difference information between the second image frame and the first image frame includes: Calculating pixel difference values of matching pixels between the second image frame and the first image frame, and performing binarization processing according to the pixel difference values to obtain an inter-frame difference binary image between the second image frame and the first image frame; The pixel value on the inter-frame difference binary image includes a first preset value and a second preset value. When the pixel value difference between the matching pixel points of the second image frame and the first image frame is greater than a preset difference value threshold, the pixel value at the corresponding position on the inter-frame difference binary image is determined to be the first preset value; otherwise, the pixel value at the corresponding position on the inter-frame difference binary image is determined to be the second preset value. Using the pixel corresponding to the first preset value as difference information between the second image frame and the first image frame; In the inter-frame difference binary image, when the number of pixel points of the first preset value is less than a preset number threshold, it is determined that the difference information between the second image frame and the first image frame meets the similarity condition.
4. The method according to claim 1, characterized in that: The method further comprises: If it is determined that the first interest score is higher than a preset score threshold, obtaining reference product information of the target product label, where the reference product information is refined product information of the product information; Sending a display instruction to the terminal device of the user, wherein the display instruction is used to instruct the terminal device to display a reference product display page including the reference product information in a user interface, and obtaining a second to-be-tested video and a second eye movement video of the user browsing the reference product display page; Inputting the second video to be tested into the pre-trained target convolutional neural network to obtain a second interest score of the user for the reference product information; When the second interest score is lower than the preset score threshold, the low-score area where the user browses the reference product display page is determined based on the second eye movement video, and the product to be recommended is adjusted based on the reference product information and the low-score area.
5. The method according to claim 4, characterized in that The reference product information includes product attributes, and adjusting the to-be-recommended product according to the reference product information and the low-scoring region includes: Determine the target product attribute corresponding to the low-scoring region, and obtain user tags for the target product attribute of multiple reference users whose similarity with the identity information of the user is greater than a preset similarity threshold; Determine the ratio of the number of reference users whose interest scores are lower than the preset score threshold in the user tags of the target product attributes to the total number of reference users; if the ratio is greater than the preset ratio threshold, adjust the target product attributes according to the identity information of the user.
6. A product recommendation device based on convolutional neural network, characterized in that: include: an acquisition unit, configured to acquire a first image frame and a first eye-movement video of a user browsing a product display page, wherein the first image frame is any image frame in a first video to be tested, the first video to be tested is a video including the eyes of the user, and the first eye-movement video is a video including a position where the user is gazing at the product display page; a determination unit, configured to input the first video to be tested into a pre-trained eye recognition model, obtain eye information included in each image frame in the first video to be tested output by the eye recognition model, wherein the eye information includes an eye region of the user and position information of N different feature points of a pupil in the user's eye, where N is an integer greater than 1; and determine whether the first image frame meets a gaze condition according to the eye region of the user and the position information of N different feature points of a pupil in the user's eye; When it is determined that the size of the eye region of the user is within a preset size range and the position information of N different feature points of the pupil in the eye of the user satisfies a stationary state, determining that the first image frame satisfies the gaze condition; The determining unit is further configured to determine difference information between a second image frame and the first image frame when it is determined that the first image frame satisfies the gaze condition, the second image frame being an image frame adjacent to the first image frame in the first video to be tested; The determining unit is further configured to determine the first image frame and the second image frame as image frames under a target category when it is determined according to the difference information that the difference information between the second image frame and the first image frame meets a similarity condition; The determining unit is further configured to determine a time period of all image frames included in the target category in the first video to be tested, obtain a first time period, and determine a target area of the product display page that the user gazes at in the first eye movement video during the first time period; an input unit, configured to input the first image frame into a pre-trained target convolutional neural network, obtain a first interest score of the user for the target area, determine a target product label corresponding to the product information included in the target area, and determine a target user label of the user according to the target product label and the first interest score; Inputting image frames other than the first image frame in the target category into the pre-trained target convolutional neural network to obtain the interest score of the user for the target area in each image frame; The first interest score in the target user tag is updated according to the interest score of the user for the target area in each image frame to obtain an updated target user tag; a product to be recommended corresponding to the updated target user tag is obtained, and the product to be recommended is recommended to the user.
7. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Page evaluation method, device, electronic equipment and computer readable storage medium
CN110362775A
Interface interaction method and device, storage medium and electronic equipment
CN111399954A
Content recommendation method and device, electronic equipment and computer readable storage medium
CN111652068A
Methods and systems for providing purchasing opportunities based on location-specific biometric data
US20150348122A1
