A method and system for emotion detection based on speech signal

By analyzing repeated word categories in speech text data, calculating feature value differences and distribution similarities, and filtering out redundant features, the accuracy of emotion detection is improved and the problem of reduced accuracy of emotion detection in traditional methods in high-pressure environments is solved. .

CN118467742BActive Publication Date: 2024-09-10SHENYANG CONTAIN ELECTRONICS SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925796.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-10
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Traditional emotion detection methods have over-fitting problems when dealing with complex emotional states, especially in high-pressure environments such as interrogation investigations and detention care, which leads to a decrease in the accuracy of emotion detection results.

Method used

By obtaining the repeated word categories in the speech text data, calculating the feature value difference and distribution similarity between the target repeated words and the reference repeated words of each repeated word category, obtaining the emotional feature information content, and filtering and clearing them. Obtain the cleaned speech text data for emotion detection.

Benefits of technology

It eliminates the redundancy of emotional features in speech signals, avoids overfitting, and improves the accuracy of emotion detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467742B
    Figure CN118467742B
Patent Text Reader

Abstract

The present invention relates to the field of speech signal processing technology, and in particular to a method and system for emotion detection based on speech signals, comprising: obtaining speech text data of a detection object; obtaining a plurality of repeated word categories; obtaining target repeated words and reference repeated word text data of each repeated word category; obtaining the cumulative difference of each dimension feature value of each repeated word category; obtaining the cumulative distribution similarity of each dimension feature value of each repeated word category; obtaining the emotional feature information content of each repeated word category according to the cumulative difference and the cumulative distribution similarity; screening and removing all repeated word categories according to the emotional feature information content to obtain the cleaned speech text data; and performing emotion detection on the cleaned speech text data. The present invention improves the accuracy of the emotion detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of speech signal processing, and in particular to a speech signal-based emotion detection method and system. Background Art

[0002] Traditional emotion detection methods mainly rely on manually extracted acoustic features, such as pitch, rhythm, intensity, resonance peaks, etc., combined with machine learning algorithms for emotion classification; however, these methods often have limitations in dealing with complex emotional states, especially in specific scenarios such as high-pressure environments such as interrogation investigations and detention care.

[0003] In scenarios such as interrogation, investigation, and detention and care, the subjects often experience abnormalities in their speech signals due to emotions such as tension and anxiety, such as stuttering and repeated speech. These abnormalities affect the natural fluency of the speech signal, causing redundancy in emotional features, leading to overfitting when performing emotion detection through training models, and resulting in a decrease in the accuracy of emotion detection results. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method and system for emotion detection based on speech signals.

[0005] An embodiment of the present invention provides a method for emotion detection based on a speech signal, the method comprising the following steps:

[0006] Obtaining the voice and text data of the detected object;

[0007] By comparing the characters in the speech text data, a plurality of repeated word categories are obtained; a target repeated word and reference repeated word text data of each repeated word category are obtained; each repeated word category includes a plurality of repeated words; each repeated word corresponds to a plurality of frames of speech data, and each frame of speech data corresponds to a plurality of dimensional feature values;

[0008] According to the difference of each dimension feature value between the target repeated words of each repeated word category and the reference repeated word text data, the cumulative difference of each dimension feature value of each repeated word category is obtained; according to the distribution similarity of each dimension feature value between the target repeated words of each repeated word category and the reference repeated word text data, the cumulative distribution similarity of each dimension feature value of each repeated word category is obtained; according to the cumulative difference and cumulative distribution similarity, the sentiment feature information content of each repeated word category is obtained;

[0009] All repeated word categories are screened and removed according to the emotional feature information content to obtain cleaned speech text data; and emotion detection is performed on the cleaned speech text data.

[0010] Preferably, the method of obtaining a plurality of repeated word categories by comparing the characters in the speech text data includes:

[0011] For any character in the speech text data, if the character is compared with the previous character and the comparison result is the same, the character is recorded as a repeated word; all the characters in the speech text data are combined in pairs starting from the first character to obtain several words of the speech text data; for any word, if the word is compared with the previous word and the comparison result is the same, the word is recorded as a repeated word.

[0012] Preferably, the specific method of obtaining the target repeated word and reference repeated word text data of each repeated word category includes:

[0013] For any repeated word category, the last repeated word in the repeated word category is used as the target repeated word of the repeated word category; the text data consisting of all repeated words in the repeated word category except the target repeated word is used as the reference repeated word text data of the repeated word category.

[0014] Preferably, the method of obtaining the cumulative difference of each dimensional feature value of each repeated word category according to the difference of each dimensional feature value between the target repeated word of each repeated word category and the reference repeated word text data includes the following specific methods:

[0015] For the speech text data Repeated word category Dimensional feature values;

[0016] According to The first of all frames of speech data in the target repeated word of the repeated word category dimension feature values, and obtain the Category target repeated words Dimensional characteristic curves;

[0017] According to The first of all the frame speech data in the reference repeated word text data of the repeated word category dimension feature values, and obtain the Class Reference Repeated Word Dimensional characteristic curves;

[0018] The first Category target repeated words The characteristic curve of the first dimension Class Reference Repeated Word The dimensional characteristic curves are subtracted to obtain the Repeated word category dimension feature difference curve; Repeated word category The integral result of the feature difference curve of each dimension is taken as the Repeated word category The cumulative difference of the feature values ​​of each dimension.

[0019] Preferably, the obtaining Category target repeated words dimensional characteristic curves, including the following specific methods:

[0020] Each frame of speech data is used as the horizontal axis, and the The dimension feature value is the ordinate, The first of all frames of speech data in the target repeated word of the repeated word category The dimensional feature values ​​are input into the two-dimensional coordinate system, and several target repeated word data points are obtained. All target repeated word data points are fitted by the least squares method to form the first Category target repeated words Dimensional characteristic curve.

[0021] Preferably, the obtaining Class Reference Repeated Word dimensional characteristic curves, including the following specific methods:

[0022] Each frame of speech data is used as the horizontal axis, and the The dimension feature value is the ordinate, The first of all the frame speech data in the reference repeated word text data of the repeated word category The dimensional feature values ​​are input into the two-dimensional coordinate system, and several reference repeated word text data points are obtained. All reference repeated word text data points are fitted by the least squares method to form the first Class Reference Repeated Word Dimensional characteristic curve.

[0023] Preferably, the method of obtaining the cumulative distribution similarity of each dimensional feature value of each repeated word category according to the distribution similarity of each dimensional feature value between the target repeated word of each repeated word category and the reference repeated word text data includes the following specific methods:

[0024] The first The first of all frames of speech data in the target repeated word of the repeated word category The mean of the eigenvalues ​​of the dimensions is recorded as the first mean; The target repeated word in the repeated word category The first frame of voice data The absolute value of the difference between the eigenvalue of the dimension and the first mean is recorded as the first absolute value of the difference; The first of all the frame speech data in the reference repeated word text data of the repeated word category The mean of the eigenvalues ​​of the dimensions is recorded as the second mean; The reference repeated word text data of the repeated word category The first frame of voice data The absolute value of the difference between the first dimension feature value and the second mean is recorded as the second difference absolute value; the product of the first difference absolute value and the second difference absolute value is recorded as the Repeated word category The first product of the frame voice data; The mean of the first product of all frame speech data of the repeated word category is taken as the Repeated word category Similarity of the cumulative distribution of feature values ​​of each dimension.

[0025] Preferably, the method of obtaining the sentiment feature information content of each repeated word category according to the cumulative difference and the cumulative distribution similarity includes the following specific methods:

[0026] The first Repeated word category The normalized value of the cumulative distribution similarity of the feature values ​​of the dimension is recorded as the first normalized value; Repeated word category The ratio of the cumulative difference of the feature values ​​of the dimension to the first normalized value is taken as the Repeated word category The first ratio of the eigenvalues ​​of the dimensions; The mean of the first ratios of all dimension feature values ​​of the repeated word categories is recorded as the third mean; the normalized value of the third mean is taken as the The sentiment feature information content of repeated word categories.

[0027] Preferably, the method of screening and removing all repeated word categories according to the emotional feature information content to obtain the cleaned speech text data includes the following specific methods:

[0028] Preset a threshold parameter , if the emotional feature information content of any repeated word category in the speech text data is less than the threshold parameter , record the repeated word category as the repeated words to be processed; for any category of repeated words to be processed in the speech text data, clean up all the repeated words in the repeated words to be processed except the target repeated words to obtain the cleaned speech text data.

[0029] The present invention also proposes an emotion detection system based on speech signals, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of the emotion detection method based on speech signals when executing the computer program.

