Fraudulent voice detection method, device, computer equipment and readable storage medium

By annotating and multi-dimensionally converting speech signals, merging data sets and using multiple models to identify speech signals, the challenge of fraudulent speech recognition in speech services is solved, and recognition accuracy and security are improved.

CN114420133BActive Publication Date: 2024-10-29PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210139457.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2024-10-29
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

Voice services are facing increasingly severe risk control challenges, and it is difficult for existing technologies to effectively identify and prevent professional and intelligent fraudulent voice methods.

Method used

By acquiring speech signals for labeling and multi-dimensional transformation, data sets are merged for iterative training, and multiple models are used to recognize speech signals separately to improve recognition confidence, avoid misjudgment by a single model, and verify encrypted information after recognition.

Benefits of technology

It improves the recognition accuracy and confidence of the speech detection model, effectively prevents and identifies fraudulent speech, and enhances the security of voice services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114420133B_ABST
    Figure CN114420133B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of artificial intelligence technology, and provides a fraudulent speech detection method, device, computer equipment and readable storage medium. The method comprises: obtaining a speech signal, and annotating the speech signal to obtain a speech signal with a real label and a speech data set; performing n-dimensional conversion on the speech signal to obtain a fraudulent signal, annotating it, obtaining a fraudulent signal with an i-th label and an i-th data set, merging the speech data set and the i-th data set to obtain an i-th training set and an n+1-th training set respectively; iteratively training the first training set to the n+1-th training set respectively through an initial model to obtain corresponding first model to n+1-th model for speech detection; after recognizing the current signal through the n+1-th model, sequentially recognizing the current signal through the first model to the n-th model to obtain the real label or the i-th label of the current signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a fraudulent speech detection method, apparatus, computer equipment and readable storage medium. Background Art

[0002] With the vigorous development of information technology, voice recognition technology is used to provide business support services in more and more application scenarios. For example, in consumer business and financial service scenarios, voice services have been widely popularized and developed.

[0003] With the rapid development of voice service business models, fraud methods based on new technologies and new scenarios are gradually upgraded. Voice fraud methods are becoming more professional and intelligent, and voice services are also facing increasingly severe risk control challenges. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a fraudulent voice detection method, apparatus, computer equipment and readable storage medium for improving the risk control problem of voice services.

[0005] To achieve the above objectives and other related objectives, the present invention provides a fraudulent speech detection method, comprising:

[0006] Acquire a speech signal, and annotate the speech signal to obtain a speech signal and a speech data set with a real label;

[0007] The speech signal is converted into an n-dimensional form, and the fraud signal is respectively labeled according to the type of the n-dimensional conversion, to obtain the fraud signal with the i-th label and the i-th data set, the speech data set and the i-th data set are merged to obtain the i-th training set, and the speech data set and each i-th data set are merged to obtain the n+1-th training set, 1≤i≤n;

[0008] Iteratively train the first training set to the n+1th training set respectively through the initial model to obtain the corresponding first model to the n+1th model for speech detection;

[0009] After the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence to obtain the true label or the i-th label of the current signal.

[0010] Optionally, after the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence, and the step of obtaining the true label or the i-th label of the current signal includes:

[0011] Identify the current signal through the n+1th model to determine whether the current signal is a true label;

[0012] If not, the current signal is identified through the first model to the nth model in sequence to obtain the i-th label of the current signal.

[0013] Optionally, the step of sequentially identifying the current signal through the first model to the nth model further includes:

[0014] When the first model to the nth model identify the current signal and all determine that the current signal is a true label, the current signal is a true label.

[0015] Optionally, the n-dimensional conversion includes: speech replay, waveform splicing, speech synthesis or speech conversion. Optionally, the initial model includes a convolutional neural network, which is iteratively trained through a loss function, and the loss function includes: the loss of the signal sample of the i-th category and the weight value, the loss of the weight value of the label of the i-th category and the label of the i-th signal sample, and the loss of the signal sample of the i-th category and the k-th weight value.

