Voice Fraud Detection Method Based on Bidirectional Attention Residual Network

By using a bidirectional attention residual network in voice fraud detection, combined with constant Q transformation and deep neural network, to extract voice features, the problem of low recognition accuracy of a single deep neural network is solved, and the performance of voice fraud detection is significantly improved.

CN115910073BActive Publication Date: 2024-09-20HARBIN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211186472.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2024-09-20
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

In existing technology, in voice fraud detection, a single deep neural network is difficult to effectively distinguish between real speech and fraudulent speech, resulting in low recognition accuracy.

Method used

A method based on the bidirectional attention residual network is used to extract speech features through constant Q transformation, and combined with the residual network, bidirectional GRU and self-attention mechanism, a more discriminative feature representation is extracted for speech fraud detection.

Benefits of technology

It significantly improves the recognition performance of the voice fraud detection system, reduces the tandem-minimum cost detection function (t-DCF) and equal error rate (EER), and improves the ability to accurately classify real speech and fraudulent speech.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115910073B
    Figure CN115910073B
Patent Text Reader

Abstract

The present invention proposes a voice fraud detection method based on a bidirectional attention residual network, which can effectively improve the recognition performance of the fraud voice detection system and prevent the fraud voice from passing the automatic speaker verification system (ASV). During the training process, the present invention first pre-processes the voice and extracts the constant Q transform (CQT) feature matrix, which is used as the input of the residual network (ResNet), and uses ResNet to extract shallow features. Then, this feature is input into the bidirectional attention network to distinguish the importance of different dimensions in the feature, thereby obtaining a more discriminative feature representation. In the test phase, the trained network model is used as a classifier of real voice and fraud voice, and the voice is scored, and the real voice and fraud voice are classified according to the scoring results. Experimental results show that the method of the present invention can significantly improve the performance of the fraud detection system and protect the ASV system from illegal users. The present invention can be applied in the fields of speech processing and biometrics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of speech processing and biometric recognition technology, and specifically relates to a speech fraud detection method based on a bidirectional attention residual network. Background Art

[0002] Speech processing technology makes voices "readable" and enables computers to "understand" human language and respond. It is one of the key technologies for artificial intelligence to achieve human-computer interaction. Among them, voice fraud detection has gradually become an important scientific issue in the field of speech recognition and has broad application prospects. Voice fraud refers to the "modification and impersonation" of an illegal voice that has not been authenticated by the automatic speaker verification (ASV) system through recording, speech synthesis, speech conversion, etc., in order to pass the detection of the ASV system. Among various attack methods, speech synthesis and conversion attacks pose a greater threat to the ASV system. It can use speech processing technology to convert any text or other people's voice into the target speaker's voice. And due to the emergence of deep learning, speech synthesis technology has been brought to a new level, making artificially synthesized speech almost as natural as real human speech.

[0003] Different from the acoustic features used in conventional speaker verification and speech processing, when detecting fraudulent speech, special acoustic features are usually required to better distinguish real speech from fraudulent speech. In order to better identify the "fraudulent features" in forged speech, it is necessary to select a suitable front-end feature extraction method. Among them, the constant Q transform (CQT) is an important time-frequency analysis method, which can represent the relationship between time and frequency on a logarithmic scale and has a higher resolution in the high-frequency region, so that it can better distinguish fraudulent speech from real speech.

[0004] In recent years, with the rapid development of deep learning, fields such as image processing and speech recognition have flourished under the framework of deep neural networks. Because it can distinguish complex nonlinear features, it greatly improves the classification accuracy of complex samples, and has also achieved good results in the field of voice fraud detection. Common deep neural networks include convolutional neural networks, recurrent neural networks, generative adversarial networks, etc. However, when using a single deep neural network to extract speech features for recognition, it is impossible to have a high accuracy. In response to this problem, the present invention starts from the CQT front-end features and proposes a bidirectional attention residual network in the back-end model. This network first uses a residual network (ResNet) to extract shallow features, and then inputs this feature into a bidirectional attention network to distinguish the importance of different dimensions in the features, thereby obtaining a more discriminative feature representation. This network can effectively improve the recognition performance of the fraudulent voice detection system, and has important research significance and application value. Summary of the invention