[0030] The beneficial effects of the technical solution of the present invention are: the present invention obtains several repeated word categories; obtains target repeated words and reference repeated word text data of each repeated word category; obtains the emotional feature information content of each repeated word category based on the cumulative difference and cumulative distribution similarity; screens and removes all repeated word categories based on the emotional feature information content to obtain cleaned speech text data; performs emotion detection on the cleaned speech text data; obtains whether the content of each repeated word category contains rich and different emotional information features by analyzing the distribution difference and similarity of the characteristic values ​​of each dimension between the target repeated words of each repeated word category and the reference repeated word text data; thereby eliminating the redundancy of emotional features in speech signals, avoiding the problem of overfitting when performing emotion detection through training models, and improving the accuracy of emotion detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 A flowchart of the steps of a method for emotion detection based on speech signals of the present invention;

[0033] Figure 2 This is a feature relationship flow chart of emotion detection based on speech signals of the present invention. DETAILED DESCRIPTION

[0034] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of an emotion detection method and system based on speech signals proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0035] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0036] The following is a detailed description of a method and system for emotion detection based on speech signals provided by the present invention in conjunction with the accompanying drawings.

[0037] See also Figure 1 , which shows a flowchart of a method for emotion detection based on speech signals provided by an embodiment of the present invention, the method comprising the following steps:

[0038] Step S001: Acquire the speech text data of the detection object.

[0039] It should be noted that in scenarios such as interrogation investigation and detention care, sentiment analysis of caregivers can help quickly identify the emotional state of the person being interrogated or cared for, so that corresponding communication methods can be adopted to achieve better communication results; at the same time, sentiment analysis can help timely discover individual psychological problems, provide timely mental health intervention, and provide more comprehensive safety protection for the person being interrogated or cared for.

[0040] Specifically, we first need to collect the voice and text data of the detection object. The specific process is as follows:

[0041] The voice signal data of the detected object is collected through a microphone in the nursing room; the voice signal data is converted into voice text data through voice recognition technology; wherein, the voice recognition technology is a prior art, and this embodiment will not be described in detail here.

[0042] So far, the speech text data of the detected object is obtained through the above method.

[0043] Step S002: obtaining a plurality of repeated word categories by comparing the characters in the speech text data; obtaining target repeated words and reference repeated word text data of each repeated word category.

[0044] It should be noted that during the retention period, the test subjects often have abnormalities in communication, such as stuttering and speech repetition, due to emotions such as tension and anxiety. These abnormalities affect the natural fluency of the speech signal, cause redundancy of emotional features, and lead to overfitting when performing emotion detection through training models, resulting in a decrease in the accuracy of emotion detection; when a word or phrase appears repeatedly in the speech text data of the test subject, it indicates that the test subject has repeated speech, thereby obtaining several repeated word categories in the speech text data.

[0045] It should be further explained that if the performance of the characteristic values ​​of each dimension in the speech signal corresponding to the repeated words is also similar, it means that the detection object is merely repeating the language, and these signals are redundant signals in the speech signal. The characteristic values ​​of each dimension of the repeated speech signal are pooled to reduce the redundant features of the speech signal data.

[0046] Specifically, for any character in the speech text data, if the character is compared with the previous character and the comparison result is the same, the character is recorded as a repeated word; all the characters in the speech text data are combined in pairs starting from the first character to obtain several words of the speech text data; for any word, if the word is compared with the previous word and the comparison result is the same, the word is recorded as a repeated word.

[0047] For any repeated word category, the last repeated word in the repeated word category is used as the target repeated word of the repeated word category; the text data consisting of all repeated words in the repeated word category except the target repeated word is used as the reference repeated word text data of the repeated word category.

[0048] It should be noted that current research on emotions generally believes that there are six basic emotions: fear, happiness, anger, disgust, sadness and surprise. Speech is a natural and direct way for humans to express emotions. When conducting emotion detection, speech data is an important basis. Emotions are mainly manifested in speech signals in four aspects: speaking rate, energy, pitch and resonance peaks. Therefore, it is necessary to obtain the emotional information content of speech signals by analyzing these four eigenvalues ​​of speech signals.

[0049] Specifically, for any repeated word in the speech text data, each repeated word corresponds to a segment of speech data; each segment of speech data is divided into a number of frames of speech data, where the length of each frame of speech data is ; For any frame of speech data, obtain several dimensional feature values ​​of the frame of speech data; the specific acquisition method includes:

[0050] For any frame of speech data, the pitch feature value of the frame of speech data is obtained by the Mel-frequency cepstral coefficient of the frame of speech data; the resonance peak feature value of the frame of speech data is obtained by the LPC algorithm; the total energy of the frame of speech data is used as the energy feature value of the frame of speech data; the inverse of the total number of all frame speech data in the segment of speech data is used as the speech rate feature value of the frame of speech data; wherein the above methods are all prior arts, and will not be described in detail in this embodiment.

[0051] So far, several repeated word categories in the speech text data are obtained through the above method; and the target repeated word and reference repeated word text data of each repeated word category are obtained.

[0052] Step S003: According to the difference of each dimensional feature value between the target repeated words of each repeated word category and the reference repeated word text data, obtain the cumulative difference of each dimensional feature value of each repeated word category; according to the distribution similarity of each dimensional feature value between the target repeated words of each repeated word category and the reference repeated word text data, obtain the cumulative distribution similarity of each dimensional feature value of each repeated word category; according to the cumulative difference and the cumulative distribution similarity, obtain the sentiment feature information content of each repeated word category.

[0053] It should be noted that if the difference between the characteristic values ​​of each dimension between the target repeated words of each repeated word category and the reference repeated word text data is greater, it means that the difference distribution of the emotional characteristic values ​​of this repeated word category is more regular, which means that although the texts expressed by these speech data are the same, the emotions contained are different, so the emotional information content is greater; and if the difference between the characteristic values ​​of each dimension between the target repeated words of each repeated word category and the reference repeated word text data is smaller, and the difference distribution of the emotional characteristic values ​​is more chaotic, then it is more likely to be an accidental difference caused by factors such as noise, and the emotional information content is smaller; therefore, the emotional characteristic information content of each repeated word category is obtained according to the difference and distribution similarity of the characteristic values ​​of each dimension between the target repeated words of each repeated word category and the reference repeated word text data.

[0054] 1. Obtain the cumulative difference of the feature values ​​of each dimension for each repeated word category.

[0055] It should be noted that the cumulative difference of the feature value of each dimension of each repeated word category is obtained by the difference between the feature curves of each dimension between the target repeated word of each repeated word category and the reference repeated word text data.

[0056] Preferably, in some implementations of the embodiments of the present invention, for the first Repeated word category dimension feature values, and obtain the Repeated word category The calculation method of the cumulative difference of the eigenvalues ​​of each dimension is:

[0057] According to The first of all frames of speech data in the target repeated word of the repeated word category dimension feature values, and obtain the Category target repeated words Dimensional characteristic curves;

[0058] According to The first of all the frame speech data in the reference repeated word text data of the repeated word category dimension feature values, and obtain the Class Reference Repeated Word Dimensional characteristic curves;

[0059] The first Category target repeated words The characteristic curve of the first dimension Class Reference Repeated Word The dimensional characteristic curves are subtracted to obtain the Repeated word category dimension feature difference curve; Repeated word category The integral result of the feature difference curve of each dimension is taken as the Repeated word category The cumulative difference of the feature values ​​of each dimension.

[0060] It should be noted that when performing curve difference calculation, the Class Reference Repeated Word The dimensional characteristic curve is compressed to the same Category target repeated words The lengths of the characteristic curves of each dimension are consistent.

[0061] Preferably, in some implementations of the embodiments of the present invention, Category target repeated words The dimensional characteristic curve and Class Reference Repeated Word The method for obtaining the characteristic curve of each dimension includes:

[0062] Each frame of speech data is used as the horizontal axis, and the The dimension feature value is the ordinate, The first of all frames of speech data in the target repeated word of the repeated word category The dimensional feature values ​​are input into the two-dimensional coordinate system, and several target repeated word data points are obtained. All target repeated word data points are fitted by the least squares method to form the first Category target repeated words Dimensional characteristic curve.

[0063] Preferably, in some implementations of the embodiments of the present invention, Category target repeated words The dimensional characteristic curve and Class Reference Repeated Word The method for obtaining the characteristic curve of each dimension includes:

[0064] Each frame of speech data is used as the horizontal axis, and the The dimension feature value is the ordinate, The first of all the frame speech data in the reference repeated word text data of the repeated word category The dimensional feature values ​​are input into the two-dimensional coordinate system, and several reference repeated word text data points are obtained. All reference repeated word text data points are fitted by the least squares method to form the first Class Reference Repeated Word Dimensional characteristic curve.

[0065] Among them, the least square method is an existing technology and will not be described in detail in this embodiment.

[0066] At this point, the cumulative difference of the feature values ​​of each dimension of each repeated word category is obtained.

[0067] 2. Obtain the cumulative distribution similarity of the feature values ​​of each dimension for each repeated word category.

[0068] It should be noted that, the lower the sentiment information content between the target repeated words in each repeated word category and the reference repeated word text data, the more similar the distribution of the characteristic values ​​of each dimension between the target repeated words in each repeated word category and the reference repeated word text data is, and thus the cumulative distribution similarity of the characteristic values ​​of each dimension of each repeated word category can be calculated.

[0069] Preferably, in some implementations of the embodiments of the present invention, for the first Repeated word category dimension feature values, and obtain the Repeated word category The calculation method for the cumulative distribution similarity of the eigenvalues ​​of each dimension is:

[0070] The first The first of all frames of speech data in the target repeated word of the repeated word category The mean of the eigenvalues ​​of the dimensions is recorded as the first mean; The target repeated word in the repeated word category The first frame of voice data The absolute value of the difference between the eigenvalue of the dimension and the first mean is recorded as the first absolute value of the difference; The first of all the frame speech data in the reference repeated word text data of the repeated word category The mean of the eigenvalues ​​of the dimensions is recorded as the second mean; The reference repeated word text data of the repeated word category The first frame of voice data The absolute value of the difference between the first dimension feature value and the second mean is recorded as the second difference absolute value; the product of the first difference absolute value and the second difference absolute value is recorded as the Repeated word category The first product of the frame voice data; The mean of the first product of all frame speech data of the repeated word category is taken as the Repeated word category Similarity of the cumulative distribution of feature values ​​of each dimension.

[0071] The specific formula is:

[0072]

[0073] In the formula, Indicates Repeated word category Similarity of cumulative distribution of feature values ​​of each dimension; Indicates The total number of all frames of speech data for repeated word categories; Indicates The target repeated word in the repeated word category The first frame of voice data Dimensional feature values; Indicates The first of all frames of speech data in the target repeated word of the repeated word category The mean of the feature values ​​of each dimension; Indicates The reference repeated word text data of the repeated word category The first frame of voice data Dimensional feature values; Indicates The first of all the frame speech data in the reference repeated word text data of the repeated word category The mean of the feature values ​​of the dimensions.

[0074] It should be noted that the cumulative distribution similarity is also the Repeated word category The covariance of the feature difference curve of each dimension; the larger the covariance, the The first difference between the target repeated words of the repeated word category and the reference repeated word text data The more similar the distribution of the eigenvalues ​​of the dimensions, the The sentiment information content between the target repeated words and the reference repeated words text data in the repeated word category is low.

[0075] At this point, the cumulative distribution similarity of each dimension feature value of each repeated word category is obtained.

[0076] 3. Obtain the sentiment feature information content of each repeated word category.

[0077] It should be noted that, the greater the cumulative difference, the greater the overall difference between the characteristic values ​​of each dimension between the target repeated word and the reference repeated word text data, which means that the target repeated word of each repeated word category has a higher sentiment information content relative to the reference repeated word text data; the greater the cumulative distribution similarity, the more similar the feature distribution between the characteristic values ​​of each dimension between the target repeated word and the reference repeated word text data, which means that the target repeated word of each repeated word category has a lower sentiment information content relative to the reference repeated word text data; therefore, the sentiment feature information content of each repeated word category is obtained based on the cumulative difference and the cumulative distribution similarity.

[0078] Preferably, in some implementations of the embodiments of the present invention, the calculation method for obtaining the sentiment feature information content of each repeated word category is:

[0079] The first Repeated word category The normalized value of the cumulative distribution similarity of the feature values ​​of the dimension is recorded as the first normalized value; Repeated word category The ratio of the cumulative difference of the feature values ​​of the dimension to the first normalized value is taken as the Repeated word category The first ratio of the eigenvalues ​​of the dimensions; The mean of the first ratios of all dimension feature values ​​of the repeated word categories is recorded as the third mean; the normalized value of the third mean is taken as the The sentiment feature information content of repeated word categories.