[0016] Optionally, the step of acquiring the voice signal further includes:

[0017] Performing time-frequency conversion on the speech signal to obtain a frequency domain signal, and performing frame division and windowing processing on the frequency domain signal to obtain a frequency domain segment;

[0018] Mel-frequency cepstrum coefficients and / or constant Q transform cepstrum coefficients are extracted from the frequency domain segment to obtain voiceprint features.

[0019] Optionally, after the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence, and after the step of obtaining the true label or the i-th label of the current signal, the step further includes:

[0020] When the tag of the current signal is obtained to be the real tag, encrypted information is provided for verification, and the verification process includes random verification code verification or dynamic password verification.

[0021] The present invention provides a fraudulent speech detection device, comprising:

[0022] An acquisition module is used to acquire a speech signal, annotate the speech signal, and acquire a speech signal and a speech data set with a real label;

[0023] A data module, used for performing n-dimensional conversion on the speech signal, and labeling the fraudulent signals respectively according to the type of n-dimensional conversion, obtaining the fraudulent signal with the i-th label and the i-th data set, merging the speech data set and the i-th data set to obtain the i-th training set respectively, and merging the speech data set and each i-th data set to obtain the n+1-th training set, 1≤i≤n;

[0024] A training module, used to iteratively train the first training set to the n+1th training set respectively through the initial model to obtain the corresponding first model to the n+1th model for speech detection;

[0025] An identification module is used to identify the current signal through the first model to the nth model in sequence after identifying the current signal through the n+1th model, so as to obtain the true label or the i-th label of the current signal.

[0026] The present invention provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the fraudulent speech detection method are implemented when the processor executes the computer program.

[0027] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps of the fraudulent speech detection method are implemented.

[0028] As described above, the fraudulent speech detection method, device, computer equipment and readable storage medium of the present invention have the following beneficial effects:

[0029] By labeling the speech signal, a speech signal with a real label is obtained, by performing multi-dimensional transformation on the speech signal, a fraud signal with an i-th label is obtained, and the speech signal with the real label and the fraud signal with the i-th label are merged to obtain the first data set to the n+1th data set;

[0030] The first to n+1th data sets are iteratively trained through the initial model to obtain the first to n+1th models. The first to n+1th models can respectively identify different types of current signals, avoid misjudgment caused by a single model, and improve the recognition confidence of the algorithm model. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 Shown is a schematic diagram of the application environment of the fraudulent speech detection method according to an embodiment of the present invention.

[0032] Figure 2 Shown is a flow chart of a fraudulent speech detection method according to an embodiment of the present invention.

[0033] Figure 3 Shown is a flow chart of a fraudulent speech detection method according to another embodiment of the present invention.

[0034] Figure 4 Shown is a schematic diagram of the structure of the weight layer of an embodiment of the present invention.

[0035] Figure 5 Shown is a structural schematic diagram of a fraudulent speech detection device according to another embodiment of the present invention.

[0036] Figure 6 Shown is a schematic structural diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0038] It should be noted that the diagram provided in the present embodiment only illustrates the basic concept of the present invention in a schematic manner, so the diagram only shows the components related to the present invention rather than drawing according to the number, shape and size of the components during actual implementation. The type, quantity and ratio of each component during actual implementation can be a random change, and the component layout type may also be more complicated. The structure, ratio, size, etc. illustrated in the drawings of the present specification are only used to match the content disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions that the present invention can implement, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effect that the present invention can produce and the purpose that can be achieved. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of narration, and are not used to limit the scope of the present invention. The change or adjustment of its relative relationship should also be regarded as the scope of the present invention without substantially changing the technical content.

