A whole-house smart home interaction method and system
By using the fastICA algorithm and prior multi-tree technology in smart homes to analyze the semantic weight of speech data, the problem of semantic deviation in the decomposition results of the ICA algorithm is solved, and the accuracy and efficiency of smart home interaction are improved.
Patent Information
- Application Number
- CN202411000623.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-25
AI Technical Summary
The speech decomposition results obtained by the existing ICA algorithm in smart home interaction are non-Gaussian, but its semantics deviate from the actual situation, which affects the accuracy of speech recognition and the reliability and efficiency of smart home interaction.
The fastICA algorithm is used to decompose the speech data, retain the weight vector with the largest non-Gaussianity measure, and calculate the semantic matching degree by combining the prior multi-tree and semantic weight to obtain decomposition results that are non-Gaussian and semantically consistent.
It improves the accuracy of voice signal recognition and the reliability and efficiency of smart home interaction, ensuring that the decomposition results are more consistent with the actual situation.
Smart Images

Figure CN118538211B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a whole-house smart home interaction method and system. Background Art
[0002] In smart home systems, voice interaction has received widespread attention and application as an intuitive and convenient way of user interaction. In practical applications, the ICA algorithm decomposition of the user voice signal collected during voice interaction can be used for voice signal separation and recognition, decomposing the user's voice from the environment and the voice of other speakers, and decomposing complex mixed signals into independent components, thereby extracting the characteristics of the voice signal and achieving accurate voice recognition;
[0003] The existing ICA algorithm assumes the non-Gaussianity of the sound signal and the central limit theorem to iterate the projection vector of the speech signal until the optimal non-Gaussian projection vector is found to decompose the signal; however, when the interaction scenario is more complex, the decomposition result obtained by the ICA algorithm may conform to the non-Gaussianity, but its semantics deviates from the actual situation, thereby affecting the accuracy of speech signal recognition during the intelligent interaction between users and smart homes, and reducing the reliability and efficiency of smart home intelligent interaction. Summary of the invention
[0004] The present invention provides a whole-house smart home interaction method and system to solve the problem that when the existing ICA algorithm decomposes the smart home interaction voice, the decomposition result obtained conforms to the non-Gaussian property, but its semantics deviates from the actual situation, thereby affecting the accuracy of voice signal recognition during the intelligent interaction between the user and the smart home, and reducing the reliability and efficiency of the smart home intelligent interaction.
[0005] A whole-house smart home interaction method and system of the present invention adopts the following technical solutions:
[0006] On the one hand, an embodiment of the present invention provides a whole-house smart home interaction method, the method comprising the following steps:
[0007] Collecting voice data; decomposing the voice data to obtain a number of retained results of each voice data;
[0008] According to the existing smart home interactive dictionary, a priori multi-branch tree is constructed, and each word in each sentence in the smart home interactive dictionary has a corresponding node in the priori multi-branch tree; the number of leaf nodes of the tree with each node as the root node in the priori multi-branch tree is recorded as the number of visits to each node; according to the number of visits to each node in each layer of the priori multi-branch tree, the anchor point of each layer of the priori multi-branch tree is obtained;
[0009] According to all the retention results of each voice data, several retention word sequences of each voice data are obtained; according to the prior multi-branch tree and each retention word sequence, a comparison multi-branch tree of each retention word sequence is established; the synonymous node of each word in each retention word sequence in the prior multi-branch tree is obtained; according to the number of synonymous nodes of each word in each retention word sequence in the prior multi-branch tree and the number of visits to the synonymous node, the semantic weight of each word in each retention word sequence is obtained;
[0010] Obtaining the semantic matching degree of the reserved vocabulary sequence according to the semantic weight of each word in the reserved vocabulary sequence, the number of visits to the corresponding node of the word in the comparison multi-branch tree of the reserved vocabulary sequence, and the anchor point of the prior multi-branch tree at the layer where the corresponding node of the word is located;
[0011] According to the semantic matching degree of each retained vocabulary sequence, the interactive text of each voice data is obtained; all interactive texts are used for whole-house intelligent interaction.
[0012] Furthermore, the decomposing of the speech data to obtain a plurality of retained results of each speech data comprises the following specific methods:
[0013] All speech data are input into the fastICA algorithm. For the ith speech data, in the process of iteratively obtaining the optimal weight vector corresponding to the ith speech data, the weight vector of the jth iteration of the ith speech data is recorded as the jth weight vector of the ith speech data; all weight vectors whose non-Gaussianity measures are greater than a preset retention threshold among all weight vectors of the ith speech data are screened and recorded as the weight vectors screened out of the ith speech data; the projection result corresponding to the weight vector screened out of the ith speech data is recorded as the retention result of the ith speech data; and the retention results of all speech data are obtained.
[0014] Furthermore, the specific method of constructing a priori multi-branch tree according to the existing smart home interactive dictionary is as follows:
[0015] For all prior sentence texts in the existing smart home voice interaction dictionary, the prior sentence texts are segmented using a Chinese word segmentation tool to obtain all prior vocabulary of each prior sentence text, and the sequence formed by all prior vocabulary of each prior sentence text is recorded as each prior vocabulary sequence;
[0016] Initialize an empty root node, recorded as the prior information root node; insert each prior vocabulary sequence into the multitree in the order of the vocabulary in the prior vocabulary sequence, with the layer number of the root node as the 0th layer; insert the first vocabulary in each prior vocabulary sequence into the first layer as the child node of the prior information root node; insert the second vocabulary in each prior vocabulary sequence into the second layer as the child node of the node corresponding to the previous vocabulary in the prior vocabulary sequence; insert the third vocabulary in each prior vocabulary sequence into the third layer as the child node of the node corresponding to the previous vocabulary in the prior vocabulary sequence; and so on, insert all the vocabulary of all prior vocabulary sequences into the multitree, and in the process of inserting into the multitree, when the vocabulary of multiple prior vocabulary sequences at the same sequence position is the same, and the vocabulary corresponding to all sequences before the vocabulary at the same sequence position is the same, merge all the vocabulary of multiple prior vocabulary sequences at the same sequence position into a node at the corresponding layer of the sequence position in the multitree; until the multitree contains all the vocabulary of all prior vocabulary sequences, the multitree after insertion is recorded as the prior multitree.
[0017] Furthermore, the method of obtaining the anchor point property of each layer of the priori multi-branch tree according to the number of visits to each node of each layer of the priori multi-branch tree includes the following specific methods:
[0018] Anchor point property of the rth layer in a priori multitree The calculation method is:
[0019]
[0020] Where: represents the number of visits to the p-th node in the r-th layer of the prior multitree, represents the number of nodes in the rth layer of the prior multitree that have the same vocabulary as the pth node, represents the number of all nodes in the rth layer of the prior multitree, represents the linear normalization function, represents the maximum value function, represents the variance function, It represents the maximum total number of visits to all words in the rth layer of the prior multitree. Represents the variance of the total number of visits to all words in the rth level in the prior multitree.
[0021] Furthermore, the method of obtaining a plurality of reserved vocabulary sequences for each voice data according to all the reserved results of each voice data includes the following specific methods:
[0022] All the retained results of each speech data are input into the speech-to-text tool for semantic recognition, and the text information of all the retained results of each speech data is obtained, which is recorded as the retained text of each speech data; all the retained text of each speech data is segmented using the Chinese word segmentation tool, and the vocabulary sequence of the retained text of each speech data is obtained, which is recorded as the retained vocabulary sequence of each speech data.
[0023] Furthermore, the method of establishing a comparison multitree of each reserved vocabulary sequence based on the prior multitree and each reserved vocabulary sequence; and obtaining a synonymous node of each vocabulary in each reserved vocabulary sequence in the prior multitree includes the following specific methods:
[0024] The kth reserved vocabulary sequence of the ith voice data is inserted into the prior multitree according to the construction method of the prior multitree, and the kth comparison multitree of the ith voice data is obtained. The path formed by all nodes of the kth reserved vocabulary sequence of the ith voice data in the comparison multitree is recorded as the kth reserved path of the ith voice data; the rth node on the kth reserved path of the ith voice data and the node with the same vocabulary on the rth layer of the kth comparison multitree of the ith voice data are recorded as the synonymous node of the kth reserved path of the ith voice data on the rth layer.
[0025] Furthermore, the semantic weight of each word in each reserved vocabulary sequence is obtained according to the number of synonymous nodes of each word in each reserved vocabulary sequence in the prior multi-branch tree and the number of visits to the synonymous nodes, including the specific method of:
[0026] The semantic weight of the rth word in the kth reserved word sequence of the i-th speech data The calculation method is:
[0027]
[0028] Where: represents the number of synonymous nodes on the rth layer of the kth retained path of the ith voice data, represents the number of visits to the mth synonymous node on the rth layer of the kth retained path of the i-th voice data, represents the variance function, It represents the variance of the number of visits to all synonymous nodes on the rth layer of the kth retained path of the i-th voice data.
[0029] Furthermore, the semantic matching degree of the reserved vocabulary sequence is obtained according to the semantic weight of each vocabulary in the reserved vocabulary sequence, the number of visits to the vocabulary corresponding node in the comparison multi-branch tree of the reserved vocabulary sequence, and the anchor point of the prior multi-branch tree at the layer where the vocabulary corresponding node is located, including the specific method of:
[0030] The semantic matching degree of the kth reserved vocabulary sequence of the i-th speech data The calculation method is:
[0031]
[0032] Where: represents the number of words in the kth reserved word sequence of the i-th speech data, represents the semantic weight of the rth word in the kth reserved word sequence of the i-th speech data, represents the number of visits to the rth node in the kth retention path of the i-th voice data, represents the anchor point of the rth layer in the prior multitree, Represents the Sigmoid function.
[0033] Furthermore, the interactive text of each voice data is obtained according to the semantic matching degree of each retained vocabulary sequence; all interactive texts are used for whole-house intelligent interaction, including the specific method of:
[0034] The reserved text corresponding to the reserved vocabulary sequence with the highest semantic matching degree in the i-th voice data is used as the interactive text of the i-th microphone voice data; the interactive text of all microphone voice data is obtained, and the interactive text of all microphone voice data is input into the control system of the whole house smart home. The control system completes command matching according to the input interactive text, and sends a control command to the smart home pointed by the command, so that the smart home completes the corresponding operation and realizes whole-house smart interaction.
[0035] On the other hand, an embodiment of the present invention provides a whole-house smart home interaction system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of any one of the whole-house smart home interaction methods are implemented.
[0036] The beneficial effect of the technical solution of the present invention is: on the basis of using the fastICA algorithm to decompose the microphone voice data, multiple weight vectors with the largest non-Gaussian metrics are retained to obtain multiple projection results, and the semantics of the retained projection results are analyzed to determine the degree of semantic matching with the sentences in the existing smart home interaction dictionary, so as to obtain a decomposition result that satisfies the non-Gaussian semantics and fits the actual usage, thereby ensuring the accuracy of voice signal recognition during intelligent interaction between users and smart homes, and improving the reliability and efficiency of intelligent interaction between smart homes. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A flowchart of the steps of a whole-house smart home interaction method of the present invention;
[0039] Figure 2 This is a schematic diagram of the structure of the four prior vocabulary sequences in the prior multi-branch tree exemplified in Embodiment 1 of a whole-house smart home interaction method of the present invention. DETAILED DESCRIPTION
[0040] 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 a whole-house smart home interaction method and system proposed by the present invention, its specific implementation method, structure, features and effects, 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.
[0041] 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.
[0042] The specific scheme of a whole-house smart home interaction method and system provided by the present invention is described in detail below with reference to the accompanying drawings.
[0043] See also Figure 1 , which shows a flowchart of a whole-house smart home interaction method and system provided by an embodiment of the present invention, the method comprising the following steps:
[0044] Step S001: Collect voice data.
[0045] It should be noted that the purpose of this embodiment is to obtain the optimal decomposition result based on the preliminary decomposition of the voice data by the fastICA algorithm to improve the adaptability of the voice data decomposition result in smart home interactive applications. Therefore, the voice data of several microphones in the whole smart home are first collected.
[0046] Specifically, voice data of a preset collection time is collected for each microphone in the whole smart home, and frequency information of a number of voice data is collected per second at a preset sampling frequency. This embodiment is described with a preset collection time of 5s and a preset sampling frequency of 44.3kHz. Other embodiments can be set to other collection time and sampling frequency, which are not specifically limited in this embodiment; the voice data collected by the i-th microphone is recorded as the i-th voice data.
[0047] Step S002: Decompose the speech data to obtain a number of retained results of each speech data.
[0048] It should be noted that the principle of the conventional fastICA algorithm is to use voice data to construct a matrix and find several weight vectors with the largest non-Gaussian metrics, project the matrix in the direction of the weight vector to obtain several projection results, and use the projection results as the decomposition results of all microphone voice data; when obtaining the decomposition results of microphone voice data, if only non-Gaussianity is considered, it may result in the decomposition results obtained being in line with non-Gaussianity, but the semantics of the decomposition results are deviated from the actual situation, thereby reducing the accuracy of smart home interaction. Therefore, when using the fastICA algorithm to decompose microphone voice data, this embodiment does not directly take the projection result with the largest non-Gaussian metric as the decomposition result of the microphone voice data, but first retains multiple weight vectors with the largest non-Gaussian metric to obtain multiple projection results, which are recorded as retained results, and the retained results are further analyzed to obtain a decomposition result that conforms to non-Gaussianity and is more in line with the actual semantics.
[0049] Specifically, all speech data are input into the fastICA algorithm. For the i-th speech data, in the process of iteratively obtaining the optimal weight vector corresponding to the i-th speech data, the weight vector of the j-th iteration of the i-th speech data is recorded as the j-th weight vector of the i-th speech data; if the j-th weight vector of the i-th speech data has the largest non-Gaussian measure among all weight vectors of the i-th speech data, its non-Gaussian measure is recorded as ; Filter all weight vectors of the i-th voice data whose non-Gaussian metric is greater than the preset retention threshold, and record them as the weight vectors filtered out by the i-th voice data. In this embodiment, the preset retention threshold is 0.8 , other embodiments may be set to other values, which are not specifically limited in this embodiment; the projection result corresponding to the weight vector screened out from the i-th voice data is recorded as the retained result of the i-th voice data; the retained results of all voice data are obtained. It should be noted that the fastICA algorithm is an existing well-known technology, in which obtaining the projection result according to the weight vector is an operation included in the fastICA algorithm, which will not be described in detail in this embodiment.
[0050] Step S003, construct a priori multi-branch tree according to the existing smart home interactive dictionary, and each word in each sentence in the smart home interactive dictionary has a corresponding node in the priori multi-branch tree; the number of leaf nodes of the tree with each node as the root node in the priori multi-branch tree is recorded as the number of visits to each node; according to the number of visits to each node in each layer of the priori multi-branch tree, the anchor point property of each layer of the priori multi-branch tree is obtained.
[0051] It should be noted that since the usage scenarios of smart homes are relatively fixed, the interaction information between users and smart homes will have a high degree of repetition. The retained results of all voice data are analyzed with the prior interaction information between users and smart homes as an aid; a prior multi-branch tree is constructed based on the existing smart home voice interaction dictionary as a reference for comparing the semantics of each retained result with the actual interaction information.
[0052] Specifically, first, for all the prior sentence texts in the existing smart home voice interaction dictionary, the prior sentence texts are segmented using a Chinese word segmentation tool to obtain all the prior vocabulary of each prior sentence text, and the sequence composed of all the prior vocabulary of each prior sentence text is recorded as each prior vocabulary sequence. The Chinese word segmentation tool in this embodiment is described using the jieba library as an example. Other embodiments may select other Chinese word segmentation tools, which are not specifically limited in this embodiment;
[0053] The specific process of constructing the prior multitree is as follows: initialize an empty root node, recorded as the prior information root node; insert each prior vocabulary sequence into the multitree in the order of the vocabulary in the prior vocabulary sequence, with the layer number of the root node as the 0th layer; insert the first word in each prior vocabulary sequence into the first layer as the child node of the prior information root node; insert the second word in each prior vocabulary sequence into the second layer as the child node of the node corresponding to the previous word in the prior vocabulary sequence; insert the third word in each prior vocabulary sequence into the second layer as the child node of the node corresponding to the previous word in the prior vocabulary sequence. The child nodes of the nodes corresponding to the words are inserted into the third layer; and so on, all the words of all the prior word sequences are inserted into the multi-branch tree. In the process of inserting into the multi-branch tree, when the words of multiple prior word sequences at the same sequence position are the same, and the words corresponding to all sequences before the words at the same sequence position are the same, all the words of the multiple prior word sequences at the same sequence position are merged into a node at the corresponding layer of the sequence position in the multi-branch tree; until the multi-branch tree contains all the words of all the prior word sequences, the multi-branch tree after insertion is recorded as the prior multi-branch tree.
[0054] As an example, the prior vocabulary sequences "turn on the light in the living room", "turn on the air conditioner in the bedroom", "turn on the light in the bedroom" and "turn on the TV" have the same vocabulary "turn on" at the same level. When the three words "turn on", "bedroom" and "of" are inserted into the two sentences "turn on the air conditioner in the bedroom" and "turn on the light in the bedroom", multiple prior vocabulary sequences have the same vocabulary at the same sequence position, and all the sequences before the vocabulary at the same sequence position have the same vocabulary. Therefore, the vocabulary nodes of "turn on", "bedroom" and "of" of the two prior vocabulary sequences are merged into one node respectively; please refer to Figure 2 , which shows a schematic diagram of the structure of the three sentences of the example in the prior multi-branch tree, in which circles represent nodes, "prior information root node" represents the root node of the prior multi-branch tree, "..." represents nodes and connection relationships and vocabulary that are not specifically marked, and the text in other circles represents the vocabulary corresponding to each node, and the straight line represents the connection relationship between each node; the fixed degree of vocabulary distribution at each layer in the prior multi-branch tree is recorded as the anchor point of each layer, and the more the same vocabulary appears in a certain layer in the prior multi-branch tree, the more the same vocabulary components appear in the same position of multiple interactive sentences, and the higher the repetition of vocabulary components in this layer, the greater the anchor point of this layer; according to the number of visits to each node in the prior multi-branch tree, the anchor point of each layer of the prior multi-branch tree is obtained.
[0055] Specifically, the number of leaf nodes in the tree with each node as the root node in the prior multi-branch tree is recorded as the number of visits to each node; the anchor point of the rth layer in the prior multi-branch tree The calculation method is:
[0056]
[0057] Where: represents the number of visits to the p-th node in the r-th layer of the prior multitree, represents the number of nodes in the rth layer of the prior multitree that have the same vocabulary as the pth node, represents the number of all nodes in the rth layer of the prior multitree, represents the linear normalization function, represents the maximum value function, represents the variance function, It represents the maximum total number of visits to all words in the rth layer of the prior multitree. represents the variance of the total number of visits to all words in the rth layer in the prior multitree;
[0058] It should be noted that It indicates the ratio of the total number of visits to the words with the highest number of occurrences in the r-th layer of the prior multitree to the total number of visits to all nodes in the r-th layer of the prior multitree. The smaller the value, the richer the vocabulary in the r-th layer of the prior multitree, and the smaller the anchor point of the r-th layer in the prior multitree. The smaller the value, the more evenly the total number of visits to the words in the r-th layer of the prior multitree is distributed, and the smaller the anchor point of the r-th layer in the prior multitree is; It means that the product of the ratio of the total number of visits to the most frequently appearing words in each layer of the prior multitree to the total number of visits to all nodes in the sth layer of the prior multitree and the variance of the total number of visits to all words in each layer is linearly normalized;
[0059] Similarly, obtain the anchor point of each layer in the prior multi-branch tree.
[0060] Step S004, according to all the retention results of each voice data, obtain several reserved vocabulary sequences of each voice data; according to the prior multi-branch tree and each reserved vocabulary sequence, establish a comparative multi-branch tree of each reserved vocabulary sequence; obtain the synonymous node of each vocabulary in each reserved vocabulary sequence in the prior multi-branch tree; according to the number of synonymous nodes of each vocabulary in each reserved vocabulary sequence in the prior multi-branch tree and the number of visits to the synonymous node, obtain the semantic weight of each vocabulary in each reserved vocabulary sequence.
[0061] It should be noted that the vocabulary sequences of all retained result text information of each speech data are inserted into the prior multitree to obtain a comparison multitree containing the speech data and a retention path consisting of all corresponding nodes of the speech data in the comparison multitree; each node on the retention path corresponds to each layer in the comparison multitree, and the more nodes with the same vocabulary as each node in the comparison multitree layer where each node on the retention path is located, the more nodes with the same vocabulary as each node are located, indicating that the vocabulary corresponding to the node is related to multiple prior sentence texts, and the larger the variance of the number of visits to all nodes with the same vocabulary in the layer where each node on the retention path is located, the wider the distribution of the vocabulary corresponding to the node is and the larger the difference in the number of times it appears in multiple prior sentence texts; the degree of association of each vocabulary in the vocabulary sequence of the retained result text information with other nodes in the same layer in its corresponding comparison multitree is recorded as a semantic weight, and the semantic weight of each vocabulary in each retained vocabulary sequence of each group is obtained.
[0062] Specifically, all the retained results of each voice data are input into a speech-to-text tool for semantic recognition, and text information of all the retained results of each voice data is obtained, which is recorded as the retained text of each voice data. The speech-to-text tool in this embodiment is described by taking Google Cloud Speech-to-Text as an example, and other embodiments may select other speech-to-text tools, which are not specifically limited in this embodiment; all the retained texts of each voice data are segmented using a Chinese word segmentation tool, and a vocabulary sequence of the retained text of each voice data is obtained, which is recorded as the retained vocabulary sequence of each voice data. The Chinese word segmentation tool in this embodiment is described by taking Jieba library as an example, and other embodiments may select other Chinese word segmentation tools, which are not specifically limited in this embodiment;
[0063] Inserting the kth reserved vocabulary sequence of the ith voice data into the prior multitree according to the construction method of the prior multitree, obtaining the kth comparison multitree of the ith voice data, recording the path formed by all nodes of the kth reserved vocabulary sequence of the ith voice data in the comparison multitree as the kth reserved path of the ith voice data; recording the rth node on the kth reserved path of the ith voice data, which is the same as the node of the kth comparison multitree of the ith voice data on the rth layer, as the synonymous node of the kth reserved path of the ith voice data on the rth layer; calculating the semantic weight of the rth word in the kth reserved vocabulary sequence of the ith voice data according to the number of synonymous nodes of the kth reserved path of the ith voice data on the rth layer and the number of visits;
[0064] The semantic weight of the rth word in the kth reserved word sequence of the i-th speech data The calculation method is:
[0065]
[0066] Where: represents the number of synonymous nodes of the kth retained path of the i-th voice data at the rth layer, represents the number of visits to the mth synonymous node on the rth layer of the kth retained path of the i-th voice data, represents the variance function, represents the variance of the number of visits to all synonymous nodes on the rth layer of the kth retention path of the i-th voice data;
[0067] It should be noted that The larger the value of , the more widely the rth word in the kth reserved word sequence of the i-th voice data is distributed in the prior multi-branch tree, and the word appears in the same position of multiple different interactive sentences. The word has multiple different prefixes or suffixes, and the greater the semantic weight of the word. The larger the value of , the greater the difference in the number of visits to all synonymous nodes on the rth layer of the retained path of the kth comparison multitree of the i-th voice data, and thus the greater the semantic weight of the vocabulary;
[0068] Similarly, the semantic weight of each word in each group of each reserved word sequence is obtained.
[0069] Step S005: Obtain the semantic matching degree of the reserved vocabulary sequence according to the semantic weight of each vocabulary in the reserved vocabulary sequence, the number of visits to the vocabulary corresponding node in the comparison multi-branch tree of the reserved vocabulary sequence, and the anchor point of the prior multi-branch tree at the layer where the vocabulary corresponding node is located.
[0070] It should be noted that, for a word in a reserved vocabulary sequence, the closer the semantic features of the word are to the semantic features of the prior words in the prior sentence text, the greater the number of visits to the corresponding node of the word on its reserved path. However, it is also possible that a word is divided into multiple nodes due to different prefix words, so the number of visits is dispersed, resulting in a smaller number of visits to the corresponding node. Therefore, the semantic weight of each word in each reserved vocabulary sequence is used to assign weights to the number of visits to each node on each reserved path, and the semantic matching degree of each group of each reserved vocabulary sequence is calculated in combination with the anchor point of each layer of the prior multi-branch tree; if the anchor point of a layer is larger, it means that the vocabulary distribution on this layer is more fixed and concentrated, then the product of the number of visits to the node and the semantic weight of its corresponding word is larger, and the closer it is to the semantic feature performance of the prior vocabulary.
[0071] Specifically, the semantic matching degree of the kth reserved vocabulary sequence of the i-th voice data is The calculation method is:
[0072]
[0073] Where: represents the number of words in the kth reserved word sequence of the i-th speech data, represents the semantic weight of the rth word in the kth reserved word sequence of the i-th speech data, represents the number of visits to the rth node in the kth retention path of the i-th voice data, represents the anchor point of the rth layer in the prior multitree, Represents the Sigmoid function;
[0074] It should be noted that The larger the value is, the greater the semantic matching degree of the kth reserved vocabulary sequence of the i-th voice data is, indicating that even if the number of visits to the rth word in the kth comparison multitree of the i-th voice data is small, the word may still be a word that conforms to the semantic features of the interactive sentence, and thus the kth reserved vocabulary sequence of the i-th voice data is greater; The smaller it is, the less fixed the vocabulary of the r-th layer is. Even if the number of visits to the r-th vocabulary in the k-th reserved vocabulary sequence of the i-th voice data in the k-th comparison multitree of the i-th voice data is small, the vocabulary may still be a vocabulary that conforms to the semantic features of the interactive sentence, and thus the semantic matching degree of the k-th reserved vocabulary sequence of the i-th voice data is greater.
[0075] Similarly, the semantic matching degree of each group of each reserved vocabulary sequence is obtained.
[0076] Step S006: Obtain the interactive text of each voice data according to the semantic matching degree of each retained vocabulary sequence; all interactive texts are used for whole-house intelligent interaction.
[0077] Specifically, the retained text corresponding to the retained vocabulary sequence with the highest semantic matching degree in the i-th voice data is used as the interactive text of the i-th microphone voice data; the interactive text of all microphone voice data is obtained, and the interactive text of all microphone voice data is input into the control system of the whole-house smart home. The control system completes command matching according to the input interactive text, and sends a control command to the smart home pointed to by the command, so that the smart home completes the corresponding operation and realizes whole-house smart interaction.
[0078] It should be noted that the The model only shows negative correlation and the output of the constraint model is in In the range, As the input of this model, it can be replaced by other models with the same purpose in specific implementation. The model is used as an example for description without any specific limitation.
[0079] Finally, an embodiment of the present invention provides a whole-house smart home interaction system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above steps S001 to S006 when executing the computer program.
[0080] This embodiment is now completed.
[0081] 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, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A whole-house smart home interaction method, It is characterized in that The method comprises the following steps: Collecting voice data; decomposing the voice data to obtain a number of retained results of each voice data; According to the existing smart home interactive dictionary, a priori multi-branch tree is constructed, and each word in each sentence in the smart home interactive dictionary has a corresponding node in the priori multi-branch tree; the number of leaf nodes of the tree with each node as the root node in the priori multi-branch tree is recorded as the number of visits to each node; according to the number of visits to each node in each layer of the priori multi-branch tree, the anchor point of each layer of the priori multi-branch tree is obtained; wherein, the fixed degree of the vocabulary distribution of each layer in the priori multi-branch tree is recorded as the anchor point of each layer; According to all the retention results of each voice data, several retention word sequences of each voice data are obtained; according to the prior multi-branch tree and each retention word sequence, a comparison multi-branch tree of each retention word sequence is established; the synonymous node of each word in each retention word sequence in the prior multi-branch tree is obtained; according to the number of synonymous nodes of each word in each retention word sequence in the prior multi-branch tree and the number of visits to the synonymous node, the semantic weight of each word in each retention word sequence is obtained; Obtaining the semantic matching degree of the reserved vocabulary sequence according to the semantic weight of each word in the reserved vocabulary sequence, the number of visits to the corresponding node of the word in the comparison multi-branch tree of the reserved vocabulary sequence, and the anchor point of the prior multi-branch tree at the layer where the corresponding node of the word is located; According to the semantic matching degree of each reserved vocabulary sequence, the interactive text of each voice data is obtained; all interactive texts are used for whole-house intelligent interaction; The method of obtaining the anchor point of each layer of the priori multi-branch tree according to the number of visits to each node of each layer of the priori multi-branch tree includes the following specific methods: Anchor point property of the rth layer in a priori multitree The calculation method is: Where: represents the number of visits to the p-th node in the r-th layer of the prior multitree, represents the number of nodes in the rth layer of the prior multitree that have the same vocabulary as the pth node, represents the number of all nodes in the rth layer of the prior multitree, represents the linear normalization function, represents the maximum value function, represents the variance function, It represents the maximum total number of visits to all words in the rth layer of the prior multitree. Represents the variance of the total number of visits to all words in the rth level in the prior multitree.
2. According to claim 1, a whole-house smart home interaction method, It is characterized in that The decomposing of the speech data to obtain a number of retained results of each speech data includes the following specific methods: All speech data are input into the fastICA algorithm. For the ith speech data, in the process of iteratively obtaining the optimal weight vector corresponding to the ith speech data, the weight vector of the jth iteration of the ith speech data is recorded as the jth weight vector of the ith speech data; all weight vectors whose non-Gaussianity measure is greater than a preset retention threshold among all weight vectors of the ith speech data are screened and recorded as the weight vectors screened out of the ith speech data, and the projection result corresponding to the weight vector screened out of the ith speech data is recorded as the retention result of the ith speech data; Get the retained results of all voice data.
3. According to the whole-house smart home interaction method described in claim 1, It is characterized in that The specific method of constructing a priori multi-branch tree according to the existing smart home interactive dictionary is as follows: For all prior sentence texts in the existing smart home voice interaction dictionary, the prior sentence texts are segmented using a Chinese word segmentation tool to obtain all prior vocabulary of each prior sentence text, and the sequence formed by all prior vocabulary of each prior sentence text is recorded as each prior vocabulary sequence; Initialize an empty root node, recorded as the prior information root node; insert each prior vocabulary sequence into the multitree in the order of the vocabulary in the prior vocabulary sequence, with the layer number of the root node as the 0th layer; insert the first vocabulary in each prior vocabulary sequence into the first layer as the child node of the prior information root node; insert the second vocabulary in each prior vocabulary sequence into the second layer as the child node of the node corresponding to the previous vocabulary in the prior vocabulary sequence; insert the third vocabulary in each prior vocabulary sequence into the third layer as the child node of the node corresponding to the previous vocabulary in the prior vocabulary sequence; and so on, insert all the vocabulary of all prior vocabulary sequences into the multitree, and in the process of inserting into the multitree, when the vocabulary of multiple prior vocabulary sequences at the same sequence position is the same, and the vocabulary corresponding to all sequences before the vocabulary at the same sequence position is the same, merge all the vocabulary of multiple prior vocabulary sequences at the same sequence position into a node at the corresponding layer of the sequence position in the multitree; until the multitree contains all the vocabulary of all prior vocabulary sequences, the multitree after insertion is recorded as the prior multitree.
4. According to the whole-house smart home interaction method described in claim 1, It is characterized in that The specific method of obtaining a plurality of reserved vocabulary sequences for each voice data according to all the reserved results of each voice data is as follows: Input all the retained results of each voice data into the speech-to-text tool for semantic recognition, obtain the text information of all the retained results of each voice data, and record it as the retained text of each voice data; All the reserved texts of each voice data are segmented using a Chinese word segmentation tool to obtain a vocabulary sequence of the reserved text of each voice data, which is recorded as the reserved vocabulary sequence of each voice data.
5. According to the whole-house smart home interaction method of claim 3, It is characterized in that The method of establishing a comparison multitree for each reserved vocabulary sequence based on the prior multitree and each reserved vocabulary sequence and obtaining a synonymous node of each vocabulary in each reserved vocabulary sequence in the prior multitree includes the following specific methods: Inserting the kth reserved vocabulary sequence of the ith voice data into the prior multitree according to the prior multitree construction method, obtaining the kth comparison multitree of the ith voice data, and recording the path formed by all nodes of the kth reserved vocabulary sequence of the ith voice data in the comparison multitree as the kth reserved path of the ith voice data; The rth node on the kth retained path of the i-th voice data and the node with the same vocabulary on the rth level of the kth comparison multitree of the i-th voice data are recorded as the synonymous node of the kth retained path of the i-th voice data on the rth level.
6. According to claim 5, a whole-house smart home interaction method, It is characterized in that The method of obtaining the semantic weight of each word in each reserved vocabulary sequence according to the number of synonymous nodes of each word in each reserved vocabulary sequence in the prior multi-branch tree and the number of visits to the synonymous nodes includes: The semantic weight of the rth word in the kth reserved word sequence of the i-th speech data The calculation method is: Where: represents the number of synonymous nodes on the rth layer of the kth retained path of the ith voice data, represents the number of visits to the mth synonymous node on the rth layer of the kth retained path of the i-th voice data, represents the variance function, It represents the variance of the number of visits to all synonymous nodes on the rth layer of the kth retained path of the i-th voice data.
7. According to claim 5, a whole-house smart home interaction method, It is characterized in that The method of obtaining the semantic matching degree of the reserved vocabulary sequence according to the semantic weight of each vocabulary in the reserved vocabulary sequence, the number of visits to the vocabulary corresponding node in the comparison multi-branch tree of the reserved vocabulary sequence, and the anchor point of the prior multi-branch tree at the layer where the vocabulary corresponding node is located includes: The semantic matching degree of the kth reserved vocabulary sequence of the i-th speech data The calculation method is: Where: represents the number of words in the kth reserved word sequence of the i-th speech data, represents the semantic weight of the rth word in the kth reserved word sequence of the i-th speech data, represents the number of visits to the rth node in the kth retention path of the i-th voice data, represents the anchor point of the rth layer in the prior multitree, Represents the Sigmoid function.
8. According to claim 1, a whole-house smart home interaction method, It is characterized in that The method of obtaining the interactive text of each voice data according to the semantic matching degree of each reserved vocabulary sequence; all interactive texts are used for whole-house intelligent interaction, including the following specific methods: The reserved text corresponding to the reserved vocabulary sequence with the highest semantic matching degree in the i-th voice data is used as the interactive text of the i-th microphone voice data; the interactive text of all microphone voice data is obtained, and the interactive text of all microphone voice data is input into the control system of the whole house smart home. The control system completes command matching according to the input interactive text, and sends a control command to the smart home pointed by the command, so that the smart home completes the corresponding operation and realizes whole-house smart interaction.
9. A whole-house smart home interactive system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Number analysis method and system with fuzzy recognition function
CN103209126A
Verbal skill generation method and device based on artificial intelligence, device and memory medium
CN107423363A
Blind source separation rapid method and system based on multi-standard fusion frequency point screening
CN108877831A
Document question and answer method based on multi-way tree and large-scale language model and related equipment
CN116932730A
Identification system using words tree
CN1349211A
