Customer service work order entry method based on ASR speech recognition

Through ASR speech recognition technology, combined with deep learning and generative adversarial networks, it solves the problems of low efficiency and high error rate of customer service work order entry, achieves efficient and accurate work order generation and processing, and improves customer service quality.

CN118411992BActive Publication Date: 2024-09-03CHENGDU FOISONWAY TECH CO LTD
View PDF 16 Cites 0 Cited by

Patent Information

Application Number
CN202410878156.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-03
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing customer service work order entry method is inefficient and has a high error rate, resulting in long waiting times for customers and affecting processing efficiency and quality.

Method used

A customer service ticket entry method based on ASR speech recognition is adopted, noise is cleaned through adaptive filters and deep learning noise reduction models, voice activity detection and feature extraction are combined with deep neural networks, and the Transformer architecture is used for speech-to-text conversion and intent recognition. Generate adversarial network optimization work order content and conduct manual inspection and correction through a visual interface.

Benefits of technology

Significantly improves the efficiency and accuracy of work order generation, reduces manual operation time, reduces human errors, simplifies the work process of customer service representatives, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411992B
    Figure CN118411992B
Patent Text Reader

Abstract

The present application belongs to the technical field of work order entry, and more specifically, to a customer service work order entry method based on ASR voice recognition; the present invention greatly reduces manual operation time and improves work order generation efficiency through voice recognition, and significantly improves recognition and generation accuracy and reduces human errors through multi-level noise reduction, voice feature extraction, context correction and intent recognition technology; simplifies the workflow of customer service representatives through automated and intelligent processing steps, improves the boundary and accuracy of operations, and thus improves the overall user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of work order entry, and more specifically, to a customer service work order entry method based on ASR speech recognition. Background Art

[0002] The customer service ticket entry system plays a key role in modern customer service management. The customer service ticket system is used to record and process various customer requests, questions and feedback, and ensure that customer problems can be solved in a timely and efficient manner through systematic process management. Customer service tickets usually contain important information such as customer information, problem description, processing steps, relevant departments and personnel, etc.

[0003] At present, many companies rely on manual operation to enter customer service tickets. The specific process is as follows:

[0004] Customer contact: When a customer contacts the customer service center via phone, email, online chat or other channels, the customer service representative needs to record the customer's basic information and problem description.

[0005] Information judgment and entry: Customer service representatives determine what specific information needs to be filled in based on the customer's description, and manually enter this information into the corresponding table items in the system. Typical table items include customer name, contact information, problem category, detailed description, etc.

[0006] Information proofreading and submission: After completing the information entry, the customer service representative usually needs to proofread the input information to ensure the accuracy and completeness of the information. Subsequently, the work order is submitted to the system and waits for processing by the relevant department.

[0007] Although this manual input method meets the basic needs of customer service ticket management to a certain extent, it also has some significant problems:

[0008] Inefficiency: Manual data entry requires clicking and filling in each form item one by one, which is a cumbersome and time-consuming process. Especially when customer service is busy, the low efficiency of manual data entry may cause customers to wait too long and affect customer satisfaction.

[0009] High error rate: During manual input, customer service representatives may make spelling mistakes, fill in errors, or omit important information due to fatigue, distraction, or unfamiliarity. These errors will affect the efficiency and quality of subsequent processing. Summary of the invention

[0010] The present invention provides a customer service work order entry method based on ASR speech recognition, which is intended to solve the current technical problems of low efficiency and high error rate in manual work order entry.

[0011] The customer service work order entry method based on ASR speech recognition includes the following steps:

[0012] Step 1: Collect the voice signal of the telephone system, apply adaptive filters and deep learning noise reduction models to the voice signal to clean up noise and echo, and obtain a clear voice signal;

[0013] Step 2: Use an algorithm based on energy threshold and spectral features combined with a deep neural network to detect voice activity and segment the speech segments;

[0014] Step 3: Extract Mel frequency cepstral coefficients and linear cepstral coefficients based on the segmented speech segments, and concatenate the extracted coefficients to obtain a speech feature vector;

[0015] Step 4: Based on the trained Transformer architecture acoustic model, the speech feature vector is converted into text to obtain a preliminary text transcription; the preliminary text transcription is contextually analyzed and text corrected using the pre-trained language model to obtain a corrected text transcription;

[0016] Step 5: Based on the Transformer intent classification model, the corrected text transcription is recognized to identify user needs and requests and obtain intent labels. Based on the named entity recognition model, the key information of the corrected text transcription is extracted to finally obtain structured entity information.

[0017] Step 6: Based on the structured entity information, the work order content is automatically filled in according to the predefined work order template, and the generation process is optimized using the generative adversarial network to obtain the generated work order;

[0018] Step 7: Based on the visual interface, the work order is quickly checked and corrected manually, and the corrected work order is fed back to the speech recognition system for model optimization.

[0019] The present invention greatly reduces manual operation time and improves the efficiency of work order generation through voice recognition, and significantly improves the accuracy of recognition and generation and reduces human errors through multi-level noise reduction, voice feature extraction, context correction and intent recognition technology; it simplifies the workflow of customer service representatives through automated and intelligent processing steps, improves the boundary and accuracy of operations, and thus improves the overall user experience.

[0020] Preferably, the specific steps of cleaning noise and echo in step 1 are as follows:

[0021] Based on the adaptive filter, the output signal at each moment is obtained:

[0022] ;

[0023] Where: Indicates that the adaptive filter Output signal at each moment; Represents the order of the adaptive filter, that is, the number of coefficients of the adaptive filter; Indicates that the adaptive filter The moment coefficients; The filter input signal is The value of the moment;

[0024] The filter coefficients are adjusted based on the current error value and the input signal:

[0025] ;

[0026] ;

[0027] Where: Indicates that the adaptive filter The error signal at each moment; represents the expected signal, that is, the target speech signal in the The value at a moment; Indicates that the adaptive filter The moment coefficients; Represents the step size factor, which is used to control the speed of updating the filter coefficients;

[0028] Extract the frequency domain characteristics of the adaptive filter output signal based on short-time Fourier change:

[0029] ;

[0030] Where: Represents the adaptive filter output signal Representation in the frequency domain; Indicates the number of sampling points per frame; Indicates that the window function is The value of the moment; Represents the complex exponential function, which is used to calculate the Fourier transform; represents an imaginary unit;

[0031] The frequency domain features are input into the U-Net model to obtain the denoised frequency domain features; the denoised frequency domain features are converted back to time domain signals through inverse STFT:

[0032] ;

[0033] Where: Indicates the clear speech signal after being processed by the U-Net model. The value at a moment; Represents the frequency domain characteristics after noise reduction; Represents the complex exponential function, which is used to compute the inverse Fourier transform.