[0039] With the development of artificial intelligence (AI) technology, speech recognition technology has also made great progress. Algorithms based on neural network models can process and classify speech features, play a certain role in speech recognition, and can provide voice services in some business scenarios, such as financial services or consumer services. However, with the change of technology, the methods and means of fraudulent speech are becoming more and more diverse, which poses a greater risk control test for voice services. To this end, a data set can be generated by simulating a variety of fraud methods, and then iterative training can be performed based on the data set and algorithm model to obtain a recognition model for fraudulent speech detection, determine the label of the current speech, such as a real label or a fraud label, obtain a data set by simulating fraud methods, and train the model based on the data set to achieve the purpose of improving the confidence of the recognition model in detecting fraudulent speech.

[0040] The fraudulent speech detection method provided by this solution can be applied to Figure 1 In the application environment shown. The terminal 102 communicates with the server 104 through the network. For example, fraudulent voice detection processing can be performed through the terminal 102, and the processing result can be transmitted to the server 104. For another example, fraudulent voice detection processing can be performed through the server 104, and the processing result can be fed back to the terminal 102. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0041] like Figure 2 As shown, the present invention provides a fraudulent voice detection method, comprising:

[0042] S1: Acquire a speech signal, and annotate the speech signal to obtain a speech signal with a real label and a speech data set, wherein the speech data set includes the speech signal with the real label;

[0043] S2: Performing n-dimensional transformation on the speech signal to obtain a fraud signal, and labeling the fraud signal according to the type of n-dimensional transformation, to obtain a fraud signal with an i-th label and an i-th data set, wherein the i-th data set includes the fraud signal with the i-th label, merging the speech data set and the i-th data set to obtain an i-th training set, and merging the speech data set and each i-th data set to obtain an n+1-th training set, 1≤i≤n;

[0044] S3: Iteratively train the first training set to the n+1th training set respectively through the initial model to obtain the corresponding first model to the n+1th model for speech detection;

[0045] S4: After the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence to obtain the true label or the i-th label of the current signal.

[0046] In step S1, it is exemplarily described that a speech signal is collected, a real speech signal is labeled, a real label is identified on the speech signal, and multiple real speech signals are obtained as a speech data set. Each sample in the speech data set includes a real label. A certain number of real speech signals can be collected as a speech data set.

[0047] In step S2, it is exemplified that daily voice fraud methods are simulated, and the voice signals in the voice data set are converted into n dimensions to obtain fraud signals. The type of fraud signals is the same as the fraud voices used to attack voice services in daily life. The purpose of simulating fraud voices is achieved through n-dimensional conversion. The fraud signals are labeled according to the types of n-dimensional conversion to obtain fraud signals with i-th labels, and the corresponding data sets are divided for the fraud signals according to the i-th labels, i.e., the i-th data set is obtained, wherein the samples in the i-th data set respectively include the i-th labels. In order to better simulate fraud voices and determine the types of defrauded voices, the voice data set and the i-th data set can be merged to obtain i-th training sets respectively, and the voice data set and each i-th data set are merged to obtain the n+1th training set, 1≤i≤n, wherein the data features of the i-th label can be reflected in the i-th training set, and the real labels and non-real labels can be better distinguished in the n+1th training set.

[0048] In step S3, it is exemplarily explained that the first training set to the n+1th training set are iteratively trained respectively through the initial model to obtain the corresponding first model to the n+1th model for speech detection, wherein the i-th model in the first model to the n-th model is used to identify the i-th label or the real label, and the n+1-th model is used to identify the real label and the non-real label, and the purpose of identifying different labels is achieved by using different models.

[0049] In step S4, it is exemplified that the current signal can be identified through the n+1th model, and the current signal can be preliminarily classified to obtain a true label with a certain confidence level, thereby reducing the amount of classification data and difficulty of the current signal. Afterwards, the current signal is identified through the first model to the nth model in sequence to obtain the true label or the i-th label of the current signal. The current signal is identified through the first model to the nth model respectively to avoid system misjudgment caused by a single model, and the label of the current signal can be subdivided and identified through the first model to the nth model to improve the recognition accuracy and determine the label type of the current signal.

