Human-computer interaction method and device based on semantic analysis and electronic equipment

By identifying the language type of voice commands and modifying the language model, speech-to-text conversion and keyword extraction are performed. Combined with knowledge graphs to generate control commands, the accuracy problem of warehouse robots in multilingual environments is solved, and efficient human-computer interaction and automated operation are achieved.

CN118968978APending Publication Date: 2024-11-15GUDONG TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410982477.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Existing human-machine interaction systems for warehouse robots have poor accuracy in multilingual environments and are difficult to adapt to the speech recognition and operation requirements in multilingual environments.

Method used

By acquiring the acoustic features of voice commands, the target language is identified, the language model parameters are modified, speech-to-text conversion is performed, keywords are extracted and associated with a knowledge graph, and a sequence of control commands is generated to execute warehousing operations.

Benefits of technology

It improves the accuracy and adaptability of voice recognition, realizes automated control from voice commands to warehouse operations, enhances the efficiency and accuracy of human-computer interaction, reduces the error rate of manual operation, and improves the level of intelligence in warehouse management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968978A_ABST
    Figure CN118968978A_ABST
Patent Text Reader

Abstract

The invention discloses a man-machine interaction method and device based on semantic analysis and electronic equipment, and relates to the field of robots. The method comprises the following steps: acquiring a voice instruction of an operator; identifying a target language type corresponding to the voice instruction; modifying parameters of a preset language model according to the target language type to obtain a corresponding target language model; converting the voice instruction into text content according to a target language model; performing keyword extraction on the text content to obtain corresponding keywords; associating the keyword with a storage service entity in a preset knowledge graph to obtain corresponding storage service semantic information; and converting the storage business semantic information into a corresponding control instruction sequence, and executing a corresponding storage operation according to the control instruction sequence. By implementing the technical scheme provided by the invention, the accuracy of man-machine interaction in a multilingual environment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics, and in particular to a human-computer interaction method, device and electronic equipment based on semantic analysis. Background Art

[0002] With the rapid development of warehouse automation and intelligent technology, warehouse robots are increasingly used in logistics, warehouse management and distribution. These robots can significantly improve the efficiency and accuracy of warehouse operations and reduce labor costs. At the same time, as business needs become more diverse and complex, it is particularly important for operators to conduct effective human-machine interaction with warehouse robots through voice recognition, which directly affects the flexibility and response speed of operations.

[0003] At present, human-computer interaction systems related to warehouse robots often only support one language and have poor accuracy in multilingual environments.

[0004] Therefore, there is an urgent need for a human-computer interaction method, device and electronic device based on semantic analysis. Summary of the invention

[0005] The present application provides a human-computer interaction method, device and electronic device based on semantic analysis, which improves the accuracy of human-computer interaction in a multilingual environment.

[0006] In a first aspect of the present application, a human-computer interaction method based on semantic analysis is provided, the method comprising: obtaining a voice instruction of an operator; identifying a target language type corresponding to the voice instruction; modifying parameters of a preset language model according to the target language type to obtain a corresponding target language model; converting the voice instruction into text content according to the target language model; performing keyword extraction on the text content to obtain corresponding keywords; associating the keywords with warehousing business entities in a preset knowledge graph to obtain corresponding warehousing business semantic information; converting the warehousing business semantic information into a corresponding control instruction sequence, and executing corresponding warehousing operations according to the control instruction sequence.

[0007] By adopting the above technical solution, by obtaining the operator's voice instructions, identifying the target language type corresponding to the voice instructions, and modifying the parameters of the preset language model according to the target language type, the corresponding target language model can be obtained, which can adapt to the speech recognition needs in different language environments and improve the accuracy and adaptability of speech recognition. The target language model is used to convert the voice instructions into text content, and the text content is extracted by keywords, and the keywords are associated with the warehousing business entities in the preset knowledge graph to obtain the corresponding warehousing business semantic information, realizing the accurate mapping of voice instructions to warehousing business semantics. Finally, the warehousing business semantic information is converted into the corresponding control instruction sequence, and the warehousing operation is performed according to the control instruction sequence, realizing the automatic control of voice instructions to warehousing operations, improving the efficiency and accuracy of human-computer interaction, reducing the error rate of manual operation, and improving the intelligent level of warehousing management.

[0008] Optionally, the identifying the target language type corresponding to the voice instruction specifically includes: extracting acoustic features of the voice instruction; inputting the acoustic features into a preset recognition model to obtain likelihood scores for various language types; sorting the multiple likelihood scores from large to small to obtain a target likelihood score, the target likelihood score being the maximum likelihood score among the multiple likelihood scores; and determining the target language type corresponding to the target likelihood score.

[0009] By adopting the above technical solution, by extracting the acoustic features of the voice command and inputting the acoustic features into the preset recognition model, the likelihood scores of each language type are obtained, the likelihood scores are sorted, and the target language type corresponding to the maximum likelihood score is obtained, the language type to which the voice command belongs can be accurately identified. This language type recognition method based on acoustic features and likelihood scores makes full use of the acoustic feature information of the voice command, combined with the preset recognition model for calculation and judgment, and improves the accuracy of language type recognition. At the same time, through likelihood score sorting and maximum likelihood selection, the most likely target language type can be determined from multiple candidate language types, laying a good foundation for subsequent language model adaptation and semantic analysis.