[0034] Preferably, step 2 comprises the following steps:

[0035] Step 2.1: Segment the obtained clear speech signal into short time frames of 30ms, with each frame overlapping by 10ms to obtain the local features of the signal;

[0036] Step 2.2: For each short-time frame, calculate the energy as a preliminary voice activity detection indicator:

[0037] ;

[0038] Where: Indicates Energy of the frame; Indicates Frame The speech signal value of sampling points; Indicates the number of sampling points per frame;

[0039] Will With the energy threshold For comparison, if , it is determined that the short time frame contains speech activity;

[0040] Step 2.3: Calculate the spectral features of each frame based on fast Fourier transform:

[0041] ;

[0042] Where: Indicates Frame frequency components The spectrum intensity at ; Represents the complex exponential function in the fast Fourier transform; represents an imaginary unit, satisfying ; Indicates frequency components; Indicates the number of sampling points per frame;

[0043] Step 2.4: Combine the energy and spectrum features and input them into the trained convolutional neural network to perform voice activity detection and obtain the voice activity probability. If the predicted voice activity probability is greater than the preset voice activity threshold, the first The frame contains speech activity, and a speech activity frame is obtained;

[0044] Step 2.5: Use the time period of continuous speech activity frames as speech segments to segment the speech segments. If the predicted speech activity probability of K consecutive frames is greater than the preset speech activity threshold, the speech segment is determined to start; if the predicted speech activity probability of K consecutive frames is less than or equal to the speech activity threshold, the speech segment is ended, where K is the preset threshold.

[0045] Step 2.6: Based on the segmentation results of the speech segments, remove the too short segments or merge the too short silent segments to obtain the segmented speech segments.

[0046] Preferably, step 3 comprises the following steps:

[0047] Step 3.1: Preprocess each segmented speech segment, including pre-emphasis, framing and windowing;

[0048] Step 3.2: Extract Mel frequency cepstral coefficients and linear cepstral coefficients based on the preprocessed data:

[0049] Perform a fast Fourier transform on each frame and calculate the spectrum:

[0050] ;

[0051] Where: Indicates The complex value of the frequency components; The windowed signal is The value at each time point; Indicates the number of sampling points per frame; represents an imaginary unit; represents a complex exponential function;

[0052] Compute the power spectrum of each frame:

[0053] ;

[0054] Where: Indicates The power of a frequency component; Indicates the number of sampling points per frame;

[0055] Pass the power spectrum through the Mel filter bank to get the Mel frequency energy:

[0056] ;

[0057] Where: Indicates The Mel filter is The response on the frequency components; and is the boundary of the filter;

[0058] Take the logarithm of the Mel frequency energy and perform discrete cosine transform on the obtained logarithmic Mel energy to obtain the Mel frequency cepstrum coefficients:

[0059] ;

[0060] ;

[0061] Where: Indicates The number of logarithms of Mel filters; Indicates Mel-frequency cepstral coefficients, represents the number of Mel filters; Indicates the index of the Mel-frequency cepstral coefficient;

[0062] Compute the linear cepstral coefficients for the spectrum:

[0063] ;

[0064] Where: Indicates Linear cepstral coefficients; Indicates the number of sampling points per frame; ;

[0065] Step 3.3: Concatenate the extracted Mel-frequency cepstral coefficients and linear cepstral coefficients to form a complete feature vector.

[0066] Preferably, the acoustic model of the Transformer architecture includes an encoder part and a decoder part;

[0067] Encoder part:

[0068] The input feature vector passes through multiple encoding layers, each of which includes a multi-head self-attention mechanism and a feed-forward neural network;

[0069] The self-attention mechanism is as follows:

[0070] ;

[0071] Where: They represent the matrices obtained by linear transformation of input features respectively; Represents the dimension of the key, used to scale the result of the dot product; represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key;

[0072] Feedforward Neural Network:

[0073] ;

[0074] Where: represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; Represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; Represents the bias vector of the first layer, which is added to the mapped result; Represents the activation function, which is used to introduce nonlinearity; represents the second layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; Represents the bias vector of the second layer, added to the mapped result;

[0075] Decoder part:

[0076] The context vector output by the encoder is combined with the output of the decoder in the previous step to decode and generate a text sequence. The output text sequence is converted into a probability distribution through a softmax layer to obtain a preliminary text transcription.

[0077] Preferably, the Transformer-based intent classification model includes an encoder part and a classifier part;

[0078] Encoder part:

[0079] The input feature vector is processed through multiple encoding layers, each of which contains a multi-head self-attention mechanism and a feedforward neural network:

[0080] The self-attention mechanism is as follows:

[0081] ;

[0082] Where: They represent the matrices obtained by linear transformation of input features respectively; Represents the dimension of the key, used to scale the result of the dot product; represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key;

[0083] Feedforward Neural Network:

[0084] ;

[0085] Where: represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; Represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; Represents the bias vector of the first layer, which is added to the mapped result; Represents the activation function, which is used to introduce nonlinearity; represents the second layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; Represents the bias vector of the second layer, added to the mapped result;

[0086] Classifier part:

[0087] The output vector of the encoder passes through a fully connected layer and outputs the probability distribution of multiple categories. The one with the highest probability distribution is the user's intention, and the intent label is obtained:

[0088] ;

[0089] Where: represents the output of the encoder, and Represents the weights and biases of the classifier; Indicates that given input In the case of , the probability of the intent being a specific class.

[0090] Preferably, the structure of the named entity recognition model is as follows:

[0091] Input embedding layer: maps the input word vector to the input dimension of the model;

[0092] Position encoding: Introduce sequence position information into the input by adding a position encoding vector;

[0093] Encoding layer: includes multiple stacked encoding layers, each of which includes a multi-head self-attention mechanism and a feedforward neural network;

[0094] The self-attention mechanism is as follows:

[0095] ;

[0096] Where: They represent the matrices obtained by linear transformation of input features respectively; Represents the dimension of the key, used to scale the result of the dot product; represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key;

[0097] Feedforward Neural Network:

[0098] ;

[0099] Where: represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; Represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; Represents the bias vector of the first layer, which is added to the mapped result; Represents the activation function, which is used to introduce nonlinearity; represents the second layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; Represents the bias vector of the second layer, added to the mapped result;

[0100] The output of each encoding layer is processed through a residual connection and layer normalization:

[0101] ;

[0102] Where: Represents the input of the current layer; Represents the output of a sublayer in the current layer; Represents the output of the current layer, the result after residual connection and layer normalization; Representation layer normalization;

