Disclosure of Invention
The embodiment of the disclosure provides a customized tactical recommendation method, a customized tactical recommendation device, computer equipment and a storage medium. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In a first aspect, an embodiment of the present disclosure provides a customized speech recommendation method, including:
acquiring first data for representing user characteristics and second data of a user question;
respectively inputting the first data and the second data into a preset recommendation model to obtain product data matched with user preference;
and inputting the first data, the second data and the product data into a preset phonetics model to generate a customized phonetics text.
In one embodiment, before the first data and the second data are respectively input into the preset recommendation model, the method further includes:
constructing a first training sample set according to the first data and the second data;
and training a recommendation model based on the first training sample set and the deep FM recommendation algorithm.
In one embodiment, training the recommendation model based on the first set of training samples and the deep fm recommendation algorithm includes:
and training the recommendation model by adopting a multi-task collaborative training mode.
In one embodiment, before inputting the first data, the second data and the product data into the preset conversational model, the method further comprises:
constructing a second training sample set according to the first data, the second data and the product data;
training the conversational model based on the second set of training samples and the Transformer model.
In one embodiment, further comprising: and training the recommendation model and the dialect model in a joint training mode.
In one embodiment, training the recommendation model and the conversational model by means of joint training comprises:
inputting the deep representation of the data of the recommendation model hidden layer into a speaking model;
the embedding vector of the dialogistic model is input into the recommendation model.
In one embodiment, after generating the customized phonemic text, further comprising:
customized verbal text is entered into the intelligent outbound system.
In a second aspect, an embodiment of the present disclosure provides a customized tactical recommendation apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first data for representing user characteristics and second data of a user question;
the recommendation module is used for respectively inputting the first data and the second data into a preset recommendation model to obtain product data matched with the user preference degree;
and the language-operation module is used for inputting the first data, the second data and the product data into a preset language-operation model to generate a customized language-operation text.
In a third aspect, the disclosed embodiments provide a computer device, including a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to perform the steps of the customized talk recommendation method provided in the above embodiments.
In a fourth aspect, embodiments of the present disclosure provide a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the customized dialog recommendation method provided by the above-described embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the customized language recommendation method provided by the embodiment of the disclosure, the first data representing the characteristics of the user and the second data representing the problems of the user can be combined to generate the product data matched with the preference degree of the user, the product matched with the interest of the user can be recommended for different users, and the customized language can be automatically generated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first field and algorithm determination module may be referred to as a second field and algorithm determination module, and similarly, a second field and algorithm determination module may be referred to as a first field and algorithm determination module, without departing from the scope of the present application.
Fig. 1 is a diagram illustrating an implementation environment of a customized talk recommendation method according to an exemplary embodiment, as shown in fig. 1, in which aserver 110 and aterminal 120 are included.
Theserver 110 is a customized speech recommendation device, such as a computer device used by a technician, and theserver 110 has a customized speech recommendation tool installed thereon. Theterminal 120 is installed with an application that needs to perform customized speech recommendation, when a customized speech needs to be recommended, a technician may send a request for recommending the customized speech at thecomputer device 110, where the request carries a request identifier, and thecomputer device 110 receives the request to obtain data information representing user characteristics stored in thecomputer device 110. And then generating a customized phonetics text by using the preset recommendation model and the preset phonetics model, and transmitting the customized phonetics text to the intelligent calling system on theterminal 120 to communicate with the user.
It should be noted that theterminal 120 and thecomputer device 110 may be, but are not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like. Thecomputer device 110 and theterminal 120 may be connected through bluetooth, USB (Universal Serial Bus), or other communication connection methods, which is not limited herein.
FIG. 2 is a diagram illustrating an internal structure of a computer device according to an exemplary embodiment. As shown in fig. 2, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions when executed by the processor can enable the processor to realize a customized tactical recommendation method. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a method of customizing a speech recommendation. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 2 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The customized literature recommendation method provided by the embodiments of the present application will be described in detail below with reference to fig. 3-5. The method may be implemented in dependence on a computer program, operable on a data transmission device based on the von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application.
Referring to fig. 3, a schematic flow chart of a customized speech recommendation method is provided in an embodiment of the present application, and as shown in fig. 3, the method in the embodiment of the present application may include the following steps:
s301, first data used for representing user characteristics and second data of user problems are obtained.
With the rapid development of computer technology, the marketing mode of the traditional insurance industry is gradually overturned, and in a typical telemarketing scene, the personnel in the seat usually cannot know the personal characteristics, the interests and hobbies of the client, the demand degree of the product to be marketed and the like. The blindly mass marketing is like a large sea fishing needle, and the advantages of the operation and the resources cannot be fully utilized.
Through the years of telemarketing and the accumulation of data information of online and offline sales, the insurance group can collect a large amount of evaluation information and feedback information of customers on marketing products. Meanwhile, the self information of the client can be stored in the system along with the signing of the insurance contract. By utilizing the data, independent marketing methods can be made for different customers, the customers are automatically marketed through the intelligent outbound system, and the privacy of the data can be guaranteed because the dialing of real seats is not involved.
Specifically, first data characterizing the user characteristics and second data of the user question stored in the system may be obtained, and in some possible implementations, the first data includes one or more of name information, age information, gender information, family member information, interested product information, and product demand level information of the user. The second data includes user feedback information on the purchased product and information on the product to be marketed.
By combining the information of the user and the information of the product to be marketed, the interested marketing product is pushed for the client, and the advantages of information resources are fully utilized.
S302, the first data and the second data are respectively input into a preset recommendation model, and product data matched with the user preference degree are obtained.
Further, before the first data and the second data are input into the preset recommendation model, training the recommendation model is further included.
Specifically, data screening is performed on the acquired first data and second data, data which is purchased by a product and has forward evaluation is recorded as an effective sample, and preprocessing is performed on the effective sample obtained after screening, including deleting or filling up abnormal data and missing data, so as to obtain corrected data.
And constructing a first training sample set according to the screened and preprocessed first data and second data, and training a recommendation model based on the constructed first training sample set and a recommendation algorithm. The common recommendation algorithms comprise an LR + GBDT recommendation algorithm, GBDT can be used for learning high-order nonlinear feature combination, LR is used for learning ID features, and the fusion has good effect, and a DeepFM recommendation algorithm, which uses a dense vector fusion factorization machine and a neural network to extract first-order features, uses the neural network to extract high-order features, and has good technical effect.
In some possible implementation manners, a recommendation model is trained based on a first training sample set and a deep fm recommendation algorithm, the recommendation model provided in the embodiment of the disclosure accesses deep characterization of data obtained by a hidden layer of the recommendation model into a dialectic model, and a multi-task collaborative training manner is adopted for training. The first task is to sequence the recommended tasks, and the loss function adopted is as follows:
wherein,
the deep characterization of the data obtained for the hidden layer,
a deep characterization of the data obtained for the positive sample,
and f can be used as a calculation process of a deep FM algorithm for the deep characterization of the data obtained by the negative sample.
The second task is the return transmission of the phonetics generation task of the phonetics model, and the adopted loss function is as follows:
wherein, yi,kRepresenting each word in the real recommended dialect, pi,kRepresenting the probabilities predicted by all words in the lexicon, the objective of the loss function is to make the resulting dialect as close as possible to the real one.
According to the method, the trained recommendation model is obtained, and the main body of the recommendation model is a recommendation model based on the content. And when performing conversational recommendation, inputting the first data and the second data corresponding to the user to be marketed into a recommendation model, and obtaining product data matched with the user preference according to the personal information of the user.
According to the steps, products matched with the interests of the users can be recommended for different users, and therefore the problem that different products cannot be marketed according to different users in the prior art is solved.
S303, inputting the first data, the second data and the product data into a preset phonetics model to generate a customized phonetics text.
Further, before inputting the first data, the second data and the product data into the dialogistic model, training the dialogistic model is further included.
Specifically, a second training sample set is constructed from the first data, the second data and the product data, and the conversational model is trained based on the second training sample set and the conversational algorithm. Commonly used dialoging algorithms include RNN algorithms and LSTM algorithms, both of which use text sequences as training samples to learn word-to-word associations, thereby yielding the ability to generate dialogies.
In some possible implementation manners, the jargon model can be trained through a transformer model, the transformer model breaks through the limitation that the RNN model cannot calculate in parallel, the operation number required for calculating the association between two positions does not increase along with the distance, and more importantly, the transformer model applies an attention mechanism to better focus on important contents in the text.
The conversational model is trained by a task-independent generation method, and the loss function of the conversational model is the same as the loss function in step S302, and is:
wherein, yi,kRepresenting each word in the real recommended dialect, pi,kRepresenting the probabilities predicted by all words in the lexicon, the objective of the loss function is to make the resulting dialect as close as possible to the real one.
In some possible implementations, the conversational model and the recommendation model generate the customized conversational language by a joint training and joint prediction mode. Specifically, in the training process of the recommendation model, an embedded vector in the dialect model is introduced as an additional feature, and in the training process of the dialect model, a vector of a high-dimensional hidden layer of the recommendation model is introduced as a representation of a client and a product to be recommended, so that the generated dialect can be adjusted in a self-adaptive manner and better accords with a real dialogue scene.
And according to the trained speech model, a customized speech text can be obtained, and the generated customized speech can improve the interest of the user and has stronger attraction to the client.
Further, after generating the customized phonemic text, the customized phonemic text may be entered into the intelligent calling system.
The intelligent outbound system is a dialogue system for automatically recognizing and generating voice, and in some possible implementation modes, the intelligent outbound system is an intelligent telemarketing robot which generates outbound opening white according to received customized dialogue texts, and compared with the previous uniform opening white, the intelligent outbound opening white is more attractive to customers, and meanwhile, different products are recommended for the customers under different conditions to achieve the customized effect.
In some exemplary scenes, the intelligent telemarketing robot knows that the name of the user to be marketed is somebody in forest, sex male, interest and hobby are driving, and the demand degree on the car insurance is high according to the obtained customized dialect. Therefore, the calling-out field of the robot can be 'good for Mr. Lin, i is the safe of safe insurance, and the vehicle insurance of our company is recently acted, so that people can know the position conveniently'.
In some exemplary scenarios, the intelligent telemarketing robot knows that the name of the user to be marketed is somebody plum and sex male, the interest is financing, and the demand degree for financing is high according to the obtained customized terminology. Therefore, the out-calling field of the robot can be 'good for Mr. Li, i is safe for safety, and the financial affairs of our company are recently done to facilitate understanding'.
According to the steps, the intelligent outbound system can communicate with the user according to the received customized language text, provides interesting products for the user, realizes accurate marketing, greatly improves the purchase rate of the products, and can arouse the interest of the user through the customized language.
Optionally, the customized dialect recommendation method provided by the embodiment of the present disclosure may be applied to other industries such as an insurance industry, a house sales industry, a course sales industry, and the like, and the embodiment of the present disclosure is not particularly limited.
To facilitate understanding of the customized dialogies recommendation provided by the embodiments of the present application, reference is made to fig. 4. As shown in fig. 4, a customized dialog recommendation method includes:
s401, first data used for representing user characteristics and second data of the user problems are obtained.
S402, constructing a first training sample set according to the first data and the second data.
S403, training the recommendation model based on the first training sample set and the DeepFM recommendation algorithm.
S404, inputting the first data and the second data into a preset recommendation model respectively to obtain product data matched with user preference.
S405, constructing a second training sample set according to the first data, the second data and the product data.
S406, training the speaking model based on the second training sample set and the Transformer model.
S407, inputting the first data, the second data and the product data into a preset phonetics model to generate a customized phonetics text.
To facilitate understanding of the customized literature recommendation provided by embodiments of the present application, reference is made to fig. 5. As shown in fig. 5, a customized conversational recommendation method, which uses a hierarchical modeling method, includes:
the data layer stores a large amount of customer information including name information, age information, gender information, family address information, family member information, interesting product information and the like of customers, stores the information of purchased products of the customers, and also stores the information of products to be marketed, and the evaluation feedback information of the products. And screening and preprocessing the data in the data layer to obtain first data and second data representing the user characteristics. The first data and the second data are input into the model layer.
And the model layer comprises a recommendation model and a conversational model, and the recommendation model and the conversational model are trained according to the received first data and second data, and the conversational model and the recommendation model adopt a joint training and joint prediction mode to generate a customized conversational operation. Specifically, in the training process of the recommendation model, an embedded vector in the dialect model is introduced as an extra feature, and in the training process of the dialect model, a vector of a high-dimensional hidden layer of the recommendation model is introduced as the representation of a client and a product to be recommended, so that the generated dialect can be adaptively adjusted. And inputting the obtained dialect text into the application layer.
And the application layer inputs the received dialect text into the intelligent outbound system to generate a dialogue, communicates with the user and recommends an interested product for the user.
The customized dialect recommendation method provided by the embodiment of the disclosure can recommend products matched with the interests of users for different users, and automatically generate customized dialects, and the generated customized dialects can improve the interests of the users and have stronger attractiveness to the customers, so that accurate marketing is realized, and the purchase rate of the products is improved.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 6, a schematic structural diagram of a customized tactical recommendation apparatus according to an exemplary embodiment of the present invention is shown. As shown in fig. 6, the customized tactical recommendation apparatus may be integrated in thecomputer device 110, and specifically may include an obtainingmodule 601, a recommendingmodule 602, and atactical module 603.
An obtainingmodule 601, configured to obtain first data used for characterizing a user characteristic and second data of a user question;
therecommendation module 602 is configured to input the first data and the second data into a preset recommendation model respectively to obtain product data matched with the user preference;
thephonetics module 603 is configured to input the first data, the second data, and the product data into a preset phonetics model, and generate a customized phonetics text.
In one embodiment, as shown in fig. 7, the customized tactical recommendation apparatus may further include afirst training module 604 for constructing a first training sample set from the first data and the second data for training the recommendation model based on the first training sample set and the deep fm recommendation algorithm.
In one embodiment, thefirst training module 604 is further configured to train the recommendation model in a multi-task collaborative training manner.
In one embodiment, the customized dialog recommendation device may further include asecond training module 605 for constructing a second training sample set from the first data, the second data, and the product data for training the dialog model based on the second training sample set and the Transformer model.
In one embodiment, thefirst training module 604 and thesecond training module 605 are also used to train the recommendation model and the conversational model by way of joint training.
In one embodiment, thefirst training module 604 and thesecond training module 605 are specifically configured to input deep representations of data of the recommendation model hidden layers into the conversational model; the embedding vector of the dialogistic model is input into the recommendation model.
In one embodiment, the customized phonetics recommendation device may also include an intelligentoutbound module 606 for entering customized phonetics text into the intelligent outbound system.
Based on the customized language recommendation device provided by the embodiment of the disclosure, products matched with the interests of users can be recommended for different users, and customized languages are automatically generated.
It should be noted that, when the customized speech recommendation apparatus provided in the foregoing embodiment executes the customized speech recommendation method, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the customized literature recommendation device provided in the above embodiments and the customized literature recommendation method embodiment belong to the same concept, and the implementation process is detailed in the method embodiment, which is not described herein again.
In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring first data for representing user characteristics and second data of a user question; respectively inputting the first data and the second data into a preset recommendation model to obtain product data matched with user preference; and inputting the first data, the second data and the product data into a preset phonetics model to generate a customized phonetics text.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: before the first data and the second data are respectively input into the preset recommendation model, the method further comprises the following steps: constructing a first training sample set according to the first data and the second data; and training a recommendation model based on the first training sample set and the deep FM recommendation algorithm.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: and training the recommendation model by adopting a multi-task collaborative training mode.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: before the first data, the second data and the product data are all input into the preset conversational model, the method further comprises the following steps: constructing a second training sample set according to the first data, the second data and the product data; training the conversational model based on the second set of training samples and the Transformer model.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: and training the recommendation model and the dialect model in a joint training mode.
In one embodiment, when training the recommendation model and the conversational model by joint training, the processor when executing the computer readable instructions further performs the steps of: inputting the deep representation of the data of the recommendation model hidden layer into a speaking model; the embedding vector of the dialogistic model is input into the recommendation model.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: customized verbal text is entered into the intelligent outbound system.
In one embodiment, a storage medium is provided that stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of: acquiring first data for representing user characteristics and second data of a user question; respectively inputting the first data and the second data into a preset recommendation model to obtain product data matched with user preference; and inputting the first data, the second data and the product data into a preset phonetics model to generate a customized phonetics text.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: before the first data and the second data are respectively input into the preset recommendation model, the method further comprises the following steps: constructing a first training sample set according to the first data and the second data; and training a recommendation model based on the first training sample set and the deep FM recommendation algorithm.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: and training the recommendation model by adopting a multi-task collaborative training mode.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: before the first data, the second data and the product data are all input into the preset conversational model, the method further comprises the following steps: constructing a second training sample set according to the first data, the second data and the product data; training the conversational model based on the second set of training samples and the Transformer model.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: and training the recommendation model and the dialect model in a joint training mode.
In one embodiment, when training the recommendation model and the conversational model by joint training, the processor when executing the computer readable instructions further performs the steps of: inputting the deep representation of the data of the recommendation model hidden layer into a speaking model; the embedding vector of the dialogistic model is input into the recommendation model.
In one embodiment, the processor, when executing the computer readable instructions, further performs the steps of: customized verbal text is entered into the intelligent outbound system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.