A communication state analysis method, device and medium for non-verbal signals
By separating and analyzing non-verbal signals in phone calls, combined with neural network models and MFCC technology, the communication status of non-verbal signals is identified, which solves the problem of existing quality inspection ignoring non-verbal signals and improves the comprehensiveness of customer service quality inspection. and accuracy.
Patent Information
- Application Number
- CN202411068114.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The existing quality inspection of telephone customer service mainly focuses on verbal signals and ignores non-verbal signals, resulting in incomplete quality inspection of call content and inability to effectively reflect the communication atmosphere and customer satisfaction.
By acquiring the audio signal, we separate and extract the audio features of the non-verbal signal, use the neural network model for classification and labeling, and combine the contextual information of the speech signal to identify the communication status of the non-verbal signal, including zero-crossing rate, short-term energy, and spectrum. The centroid and spectral flatness features are analyzed using the Mel Frequency Cepstrum Coefficient (MFCC) technology and the Tongyi Qianwen model.
It achieves effective recognition of the emotional meaning and communication status of non-verbal signals, supplements the quality inspection of verbal signals, improves the comprehensiveness and accuracy of quality inspection, and helps customer service optimize communication strategies.
Smart Images

Figure CN118588112B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication voice processing, and in particular to a communication state analysis method, device and medium for non-verbal signals. Background Art
[0002] Telephone customer service is a key communication bridge to maintain customer relationships. It is responsible for answering customer questions and solving them in a timely manner to maintain customer trust in the company. Its service quality is directly related to the company's competitiveness and position in the market. Therefore, in order to ensure the service quality of telephone customer service, companies need to conduct quality inspections on the content of customer service calls to promote customer service specialists to provide customers with a better service experience.
[0003] However, existing call quality inspections usually focus on verbal signals, i.e. whether the customer service staff is polite, whether they have complete business knowledge, whether they respond quickly, etc., but often ignore non-verbal signals during the call, such as silence, laughter, sighs, etc. In fact, these non-verbal signals can also indirectly reflect the current communication atmosphere, customer satisfaction, and even potential dissatisfaction or needs. Therefore, the lack of non-verbal signal quality inspection makes the quality inspection of call content by enterprises not comprehensive, which needs further optimization. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a communication status analysis method, device and medium for non-verbal signals.
[0005] A first aspect of the present invention provides a communication state analysis method for non-verbal signals, comprising the following steps:
[0006] Acquire an audio signal, and separate a non-speech signal and a speech signal from the audio signal; the non-speech signal and the speech signal have an order relationship;
[0007] Extracting audio features from the non-speech signal to obtain audio features of the non-speech signal;
[0008] Inputting the extracted audio features into a preset neural network model to obtain classification labels of the audio features;
[0009] Performing context analysis on the speech signal to obtain context information of the speech signal;
[0010] Based on the classification label and the context information, a communication state under the non-speech signal in the audio signal is identified.
[0011] Further, the audio features of the non-speech signal include zero crossing rate features, short-time energy features, spectrum centroid features and spectrum flatness features;
[0012] The zero crossing rate feature is used to characterize the frequency feature of the non-speech signal;
[0013] The short-term energy feature is used to characterize the energy change of the non-speech signal;
[0014] The spectrum centroid feature is used to characterize the spectrum centroid of the non-speech signal;
[0015] The frequency spectrum flatness feature is used to characterize the frequency spectrum flatness of the non-speech signal.
[0016] Furthermore, the step of extracting audio features from the non-speech signal to obtain the audio features of the non-speech signal specifically includes the following steps:
[0017] Loading the non-verbal signal, and converting the non-verbal signal into a time series form;
[0018] Performing pre-emphasis, framing and windowing processing on the non-speech signal in the time series form to obtain a framed non-speech signal;
[0019] Performing a fast Fourier transform on the framed non-speech signal, calculating a power spectrum of the framed non-speech signal, and obtaining a power spectrum signal;
[0020] Applying a Mel filter bank to the power spectrum signal to obtain a Mel frequency axis signal;
[0021] Performing logarithmic processing on the Mel frequency axis signal;
[0022] The Mel frequency axis signal in logarithmic form is subjected to discrete cosine transform to obtain MFCC features as audio features of the non-speech signal.
[0023] Furthermore, the preset neural network model is a Tongyi Qianwen model, and the Tongyi Qianwen model is trained by the following steps:
[0024] Collecting non-speech signal samples, and extracting audio features from the non-speech signal samples to obtain sample audio features;
[0025] Classify and annotate the sample audio features, and construct a training set and a validation set based on the sample audio features;
[0026] Setting the training parameters of the Tongyi Qianwen model, wherein the training parameters include learning rate, number of hidden layers, hidden layer size, and number of attention heads;
[0027] Add a low-rank matrix in each hidden layer for the model to learn low-rank features;
[0028] Use the training set to train the model and use the validation set to evaluate the model output performance;
[0029] When the output performance of the model does not reach the preset indicators, return to the step of setting the training parameters of the Tongyi Qianwen model to adjust the model training parameters and train again until the output performance of the model reaches the preset indicators.
[0030] Furthermore, after the step of obtaining the classification labeling of the audio features, the following steps are also included:
[0031] According to the classification labels of the audio features, an emotion label is assigned to the non-verbal signal corresponding to each audio feature.
[0032] Furthermore, the context analysis of the speech signal specifically includes the following steps:
[0033] Performing speech-to-text processing on the speech signal to obtain audio text;
[0034] Perform keyword recognition on the audio text to identify the conversation intention corresponding to the audio text;
[0035] The conversation intent corresponding to each audio text is output as context information.
[0036] Furthermore, the identifying the communication state of the non-verbal signal in the audio signal based on the classification mark and the context information specifically includes the following steps:
[0037] Arranging the classification marks and context information according to the order relationship between the non-speech signal and the speech signal to obtain an audio feature sequence;
[0038] The communication status of each non-verbal signal is analyzed by combining the classification label information corresponding to the non-verbal signal and the context information corresponding to the adjacent verbal signal.
[0039] Furthermore, for each non-speech signal, combining the classification mark information corresponding to the non-speech signal and the context information corresponding to the adjacent speech signal to analyze the communication state under the non-speech signal specifically includes the following steps:
[0040] Determine the conversation atmosphere under the current non-verbal signal according to the corresponding classification mark information of the non-verbal signal;
[0041] Determine the communication scene corresponding to the current non-verbal signal based on the contextual information corresponding to the adjacent verbal signal;
[0042] Read the preset communication scene-dialogue atmosphere-communication state relationship table to determine the communication state corresponding to the current non-verbal signal.
[0043] A second aspect of the present invention discloses an electronic device, comprising a processor and a memory;
[0044] The memory is used to store programs;
[0045] The processor executes the program to implement the communication status analysis method for non-verbal signals.
[0046] A third aspect of the present invention discloses a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the communication status analysis method for non-verbal signals.
[0047] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.
[0048] The embodiments of the present invention have the following beneficial effects: the communication status analysis method, device and medium for non-verbal signals provided by the present invention can reveal the emotional meaning and communication status of non-verbal signals in calls by identifying and analyzing them. The present invention can be effectively applied to the field of telephone customer service quality inspection, effectively supplementing the quality inspection of speech signals and improving the comprehensiveness and accuracy of quality inspection evaluation.
[0049] Additional aspects and advantages of the present invention will be given in part in the following description, and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 It is a basic flow chart of a method for analyzing communication status of non-verbal signals according to an embodiment of the present invention;
[0052] Figure 2 is a schematic diagram of a non-verbal signal spectrum according to an embodiment of the present invention;
[0053] Figure 3 is a schematic diagram of the frequency of the zero crossing rate in the audio feature of an embodiment of the present invention;
[0054] Figure 4 is a short-time energy amplitude diagram of the audio feature in an embodiment of the present invention;
[0055] Figure 5 is a schematic diagram of the change of the centroid of the spectrum in the audio feature of an embodiment of the present invention;
[0056] Figure 6 is a schematic diagram of the change of spectrum flatness in the audio feature of an embodiment of the present invention;
[0057] Figure 7 Schematic diagram of the structure of the Tongyi Qianwen model used in the embodiment of the present invention;
[0058] Figure 8 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention;
[0059] Fig. 9 It is a schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] like Figure 1 As shown, an embodiment of the present invention provides a communication state analysis method for non-verbal signals, comprising the following steps:
[0062] S1. Acquire an audio signal, and separate a non-speech signal and a speech signal from the audio signal.
[0063] S2. Extract audio features from the non-speech signal to obtain audio features of the non-speech signal.
[0064] S3. Input the extracted audio features into a preset neural network model to obtain classification labels of the audio features.
[0065] S4. Perform context analysis on the speech signal to obtain context information of the speech signal.
[0066] S5. Based on the classification tag and context information, identify the communication state under the non-verbal signal in the audio signal.
[0067] The implementation process of each step of the present invention is described in detail below:
[0068] S1. Acquire an audio signal, and separate a non-speech signal and a speech signal from the audio signal.
[0069] After the telephone customer service completes the communication with the customer, a call recording will usually be retained in the call system. The embodiment of the present invention uses the call recording of the telephone customer service as the audio signal input. These audio signals usually include speech signals and non-verbal signals, where the speech signal refers to the speech or talk of the user or customer service personnel over the phone, such as the customer service's greeting content, the user's business consultation request and the customer service's answer to the request, etc.; the non-verbal content refers to the language characteristics shown by the user or customer service during the speech process in addition to these speeches or talks, such as tone, speaking speed, pauses, stress, etc. Quality inspection of non-verbal features during the call can effectively understand the emotions and attitudes expressed by both the user and the customer service during the communication process, and play a supplementary and perfect role in customer service quality inspection work.
[0070] After obtaining the audio signal in the embodiment of the present invention, it is necessary to separate the speech signal and the non-speech signal from the audio signal. The embodiment of the present invention uses VAD (Voice Activity Detection) technology to perform signal separation, divides the audio signal into multiple audio frames through an acoustic model, and then further determines whether these audio frames belong to valid audio frames or invalid audio frames, and classifies the valid audio frames as speech signals, and classifies the invalid audio frames as non-speech signals. It should be noted that those skilled in the art can also choose a suitable audio segmentation method to separate speech signals and non-speech signals according to their own needs, including manual segmentation, ICA segmentation (Independent Component Analysis), principal component analysis segmentation, etc.
[0071] At the same time, during the conversation between the user and the customer service, the user's / customer service's emotions or service levels are not static, so the separated speech signals and non-verbal signals have a fixed order relationship, that is, the order of a certain speech signal / non-verbal signal and other speech signals / non-verbal signals is fixed. The communication scenarios of different non-verbal signals are determined through this fixed order relationship, and different quality inspection evaluations are further given for different scenarios.
[0072] S2. Extract audio features from the non-speech signal to obtain audio features of the non-speech signal.
[0073] The audio features extracted in this embodiment include zero-crossing rate features, short-time energy features, spectrum centroid features, and spectrum flatness features. Among them, the zero-crossing rate feature is used to characterize the frequency characteristics of non-speech signals; the short-time energy feature is used to characterize the energy change of non-speech signals; the spectrum centroid feature is used to characterize the spectrum center of gravity of non-speech signals; and the spectrum flatness feature is used to characterize the spectrum flatness of non-speech signals. Different non-speech signals have different performances in audio features. The following is an analysis of the audio features displayed by the three non-speech signals of silence, laughter, and sighs:
[0074] Silence: For silent signals, their zero-crossing rate characteristics and short-time energy characteristics are usually very low (less than 0.05, less than 0.01) or even close to zero, because their signals change less and contain almost no energy; the spectral centroid of silence is low (less than 500Hz) and the flatness is moderate (between 0.1 and 0.2), showing that the signal is single and has no obvious frequency components.
[0075] Laughter: For laughter signals, its zero-crossing rate characteristics and short-time energy characteristics are relatively high (greater than 0.15, greater than 0.05), because its frequency changes rapidly and its energy fluctuates greatly; the frequency centroid of laughter is relatively high (greater than 2000Hz) and its flatness is relatively low (less than 0.1), showing that it has many high-frequency components and a complex spectrum.
[0076] Sigh: For sigh signals, the zero-crossing rate characteristics and short-time energy characteristics are moderate (between 0.05 and 0.15, between 0.01 and 0.05), because its frequency changes less, the energy is lower but the timing is long; the spectral centroid of sigh is low (between 500Hz and 2000Hz) and the flatness is high (greater than 0.2), showing that it has many low-frequency components and a smooth spectrum.
[0077] The feature extraction module of the non-speech signal in the embodiment of the present invention is implemented by using the Mel-frequency cepstral coefficient (MFCC) technology. The Mel-frequency cepstral coefficient is a feature extraction technology widely used in the field of speech recognition and audio processing, and can obtain the spectral characteristics and time domain change characteristics of the non-speech signal.
[0078] Specifically, step S2 includes the following steps:
[0079] S2-1. Load the non-verbal signal and convert the non-verbal signal into a time series form.
[0080] S2-2. Pre-emphasize, frame and window the non-speech signal in the form of a time series to obtain a framed non-speech signal. The pre-emphasis part can enhance the high frequency part by applying a first-order digital filter, thereby reducing the phenomenon that the amplitude spectrum of the audio signal attenuates with increasing frequency. The framing and windowing part is used to divide the continuous audio signal into a series of overlapping short-time windows, usually with a window size of 20-30 milliseconds and a step (frame shift) of about 10 milliseconds. Use windowing functions such as the Hamming window to reduce boundary effects.
[0081] S2-3. Perform fast Fourier transform on the framed non-speech signal, calculate the power spectrum of the framed non-speech signal, and obtain a power spectrum signal. Fast Fourier Transform (FFT) is used to convert a time domain signal into a frequency domain signal to obtain a spectrum of each frame of the non-speech signal.
[0082] S2-4. Apply a Mel filter bank to the power spectrum signal to obtain a Mel frequency axis signal. A Mel filter bank refers to a filter bank whose center frequency follows the Mel scale. The Mel filter bank can effectively simulate the auditory characteristics of the human ear and calculate the energy output by each filter, which is represented by a Mel frequency axis signal.
[0083] S2-5. Logarithmic processing is performed on the Mel frequency axis signal. Since the human ear's perception of sound intensity is nonlinear, it follows the logarithmic law. In other words, the human ear's perception of sound intensity is closer to the logarithmic scale. For example, when the intensity of a sound doubles, the human ear does not perceive it as twice as loud, but a smaller increment. Therefore, logarithmic processing of the Mel frequency axis signal can better simulate this auditory characteristic, so that the extracted features are more in line with human perception. At the same time, it can also narrow the dynamic range of the frequency and reduce the impact of noise.
[0084] S2-6. Perform discrete cosine transform on the Mel frequency axis signal in logarithmic form to obtain MFCC features as audio features of non-speech signals.
[0085] The formula of DCT can be expressed as:
[0086] in:
[0087] y k is the kth DCT coefficient.
[0088] α(k) is the normalization factor. When k=0, α(0)= , when k>0, α(k)= .
[0089] N is the total number of Mel filter banks, which is also the total number of DCT coefficients.
[0090] x n is the output energy of the nth Mel filter.
[0091] Performing DCT (Discrete Cosine Transform) on the Mel frequency axis signal can convert the energy distribution into a set of cepstral coefficients (MFCCs) as the audio feature output of the non-speech signal.
[0092] For example, Figure 2Input is a non-speech signal spectrogram. Its x-axis represents time (seconds), y-axis represents frequency (Hz), and color represents amplitude (decibel). Brighter colors in the spectrogram represent larger amplitudes, and darker colors represent smaller amplitudes. Horizontal stripes in the spectrogram represent periodic signals (such as vowels in speech), and vertical stripes represent transient signals (such as consonants).
[0093] against Figure 2 The non-speech signal shown in the figure is subjected to audio feature extraction to obtain the following Figure 3 , 4 , 5, and 6 show the audio features.
[0094] Figure 3 It represents the zero-crossing rate frequency, which is used to show the number of times the audio signal passes through the zero value in a short time window. The x-axis represents the time frame and the y-axis represents the zero-crossing rate. The part with a high zero-crossing rate indicates that the frequency component of the audio signal is high, which is usually related to high-frequency noise or consonants. The part with a low zero-crossing rate indicates that the frequency component of the audio signal is low, which is usually related to vowels or silence.
[0095] Figure 4 Represents short-time energy amplitude, used to show the energy change of audio signal in a short time window, the x-axis represents time frame, and the y-axis represents energy (normalized value). High energy segment indicates that the energy of audio signal in this time period is higher, usually related to speech or larger audio events; low energy segment indicates that the energy of audio signal in this time period is lower, usually related to silence or background noise.
[0096] Figure 5 Indicates the change of spectrum centroid, which is used to show the spectrum centroid of the audio signal. The x-axis represents the time frame and the y-axis represents the frequency (Hz). The high spectrum centroid part indicates that the frequency component of the audio signal is higher, which is usually related to high pitch or noisy sound; the low spectrum centroid part indicates that the frequency component of the audio signal is lower, which is usually related to bass or silence.
[0097] Figure 6 Indicates the change in spectrum flatness, used to display the spectrum flatness of the audio signal. The x-axis represents the time frame, and the y-axis represents the flatness. The high flatness part indicates that the audio signal is like noise, and the spectrum flatness is high; the low flatness part indicates that the audio signal is a harmonic signal, and the spectrum flatness is low.
[0098] S3. Input the extracted audio features into a preset neural network model to obtain classification labels of the audio features.
[0099] The embodiment of the present invention uses the Tongyi Qianwen model to classify audio features. The Tongyi Qianwen model is a large-scale language model developed by Alibaba Cloud. Its structure is as follows: Figure 6As shown in Figure 1, it is similar to the Transformer architecture. The Tongyi Qianwen model consists of a self-attention mechanism and feed-forward neural networks, which can process input sequences in parallel, giving it advantages in training speed and capturing long-distance dependencies.
[0100] The Tongyi Qianwen model is trained through the following steps:
[0101] S3-1. Collect non-verbal signal samples, extract audio features from non-verbal signal samples, and obtain sample audio features;
[0102] S3-2. Classify and annotate the sample audio features, and construct a training set and a validation set based on the sample audio features;
[0103] S3-3. Set the training parameters of the Tongyi Qianwen model, including learning rate, number of hidden layers, hidden layer size, and number of attention heads;
[0104] S3-4. Add a low-rank matrix to each hidden layer for the model to learn low-rank features;
[0105] S3-5. Use the training set to train the model and use the validation set to evaluate the model output performance;
[0106] S3-6. When the model output performance does not reach the preset indicators, return to the step of setting the training parameters of the Tongyi Qianwen model to adjust the model training parameters and train again until the model output performance reaches the preset indicators.
[0107] After pre-training the Tongyi Qianwen model with a large-scale corpus, it has strong language understanding and generation capabilities and can accurately capture the characteristics of non-verbal signals. After the audio features are input into the Tongyi Qianwen model, the model will infer the audio features internally and output the probability distribution of its belonging to a certain emotion category, and use the category with the largest probability distribution as the classification label of the audio feature.
[0108] In some embodiments, after obtaining the classification labeling step of the audio features, the following steps are also included:
[0109] According to the classification labels of the audio features, the non-verbal signals corresponding to each audio feature are assigned emotional labels. These labels reflect the emotional meaning of the non-verbal signals and serve as the basis for subsequent communication state analysis.
[0110] S4. Perform context analysis on the speech signal to obtain context information of the speech signal.
[0111] Step S4 specifically includes the following steps:
[0112] S4-1. Perform speech-to-text processing on the speech signal to obtain audio text;
[0113] S4-2. Perform keyword recognition on the audio text to identify the conversation intention corresponding to the audio text;
[0114] S4-3. Output the conversation intention corresponding to each audio text as context information.
[0115] In the embodiment of the present invention, the context analysis of speech signals is mainly implemented based on speech-to-text tools. After the speech signal is converted into text data, the emotional color and context of the audio text are judged by the keyword recognition tool, and the meaning of the audio text is further inferred, and finally the corresponding conversation intention is inferred. The context analysis step of the speech signal can be completed by a separate algorithm or an integrated natural language understanding (NLU) system. Modern natural language processing technologies, including language models such as BERT, RoBERTa, or methods based on deep learning, can automatically perform context analysis tasks, further accelerating and optimizing the text understanding process.
[0116] S5. Based on the classification tag and context information, identify the communication state under the non-verbal signal in the audio signal.
[0117] Step S5 specifically includes the following steps:
[0118] S5-1. Arrange the classification tags and context information according to the order relationship between the non-verbal signal and the speech signal to obtain an audio feature sequence;
[0119] S5-2. Analyze the communication status of each non-verbal signal by combining the classification tag information corresponding to the non-verbal signal and the context information corresponding to the adjacent verbal signal.
[0120] In the embodiment of the present invention, since each non-verbal signal has a classification mark about emotions, and each speech signal also has corresponding context information, the communication state under each non-verbal signal can be analyzed by combining the classification mark information corresponding to the non-verbal signal and the context information corresponding to the adjacent speech signal. For example, the happy emotion mark that appears in a conversation of mutual praise can indicate that the communication state of the conversation is friendly and harmonious; the angry emotion mark that appears in a conversation of mutual quarrels can indicate that the communication state of the conversation is conflicting and tense.
[0121] Specifically, for each non-speech signal, the communication state of the non-speech signal is analyzed by combining the classification mark information corresponding to the non-speech signal and the context information corresponding to the adjacent speech signal, which specifically includes the following steps:
[0122] S5-1-1. Determine the conversation atmosphere under the current non-verbal signal according to the classification mark information corresponding to the non-verbal signal;
[0123] S5-1-2. Determine the communication scene corresponding to the current non-verbal signal based on the context information corresponding to the adjacent speech signal;
[0124] S5-1-3. Read the preset communication scene-dialogue atmosphere-communication state relationship table to determine the communication state corresponding to the current non-verbal signal.
[0125] In the embodiment of the present invention, a preset communication scene-dialogue atmosphere-communication state relationship table is stored. According to the classification mark information corresponding to the non-verbal signal and the context information corresponding to the adjacent speech signal, the communication state corresponding to the current non-verbal signal can be obtained by looking up the table.
[0126] After obtaining the communication status corresponding to the non-verbal signal, a quality inspection feedback report for customer service can be further formed based on the analysis results, which provides specific improvement suggestions to help customer service personnel optimize communication strategies and improve service quality.
[0127] The embodiment of the present invention utilizes the powerful analytical capability of the Tongyi Qianwen model and combines it with a variety of audio feature extraction technologies to achieve accurate recognition and emotion analysis of non-verbal signals, providing a new technical means for quality inspection projects. It can be effectively applied to the field of telephone customer service quality inspection, effectively supplementing the quality inspection of speech signals and improving the comprehensiveness and accuracy of quality inspection evaluation.
[0128] Figure 8 : is a schematic diagram of the structure of the electronic device proposed in the second embodiment of the present invention. The memory of this embodiment stores program instructions for implementing the communication state analysis method for non-verbal signals in any of the above embodiments. The processor is used to execute the program instructions stored in the memory to perform the communication state analysis method for non-verbal signals. Among them, the processor can also be called CPU (Central Processing Unit). The processor may be an integrated circuit chip with signal processing capabilities. The processor can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0129] The contents of the method in the first embodiment of the present invention are all applicable to the electronic device embodiment. The functions specifically implemented by the electronic device embodiment are the same as those of the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method.
[0130] Fig. 9 The computer-readable storage medium of the third embodiment of the present invention is a schematic diagram of the structure. The computer-readable storage medium of the fourth embodiment of the present invention stores program instructions that can implement the above-mentioned communication state analysis method for non-verbal signals, wherein the program instructions can be stored in the above-mentioned storage medium in the form of a software product, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0131] The contents of the method in the first embodiment of the present invention are all applicable to the computer-readable storage medium embodiment. The functions specifically implemented by the computer-readable storage medium embodiment are the same as those of the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method.
[0132] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the communication status analysis method for non-verbal signals provided in the above embodiment.
[0133] Those skilled in the art will appreciate that the modules in the devices in the embodiments of the present invention may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments of the present invention may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the corresponding claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the corresponding claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0134] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0135] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0136] In addition, each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. In particular, for embodiments such as devices and equipment, since they are basically similar to method embodiments, the relevant parts can refer to the partial description of the method embodiments. The embodiments of the devices and equipment described above are merely schematic, wherein the modules, units, etc. described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed in multiple places, such as nodes of a system network. Specifically, some or all of the modules and units may be selected according to actual needs to achieve the purpose of the above-mentioned embodiment scheme. Those skilled in the art can understand and implement it without paying creative labor.
[0137] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0138] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0139] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.
[0140] In the embodiments of the present invention, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present invention may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context in the specific embodiment.
[0141] Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and cannot be construed as limitations of the present invention, and those of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention. Those skilled in the art will readily come to think of other embodiments of the present invention after considering the specification and practicing the present invention. This application is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art that are not disclosed in the present invention. The specification and embodiments are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
Claims
1. A communication state analysis method for non-verbal signals, characterized in that: The following steps are involved: Acquire an audio signal, and separate a non-speech signal and a speech signal from the audio signal; the non-speech signal and the speech signal have an order relationship; Extracting audio features from the non-speech signal to obtain audio features of the non-speech signal; Inputting the extracted audio features into a preset neural network model to obtain classification labels of the audio features; Performing context analysis on the speech signal to obtain context information of the speech signal; Based on the classification label and the context information, a communication state under the non-speech signal in the audio signal is identified.
2. A communication status analysis method for non-verbal signals according to claim 1, characterized in that: The audio features of the non-speech signal include zero crossing rate feature, short-time energy feature, spectrum centroid feature and spectrum flatness feature; The zero crossing rate feature is used to characterize the frequency feature of the non-speech signal; The short-term energy feature is used to characterize the energy change of the non-speech signal; The spectrum centroid feature is used to characterize the spectrum centroid of the non-speech signal; The frequency spectrum flatness feature is used to characterize the frequency spectrum flatness of the non-speech signal.
3. A communication status analysis method for non-verbal signals according to claim 2, characterized in that: The step of extracting audio features from the non-speech signal to obtain the audio features of the non-speech signal specifically includes the following steps: Loading the non-verbal signal, and converting the non-verbal signal into a time series form; Performing pre-emphasis, framing and windowing processing on the non-speech signal in the time series form to obtain a framed non-speech signal; Performing a fast Fourier transform on the framed non-speech signal, calculating a power spectrum of the framed non-speech signal, and obtaining a power spectrum signal; Applying a Mel filter bank to the power spectrum signal to obtain a Mel frequency axis signal; Performing logarithmic processing on the Mel frequency axis signal; The Mel frequency axis signal in logarithmic form is subjected to discrete cosine transform to obtain MFCC features as audio features of the non-speech signal.
4. The communication state analysis method for non-verbal signals according to claim 1, characterized in that: The preset neural network model is the Tongyi Qianwen model, and the Tongyi Qianwen model is trained by the following steps: Collecting non-speech signal samples, and extracting audio features from the non-speech signal samples to obtain sample audio features; Classify and annotate the sample audio features, and construct a training set and a validation set based on the sample audio features; Setting the training parameters of the Tongyi Qianwen model, wherein the training parameters include learning rate, number of hidden layers, hidden layer size, and number of attention heads; Add a low-rank matrix in each hidden layer for the model to learn low-rank features; Use the training set to train the model and use the validation set to evaluate the model output performance; When the output performance of the model does not reach the preset index, return to the step of setting the training parameters of the Tongyi Qianwen model to adjust the model training parameters and train again until the output performance of the model reaches the preset index.
5. The communication state analysis method for non-verbal signals according to claim 1, characterized in that: After the step of obtaining the classification labeling of the audio features, the following steps are also included: According to the classification labels of the audio features, an emotion label is assigned to the non-verbal signal corresponding to each audio feature.
6. The communication status analysis method for non-verbal signals according to claim 1, characterized in that: The context analysis of the speech signal specifically comprises the following steps: Performing speech-to-text processing on the speech signal to obtain audio text; Perform keyword recognition on the audio text to identify the conversation intention corresponding to the audio text; The conversation intent corresponding to each audio text is output as context information.
7. The communication state analysis method for non-verbal signals according to claim 1, characterized in that: The identifying the communication state of the non-verbal signal in the audio signal based on the classification mark and the context information specifically comprises the following steps: Arranging the classification marks and context information according to the order relationship between the non-speech signal and the speech signal to obtain an audio feature sequence; The communication status of each non-verbal signal is analyzed by combining the classification label information corresponding to the non-verbal signal and the context information corresponding to the adjacent verbal signal.
8. The communication state analysis method for non-verbal signals according to claim 7, characterized in that: For each non-verbal signal, combining the classification mark information corresponding to the non-verbal signal and the context information corresponding to the adjacent verbal signal to analyze the communication state under the non-verbal signal specifically includes the following steps: Determine the conversation atmosphere under the current non-verbal signal according to the corresponding classification mark information of the non-verbal signal; Determine the communication scene corresponding to the current non-verbal signal based on the contextual information corresponding to the adjacent verbal signal; Read the preset communication scene-dialogue atmosphere-communication state relationship table to determine the communication state corresponding to the current non-verbal signal.
9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement a communication status analysis method for non-verbal signals according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement a communication status analysis method for non-verbal signals according to any one of claims 1 to 8.