[0050] In order to avoid misjudgment of a single model, multiple models can be used to identify the current signal separately to improve the recognition confidence of the algorithm model, such as Figure 3 As shown, in some implementations, after the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence, and the step of obtaining the true label or the i-th label of the current signal includes:

[0051] S41: Identify the current signal through the n+1th model to determine whether the current signal is a true label;

[0052] S42: If not, the current signal is identified through the first model to the nth model in sequence to obtain the i-th label of the current signal.

[0053] S43: If yes, then end the recognition task.

[0054] In step S41, it is exemplified that the current signal is recognized by the n+1th model. Since the n+1 model is trained based on fraudulent signals with multiple types of labels and speech signals with real labels, the real label of the current signal will be judged. When it is judged to be a real label, it has a higher confidence level.

[0055] In step S42, it is exemplarily explained that when it is determined to be a non-real label in step S41, the type of the non-real label is not determined, and the current signal can be identified by the first model to the nth model in sequence to obtain the i-th label of the current signal.

[0056] In step S43, it is exemplarily explained that when it is determined to be a true label in step S41, it means that the confidence that the current signal is a true label is very high. In order to reduce unnecessary subsequent processing and calculation amount, the recognition task of the current signal can be ended.

[0057] In order to avoid missing the (n+1)th model, in some embodiments, the step of sequentially identifying the current signal through the first model to the nth model further includes:

[0058] When the first model to the nth model recognize the current signal and all determine that the current signal is a true label, the current signal is a true label. The recognition accuracy of the model is further improved. When the n+1th model misses a judgment, the data set samples that the n+1th model determines as non-true labels can be re-tested, and the current speech with a true label can be determined through the first model to the nth model.

[0059] In order to simulate the fraudulent speech attacking the voice service, the n-dimensional conversion includes at least one of the following: speech replay, waveform splicing, speech synthesis, and speech conversion. When replaying the speech, a recording device can be used to record and replay the speech signal to obtain a fraudulent speech with a recording and playback label. When splicing the waveform, the speech signal can be converted into the frequency domain or the time domain, and the speech signal can be waveform segmented and spliced ​​to obtain a fraudulent speech with a waveform splicing label. When synthesizing the speech, the speech signal can be converted into the frequency domain or the time domain, and the speech signal can be converted according to a certain mapping relationship to obtain a fraudulent speech with a speech synthesis label. Through the n-dimensional conversion, various types of fraudulent speech are obtained, which can more realistically simulate the types of fraudulent speech attacking the voice service, and the fraudulent speech with different label types is used as a data set for model training. Through machine learning, different audio features can be recognized in the first model to the n+1th model, thereby improving the recognition accuracy of the speech recognition model.

[0060] In some embodiments, the initial model includes a convolutional neural network, and iterative training is performed through a loss function, wherein the loss function includes: the loss of the signal sample of the i-th category and the weight value, the loss of the weight value of the label of the i-th category and the label of the i-th signal sample, and the loss of the signal sample of the i-th category and the k-th weight value. For example, the mathematical expression of the loss function is:

[0061]

[0062] Among them, Loss is the loss function, N is the number of signal samples in the training set, θ i is the angle between the signal sample and the weight value of the i-th category, y i is the label of the ith signal sample, m is the cosine spacing, s is the scale variable, e is the natural logarithm, k is the label sequence number of the signal sample, is the angle between the weight value of the label of the i-th category and the label of the i-th signal sample, θ k,iis the angle between the signal sample of the i-th category and the k-th weight value. The use of this loss function can effectively perform back-propagation parameter iteration for audio features, improve the rationality of weight allocation of intermediate layer neuron nodes, and improve the detection accuracy of the recognition model.

[0063] The process of training the model is the process of learning and updating the parameters of the model. This parameter learning process often uses some iterative methods, such as the gradient descent learning algorithm. In order to avoid overfitting, the Dropout or Early stop strategy can also be introduced in the training process of the initial model. For example, in the Dropout strategy, in one cycle, we first randomly select some units in the neural layer and temporarily hide them, and then perform the training and optimization process of the neural network in this cycle. In the next cycle, we will hide other neurons, and so on until the end of training. For example, in general training, due to overfitting, the effect on the training set is often good, while the effect on the test set is very poor. The Early stop strategy can be used to stop the training in advance, and stop the training when the best effect is achieved on the test set, rather than waiting until saturation on the training set.

[0064] In some embodiments, the initial model includes an input layer, an intermediate layer and an output layer. The intermediate layer includes a convolution layer and a weight layer. In order to improve the accuracy of training and avoid overfitting, the input layer of a weight layer 21 can be connected to the output layer 22 of another weight layer, which can more accurately assign weight parameters to the neural network nodes of the weight layer. For the setting method of the weight layer, please refer to Figure 4 By setting the n+1th model to make an overall judgment on whether it is a real label, and further screening is performed from the real voice that is initially judged, the fraudulent voice is determined, and the phenomenon of high recall rate and low accuracy rate that occurs when training a single model for recognition is avoided. By using multiple models for recognition, the recognition rate of fraudulent voice is improved, and the amount of data that the classification model traverses to process voice samples is reduced, thereby improving the recognition efficiency of the detection model.

[0065] In order to obtain a data set that is convenient for model training, in some embodiments, the step of obtaining a speech signal further includes:

[0066] Performing time-frequency conversion on the speech signal to obtain a frequency domain signal, and performing frame division and windowing processing on the frequency domain signal to obtain a frequency domain segment;

[0067] Extract the Mel-Frequency Cepstral Coefficients and / or the Constant Q Transform Cepstral Coefficients from the frequency domain segment to obtain the voiceprint features. For example, by extracting the Mel-Frequency Cepstral Coefficients as the voiceprint features, the Mel-Frequency Cepstral Coefficients (MFCC) acquisition process includes: pre-emphasis, framing, windowing, fast Fourier transform, bandpass filter to obtain the Mel spectrum and obtain the cepstral features as the voiceprint features. The obtained Mel-Frequency Cepstral Coefficients can also be used as the audio features of each data set sample. The voice signal collected by the voice device is generally a time domain signal. The frequency domain signal is obtained through time-frequency conversion. The voiceprint feature is extracted by processing the frequency domain signal frame by frame without voice recognition. The voiceprint feature is used as an audio feature for training and feature recognition, which can effectively detect and identify fraudulent users and fraudulent means, effectively prevent fraud risks, and improve security. In order to improve the recognition rate of signals and features, Mel cepstral frequency coefficients MFCC and constant Q transform cepstral coefficients CQCC (Constant Q Cepstral Coefficients) can also be obtained as voiceprint features. Among them, Mel cepstral frequency coefficients MFCC and constant Q transform cepstral coefficients CQCC have variable time and frequency resolution, which can provide better signal resolution. In order to eliminate the influence of channel interference, Mel cepstral frequency coefficients MFCC and constant Q transform cepstral coefficients CQCC are subjected to cepstral mean and variance normalization (Cepstral Mean and Varience Normalization, CMVN)), and the samples of the real labeled voice signal and the samples of the fraudulent voice can also be adjusted to be distributed in a common range.

[0068] In some application scenarios, the risk control requirement is high. In order to ensure that the voice is a real label and to ensure that the service operation is a customer operation, a higher level of security verification can be performed after the voice service. In some embodiments, after the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence, and after the step of obtaining the real label or the i-th label of the current signal, the following is also included:

[0069] When the label of the current signal is obtained as the real label, the encrypted information is provided for verification, and the verification process includes random verification code verification or dynamic password verification. For example, the current signal is identified by the voice recognition model, and after the current signal is determined to be a real label, the random verification code verification or dynamic password verification is used to let the operator know the process of the voice service, and the random verification code and dynamic password are pushed to the operator to guide the operator to perform the next operation.

