Disclosure of Invention
The embodiment of the invention provides a video recommendation method, a video recommendation device, video recommendation equipment and a storage medium, and solves the technical problem that the video recommendation method in the prior art is difficult to realize accurate recommendation of videos.
In a first aspect, an embodiment of the present invention provides a video recommendation method, including:
acquiring voiceprint information of a current user;
if the voiceprint information of the current user is the voiceprint information of an existing account, determining a target account corresponding to the voiceprint information, wherein the existing account is a last-stage sub-account in a single-stage account or a multi-stage account;
acquiring a data recommendation model of the target account;
controlling the data recommendation model to determine video recommendation content based on preset historical browsing data corresponding to the target account;
and outputting the video recommendation content.
Further, the acquiring voiceprint information of the current user includes:
acquiring voice information of a current user through an array microphone module;
and determining the voiceprint information of the current user according to the voice information.
Further, after obtaining the voiceprint information of the current user, the method further includes:
if the voiceprint information of the current user is not the voiceprint information of the existing account, outputting prompt information for creating the account;
if an account creating instruction is received, creating a new account associated with the voiceprint information, wherein the new account is configured with a data recommendation model;
and initializing a data recommendation model of the current account according to the browsing address of the current user for logging in for the first time.
Further, if an account creation instruction is received, creating a new account associated with the voiceprint information, including:
if an account creating instruction is received, obtaining voiceprint information determined by the current user voice information;
and acquiring a preset login password, and creating a sub-account in the single-level account or the multi-level account associated with the voiceprint information after the preset login password passes verification.
Further, before the obtaining of the data recommendation model of the target account, the method further includes:
acquiring preset historical browsing data of a target account;
and if the preset historical browsing data is updated, updating the data recommendation model based on the updated preset historical browsing data to obtain the latest data recommendation model.
Further, when the existing account is a last-level sub-account in the multi-level account, if the voiceprint information of the current user is the voiceprint information of the existing account, determining the target account corresponding to the voiceprint information includes:
if the voiceprint information of the current user is the voiceprint information of the existing account, acquiring selection information of the user so as to take the existing account and one root account corresponding to the existing account as a target account;
acquiring a data recommendation model of the target account;
and controlling the data recommendation model to determine video recommendation content based on preset historical browsing data corresponding to the target account, wherein the preset historical browsing data comprises preset historical browsing data of the target account and/or preset historical browsing data of a preset sub-account of the target account.
Further, after the outputting the video recommendation content, the method further includes:
acquiring the identification of a user for the currently watched video or the selected historical browsing data;
and when the identification is a secret identification, the historical browsing data corresponding to the secret identification is only used by the data recommendation model of the current account.
In a second aspect, an embodiment of the present invention further provides a video recommendation apparatus, including:
the information acquisition module is used for acquiring voiceprint information of a current user;
the target account determining module is used for determining a target account corresponding to voiceprint information if the voiceprint information of the current user is the voiceprint information of an existing account, wherein the existing account is a last-level sub-account in a single-level account or a multi-level account;
the model acquisition module is used for acquiring a data recommendation model of the target account;
the recommendation module is used for controlling the data recommendation model to determine video recommendation content based on preset historical browsing data corresponding to the target account;
and the output module is used for outputting the video recommendation content.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the video recommendation method of the first aspect.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the video recommendation method according to the first aspect.
The technical scheme of the video recommendation method provided by the embodiment of the invention comprises the following steps: acquiring voiceprint information of a current user; if the voiceprint information of the current user is the voiceprint information of the existing account, determining a target account corresponding to the voiceprint information, wherein the existing account is a last-stage sub-account in the single-stage account or the multi-stage account; acquiring a data recommendation model of a target account; and the control data recommendation model determines video recommendation content based on preset historical browsing data corresponding to the target account and outputs the video recommendation content. The method has the advantages that accurate video recommendation service can be provided for users of the target account based on preset historical browsing data corresponding to the target account through a data recommendation model of the target account; the account is enabled through the voiceprint information, so that the safety of the account and the convenience of enabling the account can be improved, and the user experience is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart of a video recommendation method according to an embodiment of the present invention. The technical scheme of the embodiment is suitable for television video recommendation. The method can be executed by the video recommendation device provided by the embodiment of the invention, and the device can be implemented in a software and/or hardware manner and is configured to be applied in a processor. As shown in fig. 1, the method specifically includes the following steps:
and S100, acquiring voiceprint information of the current user.
Voiceprint recognition technology, which is one of biometric recognition technologies, performs identification based on the characteristics of sound waves of a speaker. Therefore, to acquire the voiceprint information, it is usually necessary to acquire the voice information of the user. In the embodiment, the voice information of the current user is acquired through the array microphone module; and determining the voiceprint information of the current user according to the voice information.
Preferably, in this embodiment, a microphone array module composed of 6 microphones is combined with an echo cancellation algorithm to acquire voice information of a current user, and the acquired voice information is analyzed based on a preset voiceprint recognition algorithm to obtain voiceprint information of the current user.
It should be noted that, in this embodiment, a preset voiceprint recognition algorithm is not limited, and any existing voiceprint recognition algorithm capable of recognizing a voiceprint may be used.
And S102, if the voiceprint information of the current user is the voiceprint information of the existing account, determining the target account corresponding to the voiceprint information, wherein the existing account is a last-stage sub-account in the single-stage account or the multi-stage account.
The existing account can be a single-level account, namely the existing account does not comprise other accounts and does not belong to other accounts; the existing account may also be a sub-account in the hierarchical account, i.e. the existing account is a sub-account of an account. Each voiceprint information in this embodiment corresponds to at least one account, and the account may be a single-level account or a last-level sub-account of a multi-level account.
And identifying the acquired voiceprint information according to a preset voiceprint identification algorithm, and determining and outputting a related account corresponding to the voiceprint information when the identification result shows that the current voiceprint information is the voiceprint information of the existing account, wherein the related account can be one account or a plurality of accounts. When the existing account is a single-level account, only one account is available for the related account, and the account is directly used as a target account at the moment; when the existing account belongs to one sub-account of the hierarchical accounts, the related accounts comprise a plurality of accounts, and the target account can be determined according to default information set by the user or according to selection information input by the user. Optionally, the multi-level account is usually in a tree structure, and when an existing account is a sub-account of the multi-level account, the related account includes the sub-account and a root account in the multi-level account corresponding to the sub-account, and at this time, the sub-account or a root account corresponding to the sub-account may be used as the target account according to the selection of the user.
And S104, acquiring a data recommendation model of the target account.
In order to improve the accuracy of video recommendation, the present embodiment sets a data recommendation model for each account, and the data recommendation model is updated along with the update of the historical browsing data of the corresponding account. Therefore, when the target account is determined, the latest data recommendation model of the target account is determined at the same time.
S106, the control data recommendation model determines video recommendation content based on preset historical browsing data corresponding to the target account.
To determine the video recommendation content, a data recommendation model is generally required to analyze sample data and then determine the video recommendation content. Therefore, in order to improve the accuracy of the video recommended content and the determination speed of the video recommended content, the preset historical browsing data in the embodiment is historical browsing data in a set time period, that is, the historical browsing data in the set time period is used as sample data for the data recommendation model to analyze, so that the data recommendation model can determine the video recommended content quickly and accurately.
Preferably, in order to meet the security requirement of the user with the security requirement, in this embodiment, the user may identify the currently viewed video or the selected historical browsing data; when the identifier is the secret identifier, the historical browsing data corresponding to the secret identifier is only used by the data recommendation model of the current account, and the root account of the multilevel account corresponding to the current account cannot be used for analyzing the video recommendation.
It can be understood that, when each account exits from use, the system may synchronize the current browsing data of the account to the preset historical browsing data to update the preset historical browsing data; the browsing data can also be synchronized to the preset historical browsing data based on a preset time interval or in real time during the use process of each account so as to update the preset historical browsing data. No matter which way of updating the preset historical browsing data, the using habits and the interest directions of the users can be tracked all the time, and the requirements of the current users can be known, so that the video contents which the users are interested in are provided in a targeted manner, and the method is favorable for keeping the stickiness of the users.
And S108, outputting the video recommendation content.
And when the video recommendation content is determined, outputting the video recommendation content to a display screen for a user to watch.
Preferably, the video recommendation content is usually displayed on a television home page, and since the historical browsing data of each account is usually different, the video recommendation content of the system for each account is usually different, and each account has a personalized home page tailored to the system.
Exemplarily, as shown in fig. 2, the multi-level account is a two-level account, including a first-level account and a last-level account, the first-level account is a big family, the last-level account has an account child a, an account child B, an account dad, an account mom, an account vintage and an account milk, at this time, if the current user is a child a, that is, the current voiceprint information is the voiceprint information of the child a, the related accounts corresponding to the voiceprint information of the child a have an account big family and an account child a, at this time, the child a can select its own account, the account child a is a target account, at this time, the system analyzes the preset historical browsing data of its account based on the data recommendation model of the account child a, and outputs the determined video recommendation content to the home page for the child a to select; if the current audience is all members of the big family, the child A can select the big account family, and the big account family is the target account at the moment, the system analyzes preset historical browsing data of the big account family based on a data recommendation model of the big family, or analyzes preset historical browsing data of all sub-accounts in the big account family, namely analyzes preset historical browsing data of the child A, the child B, the father, the mom, the grandmaster and the milch and determines video recommendation content, and the video recommendation content is displayed on a home page for the current audience to select after being determined.
Illustratively, as shown in fig. 3, the multi-level account is a four-level account, and the tree structure thereof is divided into two branches, one branch includes a second-level account child, and a third-level account child a and a third-level account child B; the other account comprises a secondary account adult, a tertiary account dad mom and a tertiary account grandpa, a quaternary account dad, a quaternary account mom, a quaternary account grandpa and a quaternary account grandpa. If the identification result of the current voiceprint information is mom, the account family, the account adult, the account dadad mom and the account mom are contained in the relevant account corresponding to the voiceprint information, if the user mom is provided with a default account, and the default account is the account mom, the account mom is a target account, and the data recommendation model of the account mom analyzes according to preset historical browsing data of the account mom to output video recommendation content; if the target account selected by the user mom is the account dad mom, analyzing the data recommendation model of the account dad mom according to preset historical browsing data of the account dad mom to output video recommendation content; of course, the user mom may also select the account adult or the account family, whichever is selected, and the data recommendation model of the selected account is analyzed according to the preset historical browsing data corresponding to the selected account to output the video recommendation content. The preset historical browsing data corresponding to the account may be preset historical browsing data of the account, preset historical browsing data of the account and preset historical browsing data of a next-level sub-account of the account, preset historical browsing data of the account and preset historical browsing data of all sub-accounts of the account, or preset historical browsing data of some set sub-accounts, and may be set according to specific conditions during actual use.
It should be noted that, the video recommendation method may be executed by the television itself or by a server connected to the television, when the video recommendation method is executed by the server, the voiceprint information is acquired by an array microphone module of the television and uploaded to the server, after determining the video recommendation content, the server outputs the video recommendation content to the television, and the television outputs the video recommendation content to a display screen, so the embodiment does not limit an execution main body of the video recommendation method.
The technical scheme of the video recommendation method provided by the embodiment of the invention comprises the following steps: acquiring voiceprint information of a current user; if the voiceprint information of the current user is the voiceprint information of the existing account, determining a target account corresponding to the voiceprint information, wherein the existing account is a last-stage sub-account in the single-stage account or the multi-stage account; acquiring a data recommendation model of a target account; and the control data recommendation model determines video recommendation content based on preset historical browsing data corresponding to the target account and outputs the video recommendation content. The method has the advantages that accurate video recommendation service can be provided for users of the target account based on preset historical browsing data corresponding to the target account through a data recommendation model of the target account; the account is enabled through the voiceprint information, so that the safety of the account and the convenience of enabling the account can be improved, and the user experience is improved.
Example two
Fig. 4 is a flowchart of a video recommendation method according to a second embodiment of the present invention. On the basis of the embodiment, the embodiment of the invention adds the steps of an account creating method. As shown in fig. 4, the account creation method of the present embodiment includes:
and S100, acquiring voiceprint information of the current user.
And S1011, if the voiceprint information of the current user is not the voiceprint information of the existing account, outputting prompting information for creating the account.
If the voiceprint information of the current user is not the voiceprint information of the existing account, the current user can watch the television video in a non-video recommendation mode, if the recommendation mode is used, the account needs to be created, and at the moment, the television system can automatically output prompt information for creating the account so that the user can create the account.
It should be noted that the voiceprint information in this embodiment is not limited to creation and activation of a video recommendation account, and may also be used in aspects such as television wakeup, and may be set according to specific situations when actually used.
And S1012, if an account creating instruction is received, creating a new account associated with the voiceprint information, wherein the new account is configured with a data recommendation model.
And after receiving an account creating instruction, the television system creates a new account for managing the voiceprint information, and the new account is configured with a data recommendation model. The new account can be started through the voiceprint information, and the user of the new account can be identified through the voiceprint information and can also be named according to the preference of the user.
And S1013, initializing a data recommendation model of the current account according to the browsing address of the current user for logging in for the first time.
In order to improve the accuracy of video recommendation, the present embodiment sets a data recommendation model for each account, and the data recommendation model is updated along with the update of the preset historical browsing data of the corresponding account. Then, for a newly created account, the data recommendation model is initialized through the browsing data of the account logged in for the first time, so that the accuracy of video recommendation when the account logs in for the next time is improved.
And S102, if the voiceprint information of the current user is the voiceprint information of the existing account, determining the target account corresponding to the voiceprint information, wherein the existing account is the last-stage sub-account in the single-stage account or the multi-stage account.
And S104, acquiring a data recommendation model of the target account.
S106, the control data recommendation model determines video recommendation content based on preset historical browsing data corresponding to the target account.
And S108, outputting the video recommendation content.
The embodiment of the invention creates a new account by using the voiceprint information, ensures the safety of the account by the biological identification and simplifies the account starting process; by setting the data recommendation model for each account, the accuracy of video recommendation can be improved, accurate recommendation is realized, and user experience is improved.
EXAMPLE III
Fig. 5 is a block diagram of a video recommendation apparatus according to a third embodiment of the present invention. The apparatus is used for executing the video recommendation method provided in any of the above embodiments, and the apparatus may be implemented by software or hardware. As shown in fig. 5, the apparatus includes:
the information acquisition module 11 is configured to acquire voiceprint information of a current user;
a target account determining module 12, configured to determine a target account corresponding to voiceprint information if the voiceprint information of the current user is voiceprint information of an existing account, where the existing account is a last-level sub-account in a single-level account or a multi-level account;
the model obtaining module 13 is configured to obtain a data recommendation model of the target account;
the recommending module 14 is configured to control the data recommending module to determine video recommended content based on preset historical browsing data corresponding to the target account;
and the output module 15 is configured to output the video recommendation content.
According to the technical scheme of the video recommendation device provided by the embodiment of the invention, voiceprint information of a current user is acquired through the information acquisition module; determining a target account corresponding to the voiceprint information by a target account determination module if the voiceprint information of the current user is the voiceprint information of an existing account, wherein the existing account is a last-stage sub-account in a single-stage account or a multi-stage account; acquiring a data recommendation model of a target account through a model acquisition module; determining video recommendation content based on preset historical browsing data corresponding to the target account by using a recommendation module to control a data recommendation model; and outputting the video recommendation content through an output module. The method has the advantages that accurate video recommendation service can be provided for users of the target account based on preset historical browsing data corresponding to the target account through a data recommendation model of the target account; the account is enabled through the voiceprint information, so that the safety of the account and the convenience of enabling the account can be improved, and the user experience is improved.
The video recommendation device provided by the embodiment of the invention can execute the video recommendation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 6 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, as shown in fig. 6, the apparatus includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of the processors 201 in the device may be one or more, and one processor 201 is taken as an example in fig. 6; the processor 201, the memory 202, the input device 203 and the output device 204 in the apparatus may be connected by a bus or other means, for example, in fig. 6.
The memory 202, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the information obtaining module 11, the target account determining module 12, the model obtaining module 13, the recommending module 14, and the output module 15) corresponding to the video recommending method in the embodiment of the present invention. The processor 201 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory 202, that is, implements the video recommendation method described above.
The memory 202 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 202 may further include memory located remotely from the processor 201, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the apparatus.
The output device 204 may include a display device such as a display screen, for example, of a user terminal.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a video recommendation method, including:
acquiring voiceprint information of a current user;
if the voiceprint information of the current user is the voiceprint information of an existing account, determining a target account corresponding to the voiceprint information, wherein the existing account is a last-stage sub-account in a single-stage account or a multi-stage account;
acquiring a data recommendation model of the target account;
controlling the data recommendation model to determine video recommendation content based on preset historical browsing data corresponding to the target account;
and outputting the video recommendation content.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the video recommendation method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute the video recommendation method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the video recommendation apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.