Long speech emotion intelligent recognition method, system and computer readable storage medium
By acquiring and analyzing the long voice characteristics of the user's voice, and using the emotion recognition library to identify the user's emotions, it solves the problem of the inability of existing technology to recognize user emotions, and improves the intelligence and user experience of human-computer interaction.
Patent Information
- Application Number
- CN202410228065.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-02-29
AI Technical Summary
Existing human-computer dialogue technology cannot recognize users' emotions, resulting in low intelligence and poor user experience.
By obtaining the user's long human voice, extracting its feature set, and using the preset emotion recognition library to determine the user's expressed emotion, including obtaining multi-modal data, segmented speech, feature extraction and emotion recognition, constructing a description vector to identify User emotions.
It improves the intelligence of human-computer interaction, increases user experience, and provides more intelligent responses by identifying users' emotions.
Smart Images

Figure CN118098286B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer data processing technology, and in particular to a method and system for intelligently recognizing long speech emotions, and a computer-readable storage medium. Background Art
[0002] Human-computer dialogue technology is developing and maturing. However, the current human-computer dialogue is limited to the computer analyzing the semantics of the user's speech and making adaptive responses. The computer cannot understand the user's emotions, which means that there is still a lot of room for improvement in intelligence and the user experience is insufficient. Summary of the invention
[0003] One of the purposes of the present invention is to provide an intelligent method for recognizing emotions in long speech, which can intelligently recognize the emotions expressed in user speeches, improve the intelligence level of human-computer interaction, and enhance user experience.
[0004] The long speech emotion intelligent recognition method provided by the embodiment of the present invention includes:
[0005] Get the user's long voice.
[0006] Extracting a feature set of the human voice long speech;
[0007] Based on the feature set and a preset emotion recognition library, the user's expressed emotion is determined.
[0008] Preferably, the step of obtaining the user's long human voice includes:
[0009] Obtain multimodal data of users;
[0010] When the multimodal data meets at least one acquisition trigger condition in a preset acquisition trigger condition library, the user's long human voice is acquired.
[0011] Preferably, the feature set of extracting the long human voice includes:
[0012] Based on a preset segmentation interval, the long human voice is segmented to obtain a human voice sequence; the voice length of the first n-1 segmented voices in the human voice sequence is equal to the segmentation interval, and the voice length of the nth segmented voice is less than or equal to the segmentation interval; n is the total number of segmented voices in the human voice sequence;
[0013] Extracting the feature set of the vocal sequence based on feature extraction rules;
[0014] The feature extraction rules include:
[0015] Based on a preset first feature extraction template, extracting features from the segmented speech in sequence according to the order in which the segmented speech is arranged in the vocal sequence;
[0016] and / or,
[0017] When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a second supplementary feature extraction template and a first indication type in a preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i-th segmented speech and the i+1-th segmented speech in the vocal sequence based on the second supplementary feature extraction template; 1≤i≤n;
[0018] and / or,
[0019] When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a third supplementary feature extraction template and a second indication type in the preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i+j-th segmented speech in the vocal sequence based on the third supplementary feature extraction template; 1≤j≤ni.
[0020] Preferably, the determining the user's expressed emotion based on the feature set and a preset emotion recognition library includes:
[0021] Constructing a description vector of the feature set;
[0022] Determine a plurality of target emotion recognition results from the emotion recognition library; the vector similarity between a preset standard description vector corresponding to the target emotion recognition result and the description vector is greater than or equal to a preset similarity threshold;
[0023] Determining the expressed emotion based on the multiple target emotion recognition results;
[0024] and / or,
[0025] Based on a preset search formula generation template, determining a recognition knowledge search formula according to the feature set;
[0026] Based on the recognition knowledge search formula, searching for recognition knowledge from the emotion recognition library;
[0027] Based on the recognition knowledge, the expressed emotion is determined.
[0028] The long speech emotion intelligent recognition system provided by the embodiment of the present invention includes:
[0029] An acquisition module is used to acquire the user's long voice.
[0030] An extraction module, used for extracting a feature set of the human voice long speech;
[0031] The recognition module is used to determine the user's expressed emotions based on the feature set and a preset emotion recognition library.
[0032] Preferably, the acquisition module acquires the user's long human voice, including:
[0033] Obtain multimodal data of users;
[0034] When the multimodal data meets at least one acquisition trigger condition in a preset acquisition trigger condition library, the user's long human voice is acquired.
[0035] Preferably, the extraction module extracts the feature set of the long human voice, including:
[0036] Based on a preset segmentation interval, the long human voice is segmented to obtain a human voice sequence; the voice length of the first n-1 segmented voices in the human voice sequence is equal to the segmentation interval, and the voice length of the nth segmented voice is less than or equal to the segmentation interval; n is the total number of segmented voices in the human voice sequence;
[0037] Extracting the feature set of the vocal sequence based on feature extraction rules;
[0038] The feature extraction rules include:
[0039] Based on a preset first feature extraction template, extracting features from the segmented speech in sequence according to the order in which the segmented speech is arranged in the vocal sequence;
[0040] and / or,
[0041] When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a second supplementary feature extraction template and a first indication type in a preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i-th segmented speech and the i+1-th segmented speech in the vocal sequence based on the second supplementary feature extraction template; 1≤i≤n;
[0042] and / or,
[0043] When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a third supplementary feature extraction template and a second indication type in the preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i+j-th segmented speech in the vocal sequence based on the third supplementary feature extraction template; 1≤j≤ni.
[0044] Preferably, the recognition module determines the user's expressed emotion based on the feature set and a preset emotion recognition library, including:
[0045] Constructing a description vector of the feature set;
[0046] Determine a plurality of target emotion recognition results from the emotion recognition library; the vector similarity between a preset standard description vector corresponding to the target emotion recognition result and the description vector is greater than or equal to a preset similarity threshold;
[0047] Determining the expressed emotion based on the multiple target emotion recognition results;
[0048] and / or,
[0049] Based on a preset search formula generation template, determining a recognition knowledge search formula according to the feature set;
[0050] Based on the recognition knowledge search formula, searching for recognition knowledge from the emotion recognition library;
[0051] Based on the recognition knowledge, the expressed emotion is determined.
[0052] A computer-readable storage medium provided by an embodiment of the present invention stores computer program code, and when the computer program code is executed by a processor, the long speech emotion intelligent recognition method described in any one of the above items is implemented.
[0053] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0054] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0056] Figure 1 Schematic diagram of a method for intelligently identifying long speech emotions in an embodiment of the present invention;
[0057] Figure 2 Schematic diagram of a long speech emotion intelligent recognition system in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0059] The embodiment of the present invention provides a method for intelligently recognizing long speech emotions. Figure 1 As shown, including:
[0060] Step S1: Obtain the user's long voice;
[0061] Step S2: extracting a feature set of the long human voice;
[0062] Step S3: Determine the user's expressed emotion based on the feature set and a preset emotion recognition library.
[0063] A single sentence in a user's speech often cannot reflect emotions. Therefore, a longer human voice of the user is obtained; the feature set includes semantic features, intonation features, speech speed features, etc. of the human voice; the user's expressed emotions are identified through the emotion recognition library and the feature set. This application intelligently identifies the expressed emotions of user speeches, improves the intelligence level of human-computer interaction, and enhances the user experience.
[0064] The step of obtaining the user's long human voice includes:
[0065] Obtain multimodal data of users;
[0066] When the multimodal data meets at least one acquisition trigger condition in a preset acquisition trigger condition library, the user's long human voice is acquired.
[0067] Multimodal data includes: the user's last emotion recognition result, user behavior, etc.; when the multimodal data meets the acquisition trigger conditions, it means that the user's voice emotion recognition needs to be performed, for example: the acquisition trigger condition is that the user's last emotion recognition result is that there is anxiety; the acquisition trigger condition can be set by technical personnel according to actual needs.
[0068] The feature set of extracting the long human voice includes:
[0069] Based on a preset segmentation interval, the long human voice is segmented to obtain a human voice sequence; the voice length of the first n-1 segmented voices in the human voice sequence is equal to the segmentation interval, and the voice length of the nth segmented voice is less than or equal to the segmentation interval; n is the total number of segmented voices in the human voice sequence;
[0070] Extracting the feature set of the vocal sequence based on feature extraction rules;
[0071] The feature extraction rules include:
[0072] Rule A: Based on a preset first feature extraction template, feature extraction is performed on the segmented speech in sequence according to the order in which the segmented speech is arranged in the vocal sequence;
[0073] and / or,
[0074] Rule B: When extracting features from the i-th segmented speech in the vocal sequence, if the extracted speech features correspond to the second supplementary feature extraction template and the first indication type in the preset subsequent feature extraction indication library, based on the second supplementary feature extraction template, perform supplementary feature extraction on the i-th segmented speech and the i+1-th segmented speech in the vocal sequence; 1≤i≤n;
[0075] and / or,
[0076] Rule C: When performing feature extraction on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a third supplementary feature extraction template and a second indication type in the preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i+j-th segmented speech in the vocal sequence based on the third supplementary feature extraction template; 1≤j≤ni.
[0077] The segment interval can be 20 seconds;
[0078] In rule A, the first feature extraction template is a template for extracting semantic, speech rate, and pitch features of segmented speech; the segmented speech is sequentially extracted according to the order in which the segmented speech is arranged in the human voice sequence; the semantic, speech rate, and pitch features of each segmented speech are extracted and put into the feature set;
[0079] In rule B, the second supplementary feature extraction template is triggered by the speech feature of the i-th segmented speech, and the first indication type is the type indicating the supplementary feature extraction of the i-th segmented speech and the i+1-th segmented speech. For example, the speech feature of the i-th segmented speech is the semantics "I want" lacking an object, and the second supplementary feature extraction template is to extract all the semantics related to "I want" of the i-th segmented speech and the i+1-th segmented speech, such as: "I want to listen to music", etc.;
[0080] In rule C, the third supplementary feature extraction template is triggered by the speech feature of the i-th segmented speech, and the second indication type is the type indicating the type of supplementary feature extraction for the i+j-th segmented speech. For example, if the speech feature of the i-th segmented speech is excessive speech speed, then the third supplementary feature extraction template is to extract features from the total number of excessive speech speeds in the i+j-th segmented speech, which can comprehensively determine whether the user has anxious emotions;
[0081] It should be noted that, in specific applications, Rule A, Rule B and Rule C can be used in combination with each other; when Rule B or Rule C is used in combination with Rule A, it can make the speech features of the front segmented speech in the human voice sequence be extracted first, which can trigger the appropriate extraction method (i.e., the second supplementary feature extraction template and the third supplementary feature extraction template) for subsequent extraction of other segmented speech, greatly improving the rationality and pertinence of the feature set extraction and reducing feature extraction resources.
[0082] The step of determining the user's expressed emotion based on the feature set and a preset emotion recognition library includes:
[0083] Constructing a description vector of the feature set;
[0084] Determine a plurality of target emotion recognition results from the emotion recognition library; the vector similarity between a preset standard description vector corresponding to the target emotion recognition result and the description vector is greater than or equal to a preset similarity threshold; a standard description vector is preset, and when the vector similarity between the standard description vector and the description vector is greater than or equal to the similarity threshold, it indicates that the target emotion recognition result can be used to determine the user's expressed emotion; the target emotion recognition result and the standard description vector can be set in advance by a technician according to human emotions reflected by a large number of speech features;
[0085] Determining the expressed emotion based on the multiple target emotion recognition results;
[0086] and / or,
[0087] Based on a preset search formula generation template, a recognition knowledge search formula is determined according to the feature set; the determined recognition knowledge search formula can search out recognition knowledge that can be used to determine the user's expression emotion, and the recognition knowledge indicates what kind of emotion the feature set represents the user, so the expression emotion can be determined based on the recognition knowledge;
[0088] Based on the recognition knowledge search formula, searching for recognition knowledge from the emotion recognition library;
[0089] Based on the recognition knowledge, the expressed emotion is determined.
[0090] The embodiment of the present invention provides a long speech emotion intelligent recognition system, such as Figure 2 As shown, including:
[0091] Acquisition module 1, used to acquire the user's long voice;
[0092] Extraction module 2, used for extracting the feature set of the long human voice;
[0093] The recognition module 3 is used to determine the user's expressed emotions based on the feature set and a preset emotion recognition library.
[0094] The acquisition module 1 acquires the user's long voice, including:
[0095] Obtain multimodal data of users;
[0096] When the multimodal data meets at least one acquisition trigger condition in a preset acquisition trigger condition library, the user's long human voice is acquired.
[0097] The extraction module 2 extracts the feature set of the long human voice, including:
[0098] Based on a preset segmentation interval, the long human voice is segmented to obtain a human voice sequence; the voice length of the first n-1 segmented voices in the human voice sequence is equal to the segmentation interval, and the voice length of the nth segmented voice is less than or equal to the segmentation interval; n is the total number of segmented voices in the human voice sequence;
[0099] Extracting the feature set of the vocal sequence based on feature extraction rules;
[0100] The feature extraction rules include:
[0101] Based on a preset first feature extraction template, extracting features from the segmented speech in sequence according to the order in which the segmented speech is arranged in the vocal sequence;
[0102] and / or,
[0103] When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a second supplementary feature extraction template and a first indication type in a preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i-th segmented speech and the i+1-th segmented speech in the vocal sequence based on the second supplementary feature extraction template; 1≤i≤n;
[0104] and / or,
[0105] When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a third supplementary feature extraction template and a second indication type in the preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i+j-th segmented speech in the vocal sequence based on the third supplementary feature extraction template; 1≤j≤ni.
[0106] The recognition module 3 determines the user's expressed emotion based on the feature set and the preset emotion recognition library, including:
[0107] Constructing a description vector of the feature set;
[0108] Determine a plurality of target emotion recognition results from the emotion recognition library; the vector similarity between a preset standard description vector corresponding to the target emotion recognition result and the description vector is greater than or equal to a preset similarity threshold;
[0109] Determining the expressed emotion based on the multiple target emotion recognition results;
[0110] and / or,
[0111] Based on a preset search formula generation template, determining a recognition knowledge search formula according to the feature set;
[0112] Based on the recognition knowledge search formula, searching for recognition knowledge from the emotion recognition library;
[0113] Based on the recognition knowledge, the expressed emotion is determined.
[0114] An embodiment of the present invention provides a computer-readable storage medium, characterized in that a computer program code is stored therein, and when the computer program code is executed by a processor, the long speech emotion intelligent recognition method described in any one of the above items is implemented.
[0115] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A long speech emotion intelligent recognition method, characterized in that: include: Get the user's long voice. Extracting a feature set of the human voice long speech; Determining the user's expressed emotion based on the feature set and a preset emotion recognition library; The feature set of extracting the long human voice includes: Based on a preset segmentation interval, the long human voice is segmented to obtain a human voice sequence; the voice length of the first n-1 segmented voices in the human voice sequence is equal to the segmentation interval, and the voice length of the nth segmented voice is less than or equal to the segmentation interval; n is the total number of segmented voices in the human voice sequence; Extracting the feature set of the vocal sequence based on feature extraction rules; The feature extraction rules include: Based on a preset first feature extraction template, extracting features from the segmented speech in sequence according to the order in which the segmented speech is arranged in the vocal sequence; and, When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a second supplementary feature extraction template and a first indication type in a preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i-th segmented speech and the i+1-th segmented speech in the vocal sequence based on the second supplementary feature extraction template; 1≤i≤n; and, When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a third supplementary feature extraction template and a second indication type in the preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i+j-th segmented speech in the vocal sequence based on the third supplementary feature extraction template; 1≤j≤ni.
2. The long speech emotion intelligent recognition method according to claim 1, characterized in that: The step of obtaining the user's long human voice includes: Obtain multimodal data of users; When the multimodal data meets at least one acquisition trigger condition in a preset acquisition trigger condition library, the user's long human voice is acquired.
3. Long speech emotion intelligent recognition system, characterized by: include: An acquisition module is used to acquire the user's long voice. An extraction module, used for extracting a feature set of the human voice long speech; A recognition module, used to determine the user's expressed emotion based on the feature set and a preset emotion recognition library; The extraction module extracts the feature set of the long human voice, including: Based on a preset segmentation interval, the long human voice is segmented to obtain a human voice sequence; the voice length of the first n-1 segmented voices in the human voice sequence is equal to the segmentation interval, and the voice length of the nth segmented voice is less than or equal to the segmentation interval; n is the total number of segmented voices in the human voice sequence; Extracting the feature set of the vocal sequence based on feature extraction rules; The feature extraction rules include: Based on a preset first feature extraction template, extracting features from the segmented speech in sequence according to the order in which the segmented speech is arranged in the vocal sequence; and, When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a second supplementary feature extraction template and a first indication type in a preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i-th segmented speech and the i+1-th segmented speech in the vocal sequence based on the second supplementary feature extraction template; 1≤i≤n; and, When feature extraction is performed on the i-th segmented speech in the vocal sequence, if the extracted speech feature corresponds to a third supplementary feature extraction template and a second indication type in the preset subsequent feature extraction indication library, supplementary feature extraction is performed on the i+j-th segmented speech in the vocal sequence based on the third supplementary feature extraction template; 1≤j≤ni.
4. The long speech emotion intelligent recognition system as claimed in claim 3, characterized in that: The acquisition module acquires the user's long voice, including: Obtain multimodal data of users; When the multimodal data meets at least one acquisition trigger condition in a preset acquisition trigger condition library, the user's long human voice is acquired.
5. A computer-readable storage medium, characterized in that: Computer program codes are stored, and when the computer program codes are executed by a processor, the long speech emotion intelligent recognition method as described in any one of claims 1-2 is implemented.
