Bone conduction voice signal transmission method based on deep learning architecture
Through the bone conduction speech codec network based on the deep learning architecture, the problems of loss of high-frequency components and high computational complexity of traditional codecs are solved, and high-frequency compensation and low bit-rate encoding and decoding of bone conduction speech signals are realized. Improved voice quality and transmission efficiency.
Patent Information
- Application Number
- CN202410898777.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-24
AI Technical Summary
Traditional bone conduction speech codecs have problems such as loss of high-frequency components and high computational complexity when processing bone conduction speech signals, and cannot effectively code and decode at low bit rates.
Adopts a bone conduction speech codec network based on deep learning architecture, including speech encoder, dual-stream residual vector quantizer and speech decoder, using temporal feature linear modulation multi-head attention mechanism, residual autocorrelation weight unit and dual-stream channel- The spatial attention fusion unit realizes high-frequency compensation and low bit-rate encoding and decoding of bone conduction speech signals through training and iterative optimization of network parameters.
It reduces the computational complexity of the encoding and decoding process, improves the quality of decoded speech, can effectively capture and retain high-frequency components, and is suitable for speech transmission at low bit rates.
Smart Images

Figure CN118692473A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bone conduction voice signal transmission, and in particular to a bone conduction voice signal transmission method based on a deep learning architecture. Background Art
[0002] Air conduction speech records speech by converting sound waves propagated in the air into electrical signals, while bone conduction speech signals record speech by converting vibrations around the speaker's skull into electrical signals. This means that in noisy environments, such as public transportation or noisy workplaces, bone conduction devices can deliver speech information more clearly and accurately. However, due to the limitations of its propagation mechanism, bone conduction speech has the following disadvantages: Since the human skeleton is equivalent to a low-pass filter, the high-frequency components in the bone conduction speech signal are lost, and its energy distribution is usually limited to below 2kHz. This greatly reduces the clarity of the speech and makes the bone conduction speech sound dull. In the process of voice communication, the transmitter needs to encode and compress the bone conduction speech signal into a binary code stream and send it to the receiver. In order to fully utilize the advantages of bone conduction speech and overcome its limitations, some research works have tried to develop high-frequency compensation technology for bone conduction speech signals and use existing speech codecs to encode the enhanced bone conduction speech. This allows bone conduction speech to be more widely used.
[0003] The traditional speech codec is used to encode the enhanced bone conduction speech obtained by the above method for transmission on the communication channel, and then decoded and played by the receiving end. However, this process includes two steps: bone conduction speech enhancement and enhanced speech encoding. The two independent steps lead to greater computational complexity. In addition, the traditional speech codec is unable to perform speech encoding and decoding at a lower bit rate. Therefore, it is undoubtedly ideal to develop a neural speech codec that can not only compensate for the high-frequency components of bone conduction speech, but also perform speech encoding and decoding at a low bit rate. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention discloses a bone conduction voice signal transmission method based on a deep learning architecture, which specifically includes the following steps:
[0005] Collecting the bone conduction voice signal to be sent and the air conduction voice signal corresponding to the bone conduction voice, and establishing a training set and a test set based on the bone conduction voice signal and the air conduction voice signal;
[0006] Constructing a bone conduction speech codec network based on a deep learning architecture, wherein the bone conduction speech codec network includes a speech encoder, a dual-stream residual vector quantizer, and a speech decoder, wherein the speech decoder includes a temporal feature linear modulation multi-head attention mechanism module, a residual autocorrelation weight unit, and a dual-stream channel spatial attention fusion unit;
[0007] The bone conduction speech codec network is trained on the divided training set and the network parameters are updated. The gradient value of the network is transferred by using the back propagation algorithm. The network parameters are repeatedly iterated to control the generated speech signal to be close to the air conduction speech signal so as to obtain the optimal weight, thereby completing the training process of the bone conduction speech codec.
[0008] During the deployment phase, the speech encoder and speech decoder of the bone conduction speech codec network need to be used separately, and the bone conduction speech signal in the test set is input into the bone conduction speech codec network loaded with the optimal weight to obtain the binary code stream to be sent;
[0009] The binary code stream is transmitted from the transmitting end to the receiving end, and the bone conduction speech decoder network is used to decode the binary code stream to synthesize air conduction speech;
[0010] The recovered continuous speech signal is played through the loudspeaker.
[0011] Furthermore, the speech encoder network has four downsampling layers with downsampling multiples of 2, 4, 5 and 6 respectively, and the downsampling layer consists of two 1D convolutional layers and four convolutional blocks. Each encoder block consists of three residual units, each of which contains convolutions with dilation rates of 1, 3 and 9, and the three residual units are followed by a downsampling layer in the form of strided convolution. Finally, the embedding dimension is adjusted to 512 by using a 1D convolutional layer with a length of 3 and a stride of 1.
[0012] Furthermore, the dual-stream residual vector quantizer includes two identical residual vector quantizer branches and a residual fusion unit. First, the potential features generated by the encoder are simultaneously sent to two identical residual vector quantizers for quantization, and then the two quantization results q1 and q2 are sent to the residual fusion unit for feature fusion to obtain a unified quantization result q.
[0013]
[0014] Among them, C represents connecting two tensors along the specified axis to generate a new tensor, sigmoid represents the activation function, e represents the natural logarithm, and conv i Represents a convolution operation.
[0015] Furthermore, the speech decoder network is an asymmetric decoder encoder-decoder network structure with skip connections and residual units, hereinafter referred to as the first group of decoder modules, the second group of encoder modules and the second group of decoder modules. In addition, the decoder network also includes a temporal feature linear modulation multi-head attention mechanism module, a residual autocorrelation weight unit, and a dual-stream channel-spatial attention fusion unit. The first group of decoder modules mirrors the speech encoder network structure and consists of a transposed convolution for upsampling and three residual units. The second group of encoder blocks in this architecture have the same structure as the speech encoder, but the downsampling multiples are 2, 2, 8, and 8 respectively. The second group of decoders performs upsampling in the opposite order. The second group of decoder blocks are mirrored with the second group of encoder blocks, and also consist of a transposed convolution for upsampling and three residual units. A skip connection is added between each encoder block and its mirrored decoder block.
[0016] Furthermore, the temporal feature linear modulation multi-head attention mechanism module includes a temporal feature linear modulation module, a multi-head attention mechanism, and a series of convolutional module stacks, wherein the embedding unit and the position encoding unit are deleted in the multi-head attention mechanism. The temporal feature linear modulation module is used to capture the long-range input dependency in the sequential input, so that the model can dynamically adjust the input features, emphasize or weaken the information of different channels, and help adapt to the specific characteristics of the input data. The multi-head attention mechanism allows different attention heads to focus on different sequence areas, supporting the network to selectively retain important information based on the input speech features while avoiding unnecessary information transfer. The multi-head attention module can be expressed as
[0017]
[0018] Where Q represents the query matrix containing the representations of the time steps in the sequence, K is the key matrix containing the representations of all time steps in the sequence, and V is the value matrix containing the representations of all time steps in the sequence. In addition, d k represents the query and key dimensions, while the factors As a scaling factor in the dot product attention. i represents the i-th element in the input vector, e represents the natural logarithm, represents the sum of all input elements after exponentiation. In addition, scaled dot product attention can be added to multi-head attention
[0019] MultiHead(Q,K,V)=[head1,head2,……,head k ]W O (13)
[0020] Each independent head is
[0021]
[0022] Furthermore, the residual autocorrelation weight unit includes a one-dimensional convolution layer, a global average pooling layer and a sigmoid function. The residual autocorrelation weight unit first performs an input operation on the feature information X=[x1,x2,...,x C ]Convolution operation is performed to generate new feature information
[0023]
[0024] Initialize weights Z = [z1,z2,...,z C ], by using global average pooling H AGV from Calculated. th The initial weights of the input feature information are as follows:
[0025]
[0026] Then use the sigmoid activation function to modulate the initial weight Z to get the final weight parameter W.
[0027] W = sigmoid(Z) (17)
[0028] Then apply the final weight parameter W to the new feature information The final fused feature information Y is obtained.
[0029]
[0030] Furthermore, the dual-stream channel spatial attention fusion unit includes a channel attention mechanism, a spatial attention mechanism and a residual module. By cascading the two attention mechanisms, the influence of redundant information can be reduced, and more attention can be focused on high-frequency information that is more critical to the task. The use of residual connections can alleviate the gradient vanishing problem while retaining important input features to achieve feature reuse.
[0031] Due to the adoption of the above technical solution, the bone conduction voice signal transmission method based on deep learning architecture disclosed in the present invention has the following advantages:
[0032] Using a deep learning model, a neural speech codec architecture suitable for bone conduction speech is proposed, which can achieve speech enhancement while encoding speech and reduce the complexity of use.
[0033] The quantization part adopts a dual-stream residual vector quantizer, which can perform feature fusion on the quantized results. It can use the skip connection advantage of the residual connection to directly transmit the input to the deep layer of the network, improve the efficiency of information transmission in the network, thereby reducing information loss and improving the decoded speech quality.
[0034] The multi-head attention mechanism module with linear modulation of temporal features used in the architecture can effectively capture long-range input dependencies in sequential inputs, allowing the model to dynamically adjust input features, allowing different attention heads to focus on different sequence areas, enhancing or weakening information in different channels, and helping to adapt to the specific characteristics of the input data. It selectively retains important information based on the input speech characteristics, while avoiding unnecessary information transfer, and better reconstructing high-frequency components for the decoded bone conduction speech.
[0035] The architecture uses residual autocorrelation weight units to capture different patterns in the data through convolution operations, and then aggregates the information of the entire sequence into a single value through global average pooling. This makes the module focus more on global information rather than just local features.
[0036] The architecture adopts a dual-stream channel-spatial attention fusion unit. By cascading the spatial attention mechanism and the channel attention mechanism, the impact of redundant information can be reduced, and more attention can be focused on high-frequency information that is more critical to the task. The residual connection method can alleviate the gradient vanishing problem while retaining the important features of the input to achieve feature reuse. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 This is a flow chart of a bone conduction voice signal transmission method based on a deep learning architecture according to an embodiment of the present invention;
[0039] Figure 2 Schematic diagram of the architecture of a bone conduction speech codec network in an embodiment of the present invention;
[0040] Figure 3 Schematic diagram of the architecture of a bone conduction speech encoder in an embodiment of the present invention;
[0041] Figure 4 Schematic diagram of the architecture of a residual fusion unit in an embodiment of the present invention;
[0042] Figure 5 Schematic diagram of the architecture of a bone conduction speech decoder according to an embodiment of the present invention;
[0043] Figure 6 This is a schematic diagram of the architecture of a multi-head attention mechanism module with linear modulation of temporal features in an embodiment of the present invention;
[0044] Figure 7 Schematic diagram of the architecture of the residual autocorrelation weight unit in an embodiment of the present invention
[0045] Figure 8 Schematic diagram of the architecture of a dual-stream channel-spatial attention fusion unit in an embodiment of the present invention;
[0046] Fig. 9 Schematic diagram of the architecture of a channel attention fusion unit in an embodiment of the present invention;
[0047] Fig.10 Schematic diagram of the architecture of the spatial attention fusion unit in an embodiment of the present invention;
[0048] Fig.11 is an objective evaluation index of the PESQ of the air-conducted speech signal after decoding under low bit rate conditions in an embodiment of the present invention;
[0049] Fig.12 is an objective evaluation index of the PESQ of the air-conducted speech signal after decoding under the medium bit rate condition in the embodiment of the present invention;
[0050] Fig.13 is an objective evaluation index of the PESQ of the air-conducted speech signal after decoding under high bit rate conditions in an embodiment of the present invention;
[0051] Fig.14 It is an objective evaluation index of the STOI of the air-conducted speech signal after decoding under low bit rate conditions in an embodiment of the present invention;
[0052] Fig.15 is an objective evaluation index of the STOI of the air-conducted speech signal after decoding under the medium bit rate condition in the embodiment of the present invention;
[0053] Fig.16 It is an objective evaluation index of the STOI of the air-conducted speech signal after decoding under high bit rate conditions in the embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention:
[0055] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0057] like Figure 1 A bone conduction voice signal transmission method based on a deep learning architecture is shown.
[0058] S1: Collect the bone conduction voice signal to be sent and the air conduction voice signal corresponding to the bone conduction voice, and establish a training set and a test set based on the bone conduction voice signal and the air conduction voice signal.
[0059] In the specific implementation, the training set and test set were obtained from the ESMB dataset. The dataset includes 128 hours of speech narrated by 131 male and 156 female speakers. Each speaker read about 20 minutes of Chinese speech. The speech sampling frequency is 16kHz stereo. The left channel is air conduction speech signal, and the right channel is bone conduction speech signal.
[0060] S2: Construct a bone conduction speech codec network based on a deep learning architecture, wherein the codec network includes a speech encoder, a dual-stream residual vector quantizer and a speech decoder, and the speech decoder includes a temporal feature linear modulation multi-head attention mechanism module, a residual autocorrelation weight unit, and a dual-stream channel-spatial attention fusion unit. Figure 2 The overall structure of the bone conduction speech codec network based on deep learning architecture is shown.
[0061] The speech encoder network is Figure 3As shown in the figure, the speech encoder network has four downsampling layers, whose downsampling multiples are 2, 4, 5 and 6 respectively, and the downsampling layer consists of two 1D convolutional layers and four convolutional blocks. Each encoder block consists of three residual units, each of which contains convolutions with expansion rates of 1, 3 and 9, and the three residual units are followed by a downsampling layer in the form of strided convolution. Finally, the embedding dimension is adjusted to 512 by using a 1D convolutional layer with a length of 3 and a stride of 1. In the specific implementation, first, the bone conduction speech signal is sent to the speech encoder for downsampling operation to obtain the potential features to be vectorized.
[0062] The quantizer part consists of two identical residual vector quantizer branches and a residual fusion unit. Figure 4 In the specific implementation, the potential features generated by the speech encoder are first sent to two identical residual vector quantizers for quantization, and then the two quantization results q1 and q2 are sent to the residual fusion unit for feature fusion. The input is directly transmitted to the deep layer of the network by taking advantage of the skip connection of the residual connection, which improves the efficiency of information transmission in the network, thereby reducing information loss and obtaining a unified quantization result q. The specific operation is as follows:
[0063]
[0064] Among them, C represents connecting two tensors along the specified axis to generate a new tensor, sigmoid represents the activation function, e represents the natural logarithm, and conv i Represents a convolution operation.
[0065] The speech decoder architecture is as follows Figure 5 As shown in the figure, it is an asymmetric decoder-encoder-decoder network structure with skip connections and residual units, hereinafter referred to as the first group of decoder modules, the second group of encoder modules and the second group of decoder modules. In addition, the decoder network also includes a time feature linear modulation multi-head attention mechanism module, a residual autocorrelation weight unit, and a dual-stream channel-spatial attention fusion unit. The first group of decoder modules mirrors the speech encoder network structure, consisting of transposed convolution for upsampling and three residual units. The second group of encoder blocks in this architecture have the same structure as the speech encoder, but the downsampling multiples are 2, 2, 8, and 8 respectively. The second group of decoders are mirrored with the second group of encoder blocks, and also consist of transposed convolution for upsampling and three residual units. Skip connections are added between each encoder block and its mirrored decoder block.
[0066] like Figure 6As shown in the figure, the temporal feature linear modulation multi-head attention mechanism module includes a temporal feature linear modulation module, a multi-head attention mechanism, and a series of convolutional modules stacked together, in which the embedding unit and the position encoding unit are deleted in the multi-head attention mechanism. The temporal feature linear modulation module can be understood as a normalized layer network that combines maximum pooling and long short-term memory networks to capture long-range input dependencies in sequential inputs, so that the model can dynamically adjust the input features, emphasize or weaken the information of different channels, and help adapt to the specific characteristics of the input data. Specifically, let is the activation tensor from the 1D convolutional layer, T and C are the time dimension and the number of channels respectively. The temporal feature linear modulation module takes X as input and applies the following transformations. First, X is split into blocks of length B along the time axis and X is reshaped into a block tensor Next, the affine transformation parameters of each block b are calculated using the long short-term memory network
[0067]
[0068] from Start, where h b represents the hidden state, is by following X blk The tensor obtained by performing maximum pooling on the second dimension of refers to X along the second dimension blk Tensor, where MaxPool represents the maximum pooling operation and LSTM represents the long short-term memory network.
[0069] Each block b is passed through γ b and β b Normalize and get the normalized tensor
[0070] The output of the temporal feature linear modulation module is fed into the multi-head attention mechanism, allowing different attention heads to focus on different sequence regions, supporting the network to selectively retain important information based on the input speech features while avoiding unnecessary information transfer. The multi-head attention module can be expressed as
[0071]
[0072] Where Q represents the query matrix containing the representations of the time steps in the sequence, K is the key matrix containing the representations of all time steps in the sequence, and V is the value matrix containing the representations of all time steps in the sequence. In addition, d k represents the query and key dimensions, while the factors As a scaling factor in the dot product attention. i represents the i-th element in the input vector, e represents the natural logarithm, represents the sum of all input elements after exponentiation. In addition, scaled dot product attention can be added to multi-head attention
[0073] MultiHead(Q,K,V)=[head1,head2,……,head k ]W O (26)
[0074] Each independent head is
[0075]
[0076] Among them, W O A weight matrix representing the linear projection.
[0077] After applying the sigmoid function to the output M of the multi-head attention mechanism, a residual connection is applied between it and the original input X. After some convolutional layers, the final output Y is obtained.
[0078] Y=conv(conv(sigmoid(M)×X)) (28)
[0079] The residual autocorrelation weight unit consists of three parts: a one-dimensional convolution layer, a global average pooling layer, and a sigmoid function, such as Figure 7 As shown. First, the convolution layer will learn the local patterns and features in the input data, capture the different patterns in the data, and then use global average pooling to aggregate the information of the entire sequence into a single value. This makes the module pay more attention to global information rather than just local features. Finally, the sigmoid activation function is used to introduce a nonlinear transformation to adjust it to [0,1], so as to achieve the purpose of dynamically scaling the convolution output. Due to the differences between the feature information, different weights are generated, which enhances the feature information that is effective for reconstructing the speech signal. In the specific implementation, first, the feature information X=[x1,x2,...,x C ]Convolution operation is performed to generate new feature information
[0080]
[0081] Initialize weights Z = [z1,z2,...,z C ], by using global average pooling H AGV from Calculated. th The initial weights of the input feature information are as follows:
[0082]
[0083] Then use the sigmoid activation function to modulate the initial weight Z to get the final weight parameter W.
[0084] W = sigmoid(Z) (31)
[0085] Then apply the final weight parameter W to the new feature information The final fused feature information Y is obtained.
[0086]
[0087] The dual-stream channel spatial attention fusion unit includes a channel attention mechanism, a spatial attention mechanism, and a residual module, such as Figure 8 As shown in the figure. The channel attention mechanism and the spatial attention mechanism can reduce the impact of redundant information and focus more attention on high-frequency information that is more critical to the task. Therefore, the important channel and spatial information are highlighted by cascading two attention modules. On the other hand, the residual module allows the input information to directly enter the final output of the module, realizing feature reuse while retaining important input features. In addition, the residual connection also helps to alleviate the gradient vanishing problem. Therefore, in the other path, the residual module is used to capture more global information. After the construction of the two paths is completed, the features of the two paths are fused. The information fusion process is divided into two stages. In the specific implementation, in the first stage, the features extracted by the channel attention mechanism and the features extracted by the residual module are connected so that the information between the two paths can be shared with each other. In the second stage, the features extracted by the spatial attention mechanism and the features extracted by the other path are fused. Through dual feature fusion, it is ensured that the block can capture important high-frequency components. Finally, the two paths are combined into the residual connection to generate a rich feature representation, and the performance of the model is improved through global information aggregation and adaptive feature adjustment.
[0088] Channel attention module such as Fig. 9 As shown in Figure 2, in the channel attention module, average pooling (AvgPool) and maximum pooling (MaxPool) operations are used on the spatial dimensions of the input feature map A, and two different spatial background descriptions are generated: Ac avg and Ac max .
[0089] Ac avg =AvgPool(A) (33)
[0090] Ac max =MaxPool(A) (34)
[0091] Then, the dual-channel description is passed to two parameter-sharing 7×7 convolutional layers fc1 and fc2. The output results are added and passed through the sigmoid function to finally obtain the weight coefficient Mc(A).
[0092]
[0093] Finally, the weight coefficient Mc(A) is multiplied by the original feature A to obtain the channel attention map Ac.
[0094] Ac=Mc(A)×A (36)
[0095] The spatial attention module is as follows Fig.10 As shown in Figure 2, in the spatial attention module, average pooling and maximum pooling operations are used along the channel axis of the feature map A, and two descriptions are generated: As avg and As max .
[0096] As avg =AvgPool(A) (37)
[0097] As max =MaxPool(A) (38)
[0098] Subsequently, the two maps are concatenated along the channel dimension and passed through a 7×7 convolutional layer and a sigmoid activation function to obtain the weight coefficient Ms(A).
[0099] Ms(A)=sigmoid(f 7×7 (concat[As avg , As max ])) (39)
[0100] Finally, multiply the weight coefficient Ms(A) by A to get the spatial attention map As.
[0101] S3: construct the loss function of the network, train the bone conduction speech codec network based on the deep learning architecture constructed by S2 on the divided training set, and update the parameters of the proposed network through the loss function. The parameter update specifically refers to the use of the back propagation algorithm to transfer the gradient, iterate repeatedly to reduce the error, make the prediction depth close to the air conduction speech signal, and finally obtain the optimal weight model.
[0102] In this embodiment, a training mode of a generative adversarial network is adopted, and two different discriminators are used: a multi-resolution convolutional discriminator, which takes a single waveform as input; and an STFT-based discriminator, which takes the complex-valued STFT of the input waveform as input.
[0103] The multi-resolution convolutional discriminator uses three discriminators with the same structure applied to audio inputs of different resolutions: original, 2x downsampled, and 4x downsampled. Each discriminator consists of an initial normal convolution followed by four grouped convolutions, each with a group size of 4, a downsampling factor of 4, and a channel multiplier of 4, up to 1024 output channels.
[0104] The STFT-based discriminator involves a 2D convolutional layer followed by a series of 2D convolutions, the first of which has a kernel size of 7×7 and 32 channels. This is followed by a series of residual blocks. Each block starts with a 3×3 convolution, followed by a 3×4 or 4×4 convolution with a stride of (1,2) or (2,2), where (s t ,s f ) denotes the downsampling factor along the time and frequency axis. The downsampling is performed alternately between (1,2) and (2,2) strides, with a total of 6 residual blocks. The number of channels increases gradually with the depth of the network. At the output of the final residual block, the activation shape is T / (H·2 3 )×F / 2 6 , where T is the number of samples in the time domain and F = W / 2 is the number of frequency bins. The last layer uses a fully connected layer (implemented as 1×F / 2 6 Convolution) to aggregate the frequency bins to obtain a one-dimensional signal in the time domain.
[0105] Let G(x) represent the decoded speech signal, and the adversarial loss function of the discriminator is
[0106]
[0107] The loss function of the generator is
[0108]
[0109] Weight value λ adv ,λ feat ,λ rec Set them to 1, 100 and 1 respectively.
[0110]
[0111] Where, let k∈{0,...,k} index the discriminators at different resolutions, where k=0 corresponds to the STFT-based discriminator and k∈{1,...,k} represents a multi-resolution convolutional discriminator (in this embodiment, k=3), T k represents the output of the kth discriminator along the time dimension.
[0112]
[0113] Where L is the number of inner layers, is the output of the lth layer of the discriminator k at time t, and T k,l Indicates the time dimension of this layer.
[0114]
[0115] in, It represents the Mel spectrum graph with s as the window length, s / 4 as the jump length, and 64 Mel spectrum filter coefficients on the tth frame.
[0116] S4: In the deployment phase, the optimal weight model obtained in step S3 is loaded, and the bone conduction speech codec network based on the deep learning architecture constructed in step S2 is used.
[0117] In the specific implementation process, the speech encoder and the speech decoder need to be used separately, and the bone conduction speech signal in the ESMB test set is input into the bone conduction speech encoder loaded with the optimal weight to obtain the binary code stream to be sent;
[0118] S5: Transmitting the binary code stream from the sending end to the receiving end through the data communication module;
[0119] S6: using a speech decoder to decode the binary code stream to synthesize air-conducted speech;
[0120] S7: The restored continuous voice signal is played through the speaker through the voice playing module.
[0121] To facilitate the specific implementation of the present invention, the hardware platform used in the present invention is NVIDIA GeForceRTX4090 GPU, and the software platform is PyTorch deep learning framework. During the training process, the initial learning rate is 3e -6 , AdamW is used to optimize the network parameters, where β1 = 0.5, β2 = 0.9, ε = 10 -6 .
[0122] In order to verify the effectiveness of the present invention, a large number of bone conduction voices were tested under three bit rate conditions (low bit rate 3kbps, medium bit rate 6kbps, high bit rate 12kbps) using objective evaluation indicators. In addition, a general bone conduction voice coding method was selected, that is, the bone conduction voice was first enhanced and then encoded and decoded. The more popular traditional voice codec and neural voice codec on the market were selected for comparison. Among them, BCM Neural Codec is the method invented in this paper, Figures 11 to 16The objective test results in show that the proposed method achieves good performance in the bone conduction speech encoding and decoding process at different rates. In addition, the method invented in this paper also avoids the problem that traditional speech codecs cannot perform speech encoding and decoding at lower bit rates.
[0123] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A bone conduction voice signal transmission method based on deep learning architecture, characterized in that include: Collecting the bone conduction voice signal to be sent and the air conduction voice signal corresponding to the bone conduction voice, and establishing a training set and a test set based on the bone conduction voice signal and the air conduction voice signal; Constructing a bone conduction speech codec network based on a deep learning architecture, wherein the bone conduction speech codec network includes a speech encoder, a dual-stream residual vector quantizer, and a speech decoder, wherein the speech decoder includes a temporal feature linear modulation multi-head attention mechanism module, a residual autocorrelation weight unit, and a dual-stream channel spatial attention fusion unit; The bone conduction speech codec network is trained on the divided training set and the network parameters are updated. The gradient value of the network is transferred by the back propagation algorithm. The network parameters are repeatedly trained and updated to control the generated speech signal to approach the air conduction speech signal so as to obtain the optimal weight, thus completing the training process of the bone conduction speech codec. Entering the deployment phase, the speech encoder and speech decoder of the bone conduction speech codec network are controlled separately, and the bone conduction speech signal in the test set is input into the bone conduction speech encoder loaded with the optimal weight to obtain the binary code stream to be sent; The binary code stream is transmitted from the transmitting end to the receiving end, and the binary code stream is decoded by a speech decoder to synthesize air-conducted speech; The recovered continuous speech signal is played through the loudspeaker.
2. The bone conduction voice signal transmission method based on deep learning architecture according to claim 1, characterized in that: The speech encoder includes four downsampling layers, where the downsampling multiples are 2, 4, 5 and 6 respectively, and the downsampling layer includes two 1D convolution layers and four convolution blocks. Each speech encoder includes three residual units, and each residual unit includes convolutions with expansion rates of 1, 3 and 9, where the three residual units are followed by a downsampling layer in the form of strided convolution. By using a 1D convolution layer with a length of 3 and a stride of 1, the embedded dimension is adjusted to 512.
3. The bone conduction voice signal transmission method based on deep learning architecture according to claim 1, characterized in that: The dual-stream residual vector quantizer includes two identical residual vector quantizer branches and a residual fusion unit. The potential features generated by the encoder are simultaneously sent to the two identical residual vector quantizers for quantization processing to obtain quantization q1 and quantization q2. The two quantizations q1 and q2 are then sent to the residual fusion unit for feature fusion to obtain a unified quantization result q: Among them, C represents connecting two tensors along the specified axis and generating a new tensor, sigmoid represents the activation function, e represents the natural logarithm, and conv i Represents a convolution operation.
4. The bone conduction voice signal transmission method based on deep learning architecture according to claim 1, characterized in that: The speech decoder also includes a first group of decoder modules, a second group of encoder modules and a second group of decoder modules. The first group of decoder modules is mirrored with the speech encoder. The second group of encoder modules has the same structure as the speech encoder. The downsampling multiples are 2, 2, 8, and 8 respectively, and upsampling is performed in the opposite order. The second group of decoder blocks is mirrored with the second group of encoder modules, and each encoder block and its mirror decoder block are set in a jump connection manner.
5. The bone conduction voice signal transmission method based on deep learning architecture according to claim 1, characterized in that: The temporal feature linear modulation multi-head attention mechanism module includes a temporal feature linear modulation module, a multi-head attention mechanism and a series of convolution modules in a stacked arrangement. In the multi-head attention mechanism, the embedding unit and the position encoding unit are deleted, wherein the temporal feature linear modulation module is used to capture the long-range input dependency in the sequential input, and the module is controlled to dynamically adjust the input features, and the module is controlled to adapt to the specific features of the input data by emphasizing or weakening the information of different channels. The multi-head attention mechanism controls different attention heads to focus on different sequence areas, and controls the module to selectively retain important information and ignore non-essential information.
6. The bone conduction voice signal transmission method based on deep learning architecture according to claim 1, characterized in that: The residual autocorrelation weight unit includes a one-dimensional convolution layer, a global average pooling layer and a sigmoid function. The residual autocorrelation weight unit inputs feature information X=[x1, x2, ..., x C ]Convolution operation is performed to generate new feature information Initialize weights Z = [z1,z2,...,z C ], using global average pooling H AGV from Calculated, the c th The initial weights of the input feature information are as follows: Use the sigmoid activation function to modulate the initial weight Z to obtain the final weight parameter W. W = sigmoid(Z) Different weights are generated according to the differences between feature information, and the final weight parameter W is applied to the new feature information. Get the final fused feature information Y 7. The bone conduction voice signal transmission method based on deep learning architecture according to claim 1, characterized in that: The dual-stream channel spatial attention fusion unit includes a channel attention mechanism, a spatial attention mechanism and a residual module. It reduces the impact of redundant information by cascading the channel attention mechanism and the spatial attention mechanism, and focuses more attention on high-frequency information that is more critical to the task. It uses residual connections to alleviate the gradient vanishing phenomenon while retaining important feature information.
Citation Information
Cited By
Unbalanced electrocardiogram data determination method and system based on adaptive generative adversarial network
CN119691691A
Speech enhancement method based on air bone conduction dual-mode deep learning
CN119724208A
Expandable bone conduction voice signal transmission method based on diffusion probability model
CN120164485A
