A method, system and electronic device for voice interactive control of central control host
By calculating the degree of selection and executability of user instructions, combined with the temporal position and the degree of correlation of historical instructions, the problem of difficult instruction recognition in multi-user interaction scenarios is solved, and more accurate voice interaction control and fluency are achieved.
Patent Information
- Application Number
- CN202410904509.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-08
AI Technical Summary
In a multi-user interaction scenario, it is difficult for the existing central control host voice interaction control system to accurately distinguish and identify the current instructions that need to be executed, especially when multiple visitors are talking or issuing instructions at the same time in the exhibition hall scene, resulting in the system being unable to effectively handle multiple User interference.
By obtaining the instruction sets of multiple users and the historical instruction set within the preset time period, the degree of selection and executability of each user's instructions is calculated, and the most suitable instruction is determined based on the timing position and the degree of correlation of historical instructions to achieve Voice interactive control.
It improves the accuracy and fluency of voice interaction, optimizes the voice interaction scene in the exhibition hall, and ensures the accurate recognition and execution of instructions.
Smart Images

Figure CN118447848B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of human-computer interaction technology, and in particular to a central control host voice interaction control method, system and electronic equipment in the field of human-computer interaction technology. Background Art
[0002] The voice interactive control method of the central control host is a system and method that uses voice recognition technology to control various devices. Users can control and interact with the devices through voice without manual operation. It has broad application prospects in many fields such as smart home, conference room control, exhibition hall, etc.
[0003] However, the central control host voice interaction control method will face many technical challenges in practical applications. When the user issues a voice command, the system first converts the user's voice command into text information through voice recognition technology. Since the acquired text information is unstructured text information. Therefore, it is usually necessary to use natural language processing (NLP) methods to convert unstructured instructions into instructions that the machine can understand. In the exhibition hall scenario, when there are multiple visitors talking in the exhibition hall or issuing instructions at the same time, there will be multi-user interference, and the system cannot accurately distinguish and identify the instructions that need to be executed at the moment. Summary of the invention
[0004] In order to solve the technical problem that the system cannot accurately distinguish and identify the current instructions to be executed when facing multi-user interference, the purpose of the present invention is to provide a central control host voice interactive control method, device and system, and the technical solution adopted is as follows:
[0005] In a first aspect, an embodiment of the present invention provides a method for voice interaction control of a central control host, the method comprising:
[0006] Obtaining command sets of multiple users and historical user sets corresponding to historical command sets within a preset time period;
[0007] Based on the historical user set, determining the degree to which the instruction sets of the plurality of users are selected;
[0008] Determining the degree of correlation between the instruction set and historical instructions that are adjacent in time sequence;
[0009] Based on the degree of correlation, determining the executable degree of the instruction set;
[0010] Based on the executability and selectivity of the instruction set, voice interaction control is performed.
[0011] In combination with the first aspect, in some possible implementations, determining, based on the historical user set, the degree to which the instruction sets of the multiple users are selected includes:
[0012] Determine the proportion and time sequence position of the multiple users in the historical user set;
[0013] Based on the proportions and the temporal positions, the selection degrees of the instruction sets of the multiple users are determined.
[0014] In the above manner, by analyzing the temporal position and proportion of each user in the historical user set, the degree of selection of each user's instruction can be obtained more accurately.
[0015] In combination with the first aspect, in some possible implementations, determining the degree of selection of the instruction sets of the multiple users based on the proportions and the time sequence positions includes:
[0016] Determine the temporal position characteristics of the current moment;
[0017] Based on the temporal position feature and the temporal position of any user in the historical user set, determining the distance between the temporal position of any user in the historical user set and the current moment;
[0018] The distance and the proportion are combined to obtain the degree of selection of the instruction of any one of the users.
[0019] In the above method, for any user, by combining the distance between the temporal position of the user in the historical user set and the current time, and the proportion of the user in the historical user set, the degree of selection of the user's instruction can be quickly and accurately determined.
[0020] In combination with the first aspect above, in some possible implementations, determining the temporal position feature at the current moment includes:
[0021] Determining the number of users in the historical user set;
[0022] Based on the number of users and a preset value, the temporal position characteristics of the current moment are determined.
[0023] In the above manner, a temporal position feature is constructed by combining a preset value with the number of users in the historical user set, so that it is convenient to judge whether the temporal position of the user in the historical user set is close to the current time through the temporal position feature.
[0024] In combination with the first aspect above, in some possible implementations, determining the correlation between the instruction set and the historical instructions that are adjacent in time sequence includes:
[0025] For any user's instruction, a first noun sequence in the instruction of the user is obtained, and the historical instructions adjacent in time sequence are divided into a second noun sequence;
[0026] Based on the first noun sequence and the second noun sequence, a correlation degree between the instruction of any one user and the historical instructions adjacent in time sequence is determined.
[0027] In the above manner, by analyzing the degree to which the first noun sequence has related object attributes in the second noun sequence, the degree of correlation between the user's instruction and the historical instructions adjacent in time sequence can be accurately calculated.
[0028] In combination with the first aspect, in some possible implementations, determining the degree of correlation between the instruction of any user and the historical instructions adjacent in time sequence based on the first noun sequence and the second noun sequence includes:
[0029] In the first noun sequence and the second noun sequence, determining the number of first nouns that are identical nouns and the number of second nouns that have related object attributes;
[0030] Based on the first noun quantity and the second noun quantity, a correlation degree between the instruction of any one user and the historical instructions adjacent in time sequence is determined.
[0031] In the above method, the similarity between any user's instructions and historical instructions, as well as the difference between the first noun sequence and the second noun sequence can be determined through the first noun number and the second noun number, thereby facilitating accurate analysis of the correlation between any user's instructions and historical instructions adjacent in time sequence.
[0032] In conjunction with the first aspect, in some possible implementations, determining the executable degree of the instruction set based on the correlation degree includes:
[0033] For any user's instruction, a first verb sequence in the instruction of the user is acquired, and the historical instructions adjacent in time sequence are divided into a second verb sequence;
[0034] If the first noun sequence and the second noun sequence are the same, determining the similarity between the first verb sequence and the second verb sequence;
[0035] Based on the similarity, the executability of the instruction of any one of the users is determined.
[0036] In the above manner, if the similarity is higher, it means that the user's instruction is more similar to the historical instruction, that is, the operations corresponding to the two instructions are more similar, and the executable degree of the user's instruction is smaller, thereby avoiding repeated operations.
[0037] In conjunction with the first aspect, in some possible implementations, determining the executable degree of the instruction set based on the correlation degree includes:
[0038] If the first noun sequence and the second noun sequence are different, the correlation degree is normalized to obtain the executable degree of the instruction of any user.
[0039] In the above manner, if the first noun sequence and the second noun sequence are not completely the same, the executable degree of the user's instruction can be quickly determined by the correlation between the user's instruction and the historical instructions.
[0040] In a second aspect, a central control host voice interaction control system is provided, the system comprising:
[0041] An acquisition module is used to acquire instruction sets of multiple users and a historical user set corresponding to the historical instruction set within a preset time period;
[0042] A first determining module, configured to determine the degree of selection of the instruction sets of the plurality of users based on the historical user set;
[0043] A second determination module is used to determine the correlation between the instruction set and the historical instructions adjacent in time sequence;
[0044] A third determination module, configured to determine the executable degree of the instruction set based on the correlation degree;
[0045] A control module is used to perform voice interaction control based on the executable degree and the selectivity of the instruction set.
[0046] In a third aspect, an electronic device is provided, comprising: a memory for storing executable program code; and a processor for calling and running the executable program code from the memory, so that the device-oriented network security protection device executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0047] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0048] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0049] The present invention has the following beneficial effects: by obtaining the instruction sets of multiple users and the historical user sets corresponding to the historical instruction sets within a preset time, the selection degree of the instruction sets of multiple users is calculated, so that the probability of each user's instruction being selected can be intuitively reflected through the selection degree. Afterwards, the executable degree of each user's instruction is determined by the degree of correlation between each user's instruction set and the historical instructions adjacent in time sequence; in this way, the executable degree can accurately reflect the possibility of each user's instruction being executed. Finally, by combining the selection degree and the executable degree, the most suitable instruction for execution can be obtained to realize voice interaction control, so that the instructions to be executed can be identified more accurately, and the fluency in the voice interaction scene in the exhibition hall is optimized. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 It is a schematic diagram of the implementation flow of a central control host voice interaction control method provided by an embodiment of the present invention;
[0052] Figure 2 It is another implementation flow diagram of a central control host voice interaction control method provided by an embodiment of the present invention;
[0053] Figure 3 It is a schematic diagram of the composition structure of a central control host voice interaction control system provided by an embodiment of the present invention;
[0054] Figure 4 This is another implementation flow diagram of a central control host voice interaction control method provided by an embodiment of the present invention;
[0055] Figure 5 It is another implementation flow diagram of a central control host voice interaction control method provided by an embodiment of the present invention;
[0056] Figure 6 It is a schematic diagram of the composition structure of a central control host voice interaction control system provided by an embodiment of the present invention;
[0057] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a central control host voice interactive control method proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0059] Among them, in the description of the embodiments of the present invention, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" refers to two or more than two.
[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0061] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0062] The following specifically describes the application environment of the central control host voice interactive control method provided by the present invention in conjunction with the accompanying drawings. Figure 1 , which shows a schematic diagram of the implementation flow of a central control host voice interaction control method provided by an embodiment of the present invention. The central control host voice interaction control method can be implemented by the following steps:
[0063] 101. Acquire real-time voices of multiple users.
[0064] 102, converting the real-time speech into text and performing data preprocessing.
[0065] 103, calculating the selection degree of each user's instruction.
[0066] 104, calculating the executability of each user's instruction.
[0067] 105 , calculating the possibility that each user's instruction is an instruction to be executed.
[0068] 106, obtaining instruction information currently required.
[0069] 107, the central control host sends the command quality to the target device.
[0070] 108, completing the command operation based on voice interaction.
[0071] In the embodiment of the present invention, the selection degree of each user's instruction is determined by calculating the importance of each user in the historical instruction set in the real-time voice data. Then, the executable degree of each user's instruction is determined by calculating the correlation between each user's instruction and the previous instruction. Finally, the possibility of each user's instruction being an instruction to be executed is determined by combining the selection degree and the executable degree, and the instruction with the greatest possibility of being an instruction to be executed is recorded as the instruction to be executed. In this way, the most suitable instruction for execution can be obtained, thereby improving the accuracy of voice interaction.
[0072] The following is a detailed description of a method for voice interaction control of a central control host provided by the present invention in conjunction with the accompanying drawings.
[0073] See also Figure 2 , which shows a flow chart of a central control host voice interaction control method provided by an embodiment of the present invention, the method comprising:
[0074] 201 , obtaining command sets of multiple users and a historical user set corresponding to the historical command sets within a preset time period.
[0075] Here, in the exhibition hall scene, visitors and staff can send voice commands through the central control host voice interaction control system to control the activation of various devices in the exhibition hall and other functions, thereby improving the visitor's interactive experience and the exhibition hall's operational efficiency. Multiple users can be visitors or staff in the exhibition hall. The command set of multiple users can be an output real-time voice signal. The preset duration can be a custom duration, for example, 24 hours with the current time as the end time. The historical command set within the preset duration is the historical commands that have been executed within the preset duration, and the historical user set is the user who outputs the voice corresponding to the historical command.
[0076] In some possible implementations, firstly, the real-time voice data of the exhibition hall is obtained through a voice recording storage device. Then, the different users in the currently obtained voice data are identified through the speaker recognition technology in the voiceprint recognition technology. If a certain voice is not recognized, it means that there is no such user in the voiceprint library, and then the voiceprint of the user is registered accordingly. The voice data of each user is converted into text information through voice recognition technology. For example, there are M text information corresponding to the voice data of M users. The M text information is segmented by a word segmentation tool to obtain M word segmentation sequences, and these M word segmentation sequences are uniformly recorded as an instruction set.
[0077] Among them, the composition structure of the central control host voice interaction control system is as follows: Figure 3 As shown, the system includes: a voice recording storage device 31, a central control host 32, a voice recognition device 33, a semantic analysis device 34, and an instruction generation device 35; wherein, after the central control host 32 determines the instruction to be executed, it sends the instruction to be executed to the corresponding device (for example, device 1, device 2 and device 3) to perform the corresponding operation, thereby realizing voice interaction.
[0078] 202: Determine the degree to which instruction sets of multiple users are selected based on the historical user set.
[0079] Here, by analyzing the proportion of multiple users in the historical user set, the selection degree of each user's instruction is calculated. The selection degree is used to characterize the possibility that the user's instruction is selected as the instruction to be executed. The higher the selection degree, the higher the possibility that the user's instruction is the instruction to be executed; the lower the selection degree, the lower the possibility that the user's instruction is the instruction to be executed.
[0080] In some possible implementations, the above step 202 can be performed by Figure 4 The steps shown achieve:
[0081] 401 : Determine the proportions and time sequence positions of the multiple users in the historical user set.
[0082] Here, the number of multiple users is divided by the number of users in the historical user set to obtain the proportion of each user in the historical user set. The temporal position is the time sequence of the output instructions of these multiple users. For example, a historical instruction set within a preset time length is obtained according to the time sequence. Each historical instruction in the historical instruction set is arranged in time sequence. In this way, the historical user set corresponding to the historical instruction set is also arranged in time sequence, so the temporal position of each user in the historical user set can be obtained.
[0083] 402. Determine the degree to which the instruction sets of the multiple users are selected based on the proportions and the time sequence positions.
[0084] Here, the proportion and the time sequence position are combined to jointly determine the degree of selection of each user's instruction. In this way, by analyzing the time sequence position and proportion of each user in the historical user set, the degree of selection of each user's instruction can be obtained more accurately.
[0085] In some possible implementations, the selection degree of each user's instruction may be determined by the following process:
[0086] First, determine the temporal position characteristics of the current moment.
[0087] Here, the number of users in the historical user set is first determined, and then the temporal position feature of the current moment is determined based on the number of users and a preset value. Here, the preset value can be a custom value, for example, the preset value is 1, and 1 is added to the number of users in the historical user set as the temporal position feature of the current moment. In this way, the temporal position feature is constructed by combining the preset value with the number of users in the historical user set, so that it is convenient to judge whether the temporal position of the user in the historical user set is close to the current moment through the temporal position feature.
[0088] Secondly, based on the temporal position feature and the temporal position of any user in the historical user set, the distance between the temporal position of any user in the historical user set and the current moment is determined.
[0089] Here, the absolute value of the difference between the temporal position feature and the temporal position of any user in the historical user set is used as the distance between the temporal position of the user in the historical user set and the current moment.
[0090] Finally, the distance and the proportion are combined to obtain the degree of selection of the instruction of any user.
[0091] Here, by multiplying the distance and the proportion, the selection degree of the user's instruction is obtained. In this way, for any user, by combining the distance between the user's temporal position in the historical user set and the current moment, and the proportion of the user in the historical user set, the selection degree of the user's instruction can be quickly and accurately determined.
[0092] Here, after obtaining the real-time M sets of instructions to be executed, it is still not certain which set of instructions to be executed corresponds to the instructions that need to be executed. Therefore, the importance of each user is different. If a user's instructions are executed more times in the historical instructions, it means that the user has a higher degree of control over the various equipment in the exhibition hall. The higher the degree of selection of the user's instruction set when making the corresponding real-time selection. Therefore, the degree of selection of each user's instruction set is first determined based on the change relationship of the users corresponding to the historical instructions; and then the executable degree of the current instruction is determined based on the degree of selection and the correlation between the instruction set of the mth user and the previous instruction set. Specifically:
[0093] First, the historical user set corresponding to all the instructions of the day (i.e., the preset duration is one day) is obtained in time sequence (where each user may appear multiple times); then, the selection degree of the instruction set of the real-time M users is determined based on the proportion of the M users obtained in real time in the historical user set and their time sequence position. The closer the time sequence position is to the current moment, the higher the control authority of the user over the device is at present, and the higher the selection degree of the corresponding instruction of the user is. The selection degree of the instruction of the mth user As shown in formula (1):
[0094] (1);
[0095] in: Indicates the number of the mth user in the historical user set corresponding to all instructions on that day. Indicates the size of the historical user set corresponding to all instructions on that day. exp() represents an exponential function with a natural constant as the base. It represents the temporal position feature of the mth user in the historical user set corresponding to all the instructions of the day, and is represented by the mean of the position sequence number in the historical user set. The temporal position feature at the current moment can be expressed as (historical user set size + 1).
[0096] The larger the value of , the greater the proportion of the m-th user in the historical user set corresponding to all instructions on that day. The smaller the value of indicates that the position of the mth user in the historical user set corresponding to all instructions of the day is closer to the current moment, and the corresponding mth user's instruction is more selected at the neighboring moment of the current moment. The larger the value, the The larger the value of indicates, the higher the degree to which the instruction of the mth user is selected. Based on this, the degree to which the instruction sets of the M users are selected in real time can be calculated.
[0097] 203 : Determine the correlation between the instruction set and historical instructions that are adjacent in time sequence.
[0098] Here, for any user among the multiple users, the temporally adjacent historical instructions are historical instructions executed before the current moment. The relevance level is used to indicate whether the noun sequence in the instruction of any user has a related object in the historical instructions.
[0099] In some possible implementations, the above step 203 can be performed by Figure 5 The steps shown achieve:
[0100] 501 , for any user's instruction, obtain a first noun sequence in the instruction of any user, and a second noun sequence in the historical instructions that are adjacent in time sequence.
[0101] Here, by dividing the instructions of any user into nouns and verbs, the first noun sequence and the first verb sequence in the instructions of any user can be obtained; and, by dividing the historical instructions that are adjacent in time sequence into nouns and verbs, the second noun sequence and the second verb sequence in the historical instructions can be obtained.
[0102] 502 : Determine, based on the first noun sequence and the second noun sequence, the degree of correlation between the instruction of any one user and the historical instructions adjacent in time sequence.
[0103] Here, taking multiple users as M users as an example, after determining the degree of selection of the instruction sets of M users, it is also necessary to determine the effectiveness of each user's instruction based on the degree of correlation between each user's instruction and the previous instruction (that is, the historical instructions that are adjacent in time sequence). In some possible implementations, since the controls between the devices in the exhibition hall are related, operations such as "play video", "pause video" and "turn up the volume" have a certain correlation. In order to make the exhibition hall's display effect more fluent, the higher the correlation between any user's instruction and the historical instructions that are adjacent in time sequence, the more the corresponding user's instruction needs to be selected.
[0104] In each user's instruction, nouns mainly refer to the controlled objects, such as "projector", "video", "sound", etc. Verbs describe the operations performed on these objects. Therefore, first obtain the noun sequence and verb sequence in each user's instruction respectively; when determining the degree of selection of each user's instruction, the higher the correlation between the current user's instruction and the noun sequence corresponding to the historical instructions adjacent in time sequence. The higher the correlation between the corresponding verb sequences, especially when the user's noun sequence and the noun set of the historical instructions adjacent in time sequence are exactly the same (that is, the first noun sequence and the second noun sequence are exactly the same), the correlation between the corresponding verb sequences should be lower. Because when the operation objects of this instruction and the last instruction are the same, the corresponding operations should be different. For example, if the last instruction is "turn on the projector", then the next instruction cannot be "turn on the projector", and the same operation is a useless operation. Therefore, it is necessary to determine the executable degree of the current instruction based on the correlation between the instruction of the mth user and the historical instructions adjacent in time sequence. In this way, by analyzing the degree to which the first noun sequence has related object attributes in the second noun sequence, the correlation between the user's instruction and the historical instructions adjacent in time sequence can be accurately calculated.
[0105] In some possible implementations, the correlation between any user's instruction and the historical instructions adjacent in time sequence may be determined by the following process:
[0106] First, in the first noun sequence and the second noun sequence, the number of first nouns of the same noun and the number of second nouns with related object attributes are determined; then, based on the first noun number and the second noun number, the degree of correlation between the instruction of any user and the historical instructions adjacent in time sequence is determined. In this way, the similarity between the instruction of any user and the historical instructions, as well as the difference between the first noun sequence and the second noun sequence can be determined through the first noun number and the second noun number, so as to facilitate accurate analysis of the degree of correlation between the instruction of any user and the historical instructions adjacent in time sequence.
[0107] Here, the related object sequence corresponding to each operation object is obtained based on prior knowledge, for example, the related objects of "projector" are "brightness", "volume", "projection mode", etc. For the instruction set of the mth user. Calculate the relevance of the first noun sequence in the instruction of the mth user to the second noun sequence in the previous instruction, as shown in formula (2):
[0108] (2);
[0109] in: Indicates the degree of relevance of the first noun sequence in the instruction of the mth user to the second noun sequence in the previous instruction. Indicates the number of nouns in the second noun sequence in the previous instruction.
[0110] Indicates the number of nouns with related object attributes in the first noun sequence in the instruction of the mth user and the second noun sequence in the previous instruction; if a noun in the first noun sequence in the instruction of the mth user exists in the related object sequence corresponding to a noun in the second noun sequence in the previous instruction, it means that this noun and the corresponding noun in the second noun sequence in the previous instruction have related object attributes.
[0111] Indicates the number of identical nouns in the first noun sequence in the instruction of the mth user and the second noun sequence in the previous instruction.
[0112] The larger the value of indicates, the higher the similarity between the first noun sequence in the instruction of the mth user and the second noun sequence in the previous instruction. The larger the value of , the higher the correlation degree between the first noun sequence in the instruction of the corresponding m-th user and the second noun sequence in the previous instruction.
[0113] The larger the value of , the greater the number of nouns with related object attributes in the noun sequence of the mth user's instruction and the noun sequence of the previous instruction is than the number of identical participles. The corresponding instruction representing the mth user is more likely to operate on the related attribute object of the previous instruction. Therefore, through Come to Make corrections.
[0114] therefore, The larger the value of , the greater the correlation value of the first noun sequence in the instruction of the mth user to the second noun sequence.
[0115] 204. Determine the executable degree of the instruction set based on the correlation degree.
[0116] Here, for any user's instruction, if the nouns in the first noun sequence and the second noun sequence are the same, then the similarity between the user's instruction and the verb sequence in the historical instructions is further analyzed to determine the executable degree of the user's instruction. If the nouns in the first noun sequence and the second noun sequence are not exactly the same, then the executable degree of the user's instruction can be obtained by normalizing the degree of correlation.
[0117] In some possible implementations, the above step 204 may be implemented in the following two ways:
[0118] Method 1: First, for the instructions of any user, obtain the first verb sequence in the instructions of any user, and divide the historical instructions adjacent in time sequence into the second verb sequence. Secondly, if the first noun sequence and the second noun sequence are the same, determine the similarity between the first verb sequence and the second verb sequence; here, if the first noun sequence and the second noun sequence are exactly the same, then further calculate the similarity between the first verb sequence and the second verb sequence by the Jaccrad correlation coefficient. And based on the similarity, determine the executable degree of the instructions of any user. Here, the inverse of the similarity is used as the executable degree of the instructions of any user. In this way, if the similarity is higher, it means that the user's instructions are more similar to the historical instructions, that is, the operations corresponding to the two instructions are more similar, and then the executable degree of the user's instructions is smaller, so that repeated operations can be avoided.
[0119] Mode 2: If the first noun sequence and the second noun sequence are different, the correlation degree is normalized to obtain the executable degree of the instruction of any user.
[0120] Here, if the first noun sequence and the second noun sequence are not completely identical, then the executable degree of the user's instruction can be obtained by normalizing the correlation between the first noun sequence and the second noun sequence. In this way, if the first noun sequence and the second noun sequence are not completely identical, then the executable degree of the user's instruction can be quickly determined by the correlation between the user's instruction and the historical instructions.
[0121] In some possible implementations, taking the mth user as an example, the executable degree of the mth user's instruction is determined by combining the correlation between the first noun sequence of the mth user's instruction and the second noun sequence in the historical instruction, and the correlation between the verb sequences in the two instructions; as shown in formula (3):
[0122] (3);
[0123] in: Indicates the executable degree of the instruction of the mth user. Represents the normalization function. Represents the Jaccrad correlation coefficient, which is used to measure the correlation between two sets. The similarity. Indicates the degree of relevance of the noun sequence in the instruction of the mth user to the noun sequence in the previous instruction. Represents the first noun sequence in the instruction of the mth user. Represents the second noun sequence in the previous instruction (i.e., the historical instruction that is adjacent to the instruction sequence of the mth user). Represents the first verb sequence in the instruction of the mth user. Indicates the second verb sequence in the previous instruction.
[0124] when , it means that the first noun sequence in the mth user's instruction is exactly the same as the second noun sequence in the previous instruction. In order to avoid invalid operations, it is necessary to determine the executable degree of the mth user's instruction based on the similarity of the verb sequences corresponding to the two instructions. The smaller the value of should be, the more operations the two instructions correspond to. The smaller the value of , the greater the executable degree of the instruction of the mth user.
[0125] when , it means that the first noun sequence in the instruction of the mth user is not completely consistent with the second noun sequence in the previous instruction. To determine the executable degree of the mth user's instruction. The larger the value of , the greater the correlation between the first noun sequence in the instruction of the m-th user and the second noun sequence in the previous instruction.
[0126] 205. Perform voice interaction control based on the executable degree and the selectivity of the instruction set.
[0127] Here, the calculated executable degree of the mth user's instruction and the degree of selection of the mth user's instruction are combined to take into account both the importance and relevance of the instruction, as shown in formula (4):
[0128] (4);
[0129] in: Indicates the possibility that the instruction of the mth user is the instruction to be executed. Indicates the degree of selection of the instruction of the mth user. Indicates the executable degree of the instruction of the mth user. The larger the value of indicates, the greater the possibility that the instruction of the mth user is the instruction to be executed. After calculating the possibility that the instructions of the M users obtained in real time are the instructions to be executed, the instruction set with the greatest possibility of being the instructions to be executed is recorded as the instruction set to be executed.
[0130] After determining the set of instructions to be executed, the set of instructions to be executed is sent to the central control host, which generates control instructions by analyzing the set of instructions to be executed. These instructions are sent to the target devices to control these devices. After the operation is completed, the central control system interacts with the user by sending a voice message related to "task completed".
[0131] In an embodiment of the present invention, the selection degree of the instruction sets of multiple users and the historical user sets corresponding to the historical instruction sets within a preset time are obtained to calculate the selection degree of the instruction sets of multiple users. Then, the executable degree of each user's instruction is determined by the correlation between the instruction set of each user and the historical instructions adjacent in time sequence. Finally, combining the selection degree and the executable degree, the most suitable instruction for execution can be obtained to realize voice interaction control, so that the instructions to be executed can be identified more accurately, and the fluency of the voice interaction scene in the exhibition hall is optimized.
[0132] The embodiment of the present invention provides a central control host voice interaction control system, such as Figure 6 As shown, the system 600 includes:
[0133] An acquisition module 601 is used to acquire instruction sets of multiple users and a historical user set corresponding to the historical instruction set within a preset time period;
[0134] A first determining module 602, configured to determine the degree of selection of the instruction sets of the plurality of users based on the historical user set;
[0135] A second determination module 603 is used to determine the correlation between the instruction set and the historical instructions adjacent in time sequence;
[0136] A third determination module 604, configured to determine the executable degree of the instruction set based on the correlation degree;
[0137] The control module 605 is used to perform voice interaction control based on the executable degree and the selectivity of the instruction set.
[0138] In some possible implementations, the first determination module 602 is further used to determine the proportion and time sequence position of the multiple users in the historical user set; based on the proportion and the time sequence position, determine the degree of selection of the instruction sets of the multiple users.
[0139] In some possible implementations, the first determination module 602 is further used to determine the temporal position characteristics of the current moment; based on the temporal position characteristics and the temporal position of any user in the historical user set, determine the distance between the temporal position of any user in the historical user set and the current moment; and fuse the distance and the proportion to obtain the degree of selection of the instruction of any user.
[0140] In some possible implementations, the first determination module 602 is further configured to determine the number of users in the historical user set; and determine the temporal position feature of the current moment based on the number of users and a preset value.
[0141] In some possible implementations, the second determination module 603 is further used to obtain, for any user's instructions, a first noun sequence in the instructions of the any user, and to divide the temporally adjacent historical instructions into a second noun sequence; and to determine the degree of correlation between the instructions of the any user and the temporally adjacent historical instructions based on the first noun sequence and the second noun sequence.
[0142] In some possible implementations, the second determination module 603 is further used to determine the number of first nouns with the same noun and the number of second nouns with related object attributes in the first noun sequence and the second noun sequence; based on the first number of nouns and the second number of nouns, determine the degree of correlation between the instructions of any user and the historical instructions adjacent in time sequence.
[0143] In some possible implementations, the third determination module 604 is further used to obtain, for any user's instructions, a first verb sequence in the instructions of the any user, and to divide the temporally adjacent historical instructions into a second verb sequence; if the first noun sequence and the second noun sequence are the same, determine the similarity between the first verb sequence and the second verb sequence; and based on the similarity, determine the executability of the instructions of the any user.
[0144] In some possible implementations, the third determination module 604 is further configured to normalize the degree of relevance if the first noun sequence and the second noun sequence are different, so as to obtain the executable degree of the instruction of any user.
[0145] Optionally, the transmission medium can be a wired link (such as but not limited to coaxial cable, optical fiber and digital subscriber line (DSL)) or a wireless link (such as but not limited to wireless Fidelity (WIFI), Bluetooth and mobile device network).
[0146] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the shopping guide device provided in the above embodiment and the image extension method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0147] Figure 7 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 7 As shown, the electronic device 700 includes: a memory 701, a processor 702, and a computer program 703 stored in the memory 701 and running on the processor 702, wherein when the processor 702 executes the computer program 703, the device can execute any of the central control host voice interaction control methods described above. In addition, the embodiment of the present invention also protects a device, which may include a memory and a processor, wherein the memory stores an executable program code, and the processor is used to call and execute the executable program code to execute a central control host voice interaction control method provided by an embodiment of the present invention.
[0148] This embodiment can divide the functional modules of the device according to the above method example. For example, it can correspond to each functional module, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation. In the case of dividing each module corresponding to each function, the device may also include a signal uploading module, a determination module, an adjustment module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0149] It should be understood that the device provided in this embodiment is used to execute the above-mentioned central control host voice interaction control method, so the same effect as the above-mentioned implementation method can be achieved. In the case of an integrated unit, the device may include a processing module and a storage module. Among them, when the device is applied to a device, the processing module can be used to control and manage the actions of the device. The storage module can be used to support the device to execute mutual program codes, etc. Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logic boxes, modules and circuits described in combination with the contents disclosed in the present invention. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module can be a memory.
[0150] In addition, the device provided in the embodiment of the present invention may be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a central control host voice interaction control method provided in the above embodiment. This embodiment also provides a computer-readable storage medium, in which a computer program code is stored, and when the computer program code is run on a computer, the computer executes the above-mentioned related method steps to implement a central control host voice interaction control method provided in the above embodiment.
[0151] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement a central control host voice interaction control method provided in the above embodiment. Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here. Through the description of the above implementation mode, the technicians in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiment described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
[0152] It should be noted that the sequence of the above-mentioned embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous. The various embodiments in this specification are described in a progressive manner, and the same and similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments. The above content is only a specific implementation method of the present invention, but the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered within the protection scope of the present invention.
Claims
1. A central control host voice interactive control method, characterized in that: The method comprises: Obtaining command sets of multiple users and historical user sets corresponding to historical command sets within a preset time period; Based on the historical user set, determining the degree to which the instruction sets of the plurality of users are selected; Determining the degree of correlation between the instruction set and historical instructions that are adjacent in time sequence; Based on the degree of correlation, determining the executable degree of the instruction set; Based on the executable degree of the instruction set and the degree of selection, performing voice interaction control; The method for obtaining the degree of selection is as follows: determining the proportion and time sequence position of the multiple users in the historical user set; and determining the degree of selection of the instruction sets of the multiple users based on the proportion and time sequence position; Wherein, determining the degree of selection of the instruction sets of the multiple users based on the proportions and the temporal positions includes: determining the temporal position feature of the current moment; determining the distance between the temporal position of any user in the historical user set and the current moment based on the temporal position feature and the temporal position of any user in the historical user set; fusing the distance and the proportion to obtain the degree of selection of the instruction of any user; The method for acquiring the temporal position feature of the current moment is as follows: determining the number of users in the historical user set; and determining the temporal position feature of the current moment based on the number of users and a preset value; The method for obtaining the degree of correlation between the instruction set and the historical instructions adjacent in time sequence is as follows: for an instruction of any user, obtaining a first noun sequence in the instruction of any user, and dividing the historical instructions adjacent in time sequence into a second noun sequence; based on the first noun sequence and the second noun sequence, determining the degree of correlation between the instruction of any user and the historical instructions adjacent in time sequence; Among them, the method for obtaining the executable degree of the instruction set is: for the instructions of any user, obtain the first verb sequence in the instructions of any user, and divide the historical instructions adjacent in time sequence into a second verb sequence; if the first noun sequence and the second noun sequence are the same, determine the similarity between the first verb sequence and the second verb sequence; based on the similarity, determine the executable degree of the instructions of any user.
2. The method according to claim 1, characterized in that: The determining, based on the first noun sequence and the second noun sequence, the degree of relevance between the instruction of any user and the historical instructions adjacent in time sequence includes: In the first noun sequence and the second noun sequence, determining the number of first nouns that are identical nouns and the number of second nouns that have related object attributes; Based on the first noun quantity and the second noun quantity, a correlation degree between the instruction of any one user and the historical instructions adjacent in time sequence is determined.
3. The method according to claim 1 or 2, characterized in that: The determining the executable degree of the instruction set based on the correlation degree includes: If the first noun sequence and the second noun sequence are different, the correlation degree is normalized to obtain the executable degree of the instruction of any user.
4. A central control host voice interactive control system, characterized in that: The system comprises: An acquisition module is used to acquire instruction sets of multiple users and a historical user set corresponding to the historical instruction set within a preset time period; A first determining module, configured to determine the degree of selection of the instruction sets of the plurality of users based on the historical user set; A second determination module is used to determine the correlation between the instruction set and the historical instructions adjacent in time sequence; A third determination module, configured to determine the executable degree of the instruction set based on the correlation degree; A control module, configured to perform voice interaction control based on the executable degree of the instruction set and the degree of selection; The method for obtaining the degree of selection is as follows: determining the proportion and time sequence position of the multiple users in the historical user set; and determining the degree of selection of the instruction sets of the multiple users based on the proportion and time sequence position; Wherein, determining the degree of selection of the instruction sets of the multiple users based on the proportions and the temporal positions includes: determining the temporal position feature of the current moment; determining the distance between the temporal position of any user in the historical user set and the current moment based on the temporal position feature and the temporal position of any user in the historical user set; fusing the distance and the proportion to obtain the degree of selection of the instruction of any user; The method for acquiring the temporal position feature of the current moment is as follows: determining the number of users in the historical user set; and determining the temporal position feature of the current moment based on the number of users and a preset value; The method for obtaining the degree of correlation between the instruction set and the historical instructions adjacent in time sequence is as follows: for an instruction of any user, obtaining a first noun sequence in the instruction of any user, and dividing the historical instructions adjacent in time sequence into a second noun sequence; based on the first noun sequence and the second noun sequence, determining the degree of correlation between the instruction of any user and the historical instructions adjacent in time sequence; Among them, the method for obtaining the executable degree of the instruction set is: for the instructions of any user, obtain the first verb sequence in the instructions of any user, and divide the historical instructions adjacent in time sequence into a second verb sequence; if the first noun sequence and the second noun sequence are the same, determine the similarity between the first verb sequence and the second verb sequence; based on the similarity, determine the executable degree of the instructions of any user.
5. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable program codes; A processor is used to call and run the executable program code from the memory, so that the device-oriented network security protection device executes the method according to any one of claims 1 to 3.