[0103] Sequence annotation layer: The output of the encoding layer passes through the sequence annotation layer and is annotated word by word, as follows:

[0104] Linear layer: maps the vector output by each encoding layer to the label space:

[0105] ;

[0106] Where: Indicates that the coding layer is Output at word and represents the weights and biases of the linear layer; Indicates that the coding layer is Output at word The result after mapping to label space;

[0107] Activation function: Convert the output of the linear layer into a probability distribution for each label:

[0108] ;

[0109] Where: Indicates that given input In the case of , it is the probability of a specific label;

[0110] Decoding: Decoding is performed by maximizing the probability of the full sequence label:

[0111] ;

[0112] Where: Represents a given input sequence The tag sequence Based on this, the named entity label of each word is finally output to form a complete annotation sequence, that is, structured entity information. Represents the output label sequence.

[0113] Preferably, step 6 comprises the following steps:

[0114] Step 6.1: Building a generation strategy based on a predetermined work order template; automatically filling the work order based on the generation strategy and the extracted structured entity information to obtain a preliminary work order;

[0115] Step 6.2: Optimize the preliminary work order using a generative adversarial network optimization; wherein the generative adversarial network includes a generator and a discriminator, the generator is responsible for generating work order content, and the discriminator is responsible for determining whether the generated work order content conforms to the predefined work order template and business logic;

[0116] Through multiple iterations of training the generative adversarial network, the generator gradually optimizes and generates work order content that conforms to the predefined template and business logic; finally, the optimized work order content is output to obtain the generated work order.

[0117] Preferably, the step 6.2 comprises the following steps:

[0118] Generate work order content: Input structured entity information into the generator; the generator generates preliminary work order content based on the input entity information;

[0119] Work order content discrimination: The generated work order content is input into the discriminator, and the discriminator outputs a probability value to indicate whether the generated work order content is reasonable;

[0120] Optimize the generator: Based on the feedback from the discriminator, back-propagate the error and optimize the parameters of the generator so that the generated work order content gradually approaches the real work order content;

[0121] The loss function of the generator is expressed as:

[0122] ;

[0123] Where: Represents a generator; represents the discriminator; represents a random noise vector; represents the noise distribution; Indicates expected value;

[0124] The loss function of the discriminator is expressed as:

[0125] ;

[0126] Where: Indicates the actual work order content; Represents the real data distribution; Representation Discriminator right The logarithm of the probability of being judged as a true sample;

[0127] Based on the above loss function, the generative adversarial network is iteratively trained multiple times to make the generated work order content gradually approach the real work order content, so as to obtain a trained generative adversarial network. The trained generative adversarial network is deployed in the actual environment to optimize the content of the work order and obtain the generated work order.

[0128] The beneficial effects of the present invention include:

[0129] The present invention greatly reduces manual operation time and improves the efficiency of work order generation through voice recognition, and significantly improves the accuracy of recognition and generation and reduces human errors through multi-level noise reduction, voice feature extraction, context correction and intent recognition technology; it simplifies the workflow of customer service representatives through automated and intelligent processing steps, improves the boundary and accuracy of operations, and thus improves the overall user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0130] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0131] Figure 1 An overall step block diagram provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0132] In order to make the technical problems, technical solutions and beneficial effects to be solved by 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.

[0133] The customer service work order entry method based on ASR speech recognition includes the following steps:

[0134] Step 1: Collect the voice signal of the telephone system, apply adaptive filters and deep learning noise reduction models to the voice signal to clean up noise and echo, and obtain a clear voice signal;

[0135] The specific steps for cleaning noise and echo in step 1 are as follows:

[0136] Based on the adaptive filter, the output signal at each moment is obtained:

[0137] ;

[0138] Where: Indicates that the adaptive filter Output signal at each moment; Represents the order of the adaptive filter, that is, the number of coefficients of the adaptive filter; Indicates that the adaptive filter The moment coefficients; The filter input signal is The value of the moment;

[0139] The filter coefficients are adjusted based on the current error value and the input signal:

[0140] ;

[0141] ;

[0142] Where: Indicates that the adaptive filter The error signal at each moment; represents the expected signal, that is, the target speech signal in the The value at a moment; Indicates that the adaptive filter The moment coefficients; Represents the step size factor, which is used to control the speed of updating the filter coefficients;

[0143] Extract the frequency domain characteristics of the adaptive filter output signal based on short-time Fourier change:

[0144] ;

[0145] Where: Represents the adaptive filter output signal Representation in the frequency domain; Indicates the number of sampling points per frame; Indicates that the window function is The value of the moment; Represents the complex exponential function, which is used to calculate the Fourier transform; represents an imaginary unit;

[0146] The frequency domain features are input into the U-Net model to obtain the denoised frequency domain features; the denoised frequency domain features are converted back to time domain signals through inverse STFT:

[0147] ;

[0148] Where: Indicates the clear speech signal after being processed by the U-Net model. The value at a moment; Represents the frequency domain characteristics after noise reduction; Represents the complex exponential function, which is used to compute the inverse Fourier transform.

[0149] Exemplarily, the structure of the U-Net model is as follows:

[0150] Input Layer:

[0151] The input is the frequency domain feature map after adaptive filter processing, and the shape is (frequency, time, channel).

[0152] The input frequency domain feature map size is (256, 256, 1), where 256 is the feature dimension of frequency and time, and 1 is a single channel (amplitude spectrum or complex spectrum).

[0153] Downsampling path (encoder):

[0154] The first convolution layer includes: convolution layer: 2D convolution (filters=64, kernel_size=(3, 3), padding='same'); activation function: ReLU; batch normalization layer: BatchNormalization pooling layer, maximum pooling (pool_size=(2, 2));

[0155] The second convolution layer includes: convolution layer: 2D convolution (filters=128, kernel_size=(3, 3), padding='same'); activation function: ReLU; batch normalization layer: BatchNormalization; pooling layer, maximum pooling (pool_size=(2, 2));

[0156] The third convolution layer includes: Convolution layer: 2D convolution (filters=256, kernel_size=(3, 3), padding='same'); Activation function: ReLU; Batch normalization layer: BatchNormalization; Pooling layer, maximum pooling (pool_size=(2, 2));

[0157] The fourth convolution layer includes: convolution layer: 2D convolution (filters=512, kernel_size=(3, 3), padding='same'); activation function: ReLU batch normalization layer: BatchNormalization pooling layer, maximum pooling (pool_size=(2, 2));

[0158] The bottleneck layer (the 5th convolution layer) includes: Convolution layer: 2D convolution (filters=1024, kernel_size=(3,3) padding='same'); Activation function: ReLU; Batch normalization layer: BatchNormalization;

[0159] Upsampling path (decoder):

[0160] The first deconvolution layer includes: Deconvolution layer: 2D deconvolution (filters=512, kernel_size=(3, 3), strides=(2, 2), padding='same'); Activation function: ReLU; Batch normalization layer: BatchNormalization jump connection, spliced ​​with the output of the 4th convolution layer in the encoder;

[0161] The second layer of deconvolution includes: Deconvolution layer: 2D deconvolution (filters=256, kernel_size=(3, 3), strides=(2, 2), padding='same'); Activation function: ReLU; Batch normalization layer: BatchNormalization jump connection, spliced ​​with the output of the third layer of convolution in the encoder;

[0162] The third deconvolution layer includes: Deconvolution layer: 2D deconvolution (filters=128, kernel_size=(3, 3), strides=(2, 2), padding='same'); Activation function: ReLU; Batch normalization layer: BatchNormalization jump connection, spliced ​​with the output of the second convolution layer in the encoder;

[0163] The 4th deconvolution layer includes: Deconvolution layer: 2D deconvolution (filters=64, kernel_size=(3, 3), strides=(2, 2), padding='same'); Activation function: ReLU; Batch normalization layer: BatchNormalization jump connection, spliced ​​with the output of the 1st convolution layer in the encoder;

[0164] Output layer: Convolutional layer:

[0165] Conv2D(filters=1, kernel_size=(1, 1), padding='same')

[0166] Activation function: linear activation function.

[0167] In this embodiment, since the voice signal in the telephone system is often accompanied by background noise or echo, it will affect the subsequent voice recognition accuracy; by using adaptive filters and deep learning noise reduction models to clean noise and echo and ensure the clarity of the voice signal, the effect of subsequent voice processing steps, such as voice activity detection and feature extraction, can be significantly improved.

[0168] Secondly, in this embodiment, the adaptive filter dynamically adapts to different environments. Customers may make calls from different environments, such as a noisy office, a quiet home, or while driving in a car. The adaptive filter can dynamically adjust the filtering parameters according to changes in environmental noise, thereby effectively eliminating background noise. And a deep learning noise reduction model is used to process complex noise. There may be complex noise in the customer's phone, such as wind noise, contact current noise, etc. The deep learning noise reduction model uses a large amount of training data to identify and learn the characteristics of various noises, and performs effective noise reduction processing to improve the clarity of the voice signal.

[0169] Therefore, in this embodiment, by combining the adaptive filter and the deep learning noise reduction model, the advantages of both can be fully utilized to achieve efficient and real-time noise and echo processing. The adaptive filter provides real-time, low-latency preliminary noise suppression capabilities, while the deep learning model can handle complex noise and echo problems and improve the overall quality of the voice signal. This combination ensures that high-quality voice signal processing can be provided in various environments and conditions, thereby improving the accuracy of the voice recognition system and the quality of customer service.

[0170] Step 2: Use an algorithm based on energy threshold and spectral features combined with a deep neural network to detect voice activity and segment the speech segments;

[0171] The step 2 comprises the following steps:

[0172] Step 2.1: Segment the obtained clear speech signal into short time frames of 30ms, with each frame overlapping by 10ms to obtain the local features of the signal;

[0173] Step 2.2: For each short-time frame, calculate the energy as a preliminary voice activity detection indicator:

[0174] ;

[0175] Where: Indicates Energy of the frame; Indicates Frame The speech signal value of sampling points; Indicates the number of sampling points per frame;

[0176] Will With the energy threshold For comparison, if , it is determined that the short time frame contains speech activity;

[0177] Step 2.3: Calculate the spectral features of each frame based on fast Fourier transform:

[0178] ;

[0179] Where: Indicates Frame frequency components The spectrum intensity at ; Represents the complex exponential function in the fast Fourier transform; represents an imaginary unit, satisfying ; Indicates frequency components; Indicates the number of sampling points per frame;

[0180] Step 2.4: Combine the energy and spectrum features and input them into the trained convolutional neural network to perform voice activity detection and obtain the voice activity probability. If the predicted voice activity probability is greater than the preset voice activity threshold, the first The frame contains speech activity, and a speech activity frame is obtained;

[0181] Exemplarily, the specific structure of the convolutional neural network is as follows:

[0182] Input layer: The input is the concatenation of energy features and spectrum features, and the shape is (number of time frames, number of frequency bins, 2);

[0183] Convolutional layer 1 includes: 2D convolution (filters=32, kernel_size=(3,3), padding='same'), activation function ReLU and batch normalization;

[0184] Convolutional layer 2 includes: 2D convolution (filters=64, kernel_size=(3,3), padding='same'), ReLU activation function, batch normalization, and max pooling (pool_size=(2,2));

[0185] Convolutional layer 3 includes: 2D convolution (filters=128, kernel_size=(3,3), padding='same'), ReLU activation function, batch normalization, and max pooling (pool_size=(2,2)).

[0186] The fully connected layer includes: flattening operation, fully connected layer (units=64), and activation function ReLU;

[0187] The output layer includes: fully connected layer (units=1) and activation function Sigmoid;

[0188] The model output is a probability value between 0 and 1, indicating whether the current time frame contains speech activity. A threshold value (such as 0.5) can be set, and a frame greater than the threshold is considered to be a speech activity frame.

[0189] Step 2.5: Use the time period of continuous speech activity frames as speech segments to segment the speech segments. If the predicted speech activity probability of K consecutive frames is greater than the preset speech activity threshold, the speech segment is determined to start; if the predicted speech activity probability of K consecutive frames is less than or equal to the speech activity threshold, the speech segment is ended, where K is the preset threshold.

[0190] Step 2.6: Based on the segmentation results of the speech segments, remove the too short segments or merge the too short silent segments to obtain the segmented speech segments.

[0191] In this embodiment, by combining the energy threshold and spectral feature algorithm and deep neural network for voice activity detection, the accuracy and efficiency of voice signal processing can be significantly improved. In practical applications, this method can effectively segment voice segments, ensure that the voice recognition system focuses on the actual voice content, reduce invalid calculations, improve the system's response speed and processing quality, and thus provide better user experience and service quality in various application scenarios.

[0192] Step 3: Extract Mel frequency cepstral coefficients and linear cepstral coefficients based on the segmented speech segments, and concatenate the extracted coefficients to obtain a speech feature vector;

[0193] The step 3 comprises the following steps:

[0194] Step 3.1: Preprocess each segmented speech segment, including pre-emphasis, framing and windowing;

[0195] Step 3.2: Extract Mel frequency cepstral coefficients and linear cepstral coefficients based on the preprocessed data:

[0196] Perform a fast Fourier transform on each frame and calculate the spectrum:

[0197] ;

[0198] Where: Indicates The complex value of the frequency components; The windowed signal is The value at each time point; Indicates the number of sampling points per frame; represents an imaginary unit; represents a complex exponential function;

[0199] Compute the power spectrum of each frame:

[0200] ;

[0201] Where: Indicates The power of a frequency component; Indicates the number of sampling points per frame;

[0202] Pass the power spectrum through the Mel filter bank to get the Mel frequency energy:

[0203] ;

[0204] Where: Indicates The Mel filter is The response on the frequency components; and is the boundary of the filter;

[0205] Take the logarithm of the Mel frequency energy and perform discrete cosine transform on the obtained logarithmic Mel energy to obtain the Mel frequency cepstrum coefficients:

[0206] ;

[0207] ;

[0208] Where: Indicates The number of logarithms of Mel filters; Indicates Mel-frequency cepstral coefficients, represents the number of Mel filters; Indicates the index of the Mel-frequency cepstral coefficient;

[0209] Compute the linear cepstral coefficients for the spectrum:

[0210] ;

[0211] Where: Indicates Linear cepstral coefficients; Indicates the number of sampling points per frame; ;

[0212] Step 3.3: Concatenate the extracted Mel-frequency cepstral coefficients and linear cepstral coefficients to form a complete feature vector.

[0213] In this embodiment, the Mel-frequency cepstral coefficients (MFCC) can well capture the characteristics of the human auditory perception system, so that both high-frequency and low-frequency features can be properly processed; linear cepstral coefficients (LFCC) are used to supplement the deficiencies of MFCC in specific scenarios, especially in certain speech recognition tasks (for example, in certain speech emotion recognition or phoneme recognition tasks of certain languages, information in the high-frequency region is crucial to distinguish different emotions or phonemes. The resolution of MFCC in the high-frequency region is relatively low, while LFCC uses a linear frequency scale to better capture high-frequency information), which can provide additional frequency information and help improve recognition accuracy. Splicing MFCC and LFCC can combine the advantages of the two features, so that the final feature vector can more comprehensively characterize the speech signal. This feature fusion method can enhance the model's perception of various speech characteristics, thereby improving the recognition effect.

[0214] Step 4: Based on the trained Transformer architecture acoustic model, the speech feature vector is converted into text to obtain a preliminary text transcription; the preliminary text transcription is contextually analyzed and text corrected using the pre-trained language model to obtain a corrected text transcription;

[0215] The acoustic model of the Transformer architecture includes an encoder part and a decoder part;

[0216] Encoder part:

[0217] The input feature vector passes through multiple encoding layers, each of which includes a multi-head self-attention mechanism and a feed-forward neural network;

[0218] The self-attention mechanism is as follows:

[0219] ;

[0220] Where: They represent the matrices obtained by linear transformation of input features respectively; Represents the dimension of the key, used to scale the result of the dot product; represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key;

[0221] Feedforward Neural Network:

[0222] ;

[0223] Where: represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; Represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; Represents the bias vector of the first layer, which is added to the mapped result; Represents the activation function, which is used to introduce nonlinearity; represents the second layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; Represents the bias vector of the second layer, added to the mapped result;

[0224] Decoder part:

[0225] The context vector output by the encoder is combined with the output of the decoder in the previous step to decode and generate a text sequence. The output text sequence is converted into a probability distribution through a softmax layer to obtain a preliminary text transcription.

[0226] The context analysis and text correction are as follows:

[0227] The preliminary text transcription is input into a pre-trained language model (such as GPT-4 or BERT) for contextual analysis and text correction. The language model (such as GPT-4) has been pre-trained with a large amount of text data and can understand the contextual relationships and grammatical rules of the language.

[0228] The language model makes predictions and corrections to the initially transcribed text, correcting grammatical errors, spelling errors, and contextual inconsistencies.

[0229] In the voice signal processing of the telephone system, preliminary text transcription is the first step to convert the voice signal into readable text. The acoustic model based on the Transformer architecture can efficiently process the voice feature vector and perform voice-to-text conversion. This process is crucial because it converts the continuous audio signal into a discrete text form, laying the foundation for subsequent text processing and analysis. The pre-trained language model has the ability to understand the context and can perform semantic analysis on the preliminary transcribed text. For example, the model can determine whether "bank" refers to "bank" or "river bank" based on the context, thereby outputting more accurate text; this is especially important in telephone interactions involving complex sentence structures or professional terms.

[0230] Therefore, this embodiment is not only about accurately transcribing speech signals into text, but also about improving the accuracy and coherence of the text through context analysis and correction of the pre-trained language model. This is of great significance for various practical application scenarios, such as customer service, medical consultation, and financial services, and helps to improve the overall performance of the system and user satisfaction.

[0231] Step 5: Based on the Transformer intent classification model, the corrected text transcription is recognized to identify user needs and requests and obtain intent labels. Based on the named entity recognition model, the key information of the corrected text transcription is extracted to finally obtain structured entity information.

[0232] The Transformer-based intent classification model includes an encoder part and a classifier part;

[0233] Encoder part:

[0234] The input feature vector is processed through multiple encoding layers, each of which contains a multi-head self-attention mechanism and a feedforward neural network:

[0235] The self-attention mechanism is as follows:

[0236] ;

[0237] Where: They represent the matrices obtained by linear transformation of input features respectively; Represents the dimension of the key, used to scale the result of the dot product; represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key;

[0238] Feedforward Neural Network:

[0239] ;

[0240] Where: represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; Represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; Represents the bias vector of the first layer, which is added to the mapped result; Represents the activation function, which is used to introduce nonlinearity; represents the second layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; Represents the bias vector of the second layer, added to the mapped result;

[0241] Classifier part:

[0242] The output vector of the encoder passes through a fully connected layer and outputs the probability distribution of multiple categories. The one with the highest probability distribution is the user's intention, and the intent label is obtained:

[0243] ;

[0244] Where: represents the output of the encoder, and Represents the weights and biases of the classifier; Indicates that given input In the case of , the probability of the intent being a specific class.

[0245] The structure of the named entity recognition model is as follows:

[0246] Input embedding layer: maps the input word vector to the input dimension of the model;

[0247] Position encoding: Introduce sequence position information into the input by adding a position encoding vector;

[0248] Encoding layer: includes multiple stacked encoding layers, each of which includes a multi-head self-attention mechanism and a feedforward neural network;

[0249] The self-attention mechanism is as follows:

[0250] ;

[0251] Where: They represent the matrices obtained by linear transformation of input features respectively; Represents the dimension of the key, used to scale the result of the dot product; represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key;

[0252] Feedforward Neural Network:

[0253] ;

[0254] Where: represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; Represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; Represents the bias vector of the first layer, which is added to the mapped result; Represents the activation function, which is used to introduce nonlinearity; represents the second layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; Represents the bias vector of the second layer, added to the mapped result;

[0255] The output of each encoding layer is processed through a residual connection and layer normalization:

[0256] ;

[0257] Where: Represents the input of the current layer; Represents the output of a sublayer in the current layer; Represents the output of the current layer, the result after residual connection and layer normalization Representation layer normalization;

[0258] Sequence annotation layer: The output of the encoding layer passes through the sequence annotation layer and is annotated word by word, as follows:

[0259] Linear layer: maps the vector output by each encoding layer to the label space:

[0260] ;

[0261] Where: Indicates that the coding layer is Output at word and represents the weights and biases of the linear layer; Indicates that the coding layer is Output at word The result after mapping to label space;

[0262] Activation function: Convert the output of the linear layer into a probability distribution for each label:

[0263] ;

[0264] Where: Indicates that given input In the case of , it is the probability of a specific label;

[0265] Decoding: Decoding is performed by maximizing the probability of the full sequence label:

[0266] ;

[0267] Where: Represents a given input sequence The tag sequence Based on this, the named entity label of each word is finally output to form a complete annotation sequence, that is, structured entity information. Represents the output label sequence.

[0268] This embodiment uses intent to identify the type of customer request (such as account inquiry, technical support, complaint suggestion, etc.), thereby quickly routing it to the corresponding processing flow, improving the system's automation and response speed. Accurate intent classification reduces the workload of customer service personnel to manually classify each request, significantly improving work efficiency and accuracy.

[0269] Secondly, named entity recognition is used to extract key information (such as names of people, places, dates, amounts, etc.) from text. This process is crucial to generating useful structured data. Converting unstructured text into structured data is the basis of data analysis and processing. The NER model can automatically extract key information from text and generate structured data for subsequent processing and analysis. In fields with high precision requirements such as finance and medical care, accurate extraction of key information (such as account information and drug names) is very important for decision-making and service quality.

[0270] Therefore, this embodiment automatically identifies and extracts user needs and key information through intent classification and named entity recognition models to generate structured data. This not only improves the automation and response speed of the system and reduces manual intervention, but also significantly improves the accuracy of the service and user satisfaction. This is crucial for various practical application scenarios, such as customer service, medical consultation, and financial services.

[0271] Step 6: Based on the structured entity information, the work order content is automatically filled in according to the predefined work order template, and the generation process is optimized using the generative adversarial network to obtain the generated work order;

[0272] The step 6 comprises the following steps:

[0273] Step 6.1: Building a generation strategy based on a predetermined work order template; automatically filling the work order based on the generation strategy and the extracted structured entity information to obtain a preliminary work order;

[0274] Step 6.2: Optimize the preliminary work order using a generative adversarial network optimization; wherein the generative adversarial network includes a generator and a discriminator, the generator is responsible for generating work order content, and the discriminator is responsible for determining whether the generated work order content conforms to the predefined work order template and business logic;

[0275] Through multiple iterations of training the generative adversarial network, the generator gradually optimizes and generates work order content that conforms to the predefined template and business logic; finally, the optimized work order content is output to obtain the generated work order.

[0276] Preferably, the step 6.2 comprises the following steps:

[0277] Generate work order content: Input structured entity information into the generator; the generator generates preliminary work order content based on the input entity information;

[0278] Work order content discrimination: The generated work order content is input into the discriminator, and the discriminator outputs a probability value to indicate whether the generated work order content is reasonable;

[0279] Optimize the generator: Based on the feedback from the discriminator, back-propagate the error and optimize the parameters of the generator so that the generated work order content gradually approaches the real work order content;

[0280] The loss function of the generator is expressed as:

[0281] ;

[0282] Where: Represents a generator; represents the discriminator; represents a random noise vector; represents the noise distribution;

[0283] The loss function of the discriminator is expressed as:

[0284] ;

[0285] Where: Indicates the actual work order content; Represents the real data distribution; Indicates expected value; Representation Discriminator right The logarithm of the probability of being judged as a true sample;

[0286] Based on the above loss function, the generative adversarial network is iteratively trained multiple times to make the generated work order content gradually approach the real work order content, so as to obtain a trained generative adversarial network. The trained generative adversarial network is deployed in the actual environment to optimize the content of the work order and obtain the generated work order.

[0287] In this embodiment, the application of generative adversarial networks (GANs) in work order generation aims to further optimize the generation process and ensure that the generated work orders are more accurate and meet actual needs.

[0288] GAN can generate higher quality work orders through adversarial training of the generator and the discriminator. The generator is responsible for creating the work order content, while the discriminator evaluates its quality. The two networks work together to improve the accuracy and naturalness of the generated results.

[0289] In some complex application scenarios, customer requests and questions may involve multiple aspects of information and details. GAN can learn these complex patterns during training, thereby generating work orders that better reflect the actual situation.

[0290] GAN can adaptively adjust the generation strategy to generate the most appropriate work order content for different types of customer requests and issues, thereby improving the overall service quality.

[0291] Step 7: Based on the visual interface, the work order is quickly checked and corrected manually, and the corrected work order is fed back to the speech recognition system for model optimization.

[0292] Data collection: Collect manually corrected work orders and their modification records to form a training data set.

[0293] Model training: Retrain and optimize the speech recognition model, intent classification model, and entity recognition model based on the newly collected training data.

[0294] By designing a user-friendly visual interface and establishing a clear manual inspection and correction process, the accuracy and completeness of the work order content are ensured. At the same time, through the model optimization feedback mechanism, the system performance is continuously improved and the necessity of manual intervention is reduced. This human-machine collaborative working mode not only improves work efficiency, but also ensures service quality and compliance, which is of great significance to various practical application scenarios.

[0295] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A customer service work order entry method based on ASR speech recognition, characterized in that: The following steps are involved: Step 1: Collect the voice signal of the telephone system, apply adaptive filters and deep learning noise reduction models to the voice signal to clean up noise and echo, and obtain a clear voice signal; Step 2: Use an algorithm based on energy threshold and spectral features combined with a deep neural network to detect voice activity and segment the speech segments; The step 2 comprises the following steps: Step 2.1: Segment the obtained clear speech signal into short time frames of 30ms, with each frame overlapping by 10ms to obtain the local features of the signal; Step 2.2: For each short-time frame, calculate the energy as a preliminary voice activity detection indicator: Where: E m represents the energy of the mth frame; y frame (m, t) represents the speech signal value of the tth sampling point in the mth frame; N represents the number of sampling points per frame; E m With the energy threshold θ E For comparison, if E m >θ E , it is determined that the short time frame contains speech activity; Step 2.3: Calculate the spectral features of each frame based on fast Fourier transform: Where: S(m,f) represents the spectrum intensity of the mth frame at the frequency component f; represents the complex exponential function in the fast Fourier transform; j represents the imaginary unit, satisfying j 2 =-1; f represents the fth frequency component; N represents the number of sampling points per frame; Step 2.4: Combine the energy and spectrum features and input them into the trained convolutional neural network to perform voice activity detection and obtain the voice activity probability. If the predicted voice activity probability is greater than the preset voice activity threshold, it is determined that the mth frame contains voice activity and a voice activity frame is obtained. The convolutional neural network includes convolutional layer 1, convolutional layer 2, convolutional layer 3, a fully connected layer and an output layer; The convolution layer 1 includes 32 filters, the convolution kernel size is (3,3), the same padding method is adopted, the activation function is the Relu activation function, and the input is batch normalized; The convolution layer 2 includes 64 filters, the convolution kernel size is (3,3), the same padding method is adopted, the activation function is the Relu activation function, and the input is batch normalized, and the maximum pooling window size is (2,2); The convolution layer 3 includes 128 filters, the convolution kernel size is (3,3), the same padding method is adopted, the activation function is the Relu activation function, and the input is batch normalized, and the maximum pooling window size is (2,2); The fully connected layer includes a fully connected layer and a Relu activation function, wherein the fully connected layer includes 64 units; the front connection layer flattens the multidimensional data into one dimension through a flattening operation; The output layer includes a fully connected layer and an activation function Sigmoid, where the fully connected layer contains 1 unit; Step 2.5: Use the time period of continuous speech activity frames as speech segments to segment the speech segments. If the predicted speech activity probability of K consecutive frames is greater than the preset speech activity threshold, the speech segment is determined to start; if the predicted speech activity probability of K consecutive frames is less than or equal to the speech activity threshold, the speech segment is ended, where K is the preset threshold. Step 2.6: Based on the segmentation results of the speech segments, remove the too short segments or merge the too short silent segments to obtain the segmented speech segments; Step 3: Extract Mel frequency cepstral coefficients and linear cepstral coefficients based on the segmented speech segments, and concatenate the extracted coefficients to obtain a speech feature vector; Step 4: Based on the trained Transformer architecture acoustic model, the speech feature vector is converted into text to obtain a preliminary text transcription; the preliminary text transcription is contextually analyzed and text corrected using the pre-trained language model to obtain a corrected text transcription; Step 5: Based on the Transformer intent classification model, the corrected text transcription is recognized to identify user needs and requests and obtain intent labels. Based on the named entity recognition model, the key information of the corrected text transcription is extracted to finally obtain structured entity information. Step 6: Based on the structured entity information, the work order content is automatically filled in according to the predefined work order template, and the generation process is optimized using the generative adversarial network to obtain the generated work order; Step 7: Based on the visual interface, the work order is quickly checked and corrected manually, and the corrected work order is fed back to the speech recognition system for model optimization.

2. The customer service work order entry method based on ASR speech recognition according to claim 1 is characterized in that: The specific steps for cleaning noise and echo in step 1 are as follows: Based on the adaptive filter, the output signal at each moment is obtained: Where: y af (n) represents the output signal of the adaptive filter at the nth moment; M represents the order of the adaptive filter, that is, the number of coefficients of the adaptive filter; w i (n) represents the i-th coefficient of the adaptive filter at the n-th time; y(ni) represents the value of the input signal of the filter at the ni-th time; The filter coefficients are adjusted based on the current error value and the input signal: e(n)=d(n)-y af (n); w i (n+1)=w i (n)+2μe(n)y(n-i); Where: e(n) represents the error signal of the adaptive filter at the nth moment; d(n) represents the expected signal, that is, the value of the target speech signal at the nth moment; w i (n+1) represents the i-th coefficient of the adaptive filter at the n+1th time; μ represents the step size factor, which is used to control the speed of updating the filter coefficient; Extract the frequency domain characteristics of the adaptive filter output signal based on short-time Fourier change: Where: y af (f, t) represents the adaptive filter output signal y af (n) represents the frequency domain; N represents the number of sampling points per frame; w(nt) represents the value of the window function at time nt; represents the complex exponential function, which is used to calculate Fourier transform; j represents the imaginary unit; The frequency domain features are input into the U-Net model to obtain the denoised frequency domain features; the denoised frequency domain features are converted back to time domain signals through inverse STFT: Where: y clean (n) represents the value of the clear speech signal at the nth moment after being processed by the U-et model; Y' af (f, t) represents the frequency domain features after noise reduction; Represents the complex exponential function, which is used to compute the inverse Fourier transform.

3. The customer service work order entry method based on ASR speech recognition according to claim 1, characterized in that: The step 3 comprises the following steps: Step 3.1: Preprocess each segmented speech segment, including pre-emphasis, framing and windowing; Step 3.2: Extract Mel frequency cepstral coefficients and linear cepstral coefficients based on the preprocessed data: Perform a fast Fourier transform on each frame and calculate the spectrum: Where: Y(k) represents the complex value of the kth frequency component; y(n) represents the value of the windowed signal at the nth time instant; N represents the number of sampling points per frame; j represents the imaginary unit; represents a complex exponential function; Compute the power spectrum of each frame: Where: P(k) represents the power of the kth frequency component; N represents the number of sampling points per frame; Pass the power spectrum through the Mel filter bank to get the Mel frequency energy: Where: H m (k) represents the response of the m-th Mel filter on the k-th frequency component; f m-1 and f m+1 is the boundary of the filter; Take the logarithm of the Mel frequency energy and perform discrete cosine transform on the obtained logarithmic Mel energy to obtain the Mel frequency cepstrum coefficients: L(m)=log(M(m)); Where: L(m) represents the number of logarithms of the mth Mel filter; C(m) represents the lth Mel frequency cepstral coefficient, M represents the number of Mel filters; l represents the index of the Mel frequency cepstral coefficient; Compute the linear cepstral coefficients for the spectrum: Where: L(k') represents the k'th linear cepstrum coefficient; N represents the number of sampling points per frame; where k'=k; Step 3.3: Concatenate the extracted Mel-frequency cepstral coefficients and linear cepstral coefficients to form a complete feature vector.

4. The customer service work order entry method based on ASR speech recognition according to claim 1, characterized in that: The acoustic model of the Transformer architecture includes an encoder part and a decoder part; Encoder part: The input feature vector passes through multiple encoding layers, each of which includes a multi-head self-attention mechanism and a feed-forward neural network; The self-attention mechanism is as follows: Where: Q, k, V represent the matrices obtained by linear transformation of input features; d k Indicates the dimension of the key, used to scale the result of the dot product; QK T represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key; Feedforward Neural Network: FFN(x * )=ReLU(x * W1+b1)W2+b2; Where: x * Represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; W1 represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; b1 represents the bias vector of the first layer, which is added to the mapped result; ReLU represents the activation function, which is used to introduce nonlinearity; W2 represents the second-layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; b2 represents the bias vector of the second layer, which is added to the mapped result; Decoder part: The context vector output by the encoder is combined with the output of the decoder in the previous step to decode and generate a text sequence. The output text sequence is converted into a probability distribution through a softmax layer to obtain a preliminary text transcription.

5. The customer service work order entry method based on ASR speech recognition according to claim 1, characterized in that: The Transformer-based intent classification model includes an encoder part and a classifier part; Encoder part: The input feature vector is processed through multiple encoding layers, each of which contains a multi-head self-attention mechanism and a feedforward neural network: The self-attention mechanism is as follows: Where: Q, K, V represent the matrices obtained by linear transformation of input features; d k Indicates the dimension of the key, used to scale the result of the dot product; QK T represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key; Feedforward Neural Network: FFN(x * )=ReLU(x * W1+b1)W2+b2; Where: x * Represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; W1 represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; b1 represents the bias vector of the first layer, which is added to the mapped result; ReLU represents the activation function, which is used to introduce nonlinearity; W2 represents the second-layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; b2 represents the bias vector of the second layer, which is added to the mapped result; Classifier part: The output vector of the encoder passes through a fully connected layer and outputs the probability distribution of multiple categories. The one with the highest probability distribution is the user's intention, and the intent label is obtained: P(intent|x)=softmax(W class ·h+b class ); Where: h represents the output of the encoder, W class and b class represents the weights and biases of the classifier; P(intent|x) represents the probability that the intent is a specific category given the input x.

6. The customer service work order entry method based on ASR speech recognition according to claim 1, characterized in that: The structure of the named entity recognition model is as follows: Input embedding layer: maps the input word vector to the input dimension of the model; Position encoding: Introduce sequence position information into the input by adding a position encoding vector; Encoding layer: includes multiple stacked encoding layers, each of which includes a multi-head self-attention mechanism and a feedforward neural network; The self-attention mechanism is as follows: Where: Q, K, V represent the matrices obtained by linear transformation of input features; d k Indicates the dimension of the key, used to scale the result of the dot product; QK T represents the dot product of the query matrix and the key matrix, indicating the correlation between the query and the key; Feedforward Neural Network: FFN(x * )=ReLU(x * W1+b1)W2+b2; Where: x * Represents the input vector, which is the weighted sum of the outputs of the self-attention mechanism; W1 represents the weight matrix of the first layer, which is used to map the input vector to the hidden layer; b1 represents the bias vector of the first layer, which is added to the mapped result; ReLU represents the activation function, which is used to introduce nonlinearity; W2 represents the second-layer weight matrix, which is used to map the output of the hidden layer back to the dimension of the input vector; b2 represents the bias vector of the second layer, which is added to the mapped result; The output of each encoding layer is processed through a residual connection and layer normalization: LayerOutput=LayerNorm(x”+SubLayer(x”)); Where: x” represents the input of the current layer; SubLayer(x”) represents the output of a sublayer in the current layer; LayerOutput represents the output of the current layer after residual connection and layer normalization; LayerNorm represents layer normalization; Sequence annotation layer: The output of the encoding layer passes through the sequence annotation layer and is annotated word by word, as follows: Linear layer: maps the vector output by each encoding layer to the label space: h′ i =W tag ·h i +b tag ; Where: h i represents the output of the encoding layer at the i-th word; W tag and b tag represents the weight and bias of the linear layer; h' i It means that the output h of the encoding layer at the i-th word i The result after mapping to label space; Activation function: Convert the output of the linear layer into a probability distribution for each label: P(tag|x i )=softmax(h′ i ); Where: P(tag|x i ) means that given an input x i In the case of , it is the probability of a specific label; Decoding: Decoding is performed by maximizing the probability of the full sequence label: Where: P(y|x) represents the probability of the label sequence y given the input x; based on this, the named entity label of each word is finally output to form a complete annotation sequence, that is, structured entity information; y * Represents the output label sequence.

7. The customer service work order entry method based on ASR speech recognition according to claim 1, characterized in that: The step 6 comprises the following steps: Step 6.1: Building a generation strategy based on a predetermined work order template; automatically filling the work order based on the generation strategy and the extracted structured entity information to obtain a preliminary work order; Step 6.2: Optimize the preliminary work order using a generative adversarial network optimization; wherein the generative adversarial network includes a generator and a discriminator, the generator is responsible for generating work order content, and the discriminator is responsible for determining whether the generated work order content conforms to the predefined work order template and business logic; Through multiple iterations of training the generative adversarial network, the generator gradually optimizes and generates work order content that conforms to the predefined template and business logic; finally, the optimized work order content is output to obtain the generated work order.

8. The customer service work order entry method based on ASR speech recognition according to claim 7, characterized in that: The step 6.2 comprises the following steps: Generate work order content: Input structured entity information into the generator; the generator generates preliminary work order content based on the input entity information; Work order content discrimination: The generated work order content is input into the discriminator, and the discriminator outputs a probability value to indicate whether the generated work order content is reasonable; Optimize the generator: Based on the feedback from the discriminator, back-propagate the error and optimize the parameters of the generator so that the generated work order content gradually approaches the real work order content; The loss function of the generator is expressed as: Where: G represents the generator; D represents the discriminator; z represents the random noise vector; p z (z) represents the noise distribution; Indicates expected value; The loss function of the discriminator is expressed as: Where: x' represents the actual work order content; p data (x') represents the real data distribution; logD(x') represents the logarithmic value of the probability that the discriminator D determines x' as a real sample; Based on the above loss function, the generative adversarial network is iteratively trained multiple times to make the generated work order content gradually approach the real work order content, so as to obtain a trained generative adversarial network. The trained generative adversarial network is deployed in the actual environment to optimize the content of the work order and obtain the generated work order.

Citation Information

Patent Citations

  • Speech recognition system of humanoid robot

    CN103065629A

  • Supervised machine learning-based voice end point detection method and device

    CN107799126A

  • Method and system for automatically filling work orders based on call abstracts

    CN110225210A

  • Voice processing method and device, and electronic equipment

    CN110310632A

  • Automatic speech recognition method and automatic speech recognition system based on artificial intelligence

    CN110827801A