[0005] The purpose of the present invention is to improve the accuracy of identifying fraudulent speech and real speech, thereby proposing a voice fraud detection method based on a bidirectional attention residual network.

[0006] The technical solution adopted by the present invention to solve the above technical problems is: a voice fraud detection method based on a bidirectional attention residual network, the method comprising the following steps:

[0007] Step 1: Preprocess the speech data and extract the CQT feature matrix;

[0008] Step 2: In the network model training stage, the CQT feature matrix is ​​used as the input of the bidirectional attention residual network, and the cross entropy loss function is used for training to update the network parameters;

[0009] Step 3: In the testing phase, the trained network model is used as a classifier for real speech and fraudulent speech to score the speech;

[0010] Step 4: Classify the real voice and the fraudulent voice according to the voice scoring results.

[0011] Furthermore, the specific process of step 1 is as follows:

[0012] Step 1-1: Preprocess the speech:

[0013] The input speech signal is sampled and quantized, and the length of the quantized speech is trimmed and padded;

[0014] Step 1-2: Extract CQT features from the preprocessed speech.

[0015] Furthermore, the specific process of step 2 is as follows:

[0016] Step 2-1. Use the CQT feature matrix as the input of the deep neural network. First, input the CQT matrix into the ResNet18 network to extract the shallow feature representation. The ResNet18 network consists of 1 convolutional layer, 8 residual blocks, and 1 fully connected layer. Each residual block consists of two convolutional layers. The pooling layer uses maximum pooling. After convolution, the data will be normalized, and the activation function uses the ReLU function. After the feature representation of multiple residual blocks, the shallow feature representation is passed through the average pooling layer to obtain the middle-level feature representation. Finally, the middle-level feature representation is reduced in dimension through the fully connected layer to obtain the embedded features of the speech.

[0017] Step 2-2: Convert the embedded features of the speech into a one-dimensional sequence and input them into the forward gated recurrent unit (GRU) and the reverse GRU network to extract the time series features;

[0018] Step 2-3: The time series features obtained by the forward GRU network and the reverse GRU network are summarized and learned with different weights through the self-attention network. The query key, key key, and value key of the self-attention mechanism are composed of the data of the time series features after random inactivation;

[0019] By passing the time series through the self-attention layer, the time series features are given different weights for inductive learning, which can obtain more discriminative feature representations;

[0020] Step 2-4: Concatenate the outputs of the forward and reverse self-attention layers and pass them through a fully connected layer.

[0021] Furthermore, the specific process of step 3 is as follows:

[0022] During the testing phase, the last fully connected layer in the network structure is used to classify the speech and obtain two scores.

[0023] Furthermore, the specific process of step 4 is as follows:

[0024] After passing through the network classifier, the two scores are subtracted. If the subtraction result is greater than zero, it is judged as real speech, and if it is less than zero, it is judged as fraudulent speech.

[0025] Beneficial Effects

[0026] The beneficial effect of the present invention is that the present invention proposes a voice fraud detection method based on a bidirectional attention residual network, which can effectively utilize the characteristics of the residual network, bidirectional GRU and self-attention mechanism to obtain more discriminative features and improve the system recognition performance. The comparative experiment was verified on the dataset ASVSpoof2019. Compared with the classical method, the method of the present invention significantly improved the performance of the fraud detection system. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described below with reference to the accompanying drawings, in which:

[0028] Figure 1 This is a flow chart of the voice fraud detection method based on the bidirectional attention residual network;

[0029] Figure 2 A network structure diagram of the method of the present invention;

[0030] Figure 3 This is a curve diagram of the accuracy change of the method of the present invention and ResNet18 at different training times;

[0031] Figure 4 The figure is a loss change curve diagram of the method of the present invention and ResNet18 at different training times. DETAILED DESCRIPTION

[0032] The technical solution of the present invention will be described in detail below through examples and in combination with the accompanying drawings. The described examples are only part of the examples of the present invention.

[0033] Examples:

[0034] The technical solution adopted by the present invention is a voice fraud detection method based on a bidirectional attention residual network. The method comprises the following steps:

[0035] Step 1: Preprocess the speech data and extract the CQT feature matrix;

[0036] Step 2: In the network model training stage, the CQT feature matrix is ​​used as the input of the bidirectional attention residual network, and the cross entropy loss function is used for training to update the network parameters;

[0037] Step 3: In the testing phase, the trained network model is used as a classifier for real speech and fraudulent speech to score the speech;

[0038] Step 4: Classify the real voice and the fraudulent voice according to the voice scoring results.

[0039] In this example, the specific operation process of step 1 is:

[0040] Step 1-1: Preprocess the speech:

[0041] The input speech signal is sampled and quantized, and the length of the quantized speech is trimmed and padded;

[0042] Step 1-2: Extract CQT features from the preprocessed speech.

[0043] In this example, the specific operation process of step 2 is:

[0044] Step 2-1: Use the CQT feature matrix as the input of the deep neural network. First, input the CQT matrix into the ResNet18 network to extract the shallow feature representation. The ResNet18 network consists of 1 convolutional layer, 8 residual blocks, and 1 fully connected layer. Among them, the residual block can be expressed as: Among them, x l is the residual block input, x l+1 is the output, h(·) is the mapping function, F(·) is the residual function, W lis a weighted operation, and f(·) is an activation function. Each residual block consists of two convolutional layers. The pooling layer uses maximum pooling. After convolution, the data is normalized and the activation function uses the ReLU function. After the feature representation of multiple residual blocks, the shallow feature representation is passed through the average pooling layer to obtain the middle feature representation. Finally, the middle feature representation is reduced in dimension through the fully connected layer to obtain the embedded features of the speech. The number of nodes in the fully connected layer is set to 1024.

[0045] Step 2-2: Convert the embedded features of the speech into a one-dimensional sequence and input them into the forward gated recurrent unit (GRU) and the reverse GRU network to extract the temporal features. The hidden layer dimensions of the GRU in both directions are 512, the number of network layers is 2, and the input data dimension is 512;

[0046] Step 2-3: The time series features obtained by the forward GRU network and the reverse GRU network are summarized and learned with different weights through the self-attention network. The query key, key key, and value key of the self-attention mechanism are composed of the data of the time series features after random inactivation, and the inactivation parameter is set to 0.75. The specific process of the self-attention layer can be expressed as the formula:

[0047]

[0048] Among them, Q, K, and V are the matrices corresponding to the Query key, Key key, and Value key respectively. k Set to the last and first dimension of the Query key;

[0049] Passing the sequence through the self-attention layer can assign different weights to the temporal features through inductive learning, thus obtaining a more discriminative feature representation;

[0050] Step 2-4: Concatenate the outputs of the forward and reverse self-attention layers and pass them through a fully connected layer. The number of nodes in the fully connected layer is set to 2. The concatenation process can be expressed as:

[0051] x=(x 1 ;x 2 ) (3)

[0052] Among them, x is the concatenated feature, x 1 is the output of the forward self-attention network, x 2 is the output of the reverse self-attention network;

[0053] The objective function of this network is cross entropy loss. The network parameters are updated by maximizing the objective function. The optimizer uses the stochastic gradient descent (SGD) optimizer. The initial learning rate is set to 0.05, the final learning rate is set to 0.0001, and the number of training times is set to 100.

[0054] In this example, the specific operation process of step 3 is:

[0055] In the test phase, the trained network model is used as a classifier for real speech and fraudulent speech, and two scores s are obtained. 1 、s 2 .

[0056] In this example, the specific operation process of step 4 is:

[0057] After passing through the network classifier, the two scores are subtracted. If the subtraction result is greater than zero, it is judged as real speech, and if it is less than or equal to zero, it is judged as fraudulent speech. The judgment rules are as follows:

[0058]

[0059] Experimental results:

[0060] This paper uses the logical attack (LA) dataset of the 2019 Automatic Speaker Recognition Fraud Attack and Defense Countermeasures Challenge (ASVspoof2019) database for performance verification, and its task is to identify the synthesized converted speech and the real speech. The performance evaluation indicators use the tandem-minimum cost detection function (t-DCF) and the equal error rate (EER), both of which are smaller values ​​​​indicate better performance. The performance comparison of different methods is shown in Table 1.