[0010] Optionally, the parameters include a vocabulary and a probability distribution, and modifying the parameters of the preset language model according to the target language type to obtain the corresponding target language model specifically includes: obtaining a target vocabulary corresponding to the target language type, and replacing the vocabulary of the preset language model with the target vocabulary; obtaining an N-gram language model of the target language type, and replacing the probability distribution of the preset language model according to the N-gram language model to obtain the target language model.

[0011] By adopting the above technical solution, by obtaining the target vocabulary corresponding to the target language type and replacing the vocabulary of the preset language model with the target vocabulary, the vocabulary characteristics of the target language type can be quickly adapted to improve the expressive ability of the preset language model for the target language. At the same time, the N-gram language model of the target language type is obtained, and the probability distribution of the preset language model is replaced according to the N-gram language model to obtain the target language model, which can make full use of the grammatical and semantic characteristics of the target language type and improve the modeling accuracy of the preset language model for the target language type. Through vocabulary replacement and probability distribution replacement, a target language model adapted to the target language type can be quickly generated. The generation of the target language model also provides a more accurate and reliable language representation for subsequent speech recognition and semantic analysis, improving the performance and effect of the entire human-computer interaction system.

[0012] Optionally, the keyword extraction of the text content to obtain corresponding keywords specifically includes: performing word segmentation processing on the text content to obtain word segmentation results; performing part-of-speech tagging on the word segmentation results to obtain part-of-speech tagging results; extracting nouns, verbs, adjectives and numerals from the part-of-speech tagging results as the keywords.

[0013] By adopting the above technical solution, the text content can be divided into the smallest semantic units by performing word segmentation processing on the text content, laying the foundation for subsequent keyword extraction and semantic analysis. By performing part-of-speech tagging on the word segmentation results, the part-of-speech information of each word can be identified, providing an important grammatical basis for keyword extraction. Nouns, verbs, adjectives and numerals can be extracted from the part-of-speech tagging results as keywords, and the important role of these parts of speech in expressing semantics can be fully utilized to obtain the core semantic information of the text content. Through word segmentation, part-of-speech tagging and keyword extraction, key semantic components can be accurately identified from the text content, reducing the interference of irrelevant information and improving the pertinence and efficiency of semantic analysis. At the same time, this part-of-speech-based keyword extraction method also has good language adaptability, can be applied to text analysis tasks in different languages ​​and fields, and improves the versatility and practicality of keyword extraction.

[0014] Optionally, associating the keyword with the warehousing business entity in the preset knowledge graph to obtain the corresponding warehousing business semantic information specifically includes: calculating the semantic similarity between the keyword and the warehousing business entity in the preset knowledge graph; if it is determined that the similarity between the keyword and the warehousing business entity is greater than a preset similarity threshold, then determining the warehousing business semantic information corresponding to the warehousing business entity.

[0015] By adopting the above technical solution, by calculating the semantic similarity between the keyword and the warehousing business entity in the preset knowledge graph, the semantic association between the keyword and the warehousing business entity can be quantified, providing a measurable basis for the matching of the keyword and the warehousing business entity. By setting a preset similarity threshold, the accuracy and recall rate of the matching between the keyword and the warehousing business entity can be controlled to improve the reliability of the matching results. When the similarity between the keyword and the warehousing business entity is greater than the preset similarity threshold, the warehousing business semantic information corresponding to the entity can be determined to achieve accurate mapping of the keyword to the warehousing business semantic information. This keyword and entity matching method based on semantic similarity makes full use of the semantic information in the knowledge graph, establishes the association between the keyword and the entity by calculating the similarity, and improves the accuracy of semantic understanding. At the same time, by setting the preset similarity threshold, the granularity and scope of the match can be flexibly adjusted to adapt to different application scenarios and needs.

[0016] Optionally, the converting of the warehousing business semantic information into a corresponding control instruction sequence specifically includes: extracting corresponding warehousing operation types and warehousing operation parameters according to the warehousing business semantic information; generating corresponding operation procedures according to the warehousing operation types; filling the warehousing operation parameters into the operation procedures to obtain target operation procedures; converting each operation in the target operation procedures into corresponding control instructions to form the control instruction sequence.

[0017] By adopting the above technical solution, by extracting the corresponding storage operation type and storage operation parameters according to the storage business semantic information, the semantic information can be converted into executable operation instructions, providing clear goals and parameters for automated control. By generating the corresponding operation process according to the storage operation type, the complex storage operation can be decomposed into a series of orderly steps, improving the standardization and controllability of the operation. By filling the storage operation parameters into the operation process to obtain the target operation process, the specific storage operation parameters can be combined with the operation steps to form a complete operation instruction sequence. Finally, each operation in the target operation process is converted into a corresponding control instruction to form a control instruction sequence, which can directly drive the storage equipment to perform the corresponding operation and realize automated control. This method of converting semantic information into a control instruction sequence realizes a seamless connection from semantic understanding to operation execution, and improves the efficiency and accuracy of human-computer interaction. At the same time, through the generation of the operation process and the filling of parameters, the corresponding control instructions can be dynamically generated according to different semantic information, which has strong flexibility and adaptability and can cope with the changing storage business scenarios and needs.

[0018] Optionally, before obtaining the operator's voice instructions, the method also includes: collecting corpus data in multiple languages, and cleaning and preprocessing the corpus data; performing word segmentation on the corpus data of each of the languages ​​to obtain a vocabulary of each of the languages; based on the vocabulary, counting the N-gram frequency of each of the languages ​​to obtain an N-gram model of each of the languages; calculating the N-gram probability of each of the languages ​​based on the N-gram model to obtain a probability distribution of each of the languages; and storing the vocabulary and probability distribution of each of the languages ​​as the preset language model.

[0019] By adopting the above technical solution, by collecting corpus data in multiple languages, and cleaning and preprocessing the corpus data, high-quality language data resources can be obtained, laying a good data foundation for building a preset language model. By performing word segmentation on the corpus data in various languages, the vocabulary of each language can be obtained. By collecting corpus data in multiple languages, and cleaning and preprocessing the corpus data, high-quality language data resources can be obtained, laying a good data foundation for building a preset language model.

[0020] In a second aspect of the present application, a human-computer interaction device based on semantic analysis is provided, the device comprising: an acquisition module and a processing module, wherein: the acquisition module is used to acquire the voice instructions of the operator; the processing module is used to identify the target language type corresponding to the voice instructions; the processing module is also used to modify the parameters of the preset language model according to the target language type to obtain the corresponding target language model; the processing module is also used to convert the voice instructions into text content according to the target language model; the processing module is also used to extract keywords from the text content to obtain corresponding keywords; the processing module is also used to associate the keywords with warehousing business entities in a preset knowledge graph to obtain corresponding warehousing business semantic information; the processing module is also used to convert the warehousing business semantic information into a corresponding control instruction sequence, and perform corresponding warehousing operations according to the control instruction sequence.

[0021] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.

[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By obtaining the operator's voice instructions, identifying the target language type corresponding to the voice instructions, and modifying the parameters of the preset language model according to the target language type, the corresponding target language model can be obtained, which can adapt to the voice recognition needs in different language environments and improve the accuracy and adaptability of voice recognition. The target language model is used to convert the voice instructions into text content, and keywords are extracted from the text content. The keywords are associated with the warehousing business entities in the preset knowledge graph to obtain the corresponding warehousing business semantic information, and the accurate mapping of voice instructions to warehousing business semantics is realized. Finally, the warehousing business semantic information is converted into the corresponding control instruction sequence, and the warehousing operation is performed according to the control instruction sequence, realizing the automatic control of voice instructions to warehousing operations, improving the efficiency and accuracy of human-computer interaction, reducing the error rate of manual operations, and improving the intelligent level of warehousing management.

[0024] 2. By extracting the acoustic features of the voice command and inputting the acoustic features into the preset recognition model, the likelihood scores of each language type are obtained, the likelihood scores are sorted, and the target language type corresponding to the maximum likelihood score is obtained, so that the language type to which the voice command belongs can be accurately identified. This language type recognition method based on acoustic features and likelihood scores makes full use of the acoustic feature information of the voice command, combined with the preset recognition model for calculation and judgment, and improves the accuracy of language type recognition. At the same time, through likelihood score sorting and maximum likelihood selection, the most likely target language type can be determined from multiple candidate language types, laying a good foundation for subsequent language model adaptation and semantic analysis.

[0025] 3. By obtaining the target vocabulary corresponding to the target language and replacing the vocabulary of the preset language model with the target vocabulary, the vocabulary characteristics of the target language can be quickly adapted to improve the expressive ability of the preset language model for the target language. At the same time, the N-gram language model of the target language is obtained, and the probability distribution of the preset language model is replaced according to the N-gram language model to obtain the target language model. This can make full use of the grammatical and semantic characteristics of the target language and improve the modeling accuracy of the preset language model for the target language. Through vocabulary replacement and probability distribution replacement, a target language model adapted to the target language can be quickly generated. The generation of the target language model also provides a more accurate and reliable language representation for subsequent speech recognition and semantic analysis, improving the performance and effect of the entire human-computer interaction system. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flowchart of a human-computer interaction method based on semantic analysis disclosed in an embodiment of the present application; Figure 2 It is a module schematic diagram of a human-computer interaction device based on semantic analysis disclosed in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.

[0027] Explanation of the reference numerals: 201, acquisition module; 202, processing module; 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION

[0028] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0029] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0030] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0031] This application provides a human-computer interaction method based on semantic analysis. Figure 1 , Figure 1 1 is a flowchart of a human-computer interaction method based on semantic analysis provided in an embodiment of the present application. The method is applied to a warehouse robot and includes steps S101 to S107, which are as follows: Step S101: Acquire the operator's voice command.

[0032] In step S101, the warehouse robot needs to be equipped with a voice receiving module, such as a microphone array, an acoustic sensor, etc., for receiving voice commands issued by the operator. These voice receiving modules can be installed on the body of the warehouse robot, such as the head, chest, etc., or can be connected to the warehouse robot in the form of independent devices. The voice receiving module converts the operator's voice into an electrical signal and transmits the electrical signal to the control system of the warehouse robot.