[0070] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0071] See also Figure 5 The present invention provides a fraudulent speech detection device, comprising:

[0072] An acquisition module, used to acquire a speech signal, and annotate the speech signal to acquire a speech signal with a real label and a speech data set, wherein the speech data set includes the speech signal with the real label;

[0073] A data module, used for performing n-dimensional conversion on the speech signal, and labeling the fraudulent signals respectively according to the type of n-dimensional conversion, obtaining the fraudulent signal with the i-th label and the i-th data set, wherein the i-th data set includes the fraudulent signal with the i-th label, merging the speech data set and the i-th data set to obtain the i-th training set respectively, and merging the speech data set and each i-th data set to obtain the n+1th training set, 1≤i≤n;

[0074] A training module, used to iteratively train the first training set to the n+1th training set respectively through the initial model to obtain the corresponding first model to the n+1th model for speech detection;

[0075] The recognition module is used to recognize the current signal through the first model to the nth model in turn after recognizing the current signal through the n+1th model, and obtain the real label or the i-th label of the current signal. The current signal can be recognized through the n+1th model, and the current signal can be preliminarily classified to obtain a real label with a certain degree of confidence, thereby reducing the amount of classification data and difficulty of the current signal. After that, the current signal is recognized through the first model to the nth model in turn to obtain the real label or the i-th label of the current signal. The current signal is recognized through the first model to the nth model respectively to avoid system misjudgment caused by a single model, and the label of the current signal can be subdivided and recognized through the first model to the nth model to improve the recognition accuracy and determine the label type of the current signal.

[0076] Daily voice fraud methods can be simulated in the data module, and the voice signals in the voice data set are converted into n dimensions to obtain fraud signals. The type of fraud signals is the same as the fraud voices used to attack voice services in daily life. The purpose of simulating fraud voices is achieved through n-dimensional conversion. The fraud signals are labeled according to the types of n-dimensional conversion to obtain fraud signals with the i-th label, and the corresponding data sets are divided for the fraud signals according to the i-th label, i.e., the i-th data set is obtained, wherein the samples in the i-th data set include the i-th label respectively. In order to better simulate fraud voices and determine the type of defrauded voices, the voice data set and the i-th data set can be merged to obtain the i-th training sets respectively, and the voice data set and each i-th data set are merged to obtain the n+1th training set, 1≤i≤n, wherein the data features of the i-th label can be reflected in the i-th training set, and the real label and the non-real label can be better distinguished in the n+1th training set.

[0077] In the training module, the initial model can be iteratively trained on the first training set to the n+1th training set respectively to obtain the corresponding first model to the n+1th model for speech detection, wherein the i-th model among the first model to the n-th model is used to identify the i-th label or the real label, and the n+1-th model is used to identify the real label and the non-real label, so as to achieve the purpose of identifying different labels through different models.

[0078] In some embodiments, in the recognition module, after the current signal is recognized by the n+1th model, the current signal is recognized by the first model to the nth model in sequence, and the step of obtaining the true label or the i-th label of the current signal includes:

[0079] Identify the current signal through the n+1th model to determine whether the current signal is a true label;

[0080] If not, the current signal is identified through the first model to the nth model in sequence to obtain the i-th label of the current signal.

[0081] In some embodiments, the step of sequentially identifying the current signal through the first model to the nth model further includes:

[0082] When the first model to the nth model identify the current signal and all determine that the current signal is a true label, the current signal is a true label.

[0083] In some embodiments, the n-dimensional conversion includes: speech playback, waveform concatenation, speech synthesis, or speech conversion.

[0084] Optionally, the initial model includes a convolutional neural network, which is iteratively trained through a loss function, wherein the loss function includes: the loss of the signal sample of the i-th category and the weight value, the loss of the weight value of the label of the i-th category and the label of the i-th signal sample, and the loss of the signal sample of the i-th category and the k-th weight value. For example, the mathematical expression of the loss function is:

[0085]

[0086] Among them, Loss is the loss function, N is the number of signal samples in the training set, θ i is the angle between the signal sample and the weight value of the i-th category, y i is the label of the ith signal sample, m is the cosine spacing, s is the scale variable, e is the natural logarithm, k is the label sequence number of the signal sample, is the angle between the weight value of the label of the i-th category and the label of the i-th signal sample, θ k,i is the angle between the signal sample of the i-th category and the k-th weight value.

[0087] In some embodiments, the step of acquiring the voice signal further includes:

[0088] Performing time-frequency conversion on the speech signal to obtain a frequency domain signal, and performing frame division and windowing processing on the frequency domain signal to obtain a frequency domain segment;

[0089] Mel-frequency cepstrum coefficients and / or constant Q transform cepstrum coefficients are extracted from the frequency domain segment to obtain voiceprint features.

[0090] In some embodiments, after the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence, and after the step of obtaining the true label or the i-th label of the current signal, the step further includes:

[0091] When the tag of the current signal is obtained to be the real tag, encrypted information is provided for verification, and the verification process includes random verification code verification or dynamic password verification.

[0092] According to the embodiments of the present disclosure, an electronic device or computer device capable of implementing the above method is also provided. A person skilled in the art will understand that the execution subject of the present invention includes but is not limited to a system, method or program product. Therefore, the execution subject of the present invention can be specifically implemented as the following execution or implementation form, namely: a hardware implementation, a software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, which can be collectively referred to as a "circuit", "module", "system", "device" or "device".

[0093] Refer to the following Figure 6 The electronic device 600 according to this embodiment of the present invention is described. Figure 6 The electronic device 600 shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention. Figure 6As shown, the electronic device 600 is in the form of a general-purpose computer device. The components of the electronic device 600 may include, but are not limited to: the at least one processing unit 610 mentioned above, the at least one storage unit 620 mentioned above, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610). The storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps of various exemplary embodiments of the present invention described in the above "fraudulent voice detection method" section of this specification. The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 621 and / or a cache storage unit 622, and may further include a read-only storage unit (ROM) 623. The storage unit 620 may also include a program / utility 624 having a set (at least one) of program modules 625, such program modules 625 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. The bus 630 can be one or more of several types of bus structures, including a storage unit bus or storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any bus structure in a variety of bus structures. The electronic device 600 can also communicate with one or more external devices 800 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (such as routers, modems, etc.). This communication can be carried out through an input / output (I / O) interface 650, such as communicating with a display unit 640. In addition, the electronic device 600 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 660. As shown in the figure, the network adapter 660 communicates with other modules of the electronic device 600 through the bus 630. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems.

[0094] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computer device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0095] According to an embodiment of the present disclosure, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by a computer, the computer executes the fraudulent voice detection method described above in this specification.

[0096] In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary implementations of the present invention described in the above “Exemplary Methods” section of this specification.

[0097] In the present invention, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. A computer readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable signal medium can also be any readable medium other than the readable storage medium, which can send, propagate or transmit a program for use by an instruction execution system, device or device or used in combination with it. The program code contained in the readable medium can be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The program code for performing the operation of the present invention can be written in any combination of one or more programming languages, and the programming language includes object-oriented programming languages-such as Java, C++, etc., and also includes conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed completely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device, partially on the remote computing device, or completely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0098] In addition, the above-mentioned drawings are only schematic illustrations of the processing included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processing shown in the above-mentioned drawings does not indicate or limit the time sequence of these processing. In addition, it is also easy to understand that these processing can be, for example, performed synchronously or asynchronously in multiple modules. It should be understood that the present invention is not limited to the precise structure described above and shown in the drawings, and various modifications and changes can be performed without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A fraudulent speech detection method, characterized in that: include: Acquire a speech signal, and annotate the speech signal to obtain a speech signal with a real label and a speech data set, wherein the speech data set includes the speech signal with the real label; The step of obtaining a voice signal further includes: performing time-frequency conversion on the voice signal to obtain a frequency domain signal, and performing frame windowing processing on the frequency domain signal to obtain a frequency domain segment; extracting Mel cepstral frequency coefficients and / or constant Q transform cepstral coefficients from the frequency domain segment to obtain a voiceprint feature; The speech signal is transformed into an n-dimensional form to obtain a fraud signal, and the fraud signal is respectively labeled according to the type of the n-dimensional transformation to obtain a fraud signal with an i-th label and an i-th data set, wherein the i-th data set includes the fraud signal with the i-th label, and the speech data set and the i-th data set are merged to obtain an i-th training set respectively, and the speech data set and each i-th data set are merged to obtain an n+1-th training set, 1≤i≤n; Iteratively train the first training set to the n+1th training set respectively through the initial model to obtain the corresponding first model to the n+1th model for speech detection; After the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence to obtain the true label or the i-th label of the current signal.

2. The fraudulent speech detection method according to claim 1, characterized in that: After the current signal is identified by the n+1th model, the step of sequentially identifying the current signal by the first model to the nth model to obtain the true label or the i-th label of the current signal includes: Identify the current signal through the n+1th model to determine whether the current signal is a true label; If not, the current signal is identified through the first model to the nth model in sequence to obtain the i-th label of the current signal.

3. The fraudulent speech detection method according to claim 2, characterized in that: The step of sequentially identifying the current signal through the first model to the nth model further includes: When the first model to the nth model identify the current signal and all determine that the current signal is a true label, the current signal is a true label.

4. The fraudulent speech detection method according to claim 1, characterized in that: N-dimensional conversion includes: speech playback, waveform splicing, speech synthesis or speech conversion.

5. The fraudulent speech detection method according to claim 1, characterized in that: The initial model includes a convolutional neural network, which is iteratively trained through a loss function, wherein the loss function includes: the loss of the signal sample and weight value of the i-th category, the loss of the weight value of the label of the i-th category and the label of the i-th signal sample, and the loss of the signal sample of the i-th category and the k-th weight value.

6. The fraudulent speech detection method according to claim 1, characterized in that: After the current signal is identified by the n+1th model, the current signal is identified by the first model to the nth model in sequence, and after the step of obtaining the true label or the i-th label of the current signal, the step further includes: When the tag of the current signal is obtained to be the real tag, encrypted information is provided for verification, and the verification process includes random verification code verification or dynamic password verification.

7. A fraudulent speech detection device, characterized in that: include: An acquisition module is used to acquire a speech signal, annotate the speech signal, and acquire a speech signal and a speech data set with a real label; The step of obtaining a voice signal further includes: performing time-frequency conversion on the voice signal to obtain a frequency domain signal, and performing frame windowing processing on the frequency domain signal to obtain a frequency domain segment; extracting Mel cepstral frequency coefficients and / or constant Q transform cepstral coefficients from the frequency domain segment to obtain a voiceprint feature; A data module, used for performing n-dimensional transformation on the speech signal to obtain a fraud signal, and respectively labeling the fraud signal according to the type of n-dimensional transformation, obtaining a fraud signal with an i-th label and an i-th data set, merging the speech data set and the i-th data set to obtain an i-th training set, and merging the speech data set and each i-th data set to obtain an n+1-th training set, 1≤i≤n; A training module, used to iteratively train the first training set to the n+1th training set respectively through the initial model to obtain the corresponding first model to the n+1th model for speech detection; The recognition module is used to recognize the current signal through the first model to the nth model in sequence after recognizing the current signal through the n+1th model, so as to obtain the true label or the i-th label of the current signal.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the fraudulent speech detection method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the fraudulent speech detection method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Voice fraud identification method and apparatus, terminal equipment and storage medium

    CN107680602A

  • Video data fraud detection method and device, computer equipment and storage medium

    CN110781916A