A method and system for intelligent robot voice interaction based on Bert model
By using intelligent robots to detect scene and character characteristics, determine the voice monitoring duration and combine it with eye movement feature data, the problem of poor voice interaction effects in the existing technology is solved, and more accurate and efficient voice interaction is achieved.
Patent Information
- Application Number
- CN202410331756.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-03-22
AI Technical Summary
Existing voice interaction technology rarely takes into account the language expression characteristics of the interacting persons, especially the interruption characteristics of the interactive language, resulting in poor voice interaction effects.
Use intelligent robots to detect scenes, obtain regional scene attribute information and person object information, determine the target person and object, and track and obtain the voice monitoring time based on their speaking characteristics, adjust the voice interaction cycle, and extend the monitoring time based on eye movement feature data to ensure The interactive content is complete.
It improves the accuracy and efficiency of voice interaction, ensures the integrity of interactive content, and reduces misjudgments and invalid waiting.
Smart Images

Figure CN117975964B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent robots, and in particular to an intelligent robot voice interaction method and a system thereof based on a Bert model. Background Art
[0002] BERT (Bidirectional Encoder Representation from Transformers) is a pre-trained language representation model. It emphasizes that it no longer uses the traditional unidirectional language model or the shallow concatenation of two unidirectional language models for pre-training as in the past, but uses a new masked language model (MLM) to generate deep bidirectional language representation. Due to the powerful language representation capabilities of the Bert model, more and more robots are beginning to use the Bert model to achieve voice interaction with humans.
[0003] Patent document 1 (CN117354591A) discloses a voice interactive cable TV video recommendation method, comprising the following steps: S1: obtaining an audio signal to be identified, preprocessing the audio signal, extracting the preprocessed acoustic features, constructing an acoustic model based on the acoustic features, and training the acoustic model to output text information; S2: based on the output text information, performing intent analysis using a BERT model, and identifying the intent of the text information by pre-training and adjusting the BERT model; S3: based on text intent recognition and data portrait analysis, recommending TV videos that match the intent of the text information.
[0004] Patent document 2 (CN115547313A) discloses a method for controlling an emergency stop of a moving vehicle based on the driver's voice, comprising the following steps: obtaining voice information of the driver driving the vehicle; vectorizing the driver's voice information using the BERT-L model; matching the vectorized word vector group with the vector word library pre-stored in the vehicle terminal to confirm whether there is a stop instruction; if the match is successful, a stop instruction is obtained, and when the speed of the detected vehicle reaches a preset speed, the stop instruction is executed to control the moving vehicle to stop urgently.
[0005] Patent document 3 (CN116303920A) discloses a method for identifying and extracting small sample commodity specification information in a dialogue system, comprising the following steps: S100: obtaining multiple original sample corpora including commodity specification information through the dialogue system; S200: performing data expansion and enhancement on the original sample corpora to generate an expanded and enhanced sample corpus, and pre-labeling; S300: extracting the speech sparse features of the expanded and enhanced sample corpus, the pre-trained dense features of each token in the pre-trained BERT feature vector, and the lookup table sparse features corresponding to the token; S400: fusing the speech sparse features, pre-trained dense features, and lookup table sparse features to obtain a NER model; S500: training the NER model to obtain a tobacco specification information recognition model, and identifying tobacco information through the tobacco specification information recognition model.
[0006] It can be seen that many existing technologies have applied the Bert model to the field of voice interaction. However, the existing voice interaction only focuses on the analysis and response of interaction intentions, and rarely considers the language expression characteristics of the interacting personnel, especially the interruption characteristics of the interactive language, resulting in poor voice interaction effects. Summary of the invention
[0007] In this regard, the present invention provides an intelligent robot voice interaction method, system, electronic device and computer storage medium based on the Bert model to solve the above technical problems.
[0008] The present invention discloses an intelligent robot voice interaction method based on a Bert model, the method comprising the following steps:
[0009] Control the intelligent robot to detect the scene in which it is located, and obtain the regional scene attribute information and character object information in the scene;
[0010] Determine a number of target person objects by matching and calculating the area scene attribute information with the person object information;
[0011] Tracking and acquiring the speech characteristics of each target person object, and determining the voice monitoring duration associated with the target person object according to the speech characteristics;
[0012] During the process of voice interaction between the intelligent robot and the target person object, the interactive voice of the target person object is obtained with the voice monitoring time as a period;
[0013] The interactive speech is input into the Bert model to determine its interactive intention, and the response speech is synthesized and output according to the interactive intention.
[0014] In some embodiments, the controlling the intelligent robot to detect the scene in which it is located and obtain the regional scene attribute information and the person object information in the scene in which it is located includes:
[0015] Capturing a panoramic image of the scene, and determining a number of identification information and person object information from the captured panoramic image;
[0016] The identification information is semantically analyzed to determine the regional scene attribute information corresponding to each piece of identification information.
[0017] In some embodiments, the determining of a plurality of target person objects by matching and calculating the regional scene attribute information with the person object information includes:
[0018] Tracking the trajectory of each character object according to the character object information, and determining the corresponding intermediate area scenes according to the intersection relationship between the trajectory and each area scene; wherein the intersection relationship includes intersection point information and intersection duration information;
[0019] Analyzing the area scene attribute information corresponding to the middle area scene to obtain the behavior termination probability of each middle area scene; wherein the behavior termination probability refers to the probability that the character object directly leaves the scene in which it is located from the middle area scene;
[0020] The intermediate area scene whose behavior termination probability is higher than a specified threshold is determined as the target area scene, and the human object outside the target area scene is determined as the target human object.
[0021] In some embodiments, the tracking and acquiring of speech features of each target person object, and determining the voice monitoring duration associated with the target person object according to the speech features, includes:
[0022] Tracking and acquiring the speech of the target person object before the speech interaction with the intelligent robot, and converting the speech into speech text; the speech text includes text content and multiple punctuation marks embedded therein, and the time corresponding to each punctuation mark;
[0023] Dividing the speech text into a plurality of sub-texts based on punctuation marks, and determining a first speaking duration of the sub-text according to the start and end times of the sub-texts;
[0024] fitting a first probability distribution curve according to each of the first speech durations, matching and calculating the first probability distribution curve with each of the pre-stored second probability distribution curves to obtain a hit second probability distribution curve;
[0025] A second speaking duration is determined according to the peak point of the hit second probability distribution curve, and the second speaking duration is determined as the voice monitoring duration associated with the target person object.
[0026] In some embodiments, during the process of voice interaction between the intelligent robot and the target person object, obtaining the interactive voice of the target person object with the voice monitoring duration as a period includes:
[0027] During the process of voice interaction between the intelligent robot and the target person object, obtaining the first interactive voice of the target person object with the voice monitoring duration as a period;
[0028] In the process of acquiring the first interactive voice, synchronously acquiring eye movement feature data of the target person object;
[0029] Determine a monitoring extension index based on the eye movement feature data, and multiply the monitoring extension index by the voice monitoring duration to obtain a new voice monitoring duration;
[0030] The interactive voice of the target person object is obtained with the new voice monitoring time period as a period.
[0031] In some embodiments, the eye movement feature data includes eye gaze direction and eye muscle movement data; then determining the monitoring extension index based on the eye movement feature data includes:
[0032] The AI analysis module is called to synchronously process the eye gaze direction and the periocular muscle movement data to obtain an expression disorder assessment probability value, and the monitoring extension index is determined according to the expression disorder assessment probability value.
[0033] The present invention also discloses an intelligent robot voice interaction system based on the Bert model, which is applied to a remote intelligent monitoring terminal. The system includes a voice monitoring module, a camera module, a processing module, and a storage module. The processing module is electrically connected to the storage module, the voice monitoring module, and the camera module respectively.
[0034] The voice monitoring module is used to monitor the voice of the target person and transmit it to the processing module;
[0035] The camera module is used to obtain an image of the scene in which the intelligent robot is located and an image of a target person object, and transmit the image to the processing module;
[0036] The storage module is used to store computer programs;
[0037] The processing module is used to call and execute the computer program in the storage module to perform any of the methods described above to determine the interaction intention of the target person object, and synthesize and output the response voice according to the interaction intention.
[0038] The present invention also discloses an electronic device, comprising: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the method described in the above embodiments.
[0039] The present invention also discloses a computer storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement any of the above methods.
[0040] The present invention also discloses a computer program product. When the computer program product is run on a terminal, the terminal implements any of the above methods when executing the computer program product.
[0041] The beneficial effects of the present invention are:
[0042] The intelligent robot in the present invention can perform a comprehensive analysis of the character objects in the scene in advance to determine the target character objects with which there is a probability of voice interaction, and then track and obtain the speaking characteristics of these target character objects, so as to determine the voice monitoring duration for the target character objects. The intelligent robot can then monitor the single voice interaction content of the target character object during the voice interaction with the intelligent robot according to the voice monitoring duration, thereby improving the voice response efficiency on the basis of ensuring the integrity of the target character object's voice interaction content. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a flowchart of an intelligent robot voice interaction method based on the Bert model disclosed in an embodiment of the present invention;
[0045] Figure 2 It is a structural schematic diagram of an intelligent robot voice interaction system based on the Bert model disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following is a description of the implementation of the present application by specific specific embodiments. People familiar with the technology can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0047] In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0048] like Figure 1 As shown, the embodiment of the present invention discloses an intelligent robot voice interaction method based on the Bert model, and the method comprises the following steps:
[0049] Control the intelligent robot to detect the scene in which it is located, and obtain the regional scene attribute information and character object information in the scene;
[0050] Determine a number of target person objects by matching and calculating the area scene attribute information with the person object information;
[0051] Tracking and acquiring the speech characteristics of each target person object, and determining the voice monitoring duration associated with the target person object according to the speech characteristics;
[0052] During the process of voice interaction between the intelligent robot and the target person object, the interactive voice of the target person object is obtained with the voice monitoring time as a period;
[0053] The interactive speech is input into the Bert model to determine its interactive intention, and the response speech is synthesized and output according to the interactive intention.
[0054] In the embodiments of the present invention, different people have different language expression characteristics when performing voice interaction, which is mainly reflected in the different lengths of language used for a single interaction intention. For example, when expressing consultation on a certain business, user A has clear thinking and strong language expression ability, and his voice interaction process is "Excuse me, where is the VIP room for receiving large group customers?"; while user B has relatively vague thinking, clear thinking, and poor language expression ability, and his voice interaction process is "Excuse me, where is the VIP room?...VIP room for receiving large group customers." Since user B has a long voice interruption during the voice interaction process, the intelligent robot can easily misjudge that its single interaction intention has been output, so it is easy to output the corresponding response voice based on "Excuse me, where is the VIP room?", resulting in insufficient interaction accuracy.
[0055] The intelligent robot in the present invention can perform a comprehensive analysis of the character objects in the scene in advance to determine the target character objects with which there is a probability of voice interaction, and then track and obtain the speaking characteristics of these target character objects, so as to determine the voice monitoring duration for the target character objects. The intelligent robot can then monitor the single voice interaction content of the target character object during the voice interaction with the intelligent robot according to the voice monitoring duration, thereby improving the voice response efficiency on the basis of ensuring the integrity of the target character object's voice interaction content.
[0056] In some embodiments, the controlling the intelligent robot to detect the scene in which it is located and obtain the regional scene attribute information and the person object information in the scene in which it is located includes:
[0057] Capturing a panoramic image of the scene, and determining a number of identification information and person object information from the captured panoramic image;
[0058] The identification information is semantically analyzed to determine the regional scene attribute information corresponding to each piece of identification information.
[0059] In an embodiment of the present invention, the intelligent robot is equipped with a camera. By controlling the intelligent robot to rotate, the panoramic image of the scene can be captured, and the captured panoramic image covers the entire area of the scene. Then, various identification information and character object information are identified and extracted from the panoramic image according to specific extraction rules. The identification information can be "exit sign", "entrance sign", "ordinary counter", "VIP counter", "waiting area", etc. in the scene. By performing semantic analysis on the identification information, the regional scene attribute information of the area corresponding to these identification information can be determined. Of course, due to different scenes, the above identification information will also be different.
[0060] The aforementioned Bert model may also be used to analyze the meaning / semantics of the above identification information, thereby determining the regional scene attribute information of the corresponding area.
[0061] In some embodiments, the determining of a plurality of target person objects by matching and calculating the regional scene attribute information with the person object information includes:
[0062] Tracking the trajectory of each character object according to the character object information, and determining the corresponding intermediate area scenes according to the intersection relationship between the trajectory and each area scene; wherein the intersection relationship includes intersection point information and intersection duration information;
[0063] Analyzing the area scene attribute information corresponding to the middle area scene to obtain the behavior termination probability of each middle area scene; wherein the behavior termination probability refers to the probability that the character object directly leaves the scene in which it is located from the middle area scene;
[0064] The intermediate area scene whose behavior termination probability is higher than a specified threshold is determined as the target area scene, and the human object outside the target area scene is determined as the target human object.
[0065] In the embodiment of the present invention, the intelligent robot can continue to track the person object in the scene to determine its trajectory, and then calculate the intersection relationship between the trajectory and each regional scene, including whether there is an intersection point and the intersection time of the trajectory in each regional scene (i.e., the length of stay in the regional scene), so that the various intermediate regional scenes entered by the person object during the tracking process can be determined. Then, the regional scene attribute information corresponding to each intermediate regional scene is deeply analyzed to obtain the probability that the person object directly leaves the scene from the intermediate regional scene. The direct departure here means that the person object goes directly from the intermediate regional scene to the exit of the scene, and during the departure process, the length of stay in other intermediate regional scenes is shorter than a specific value (e.g., 2s). For example, after the person object completes the business at the VIP counter, he goes straight to the exit and leaves the scene. Although he may pass through the ordinary counter area in the middle, the length of stay is less than 2s. When its probability is higher than the specified threshold, the intermediate regional scene can be identified as the target regional scene. Since the characters within the target area scene will directly leave the scene, there is almost no possibility for them to have voice interaction with the intelligent robot, and there is no need to analyze their speaking characteristics, so the characters outside the target area scene are determined as target characters.
[0066] An example is as follows: a certain middle area scene is a "normal counter" or a "VIP counter". An in-depth analysis of the area scene attribute information corresponding to the "normal counter" or the "VIP counter" shows that the middle area scene is a business processing area, and the person in the area will leave the scene directly from the "exit" after completing the business processing. Obviously, this person will not have the need to interact with the intelligent robot by voice, or the probability of voice interaction is low, so there is no need to use him as a target person object for speech feature analysis.
[0067] Correspondingly, the person in the "waiting area" has not completed the business transaction, and the probability of termination of his behavior is lower than the specified threshold. The person in the "waiting area" will not leave the scene directly from the "exit", and he needs to be treated as the target person for speech feature analysis.
[0068] It should be noted that the business in some scenarios may require multiple counters to handle it in relay to complete. The behavior termination probability of each intermediate area scenario can be determined in advance based on the actual distribution and layout of the business handling in the corresponding scenario.
[0069] In some embodiments, the tracking and acquiring of speech features of each target person object, and determining the voice monitoring duration associated with the target person object according to the speech features, includes:
[0070] Tracking and acquiring the speech of the target person object before the speech interaction with the intelligent robot, and converting the speech into speech text; the speech text includes text content and multiple punctuation marks embedded therein, and the time corresponding to each punctuation mark;
[0071] Dividing the speech text into a plurality of sub-texts based on punctuation marks, and determining a first speaking duration of the sub-text according to the start and end times of the sub-texts;
[0072] fitting a first probability distribution curve according to each of the first speech durations, matching and calculating the first probability distribution curve with each of the pre-stored second probability distribution curves to obtain a hit second probability distribution curve;
[0073] A second speaking duration is determined according to the peak point of the hit second probability distribution curve, and the second speaking duration is determined as the voice monitoring duration associated with the target person object.
[0074] In the embodiment of the present invention, the rhythm of people speaking varies greatly due to factors such as mental agility and oral physiological characteristics. Therefore, the present invention tracks the speech of the target person object determined above, extracts the speech features of the target person object, and then determines the speech monitoring duration based on the single speech expression duration features in the speech features. The speech monitoring duration refers to the waiting time of the intelligent robot when listening to the interactive speech of the target person object, that is, during the speech monitoring duration, the intelligent robot does not recognize the interactive speech, but waits for the target person object to complete the single semantic input before performing semantic analysis.
[0075] In the specific implementation, the existing semantic recognition model (such as the Bert model) is first used to monitor the target person object who is speaking in other areas, and all the spoken voices of the target person object before the voice interaction with the intelligent robot are collected and then semantically analyzed as a whole, so as to obtain the corresponding voice text. The voice text contains various sentences with independent semantics, and the sentences are connected by punctuation marks, and each punctuation mark corresponds to the start and end time of the sentence with independent semantics when it is spoken. The voice text is divided into multiple sub-texts with the punctuation marks in the voice text as the separation point, so that the first speaking time corresponding to each sub-text can be determined. All the first speaking times are curve-fitted, so that a first probability distribution curve can be obtained. At the same time, multiple second probability distribution curves are pre-stored in the database. The first probability distribution curve and the second probability distribution curve obey normal distribution, exponential distribution, etc. In the actual test process, more conform to the normal distribution, especially the speech in the short-term dialogue process is more normal distribution. This is due to the fact that the short-term dialogue process as a whole contains the content of the dialogue of one topic. By calculating the similarity between the first probability distribution curve and the second probability distribution curve, a second probability distribution curve can be hit, and the second speaking duration is determined based on the peak point (i.e., duration) of the second probability distribution curve. The second speaking duration represents the maximum duration, average duration, etc. of a single output of speech with independent semantics that meets the speech interruption characteristics of the target person object (which can be represented by the above-mentioned first probability distribution curve obtained by fitting each first speaking duration), and the second speaking duration is used as the speech monitoring duration. Therefore, the intelligent robot monitors the single output of speech with independent semantics by the target person object according to the speech monitoring duration, which can ensure that the speech with independent semantics can be covered by the speech monitoring duration, and the speech monitoring duration will not be set too long. If the setting is too long, it will cause the intelligent robot to wait for too long for invalid monitoring, which is not conducive to subsequent voice response.
[0076] It should be noted that the intelligent robot can monitor the speech of the target person through its own configured voice monitoring module, or it can obtain the speech of the target person who is at a long distance from the intelligent robot through microphone pickups distributed in the scene.
[0077] In some embodiments, during the process of voice interaction between the intelligent robot and the target person object, obtaining the interactive voice of the target person object with the voice monitoring duration as a period includes:
[0078] During the process of voice interaction between the intelligent robot and the target person object, obtaining the first interactive voice of the target person object with the voice monitoring duration as a period;
[0079] In the process of acquiring the first interactive voice, synchronously acquiring eye movement feature data of the target person object;
[0080] Determine a monitoring extension index based on the eye movement feature data, and multiply the monitoring extension index by the voice monitoring duration to obtain a new voice monitoring duration;
[0081] The interactive voice of the target person object is obtained with the new voice monitoring time period as a period.
[0082] In the embodiment of the present invention, the voice monitoring duration determined by the aforementioned method can match the speech interruption characteristics of the target person object within a theoretical range, but because the first probability distribution curve determined above is actually only based on the short-term speech of the target person object, its credibility cannot actually be fully guaranteed. Therefore, the present invention is arranged that during the process of the intelligent robot and the target person object having a voice dialogue, the interactive voice of the target person object is first obtained according to the aforementioned determined voice monitoring duration as a period, and the eye movement feature data of the target person object is synchronously obtained during this process, and a decision is made based on the eye movement feature data whether to appropriately extend the voice monitoring duration.
[0083] In some embodiments, the eye movement feature data includes eye gaze direction and eye muscle movement data; then determining the monitoring extension index based on the eye movement feature data includes:
[0084] The AI analysis module is called to synchronously process the eye gaze direction and the periocular muscle movement data to obtain an expression disorder assessment probability value, and the monitoring extension index is determined according to the expression disorder assessment probability value.
[0085] In an embodiment of the present invention, a person may have expression disorders due to stuttering, failure to keep up with the thinking (for example, no suitable expression vocabulary can be thought of yet), etc., which may result in abnormal interruptions in speaking sentences. If the aforementioned determined voice monitoring time is not appropriately extended, the speaking voice of the target person object after overcoming the expression disorder may not be included in the current monitoring cycle, resulting in the speaking voice in the current monitoring cycle being actually incomplete, which will ultimately lead to distortion of the extracted interaction intent. Moreover, since the speaking voice of the target person object after overcoming the expression disorder is included in the next monitoring cycle, the interaction intent recognition result of the next monitoring cycle may also be distorted.
[0086] Therefore, the present invention analyzes whether the target person object has expression disorder based on the eye movement feature data when the target person object outputs speech to the intelligent robot. The eye movement feature data mainly includes the eye sight direction and the periocular muscle movement data. Among them, the eye sight direction includes direct sight (aimed at the camera or deviated from the camera within a specified angle, that is, the target person object is looking directly at the intelligent robot), obliquely to the left / upper right, obliquely to the left / lower right, etc. The results of micro-expression related research show that when a person's sight is obliquely to the upper left or upper right, he or she is generally thinking quickly, so it is possible to analyze whether the target person object has expression disorder because the thinking has not kept up (for example, no suitable expression words have been thought of yet) based on the sight feature. The periocular muscle movement data refers to the abnormal movement characteristics of the periocular muscles when the target person object stutters, because when the tongue muscles move abnormally, the muscles that control the eyes will also move abnormally. At the same time, the present invention preferably establishes an AI analysis module for analyzing the above-mentioned eye movement feature data, uses the module to analyze and calculate the expression disorder assessment probability value of the target person object, and then determines a suitable monitoring extension index according to, for example, a direct proportional function. The monitoring extension index can be used to appropriately extend the aforementioned determined voice monitoring time, and the new voice monitoring time will most likely cover the time period of the expression disorder and the subsequent speaking voice, so that all the speaking voices used to analyze the voice with independent semantics will eventually be monitored.
[0087] The following are some examples:
[0088] The intelligent robot first obtains the first interactive voice of the target person object with a voice monitoring period of 5 seconds. In this process, the target person object's eye sight direction and eye muscle movement data are detected and analyzed. When the calculated expression disorder assessment probability value exceeds the normal range, the monitoring extension index can be determined according to the expression disorder assessment probability value and the corresponding direct proportional function, for example, 1.5, and then multiplied by the original voice monitoring time to obtain 5*1.5=7.5s. The 7.5s voice monitoring time can cover the expression disorder of the target person object this time and the time required for the remaining speaking voice. By inputting the interactive voice monitored within this period into the Bert model, a complete and accurate interaction intention can be determined, which is conducive to the subsequent output of the matching response voice.
[0089] It should be noted that the AI analysis module in the present invention is pre-established and called by the intelligent robot when needed. The AI analysis module can be stored in the intelligent robot or the network server. Moreover, the AI analysis module has been sufficiently pre-trained and can analyze accurate expression disorder assessment probability values based on eye sight direction and periorbital muscle movement data.
[0090] like Figure 2As shown, an embodiment of the present invention further discloses an intelligent robot voice interaction system based on the Bert model, which is applied to a remote intelligent monitoring terminal. The system includes a voice monitoring module, a camera module, a processing module, and a storage module. The processing module is electrically connected to the storage module, the voice monitoring module, and the camera module respectively;
[0091] The voice monitoring module is used to monitor the voice of the target person and transmit it to the processing module;
[0092] The camera module is used to obtain an image of the scene in which the intelligent robot is located and an image of a target person object, and transmit the image to the processing module;
[0093] The storage module is used to store computer programs;
[0094] The processing module is used to call and execute the computer program in the storage module to perform any of the methods described above to determine the interaction intention of the target person object, and synthesize and output the response voice according to the interaction intention.
[0095] An embodiment of the present invention further discloses an electronic device, comprising: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, characterized in that: the processor executes the computer program to implement the method described in the above embodiment.
[0096] An embodiment of the present invention further discloses a computer storage medium, wherein the computer storage medium stores a computer program, and is characterized in that: the computer program is executed by a processor to implement the method described in the above embodiment.
[0097] The embodiment of the present invention further discloses a computer program product. When the computer program product is run on a terminal, the terminal implements the method described in the above embodiment.
[0098] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0101] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. An intelligent robot voice interaction method based on the Bert model, characterized in that: The method comprises the following steps: Control the intelligent robot to detect the scene in which it is located, and obtain the regional scene attribute information and character object information in the scene; Determine a number of target person objects by matching and calculating the area scene attribute information with the person object information; Tracking and acquiring the speech characteristics of each target person object, and determining the voice monitoring duration associated with the target person object according to the speech characteristics; During the process of voice interaction between the intelligent robot and the target person object, the interactive voice of the target person object is obtained with the voice monitoring time as a period; Input the interactive speech into the Bert model to determine its interactive intention, and synthesize and output the response speech according to the interactive intention; The controlling intelligent robot detects the scene in which it is located and obtains the regional scene attribute information and the person object information in the scene in which it is located, including: Capturing a panoramic image of the scene, and determining a number of identification information and person object information from the captured panoramic image; Performing semantic analysis on the identification information to determine the regional scene attribute information corresponding to each piece of identification information; The determining of a plurality of target person objects by matching and calculating the regional scene attribute information with the person object information includes: Tracking the trajectory of each character object according to the character object information, and determining the corresponding intermediate area scenes according to the intersection relationship between the trajectory and each area scene; wherein the intersection relationship includes intersection point information and intersection duration information; Analyzing the area scene attribute information corresponding to the middle area scene to obtain the behavior termination probability of each middle area scene; wherein the behavior termination probability refers to the probability that the character object directly leaves the scene in which it is located from the middle area scene; Determine the intermediate area scene where the behavior termination probability is higher than a specified threshold as a target area scene, and determine the person object outside the target area scene as a target person object; The step of tracking and acquiring the speech features of each target person object, and determining the voice monitoring duration associated with the target person object according to the speech features, includes: Tracking and acquiring the speech of the target person object before the speech interaction with the intelligent robot, and converting the speech into speech text; the speech text includes text content and multiple punctuation marks embedded therein, and the time corresponding to each punctuation mark; Dividing the speech text into a plurality of sub-texts based on punctuation marks, and determining a first speaking duration of the sub-text according to the start and end times of the sub-texts; fitting a first probability distribution curve according to each of the first speech durations, matching and calculating the first probability distribution curve with each of the pre-stored second probability distribution curves to obtain a hit second probability distribution curve; A second speaking duration is determined according to the peak point of the hit second probability distribution curve, and the second speaking duration is determined as the voice monitoring duration associated with the target person object.
2. The intelligent robot voice interaction method based on the Bert model according to claim 1, characterized in that: The step of acquiring the interactive voice of the target person object based on the voice monitoring duration as a period during the voice interaction between the intelligent robot and the target person object includes: During the process of voice interaction between the intelligent robot and the target person object, obtaining the first interactive voice of the target person object with the voice monitoring duration as a period; In the process of acquiring the first interactive voice, synchronously acquiring eye movement feature data of the target person object; Determine a monitoring extension index based on the eye movement feature data, and multiply the monitoring extension index by the voice monitoring duration to obtain a new voice monitoring duration; The interactive voice of the target person object is obtained with the new voice monitoring time period as a period.
3. The intelligent robot voice interaction method based on the Bert model according to claim 2, characterized in that: The eye movement feature data includes eye sight direction and eye periorbital muscle movement data; and determining the monitoring extension index based on the eye movement feature data includes: The AI analysis module is called to synchronously process the eye gaze direction and the periocular muscle movement data to obtain an expression disorder assessment probability value, and the monitoring extension index is determined according to the expression disorder assessment probability value.
4. An intelligent robot voice interaction system based on the Bert model, applied to a remote intelligent monitoring terminal, the system comprises a voice monitoring module, a camera module, a processing module, and a storage module, the processing module is electrically connected to the storage module, the voice monitoring module, and the camera module respectively; The voice monitoring module is used to monitor the voice of the target person and transmit it to the processing module; The camera module is used to obtain an image of the scene in which the intelligent robot is located and an image of a target person object, and transmit the image to the processing module; The storage module is used to store computer programs; Features: The processing module is used to call and execute the computer program in the storage module to perform the method described in any one of claims 1-3 to determine the interaction intention of the target person object, and synthesize and output the response voice according to the interaction intention.
5. An electronic device comprising: At least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 3.
6. A computer storage medium storing a computer program, characterized in that: The computer program is executed by a processor to implement the method according to any one of claims 1 to 3.
7. A computer program product comprising a computer program stored on a non-transitory computer readable medium, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method for controlling emergency stop of running vehicle based on voice of driver
CN115547313A
Small sample commodity specification information identification and extraction method in dialogue system
CN116303920A
Voice interactive cable television video recommendation method
CN117354591A
VR interaction method and device based on artificial intelligence, computer equipment and medium
CN112099628A
Implementation method and device for configurable intelligent voice robot and storage medium
CN114333813A