[0033] Step S102: Identify the target language type corresponding to the voice command.

[0034] In step S102, the acoustic features of the voice command are extracted; the acoustic features are input into a preset recognition model to obtain likelihood scores for various language types; multiple likelihood scores are sorted from large to small to obtain a target likelihood score, which is the maximum likelihood score among the multiple likelihood scores; and the target language type corresponding to the target likelihood score is determined.

[0035] Specifically, a preset recognition model is pre-built in the warehouse robot. The construction process of the preset recognition model is as follows: The warehouse robot collects voice data for training and verifying the preset recognition model. The warehouse robot collects voice samples from voice data sets in multiple languages, including languages ​​of different countries, or dialects and accents of different regions. These data sets are derived from public voice libraries. At the same time, the warehouse robot ensures that each voice sample has a clear language label for use in the training process. The warehouse robot extracts useful acoustic features from each voice sample. The steps of extracting acoustic features include pre-emphasis, framing, windowing, Fourier transform and Mel frequency transform. The pre-emphasis step processes the speech signal through a high-pass filter to enhance the high-frequency components and counteract the frequency attenuation during the pronunciation process; the framing divides the speech signal into overlapping frames, each frame is usually 20-30 milliseconds, to capture the short-term dynamics of the speech signal; the windowing step is to apply a Hanning window or a Hamming window to each frame to reduce the discontinuity of the frame boundary; the Fourier transform step is to perform a fast Fourier transform (FFT) on each frame and convert it to the frequency domain for analysis; the Mel frequency transform step is to map the FFT result to the Mel frequency, which is closer to the auditory characteristics of the human ear. After completing the acoustic feature extraction step, the warehouse robot uses the extracted acoustic features and language labels to train a Gaussian mixture model to recognize different languages, that is, the preset recognition model.

[0036] Based on the construction of the preset recognition model, the warehouse robot extracts acoustic features from the acquired voice commands. Acoustic features are the characteristic representations of voice signals in the time domain and frequency domain. The acoustic features used in the embodiment of the present application are Mel-frequency cepstral coefficients (MFCC). The feature extraction process also includes pre-emphasis, framing, windowing, Fourier transform, and Mel-frequency transform steps.

[0037] The warehouse robot inputs the extracted acoustic features into the preset recognition model to calculate the likelihood scores of the voice command belonging to each language category. The input of the preset recognition model is the acoustic features of the voice command, and the output is the likelihood scores of each language category, indicating the possibility that the voice command belongs to each language category. After obtaining the likelihood scores of each language category, the warehouse robot sorts these scores from large to small. The higher the likelihood score, the greater the possibility that the voice command belongs to the language category. After sorting, the likelihood score corresponding to the language category with the highest score is selected as the target likelihood score, that is, the language category to which the voice command is most likely to belong.

[0038] The warehouse robot determines the target language type corresponding to the voice command based on the target likelihood score. The target language type can be a specific language, such as Chinese, English, Japanese, etc., or a language family, such as Sino-Tibetan, Indo-European, etc., or a dialect or accent, such as Mandarin and Cantonese.

[0039] For example, in an international intelligent warehousing system, operators may come from different countries and regions and use different languages ​​to issue voice commands. When a Japanese operator says to the warehouse robot "Take 10 items A from area B", the warehouse robot first extracts the MFCC features of the voice command, and then inputs the MFCC features into the preset recognition model. The preset recognition model calculates that the likelihood scores of the voice command belonging to the three languages ​​of Japanese, Chinese, and English are 0.8, 0.1, and 0.1 respectively. After sorting the three scores, the warehouse robot finds that Japanese has the highest likelihood score, so it determines that the target language of the voice command is Japanese.

[0040] Step S103: modifying the parameters of the preset language model according to the target language type to obtain a corresponding target language model.

[0041] In step S103, the parameters include a vocabulary and a probability distribution, and the parameters of the preset language model are modified according to the target language type to obtain the corresponding target language model, specifically including: obtaining a target vocabulary corresponding to the target language type, and replacing the vocabulary of the preset language model with the target vocabulary; obtaining an N-gram language model of the target language type, and replacing the probability distribution of the preset language model according to the N-gram language model to obtain the target language model.

[0042] Specifically, the warehouse robot obtains the target vocabulary corresponding to the target language type according to the identified target language type. The target vocabulary contains commonly used words and expressions in the target language type, and is the basis for the language model to correctly recognize and generate text. The target vocabulary can be obtained from a professional language database or through cooperation with language experts. After obtaining the target vocabulary, the warehouse robot replaces the vocabulary in the preset language model with the target vocabulary. This step can be completed by modifying the model's configuration file or the entry in the database. Next, the warehouse robot needs to update the probability distribution of the preset language model based on the N-gram language model of the target language type. The N-gram language model describes the probability of association between words and is the key to determining the probability of occurrence of word sequences.

[0043] The step of obtaining the N-gram language model is based on a large amount of text data and is achieved by statistically analyzing the frequency of occurrence of various word combinations. The text data can come from books, news, Internet texts, etc. After obtaining the N-gram language model of the target language, the N-gram language model contains the conditional probabilities of all N-grams. The warehouse robot replaces these conditional probabilities into the preset language model and updates its probability distribution. Specifically, for each N-gram in the preset language model, the warehouse robot searches for the corresponding conditional probability in the N-gram language model and assigns it to the corresponding item in the preset language model. For N-grams that exist in the preset language model but do not exist in the N-gram language model, the warehouse robot can set its conditional probability to a very small default value. After replacing the conditional probabilities of all N-grams, the target language model is obtained.

[0044] For example, suppose that in a multilingual smart warehousing system, the warehousing robot is initially equipped with an English language model. When the warehousing robot identifies the target language as Spanish through acoustic features, the warehousing robot operating system extracts the Spanish vocabulary and N-gram model data from the built-in language library. Then, the warehousing robot automatically replaces the original English vocabulary and probability distribution with the corresponding data in Spanish. In this way, the robot can accurately understand and respond to Spanish commands when receiving and executing voice commands.

[0045] In one possible implementation, the process of constructing a preset language model includes: collecting corpus data in multiple languages, cleaning and preprocessing the corpus data; performing word segmentation on the corpus data in various languages ​​to obtain a vocabulary of each language; based on the vocabulary, counting the N-gram frequency of each language to obtain an N-gram model of each language; according to the N-gram model, calculating the N-gram probability of each language to obtain a probability distribution of each language; and storing the vocabulary and probability distribution of each language as a preset language model.

[0046] Specifically, according to the application scenarios and service objects of the warehouse robot, determine the types of languages ​​that need to be supported, such as Chinese, English, Japanese, Spanish, etc. Then, collect the corresponding corpus data for each language, including written corpus and spoken corpus. Written corpus can be obtained from news, documents, books and other channels, and spoken corpus can be obtained through recordings, interviews, conversations and other methods. The collected corpus data contains a lot of noise, repetitions, errors, etc., and needs to be preprocessed and cleaned. Preprocessing includes character encoding conversion, format normalization, and repetition removal, and cleaning includes spelling correction, sentence segmentation, part-of-speech tagging, and named entity recognition. For different languages, the method and granularity of word segmentation may be different. For example, Western languages ​​use spaces as natural delimiters for words, and word segmentation is relatively simple; while East Asian languages ​​such as Chinese and Japanese do not have explicit word boundaries, and word segmentation needs to be performed using dictionary-based and statistical methods. The goal of word segmentation is to divide the corpus data into the smallest, meaningful semantic units, namely "words". The word segmentation results can count the unique words that appear in each language and build the corresponding vocabulary. The vocabulary is a collection of all words in a language, including words, phrases, proper nouns, etc. It is the basis for building a preset language model.

[0047] The warehouse robot can construct an N-gram model by using the vocabulary obtained through word segmentation. The N-gram model is performed by calculating and counting the frequency of occurrence of each N-gram (such as a single word, a word pair, a combination of three words, etc.) in the corpus. These frequency data will help the model understand and predict the combination rules of vocabulary in the language. Based on the frequency data of N-grams, the probability of occurrence of each N-gram in each language needs to be calculated next. These probabilities reflect the possibility of a word (or phrase) following another word (or phrase) in a given language environment. Finally, the vocabulary and N-gram probability distribution of each language are stored in the preset language model.

[0048] Step S104: converting the voice instruction into text content according to the target language model.

[0049] In step S104, the warehouse robot inputs the extracted acoustic feature vectors into the speech recognition engine using the target language model adjusted in step S103. Under the action of the speech recognition engine, the continuous acoustic feature vectors are converted into a series of words or characters with the highest probability. Then, the warehouse robot uses a decoding algorithm (such as beam search) combined with the statistical information in the target language model to convert these prediction results into coherent text content.

[0050] Step S105: extract keywords from the text content to obtain corresponding keywords.

[0051] In step S105, the text content is segmented to obtain a segmentation result; the segmentation result is tagged with parts of speech to obtain a part of speech tagging result; and nouns, verbs, adjectives and numerals are extracted from the part of speech tagging result as keywords.

[0052] Specifically, the warehouse robot needs to preprocess the text content obtained by speech recognition to prepare for subsequent word segmentation and part-of-speech tagging. Preprocessing tasks include character encoding conversion, case normalization, punctuation removal, and stop word removal. Character encoding conversion can convert text content into a unified encoding format, such as UTF-8. Case normalization converts all letters to lowercase or uppercase to eliminate the ambiguity caused by case differences. Punctuation removal can filter out non-text elements such as punctuation and special characters in the text content. Stop word removal can remove high-frequency but meaningless words such as articles, prepositions, conjunctions, etc. in the text content. After preprocessing, the text content will become more standardized and concise, which is convenient for subsequent natural language processing.

[0053] After preprocessing, the warehouse robot performs word segmentation on the text content, dividing the continuous string into independent vocabulary units. The warehouse robot uses rule-based or statistical word segmentation methods, such as maximum matching method and hidden Markov model. After word segmentation, the text content will become independent vocabulary units, such as "Please put the red box on shelf number two."

[0054] After word segmentation, the warehouse robot needs to perform part-of-speech tagging on the word segmentation results and assign a grammatical category label to each vocabulary unit, such as noun, verb, and adjective. Part-of-speech tagging can reveal the grammatical function and semantic role of vocabulary in a sentence, and provide an important linguistic basis for keyword extraction. Warehouse robots can use rule-based or statistical part-of-speech tagging methods, such as hidden Markov models, maximum entropy models, conditional random fields, etc. The part-of-speech tagging process needs to combine the lexical and syntactic characteristics of the language, as well as the part-of-speech distribution and tagging set of the field. Warehouse robots can use pre-trained part-of-speech tagging models, such as hidden Markov models. After part-of-speech tagging, each vocabulary unit will be assigned a part-of-speech label, such as "Please put the red box on the second shelf on the second shelf."

[0055] After part-of-speech tagging, the warehouse robot needs to extract the key information of the instruction from the part-of-speech tagging results to form a keyword sequence. According to the task characteristics and domain knowledge of the warehouse robot, keywords usually include nouns (items, locations, etc.), verbs (operations, behaviors, etc.), adjectives (attributes, states, etc.), numerals (quantity, numbers, etc.), etc. The warehouse robot can traverse the part-of-speech tagging results and select the corresponding part-of-speech vocabulary as keywords based on the predefined keyword set (nouns, verbs, adjectives and numerals). For example, for the above part-of-speech tagging results, the warehouse robot can extract keywords such as "red / n", "box / n", "put / v", "two / m", "number / q", and "shelf / n" to form the keyword sequence "red box put on shelf number two".

[0056] Step S106: Associate the keyword with the warehousing business entity in the preset knowledge graph to obtain the corresponding warehousing business semantic information.

[0057] In step S106, the semantic similarity between the keyword and the warehousing business entity in the preset knowledge graph is calculated; if it is determined that the similarity between the keyword and the warehousing business entity is greater than the preset similarity threshold, the warehousing business semantic information corresponding to the warehousing business entity is determined.

[0058] Specifically, the warehousing robot needs to load the pre-built warehousing business knowledge graph (preset knowledge graph). The construction process of the preset knowledge graph includes the following steps: the warehousing robot collects structured data and unstructured data in the warehousing business field, cleans and pre-processes the structured data and unstructured data; performs entity extraction and relationship extraction on the structured data to obtain preliminary warehousing business entities and relationships between entities; performs text mining and semantic analysis on the unstructured data to extract potential warehousing business entities and relationships between entities; integrates the preliminary warehousing business entities and relationships between entities with the potential warehousing business entities and relationships between entities to construct a warehousing business knowledge graph; performs attribute completion and consistency verification on the warehousing business knowledge graph to obtain a complete warehousing business knowledge graph as the preset knowledge graph.

[0059] After loading the preset knowledge graph, the warehousing robot needs to calculate the semantic similarity between the extracted keywords and the warehousing business entities in the knowledge graph to determine their semantic association. Semantic similarity calculation can be based on multiple dimensions such as word form, word meaning, and context, and comprehensively utilize string matching, word vector representation, and knowledge embedding technology. For example, the warehousing robot can use the edit distance string measurement method to calculate the surface similarity between the keyword and the entity name of the preset knowledge graph. After calculating the semantic similarity, the warehousing robot needs to determine whether there is an association between the keyword and the warehousing business entity based on the preset similarity threshold. The preset similarity threshold is an empirical value, which can be adjusted and optimized according to the characteristics and actual effects of the warehousing business, and this application does not limit this. If the semantic similarity between the keyword and the warehousing business entity is greater than the preset similarity threshold, it can be considered that they are semantically associated. After determining the association between the keyword and the warehousing business entity, the warehousing robot can obtain the warehousing business semantic information corresponding to the entity through the preset knowledge graph. The warehousing business semantic information includes the type, attributes, and relationship of the warehousing business entity, reflecting the role, function, and status of the entity in the warehousing business. For example, for the "shelf" entity, the storage robot can obtain its type (such as "equipment"), attributes (such as "capacity", "material"), relationship (such as "located in" a certain warehouse) and other semantic information from the preset knowledge graph. For another example, for the "transportation" entity, the storage robot can obtain its type (such as "operation"), attributes (such as "starting point", "end point"), relationship (such as "acting on" a certain product) and other semantic information.

[0060] Step S107: converting the warehousing business semantic information into a corresponding control instruction sequence, and executing the corresponding warehousing operation according to the control instruction sequence.

[0061] In step S107, the corresponding warehousing operation type and warehousing operation parameters are extracted according to the warehousing business semantic information; the corresponding operation process is generated according to the warehousing operation type; the warehousing operation parameters are filled into the operation process to obtain the target operation process; each operation in the target operation process is converted into a corresponding control instruction to form a control instruction sequence.

[0062] Specifically, the warehouse robot needs to extract specific warehouse operation types and warehouse operation parameters from the warehouse business semantic information. Warehouse operation types refer to the basic actions or tasks of warehouse operations, such as handling, loading, unloading, inventory, etc. Warehouse operation parameters refer to information such as materials, locations, quantities, etc. related to the operation type, such as starting point, end point, and cargo number. The warehouse robot can use predefined keyword matching rules to identify the operation vocabulary in the warehouse business semantic information and extract parameter information associated with the warehouse operation type. For example, for the semantic information "carry the red box from shelf No. 1 to shelf No. 2", the warehouse robot can extract the warehouse operation type as "carrying" and the warehouse operation parameters as "red box" (cargo), "shelf No. 1" (starting point), and "shelf No. 2" (end point).

[0063] After extracting the storage operation type and storage operation parameters, the storage robot needs to generate the corresponding operation process according to the storage operation type. The operation process is a series of steps and actions required to complete this type of operation, usually represented in the form of a directed acyclic graph (DAG). Each storage operation type corresponds to a pre-defined operation process flow, which reflects the basic logic and sequence of the operation steps. For example, the operation process of the "carrying" operation may include: "moving to the starting point", "identifying and locating goods", "grabbing goods", "moving to the end point", "placing goods" and other steps.

[0064] After generating the operation process, the warehouse robot needs to fill the extracted warehouse operation parameters into the operation process to make it a complete and specific operation plan. When filling in the warehouse operation parameters, it is necessary to consider the type, format, unit, etc. of the warehouse operation parameters and convert them into a form that can be accepted and processed by each step of the operation process. After filling in the warehouse operation parameters, the warehouse robot needs to convert each operation step in the operation process into corresponding control instructions to form an executable control instruction sequence. Control instructions are direct control and scheduling of robot hardware (such as motors, sensors) and software (such as motion planning, environmental perception), which are implemented through the underlying programming language. After generating the control instruction sequence, the warehouse robot can execute each instruction in sequence according to the logical order and time constraints of the instructions to complete the entire warehouse operation task.

[0065] Reference Figure 2The present application also provides a human-computer interaction device based on semantic analysis, which is a warehousing robot. The warehousing robot includes an acquisition module 201 and a processing module 202, wherein: the acquisition module 201 is used to acquire the voice instructions of the operator; the processing module 202 is used to identify the target language type corresponding to the voice instructions; the processing module 202 is also used to modify the parameters of the preset language model according to the target language type to obtain the corresponding target language model; the processing module 202 is also used to convert the voice instructions into text content according to the target language model; the processing module 202 is also used to extract keywords from the text content to obtain corresponding keywords; the processing module 202 is also used to associate the keywords with the warehousing business entities in the preset knowledge graph to obtain corresponding warehousing business semantic information; the processing module 202 is also used to convert the warehousing business semantic information into a corresponding control instruction sequence, and perform corresponding warehousing operations according to the control instruction sequence.

[0066] In one possible implementation, the processing module 202 identifies the target language type corresponding to the voice command, specifically including: the processing module 202 extracts the acoustic features of the voice command; the processing module 202 inputs the acoustic features into a preset recognition model to obtain the likelihood scores of each language type; the processing module 202 sorts the multiple likelihood scores from large to small to obtain a target likelihood score, the target likelihood score being the maximum likelihood score among the multiple likelihood scores; the processing module 202 determines the target language type corresponding to the target likelihood score.

[0067] In a possible implementation, the parameters include a vocabulary and a probability distribution, and the processing module 202 modifies the parameters of the preset language model according to the target language type to obtain the corresponding target language model, specifically including: the acquisition module 201 acquires the target vocabulary corresponding to the target language type, and replaces the vocabulary of the preset language model with the target vocabulary; the acquisition module 201 acquires the N-gram language model of the target language type, and replaces the probability distribution of the preset language model according to the N-gram language model to obtain the target language model.

[0068] In a possible implementation, the processing module 202 performs keyword extraction on the text content to obtain corresponding keywords, which specifically includes: the processing module 202 performs word segmentation processing on the text content to obtain word segmentation results; the processing module 202 performs part-of-speech tagging on the word segmentation results to obtain part-of-speech tagging results; the processing module 202 extracts nouns, verbs, adjectives and numerals as keywords from the part-of-speech tagging results.

[0069] In a possible implementation, the processing module 202 associates the keyword with the warehousing business entity in the preset knowledge graph to obtain the corresponding warehousing business semantic information, specifically including: the processing module 202 calculates the semantic similarity between the keyword and the warehousing business entity in the preset knowledge graph; if the processing module 202 determines that the similarity between the keyword and the warehousing business entity is greater than a preset similarity threshold, then determines the warehousing business semantic information corresponding to the warehousing business entity.

[0070] In a possible implementation, the processing module 202 converts the warehousing business semantic information into a corresponding control instruction sequence, specifically including: the processing module 202 extracts the corresponding warehousing operation type and warehousing operation parameters according to the warehousing business semantic information; the processing module 202 generates a corresponding operation process according to the warehousing operation type; the processing module 202 fills the warehousing operation parameters into the operation process to obtain the target operation process; the processing module 202 converts each operation in the target operation process into a corresponding control instruction to form a control instruction sequence.

[0071] In a possible implementation, before the acquisition module 201 acquires the voice instructions of the operator, the method also includes: the processing module 202 collects corpus data in multiple languages, and cleans and preprocesses the corpus data; the processing module 202 performs word segmentation on the corpus data in various languages ​​to obtain the vocabulary of each language; the processing module 202 counts the N-gram frequency of each language based on the vocabulary to obtain the N-gram model of each language; the processing module 202 calculates the N-gram probability of each language according to the N-gram model to obtain the probability distribution of each language; the processing module 202 stores the vocabulary and probability distribution of each language as a preset language model.