[0061] Table 1 Performance comparison of different methods

[0062]

[0063] The experimental results show that compared with the classic method, the proposed method significantly reduces the t-DCF and EER of voice fraud detection. The t-DCF and EER of the proposed method are 0.1652 and 6.12% respectively. Compared with ResNet18, as the number of training times increases, the changes in the accuracy and loss of the development set are as follows: Figure 3 , Figure 4 As shown, the accuracy of the present invention increases faster and the loss decreases faster. It can be seen from the experimental results that the bidirectional attention residual network proposed in the present invention can effectively improve the performance of the fraud detection system.

[0064] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes made based on the principles and ideas disclosed by the present invention still fall within the protection scope of the present invention.

Claims

1. A voice fraud detection method based on a bidirectional attention residual network, characterized in that: The method comprises the following steps: Step 1: Preprocess the speech data and extract the CQT feature matrix; Step 2: In the network model training stage, the CQT feature matrix is ​​used as the input of the bidirectional attention residual network, and the cross entropy loss function is used for training to update the network parameters. The specific process of step 2 is: Step 2-1: Use the CQT feature matrix as the input of the deep neural network. First, input the CQT matrix into the ResNet18 network to extract the shallow feature representation; the ResNet18 network consists of 1 convolutional layer, 8 residual blocks, and 1 fully connected layer; the residual block is represented as: Among them, x l is the residual block input, x l+1 is the output, h(·) is the mapping function, F(·) is the residual function, W l is a weighted operation, f(·) is an activation function; each residual block consists of two convolutional layers, the pooling layer uses the maximum pooling, the data is normalized after convolution, and the activation function uses the ReLU function; after the feature representation of multiple residual blocks, the shallow feature representation is passed through the average pooling layer to obtain the middle feature representation, and finally the middle feature representation is reduced in dimension through the fully connected layer to obtain the embedded features of the speech; Step 2-2: Convert the embedded features of the speech into a one-dimensional time series sequence, and input them into the forward gated recurrent unit (GRU) and the reverse GRU network to extract the time series features; Step 2-3: The time series features obtained by the forward GRU network and the reverse GRU network are summarized and learned with different weights through the self-attention network; the query key, key key, and value key of the self-attention mechanism are composed of the data of the time series features after random inactivation; the specific process of the self-attention layer is expressed as the formula: Among them, Q, K, and V are the matrices corresponding to the Query key, Key key, and Value key respectively. k Set to the last dimension of the Query key; Passing the sequence through the self-attention layer can assign different weights to the temporal features through inductive learning, thus obtaining a more discriminative feature representation; Step 2-4: Concatenate the outputs of the forward and reverse self-attention layers and pass them through a fully connected layer. The concatenation process is expressed as: x=(x1;x2) (3) Among them, x is the concatenated feature, x1 is the output of the forward self-attention network, and x2 is the output of the reverse self-attention network; Step 3: In the testing phase, the trained network model is used as a classifier for real speech and fraudulent speech to score the speech; Step 4: Classify the real voice and the fraudulent voice according to the voice scoring results.

2. A method for voice fraud detection based on a bidirectional attention residual network according to claim 1, characterized in that: The specific process of step 1 is as follows: Step 1-1: Preprocess the speech: The input speech signal is sampled and quantized, and the length of the quantized speech is trimmed and padded; Step 1-2: Extract CQT features from the preprocessed speech.

3. According to claim 1, a voice fraud detection method based on a bidirectional attention residual network is characterized in that: The specific process of step 3 is as follows: During the testing phase, the trained network model is used as a classifier for real speech and fraudulent speech to obtain two scores s1 and s2.

4. According to claim 1, a voice fraud detection method based on a bidirectional attention residual network is characterized in that: The specific process of step 4 is as follows: After passing through the network classifier, the two scores are subtracted; if the subtraction result is greater than zero, it is judged as real speech, and if it is less than zero, it is judged as fraudulent speech. The judgment rules are as follows: