Information recommendation-oriented task preference learning method and device
By generating structured representations of task instructions and embedded learning, task preference features are extracted, which solves the problem of low efficiency of task preference modeling in the existing technology and achieves efficient and accurate recommendations of information recommendation systems.
Patent Information
- Application Number
- CN202410875530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology has problems of low data statistical analysis efficiency and insufficient abstraction in task preference modeling, which makes it difficult for the information recommendation system to extract regular preference information, affecting recommendation efficiency and quality.
By generating a structured task representation of task instructions, mining key task features, and combining embedding learning to obtain status keywords, the preference learning of task instructions and status information is realized, status keywords with high matching degree are screened, and a target status information label set is generated.
It improves the efficiency and quality of information recommendation, improves the cost and quality defects in task preference modeling, and provides an accurate recommendation basis for the information recommendation system.
Smart Images

Figure CN118733882A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of preference learning technology, and in particular to a task preference learning method and device for information recommendation. Background Art
[0002] Preference learning is an important task of information recommendation system, which aims to obtain the preference differences of specific users for the characteristics of recommended objects by mining historical data. Information recommendation system can use the results of user preference learning to recommend objects such as movies, songs and commodities to users in a targeted manner; information recommendation system can learn the preference differences of different task instructions for state information from the historical records of state information selected by task planners when they receive different task instructions, and use the corresponding preference learning results to recommend state information to task planners based on task instructions, so as to reduce the workload of task planners and improve the efficiency of task planning.
[0003] The method of learning user preferences is already very mature. By analyzing the user's personal basic information and historical behavior records, the user's preferences can be fully modeled. However, there is still a lack of effective methods for learning preferences for task instructions. The traditional task preference modeling method generally performs data statistical analysis on the historical selection records of information recommendation of state information. Although this method can intuitively reflect the pairing of "state information-task instructions" in the historical selection records of information recommendation, it does not summarize and extract the task preferences on a statistical basis, making it difficult for the preference learning results to be directly used by the information recommendation system. Moreover, when faced with massive state information and task instructions, the data statistical analysis method has the problems of low processing efficiency and more intuitiveness than abstraction. The regular preference information required by the information recommendation system is difficult to extract, which seriously affects the efficiency and quality of state information recommendation.
[0004] In view of this, overcoming the defects of the prior art is an urgent problem to be solved in the field of this technology. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a task preference learning method and device for information recommendation, the purpose of which is to mine task features that play a key role in selecting state information, achieve the matching of the overall preference representation of task instructions and the preference keyword representation of state information, improve the quality and processing efficiency of preference learning for task instructions, effectively improve the cost and quality defects of the prior art in task preference modeling, and solve the problem that preference learning results are difficult to be directly used by information recommendation systems.
[0006] The present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a task preference learning method for information recommendation, comprising:
[0008] For the task instructions in the information recommendation history selection record, a structured task representation of the task instructions is generated; the state information in the information recommendation history selection record is clustered to obtain a plurality of categories of state information sets; for the structured task representations of different tasks, the maximum semantic fluctuation of each task element on the structured task representation of the task instructions of the state information sets of each category is calculated; wherein the structured task representation includes a plurality of task elements, and the plurality of task elements include a task type;
[0009] According to the maximum semantic fluctuation, the element sensitivity of each task element is calculated; the element sensitivity of the task instructions on the state information set of the same category is aggregated to obtain the feature sensitivity of the task instructions on the state information set of the corresponding category; the feature sensitivity of each type of task instructions on different state information set categories is aggregated, and multiple key task features of each task type are obtained according to the aggregated feature sensitivity;
[0010] Taking the average value of the element sensitivity to the state information set of each category as the average sensitivity of the key task features of different task types; generating an overall preference representation corresponding to the structured task representation according to the structured task representation, the multiple key task features and the average sensitivity;
[0011] Extract state keywords from the state information; fuse the state keywords for embedding learning based on the key task features and the corresponding average sensitivity of the task type corresponding to the state information to obtain the task preference keywords of the state information;
[0012] According to the task preference keywords and the overall preference representation, the matching degree between the state information and the task instruction is determined, and the state keywords corresponding to the state information are screened as the preference state information tag set corresponding to the task instruction.
[0013] In a second aspect, the present invention further provides a task preference learning device for information recommendation, which is used to implement the task preference learning method for information recommendation according to the first aspect, and the task preference learning device for information recommendation comprises:
[0014] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the task preference learning method for information recommendation described in the first aspect.
[0015] In a third aspect, the present invention further provides a non-volatile computer storage medium storing computer executable instructions, which are executed by one or more processors to complete the task preference learning method for information recommendation described in the first aspect.
[0016] Different from the prior art, the present invention has at least the following beneficial effects:
[0017] The present invention generates a structured task representation of task instructions, mines a set of key task features that play a key role in the process of selecting state information, combines the key task features of each task type, generates corresponding state keywords, and further screens state keywords with a high degree of matching with the corresponding key task features based on the preference information obtained from the embedded learning of task instructions and state information texts, and finally obtains a target state information label set to achieve preference learning for state information of task instructions. The present invention can extract the regular preference information (i.e., the target state information label set) required by the information recommendation system, effectively improve the efficiency and quality of information recommendation, improve the cost and quality defects of the prior art in task preference modeling, and as a user modeling method, provide a working basis for accurate recommendation of information recommendation systems for task instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 It is a flowchart of a task preference learning method for information recommendation provided by an embodiment of the present invention;
[0020] Figure 2 is a flow chart of step 10 provided in an embodiment of the present invention;
[0021] Figure 3 is a flowchart of step 103 provided by an embodiment of the present invention;
[0022] Figure 4 is a flow chart of step 20 provided in an embodiment of the present invention;
[0023] Figure 5 is a flow chart of step 202 provided in an embodiment of the present invention;
[0024] Figure 6 is a flow chart of step 203 provided by an embodiment of the present invention;
[0025] Figure 7 is a flow chart of step 50 provided in an embodiment of the present invention;
[0026] Figure 8 It is a schematic diagram of the overall process of a task preference learning method for information recommendation provided by an embodiment of the present invention;
[0027] Fig. 9 It is a schematic diagram of the architecture of a task preference learning device for information recommendation provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0029] In the description of the present invention, the terms "inside", "outside", "longitudinal", "lateral", "upper", "lower", "top", "bottom" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation. Therefore, they should not be understood as limitations on the present invention.
[0030] The terms "first", "second", etc. in the present invention are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0031] In the present application, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium.
[0032] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0033] Embodiment 1:
[0034] In order to solve the above problems, the first embodiment of the present invention provides a task preference learning method for information recommendation, such as Figure 1 Specifically, it includes:
[0035] Step 10: For the task instructions in the information recommendation history selection record, generate a structured task representation of the task instructions; cluster the state information in the information recommendation history selection record to obtain multiple categories of state information sets; for the structured task representations of different tasks, calculate the maximum semantic fluctuation of each task element on the structured task representation of the task instructions that select the state information sets of each category; wherein the structured task representation includes multiple task elements, and the multiple task elements include a task type.
[0036] The information recommendation history selection record includes task instructions and corresponding status information; both the task instructions and the status information are in text form. The task type is the core word in the task instruction that can represent the task type.
[0037] In an optional embodiment, a large number of collected task instructions can be used as an extraction template with a task nine-tuple structure. The values corresponding to the task elements can be identified and extracted by fusing the conditional random fields (CRF) model associated with the tasks to form a structured task representation "Task = <task ID, task type, task subject, task-related resource set, task indicator set, task action, task object, task constraint conditions, task start time>".
[0038] For example, for a task instruction: "Task No. 1: Order UAV No. 5 to transport the supply resources to the port with the cooperation of the ground control center, depart at 7:00 on the 20th, ensure that the transportation is completed within 18:00, and maintain communication with UAV No. 4", the structured task generated based on it is expressed as: "Task = <Task ID: No. 1, Task type: Transportation task, Task subject: UAV No. 5, Task related resource set: Ground control center, Task indicator set: Within 18:00, Task action: Transportation, Task object: Supply resources, Task constraint: The port and UAV No. 4 maintain communication, Task start time: 7:00 on the 20th>"; Among them, when the task element is "Task ID", the corresponding value is "No. 1"; when the task element is "Task type", the corresponding value is "Transportation task", and so on.
[0039] Step 20: Calculate the element sensitivity of each of the task elements based on the maximum semantic fluctuation; Aggregate the element sensitivity of task instructions on the same category of state information sets to obtain the feature sensitivity of task instructions on the corresponding category of state information sets; Aggregate the feature sensitivity of each type of task instructions on different categories of state information sets, and obtain multiple key task features of each task type based on the aggregated feature sensitivity.
[0040] Based on the extraction of task elements, the embodiment of the present invention classifies the status information text, calculates the feature sensitivity according to the fluctuation range (i.e., the maximum semantic fluctuation) of the task element corresponding to the information recommendation history selection record of each type of status information text, and obtains the key task feature set of each type of task based on the feature sensitivity. Among them, the element sensitivity is related to the task type and the type of the status information set; the feature sensitivity is only related to the task type, and the feature sensitivity is only used to generate key task features.
[0041] Step 30: Taking the average value of the element sensitivity to the state information set of each category as the average sensitivity of the key task features of different task types; generating an overall preference representation corresponding to the structured task representation according to the structured task representation, the multiple key task features and the average sensitivity.
[0042] The average sensitivity is generated by the element sensitivity, and the average sensitivity is only related to the type of the state information set.
[0043] Step 40: extracting state keywords from the state information; and fusing the state keywords for embedding learning based on the key task features of the task type corresponding to the state information and the corresponding average sensitivity to obtain the task preference keywords of the state information.
[0044] The embodiment of the present invention uses key task features that have an interaction history with status information, that is, according to the correspondence between status information text and task instructions in the information recommendation history selection record, based on the correlation information between the two, to embed and learn the status information text and task instructions respectively, and obtain multiple groups of status keywords, overall preference features and corresponding task preference keywords; among which, the task preference keywords are embedded representations of key task features with preference information.
[0045] Step 50: Determine the matching degree between the state information and the task instruction according to the task preference keywords and the overall preference representation, and select the state keywords corresponding to the state information as the preference state information tag set corresponding to the task instruction.
[0046] For each key task feature, the matching degree between the key task feature and the status keyword is calculated, and the status keyword is screened based on the corresponding key task feature, and finally a set of status information labels preferred by the task instruction is obtained.
[0047] The present invention generates a structured task representation of task instructions, mines a set of key task features that play a key role in the process of selecting state information, combines the key task features of each task type, generates corresponding state keywords, and further screens state keywords with a high degree of matching with the corresponding key task features based on the preference information obtained from the embedded learning of task instructions and state information texts, and finally obtains a target state information label set to achieve preference learning for state information of task instructions. The present invention can extract the regular preference information (i.e., the target state information label set) required by the information recommendation system, effectively improve the efficiency and quality of information recommendation, improve the cost and quality defects of the prior art in task preference modeling, and as a user modeling method, provide a working basis for accurate recommendation of information recommendation systems for task instructions.
[0048] Embodiment 2:
[0049] The following describes in detail some steps of the task preference learning method for information recommendation according to an embodiment of the present invention, which are as follows:
[0050] The step 10 comprises:
[0051] The information recommendation history selection record is a combination of task instructions and state information. One task instruction can select multiple state information, and one state information can also be selected by multiple task instructions.
[0052] Generate a structured task representation of the task instruction; task instruction structuring includes task instruction type identification and task element extraction; design a task nine-tuple template, the task nine-tuple template is: task = <task ID, task type, task subject, task related resource set, task indicator set, task action, task object, task constraint condition, task start time>; form a text training set by segmenting the task instruction and marking it according to the task nine-tuple template; after the text training set is vectorized, train the initial statistical model to obtain a target statistical model for completing task instruction type identification and task element extraction, so as to complete task instruction type identification and task element extraction, and realize the conversion of task instructions into a structured task representation, the specific method is as follows:
[0053] For the task instruction x, the vectorized representation after word segmentation is: Where n means that there are n words in total after the task instruction x is segmented. The dimension of the vector corresponding to each word in is the same; After task instruction type identification and task element extraction, the corresponding task element labels are obtained as yx1, yx2, ...yx n , where yx b(b∈1,...n)∈{task ID, task type, task subject, task related resource set, task indicator set, task action, task object, task constraint condition, task start time, NULL}, NULL means Some words in will get empty labels, that is, they do not belong to any element in the task nine-tuple.
[0054] exist After removing the words with the label NULL, we get the element representation of the structured task representation corresponding to a task instruction. The corresponding task element labels are recorded as yxa1, yxa2, ..., yxa9 = task ID, task type, task subject, task related resource set, task indicator set, task action, task object, task constraint condition, task start time.
[0055] Denote as the structured task representation of task instruction x, where the task element label yxa2 is recorded as the task type, and the number of its label value types is the total number of task instruction classifications after passing the target statistical model. Suppose the total number of task instruction classifications is T, that is, the task type yxa2 has T values.
[0056] The semantic representation corresponding to the state information is learned to obtain a semantic representation vector of the state information; cluster analysis is performed on the semantic representation vector in the semantic space to divide the state information into Q types of state information sets to obtain a clustering result; wherein the clustering result is {{S1}, {S2}, ..., {S Q}},{S f} represents the f-th type of state information set, f∈(1, 2,..., Q).
[0057] For the t∈(1,2,...,T)th task instruction, select the historical records of the tth task instruction corresponding to the fth state information set in all the information recommendation history selection records to form a corresponding information recommendation history selection record, wherein the information recommendation history selection record refers to the tth task instruction and the corresponding fth state information set, and the structured task representation of the task instruction in the information recommendation history selection record is recorded as i represents the i-th record in the information recommendation history selection record, t represents that the task instruction is the t-th type of task instruction; according to the structured task representation, the maximum semantic fluctuation D of the t-th type of task instruction on the f-th type of state information set is calculated. tf .
[0058] According to the maximum semantic fluctuation D tf , calculate the structured task representation of the task instruction in the i-th record in the information recommendation history selection record The element sensitivity sen corresponding to each task elementtf1 ,sen tf2 ,...,sen tf9 According to the element sensitivity of the t-th task instruction, determine the key task feature set I of the t-th task instruction on the f-th state information set t (f) = {I tfm |m∈1,...9}; aggregate the key task features of the t-th task instruction on all Q-type state information sets to obtain the key task feature set It={I tj |j=1,...v t ,v t ≤9}, v t represents the number of key task features corresponding to the t-th task instruction, v t Less than or equal to 9.
[0059] Wherein, for the structured task representations of different task types, calculating the maximum semantic fluctuation of each task element on the structured task representations of the state information sets of each category comprises:
[0060] For the information recommendation history selection record, calculate the structured task representation of the task instructions in any two of the information recommendation history selection records and The semantic distance of each task element in ; the expression of the semantic distance is Among them, m represents the mth task element, u represents the uth information recommendation history selection record, p represents the pth information recommendation history selection record, and the task instructions in the uth information recommendation history selection record and the pth information recommendation history selection record are different.
[0061] Traverse u and p through the information recommendation history selection records, and record the largest The result is the maximum semantic fluctuation of the mth task element, which is taken as the maximum semantic fluctuation d of the mth task element in the information recommendation history selection record. tf (m); Aggregate the maximum semantic fluctuations of all 9 task elements in the structured task representation into D tf =(d tf (1),d tf (2),...,d tf (9)), is called the maximum semantic fluctuation set of the t-th task instruction on the f-th state information set.
[0062] The step 20 comprises:
[0063] According to the maximum semantic fluctuation set D tf, the structured task representation of the t-th task instruction in the i-th record in the historical selection record of the computational information recommendation The element sensitivity sen of each task element on the f-th type of state information set is tf1 ,sen tf2 ,...,sen tf9 ; Among them, the maximum semantic fluctuation set of the t-th task instruction is D tf =(d tf (1),d tf (2),...,d tf (9)), the expression of the element sensitivity of the mth element is max(d tf ) is the maximum semantic fluctuation set D of the t-th task instruction tf =(d tf (1),d tf (2),...,d tf (9)) the maximum value, min(d tf ) is the minimum value in the maximum semantic fluctuation set.
[0064] When the element sensitivity of the mth element is less than 0.5, the mth element is used as the key task feature of the tth task instruction on the fth state information set, and all key task features of the tth task instruction on the fth state information set are recorded as I t (f) = {I tfm |m∈1,...9}, the corresponding element sensitivity is sen tf ={sen tf (m)|m∈1,...9}, the value of m is less than or equal to 9.
[0065] By traversing 1, 2, ..., Q through f, we can obtain the intersection ∩I of the key task feature set of the t-th task instruction on all Q-type state information sets t (f) = {I tfm |m∈1,...9}, and take it as the key task feature set of the t-th task instruction, denoted as I t = {I tj |j=1,...v t ,v t ≤9}, v t represents the total number of key task features corresponding to the t-th task instruction, v t Less than or equal to 9.
[0066] In step 30, generating an overall preference representation corresponding to the structured task representation according to the structured task representation, the multiple key task features and the average sensitivity includes:
[0067] According to the key task feature set of the t-th task instruction, according to the element sensitivity of the key task feature corresponding to the t-th task instruction on the state information set of different categories, the average sensitivity of the key task feature is determined; for the key task feature set of the t-th task instruction Among them, I tj ∈I t , the average sensitivity of a key task feature is calculated as follows:
[0068] Let the t-th task instruction be the key task feature set on all Q-type state information sets, in f1,f2,...f F The key task feature sets on the F (F≤Q) types of state information all include key feature I tj , denoted as I t (f1),I t (f2),...I t (f F );I tj In each I t (f1),I t (f2),...I t (f F ) Corresponding element sensitivity Pick The average value of I tj The average sensitivity SEN t (j); for I t The same process is performed on each key task feature in the t-th task instruction to obtain the key task feature of the t-th task instruction The average sensitivity SEN t (1),SEN t (2),...,SEN t (v t ).
[0069] Based on the average sensitivity, the structured task representation is weighted and summed to obtain the overall preference representation of the task instruction, so as to achieve embedded learning of the task instruction; wherein the expression of the overall preference representation is: in, is the structured task representation of the t-th task instruction The characterization of task elements that are not mission-critical features, is the structured task representation of the t-th task instruction The characterization of the task elements that are key task features, SEN t (j) is the key mission feature I tj The corresponding average sensitivity.
[0070] The step 40 comprises:
[0071] According to the preset topic type and the preset number of words of each preset topic type, a topic result is obtained based on the state information word sequence, and the word with the largest distribution probability in the topic result is used as the state topic word corresponding to the state information;
[0072] Learn the semantic representation of the state keyword, and the semantic representation of the keyword corresponding to the state information s is recorded as The average sensitivity of the key task features corresponding to the task type of the task instruction of the state information s selected in all the information recommendation history selection records, the average value of the lexical representation of the corresponding task elements, and the semantic representation of the subject word of the state information s The task preference keywords are obtained to realize the embedding learning of the state information; wherein the expression of the task preference keywords is: is the semantic representation of the subject word of the state information s, r represents the number of task types in which the task instructions of the state information s are selected in all the historical selection records of the information recommendation; Indicates that among all the information recommendation history selection records, the key task feature I of the t-th task instruction of the state information s is selected tj The average of the lexical representations of the corresponding task elements in the structured task representation.
[0073] Embodiment 3:
[0074] In order to implement the task preference learning method for information recommendation according to the embodiment of the present invention, the process of generating a structured task representation based on a task instruction is first described below:
[0075] like Figure 2 As shown, in step 10, generating a structured task representation of the task instruction in the information recommendation history selection record includes:
[0076] Step 101: Segment the task instructions to generate a task vocabulary sequence; perform convolution pooling operations on the task vocabulary sequence to obtain a fixed-length feature representation.
[0077] It is known that the task instructions actually used in history and the selection of the status information text corresponding to the task instructions, the record containing the above two is called the information recommendation history selection record. For the task instructions in the information recommendation history selection record, a task tuple template is designed to structure the unstructured task to generate a structured task representation. In an optional embodiment, the structured processing can be performed according to the task nine-tuple template. A specific example of the task nine-tuple template is "task = <task ID, task type, task subject, task related resource set, task indicator set, task action, task object, task constraint condition, task start time>". In the following description of the embodiments of the present invention, this template is used as an example to illustrate the task preference learning method for information recommendation.
[0078] First, by means of manual statistics or annotation learning, refer to the above-mentioned task nine-tuple template to form a task instruction training set with corresponding nine-tuple labels. The task instructions in the task instruction training set are segmented by a word segmentation tool to obtain the task vocabulary sequence text=(word1, word2,...word n ), and then perform convolution pooling on each word in the task vocabulary sequence text to obtain a fixed-length feature representation Wherein, n is the number of words in the task vocabulary sequence; in an optional embodiment, the corresponding convolution pooling operation can be implemented by a layer of convolutional neural network.
[0079] For example, a mission instruction x is as follows: "Mission No. 1: Order UAV No. 5 to transport the rationed resources to the port with the cooperation of the ground control center, depart at 7:00 on the 20th, ensure that the transportation is completed before 18:00, and maintain communication with UAV No. 4."
[0080] The task instruction is segmented to obtain the task vocabulary sequence: "{Task No. 1, orders UAV No. 5, with the cooperation of the ground control center, to transport the allocated resources to the port at 7:00 on the 20th, and ensure that the transportation is completed before 18:00, and it is necessary to maintain communication with UAV No. 4}".
[0081] Perform convolution and pooling operations on the above task vocabulary sequences to obtain fixed-length feature representations of the above 21 vocabulary words:
[0082] Step 102: Perform cluster analysis on the fixed-length feature representations, and classify the fixed-length feature representations whose co-occurrence frequency of the included words is a preset number of classifications into the same task category; wherein each task category includes at least one task subcategory, and each task subcategory includes at least one fixed-length feature representation.
[0083] The preset number of categories is obtained by technicians in this field based on empirical analysis.
[0084] The embodiment of the present invention generates a structured task representation of a task instruction through a statistical model; in an optional embodiment, the statistical model may be a CRF model. The fixed-length feature representation and the vocabulary labels corresponding to the task instruction are input as training examples, and the initial statistical model is trained based on supervised learning to finally obtain a target statistical model; wherein each task element in the fixed-length feature representation is a vocabulary label, and the value corresponding to each task element is an input sample for training.
[0085] The task text nine-tuple structuring work of generating structured task representation is divided into two sub-tasks: task marker word recognition and classification, and corresponding task element extraction.
[0086] The goal of task marker word recognition and classification is to identify the core words that can represent the task type from the task instructions. The core words are usually verbs or nouns, and classify the tasks according to the representation of the core words to obtain the task type t.
[0087] For example, "The first tour group (the corresponding vocabulary label is 'task subject') will take a plane (the corresponding vocabulary label is 'task constraint') on the 15th (the corresponding vocabulary label is 'task start time') to return (the corresponding vocabulary label is 'task action') to Qingdao (the corresponding vocabulary label is 'task object')". According to the task elements, a verb "return" can be extracted as the core word, and the core word is used as the corresponding task type, and the task type is classified as a "transportation" task by the task type.
[0088] The goal of task element extraction is to represent fixed-length features. Labeling task elements That is, each word in the fixed-length feature representation is labeled with a corresponding word tag.
[0089] For example, five task elements and corresponding values can be extracted from the above specific example. The five task elements are "task subject", "task start time", "task constraints", "task action" and "task object", and the corresponding values are "first tour group", "15th", "by plane", "return" and "Qingdao".
[0090] To combine the above two sub-tasks for training, the task marker word recognition and classification can be transformed into an N+1 multi-classification learning process, where N is the task type summarized by experts (such as transportation tasks, reconnaissance tasks, strike tasks, patrol tasks, and annihilation tasks, etc.), and the remaining one is the NULL class (NULL class means that the word is not a core word); the task element extraction is transformed into an M+1 multi-classification learning process, where M is all the types of task elements. Taking the nine-tuple as an example, M is 9. In actual situations, the types of task elements of different tasks may be different. For example, some tasks may not have specific task objects. The nine-tuple can be fine-tuned according to the specific task type, and the fine-tuned M value is set according to the type of task element corresponding to the task.
[0091] The embodiment of the present invention takes into account the correlation between task elements of different task types. Before performing multi-task joint training, task instructions with a high frequency of word co-occurrence are classified into a large category through cluster analysis. The task subcategories under the same task category can be treated as multiple interrelated processes for multi-task joint training so as to be labeled simultaneously to achieve the purpose of strengthening the model.
[0092] Step 103: Take a preset number of fixed-length feature representations and corresponding vocabulary labels from each task subclass as training examples; train the training examples corresponding to the preset number of task subclasses, and learn the feature weight matrix that maximizes the objective function of the initial statistical model to obtain the target statistical model.
[0093] The preset number of training examples and the preset number of subclasses are obtained by those skilled in the art based on empirical analysis. When the preset number of training examples is n and the preset number of subclasses is T, the size of the feature weight matrix is n×T. For example, the training examples can be represented as {(x t,b ,y t,b ):b∈1,...,n}, t represents the task subclass.
[0094] The following takes the task instruction x as an example to illustrate the setting of training samples. The training samples are The details are as follows:
[0095] {(Task No. 1, Task ID), (Command, NULL), Drone No. 95, Task Body),
[0096] (In, NULL), (Ground Control Center, Mission Related Resources), (Cooperation, NULL),
[0097] (will, NULL), (allocation resources, task object), (transport, task action, task type),
[0098] (To, NULL), (Port, Task Constraints), (7:00 on the 20th, Task Start Time),
[0099] (departure, NULL), (guarantee, NULL), (in, NULL), (within 18:00, task indicator set),
[0100] (complete transport, NULL), (requires, NULL), (with, NULL),
[0101] (UAV 4, mission constraints), (maintain communication, mission constraints)}.
[0102] In multi-task joint training, fixed-length feature representation is used based on the co-occurrence frequency of words. It is possible that other tasks including the above 21 words can be classified into one task category for joint training. For example, the number of subtypes of the training tasks to be carried out simultaneously is 3 (i.e., the preset number of subtypes T = 3), and the other two categories and the fixed-length feature representation The training examples that are classified into a task category are The first 15 training examples are fixed for training (that is, the preset number of training examples n is 15, if there are less than 15 words, the insufficient words are represented by empty labels), and the training example matrix D is formed 15×3 for:
[0103]
[0104]
[0105] According to the above training of the initial statistical model, learn the feature weight matrix W that maximizes the objective function of the initial statistical model 15×3 .
[0106] Step 104: input the fixed-length feature representation into the target statistical model to obtain corresponding vocabulary tags and task types; remove task elements whose task elements are empty in the fixed-length feature representation to obtain a structured task representation.
[0107] The trained target statistical model can realize input fixed-length feature representation, output corresponding structured task representation (i.e., can realize task element extraction), and task type (i.e., can realize task marker word recognition and classification).
[0108] The embodiment of the present invention utilizes the target statistical model to filter out valid words in the task instructions.
[0109] For example, since the above training examples In the example, there are corresponding values of "command", "in", "cooperation", "will", "to", "departure", "guarantee", "in", "complete transportation", "need" and "with" whose task elements are empty, so from the corresponding fixed-length feature representation By removing these words from the task, a structured task representation is obtained according to the task nine-tuple structure, specifically: "Task = <Task ID: No. 1, Task type: Transport task, Task subject: UAV No. 5, Task related resource set: Ground control center, Task indicator set: Within 18:00, Task action: Transport, Task object: Allocation of resources, Task constraint: Port, UAV No. 4 maintains communication, Task start time: 7:00 on the 20th>".
[0110] The following is an explanation of the process of training the initial statistical model:
[0111] like Figure 3 As shown, in step 103, the training samples corresponding to the task subclasses with the preset number of subclasses are trained to learn the feature weight matrix that maximizes the objective function of the initial statistical model, including:
[0112] Step 1031: traverse the training examples and calculate the feature weights w of the training examples according to the objective function k ; Wherein, the feature weight matrix includes at least one feature weight w k .
[0113] Among them, w k Represents the feature weight corresponding to the training example.
[0114] Based on the goal of learning the feature weight matrix that maximizes the objective function, the original objective function is as follows:
[0115]
[0116] Among them, Likehood(W,D)=∑ k l(w k ,D) is the sum of the cumulative probabilities of the recognition results of all training examples.
[0117]
[0118] The original objective function is sorted out to finally form an objective function; wherein the expression of the objective function is: k′ represents the training example corresponding to another task subclass, α k.k' represents a variable that measures the degree of association between two task subclasses, dr represents the position of the vocabulary in the training sample, σ is the regularization parameter, and l k' (dr,w k )=logP(yk',dr |x k',dr ,w k ), P(y k',dr |x k',dr ,w k ) is the vocabulary label y of task subclass k′ k',dr Vocabulary x relative to task subclass k′ k',dr and the feature weight w of task subclass k k probability.
[0119] Step 1032: Update the correlation matrix A using a preset kernel function k,k′ ; Wherein, the correlation matrix A k,k′ is the correlation matrix between task subclass k and another task subclass k′, A k,k′ =[α k,k′ ].
[0120] Step 1033: Based on the correlation matrix A k,k′ and the current value of the objective function, update the feature weight w k .
[0121] Step 1034: the above process is iterated repeatedly until the parameters of the initial statistical model converge to obtain the target statistical model.
[0122] The embodiment of the present invention adopts a heuristic algorithm to solve the correlation matrix A between tasks. k,k′ , and an alternating method is used to optimize the model's feature weights w k ; A specific example of a training process is as follows:
[0123]
[0124] After obtaining the structured task representation of the task instruction, the embodiment of the present invention continues to process the status information text corresponding to the task instruction to mine the key task features of each task type, such as Figure 4 As shown in Figure 2, the process of obtaining key task features is as follows:
[0125] Step 201: learning the overall semantic representation of the state vocabulary sequence corresponding to the state information text to obtain a semantic representation vector; performing cluster analysis on the semantic representation vector in the semantic space, dividing the state information text into Q categories, and obtaining a clustering result; wherein the clustering result is {{S1}, {S2}, ..., {S Q}},{S f} represents the f-th type of state information set, f∈(1, 2,..., Q).
[0126] The embodiment of the present invention adopts an unsupervised learning method and uses a clustering analysis algorithm to classify the state information text after word segmentation; the clustering analysis algorithm is obtained by technical personnel in this field based on specific usage scenarios and experience analysis, and is not limited here.
[0127] Step 202: Select records based on the clustering results and the information recommendation history, match the f-th state information set and the structured task representation, and generate a historical record representation; based on the historical record representation, obtain the maximum semantic fluctuation set corresponding to the f-th state information set.
[0128] After completing the clustering of the state vocabulary sequence, the state information set corresponding to the same information recommendation history selection record and the structured task representation are matched one by one to obtain the corresponding historical record representation Among them, i represents the i-th information recommendation historical selection record of this type of task, represents the structured task representation corresponding to the task instruction in the historical selection record of the information recommendation; f represents the set of the fth category of state information; The mth task element in the i-th information recommendation history selection record of a certain type of task is represented, {m∈1, ..., 9}, and the number of tuples can also be adjusted according to the specific task type. In the embodiments of the present invention, nine tuples are taken as an example.
[0129] For example, based on the generated structured task representation, if the task instruction x has selected "Port wind force level 2, suitable for landing" in the fth category of situation information in the information recommendation history selection record of the transportation task, the corresponding historical record is represented as: {Task ID: No. 1, Task type: Transportation task, Task subject: UAV No. 5, Task related resources: Ground control center, Task indicators: within 18:00, Task object: Allocation of resources, Task constraints: Port, UAV No. 4 maintains communication, Task start time: 7:00 on the 20th, "Port wind force level 2, suitable for landing" belongs to the fth category of situation information}.
[0130] Then in {S f} Fixed case, based on historical records For this type of status information, determine the task features corresponding to the task instructions that select this type of status information, calculate the maximum semantic fluctuation of the corresponding task features, and obtain the maximum semantic fluctuation set, so as to extract various key task features on this basis in the future.
[0131] Step 203: Calculate the element sensitivity of the mth task element in the structured task representation to select the fth type of state information set according to the maximum semantic fluctuation set; determine the key task feature set according to the element sensitivity.
[0132] The present invention combines the structured task representation of task instructions and the maximum semantic fluctuation set of various state information texts to mine highly sensitive task features (i.e., key task features) that play a key role in the process of selecting state information, so as to subsequently learn task preferences on this basis and realize preference learning for state information of task instructions. The process of obtaining the maximum semantic fluctuation set is described below:
[0133] like Figure 5 As shown, in step 202, the maximum semantic fluctuation set corresponding to the f-th type of state information set is obtained according to the historical record, including:
[0134] Step 221: Calculate the mth task element representation in any two historical records (item u and item p) of the fth category and The semantic distance of Wherein, u represents the u-th historical record, p represents the p-th historical record, and u≠p.
[0135] Step 2022: taking the maximum semantic distance corresponding to the m-th task element as the maximum semantic fluctuation of the m-th task element in the historical record representation; combining multiple maximum semantic fluctuations into a maximum semantic fluctuation set.
[0136] History-based representation The maximum semantic volatility of each tuple is defined as For a type of state information, a specific calculation process example of the maximum semantic fluctuation of the task feature corresponding to the task instruction of this type of state information is selected as follows:
[0137]
[0138] After the above process, the state information {S f For example, the maximum semantic fluctuation of each element (i.e., each task feature) in the nine-tuple in the historical selection record of information recommendation is expressed as D f =(d f (1),d f (2),...,d f (9)) indicates that every d f (·) represents the maximum span of the task feature in the semantic space in the historical selection record of information recommendation.
[0139] For example, for the fth type of state information set, the maximum semantic fluctuation calculation process of the task instructions that select this type of state information is as follows:
[0140] Taking task instruction u as an example, in the information recommendation history selection record of selecting the transportation task, there is another task instruction p that also selects the fth type of state information. Let the structured task representation of task instruction p be The structured task representation for task instruction u calculate Among them, the structured task represents It is “<Task ID: 1, Task type: Transport task, Task subject: UAV No. 5, Task related resources: Ground control center, Task indicator: within 18:00, Task object: Allocation of resources, Task constraint: Port, UAV No. 4 maintains communication, Task start time: 7:00 on the 20th>”.
[0141] Task instruction p traverses all task instructions that selected the f-th type of state information in the information recommendation history selection record, and records all semantic distances for each tuple m = 1, ..., 9 The maximum value among the two, we can get the maximum semantic fluctuation degree d of the task nine-tuple of each task instruction matching with the f-th type of state information in the information recommendation history selection record. f (1),d f (2),...,d f (9). Take the maximum semantic fluctuation d f (1),d f (2),...,d f The maximum value of (9) is denoted as max(d f ).
[0142] The following is an explanation of the process of extracting the key task feature set:
[0143] First, the calculation method of element sensitivity designed based on the maximum semantic fluctuation of task features is introduced: high element sensitivity means that the task feature has a higher influence than other task features when selecting a certain type of state information; low element sensitivity means that the corresponding value of the task feature has little influence on the selection result when selecting a certain type of state information. Based on the calculation principle of the maximum semantic fluctuation of the above task features, it can be seen that when selecting a type of state information, the larger its maximum semantic fluctuation is, the smaller the influence of its value on the selection result is; for example, in the historical selection record of information recommendation for a certain type of task, when the value of the task element in the tuple "task time" is "morning", "afternoon" and "night", this type of state information is selected, indicating that the task feature "task time" has a low influence on the selection behavior of this type of state information, that is, the element sensitivity is low.
[0144] The following introduces the method of calculating the corresponding key task features based on feature sensitivity. Figure 6As shown, step 203 includes:
[0145] Step 2031: Calculate the element sensitivity based on the maximum semantic fluctuation set; wherein the maximum semantic fluctuation set is D f =(d f (1),d f (2),...,d f (k)), k represents the total number of tuples, and the expression of element sensitivity is max(d f ) is the maximum value in the maximum semantic fluctuation set, min(d f ) is the minimum value in the maximum semantic fluctuation set.
[0146] The element sensitivity of the same type of state information set is summarized into the corresponding feature sensitivity. The expression of feature sensitivity is:
[0147] The maximum semantic fluctuation D f =(d f (1),d f (2),...,d f (9)) is normalized to obtain the same type of state information {S f The characteristic sensitivity of} f .
[0148] For example, for the f-th type of status information set, we get the key task features {task type, task subject, task object, task start time}, that is, I(f) = {2 f ,3 f ,7 f ,9 f}, record the corresponding feature sensitivity value {sen 运输,2f ,sen 运输,3f ,sen 运输,7f ,sen 运输,9f}={0.2,0.35,0.16,0.4}.
[0149] Step 2032: Aggregate the element sensitivities for the same type of status information set into corresponding feature sensitivities. When the feature sensitivity of the mth task element is less than a preset value, use the task feature corresponding to the mth task element as the key task feature of the fth type of status information set.
[0150] The preset value is obtained by a person skilled in the art based on empirical analysis, and the preset value belongs to the interval [0, 1]. In an optional embodiment, the preset value may be 0.5.
[0151] When the feature sensitivity of the mth task element is less than the fluctuation lower limit, it means that the task feature of the mth task element has a low fluctuation and a high feature sensitivity when selecting the fth state information set, that is, the change of the mth task feature has a greater impact on the selection of the fth state information set; the corresponding task feature is recorded as the key task feature I of the tth task instruction in the fth state information set. t (f) = {I tfm |m∈1,...9}, and record their corresponding element sensitivity as sen tf ={sen tf (m)|m∈1,...9}.
[0152] Step 2033: taking the intersection of the key task features of all class status information sets as the single-class task feature set of the corresponding task type; and taking the set of the single-class task feature sets of all task types as the key task feature set.
[0153] For a type of task, all class state information sets {S1}, {S2}, ... {S Q} corresponding to the Q key task feature set {I t (f), f traverses 1, 2, ..., Q}, and takes the intersection ∩I of different I(f) t (f) = {I tfm |m∈1,...9}, as the single-class task feature set I for this type of task t = {I tj |j=1,...v t ,v t ≤9}, v represents the number of key task features corresponding to this type of task; in the embodiment of the present invention, since the key task features are analyzed from the structured task representation in the form of nine-tuples, v will not be greater than 9.
[0154] After obtaining the key task feature set, the state keyword corresponding to the task is obtained based on it, and the state information text and task instructions corresponding to the same information recommendation history selection record are embedded in the learning process. The process of determining the state keyword and embedding learning includes:
[0155] According to the preset topic type and the preset number of words for each preset topic type, a topic result is obtained based on the state word sequence, and the word with the largest distribution probability in the topic result is used as the state subject word corresponding to the state word sequence.
[0156] The preset topic types and the preset word counts are obtained by technicians in this field based on empirical analysis.
[0157] In the embodiment of the present invention, for the state information text s (i.e., the state vocabulary sequence) after word segmentation, the corresponding subject words are generated by a pre-trained subject word model. In an optional embodiment, the subject word model can be a latent Dirichlet Allocation (LDA) model, and the preset topic type of the LDA model is set to 20, and the preset number of words for each type of topic is set to 3. In the process of selecting the state subject words, the corresponding words with the largest distribution probability in the topic results output by the state information text s are selected as the state subject words of the state information text s. For example, the state subject word "wind force" with the highest probability is obtained by referring to the state information text "Wind force at the port is level 2, suitable for landing".
[0158] The present invention determines the status information category to which the status information text belongs, integrates the representation of key task features corresponding to each status information category into the semantic representation of the status keyword, and realizes the addition of task preference information of the status information text in the semantic representation.
[0159] According to the key task feature set, the key task feature representation and the non-key task feature representation in the structured task representation are determined; based on the element sensitivity, the average sensitivity of a single type of task is calculated, and based on the average sensitivity, the key task feature representation and the non-key task feature representation are weighted and summed to obtain the overall preference representation of the task instruction, so as to realize the embedded learning of the task instruction; wherein the expression of the overall preference representation is:
[0160] Single-class task feature set I t = {I tj |j=1,...v t ,v t ≤9}, the corresponding element sensitivity of the key task features in all Q-type state information sets is different. For a single key task feature I tj , take the average value of the sensitivity value corresponding to the task feature on the Q-type state information set as the average sensitivity of the task feature, that is, I t The average sensitivity corresponding to the key task features in is recorded as SEN t (1),SEN t (2),...,SEN t (v t ).
[0161] For example, the above process obtains the key task features corresponding to the transport task and the f-th state information set; for all information recommendation history selection records of the transport task, the above process is also calculated for the state information set categories other than the f-th state information set, and a total of Q key task features I(f′) are obtained. The intersection of these key task features I(f)′ is taken to obtain the single-category task feature set I of the transport task. 运输 , for example, take the intersection of Q key task features I(f′) to get the single-class task feature set I 运输 = {task subject, task object}, the corresponding average sensitivity is the corresponding sen of “task subject, task object” in Q key task features I(f′) 运输 , 3f ,sen 运输 , 7f The average
[0162] The above process is calculated for all types of tasks. Assuming there are N = 4 types of tasks, we can get 4 sets of single-type task feature sets, namely I 第一类 ,I 第二类 ,I 第三类 ,I 第四类 , the key task features that have a key influence on the selection of state information for the first, second, third and fourth types of tasks are recorded respectively, and the average sensitivity of these key task features relative to the state information set category can be obtained at the same time.
[0163] The following is an explanation of the process of embedding learning for task instructions:
[0164] The generated relevant information is as follows: Structured task representation And task type t, and the single-class task feature set I corresponding to the task type t = {I t1 ,I t2 ,...I tvt}, and the corresponding average sensitivity SEN t (1),SEN t (2),...,SEN t (v t ).
[0165] Based on the above relevant information, t1 ,j t2 ,...j tv In structured task representation The corresponding representation is Among them, t represents the task type; then the structured task representation of a task instruction can be divided into two parts, one part is the non-critical task feature representation, denoted as The other part is the key task features j t1 ,j t2 ,...j tv exist Corresponding key task feature representation The above two parts are combined by weight to form the overall preference representation of a task instruction. That is, weighted processing is performed with reference to the corresponding average sensitivity, and the weight of the key task feature representation is increased; and as the average sensitivity increases, the weight of the key task feature representation in the overall preference representation is increased.
[0166] The overall preference representation method adopted in the embodiment of the present invention reflects the preference for state information selection in the overall representation of task instructions. This preference is mainly affected by the difference in importance between critical task feature representations and non-critical task feature representations, as well as the difference in criticality between critical task feature representations.
[0167] For example, calculate the overall preference representation of task instruction x The key task characteristics of transportation tasks are I 运输 = {task subject, task object}, that is, the other seven task elements are non-critical task feature representations, then the task instruction x corresponds to the overall preference representation of the transportation task The calculation method is:
[0168] in, is a lexical representation of a non-mission-critical feature (i.e., a non-mission-critical feature representation), It is the vocabulary representation of the key task characteristics "task subject, task object" (i.e., key task characteristic representation), It is the average sensitivity corresponding to the key task features of transportation tasks.
[0169] The semantic representation of the subject word of the state subject word is learned; the element sensitivity of the key task feature corresponding to the task type of the state information text s selected in all information recommendation history selection records and the semantic representation of the subject word are used to obtain the task preference subject word to achieve embedded learning of the state information text; wherein the expression of the task preference subject word is is the semantic representation of the subject word of the state information s, r represents the number of task types in which the task instructions of the state information s are selected in all the historical selection records of the information recommendation; Indicates that among all the information recommendation history selection records, the key task feature I of the t-th task instruction of the state information s is selected tj The average of the lexical representations of the corresponding task elements in the structured task representation.
[0170] In order to facilitate subsequent calculations, the semantic representation of the subject word of the corresponding state subject word is learned; in an optional embodiment, the BERT model can be used for learning. For example, based on the state subject word "wind power", the semantic representation of the subject word is learned and recorded as
[0171] The idea of embedding learning of status information text in an embodiment of the present invention is to determine the status information category to which the status information text belongs, and integrate the representation of key task features corresponding to the status information category into the semantic representation of status keywords (i.e., keyword semantic representation), thereby effectively increasing the task preference information in the semantic representation of the status information text.
[0172] For example, among all the information recommendation history selection records, the record selects the two types of tasks of the status information text "The port wind force is level 2, suitable for landing"; assuming that the key task features of the first type of tasks are "task subject, task indicator", calculate the task preference keywords of the status information text "The port wind force is level 2, suitable for landing" for:
[0173]
[0174] in, It is the average representation of the lexical representation of the task element "task subject" in all transport-type task instructions that select the status information "Port wind force 2, suitable for landing" in the information recommendation history; It is the vocabulary representation of the key task features of the first category, “task subject, task object”. It is the lexical representation of the key task features of the second category: “task subject, task object”.
[0175] In order to determine the final target state information label set, such as Figure 7 As shown, the step 50 includes:
[0176] Step 501: Determine the inner product distance between the task preference topic word and the overall preference representation.
[0177] Step 502: Determine a preset number of task preference keywords with the largest inner product distance.
[0178] The preset number of selections is determined by those skilled in the art according to a specific usage scenario. In an optional embodiment, the preset number of selections may be 5.
[0179] Step 503: The state keywords corresponding to the pre-set selected number of task preference keywords are used as the target state information tag set.
[0180] For example, for each task instruction and status information text in the information recommendation history selection record, calculate its task preference keywords and overall preference representation Inner product distance, the five closest task preference keywords are The corresponding state keywords are used as the target state information label set preferred by the task instruction to complete the fusion of the state information text and the task preference of the task instruction, so as to learn the state information preference of a given task instruction.
[0181] In order to meet the demand of task preference modeling for information recommendation, the present invention fully explores the task features of task instructions and state information in the historical selection record of information recommendation; converts the task instructions into structured task representation, and determines the element sensitivity of each task element by calculating the maximum semantic fluctuation of each task element in the structured task representation of the task instructions when the task instructions of each task type select a certain type of state information set in the historical selection record of information recommendation, and then determines the feature sensitivity of the task instructions of each task type, and extracts the corresponding key task feature set; integrates the average value and average sensitivity of the lexical representation of each task element in the structured task representation and the subject word representation extracted from the state information (that is, the subject word semantic representation of the state subject word) to obtain the task preference subject word of the state information; such as Figure 8 As shown, the status information text and task instructions are encoded with fusion preferences in combination with key task features to achieve matching between tasks and status keywords and obtain a status information label set; finally, the information recommendation system can recommend status information to task planners based on the status keywords in the status information label set.
[0182] Embodiment 4:
[0183] like Fig. 9 , is a schematic diagram of the architecture of a task preference learning device for information recommendation according to an embodiment of the present invention. The task preference learning device for information recommendation according to this embodiment includes one or more processors 21 and a memory 22. Fig. 9 A processor 21 is taken as an example.
[0184] The processor 21 and the memory 22 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0185] The memory 22 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs and non-volatile computer executable programs, such as the task preference learning method for information recommendation in Example 1. The processor 21 executes the task preference learning method for information recommendation by running the non-volatile software programs and instructions stored in the memory 22.
[0186] The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0187] The program instructions / modules are stored in the memory 22, and when executed by the one or more processors 21, the task preference learning method for information recommendation in the above embodiment 1 is executed, for example, the task preference learning method described above is executed. Figure 1-Figure 7 The steps shown.
[0188] It is worth noting that the information interaction, execution process, etc. between the modules and units within the above-mentioned devices and systems are based on the same concept as the processing method embodiment of the present invention. The specific contents can be found in the description of the method embodiment of the present invention and will not be repeated here.
[0189] A person skilled in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0190] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A task preference learning method for information recommendation, It is characterized in that include: For the task instructions in the information recommendation history selection record, generating a structured task representation of the task instructions; Clustering the status information in the information recommendation history selection record to obtain multiple categories of status information sets; For structured task representations of different tasks, the maximum semantic fluctuation of each task element on the structured task representation of the task instruction of the state information set of each category is calculated; wherein the structured task representation includes a plurality of task elements, and the plurality of task elements include a task type; According to the maximum semantic fluctuation, the element sensitivity of each task element is calculated; the element sensitivity of the task instructions on the state information set of the same category is aggregated to obtain the feature sensitivity of the task instructions on the state information set of the corresponding category; the feature sensitivity of each type of task instructions on different state information set categories is aggregated, and multiple key task features of each task type are obtained according to the aggregated feature sensitivity; Taking the average value of the element sensitivity to the state information set of each category as the average sensitivity of the key task features of different task types; generating an overall preference representation corresponding to the structured task representation according to the structured task representation, the multiple key task features and the average sensitivity; Extract state keywords from the state information; fuse the state keywords for embedding learning based on the key task features and the corresponding average sensitivity of the task type corresponding to the state information to obtain the task preference keywords of the state information; According to the task preference keywords and the overall preference representation, the matching degree between the state information and the task instruction is determined, and the state keywords corresponding to the state information are screened as the preference state information tag set corresponding to the task instruction.
2. The task preference learning method for information recommendation according to claim 1, It is characterized in that The step of generating a structured task representation of the task instruction in the information recommendation history selection record for the task instruction; clustering the state information in the information recommendation history selection record to obtain a plurality of categories of state information sets; For structured task representations of different tasks, the maximum semantic fluctuation of each task element on the structured task representation of the task instruction for selecting the state information set of each category is calculated, including: The information recommendation history selection record is a combination of task instructions and state information. One task instruction can select multiple state information, and one state information can also be selected by multiple task instructions. Generate a structured task representation of the task instruction; task instruction structuring includes task instruction type identification and task element extraction; design a task nine-tuple template, the task nine-tuple template is: task = <task ID, task type, task subject, task related resource set, task indicator set, task action, task object, task constraint condition, task start time>; form a text training set by segmenting the task instruction and marking it according to the task nine-tuple template; after the text training set is vectorized, train the initial statistical model to obtain a target statistical model for completing task instruction type identification and task element extraction, so as to complete task instruction type identification and task element extraction, and realize the conversion of task instructions into a structured task representation, the specific method is as follows: For the task instruction x, the vectorized representation after word segmentation is: Where n means that there are n words in total after the task instruction x is segmented. The dimension of the vector corresponding to each word in is the same; After task instruction type identification and task element extraction, the corresponding task element label is yx 1 ,yx 2 ,...yx n , where yx b(b∈1,...n) ∈{task ID, task type, task subject, task related resource set, task indicator set, task action, task object, task constraint condition, task start time, NULL}, NULL means Some words in will get empty labels, that is, they do not belong to any element in the task nine-tuple; exist After removing the words with the label NULL, we get the element representation of the structured task representation corresponding to a task instruction. The corresponding task element label is yxa 1 ,yxa 2 ,...,yxa 9 =Task ID, task type, task subject, task-related resource set, task indicator set, task action, task object, task constraint condition, task start time; Denote as the structured task representation of task instruction x, where the task element label yxa 2 The number of types of its label values is the total number of task instruction classifications after the target statistical model. Let the total number of task instruction classifications be T, that is, task type yxa 2 There are T values; Learning the semantic representation corresponding to the state information to obtain the semantic representation vector of the state information; performing cluster analysis on the semantic representation vector in the semantic space, dividing the state information into Q types of state information sets, and obtaining a clustering result; wherein the clustering result is {{S 1 }, {S 2 }, ..., {S Q }},{S f } represents the f-th type of state information set, f∩(1, 2, ..., Q); For the t∈(1,2,...,T)th task instruction, select the historical records of the tth task instruction corresponding to the fth state information set in all the information recommendation history selection records to form a corresponding information recommendation history selection record, wherein the information recommendation history selection record refers to the tth task instruction and the corresponding fth state information set, and the structured task representation of the task instruction in the information recommendation history selection record is recorded as i represents the i-th record in the information recommendation history selection record, t represents that the task instruction is the t-th type of task instruction; according to the structured task representation, the maximum semantic fluctuation D of the t-th type of task instruction on the f-th type of state information set is calculated. tf ; According to the maximum semantic fluctuation D tf , calculate the structured task representation of the task instruction in the i-th record in the information recommendation history selection record The element sensitivity sen corresponding to each task element tf1 ,sen tf2 ,...,sen tf9 According to the element sensitivity of the t-th task instruction, determine the key task feature set I of the t-th task instruction on the f-th state information set t (f) = {I tfm |m∈1,...9}; aggregate the key task features of the t-th task instruction on all Q-type state information sets to obtain the key task feature set It={I tj |j=1,...v t ,v t ≤9}, v t represents the number of key task features corresponding to the t-th task instruction, v t Less than or equal to 9.
3. The task preference learning method for information recommendation according to claim 2, It is characterized in that The training of the initial statistical model to obtain the target statistical model for completing task instruction type recognition and task element extraction includes: Traverse the training examples and calculate the feature weights w of the training examples according to the objective function k ; Wherein, the feature weight matrix includes at least one feature weight w k ; Update the correlation matrix A using the preset kernel function k,′ ; Wherein, the correlation matrix A k,′ is the correlation matrix between task subclass k and another task subclass k′, A k,′ =[α k,′ ]; Based on the correlation matrix A k,′ and the current value of the objective function, update the feature weight w k ; The above process is iterated repeatedly until the parameters of the initial statistical model converge to obtain the target statistical model; Wherein, the expression of the objective function is: k′ represents the training example corresponding to another task subclass, α k.k' represents a variable that measures the degree of association between two task subclasses, dr represents the position of the vocabulary in the training sample, σ is the regularization parameter, and l k' (dr,w k )=logP(y k',dr |x k',dr ,w k ), P(y k',dr |x k',dr ,w k ) is the vocabulary label y of task subclass k′ k',dr The vocabulary x relative to the task subclass k′ k',dr and the feature weight w of task subclass k k probability.
4. The task preference learning method for information recommendation according to claim 2, It is characterized in that The structured task representations for different tasks, calculating the maximum semantic fluctuation of each task element on the structured task representation of the task instructions for selecting the state information sets of each category, comprises: For the information recommendation history selection record, calculate the structured task representation of the task instructions in any two of the information recommendation history selection records and The semantic distance of each task element in ; the expression of the semantic distance is Wherein, m represents the mth task element, u represents the uth information recommendation history selection record, p represents the pth information recommendation history selection record, and the task instructions in the uth information recommendation history selection record and the pth information recommendation history selection record are different; Traverse u and p through the information recommendation history selection records, and record the largest The result is the maximum semantic fluctuation of the mth task element, which is taken as the maximum semantic fluctuation d of the mth task element in the information recommendation history selection record. tf (m); Aggregate the maximum semantic fluctuations of all 9 task elements in the structured task representation into D tf =(d tf (1),d tf (2),...,d tf (9)), is called the maximum semantic fluctuation set of the t-th task instruction on the f-th state information set.
5. The task preference learning method for information recommendation according to claim 1, It is characterized in that The element sensitivity of each task element is calculated according to the maximum semantic fluctuation; the element sensitivity of task instructions on the same category of state information sets is aggregated to obtain the feature sensitivity of task instructions on the corresponding category of state information sets; the feature sensitivity of each type of task instructions on different categories of state information sets is aggregated, and multiple key task features of each task type are obtained according to the aggregated feature sensitivity, including: According to the maximum semantic fluctuation set D tf , the structured task representation of the t-th task instruction in the i-th record in the historical selection record of the computational information recommendation The element sensitivity sen of each task element on the f-th type of state information set is tf1 ,sen tf2 ,...,sen tf9 ; Among them, the maximum semantic fluctuation set of the t-th task instruction is D tf =(d tf (1),d tf (2),...,d tf (9)), the expression of the element sensitivity of the mth element is max(d tf ) is the maximum semantic fluctuation set D of the t-th task instruction tf =(d tf (1),d tf (2),...,d tf (9)) the maximum value, min(d tf ) is the minimum value in the maximum semantic fluctuation set; When the element sensitivity of the mth element is less than 0.5, the mth element is used as the key task feature of the tth task instruction on the fth state information set, and all key task features of the tth task instruction on the fth state information set are recorded as I t (f) = {I tfm |m∈1,...9}, the corresponding element sensitivity is sen tf ={sen tf (m)|m∈1,...9}, the value of m is less than or equal to 9; By traversing 1, 2, ..., Q through f, we can obtain the intersection ∩I of the key task feature set of the t-th task instruction on all Q-type state information sets t (f) = {I tfm |m∈1,...9}, and take it as the key task feature set of the t-th task instruction, denoted as I t = {I tj |j=1,...v t ,v t ≤9}, v t represents the total number of key task features corresponding to the t-th task instruction, v t Less than or equal to 9.
6. The task preference learning method for information recommendation according to claim 1, It is characterized in that Generating the overall preference representation corresponding to the structured task representation according to the structured task representation, the multiple key task features and the average sensitivity includes: According to the key task feature set of the t-th task instruction, according to the element sensitivity of the key task feature corresponding to the t-th task instruction on the state information sets of different categories, the average sensitivity of the key task feature is determined; for the key task feature set I of the t-th task instruction t = {I t1 ,I t2 ,...I tvt }, where I tj ∈I t , the average sensitivity of a key task feature is calculated as follows: Note that the t-th task instruction is in the key task feature set on all Q-type state information sets, in f 1 ,f 2 ,...f F The key task feature sets on the F (F≤Q) types of state information all include key feature I tj , denoted as I t (f 1 ),I t (f 2 ),...I t (f F );I tj In each I t (f 1 ),I t (f 2 ),...I t (f F ) Corresponding element sensitivity Pick The average value of I tj The average sensitivity SEN t (j); for I t The same process is performed on each key task feature in the t-th task instruction to obtain the key task feature of the t-th task instruction The average sensitivity SEN t (1),SEN t (2),...,SEN t (v t ); Based on the average sensitivity, the structured task representation is weighted and summed to obtain the overall preference representation of the task instruction, so as to achieve embedded learning of the task instruction; wherein the expression of the overall preference representation is: in, is the structured task representation of the t-th task instruction The characterization of task elements that are not mission-critical features, is the structured task representation of the t-th task instruction The characterization of the task elements that are key task features, SEN t (j) is the key mission feature I tj The corresponding average sensitivity.
7. The task preference learning method for information recommendation according to claim 1, It is characterized in that The state subject words are extracted from the state information; according to the key task features of the task type corresponding to the state information and the corresponding average sensitivity, the state subject words are integrated for embedding learning to obtain the task preference subject words of the state information, including: According to the preset topic type and the preset number of words of each preset topic type, a topic result is obtained based on the state information word sequence, and the word with the largest distribution probability in the topic result is used as the state topic word corresponding to the state information; Learn the semantic representation of the state keyword, and the semantic representation of the state keyword corresponding to the state information s is recorded as The average sensitivity of the key task features corresponding to the task type of the task instruction of the state information s selected in all the information recommendation history selection records, the average value of the lexical representation of the corresponding task elements, and the semantic representation of the subject word of the state information s The task preference keywords are obtained to realize the embedding learning of the state information; wherein the expression of the task preference keywords is: is the semantic representation of the subject word of the state information s, r represents the number of task types in which the task instructions of the state information s are selected in all the historical selection records of the information recommendation; Indicates that among all the information recommendation history selection records, the key task feature I of the t-th task instruction of the state information s is selected tj The average of the lexical representations of the corresponding task elements in the structured task representation.
8. The task preference learning method for information recommendation according to claim 1, It is characterized in that The matching degree between the state information and the task instruction is determined according to the task preference keywords and the overall preference representation, and the state keywords corresponding to the state information are screened as the preference state information tag set corresponding to the task instruction, including: determining an inner product distance between the task preference theme and the overall preference representation of a given task instruction; Determine a preset number of task preference keywords with the smallest inner product distance; The state subject words corresponding to the pre-set selected number of task preference subject words are used as the state information preference label set corresponding to the given task instruction.
9. A task preference learning device for information recommendation. It is characterized in that The task preference learning device for information recommendation includes at least one processor and a memory, wherein the at least one processor and the memory are connected via a data bus, and the memory stores instructions executable by the at least one processor, and after being executed by the processor, the instructions are used to implement the task preference learning method for information recommendation described in any one of claims 1-8.
10. A non-volatile computer storage medium, It is characterized in that The computer storage medium has computer executable instructions, and the computer executable instructions are executed by one or more processors to complete the task preference learning method for information recommendation according to any one of claims 1-8.