[0072] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to 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 addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0073] The present application also provides an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0074] The communication bus 302 is used to realize the connection and communication between these components.

[0075] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0076] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0077] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.

[0078] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a human-computer interaction method based on semantic analysis.

[0079] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program stored in the memory 305 for a human-computer interaction method based on semantic analysis, and when executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0080] The present application also provides a computer-readable storage medium, which stores instructions. When executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments.

[0081] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0082] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which 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 system, 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 can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0084] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0085] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0086] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0087] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A human-computer interaction method based on semantic analysis, characterized in that: The method comprises: Obtaining voice instructions from operators; Identify the target language type corresponding to the voice command; Modifying the parameters of the preset language model according to the target language type to obtain a corresponding target language model; Converting the voice command into text content according to the target language model; Extract keywords from the text content to obtain corresponding keywords; Associating the keyword with the warehousing business entity in the preset knowledge graph to obtain corresponding warehousing business semantic information; The warehousing business semantic information is converted into a corresponding control instruction sequence, and the corresponding warehousing operation is executed according to the control instruction sequence.

2. The method according to claim 1, characterized in that: The identifying the target language type corresponding to the voice command specifically includes: Extracting acoustic features of the voice command; Inputting the acoustic features into a preset recognition model to obtain likelihood scores for each language type; Sorting the plurality of likelihood scores from large to small to obtain a target likelihood score, wherein the target likelihood score is the maximum likelihood score among the plurality of likelihood scores; The target language category corresponding to the target likelihood score is determined.

3. The method according to claim 1, characterized in that The parameters include a vocabulary and a probability distribution, and the parameters of the preset language model are modified according to the target language type to obtain the corresponding target language model, specifically including: Obtaining a target vocabulary corresponding to a target language, and replacing the vocabulary of the preset language model with the target vocabulary; An N-gram language model of the target language is obtained, and the probability distribution of the preset language model is replaced according to the N-gram language model to obtain the target language model.

4. The method according to claim 1, characterized in that: The extracting keywords from the text content to obtain corresponding keywords specifically includes: Performing word segmentation processing on the text content to obtain a word segmentation result; Performing part-of-speech tagging on the word segmentation result to obtain a part-of-speech tagging result; Nouns, verbs, adjectives and numerals are extracted from the part-of-speech tagging results as the keywords.

5. The method according to claim 4, characterized in that The associating the keyword with the warehousing business entity in the preset knowledge graph to obtain the corresponding warehousing business semantic information specifically includes: Calculating the semantic similarity between the keyword and the warehousing business entity in the preset knowledge graph; If it is determined that the similarity between the keyword and the warehousing business entity is greater than a preset similarity threshold, the warehousing business semantic information corresponding to the warehousing business entity is determined.

6. The method according to claim 1, characterized in that The converting the warehousing business semantic information into a corresponding control instruction sequence specifically includes: Extracting corresponding warehousing operation types and warehousing operation parameters according to the warehousing business semantic information; Generate a corresponding operation process according to the warehousing operation type; Fill the storage operation parameters into the operation process to obtain a target operation process; Each operation in the target operation process is converted into a corresponding control instruction to form the control instruction sequence.

7. The method according to claim 6, characterized in that Before obtaining the voice instruction of the operator, the method further includes: Collect corpus data in multiple languages, and clean and preprocess the corpus data; Performing word segmentation processing on the corpus data of the various languages ​​to obtain the vocabulary of each language; Based on the vocabulary, counting the frequency of N-grams of each of the languages ​​to obtain N-gram models of each of the languages; Calculating the N-gram probability of each of the languages ​​according to the N-gram model to obtain the probability distribution of each of the languages; The vocabulary and probability distribution of each of the languages ​​are stored as the preset language models.

8. A human-computer interaction device based on semantic analysis, characterized in that: The device comprises an acquisition module (201) and a processing module (202), wherein: The acquisition module (201) is used to acquire the voice command of the operator; The processing module (202) is used to identify the target language type corresponding to the voice instruction; The processing module (202) is further used to modify the parameters of the preset language model according to the target language type to obtain a corresponding target language model; The processing module (202) is further used to convert the voice instruction into text content according to the target language model; The processing module (202) is further used to extract keywords from the text content to obtain corresponding keywords; The processing module (202) is further used to associate the keyword with the warehousing business entity in the preset knowledge graph to obtain corresponding warehousing business semantic information; The processing module (202) is also used to convert the warehousing business semantic information into a corresponding control instruction sequence, and execute the corresponding warehousing operation according to the control instruction sequence.

9. An electronic device, characterized in that: The electronic device (300) comprises a processor (301), a memory (305), a user interface (303) and a network interface (304), wherein the memory (305) is used to store instructions, the user interface (303) and the network interface (304) are used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (305) so that the electronic device (300) executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.

Citation Information

Cited By

  • Optical cable monitoring analysis method and system based on large language model

    CN119917637A

  • Vehicle diagnostic software starting method and system, vehicle diagnostic equipment and medium

    CN120743385A

  • Vehicle diagnostic software launch method, system, vehicle diagnostic device, and media

    CN120743385B

  • Car business SaaS voice control system based on multi-mode instruction analysis

    CN121306124A