[0080] The specific formula is:

[0081]

[0082] In the formula, Indicates The sentiment feature information content of repeated word categories; Indicates The total number of dimensions of all dimension feature values ​​of repeated word categories; Indicates Repeated word category The cumulative difference of the feature values ​​of each dimension; Indicates Repeated word category Similarity of cumulative distribution of feature values ​​of each dimension; Represents the preset hyperparameters. This implementation presets , used to prevent the denominator from being 0; represents the hyperbolic tangent function; Represents the Sigmoid function.

[0083] It should be noted that Repeated word category The greater the cumulative difference of the eigenvalues ​​of the dimensions, the greater the The first difference between the target repeated words of the repeated word category and the reference repeated word text data The greater the overall difference between the feature values ​​of the dimensions, the greater the The target repeated words of the repeated word category have higher emotional information content than the reference repeated word text data; Repeated word category The greater the similarity of the cumulative distribution of the eigenvalues ​​of the dimensions, the greater the The first difference between the target repeated words of the repeated word category and the reference repeated word text data The more similar the feature distributions between the feature values ​​of the dimensions, the more similar the The target repeated words in each repeated word category have lower sentiment information content relative to the reference repeated word text data.

[0084] At this point, the sentiment feature information content of each repeated word category is obtained through the above method.

[0085] Step S004: Screen and remove all repeated word categories according to the emotional feature information content to obtain cleaned speech text data; perform emotion detection on the cleaned speech text data.

[0086] Specifically, a threshold parameter is preset , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. It depends on the specific implementation situation.

[0087] If the emotional feature information content of any repeated word category in the speech text data is less than the threshold parameter , record the repeated word category as the repeated words to be processed; for any category of repeated words to be processed in the speech text data, clean up all the repeated words in the repeated words to be processed except the target repeated words to obtain the cleaned speech text data; input the cleaned speech text data into the trained data model, and the data model outputs the detected emotion detection result.

[0088] It should be noted that the emotional feature information content is less than the threshold parameter This indicates that the repeated speech data in the speech signal data is just the repetition of the same content, which is redundant data of emotional information and needs to be cleaned up and the corresponding feature data needs to be deleted.

[0089] See also Figure 2, which shows a feature relationship flow chart of emotion detection based on speech signals.

[0090] Through the above steps, a method for emotion detection based on speech signals is completed.

[0091] The present invention also proposes an emotion detection system based on speech signals, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, steps S001 to S004 of an emotion detection method based on speech signals are implemented.

