Information push method, device and electronic device
Through continuous image collection and attribute information processing of people to be detected in the elevator, an item preference matrix is constructed to achieve accurate advertising, solve the problem of lack of accuracy in advertising in the existing technology, and improve the accuracy and accuracy of advertising push. Resource utilization.
Patent Information
- Application Number
- CN201911257893.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-12-10
AI Technical Summary
The existing advertising push technology lacks accuracy in advertising delivery, resulting in low accuracy and waste of resources.
By collecting continuous frame images of the person to be detected, target persons whose residence time reaches the preset time threshold are selected, their attribute information is extracted to construct a personal profile, and the item preference matrix is calculated based on the attribute information, and the matching recommendation list is pushed.
It improves the accuracy of advertising push, achieves precise advertising delivery, and reduces resource waste.
Smart Images

Figure CN112950242B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to an information push method, device and electronic equipment. Background Art
[0002] At present, face recognition and human body structure technology have been widely used in the fields of security and new retail, greatly improving the sense of social security and the analysis efficiency of business. At present, in the field of media communication, screen advertising and projection advertising have been widely used in elevators, and have achieved good traffic conversion effects for businesses. However, for advertising media, in the existing technology, the usual advertising delivery method is random and widespread delivery, resulting in no precise crowd targeting for advertising delivery, making it difficult to accurately find the user group, and resulting in the waste of some advertising resources. It can be seen that in the existing technology, there is a problem of low accuracy in advertising push. Summary of the invention
[0003] The embodiment of the present invention provides an information push method, which can improve the accuracy of advertisement push, achieve accurate advertisement delivery, and reduce resource waste.
[0004] In a first aspect, an embodiment of the present invention provides an information push method, comprising the following steps:
[0005] Collecting continuous frame images of a person to be detected, wherein the continuous frame images include a face image of the person to be detected;
[0006] Selecting a person to be detected whose face image stays for a time that reaches a preset time threshold as a target person, and extracting attribute information of the target person to construct a personal profile;
[0007] Calculate the item preference matrix of the target person based on the attribute information in the personal profile;
[0008] The corresponding recommendation list is matched and pushed according to the item preference matrix of the target person.
[0009] In a second aspect, an embodiment of the present invention further provides an information push device, including:
[0010] An acquisition module, used for acquiring continuous frame images of the person to be detected, wherein the continuous frame images include a face image of the person to be detected;
[0011] An extraction module is used to select a person to be detected whose face image stays for a time that reaches a preset time threshold as a target person, and extract attribute information of the target person to construct a personal profile;
[0012] A calculation module, used for calculating the item preference matrix of the target person based on the attribute information in the personal profile;
[0013] The push module is used to match the corresponding recommendation list according to the item preference matrix of the target person and push it.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the information push method provided in an embodiment of the present invention when executing the computer program.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the information push method provided in the embodiment of the invention are implemented.
[0016] In an embodiment of the present invention, continuous frame images of a person to be detected are collected, and the continuous frame images include a face image of the person to be detected; the person to be detected whose residence time of the face image reaches a preset time threshold is selected as the target person, and the attribute information of the target person is extracted to construct a personal profile; the item preference matrix of the target person is calculated based on the attribute information in the personal profile; and the corresponding recommendation list is matched according to the item preference matrix of the target person for push. In an embodiment of the present invention, by analyzing the residence time of each person, the person to be detected whose residence time reaches a preset time threshold is selected as the target person, and the recommendation list does not need to be matched for the person to be detected whose residence time does not reach the time threshold, thereby avoiding waste of resources caused by random delivery; when the target person is selected, the attribute information of the target person is extracted to construct the item preference matrix of the target person, and the recommendation list corresponding to the item preference matrix is matched for recommendation, which is conducive to improving the accuracy of advertising push and realizing accurate advertising delivery. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] Figure 1 is a system architecture diagram of the information push method provided by an embodiment of the present invention;
[0019] Figure 2 is a flow chart of an information push method provided by an embodiment of the present invention;
[0020] Figure 3 is a flow chart of another information push method provided by an embodiment of the present invention;
[0021] Figure 4 is a flow chart of another information push method provided by an embodiment of the present invention;
[0022] Figure 5 is a flow chart of another information push method provided by an embodiment of the present invention;
[0023] Figure 6a is a specific schematic diagram of an algorithm for an item preference matrix provided by an embodiment of the present invention;
[0024] Figure 6b is a specific schematic diagram of another algorithm of an item preference matrix provided by an embodiment of the present invention;
[0025] Figure 7 is a flow chart of another information push method provided by an embodiment of the present invention;
[0026] Figure 8 It is a structural schematic diagram of an information push device provided by an embodiment of the present invention;
[0027] Fig. 9 It is a structural schematic diagram of another information push device provided by an embodiment of the present invention;
[0028] Fig.10 It is a structural schematic diagram of another information push device provided by an embodiment of the present invention;
[0029] Fig.11 It is a structural schematic diagram of another information push device provided by an embodiment of the present invention;
[0030] Fig.12 It is a structural schematic diagram of another information push device provided by an embodiment of the present invention;
[0031] Fig.13 It is a structural schematic diagram of another information push device provided by an embodiment of the present invention;
[0032] Fig.14 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] like Figure 1As shown, a system architecture diagram 1001 of information push provided by an embodiment of the present invention is provided. The system can provide an architecture of an operation scenario for the information push method provided by an embodiment of the present invention. The system architecture 1001 includes a projection device 1002, a server 1003 and a background management device 1004. The projection device 1002 includes a camera module 1002a and a projection module 1002b.
[0035] The camera module 1002a, projection module 1002b, server 1003 and backend management device 1004 are connected to each other via the Internet to transmit data.
[0036] In the above system, multiple camera modules 1002a can be set to collect multi-angle images of the person to be detected to obtain the corresponding residence time; they can also be used to collect multi-angle images of the target person to obtain the attribute information of the target person.
[0037] The above-mentioned projection modules 1002b can also be provided in plurality, and are used to perform multi-advertisement projection according to the recommendation list transmitted to the projection module 1002b by the background management device 1004, so as to realize multi-directional and comprehensive advertisement projection.
[0038] The server 1003 can be used to store the attribute information of the target person, identify the attribute information of the target person collected by the camera module 1002a through the video structuring engine and the human body recognition algorithm, and construct a user preference matrix after structuring the identified attribute information and store it in the server 1003. The system will perform data mining and data analysis on the user preference matrix stored in the server 1003, and match the recommendation list corresponding to the user preference matrix in combination with the recommendation algorithm.
[0039] The background management device 1004 may be a mobile terminal, which is used to sort the leg armor list after calculating the similarity between the recommendation list obtained through data mining and the user preference matrix, and send the sorted recommendation list to the projection module 1002b through the network for projection.
[0040] The mobile terminal 100 may be an electronic device with a display screen that can read and receive data transmitted by communication, and the mobile terminal 100 includes but is not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, etc. The mobile terminal may also be called a terminal, a user terminal, a user end, a smart terminal, etc.
[0041] Specifically, after the camera module 1002a captures continuous frame images in the elevator, the continuous frame images are sent to the server 1003 via network transmission. In the server 1003, the continuous frame images are analyzed by the video structuring engine and the human body recognition algorithm to extract the target person and the attribute information of the target person, and a user preference matrix is constructed based on the attribute information; data analysis is performed on the user preference matrix, and a recommendation list corresponding to the user preference matrix is matched based on the recommendation algorithm, and the recommendation list is sent to the background management device 1004 for sorting to obtain an ordered recommendation list, and the background management device sends the ordered recommendation list to the projection module 1002b for projection.
[0042] It should be understood that the number of the above-mentioned projection devices, servers, background management devices and networks is only illustrative, and specific adjustments can be made according to implementation needs. In addition to being used in elevators, the embodiments of the present invention can also be used in large supermarkets, shopping malls and other scenes for advertising push.
[0043] like Figure 2 As shown, Figure 2 This is a flow chart of an information push method provided by an embodiment of the present invention, which specifically includes the following steps:
[0044] 201. Collect continuous frame images of a person to be detected, where the continuous frame images include a face image of the person to be detected.
[0045] In this embodiment, the electronic device on which the information push method runs can obtain continuous frame images, etc. through a wired connection or a wireless connection. It should be noted that the above-mentioned wireless connection method may include but is not limited to 3G / 4G connection, WiFi (Wireless-Fidelity) connection, Bluetooth connection, WiMAX (Worldwide Interoperabilityfor Microwave Access) connection, Zigbee (low-power LAN protocol, also known as Zigbee protocol) connection, UWB (ultrawideband) connection, and other wireless connection methods currently known or to be developed in the future. The embodiment of the present invention can be used in the advertising placement scenario of the elevator, and the acquisition of continuous frame images can be performed by an image acquisition device. In this embodiment, a camera is used for image acquisition.
[0046] The above-mentioned persons to be detected may represent multiple persons entering the elevator, and the persons to be detected may include people of various age groups, for example: married men and women, underage children, the elderly, etc. The persons to be detected may include staff, shoppers, etc., and shoppers may also bring pets and other accessories.
[0047] The above continuous frame images may be images captured by the camera in a certain continuous time period in the elevator, and the continuous frame images may include face images, body images, etc. of the persons to be detected, for example: the face and body images of the persons to be detected in the elevator going up from 5:00 pm to 5:05 pm are obtained. By collecting the face images of the persons to be detected, multiple persons to be detected can be distinguished, so as to obtain the corresponding information of each person to be detected.
[0048] 202. Select a person to be detected whose facial image stays for a preset time threshold as a target person, and extract attribute information of the target person to construct a personal profile.
[0049] The above-mentioned dwell time indicates the total time that the person to be detected corresponding to the face image stays from getting on the elevator to getting out of the elevator in continuous frame images. The dwell time may include the waiting time when the elevator temporarily stops on the way. For example, if two people enter the elevator at the same time, person A goes to the 4th floor and person B goes to the 6th floor, the time spent waiting for person A to get out of the elevator on the 4th floor before continuing to start the upward movement indicates the waiting time of person B. If there are more than two people going to different floors, the dwell time of some of them may include multiple waiting times, so their waiting time will be extended.
[0050] The above-mentioned preset time threshold may be the advertisement showing time on the corresponding floor. Comparing the stay time with the time threshold may be to determine whether the stay time of the person to be detected is greater than or equal to the time threshold, indicating whether the person to be detected can finish watching the pushed advertisement within the stay time. The above-mentioned advertisement showing time has been confirmed when the advertisement is produced. Of course, the above-mentioned time threshold may also be a manually preset time, for example: a fixed time threshold of 30s, 40s, etc.
[0051] When the stay time of the person to be detected meets the time threshold, the person to be detected will be selected as a target person, and the target person means the person whose attribute information can be extracted to establish a personal profile. The above attribute information may include the specific angle of the captured image, the body of the target person, clothing, accessories, etc.
[0052] The above-mentioned extraction of attribute information of each target person to construct a personal profile may be archiving the attribute information of each target person into his or her own personal profile. Based on the clustering basic service, the attribute information may be classified and stored in the personal profile, wherein the clustering basic service may refer to the process of dividing a collection of physical or abstract objects into multiple classes consisting of similar objects.
[0053] 203. Calculate the item preference matrix of the target person based on the attribute information in the personal profile.
[0054] The above-mentioned attribute information may be multi-dimensional attribute information, and the multi-dimensional attribute information is used to construct the target person's item preference matrix, and the multi-dimensional attribute information is identified by a human body recognition algorithm, and the identified attribute information is structured based on the video structuring, and the item preference matrix is calculated according to the structured attribute information. The horizontal axis of the item preference matrix may be multiple target persons, and the vertical axis may represent multiple items (attribute information), and each corresponding vector in the matrix may represent the target person's interest in the corresponding item. The interest can be used to understand the target person's liking for the item. The higher the interest, the more the target person prefers it, and the lower the score, the less the target person prefers it.
[0055] 204. Match the corresponding recommendation list according to the item preference matrix of the target person and push it.
[0056] After obtaining the target person's item preference matrix, we can know the target person's interest in each item, which can be reflected by the score. According to the score, the system can perform data mining and prioritize the recommended list of items with high interest based on the recommendation algorithm. For example, if the target person A scores 80 for business suits and 10 for princess dresses, the recommendation algorithm will prioritize business suits.
[0057] The above-mentioned recommendation list may include multiple ordered recommendation items. When the background management device pushes the recommendation list to the projection module, the projection module can perform orderly projection according to the ordered recommendation items in the recommendation list. When there are multiple projection modules, the multiple ordered recommendation items can be pushed to multiple projection modules respectively, so that multiple projection modules can be projected simultaneously, which is conducive to improving the reach of the advertisement.
[0058] In the embodiment of the present invention, since continuous frame images of the person to be detected are collected, the continuous frame images include the face image of the person to be detected; the person to be detected whose face image stays for a preset time threshold is selected as the target person, and the attribute information of the target person is extracted to construct a personal profile; the item preference matrix of the target person is calculated based on the attribute information in the personal profile; and the corresponding recommendation list is matched according to the item preference matrix of the target person for push. Therefore, the embodiment of the present invention can select the target person according to the stay time and the preset time threshold, and extract the attribute information of the target person for structured processing to construct the item preference matrix of the target person, and match the recommendation list corresponding to the item preference matrix for push, which is conducive to improving the accuracy of advertising push and realizing accurate advertising delivery.
[0059] It is understandable that in the specific implementation of this application, related data such as continuous frame images, facial images and personal profiles are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0060] like Figure 3 As shown, Figure 3 : is a flow chart of another information push method provided by an embodiment of the present invention, which specifically includes the following steps:
[0061] 301. Collect continuous frame images of a person to be detected, where the continuous frame images include a face image of the person to be detected.
[0062] 302. Recognize face images in continuous frame images.
[0063] In the continuous frame image, multiple facial images of the persons to be searched may be included. The persons to be searched may be in the state of lowering their heads, looking straight, looking up, turning around, etc. in the elevator. If the camera cannot collect the facial image of the person to be searched in the first time, it can temporarily give up collecting the facial image of the person to be searched. When it is detected that the facial image can be collected later, the facial image will continue to be recognized. For example, when the facial image of person A just enters the elevator, the camera cannot collect the facial image. After 30 seconds, the camera recognizes the face of person A. This means that the camera can collect continuous frame images of the persons to be detected in a continuous time period.
[0064] 303. Obtain floor information corresponding to the face image, and calculate the stay time of the person to be detected according to the floor information.
[0065] Each of the above-mentioned facial images corresponds to a person to be retrieved. The camera can calculate the residence time of the person to be detected in the elevator by obtaining the floor corresponding to each facial image. For example, if the person C to be detected presses the elevator button on the 6th floor, enters the elevator at 5 pm, and exits the elevator at 2 minutes after 5 pm, it means that the residence time of the person C to be detected is 2 minutes. Of course, there will be multiple people to be detected entering the elevator at the same time, or there will be people to be detected entering in the middle, and many of them go to the same floor. At this time, it is necessary to calculate the residence time required from the floor entering the elevator to the floor that has been pressed. The calculation can be based on the first floor entering the elevator first, and the midway entry can be ignored. For example, if person A and person B enter on the 1st floor, person A goes to the 5th floor, person B goes to the 6th floor, and one person enters on the 3rd floor and goes to the 5th floor, the residence time is based on the time of entering on the 1st floor, and the residence time to the 5th floor and the residence time to the 6th floor are calculated.
[0066] 304. Determine whether the dwell time reaches a preset time threshold, where the preset time threshold includes advertisement showing time.
[0067] Among them, each floor can have multiple advertisements, and the advertising showing time of each advertisement is different. When judging whether the dwell time reaches the preset time threshold, the dwell time of the corresponding floor can be compared with the advertising showing time of multiple advertisements on the floor, which is equivalent to that each advertisement showing time of each floor can be used as the preset time threshold. For example: someone in the elevator goes to the 5th floor, and someone goes to the 10th floor. The dwell time to the 5th floor is 1 minute, and the dwell time to the 10th floor is 2 minutes. At this time, the advertising showing time of multiple advertisements on the 5th floor and the advertising showing time of multiple advertisements on the 10th floor will be obtained respectively, and it will be judged whether there are advertisements less than or equal to 1 minute in the advertising showing time on the 5th floor, and whether there are advertisements less than or equal to 2 minutes in the advertising showing time on the 10th floor.
[0068] 305. If the condition is met, the person to be tested is selected as the target person, and the attribute information of the target person is extracted to construct a personal profile.
[0069] During the stay time, if there is an advertisement on the corresponding floor whose showing time is less than or equal to the stay time, the person to be detected who presses the floor will be selected as the target person, the attribute information of the target person will be extracted, and the attribute information will be archived to obtain the corresponding personal file.
[0070] As a possible implementation method, if the dwell time is less than the advertising showing time of all advertisements on the floor visited, it means that the person to be detected has left the elevator, but the advertisement has not been played yet, regardless of whether it is the advertisement that the person to be detected likes. In this way, accurate push cannot be achieved, resulting in a waste of resources. Therefore, when the dwell time is less than the advertising showing time of all advertisements on the floor visited, the push system can be suspended to push advertisements to the person to be detected.
[0071] 306. Calculate the item preference matrix of the target person based on the attribute information in the personal profile.
[0072] 307. Match the corresponding recommendation list according to the item preference matrix of the target person and push it.
[0073] In an embodiment of the present invention, facial images in continuous frame images are identified to obtain floor information corresponding to the facial images, and the residence time of the person to be detected is calculated based on the floor information to determine whether the residence time reaches the advertisement showing time. The person to be detected whose residence time reaches the advertisement showing time is regarded as the target person. After the target person is determined, the attribute information of the target person can be extracted to calculate the item preference matrix of the target person, and the recommendation list corresponding to the item preference matrix is pushed. In this way, by pre-screening the target person in the elevator and then extracting the attribute information of the target person, targeted push can be achieved, which is beneficial to improving the accuracy of advertisement push. There is no need to obtain the attribute information of all persons to be detected in the elevator, thereby avoiding waste of resources, excessive time consumption, and excessive calculation. Figure 4 As shown, Figure 4 : is a flowchart of another information push method provided in an embodiment of the present invention, wherein the attribute information includes tag attributes, and specifically includes the following steps:
[0074] 401. Collect continuous frame images of a person to be detected, where the continuous frame images include a face image of the person to be detected.
[0075] 402. Select a person to be detected whose face image stays for a preset time threshold as a target person, perform image tracking on the target person, detect label attributes of the target person, and perform structured processing on the label attributes.
[0076] In the process of tracking, snapshots can be taken, which may include backlit snapshots, side snapshots, snapshots with obstructions, snapshots of back figures, etc. The above-mentioned tag attributes may include but are not limited to the target person's body shape, height, age, and even clothing brands and logos, types of shoes, backpacks, hats, colors and brands of glasses and earrings, etc.
[0077] After the target person is determined, the Kalman filtering algorithm can be used to track the target person and detect the label attributes of the target person in real time. In the process of tracking the image, the video image is often affected by the system instrument design, measurement operation, etc. When tracking the video image, interference waves often appear. Therefore, the Kalman algorithm can be used for filtering. Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through the system input and output of continuous frame image data. Since the continuous frame image data includes the influence of noise and interference in the system, the optimal estimate can also be regarded as a filtering process. Kalman filtering can estimate the state of the dynamic system from a series of data with measurement noise when the measurement variance is known, and can update and process the collected continuous frame images in real time.
[0078] The above-mentioned structured processing can be performed through a video structuring engine to detect multiple tag attributes, identify the association between multiple tag attributes, and achieve data structuring. The tag attributes can be used to construct a matrix to calculate the item preference matrix of the target person.
[0079] 403. Select the face image of the target person as the file ID, and build a personal file of the target person based on the file ID and label attributes.
[0080] Among them, the face can be used as a unique identifier with high recognition. Using each person's face image as the file ID to establish the target person's personal file is targeted and safe. The personal file corresponding to the file ID can be directly searched. The above personal file can store the label attributes collected from the target person multiple times after being structured, and the label attributes collected each time can be different.
[0081] The facial image of the target person selected above can be identified by using facial recognition technology to identify continuous frame images collected by the camera. The identification can be to collect multiple key points where the face is located, analyze the multiple key points to achieve the distinction between multiple facial images, and construct different file IDs for different facial images. The above key points can refer to the nose, eyes, eyebrows, mouth, cheeks, etc. of the face, and the above analysis of the key points can be to analyze the coordinates, spacing, etc. between the nose, eyes, eyebrows, mouth, cheeks, etc.
[0082] As an optional implementation method, the same person to be detected can appear in the same scene multiple times, and when the camera obtains the face image of the person to be detected multiple times, face recognition can be performed. If the face image is recognized and a personal file has been established as a file ID, the person to be retrieved can be determined as a target person and the current attribute information of the target person can be obtained, where the current attribute information refers to the information currently being collected by the camera, such as: the target person's clothes, pants, shoes, hats, bags, jewelry, and the color, style, brand, etc. of the clothes, pants, shoes, hats, bags, and jewelry.
[0083] Determine whether the proportion of the current attribute information to the attribute information in the personal profile reaches a preset proportion threshold.
[0084] After obtaining the current attribute information, all attribute information of the target person can be extracted and compared. For example, if the target person has 4 attribute information, all of which are sports series, and the current attribute information has 2, namely skirt and high heels, then its weight value can be 0. The above weight threshold can be preset, for example, set to 1 / 2.
[0085] If it is reached, it can indicate that the target person's attribute information is stable, for example: the weight threshold is 3 / 5, and the weight value is 4 / 5. The current attribute information is filed in the target person's personal profile, and the target person's item preference matrix is calculated by combining the current attribute information and the attribute information in the established personal profile. If it is not reached, a new personal profile of the target person can be created based on the new attribute information, and the previous personal profile of the target person can be deleted to update the personal profile, and the personal profile can be constructed in real time based on the current attribute information, and the item preference matrix can be calculated to obtain a more accurate push list.
[0086] 404. Calculate the item preference matrix of the target person based on the attribute information in the personal profile.
[0087] 405. Match the corresponding recommendation list according to the item preference matrix of the target person and push it.
[0088] In the embodiment of the present invention, by collecting continuous frame images of the person to be detected, the target person is selected, and the target person is image-tracked to detect its label attributes, and the label attributes are processed through video structuring, and the face image is used as the file ID, and the personal file of the target person is constructed according to the structured file ID and label attributes, and the matrix constructed based on the label attributes in the file is used to calculate the target person's item preference matrix, and push it according to the corresponding recommendation list matched by the item preference matrix. In this way, by image tracking to detect label attributes and structuring label attributes, it is conducive to accurately positioning advertising push and covering the population.
[0089] like Figure 5 As shown, Figure 5 : is a flowchart of another information push method provided in an embodiment of the present invention, which specifically includes the following steps:
[0090] 501. Collect continuous frame images of a person to be detected, where the continuous frame images include a face image of the person to be detected.
[0091] 502. Select a person to be detected whose face image stays for a preset time threshold as a target person, and extract attribute information of the target person to construct a personal profile.
[0092] 503. Construct a user-feature matrix according to the target person and the label attributes, wherein the user-feature matrix includes the interest of the target person in the label attributes.
[0093] See attached Figure 6a As shown, in the user-feature matrix P (user-class matrix), the matrix value P i,j Indicates user i Class jThe interest level can be solved by optimizing the loss function. Multiple items (feature attributes) of a user can be used as a data set, and all items constitute a complete set of items. For each user, the items he has acted on are called positive samples, and the interest level RUI = 1. In addition, we also need to randomly sample from the complete set of items, select samples with the same number as the positive samples as negative samples, and set the interest level RUI = 0. Therefore, the value range of interest is [0,1]. The above interest level can be calculated by continuously iteratively calculating and optimizing the parameters through the loss function combined with the stochastic gradient descent algorithm until the parameters converge.
[0094] In a possible implementation mode, when the same person is tested multiple times and different label attributes are obtained, the label attributes that appear less frequently in the personal profile of the target person can be deleted, and the label attributes that appear more frequently can be retained. This is conducive to more accurately calculating the target person's predicted score for the item, so that the corresponding recommendation list can be matched more accurately.
[0095] 504. Construct a feature-item matrix according to the tag attributes and the items, wherein the feature-item matrix includes weights of the items in the tag attributes.
[0096] Among them, in the feature-item matrix Q (class-item matrix), Q i,j Indicates item j In class i The weight in , the higher the weight, the more representative it is of the class. The weight can also be calculated by the above optimization loss function.
[0097] 505. Multiply the user-feature matrix and the feature-item matrix to obtain the item preference matrix of the target person, where the item preference matrix includes the interest of the target person in the item.
[0098] Specifically, the target person’s behavior dataset (the dataset contains all users, all items, and a list of items that each user has acted on) can be modeled using LFM (latent factor model). Assuming that there are 3 users and 4 items in the dataset, and the number of classes for LFM modeling is 4, we can get the following: Figure 6a Model shown.
[0099] Reference Figure 6a As shown, the R matrix is the user-item matrix, and the matrix value R i,j Indicates user i For item j The interest level of useri For item j The interest degree is the value to be determined. For each user, after calculating the user's interest in all items, they can be sorted and recommended. After calculating the above multiple interests and weights, the user-class matrix and class-item matrix of the target person are obtained. The LFM algorithm extracts several topics from the above data set as a bridge between user and item. The R matrix is represented as the product of the P matrix and the Q matrix to obtain the user-item matrix of the target person. The higher the interest degree, the more the user prefers the item. Multiply the user-class matrix and the class-item matrix to obtain the user-item matrix, and calculate the user i For item j The specific algorithm of interest can be referred to Figure 6b As shown, where P u,k Indicates user u For class k Interest level, Q k,i Indicates item k In class i The weight in .
[0100] 506. Push the corresponding recommendation list according to the item preference matrix of the target person.
[0101] In the embodiment of the present invention, by obtaining the tag attributes of the target person, constructing a user-feature matrix according to the tag attributes, and constructing a feature-item matrix according to the tag attributes and the items, the two are multiplied to obtain a user preference matrix, and finally the corresponding recommendation list is matched according to the item preference matrix of the target person for push. In this way, the user preference matrix is calculated by the target person's interest in the tag attributes and the weight of the items in the tag attributes, which is conducive to more accurate targeted push of advertisements to the target person.
[0102] like Figure 7 As shown, Figure 7 : is a flowchart of another information push method provided in an embodiment of the present invention, which specifically includes the following steps:
[0103] 601. Collect continuous frame images of a person to be detected, where the continuous frame images include a face image of the person to be detected.
[0104] 602. Select a person to be detected whose facial image stays for a preset time threshold as a target person, and extract attribute information of the target person to construct a personal profile.
[0105] 603. Calculate the item preference matrix of the target person based on the attribute information in the personal profile.
[0106] 604. Match the pre-push list according to the item preference matrix of the target person.
[0107] The pre-push list is obtained by matching the items in the item preference matrix of the target person according to the recommendation algorithm. The pre-push list includes multiple items similar to the items in the item preference matrix. For example, if there are Nike sneakers and Adidas jerseys in the item preference matrix, the recommendation algorithm can determine that the target person is a sports expert and search for advertisements of sports items on the floor to be visited to form a pre-push list.
[0108] As a possible implementation method, when there are multiple target persons, there will be an item preference matrix corresponding to each target person. Therefore, the item preference matrix of the target person can be sorted according to the preset target person priority. For example: there are 3 people in total, and they go to the same floor. From the item preference matrix of target person No. 1, it is judged that they are mainly baby and maternity items, from the item preference matrix of target person No. 2, it is judged that they are mainly elderly clothing, and from the item preference matrix of target person No. 3, it is judged that they are mainly sports youth clothing. In this case, advertisements about baby and maternity items can be pushed first, then advertisements about sports youth clothing, and then advertisements about elderly clothing. Of course, the above is just an example, and the push order can also be other ways. In the embodiments of the present invention, this is not limited.
[0109] 605. Calculate the item similarity between the items in the pre-push list and the items in the item preference matrix of the target person.
[0110] Among them, the item similarity can represent the similarity between the features of two items, for example: comparing the properties, functions, types, included elements, etc. of the two items. For comparing the similarity of two items, the items to be compared can be specified, and the corresponding similarity values can be matched for each item. For example: there are Adidas jerseys in the pre-recommended list, and there are Adidas sneakers in the item preference matrix. When matching, Adidas has a common logo, and both the jerseys and sneakers are sports series. The similarity of matching for the same logo is 50%, and the similarity of matching for both sports series is 20%, so the item similarity of the two items is 70%.
[0111] 606. Construct an item similarity matrix and calculate the predicted preference value of the target person.
[0112] After calculating the item similarity between multiple items, a similarity matrix can be constructed based on the item similarities. For multiple item similarities, a similarity threshold can be preset, and item similarities that do not reach the similarity threshold can be deleted to avoid invalid push and waste of resources. The matrix value in the similarity matrix represents the similarity between items, and the size of multiple predicted preference values of the target person is calculated through the item similarity.
[0113] 607. Sort the predicted preference values, and push a recommendation list corresponding to the sorted predicted preference values, wherein the recommendation list includes top N items.
[0114] After calculating multiple predicted preference values of the target person, the system can sort them in order according to the size of the predicted preference values, with the predicted preference values with larger values sorted first. After sorting, a recommendation list with topN items can be obtained, and the recommendation list can be pushed to the target person in the elevator.
[0115] In the embodiment of the present invention, the pre-push list is matched according to the item preference matrix of the target person, and the item similarity between the pre-push list and the items in the item preference matrix is calculated, an item similarity matrix is constructed, the predicted preference value of the target person is calculated, the predicted preference values are sorted, and the recommendation list corresponding to the sorted predicted preference value is matched and pushed. By calculating the item similarity, constructing the similarity matrix to calculate the predicted preference value, and then sorting the predicted preference value, it is beneficial to give priority to recommending items with high predicted preference values to the target person, and realize accurate push.
[0116] See also Figure 8 , Figure 8 800 is a schematic diagram of the structure of an information push device provided by an embodiment of the present invention. The device 800 specifically includes:
[0117] The acquisition module 801 is used to acquire continuous frame images of the person to be detected, wherein the continuous frame images include a face image of the person to be detected;
[0118] Extraction module 802, used to select a person to be detected whose face image stays for a time that reaches a preset time threshold as a target person, and extract attribute information of the target person to construct a personal profile;
[0119] A calculation module 803 is used to calculate the item preference matrix of the target person based on the attribute information in the personal profile;
[0120] The push module 804 is used to match the corresponding recommendation list according to the item preference matrix of the target person and push it.
[0121] Optional, such as Fig. 9 As shown, the extraction module 802 includes:
[0122] The recognition unit 8021 is used to recognize the face image in the continuous frame image;
[0123] The first calculation unit 8022 is used to obtain the floor information corresponding to the face image, and calculate the stay time of the person to be detected according to the floor information;
[0124] A judging unit 8023, used to judge whether the dwell time reaches a preset time threshold, where the preset time threshold includes the advertisement showing time;
[0125] The selection unit 8024 is used to select the person to be detected as the target person if the condition is met.
[0126] Optionally, the attribute information includes tag attributes, such as Fig.10 As shown, the extraction module 802 also includes:
[0127] The processing unit 8025 is used to perform image tracking on the target person, detect the label attributes of the target person, and perform structured processing on the label attributes;
[0128] The first construction unit 8026 is used to select the face image of the target person as the profile ID, and construct the personal profile of the target person based on the profile ID and the tag attribute.
[0129] Optional, such as Fig.11 As shown, the calculation module 803 includes:
[0130] The second construction unit 8031 is used to construct a user-feature matrix according to the target person and the label attribute, wherein the user-feature matrix includes the interest of the target person in the label attribute;
[0131] The second construction unit 8031 is further used to construct a feature-item matrix according to the tag attributes and the items, wherein the feature-item matrix includes the weights of the items in the tag attributes;
[0132] The second calculation unit 8032 is used to multiply the user-feature matrix and the feature-item matrix to obtain the item preference matrix of the target person, where the item preference matrix includes the interest of the target person in the item.
[0133] Optional, such as Fig.12 As shown, the push module 804 includes:
[0134] A matching unit 8041 is used to match the pre-push list according to the item preference matrix of the target person;
[0135] The third calculation unit 8042 is used to calculate the item similarity between the items in the pre-pushing list and the items in the item preference matrix of the target person;
[0136] The second construction unit 8031 is also used to construct an item similarity matrix and calculate the predicted preference value of the target person;
[0137] The sorting unit 8043 is used to sort the predicted preference values, match and push the recommendation list corresponding to the sorted predicted preference values, and the recommendation list includes topN items.
[0138] Optional, such as Fig.13 As shown, the device 800 also includes:
[0139] The acquisition module 805 is used to acquire the face image of the person to be searched. If the face image is recognized as a personal file established as a file ID, the person to be searched is determined as a target person and the current attribute information is acquired;
[0140] The judgment module 806 is used to judge whether the proportion of the current attribute information to the attribute information in the personal profile reaches a preset proportion threshold;
[0141] The filing module 807 is used to file the current attribute information in the personal file of the target person if the requirement is met;
[0142] The new creation module 808 is used to create a new personal profile of the target person based on the new attribute information if the target person has not been met.
[0143] The information push device provided in the embodiment of the present invention can implement each process implemented by the information push method in the above method embodiment and can achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0144] See also Fig.14 , Fig.14 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig.14 As shown, it includes: a processor 1401, a memory 1402, a network interface 1403, and a computer program stored in the memory 1402 and executable on the processor 1401, wherein:
[0145] The processor 1401 is used to call the computer program stored in the memory 1402 and execute the following steps:
[0146] Collecting continuous frame images of the person to be detected, wherein the continuous frame images include a face image of the person to be detected;
[0147] Selecting the person to be detected whose face image stays for a preset time threshold as the target person, extracting the attribute information of the target person to construct a personal profile;
[0148] Calculate the target person's item preference matrix based on the attribute information in the personal profile;
[0149] The corresponding recommendation list is matched and pushed according to the target person’s item preference matrix.
[0150] Optionally, the step of selecting a person to be detected whose face image stays for a preset time threshold as a target person executed by the processor 1401 includes:
[0151] Recognize face images in continuous frame images;
[0152] Obtain the floor information corresponding to the face image, and calculate the stay time of the person to be detected based on the floor information;
[0153] Determine whether the dwell time reaches a preset time threshold, where the preset time threshold includes the advertisement showing time;
[0154] If it is reached, the person to be tested is selected as the target person.
[0155] Optionally, the attribute information executed by the processor 1401 includes a tag attribute, and the step of extracting the attribute information of the target person to construct a personal profile includes:
[0156] Perform image tracking on the target person, detect the label attributes of the target person, and perform structured processing on the label attributes;
[0157] The face image of the target person is selected as the profile ID, and the personal profile of the target person is constructed based on the profile ID and label attributes.
[0158] Optionally, the step of calculating the target person's item preference matrix based on the attribute information in the personal profile performed by the processor 1401 includes:
[0159] Construct a user-feature matrix based on the target person and the label attributes. The user-feature matrix includes the interest of the target person in the label attributes.
[0160] Construct a feature-item matrix based on the tag attributes and the items. The feature-item matrix includes the weights of the items in the tag attributes.
[0161] The user-feature matrix is multiplied by the feature-item matrix to obtain the target person's item preference matrix, which includes the target person's interest in the item.
[0162] Optionally, the step of matching and pushing a corresponding recommendation list according to the item preference matrix of the target person, performed by the processor 1401, includes:
[0163] Match the pre-push list according to the target person’s item preference matrix;
[0164] Calculate the item similarity between the items in the pre-push list and the items in the item preference matrix of the target person;
[0165] Construct an item similarity matrix and calculate the predicted preference value of the target person;
[0166] The predicted preference values are sorted, and a recommendation list corresponding to the sorted predicted preference values is pushed, where the recommendation list includes topN items.
[0167] Optionally, the processor 1401 is further configured to execute acquiring a facial image of the person to be searched, and if it is recognized that the facial image has been used as a profile ID to establish a personal profile, the person to be searched is determined as a target person and current attribute information is acquired;
[0168] Determine whether the proportion of the current attribute information to the attribute information in the personal profile reaches a preset proportion threshold;
[0169] If it is achieved, the current attribute information will be filed in the personal file of the target person;
[0170] If not achieved, a new personal profile of the target person will be created based on the new attribute information.
[0171] The electronic device 1400 provided in the embodiment of the present invention can implement various implementation methods in the information push method embodiment and the corresponding beneficial effects, which will not be described again here to avoid repetition.
[0172] It should be noted that the figure only shows 1401-1403 with components, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the electronic device 1400 here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.
[0173] The electronic device 1400 may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The electronic device 1400 may interact with the client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0174] The memory 1402 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 1401 can be an internal storage unit of the electronic device 1400, such as a hard disk or memory of the electronic device 1400. In other embodiments, the memory 1401 can also be an external storage device of the electronic device 1400, such as a plug-in hard disk equipped on the electronic device 1400, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 1401 can also include both the internal storage unit of the electronic device 1400 and its external storage device. In this embodiment, the memory 1401 is generally used to store the operating system and various application software installed on the electronic device 1400, such as the program code of the information push method, etc. In addition, the memory 1401 can also be used to temporarily store various types of data that have been output or are to be output.
[0175] In some embodiments, the processor 1402 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 1402 is generally used to control the overall operation of the electronic device 1400. In this embodiment, the processor 1402 is used to run the program code stored in the memory 1401 or process data, such as running the program code of the information push method.
[0176] The network interface 1403 may include a wireless network interface or a wired network interface, and the network interface 1403 is generally used to establish a communication connection between the electronic device 1400 and other electronic devices.
[0177] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor 1401, the various processes of the information push method provided by the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0178] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the information push method of each embodiment of the present application.
[0179] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for pushing information, It is characterized in that The following steps are involved: Collecting continuous frame images of a person to be detected, wherein the continuous frame images include a face image of the person to be detected; Selecting a person to be detected whose face image stays for a time that reaches a preset time threshold as a target person, and extracting attribute information of the target person to construct a personal profile; Calculate the item preference matrix of the target person based on the attribute information in the personal profile; Match the corresponding recommendation list according to the item preference matrix of the target person and push it; The step of selecting a person to be detected whose facial image stays for a time that reaches a preset time threshold as a target person includes: Recognizing human face images in the continuous frame images; Acquire the floor information corresponding to the face image, and calculate the stay time of the person to be detected according to the floor information, wherein the stay time represents the stay time required for the person to be detected corresponding to the face image from the floor where the person enters the elevator to the floor where the person has been pressed in the continuous frame image, and the stay time includes the waiting time when the elevator temporarily stops in the middle; Determine whether the stay time reaches a preset time threshold, and take the person to be detected whose stay time is greater than or equal to the preset time threshold as the target person, the preset time threshold includes the advertisement showing time, the preset time threshold is the showing time of each advertisement on each floor, and each floor contains multiple advertisements; The acquiring floor information corresponding to the face image and calculating the stay time of the person to be detected according to the floor information includes: When there are multiple people to be tested entering the elevator at the same time, or when there are people to be tested entering the elevator midway, and many of them are going to the same floor, the calculation is based on the floor where the first group of people enter the elevator, and those who enter midway are not considered; The attribute information includes tag attributes, and the method further includes: If the test is performed on the same person multiple times and different label attributes are obtained, the label attributes that appear less frequently in the personal file of the target person are deleted, and the label attributes that appear more frequently are retained; The step of calculating the item preference matrix of the target person based on the attribute information in the personal profile comprises: Constructing a user-feature matrix according to the target person and the label attribute, wherein the user-feature matrix includes the interest of the target person in the label attribute, and the interest in the label attribute is obtained by solving the optimization loss function; Constructing a feature-item matrix according to the tag attributes and the items, wherein the feature-item matrix includes weights of the items in the tag attributes; Multiplying the user-feature matrix by the feature-item matrix to obtain the item preference matrix of the target person, wherein the item preference matrix includes the interest of the target person in the item; The interest in the tag attribute is obtained by optimizing the loss function, including: A complete set of characteristic attribute data is constructed based on the characteristic attributes of the target person's items, wherein the complete set of characteristic attribute data includes multiple characteristic attribute data sets; Extract the target user's behavior feature attribute data set from the feature attribute data set as a positive sample, and set the interest level to 1; Randomly select samples with the same number as the positive samples from the entire set of feature attribute data as negative samples, and set the interest degree to 0; The positive samples and negative samples are continuously iteratively calculated and optimized by combining the loss function with the stochastic gradient descent algorithm until the positive samples and negative samples converge, and the interest degree is calculated.
2. The information push method according to claim 1, It is characterized in that The step of extracting the attribute information of the target person to construct a personal profile includes: Performing image tracking on the target person, detecting label attributes of the target person, and performing structured processing on the label attributes; The face image of the target person is selected as the profile ID, and a personal profile of the target person is constructed based on the profile ID and the tag attribute.
3. The information push method according to claim 1, It is characterized in that The step of matching the corresponding recommendation list according to the item preference matrix of the target person and pushing the recommendation list comprises: Matching the pre-push list according to the item preference matrix of the target person; Calculating the item similarity between the items in the pre-pushing list and the items in the item preference matrix of the target person; Constructing an item similarity matrix and calculating the predicted preference value of the target person; The predicted preference values are sorted, and a recommendation list corresponding to the sorted predicted preference values is pushed, wherein the recommendation list includes topN items.
4. The information push method according to claim 1, It is characterized in that The method further comprises: Obtaining a facial image of the person to be searched, and if it is recognized that the facial image has been used as a profile ID to establish a personal profile, determining the person to be searched as a target person and obtaining current attribute information; determining whether the proportion of the current attribute information to the attribute information in the personal profile reaches a preset proportion threshold; If the target is reached, the current attribute information is filed in the personal file of the target person; If not, a new personal profile of the target person is created based on the new attribute information.
5. An information push device, It is characterized in that include: An acquisition module, used for acquiring continuous frame images of the person to be detected, wherein the continuous frame images include a face image of the person to be detected; An extraction module is used to select a person to be detected whose face image stays for a time that reaches a preset time threshold as a target person, and extract attribute information of the target person to construct a personal profile; A calculation module, used for calculating the item preference matrix of the target person based on the attribute information in the personal profile; A push module, used to match the corresponding recommendation list according to the item preference matrix of the target person and push it; The extraction module is further used to identify the face image in the continuous frame image; Acquire the floor information corresponding to the face image, and calculate the residence time of the person to be detected according to the floor information, wherein the residence time represents the total residence time of the person to be detected corresponding to the face image from getting on the elevator to getting out of the elevator in the continuous frame images, and the residence time includes the waiting time of the elevator temporarily pausing in the middle; determine whether the residence time reaches a preset time threshold, and take the person to be detected corresponding to the residence time greater than or equal to the preset time threshold as the target person, and the preset time threshold includes the advertising showing time, and the preset time threshold is the advertising showing time of each floor, and each floor contains multiple advertisements; The extraction module is also used to, when there are multiple persons to be detected entering the elevator at the same time, or when there are persons to be detected entering the elevator midway, and multiple of them are going to the same floor, give priority to the calculation based on the floor of the first group of people entering the elevator, and do not consider those who enter midway; The attribute information includes label attributes, and the information push device is further used for deleting the label attributes with fewer occurrences in the personal file of the target person and retaining the label attributes with more occurrences if the detection is performed on the same person multiple times and different label attributes are obtained; The computing module comprises: A second construction unit is used to construct a user-feature matrix according to the target person and the label attribute, wherein the user-feature matrix includes the interest of the target person in the label attribute, and the interest in the label attribute is obtained by solving an optimization loss function; The second construction unit is further used to construct a feature-item matrix according to the tag attributes and the items, wherein the feature-item matrix includes weights of the items in the tag attributes; A second calculation unit is used to multiply the user-feature matrix with the feature-item matrix to obtain the item preference matrix of the target person, wherein the item preference matrix includes the interest of the target person in the item; The second construction unit is further used to construct a complete set of characteristic attribute data based on the characteristic attributes of the target person's items, wherein the complete set of characteristic attribute data includes multiple characteristic attribute data sets; The second construction unit is also used to extract the characteristic attribute data set in which the target user has had behavior from the entire characteristic attribute data set as a positive sample, and set the interest degree to 1; The second construction unit is further used to randomly select samples with a number equal to that of the positive samples from the entire set of feature attribute data as negative samples, and set the interest degree to 0; The second construction unit is also used to continuously perform iterative calculation optimization on the positive samples and negative samples through a loss function combined with a stochastic gradient descent algorithm until the positive samples and negative samples converge, and calculate the interest level.
6. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the information push method as claimed in any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the information push method according to any one of claims 1 to 4 are implemented.
