Multi-mode speech recognition method, device and equipment and computer readable medium
Through multi-modal speech recognition methods, combined with data from microphone arrays and visual sensor arrays, sound source localization and speech recognition are performed, which solves the problem of reduced speech recognition accuracy in complex environments and achieves higher recognition accuracy and robustness. sex.
Patent Information
- Application Number
- CN202410900743.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-08
AI Technical Summary
Traditional speech recognition systems are susceptible to noise interference in complex environments, resulting in a decrease in recognition accuracy. There is no effective solution yet.
A multi-modal speech recognition method is used to collect data through a microphone array and a visual sensor array, extract the acoustic characteristics of the speech data and the visual position characteristics of the visual data, fuse the acoustic and visual information to localize the sound source, and input the results into the speech recognition model to Improve recognition accuracy.
The accuracy of speech recognition is significantly improved in complex environments, and the system's robustness and recognition capabilities are enhanced through visual-assisted positioning and data fusion.
Smart Images

Figure CN118748008A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech recognition technology, and in particular to a multimodal speech recognition method, apparatus, device and computer-readable medium. Background Art
[0002] In daily life, people's demand for speech recognition technology is growing, especially in various environments, such as meeting rooms, vehicles, etc. However, traditional speech recognition systems are easily interfered by noise in complex environments, resulting in reduced recognition accuracy.
[0003] Currently, no effective solution has been proposed to the problem of decreased speech recognition accuracy in complex environments. Summary of the invention
[0004] The present application provides a multimodal speech recognition method, apparatus, device and computer-readable medium to solve the technical problem of decreased speech recognition accuracy in complex environments.
[0005] According to one aspect of an embodiment of the present application, the present application provides a multimodal speech recognition method, comprising: obtaining speech data collected by a microphone array for at least one speaker in a target space and visual data collected by a visual sensor array for the target space; determining acoustic features of the speech data, and determining visual position features and visual lip shape features of at least one speaker based on the visual data; determining the target position of the speaker based on a fusion of the acoustic features and the visual position features; inputting the speech data, the acoustic features, the target position, and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space.
[0006] Optionally, determining the acoustic features of the speech data includes: performing noise suppression and signal enhancement on the speech data respectively to remove background noise in the speech data and suppress reverberation to obtain enhanced speech data; and extracting the Mel spectrum of the enhanced speech data as the acoustic features of the speech data.
[0007] Optionally, determining the visual position features and visual lip shape features of at least one speaker based on the visual data includes: performing target detection on the visual data with the speaker as the target to obtain a bounding box of each target; tracking the bounding box during the duration of the visual data to determine the temporal motion trajectory of each target; determining the visual position features of each speaker in time based on the motion trajectory; performing target detection on the visual data with the face as the target to determine the facial image of the speaker; and extracting the temporal feature descriptor of the lip shape area on the facial image as the visual lip shape feature.
[0008] Optionally, determining the target position of the speaker based on the fusion of the acoustic features and the visual position features includes: obtaining an initial sound source localization function, and using the acoustic features to calculate the time delay estimate in the initial sound source localization function, wherein the sound source localization function is used to globally search for the maximum value of the function as the sound source position; globally searching the maximum value of the initial sound source localization function to obtain at least one candidate position of the speaker; calculating the Gaussian prior probability of the candidate position based on the visual position feature, and fusing the Gaussian prior probability as prior knowledge into the initial sound source localization function to obtain a target sound source localization function; in the target sound source localization function, converting the three-dimensional rectangular coordinates into polar coordinates, and adding the Gaussian prior probability at the polar coordinates of each candidate position as the Gaussian weight assigned to each candidate position; globally searching the maximum value of the target sound source localization function to obtain the target position of the speaker.
[0009] Optionally, the step of inputting the speech data, the acoustic features, the target position, and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space includes: inputting the speech data into a multi-head attention encoder to obtain speech coding features of the speech data; inputting the visual lip shape features into a visual embedding layer to obtain lip shape embedding features, wherein the visual embedding layer is a fully connected structure; inputting the acoustic features, the target position, the speech coding features, and the lip shape embedding features into a cross-attention decoder to obtain a text output sequence through a cross-attention mechanism, wherein the target speech recognition model includes the multi-head attention encoder, the visual embedding layer, and the cross-attention decoder; and determining the text output sequence as the speech recognition result.
[0010] Optionally, the step of inputting the speech data into a multi-head attention encoder to obtain speech coding features of the speech data includes: splicing the speech data collected by each microphone array into a high-dimensional feature sequence; and inputting the high-dimensional feature sequence into the multi-head attention encoder to obtain the speech coding features through a multi-head attention mechanism.
[0011] Optionally, the method further includes: taking a weighted sum of a cross entropy loss and a visual attention loss as a loss function of the target speech recognition model, so as to constrain the target speech recognition model to minimize recognition errors through the loss function.
[0012] According to another aspect of an embodiment of the present application, the present application provides a multimodal speech recognition device, including: a data acquisition module, used to acquire speech data collected by a microphone array for at least one speaker in a target space and visual data collected by a visual sensor array for the target space; a preprocessing module, used to determine the acoustic features of the speech data, and determine the visual position features and visual lip shape features of at least one speaker based on the visual data; a visual auxiliary positioning module, used to determine the target position of the speaker based on the fusion of the acoustic features and the visual position features; a multimodal fusion recognition module, used to input the speech data, the acoustic features, the target position and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space.
[0013] According to another aspect of an embodiment of the present application, the present application provides an electronic device, including a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, the memory and the processor communicate through the communication bus and the communication interface, and the steps of the above method are implemented when the processor executes the computer program.
[0014] According to another aspect of an embodiment of the present application, the present application also provides a computer-readable medium having a non-volatile program code executable by a processor, and the program code enables the processor to execute the above method.
[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:
[0016] The present application provides a multimodal speech recognition method, including: obtaining speech data collected by a microphone array for at least one speaker in a target space and visual data collected by a visual sensor array for the target space; determining the acoustic features of the speech data, and determining the visual position features and visual lip shape features of at least one speaker based on the visual data; determining the target position of the speaker based on the fusion of the acoustic features and the visual position features; inputting the speech data, the acoustic features, the target position and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space. The present application improves the accuracy of speech recognition in complex environments by fusing the data of the microphone array and the visual sensor array, locating the sound source based on visual assistance, and further using the positioning results and visual data to assist speech recognition, thereby solving the technical problem of reduced speech recognition accuracy in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A schematic diagram of an optional multimodal speech recognition method flow chart provided according to an embodiment of the present application;
[0020] Figure 2 A schematic diagram of an optional multimodal speech recognition architecture provided according to an embodiment of the present application;
[0021] Figure 3 A block diagram of an optional multimodal speech recognition device provided according to an embodiment of the present application;
[0022] Figure 4 A schematic diagram of an optional electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0024] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.
[0025] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiments of the present application, an embodiment of a multimodal speech recognition method is provided, such as Figure 1 As shown, the method may include the following steps:
[0026] Step S102, acquiring speech data collected by the microphone array from at least one speaker in the target space and visual data collected by the visual sensor array from the target space;
[0027] Step S104, determining the acoustic features of the speech data, and determining the visual position features and the visual lip shape features of at least one speaker based on the visual data;
[0028] Step S106, determining the target position of the speaker based on the fusion of the acoustic feature and the visual position feature;
[0029] Step S108: input the speech data, the acoustic features, the target position and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space.
[0030] In the embodiment of the present application, the microphone array is an array composed of multiple microphones, which is used to collect sound signals in space and can provide richer sound field information. The visual sensor array is an array composed of multiple cameras, which is used to collect visual information of the target space, such as the position change, facial image and lip shape change of the speaker. Acoustic features refer to parameters extracted from speech data that can characterize the characteristics of speech signals, such as Mel frequency cepstral coefficients (MFCC), log Mel filter groups and other features.
[0031] In the embodiment of the present application, the microphone array is composed of M microphones, which can be arranged in a uniform linear or circular manner. Wherein, m = 1, 2, ..., M represents the mth microphone, and rm represents the position vector of the mth microphone. The visual sensor array is composed of N RGB-D cameras for acquiring visual information of the sound source. Wherein, n = 1, 2, ..., N represents the nth camera, and cn represents the position of the nth camera.
[0032] In the embodiment of the present application, in step S102, the system synchronously samples and digitizes the raw data collected by the sensor array. For the voice data collected by the microphone array, the system converts the continuously sampled analog signal xm(t) into a discrete sequence xm(k) through an analog-to-digital converter (ADC). For the visual data collected by the visual sensor, the system obtains the RGB image I(i, j) and the depth map D(i, j). Where (i, j) is the pixel coordinate.
[0033] In the embodiment of the present application, a microphone array is used to collect speech signals, and preprocessing such as noise reduction and echo cancellation is performed. A visual sensor array is used to capture the facial image of the speaker, and face detection, tracking and lip area positioning are performed. Feature extraction is performed on the preprocessed speech signal, such as calculating acoustic features such as MFCC and spectrum energy. Feature extraction is performed on the visual image, including the speaker's position information (such as two-dimensional or three-dimensional coordinates) and lip shape features (such as lip shape contour, lip color change, etc.). Combining acoustic features and visual position features, SRP-PHAT or other sound source localization algorithms are used to calculate the precise position of the speaker. Visual position information can be used as prior knowledge for acoustic positioning to improve the accuracy of positioning. Build or train a speech recognition model that supports multimodal input, such as an end-to-end model based on Transformer. Speech data, acoustic features, target position and visual lip shape features are used as input and sent to the model for recognition. The model fuses information of different modalities through methods such as cross-attention mechanisms and outputs the final speech recognition result.
[0034] The present application integrates the data of microphone array and visual sensor array, locates the sound source based on vision, and further uses the positioning results and visual data to assist speech recognition, thereby improving the accuracy of speech recognition in complex environments and solving the technical problem of decreased speech recognition accuracy in complex environments.
[0035] Combine the following Figure 2 The process shown is used to fully illustrate the above multimodal speech recognition method.
[0036] In an optional embodiment, determining the acoustic features of the speech data includes:
[0037] Step 1, performing noise suppression and signal enhancement on the speech data respectively to remove background noise in the speech data and suppress reverberation to obtain enhanced speech data;
[0038] Step 2: extracting the Mel spectrum of the enhanced speech data as the acoustic feature of the speech data.
[0039] In the embodiments of the present application, noise suppression is intended to reduce or eliminate background noise components in speech signals to improve speech clarity and intelligibility. Signal enhancement is intended to improve signal quality. Algorithms such as wavelet transform and spectral subtraction can be used to suppress noise. Wavelet dereverberation algorithms can be used to reduce the impact of room reverberation, and adaptive filters can be used to simulate and remove audio signals generated by echoes.
[0040] In the present application embodiment, Figure 2As shown, it is currently in the preprocessing module, where the specific process of acoustic preprocessing is as follows: input the original speech data, including the target speech, background noise and possible reverberation. Apply noise suppression algorithms (such as spectral subtraction, Wiener filtering, noise reduction models based on deep learning, etc.) to reduce the impact of background noise. At the same time, signal enhancement techniques (such as reverberation suppression and echo cancellation) may be used to further improve the quality of the speech signal. Output the enhanced speech data, the noise and reverberation components are significantly reduced, and the speech clarity is improved. Next is to extract acoustic features. Taking the Mel spectrum as an example, the enhanced speech data is framed, each frame usually contains a certain number of sampling points, and windowing is performed to reduce the discontinuity of the frame edge. Perform a fast Fourier transform (FFT) on each frame of speech signal, convert it from the time domain to the frequency domain, and obtain a spectrum representation. Convert the linear frequency axis of the spectrum to the Mel frequency axis to match the nonlinear perception of the human ear to the frequency. Convert the linear frequency axis of the spectrum to the Mel frequency axis to match the nonlinear perception of the human ear to the frequency. The energy output of the filter bank is logarithmically transformed and discrete cosine transformed (DCT) is performed to obtain Mel-frequency cepstral coefficients (MFCC). The MFCC is output as the acoustic feature of the speech data for subsequent speech recognition or other processing.
[0041] In the embodiment of the present application, the acoustic characteristics may also include time difference of arrival (TDOA), frequency characteristics, sound pressure level, etc., which may be selected and obtained according to actual conditions.
[0042] The original speech data usually contains various interference components, such as background noise, reverberation and echo, which interfere with the normal operation of the speech recognition model and reduce the recognition accuracy and robustness. This application can significantly improve the quality of the speech signal by removing these interference components, making it more suitable for subsequent feature extraction and recognition tasks.
[0043] In an optional embodiment, determining the visual position feature and the visual lip shape feature of at least one speaker based on the visual data includes:
[0044] Step 1, performing target detection on the visual data with the speaker as the target to obtain a bounding box of each target;
[0045] Step 2, tracking the bounding box over the duration of the visual data to determine the motion trajectory of each object in time;
[0046] Step 3, determining the visual position feature of each speaker in time based on the motion trajectory;
[0047] Step 4, performing target detection on the visual data with the face as the target to determine the face image of the speaker;
[0048] Step 5: extracting the temporal feature descriptor of the lip shape area in the face image as the visual lip shape feature.
[0049] In the embodiments of the present application, target detection refers to the process of identifying and locating specific targets (such as people, vehicles, animals, etc.) in an image or video frame, and usually outputs the bounding box of the target. In the present application, it is used to identify and locate the speaker, the speaker's face and lips, and outputs the person bounding box, face bounding box and lip bounding box. The motion trajectory refers to the sequence of position changes of the target in consecutive video frames, reflecting the dynamic behavior of the target. The visual position feature is used to describe the characteristics of the speaker's position and time motion characteristics in the video frame. The visual lip shape feature is used for lip reading or auxiliary speech recognition by extracting the time-varying characteristics of the speaker's lip shape area.
[0050] In the present application embodiment, Figure 2 As shown, it is currently in the preprocessing module, where the specific process of visual preprocessing is as follows: input visual data (video frame sequence), use target detection algorithm (such as YOLO, SSD based on deep learning, etc.) to scan the video frame, identify and locate the speaker. Output the bounding box of each speaker, including its position information in the video frame. Use tracking algorithm (such as KCF, DeepSORT, etc.) to track the bounding box across frames to obtain the speaker's motion trajectory in time. Output the motion trajectory of each speaker, including position, speed, acceleration and other information. Analyze the motion trajectory data, extract position features (such as center coordinates, position change rate), motion features (such as speed, acceleration), etc. Output the visual position features of the speaker for subsequent analysis or recognition.
[0051] Visual preprocessing can also extract visual lip shape features. Specifically: input a video frame containing a speaker, first use a face detection algorithm (such as Haar feature + AdaBoost, CNN, etc.) to locate the face, then extract the lip shape area in the face area, output the speaker's lip shape area image, extract temporal feature descriptors from the lip shape area image, such as optical flow features, dynamic texture features, etc., to capture the dynamic changes of the lip shape, and finally output the speaker's visual lip shape features for lip reading or auxiliary speech recognition.
[0052] In this application, visual position features can help the system identify the speaker's position and motion state in the video, so as to more accurately associate the voice signal with the visual signal. Visual lip shape features can assist speech recognition by capturing the dynamic changes of lip shape, especially in noisy environments or when the voice signal is unclear, lip shape features can provide important supplementary information.
[0053] In an optional embodiment, the determining the target position of the speaker based on the fusion of the acoustic feature and the visual position feature includes:
[0054] Step 1, obtaining an initial sound source localization function, and using the acoustic features to calculate a time delay estimate in the initial sound source localization function, wherein the sound source localization function is used to globally search for a function maximum as a sound source position;
[0055] Step 2, globally searching for the maximum value of the initial sound source localization function to obtain at least one candidate position of the speaker;
[0056] Step 3, calculating the Gaussian prior probability of the candidate position based on the visual position feature, and integrating the Gaussian prior probability as prior knowledge into the initial sound source localization function to obtain a target sound source localization function;
[0057] Step 4, in the target sound source localization function, converting the three-dimensional rectangular coordinates into polar coordinates, and adding the Gaussian prior probability at the polar coordinates of each candidate position as the Gaussian weight assigned to each candidate position;
[0058] Step 5: globally search for the maximum value of the target sound source localization function to obtain the target position of the speaker.
[0059] In the present application embodiment, Figure 2 As shown in the figure, the system uses the SRP-PHAT positioning algorithm and visual position fusion technology in the positioning module, taking into account both sound and visual information, to obtain the three-dimensional position of each sound source. First, the SRP-PHAT positioning algorithm determines the approximate position of the sound source through sound information, and then the visual position fusion technology combines the information obtained by the visual sensor with the sound positioning result to obtain a more accurate estimate of the sound source position. This process takes advantage of the complementary advantages of sound and visual information and improves the accuracy and robustness of the sound source position estimation.
[0060] The SRP-PHAT positioning algorithm determines the approximate location of the sound source through sound information, where:
[0061] Latency estimation:
[0062] Rmn(ω)=Xm(ω)X*n(ω) / |Xm(ω)X*n(ω)|;
[0063] Rmn(ω) is the generalized cross-correlation function between the microphone pair (m, n) in the frequency domain, calculated using the GCC-PHAT delay estimation algorithm. Xm(ω) and X*n(ω) are the frequency domain representations of the sound signals received by microphones m and n, respectively, and * represents the complex conjugate.
[0064] Initial sound source localization function:
[0065] P(r)=ΣmΣn WmnΣωg(ω)Rmn(ω)Ymn(r,ω);
[0066] Where Wmn represents the position weight of the microphone pair (m,n), which is calculated based on its directional performance for the candidate position r. g(ω) is a time-frequency weighting function, which is used to give different weights to different frequencies. Ymn(r,ω) is the delay model phase function, which describes the degree of match between the delay at the candidate position r and the actual received delay. The global search maximum P(r) is used as the sound source position estimate. By searching the candidate position r, the global maximum point of P(r) is found as the initial sound source localization result.
[0067] Then, the visual position fusion technology combines the information obtained by the visual sensor with the sound localization results to obtain a more accurate estimate of the sound source position. Based on the visual target detection and motion tracking results, the three-dimensional position prior of each sound source target is obtained and fused into the SRP-PHAT function, providing position assistance by assigning Gaussian weights to the candidate positions.
[0068] Prior knowledge fusion: Obtain visual target detection and tracking results, namely visual position features lt, which represent the 3D position of each sound source estimated by vision. Incorporate the visual position features lt into the SRP-PHAT response calculation to obtain the target sound source localization function:
[0069] P(r|lt)=ΣmΣn WmnΣωg(ω)Rmn(ω)Ymn(r,ω)N(r|lt,Σ);
[0070] Among them, P(r|lt) refers to the fusion of visual prior information into the initial sound source localization function, which represents the probability of the sound source at the candidate position r given the visual prior lt. N(r|lt,Σ) represents the Gaussian prior probability at position lt, and Σ in N(r|lt,Σ) is the covariance matrix, which represents the uncertainty of visual detection.
[0071] Visual position fusion: Convert (x, y, z) to polar coordinates (r, θ, φ) using the following formula:
[0072]
[0073] Then Nearby candidate locations Add Gaussian weights:
[0074]
[0075] Where A is a constant factor used to adjust the amplitude of Gaussian weights. σ is the standard deviation of Gaussian distribution, which is used to control the extension range of Gaussian weights.
[0076] In an embodiment of the present application, an initial sound source localization function is constructed by using the sound signal collected by the microphone array through acoustic feature extraction and positioning algorithm. A global search is performed on the initial sound source localization function to find the position where the function value reaches the maximum, which is used as the preliminary candidate position of the speaker. Based on the visual position feature, the Gaussian prior probability of each preliminary candidate position is calculated. This usually involves analysis of visual images, such as target detection, tracking and position estimation. The Gaussian prior probability is used as a weight factor and integrated into the initial sound source localization function to construct a target sound source localization function. The size of the weight factor reflects the evaluation of the credibility of each candidate position by the visual information. In the target sound source localization function, the three-dimensional rectangular coordinates are converted into polar coordinates (or other coordinate systems are selected as needed), and the corresponding Gaussian prior probability is added to the polar coordinates of each candidate position as a weighted value. A global search is performed on the weighted target sound source localization function to find the position where the function value reaches the maximum, which is the final target position of the speaker.
[0077] A single sensor may be interfered by multiple factors in a complex environment, resulting in reduced positioning accuracy. Although acoustic features can directly reflect the propagation characteristics of sound, they may not be accurate enough in situations such as multipath effects and noise interference. Although visual position features may be affected by factors such as occlusion and lighting changes, they can provide intuitive spatial position information. This application combines these two features to complement each other and improve the accuracy and robustness of positioning.
[0078] In an optional embodiment, the step of inputting the speech data, the acoustic features, the target position, and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space comprises:
[0079] Step 1, inputting the speech data into a multi-head attention encoder to obtain speech coding features of the speech data;
[0080] Step 2, inputting the visual lip shape feature into a visual embedding layer to obtain a lip shape embedding feature, wherein the visual embedding layer is a fully connected structure;
[0081] Step 3, inputting the acoustic features, the target position, the speech coding features and the lip shape embedding features into a cross-attention decoder to obtain a text output sequence through a cross-attention mechanism, wherein the target speech recognition model includes the multi-head attention encoder, the visual embedding layer and the cross-attention decoder;
[0082] Step 4: determine the text output sequence as the speech recognition result.
[0083] In the present application embodiment, Figure 2As shown in the figure, in the recognition module, the system inputs the acoustic features, sound source location, speech coding features, and visual lip shape features into the decoder for processing. In the decoder, the system uses a cross-attention mechanism to focus on the sound coding features and visual lip shape features, as well as the sound source location information, so as to better understand the speech signal and related visual information. This multimodal fusion method enables the system to comprehensively consider multiple aspects of information such as sound, vision, and location when performing speech recognition, thereby improving the accuracy and robustness of recognition.
[0084] The recognition module adopts a Transformer-based end-to-end speech recognition model, and the model structure includes a multi-head attention encoder, a visual embedding layer, and a cross-attention decoder.
[0085] In an embodiment of the present application, the voice data is input into a multi-head attention encoder, the voice data is encoded by the encoder, and the voice coding features are extracted. These features contain important information in the voice and are used for subsequent voice recognition. The voice data is input into the multi-head attention encoder to obtain the voice coding features of the voice data, including: splicing the voice data collected by each microphone array into a high-dimensional feature sequence; inputting the high-dimensional feature sequence into the multi-head attention encoder to obtain the voice coding features through a multi-head attention mechanism. Specifically, M microphone data are spliced into a high-dimensional feature sequence X, the high-dimensional feature sequence X = [x1, x2, ..., xM], and the high-dimensional feature sequence X is input into the encoder for encoding, wherein the multi-head attention encoding is:
[0086] Q = XWQ, K = XWK, V = XWV;
[0087] Then Attention(Q,K,V)=softmax(QKT / √dk)V, and the speech coding feature A can be obtained through the multi-head mechanism.
[0088] In the embodiment of the present application, the visual lip shape feature is input into the visual embedding layer, and the lip shape feature is converted into a lip shape embedding feature suitable for model processing through a fully connected network. The lip shape embedding feature can capture the details of lip movement and is used to assist speech recognition, wherein the lip shape embedding feature is expressed as:
[0089] E = ReLU(WvV+bv);
[0090] Among them, V is the visual lip shape feature and E is the lip shape embedding feature.
[0091] In the embodiment of the present application, acoustic features, target positions, speech coding features, and lip shape embedding features are used as inputs and fed into a cross-attention decoder. The decoder uses a cross-attention mechanism to simultaneously consider the information of these input sources during the decoding process to achieve information fusion and complementarity. Through the decoding process, a text output sequence is generated, i.e., the speech recognition result.
[0092] Fusion of speech, vision, and position modalities via cross-attention mechanism:
[0093] Attention1=Attention(QdecAenc,KdecAenc,VdecAenc);
[0094] Attention2=Attention(QdecE,KdecE,VdecE);
[0095] Attention3=Attention(QdecLt,KdecLt,VdecLt);
[0096] Generate output fusion trimodal attention results:
[0097] Ot=softmax(WoAttention1+UoAttention2+VoAttention3+bo).
[0098] In an embodiment of the present application, the target speech recognition model can adopt an end-to-end training method, training the multi-head attention encoder, visual embedding layer and cross-attention decoder as a whole, thereby further reducing the complexity of model training and improving the overall performance of the model.
[0099] A single information source (such as relying only on voice data) may be affected by multiple factors such as noise, echo, and interference from multiple speakers in a complex environment, resulting in a decrease in recognition accuracy. This application integrates multiple information sources (such as voice data, acoustic features, target position, and visual lip shape features) to complement each other and improve recognition accuracy and robustness. In particular, the introduction of visual lip shape features can provide an information source different from voice data, which helps to resolve the ambiguity and ambiguity problems in voice data.
[0100] In an optional embodiment, the method further includes:
[0101] The weighted sum of the cross entropy loss and the visual attention loss is used as the loss function of the target speech recognition model to constrain the target speech recognition model to minimize recognition errors through the loss function.
[0102] In an embodiment of the present application, the loss function of the target speech recognition model is a weighted sum of cross entropy loss and visual attention loss, which is used to minimize recognition errors and speech-visual differences.
[0103] Cross-Entropy Loss is a loss function that measures the difference between the model's predicted probability distribution and the true probability distribution in machine learning and deep learning. In speech recognition tasks, it is used to evaluate the difference between the text sequence predicted by the model and the true text sequence.
[0104] Visual Attention Loss is a loss function specific to multimodal tasks (such as tasks combining speech and vision) that is used to evaluate whether the model's attention allocation when utilizing visual information (such as lip shape features) is reasonable or effective. Visual attention loss can be calculated based on the difference between the attention weights generated by the model and the predefined or learned attention distribution.
[0105] In an embodiment of the present application, first, the text sequence predicted by the model is compared with the real text sequence, and the difference between the two is calculated using the cross entropy loss function. This step aims to optimize the speech recognition ability of the model so that it can more accurately extract text information from speech data. Next, the attention allocation of the model when processing visual lip shape features is evaluated. For example, the attention weights generated by the model are analyzed and compared with the expected or learned attention distribution to calculate the visual attention loss. This step aims to enhance the model's ability to use visual information to assist speech recognition. The cross entropy loss and the visual attention loss are weighted and summed according to predetermined weights to obtain the final loss value. The weight can be adjusted according to the requirements of the specific task and the experimental results to balance the performance of the model in speech recognition and visual information utilization. Finally, the calculated loss value is used for back propagation, and the parameters of the model are updated through optimization algorithms such as gradient descent to minimize the loss value and improve the performance of the model.
[0106] Speech recognition tasks often face many challenges in complex environments (such as noise interference, multi-speaker scenarios, etc.). By integrating visual information (such as lip shape features), additional clues and constraints can be provided for speech recognition, thereby improving the accuracy and robustness of recognition. However, simply using visual information as an additional input feature may not be enough to fully realize its potential. Therefore, this application introduces visual attention loss to guide the model to better utilize visual information during training, which can further improve the performance of the model.
[0107] In an embodiment of the present application, the final voice recognition results can be fed back to the control part of the system, and corresponding control operations can be performed according to these results. For example, when a specific voice command is recognized or an abnormal situation is detected (such as unauthorized entry), the system can issue a sound alarm through a speaker to alert relevant personnel. For example, in application scenarios such as robots, drones, or self-driving vehicles, the system can control the movement path of the device based on the positioning results and voice recognition instructions. For example, when a voice command of "Go to Conference Room A" is received, the system can plan the optimal navigation route and control the device to automatically drive along the route. For example, in a smart home system, users can control the operating status of lights, air conditioners, televisions and other equipment through voice commands; in the field of industrial automation, the system can adjust the speed and parameters of the production line according to the voice recognition results.
[0108] The present application provides a multimodal speech recognition method, including: obtaining speech data collected by a microphone array for at least one speaker in a target space and visual data collected by a visual sensor array for the target space; determining the acoustic features of the speech data, and determining the visual position features and visual lip shape features of at least one speaker based on the visual data; determining the target position of the speaker based on the fusion of the acoustic features and the visual position features; inputting the speech data, the acoustic features, the target position and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space. The present application improves the accuracy of speech recognition in complex environments by fusing the data of the microphone array and the visual sensor array, locating the sound source based on visual assistance, and further using the positioning results and visual data to assist speech recognition, thereby solving the technical problem of reduced speech recognition accuracy in complex environments.
[0109] According to another aspect of the embodiment of the present application, Figure 3 As shown, a multimodal speech recognition device is provided, comprising:
[0110] A data acquisition module 301 is used to acquire speech data collected by a microphone array from at least one speaker in a target space and visual data collected by a visual sensor array from the target space;
[0111] A preprocessing module 303, configured to determine the acoustic features of the speech data, and determine the visual position features and the visual lip shape features of at least one speaker based on the visual data;
[0112] A visually assisted positioning module 305, configured to determine the target position of the speaker based on a fusion of the acoustic features and the visual position features;
[0113] The multimodal fusion recognition module 307 is used to input the speech data, the acoustic features, the target position and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space.
[0114] It should be noted that the data acquisition module 301 in this embodiment can be used to execute step S102 in the embodiment of the present application, the preprocessing module 303 in this embodiment can be used to execute step S104 in the embodiment of the present application, the visual assisted positioning module 305 in this embodiment can be used to execute step S106 in the embodiment of the present application, and the multimodal fusion recognition module 307 in this embodiment can be used to execute step S108 in the embodiment of the present application.
[0115] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be implemented by software or hardware.
[0116] Optionally, the preprocessing module is specifically used to: perform noise suppression and signal enhancement on the speech data respectively to remove background noise in the speech data and suppress reverberation to obtain enhanced speech data; and extract the Mel spectrum of the enhanced speech data as the acoustic feature of the speech data.
[0117] Optionally, the preprocessing module is further used to: perform target detection on the visual data with the speaker as the target to obtain a bounding box of each target; track the bounding box during the duration of the visual data to determine the temporal motion trajectory of each target; determine the temporal visual position feature of each speaker based on the motion trajectory; perform target detection on the visual data with the face as the target to determine the facial image of the speaker; and extract the temporal feature descriptor of the lip area on the facial image as the visual lip feature.
[0118] Optionally, the visual assisted positioning module is specifically used to: obtain an initial sound source localization function, and use the acoustic features to calculate the time delay estimate in the initial sound source localization function, wherein the sound source localization function is used to globally search for the maximum value of the function as the sound source position; globally search for the maximum value of the initial sound source localization function to obtain at least one candidate position of the speaker; calculate the Gaussian prior probability of the candidate position based on the visual position feature, and integrate the Gaussian prior probability into the initial sound source localization function as prior knowledge to obtain a target sound source localization function; in the target sound source localization function, convert the three-dimensional rectangular coordinates into polar coordinates, and add the Gaussian prior probability at the polar coordinates of each candidate position as the Gaussian weight assigned to each candidate position; globally search for the maximum value of the target sound source localization function to obtain the target position of the speaker.
[0119] Optionally, the multimodal fusion recognition module is specifically used to: input the speech data into a multi-head attention encoder to obtain speech coding features of the speech data; input the visual lip shape features into a visual embedding layer to obtain lip shape embedding features, wherein the visual embedding layer is a fully connected structure; input the acoustic features, the target position, the speech coding features and the lip shape embedding features into a cross-attention decoder to obtain a text output sequence through a cross-attention mechanism, wherein the target speech recognition model includes the multi-head attention encoder, the visual embedding layer and the cross-attention decoder; and determine the text output sequence as the speech recognition result.
[0120] Optionally, the multimodal fusion recognition module is also used to: splice the voice data collected by each microphone array into a high-dimensional feature sequence; input the high-dimensional feature sequence into the multi-head attention encoder to obtain the voice coding features through the multi-head attention mechanism.
[0121] Optionally, the multimodal fusion recognition module is also used to: use the weighted sum of the cross entropy loss and the visual attention loss as the loss function of the target speech recognition model, so as to constrain the target speech recognition model to minimize recognition errors through the loss function.
[0122] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Figure 4 As shown, it includes a memory 401, a processor 403, a communication interface 405 and a communication bus 407. The memory 401 stores a computer program that can be run on the processor 403. The memory 401 and the processor 403 communicate through the communication interface 405 and the communication bus 407. When the processor 403 executes the computer program, the steps of the above method are implemented.
[0123] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
[0124] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0125] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0126] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any of the above embodiments.
[0127] Optionally, in an embodiment of the present application, the computer-readable medium is configured to store program codes for the processor to perform the following steps:
[0128] Acquire speech data collected by a microphone array from at least one speaker in a target space and visual data collected by a visual sensor array from the target space;
[0129] Determining acoustic features of the speech data, and determining visual position features and visual lip shape features of at least one speaker based on the visual data;
[0130] Determining a target position of the speaker based on a fusion of the acoustic features and the visual position features;
[0131] The speech data, the acoustic features, the target position and the visual lip shape features are input into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space.
[0132] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0133] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.
[0134] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0135] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0136] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0138] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0139] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0140] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0141] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0142] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A multimodal speech recognition method, characterized in that: include: Acquire speech data collected by a microphone array from at least one speaker in a target space and visual data collected by a visual sensor array from the target space; Determining acoustic features of the speech data, and determining visual position features and visual lip shape features of at least one speaker based on the visual data; Determining a target position of the speaker based on a fusion of the acoustic features and the visual position features; The speech data, the acoustic features, the target position and the visual lip shape features are input into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space.
2. The method according to claim 1, characterized in that Determining the acoustic features of the speech data includes: Performing noise suppression and signal enhancement on the speech data respectively to remove background noise in the speech data and suppress reverberation to obtain enhanced speech data; A mel spectrum of the enhanced speech data is extracted as the acoustic feature of the speech data.
3. The method according to claim 1, characterized in that: Determining the visual position feature and the visual lip shape feature of at least one speaker based on the visual data comprises: Performing target detection on the visual data with the speaker as the target to obtain a bounding box of each target; Tracking the bounding box over the duration of the visual data to determine a trajectory of motion of each object over time; Determining the visual position feature of each speaker in time based on the motion trajectory; Performing target detection on the visual data with human face as the target to determine the facial image of the speaker; A temporal feature descriptor of a lip shape region is extracted from the face image as the visual lip shape feature.
4. The method according to claim 1, characterized in that: The determining the target position of the speaker based on the fusion of the acoustic feature and the visual position feature comprises: Acquire an initial sound source localization function, and calculate a time delay estimate in the initial sound source localization function using the acoustic feature, wherein the sound source localization function is used to globally search for a function maximum as a sound source position; Globally searching for the maximum value of the initial sound source localization function to obtain at least one candidate position of the speaker; Calculate the Gaussian prior probability of the candidate position based on the visual position feature, and fuse the Gaussian prior probability into the initial sound source localization function as prior knowledge to obtain a target sound source localization function; In the target sound source localization function, the three-dimensional rectangular coordinates are converted into polar coordinates, and the Gaussian prior probability is added at the polar coordinates of each candidate position as the Gaussian weight assigned to each candidate position; The maximum value of the target sound source localization function is searched globally to obtain the target position of the speaker.
5. The method according to claim 1, characterized in that The step of inputting the speech data, the acoustic features, the target position, and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space comprises: Inputting the speech data into a multi-head attention encoder to obtain speech coding features of the speech data; Inputting the visual lip shape feature into a visual embedding layer to obtain a lip shape embedding feature, wherein the visual embedding layer is a fully connected structure; Inputting the acoustic features, the target position, the speech coding features and the lip shape embedding features into a cross-attention decoder to obtain a text output sequence through a cross-attention mechanism, wherein the target speech recognition model includes the multi-head attention encoder, the visual embedding layer and the cross-attention decoder; The text output sequence is determined as the speech recognition result.
6. The method according to claim 5, characterized in that The step of inputting the speech data into a multi-head attention encoder to obtain speech coding features of the speech data comprises: Splicing the speech data collected by each microphone array into a high-dimensional feature sequence; The high-dimensional feature sequence is input into the multi-head attention encoder to obtain the speech coding features through a multi-head attention mechanism.
7. The method according to claim 6, characterized in that The method further comprises: The weighted sum of the cross entropy loss and the visual attention loss is used as the loss function of the target speech recognition model to constrain the target speech recognition model to minimize recognition errors through the loss function.
8. A multimodal speech recognition device, characterized in that: include: A data acquisition module, used to acquire voice data collected by the microphone array from at least one speaker in the target space and visual data collected by the visual sensor array from the target space; A preprocessing module, configured to determine acoustic features of the speech data, and determine visual position features and visual lip shape features of at least one speaker based on the visual data; A visually assisted positioning module, configured to determine a target position of the speaker based on a fusion of the acoustic features and the visual position features; The multimodal fusion recognition module is used to input the speech data, the acoustic features, the target position and the visual lip shape features into a target speech recognition model to obtain a speech recognition result for at least one speaker in the target space.
9. An electronic device, comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate through the communication bus and the communication interface, characterized in that: When the processor executes the computer program, the multimodal speech recognition method described in any one of claims 1 to 7 is implemented.
10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the multimodal speech recognition method described in any one of claims 1 to 7.
Citation Information
Cited By
Intelligent voice noise reduction interaction method and system of humanoid robot
CN119152870A
Multi-modal lip language recognition method and device fusing respiratory airflow data
CN120217274A
A multi-modal lip reading method and device fusing respiratory airflow data
CN120217274B
Human mouth shape and voice matching recognition method based on deep learning
CN120877754A
Human mouth shape and speech matching recognition method based on deep learning
CN120877754B