[0092] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for emotion detection based on speech signals, characterized in that: The method comprises the following steps: Obtaining the voice and text data of the detected object; By comparing the characters in the speech text data, a plurality of repeated word categories are obtained; a target repeated word and reference repeated word text data of each repeated word category are obtained; each repeated word category includes a plurality of repeated words; each repeated word corresponds to a plurality of frames of speech data, and each frame of speech data corresponds to a plurality of dimensional feature values; According to the difference of each dimension feature value between the target repeated words of each repeated word category and the reference repeated word text data, the cumulative difference of each dimension feature value of each repeated word category is obtained; according to the distribution similarity of each dimension feature value between the target repeated words of each repeated word category and the reference repeated word text data, the cumulative distribution similarity of each dimension feature value of each repeated word category is obtained; according to the cumulative difference and cumulative distribution similarity, the sentiment feature information content of each repeated word category is obtained; All repeated word categories are screened and removed according to the emotional feature information content to obtain the cleaned speech text data; the cleaned speech text data is subjected to emotional detection; The method of obtaining the cumulative difference of each dimensional feature value of each repeated word category according to the difference of each dimensional feature value between the target repeated word of each repeated word category and the reference repeated word text data includes the following specific methods: For the speech text data The first category of repeated words Dimensional feature values; According to The first of all frames of speech data in the target repeated word of the repeated word category dimension feature values, and obtain the Category target repeated words Dimensional characteristic curves; According to The first of all the frame speech data in the reference repeated word text data of the repeated word category dimension feature values, and obtain the Class Reference Repeated Word Dimensional characteristic curves; The first Category target repeated words The characteristic curve of the first dimension Class Reference Repeated Word The dimensional characteristic curves are subtracted to obtain the Repeated word category dimension feature difference curve; Repeated word category The integral result of the feature difference curve of each dimension is taken as the The first category of repeated words The cumulative difference of the feature values ​​of each dimension; The method of obtaining the cumulative distribution similarity of each dimensional feature value of each repeated word category according to the distribution similarity of each dimensional feature value between the target repeated word of each repeated word category and the reference repeated word text data includes the following specific methods: The first The first of all frames of speech data in the target repeated word of the repeated word category The mean of the eigenvalues ​​of the dimensions is recorded as the first mean; The target repeated word in the repeated word category The first frame of voice data The absolute value of the difference between the eigenvalue of the dimension and the first mean is recorded as the first absolute value of the difference; The first of all the frame speech data in the reference repeated word text data of the repeated word category The mean of the eigenvalues ​​of the dimensions is recorded as the second mean; The reference repeated word text data of the repeated word category The first frame of voice data The absolute value of the difference between the first dimension feature value and the second mean is recorded as the second difference absolute value; the product of the first difference absolute value and the second difference absolute value is recorded as the The first category of repeated words The first product of the frame voice data; The mean of the first product of all frame speech data of the repeated word category is taken as the The first category of repeated words Similarity of cumulative distribution of feature values ​​of each dimension; The specific method of obtaining the sentiment feature information content of each repeated word category according to the cumulative difference and the cumulative distribution similarity is as follows: The first The first category of repeated words The normalized value of the cumulative distribution similarity of the feature values ​​of the dimension is recorded as the first normalized value; The first category of repeated words The ratio of the cumulative difference of the feature values ​​of the dimension to the first normalized value is taken as the The first category of repeated words The first ratio of the eigenvalues ​​of the dimensions; The mean of the first ratios of all dimension feature values ​​of the repeated word categories is recorded as the third mean; the normalized value of the third mean is taken as the The sentiment feature information content of repeated word categories.

2. The emotion detection method based on speech signal according to claim 1, characterized in that: The method of obtaining a plurality of repeated word categories by comparing the characters in the speech text data includes: For any character in the speech text data, if the character is compared with the previous character and the comparison result is the same, the character is recorded as a repeated word; all the characters in the speech text data are combined in pairs starting from the first character to obtain several words of the speech text data; for any word, if the word is compared with the previous word and the comparison result is the same, the word is recorded as a repeated word.

3. The emotion detection method based on speech signal according to claim 1, characterized in that: The specific method of obtaining the target repeated word and reference repeated word text data of each repeated word category includes: For any repeated word category, the last repeated word in the repeated word category is used as the target repeated word of the repeated word category; the text data consisting of all repeated words in the repeated word category except the target repeated word is used as the reference repeated word text data of the repeated word category.

4. The emotion detection method based on speech signal according to claim 1, characterized in that: The acquisition Category target repeated words dimensional characteristic curves, including the following specific methods: Each frame of speech data is used as the horizontal axis, and the The dimension feature value is the ordinate, The first of all frames of speech data in the target repeated word of the repeated word category The dimensional feature values ​​are input into the two-dimensional coordinate system, and several target repeated word data points are obtained. All target repeated word data points are fitted by the least squares method to form the first Category target repeated words Dimensional characteristic curve.

5. The emotion detection method based on speech signal according to claim 1, characterized in that: The acquisition Class Reference Repeated Word dimensional characteristic curves, including the following specific methods: Each frame of speech data is used as the horizontal axis, and the The dimension feature value is the ordinate, The first of all the frame speech data in the reference repeated word text data of the repeated word category The dimensional feature values ​​are input into the two-dimensional coordinate system, and several reference repeated word text data points are obtained. All reference repeated word text data points are fitted by the least squares method to form the first Class Reference Repeated Word Dimensional characteristic curve.

6. The emotion detection method based on speech signal according to claim 1, characterized in that: The specific method of screening and removing all repeated word categories according to the emotional feature information content to obtain the cleaned speech text data includes: Preset a threshold parameter , if the emotional feature information content of any repeated word category in the speech text data is less than the threshold parameter , record the repeated word category as the repeated words to be processed; for any category of repeated words to be processed in the speech text data, clean up all the repeated words in the repeated words to be processed except the target repeated words to obtain the cleaned speech text data.

7. An emotion detection system based on speech signals, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the emotion detection method based on speech signals as described in any one of claims 1-6 are implemented.