Audio recognition model training method, audio recognition method, device, electronic device and storage medium

By performing data enhancement processing on audio feature information and training the audio recognition model, the problem of difficulty in obtaining label data in the field of audio recognition is solved, label-free data training is achieved, the cost is reduced and the robustness of the model is improved.

CN115547308BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the field of audio recognition, existing technologies mainly rely on supervised learning or semi-supervised learning, which requires labeled data, resulting in high data labeling costs, difficulty in obtaining labeled data, and increased work costs.

Method used

By performing first data enhancement processing and second data enhancement processing on the target audio feature information, first audio feature information and second audio feature information are generated, which are used to train the first original network and the second original network respectively, using audio similarity The data is updated iteratively until the iteration termination condition is met, the target network is obtained, and the audio recognition model is determined.

Benefits of technology

The audio recognition model can be trained without label data, which reduces the training cost, improves the training difficulty and the robustness and breadth of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115547308B
    Figure CN115547308B
Patent Text Reader

Abstract

The present disclosure relates to an audio recognition model training method, an audio recognition method, an apparatus, an electronic device and a storage medium, the method comprising: determining target audio feature information, performing a first data enhancement process and a second data enhancement process on the target audio feature information respectively to obtain first audio feature information and second audio feature information, performing audio recognition training on a first original network and a second original network based on the first audio feature information and the second audio feature information to obtain a first target network and a second target network, and determining an audio recognition model based on a first coding layer in the first target network or a second coding layer in the second target network. The present application trains the first original network and the second original network by using the first audio feature information and the second audio feature information after data enhancement processing, without the need for label data, thereby reducing training costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to an audio recognition model training method, an audio recognition method, an apparatus, an electronic device, and a storage medium. Background Art

[0002] The large amount of information carried by sound can play an important role in our daily lives. In daily life, we receive various sounds and use them to judge where we are (subway, street, etc.) and what is happening (sirens, dogs barking, etc.).

[0003] With the rapid development of artificial intelligence, computers can also make such judgments, and their accuracy even exceeds that of humans. Computer hearing and machine hearing have become popular and promising research areas. Audio classification and audio event detection can be used for perceptual computing and provide better responses to users in fields such as the Internet of Things, mobile navigation devices, and when visual information is unclear. However, most of the work focuses on supervised learning or semi-supervised learning. This learning model requires data label information, and the cost of labeling data, especially in the audio field, is high, which makes it difficult to obtain label data, thereby increasing the cost of work. Summary of the invention

[0004] The present disclosure provides an audio recognition model training method, an audio recognition method, an apparatus, an electronic device, and a storage medium. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an audio recognition model training method, comprising:

[0006] Determining target audio feature information;

[0007] Performing a first data enhancement process and a second data enhancement process on the target audio feature information respectively to obtain first audio feature information and second audio feature information;

[0008] Based on the first audio feature information and the second audio feature information, the first original network and the second original network are respectively trained for audio recognition to obtain the first target network and the second target network; the gap between the first audio output data of the first target network and the second audio output data of the second target network is less than or equal to the preset gap;

[0009] An audio recognition model is determined based on a first encoding layer in the first target network or a second encoding layer in the second target network.

[0010] In some possible embodiments, performing audio recognition training on the first original network and the second original network based on the first audio feature information and the second audio feature information to obtain the first target network and the second target network includes:

[0011] Performing audio recognition processing on the first audio feature information through the first original network to obtain first audio output data;

[0012] Performing audio recognition processing on the second audio feature information through a second original network to obtain second audio output data; wherein the data dimensions of the first audio output data and the second audio output data are the same;

[0013] determining audio similarity data based on the first audio output data and the second audio output data;

[0014] Training a first original network and a second original network based on the audio similarity data;

[0015] When the iteration termination condition is met, a first target network and a second target network are obtained.

[0016] In some possible embodiments, training a first original network and a second original network based on audio similarity data; and obtaining a first target network and a second target network when an iteration termination condition is satisfied includes:

[0017] Based on the audio similarity data, the first network parameters of the first original network are updated to obtain updated first network parameters and an updated first original network;

[0018] Updating the second network parameters of the second original network based on the updated first network parameters to obtain updated second network parameters and an updated second original network;

[0019] The first original network and the second original network are trained cyclically until an iteration termination condition is met;

[0020] The trained first original network is determined as the first target network, and the trained second original network is determined as the second target network.

[0021] In some possible embodiments, updating the second network parameters of the second original network based on the updated first network parameters to obtain the updated second network parameters and the updated second original network includes:

[0022] Obtaining second network parameters and sliding average parameters of the second original network;

[0023] Determine an updated second network parameter based on the updated first network parameter, the second network parameter, and the sliding average parameter;

[0024] The second original network is updated based on the updated second network parameters to obtain an updated second original network.

[0025] In some possible embodiments, determining target audio feature information includes:

[0026] Get the original audio;

[0027] Cut the original audio into segments to obtain the target audio;

[0028] Perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on the target audio to obtain the target audio feature information.

[0029] In some possible embodiments, performing first data enhancement processing and second data enhancement processing on the target audio feature information to obtain first audio feature information and second audio feature information includes:

[0030] Performing one or more of audio data expansion processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing on the target audio feature information to obtain first audio feature information;

[0031] The target audio feature information is subjected to one or more of audio data expansion processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing to obtain second audio feature information; the first audio feature information and the second audio feature information are different.

[0032] In some possible embodiments, after determining the audio recognition model based on the first encoding layer in the first target network, the method further includes:

[0033] Acquire an audio style data set; the audio style data set includes first audio segments corresponding to N audio styles; wherein N is a positive integer greater than 1;

[0034] Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each first audio segment in the audio style data set to obtain third audio feature information corresponding to each first audio segment;

[0035] Inputting the third audio feature information corresponding to each first audio segment into the audio recognition model to obtain the first encoded feature information corresponding to each first audio segment;

[0036] Classify the audio style data set into a plurality of first audio segment sets based on the first encoded feature information corresponding to each first audio segment; each first audio segment set includes at least one first audio segment in the audio style data set;

[0037] When the number of the first audio segment set meets N, it is determined that the audio recognition model verification is successful.

[0038] In some possible embodiments, after determining the audio recognition model based on the first encoding layer in the first target network, the method further includes:

[0039] Acquire an audio scene data set; the audio scene data set includes second audio segments corresponding to M audio scenes; wherein M is a positive integer greater than 1;

[0040] Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each second audio segment in the audio scene data set to obtain fourth audio feature information corresponding to each second audio segment;

[0041] Inputting the fourth audio feature information corresponding to each second audio segment into the audio recognition model to obtain second encoded feature information corresponding to each second audio segment;

[0042] Classifying the audio scene dataset based on the second encoded feature information corresponding to each second audio segment, and dividing the audio scene dataset into a plurality of second audio segment sets; each second audio segment set includes at least one second audio segment in the acoustic scene dataset;

[0043] When the number of the second audio segment sets meets M, it is determined that the audio recognition model verification is successful.

[0044] In some possible embodiments, the first encoding layer and the second encoding layer are both 38-layer residual networks.

[0045] According to a second aspect of an embodiment of the present disclosure, there is provided an audio recognition method, comprising:

[0046] Get the audio to be recognized;

[0047] Inputting the audio to be recognized into the audio recognition model trained according to the audio recognition model training method to obtain the encoding feature information of the audio to be recognized;

[0048] The style information and / or scene information of the audio to be recognized is determined based on the encoding feature information of the audio to be recognized.

[0049] According to a third aspect of an embodiment of the present disclosure, there is provided an audio recognition model training device, comprising:

[0050] A first information determination module is configured to determine target audio feature information;

[0051] A second information determination module is configured to perform a first data enhancement process and a second data enhancement process on the target audio feature information to obtain first audio feature information and second audio feature information;

[0052] A network training module is configured to perform audio recognition training on the first original network and the second original network respectively based on the first audio feature information and the second audio feature information to obtain a first target network and a second target network; the gap between the first audio output data of the first target network and the second audio output data of the second target network is less than or equal to a preset gap;

[0053] The recognition model determination module is configured to determine the audio recognition model based on the first encoding layer in the first target network or the second encoding layer in the second target network.

[0054] In some possible embodiments, the network training module is configured to execute:

[0055] Performing audio recognition processing on the first audio feature information through the first original network to obtain first audio output data;

[0056] Performing audio recognition processing on the second audio feature information through a second original network to obtain second audio output data; wherein the data dimensions of the first audio output data and the second audio output data are the same;

[0057] determining audio similarity data based on the first audio output data and the second audio output data;

[0058] Training a first original network and a second original network based on the audio similarity data;

[0059] When the iteration termination condition is met, a first target network and a second target network are obtained.

[0060] In some possible embodiments, the network training module is configured to execute:

[0061] Based on the audio similarity data, the first network parameters of the first original network are updated to obtain updated first network parameters and an updated first original network;

[0062] Updating the second network parameters of the second original network based on the updated first network parameters to obtain updated second network parameters and an updated second original network;

[0063] The first original network and the second original network are trained cyclically until an iteration termination condition is met;

[0064] The trained first original network is determined as the first target network, and the trained second original network is determined as the second target network.

[0065] In some possible embodiments, the network training module is configured to perform:

[0066] Obtaining second network parameters and sliding average parameters of the second original network;

[0067] Determine an updated second network parameter based on the updated first network parameter, the second network parameter, and the sliding average parameter;

[0068] The second original network is updated based on the updated second network parameters to obtain an updated second original network.

[0069] In some possible embodiments, the first information determination module is configured to execute:

[0070] Get the original audio;

[0071] Cut the original audio into segments to obtain the target audio;

[0072] Perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on the target audio to obtain the target audio feature information.

[0073] In some possible embodiments, the second information determination module is configured to execute:

[0074] Performing one or more of audio data expansion processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing on the target audio feature information to obtain first audio feature information;

[0075] The target audio feature information is subjected to one or more of audio data expansion processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing to obtain second audio feature information; the first audio feature information and the second audio feature information are different.

[0076] In some possible embodiments, the device further includes a first verification module configured to execute:

[0077] Acquire an audio style data set; the audio style data set includes first audio segments corresponding to N audio styles; wherein N is a positive integer greater than 1;

[0078] Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each first audio segment in the audio style data set to obtain third audio feature information corresponding to each first audio segment;

[0079] Inputting the third audio feature information corresponding to each first audio segment into the audio recognition model to obtain the first encoded feature information corresponding to each first audio segment;

[0080] Classify the audio style data set into a plurality of first audio segment sets based on the first encoded feature information corresponding to each first audio segment; each first audio segment set includes at least one first audio segment in the audio style data set;

[0081] When the number of the first audio segment set meets N, it is determined that the audio recognition model verification is successful.

[0082] In some possible embodiments, the device further includes a second verification module configured to execute:

[0083] Acquire an audio scene data set; the audio scene data set includes second audio segments corresponding to M audio scenes; wherein M is a positive integer greater than 1;

[0084] Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each second audio segment in the audio scene data set to obtain fourth audio feature information corresponding to each second audio segment;

[0085] Inputting the fourth audio feature information corresponding to each second audio segment into the audio recognition model to obtain second encoded feature information corresponding to each second audio segment;

[0086] Classifying the audio scene dataset based on the second encoded feature information corresponding to each second audio segment, and dividing the audio scene dataset into a plurality of second audio segment sets; each second audio segment set includes at least one second audio segment in the acoustic scene dataset;

[0087] When the number of the second audio segment sets meets M, it is determined that the audio recognition model verification is successful.

[0088] In some possible embodiments, the first encoding layer and the second encoding layer are both 38-layer residual networks.

[0089] According to a fourth aspect of an embodiment of the present disclosure, there is provided an audio recognition device, including:

[0090] An audio acquisition module, configured to acquire audio to be recognized;

[0091] The coding information determination module is configured to execute the audio to be recognized input into the audio recognition model trained by the audio recognition model training method to obtain the coding feature information of the audio to be recognized;

[0092] The style and scene determination module is configured to determine the style information and / or scene information of the audio to be identified based on the encoding feature information of the audio to be identified.

[0093] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement a method as described in any one of the first or second aspects above.

[0094] According to the sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any method in the first aspect or the second aspect of the embodiment of the present disclosure.

[0095] According to the seventh aspect of an embodiment of the present disclosure, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a readable storage medium, at least one processor of a computer device reading and executing the computer program from the readable storage medium, so that the computer device performs any one of the methods of the first aspect or the second aspect of the embodiment of the present disclosure.

[0096] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0097] Determine the target audio feature information, perform a first data enhancement process and a second data enhancement process on the target audio feature information respectively, obtain the first audio feature information and the second audio feature information, perform audio recognition training on the first original network and the second original network respectively based on the first audio feature information and the second audio feature information, obtain the first target network and the second target network, the gap between the first audio output data of the first target network and the second audio output data of the second target network is less than or equal to the preset gap, and determine the audio recognition model based on the first coding layer in the first target network or the second coding layer in the second target network. The present application trains the first original network and the second original network by the first audio feature information and the second audio feature information after data enhancement processing, without the need for label data, thereby reducing training costs.

[0098] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0099] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0100] Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment;

[0101] Figure 2 is a flowchart of an audio recognition model training method according to an exemplary embodiment;

[0102] Figure 3is a flow chart showing a method of determining target audio feature information according to an exemplary embodiment;

[0103] Figure 4 is a schematic diagram showing the structure of a first original network and a second original network according to an exemplary embodiment;

[0104] Figure 5 is a flowchart of a network training according to an exemplary embodiment;

[0105] Figure 6 is a schematic diagram of a structure of a first coding layer according to an exemplary embodiment;

[0106] Figure 7 is a schematic diagram of a structure of a residual layer according to an exemplary embodiment, including four sub-graphs (a), (b), (c) and (d);

[0107] Figure 8 is a flow chart of an audio recognition method according to an exemplary embodiment;

[0108] Fig. 9 is a block diagram of an audio recognition model training device according to an exemplary embodiment;

[0109] Fig.10 is a block diagram of an audio recognition device according to an exemplary embodiment;

[0110] Fig.11 The invention is a block diagram of an electronic device for audio recognition model training or audio recognition according to an exemplary embodiment. DETAILED DESCRIPTION

[0111] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 making creative work are within the scope of protection of the present invention.

[0112] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar first 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 disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0113] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0114] See also Figure 1 , Figure 1 is a schematic diagram of an application environment of an audio recognition model training method according to an exemplary embodiment. Figure 1 As shown, the application environment may include a server 01 and a client 02 .

[0115] In some possible embodiments, the server 01 may include an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud audio recognition model training, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The operating system running on the server may include but is not limited to Android, IOS, Linux, Windows, Unix, etc.

[0116] In some possible embodiments, the client 02 may include but is not limited to a smartphone, a desktop computer, a tablet computer, a laptop computer, a smart speaker, a digital assistant, an augmented reality (AR) / virtual reality (VR) device, a smart wearable device, etc. It may also be software running on the client, such as an application, a small program, etc. Optionally, the operating system running on the client may include but is not limited to Android system, IOS system, Linux, Windows, Unix, etc.

[0117] In some possible embodiments, the server 01 or the client 02 can determine the target audio feature information, perform the first data enhancement processing and the second data enhancement processing on the target audio feature information respectively to obtain the first audio feature information and the second audio feature information, perform audio recognition training on the first original network and the second original network respectively based on the first audio feature information and the second audio feature information to obtain the first target network and the second target network, the gap between the first audio output data of the first target network and the second audio output data of the second target network is less than or equal to the preset gap, and determine the audio recognition model based on the first coding layer in the first target network or the second coding layer in the second target network.

[0118] In some possible embodiments, the client 02 may be connected to the server 01 via a wired link or a wireless link.

[0119] In an exemplary embodiment, the client, the server, and the database corresponding to the server can all be node devices in the blockchain system, and can share the acquired and generated information with other node devices in the blockchain system to achieve information sharing between multiple node devices. Multiple node devices in the blockchain system can be configured with the same blockchain, which is composed of multiple blocks, and the adjacent blocks have an association relationship, so that when the data in any block is tampered, it can be detected by the next block, thereby preventing the data in the blockchain from being tampered with, and ensuring the security and reliability of the data in the blockchain.

[0120] Figure 2 is a flowchart of an audio recognition model training method according to an exemplary embodiment. Figure 2 As shown, the audio recognition model training method can be applied to the server or to other node devices, such as the client. The following is an example of the server. The method includes the following steps:

[0121] In step S201, target audio feature information is determined.

[0122] In the embodiment of the present application, the server may determine the target audio feature. An implementation method for determining the target audio feature information is described below. Figure 3 is a flow chart showing a method of determining target audio feature information according to an exemplary embodiment. Figure 3 As shown, including:

[0123] In step S301, original audio is obtained.

[0124] In the embodiment of the present application, the original audio may be obtained from a real environment, such as recorded in a beach environment. The original audio may be synthesized based on a certain scene, such as synthesized based on a beach scene. Therefore, the synthesized original audio may have obvious beach scene characteristics.

[0125] In an optional embodiment, the server may obtain the original audio from the client, for example, from an online audio library. Optionally, the original audio obtained from the client may be obtained by shooting or recording by the client.

[0126] In some optional embodiments, the number of original audios may be one, or the number of original audios may be multiple, such as 1000 original audios. The multiple original audios may belong to audios in the same scene, or may belong to audios in different scenes, and the different scenes may include beach scenes, train driving scenes, indoor scenes, traffic jam scenes, etc.

[0127] In step S303, the original audio is segmented to obtain the target audio.

[0128] In an optional embodiment, since the duration of the original audio may be uncertain, such as 60 seconds or 2 minutes, in order to save computer computing power and resources as much as possible in the subsequent model training process, the server may detect the duration of the original audio and extract the original audio that exceeds the preset duration to obtain the target audio of the preset duration or less than the preset duration. Optionally, the preset duration may be 60 seconds.

[0129] In another optional embodiment, the server may not perform segment cutting on the original audio, and directly use the original audio as the target audio.

[0130] In step S305, logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction is performed on the target audio to obtain target audio feature information.

[0131] In the embodiment of the present application, the target audio at this time is one-dimensional data including a time axis. In order to make the target audio present more information, the server can perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on the target audio to obtain target audio feature information.

[0132] Optionally, the process of the server extracting Mel-cepstral coefficient features from the target audio includes:

[0133] In the first step, the server performs pre-emphasis on the target audio, that is, passing the target audio through a high-pass filter. The goal of pre-emphasis is to enhance the high-frequency part, make the spectrum of the target audio flat, and keep it in the entire frequency band from low frequency to high frequency, so that the spectrum can be obtained with the same signal-to-noise ratio. At the same time, it is also to eliminate the effects of the vocal cords and lips during the process, to compensate for the high-frequency part of the speech signal suppressed by the pronunciation system, and to highlight the high-frequency resonance peak.

[0134] In the second step, the server can perform frame processing on the filtered target audio to obtain the framed target audio. The specific frame processing includes: firstly, the filtered target audio is divided into observation units, i.e. frames, each frame can be composed of L (such as 256 or 512) sampling points. In order to avoid excessive changes between two adjacent frames, there can be an overlapping area between two adjacent frames, so that the filtered target audio with partial frame overlap is regarded as the framed target audio.

[0135] In the third step, the server may perform windowing on the target audio after framing to obtain the target audio after windowing. Specifically, the server may multiply each frame of the target audio after framing by a Hamming window to increase the continuity of the left and right ends of the frame.

[0136] In the fourth step, the server performs a fast Fourier transform on the windowed target audio to obtain the spectrum of the target audio. Since it is usually difficult to see the characteristics of the signal in the time domain, it can be converted into energy distribution in the frequency domain. Different energies can represent the characteristics of different audio. Therefore, the server can perform a fast Fourier transform on each frame of the windowed target audio to obtain the spectrum of each frame, and square the modulus of the spectrum of each frame to obtain the power spectrum of the target audio.

[0137] In the fifth step, the server passes the power spectrum of the target audio through a Mel-scale triangular filter bank. Specifically, the server can define a filter bank with M filters, and the filter used is a triangular filter. The filter bank of M filters can smooth the spectrum and eliminate the effect of harmonics, highlighting the resonance peak of the target audio.

[0138] In the sixth step, the server calculates the logarithmic energy of the filter group of M filters, performs discrete cosine transform on the logarithmic energy, obtains the L-order Mel-cepstral coefficient, and uses the Mel-cepstral coefficient as the target audio feature information.

[0139] However, performing discrete cosine transform on the logarithmic energy in the sixth step will remove the correlation of the target audio, causing the obtained target audio feature information to lack correlation features. Therefore, the server can perform logarithmic Mel feature extraction on the target audio to obtain target audio feature information containing correlation features.

[0140] Optionally, the process of the server performing logarithmic Mel feature extraction on the target audio includes:

[0141] In the first step, the server performs pre-emphasis on the target audio, that is, passing the target audio through a high-pass filter. The goal of pre-emphasis is to enhance the high-frequency part, make the spectrum of the target audio flat, and keep it in the entire frequency band from low frequency to high frequency, so that the spectrum can be obtained with the same signal-to-noise ratio. At the same time, it is also to eliminate the effects of the vocal cords and lips during the process, to compensate for the high-frequency part of the speech signal suppressed by the pronunciation system, and to highlight the high-frequency resonance peak.

[0142] In the second step, the server can perform frame processing on the filtered target audio to obtain the framed target audio. The specific frame processing includes: firstly, the filtered target audio is divided into observation units, i.e. frames, each frame can be composed of L (such as 256 or 512) sampling points. In order to avoid excessive changes between two adjacent frames, there can be an overlapping area between two adjacent frames, so that the filtered target audio with partial frame overlap is regarded as the framed target audio.

[0143] In the third step, the server may perform windowing on the target audio after framing to obtain the target audio after windowing. Specifically, the server may multiply each frame of the target audio after framing by a Hamming window to increase the continuity of the left and right ends of the frame.

[0144] In the fourth step, the server performs a fast Fourier transform on the windowed target audio to obtain the spectrum of the target audio. Since it is usually difficult to see the characteristics of the signal in the time domain, it can be converted into energy distribution in the frequency domain. Different energies can represent the characteristics of different audio. Therefore, the server can perform a fast Fourier transform on each frame of the windowed target audio to obtain the spectrum of each frame, and square the modulus of the spectrum of each frame to obtain the power spectrum of the target audio.

[0145] In the fifth step, the server passes the power spectrum of the target audio through a Mel-scale triangular filter bank. Specifically, the server can define a filter bank with M filters, and the filter used is a triangular filter. The filter bank of M filters can smooth the spectrum and eliminate the effect of harmonics, highlighting the resonance peak of the target audio.

[0146] In the sixth step, the server calculates the logarithmic energy of the filter group of M filters and determines the logarithmic energy as the target audio feature information.

[0147] In this way, the present application can determine the target audio feature information of the target audio through the above embodiments. The target audio feature information may include time domain information and frequency domain information, and has more feature information compared to one-dimensional target audio.

[0148] In step S203, the target audio feature information is subjected to a first data enhancement process and a second data enhancement process respectively to obtain first audio feature information and second audio feature information.

[0149] In an embodiment of the present application, the server may perform a first data enhancement process on the target audio feature information to obtain the first audio feature information, and may perform a second data enhancement process on the target audio feature information to obtain the second audio feature information.

[0150] In the embodiment of the present application, since the structures of the first original network for the first audio feature information input and the second original network for the second audio feature information input are different, the first data enhancement process and the second data enhancement process may be the same data enhancement process. However, in order to better train the first original network and the second original network, the first data enhancement process and the second data enhancement process may be different data enhancement processes.

[0151] Optionally, the first data enhancement processing may include no processing, may include one of the following processings: audio data augmentation processing Spec-augment, audio data fusion processing Mixup, audio data time shift processing Time Shift Augmengtation, and audio data pitch change processing Pitch Shift Augmentation, or may include a joint processing of multiple processings of audio data augmentation processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing.

[0152] Optionally, the second data enhancement processing may include no processing, may include one of audio data expansion processing, audio data fusion processing, audio data time shift processing and audio data pitch change processing, or may include a combined processing of multiple of audio data expansion processing, audio data fusion processing, audio data time shift processing and audio data pitch change processing.

[0153] Optionally, the audio data expansion processing refers to adding a mask of length t and f to the spectrum summary in the time domain or frequency domain of the target audio feature information, respectively.

[0154] Optionally, the audio data fusion processing can be called same category enhancement. While the server extracts a segment from the original audio to obtain the target audio, and performs logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on the target audio to obtain target audio feature information, it can also extract a segment from the original audio again to obtain an analog audio different from the target audio, and perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on the analog audio to obtain analog audio feature information.

[0155] Subsequently, the server may perform a fusion process on the target audio feature information and the analog audio feature information based on the following formula (1) to obtain the first audio feature information. Formula (1) includes:

[0156]

[0157] in, Characterizing the first audio feature information; x i Characterize the target audio feature information; x j represents the analog audio feature information; λ represents the fusion parameter, where the value of the fusion parameter is between 0 and 1.

[0158] Optionally, the audio data time-shift processing refers to randomly shifting the signal by rolling the target audio feature information along the time axis to obtain, for example, first audio feature information.

[0159] Optionally, the pitch change processing of audio data refers to random rolling within a preset range around the frequency axis to obtain, for example, first audio feature information.

[0160] In this way, the present application performs data enhancement processing on the target audio feature information through one, two, three or four of the above four independent data enhancement methods, and obtains different first audio feature information and second audio feature information. Since the target audio from which the first audio feature information and the second audio feature information are derived is randomly intercepted from the original audio, and the data enhancement method is also randomly selected, the first audio feature information and the second audio feature information contain richer and more extensive information, which lays a good foundation for the features obtained by subsequent network learning to be more robust and extensive.

[0161] In step S205, audio recognition training is performed on the first original network and the second original network based on the first audio feature information and the second audio feature information, respectively, to obtain the first target network and the second target network; the gap between the first audio output data of the first target network and the second audio output data of the second target network is less than or equal to the preset gap.

[0162] In the embodiment of the present application, the server can train the first original network and the second original network based on the first audio feature information and the second audio feature information to obtain the first target network and the second target network.

[0163] In an optional embodiment, Figure 4 is a schematic diagram showing a structure of a first original network and a second original network according to an exemplary embodiment. Figure 4 As shown, the first original network includes a first encoding layer, a first projection layer and a prediction layer connected in sequence, and the second original network includes a second encoding layer and a second projection layer. Figure 5A flowchart of a network training according to an exemplary embodiment is shown below. Figure 5 , the network training process is explained, such as Figure 5 As shown, including:

[0164] In step S501, audio recognition processing is performed on first audio feature information through a first original network to obtain first audio output data.

[0165] Optionally, the server may input the first audio feature information into the first encoding layer, output the encoding feature information corresponding to the first audio feature information, and then input the encoding feature information into the first projection layer, output the projection representation information corresponding to the first audio feature information, and input the projection representation information into the prediction layer to obtain the first audio output data.

[0166] Figure 6 : This is a schematic diagram of the structure of a first coding layer according to an exemplary embodiment. Optionally, the first coding layer can be composed of 38 layers of residual networks, including an input convolution layer, a residual layer, and an output convolution layer. Among them, the input layer convolution layer is composed of two convolution layers, the number of convolution kernels is 64, and the size is (3,3). Optionally, the output layer convolution layer is also composed of two convolution layers, the number of convolution kernels is 128, and the size is (3,3).

[0167] Optionally, a residual layer is placed between the input convolutional layer and the output convolutional layer. Figure 7 FIG. 1 is a schematic diagram showing a structure of a residual layer according to an exemplary embodiment. Figure 7 There are four types of convolution kernel numbers as shown in (a), (b), (c) and (d), which are [64, 128, 256, 512] respectively. The modules with different numbers of convolution kernels are called residual submodules, and the number of repetitions of each residual submodule is [3, 4, 6, 3] respectively.

[0168] Each residual submodule has a residual connection. The input passes through the basic block and the supplementary block respectively, and the output results are added and then passed through the ReLU activation function to obtain the output of the residual submodule. The basic block consists of average pooling (the first residual submodule (a) does not have it), two (3,3) convolutional layers, a batch normalization BN layer, and an activation function ReLU layer. The supplementary block consists of average pooling (the first residual submodule (a) does not have it), a (1,1) convolutional layer, and a batch normalization BN layer.

[0169] The residual submodule is expressed by the following formula (2):

[0170] F(x)=ReLU(F1(x)+F2(x))......Formula (2)

[0171] Among them, F is the representation function of the residual submodule, F1 is the representation function of the basic block, and F2 is the representation function of the supplementary block.

[0172] Optionally, the first projection layer and the prediction layer may be composed of fully connected layers with different numbers of neurons. For example, the number of neurons in the first projection layer is 128, and the number of neurons in the prediction layer is 512.

[0173] In step S503, audio recognition processing is performed on the second audio feature information through a second original network to obtain second audio output data; wherein the data dimensions of the first audio output data and the second audio output data are the same.

[0174] Optionally, the server may input the second audio feature information into the second encoding layer, output encoding feature information corresponding to the second audio feature information, and then input the encoding feature information into the second projection layer to obtain second audio output data.

[0175] Optionally, the structure of the second coding layer can refer to the structure of the first coding layer, which is composed of 38 layers of residual networks, including input convolutional layers, residual layers, and output convolutional layers. The second projection layer can be determined based on the prediction layer, and has a fully connected layer of 512 neurons. In this way, the second projection layer can output the second audio output data with the same dimension as the prediction layer output, which is convenient for subsequent similarity calculation.

[0176] In step S505 , audio similarity data is determined based on the first audio output data and the second audio output data.

[0177] In the embodiment of the present application, because the first audio feature information and the second audio feature information are derived from the same original audio, the events and features contained in the first audio feature information and the second audio feature information are similar, and the data dimensions of the first audio output data and the second audio output data are the same. Based on this, the first audio output data and the second audio output data can be used to form a similarity matrix and calculate audio similarity data. Among them, the formula (3) of the audio similarity data is:

[0178]

[0179] Among them, L represents the audio similarity data; q θ (zθ) represents the first audio output data; z′ ξ Characterizes the second audio output data.

[0180] In step S507, the first original network and the second original network are trained based on the audio similarity data.

[0181] In this way, the server can use the above audio similarity data to train the first original network and the second original network.

[0182] Optionally, the server may update the first network parameters of the first original network based on the audio similarity data to obtain updated first network parameters and an updated first original network, and update the second network parameters of the second original network based on the updated first network parameters to obtain updated second network parameters and an updated second original network.

[0183] Specifically, the server can obtain the second network parameters and sliding average parameters of the second original network, determine the updated second network parameters based on the updated first network parameters, the second network parameters and the sliding average parameters, and update the second original network based on the updated second network parameters to obtain the updated second original network.

[0184] Specifically, the server may update the second network parameters and the second original network through sliding average, which is expressed as the following formula (4):

[0185] ξ′←τξ+(1-τ)θ...Formula (4)

[0186] Among them, ξ represents the second network parameter before updating; ξ′ represents the second network parameter after updating; θ represents the first network parameter after updating; τ represents the sliding average parameter.

[0187] In step S509, when the iteration termination condition is met, the first target network and the second target network are obtained.

[0188] In the embodiment of the present application, the server may cyclically train the first original network and the second original network until an iteration termination condition is met, and determine the trained first original network as the first target network and the trained second original network as the second target network.

[0189] Optionally, the server can input the first audio feature information into the updated first original network to obtain the first audio output data of this cycle, and input the second audio feature information into the updated second original network to obtain the second audio output data of this cycle. The audio similarity data is determined based on the first audio output data and the second audio output data of this cycle, and the updated first original network and the second original network are updated with the new audio similarity data according to the above-mentioned update method. In this way, the server completes the training of the first original network and the second original network of the second cycle. Then, the server can complete the third cycle training, the fourth cycle training, the fifth cycle training... in the above manner until the iteration termination condition is met, and the trained first original network is determined as the first target network, and the trained second original network is determined as the second target network.

[0190] In some possible embodiments, the iteration termination condition may be a preset number of loops. For example, if the current number of loops meets the preset number of loops (eg, 100 times), the iteration termination condition is met.

[0191] In some other possible embodiments, the iteration termination condition may be preset similarity data, and the iteration termination condition is satisfied when the audio similarity data is less than or equal to the preset similarity data.

[0192] In the embodiments of the present application, unlike the prior art which requires the construction of positive and negative samples to train the model, resulting in increased training difficulty, the present application does not require the construction of positive and negative samples. The model can be optimized only through the consistency of the output distribution of the two networks, which reduces the acquisition of samples and thus reduces the difficulty of training.

[0193] In step S207, an audio recognition model is determined based on the first encoding layer in the first target network or the second encoding layer in the second target network.

[0194] In the embodiment of the present application, the server may determine the audio recognition model based on the first coding layer in the first target network or the second coding layer in the second target network. In this way, the server may obtain the audio recognition model.

[0195] In some other possible embodiments, the server may also determine the accuracy, generalization and robustness of the audio recognition model by verification. The server may verify the audio recognition model by two dimensions: music style and acoustic scene.

[0196] In an optional embodiment, the server may obtain an audio style data set, which includes first audio segments corresponding to N audio styles, where N is a positive integer greater than 1. The N audio styles may include audio corresponding to pop music, audio corresponding to classical music, audio corresponding to heavy metal music, audio corresponding to rock music, and audio of other styles.

[0197] The server may perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each first audio segment in the audio style data set to obtain third audio feature information corresponding to each first audio segment. The specific method of logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction can be referred to the above content, which will not be repeated here.

[0198] The server can input the third audio feature information corresponding to each first audio segment into the audio recognition model to obtain the first coded feature information corresponding to each first audio segment. The server can use the K-nearest neighbor algorithm to classify based on the first coded feature information corresponding to each first audio segment, and divide the audio style data set into multiple first audio segment sets. Each first audio segment set includes at least one first audio segment in the audio style data set. When the number of first audio segment sets meets N, it is determined that the audio recognition model convergence verification is successful. When the number of first audio segment sets does not meet N, it is determined that the audio recognition model verification fails and further training is required.

[0199] In another optional embodiment, the server may obtain an audio scene data set, which includes second audio clips corresponding to M audio scenes, where M is a positive integer greater than 1. The M audio scenes may include a beach scene, a train driving scene, an indoor scene, a traffic jam scene, and the like.

[0200] The server may perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each second audio segment in the audio scene data set to obtain fourth audio feature information corresponding to each second audio segment. The specific method of logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction can be referred to the above content, which will not be repeated here.

[0201] The server can input the fourth audio feature information corresponding to each second audio segment into the audio recognition model to obtain the second coded feature information corresponding to each second audio segment. The server can use the K-nearest neighbor algorithm to classify based on the second coded feature information corresponding to each second audio segment, and divide the audio scene data set into multiple second audio segment sets. Each second audio segment set includes at least one second audio segment in the acoustic scene data set. When the number of second audio segment sets meets M, it is determined that the audio recognition model convergence verification is successful. When the number of second audio segment sets does not meet M, it is determined that the audio recognition model verification has failed and further training is required.

[0202] By retesting the audio recognition model based on audio style and audio scene, the accuracy of the audio recognition model can be verified, thereby ensuring the subsequent application of the audio recognition model.

[0203] In the embodiment of the present application, a data set with a large amount of data is not required. The model can be trained by combining a small part of the target audio with the consistency of the output distribution of the two networks, and the training difficulty is relatively low. Secondly, the present application adopts four data enhancement methods to obtain different first audio feature information and second audio feature information, and since the target audio from which the first audio feature information and the second audio feature information are derived is randomly intercepted from the original audio, the data enhancement method is also randomly selected, so the first audio feature information and the second audio feature information contain richer and more extensive information, which lays a good foundation for the features obtained by subsequent network learning to be more robust and extensive.

[0204] Figure 8 is a flow chart of an audio recognition method according to an exemplary embodiment. Figure 8 As shown, the audio recognition method can be applied to a server or a client, and includes the following steps:

[0205] In step S801, audio to be recognized is obtained.

[0206] In step S803, the audio to be recognized is input into the audio recognition model trained by the audio recognition model training method to obtain the encoding feature information of the audio to be recognized.

[0207] In step S805, style information and / or scene information of the audio to be recognized is determined based on the encoding feature information of the audio to be recognized.

[0208] In an embodiment of the present application, the server can obtain audio to be recognized, input the audio to be recognized into an audio recognition model trained by an audio recognition model training method, obtain encoding feature information of the audio to be recognized, and determine the style information and / or scene information of the audio to be recognized based on the encoding feature information of the audio to be recognized.

[0209] Fig. 9 1 is a block diagram of an audio recognition model training device according to an exemplary embodiment. The device has the function of implementing the data processing method in the above method embodiment, and the function can be implemented by hardware or by hardware executing corresponding software. Fig. 9 The device includes a first information determination module 901, a second information determination module 902, a network training module 903 and a recognition model determination module 904.

[0210] The first information determination module 901 is configured to determine target audio feature information;

[0211] The second information determination module 902 is configured to perform a first data enhancement process and a second data enhancement process on the target audio feature information to obtain first audio feature information and second audio feature information;

[0212] The network training module 903 is configured to perform audio recognition training on the first original network and the second original network based on the first audio feature information and the second audio feature information, respectively, to obtain a first target network and a second target network; the gap between the first audio output data of the first target network and the second audio output data of the second target network is less than or equal to a preset gap;

[0213] The recognition model determination module 904 is configured to determine an audio recognition model based on the first encoding layer in the first target network or the second encoding layer in the second target network.

[0214] In some possible embodiments, the network training module is configured to execute:

[0215] Performing audio recognition processing on the first audio feature information through the first original network to obtain first audio output data;

[0216] Performing audio recognition processing on the second audio feature information through a second original network to obtain second audio output data; wherein the data dimensions of the first audio output data and the second audio output data are the same;

[0217] determining audio similarity data based on the first audio output data and the second audio output data;

[0218] Training a first original network and a second original network based on the audio similarity data;

[0219] When the iteration termination condition is met, a first target network and a second target network are obtained.

[0220] In some possible embodiments, the network training module is configured to execute:

[0221] Based on the audio similarity data, the first network parameters of the first original network are updated to obtain updated first network parameters and an updated first original network;

[0222] Updating the second network parameters of the second original network based on the updated first network parameters to obtain updated second network parameters and an updated second original network;

[0223] The first original network and the second original network are trained cyclically until an iteration termination condition is met;

[0224] The trained first original network is determined as the first target network, and the trained second original network is determined as the second target network.

[0225] In some possible embodiments, the network training module is configured to perform:

[0226] Obtaining second network parameters and sliding average parameters of the second original network;

[0227] Determine an updated second network parameter based on the updated first network parameter, the second network parameter, and the sliding average parameter;

[0228] The second original network is updated based on the updated second network parameters to obtain an updated second original network.

[0229] In some possible embodiments, the first information determination module is configured to execute:

[0230] Get the original audio;

[0231] Cut the original audio into segments to obtain the target audio;

[0232] Perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on the target audio to obtain the target audio feature information.

[0233] In some possible embodiments, the second information determination module is configured to execute:

[0234] Performing one or more of audio data expansion processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing on the target audio feature information to obtain first audio feature information;

[0235] The target audio feature information is subjected to one or more of audio data expansion processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing to obtain second audio feature information; the first audio feature information and the second audio feature information are different.

[0236] In some possible embodiments, the device further includes a first verification module configured to execute:

[0237] Acquire an audio style data set; the audio style data set includes first audio segments corresponding to N audio styles; wherein N is a positive integer greater than 1;

[0238] Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each first audio segment in the audio style data set to obtain third audio feature information corresponding to each first audio segment;

[0239] Inputting the third audio feature information corresponding to each first audio segment into the audio recognition model to obtain the first encoded feature information corresponding to each first audio segment;

[0240] Classify the audio style data set into a plurality of first audio segment sets based on the first encoded feature information corresponding to each first audio segment; each first audio segment set includes at least one first audio segment in the audio style data set;

[0241] When the number of the first audio segment set meets N, it is determined that the audio recognition model verification is successful.

[0242] In some possible embodiments, the device further includes a second verification module configured to execute:

[0243] Acquire an audio scene data set; the audio scene data set includes second audio segments corresponding to M audio scenes; wherein M is a positive integer greater than 1;

[0244] Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each second audio segment in the audio scene data set to obtain fourth audio feature information corresponding to each second audio segment;

[0245] Inputting the fourth audio feature information corresponding to each second audio segment into the audio recognition model to obtain second encoded feature information corresponding to each second audio segment;

[0246] Classifying the audio scene dataset based on the second encoded feature information corresponding to each second audio segment, and dividing the audio scene dataset into a plurality of second audio segment sets; each second audio segment set includes at least one second audio segment in the acoustic scene dataset;

[0247] When the number of the second audio segment sets meets M, it is determined that the audio recognition model verification is successful.

[0248] In some possible embodiments, the first encoding layer and the second encoding layer are both 38-layer residual networks.

[0249] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0250] Fig.10 is a block diagram of an audio recognition device according to an exemplary embodiment. The device has the function of implementing the data processing method in the above method embodiment, and the function can be implemented by hardware or by hardware executing corresponding software. Fig.10The device includes an audio acquisition module 1001, a coding information determination module 1002 and a style scene determination module 1003.

[0251] The audio acquisition module 1001 is configured to acquire the audio to be recognized;

[0252] The coding information determination module 1002 is configured to execute inputting the audio to be recognized into the audio recognition model trained by the audio recognition model training method to obtain coding feature information of the audio to be recognized;

[0253] The style and scene determination module 1003 is configured to determine the style information and / or scene information of the audio to be identified based on the encoding feature information of the audio to be identified.

[0254] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0255] Fig.11 1 is a block diagram of an apparatus 3000 for audio recognition model training or audio recognition according to an exemplary embodiment. For example, the apparatus 3000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0256] Reference Fig.11 , the device 3000 may include one or more of the following components: a processing component 3002, a memory 3004, a power component 3006, a multimedia component 3008, an audio component 3010, an input / output (I / O) interface 3012, a sensor component 3014, and an audio recognition model training component 3016.

[0257] The processing component 3002 generally controls the overall operation of the device 3000, such as operations associated with display, phone calls, data audio recognition model training, camera operation, and recording operation. The processing component 3002 may include one or more processors 3020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 3002 may include one or more modules to facilitate the interaction between the processing component 3002 and other components. For example, the processing component 3002 may include a multimedia module to facilitate the interaction between the multimedia component 3008 and the processing component 3002.

[0258] The memory 3004 is configured to store various types of data to support operations on the device 3000. Examples of such data include instructions for any application or method operating on the device 3000, contact data, phone book data, messages, pictures, videos, etc. The memory 3004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0259] The power supply component 3006 provides power to the various components of the device 3000. The power supply component 3006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 3000.

[0260] The multimedia component 3008 includes a screen that provides an output interface between the device 3000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 3008 includes a front camera and / or a rear camera. When the device 3000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0261] The audio component 3010 is configured to output and / or input audio signals. For example, the audio component 3010 includes a microphone (MIC), and when the device 3000 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 3004 or sent via the audio recognition model training component 3016. In some embodiments, the audio component 3010 also includes a speaker for outputting audio signals.

[0262] I / O interface 3012 provides an interface between processing component 3002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0263] The sensor assembly 3014 includes one or more sensors for providing various aspects of status assessment for the device 3000. For example, the sensor assembly 3014 can detect the open / closed state of the device 3000, the relative positioning of components, such as the display and keypad of the device 3000, and the sensor assembly 3014 can also detect changes in the position of the device 3000 or a component of the device 3000, the presence or absence of user contact with the device 3000, the orientation or acceleration / deceleration of the device 3000, and the temperature change of the device 3000. The sensor assembly 3014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 3014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 3014 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0264] The audio recognition model training component 3016 is configured to facilitate wired or wireless audio recognition model training between the device 3000 and other devices. The device 3000 can access a wireless network based on an audio recognition model training standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the audio recognition model training component 3016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the audio recognition model training component 3016 also includes a near-field audio recognition model training (NFC) module to facilitate short-range audio recognition model training. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0265] In an exemplary embodiment, the apparatus 3000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0266] An embodiment of the present invention also provides a computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing an audio recognition model training method. The at least one instruction or the at least one program is loaded and executed by the processor to implement the audio recognition model training method provided by the above method embodiment.

[0267] An embodiment of the present invention further provides a computer program product, which includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device performs any method in the first aspect of the embodiments of the present disclosure.

[0268] It should be noted that the sequence of the embodiments of the present invention described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0269] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0270] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0271] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for training an audio recognition model, characterized in that: include: Determining target audio feature information; Performing a first data enhancement process and a second data enhancement process on the target audio feature information respectively to obtain first audio feature information and second audio feature information; Based on the first audio feature information and the second audio feature information, audio recognition training is performed on the first original network and the second original network respectively to obtain a first target network and a second target network; the gap between the first audio output data of the first target network and the second audio output data of the second target network is less than or equal to a preset gap; Determine an audio recognition model based on a first encoding layer in the first target network or a second encoding layer in the second target network; The step of performing audio recognition training on the first original network and the second original network based on the first audio feature information and the second audio feature information to obtain the first target network and the second target network includes: Performing audio recognition processing on the first audio feature information through the first original network to obtain the first audio output data; Performing audio recognition processing on the second audio feature information through the second original network to obtain the second audio output data; determining audio similarity data based on the first audio output data and the second audio output data; Training the first original network and the second original network based on the audio similarity data; When the iteration termination condition is met, the first target network and the second target network are obtained.

2. The audio recognition model training method according to claim 1, characterized in that: The first audio output data and the second audio output data have the same data dimension.

3. The audio recognition model training method according to claim 2, characterized in that: The first original network and the second original network are trained based on the audio similarity data; When an iteration termination condition is met, obtaining the first target network and the second target network includes: Based on the audio similarity data, the first network parameters of the first original network are updated to obtain updated first network parameters and an updated first original network; Updating the second network parameters of the second original network based on the updated first network parameters to obtain updated second network parameters and an updated second original network; Circularly training the first original network and the second original network until an iteration termination condition is met; The first original network after training is determined as the first target network, and the second original network after training is determined as the second target network.

4. The audio recognition model training method according to claim 3, characterized in that: The updating of the second network parameters of the second original network based on the updated first network parameters to obtain the updated second network parameters and the updated second original network includes: Obtaining a second network parameter and a sliding average parameter of the second original network; Determine the updated second network parameter based on the updated first network parameter, the second network parameter and the sliding average parameter; The second original network is updated based on the updated second network parameters to obtain the updated second original network.

5. The audio recognition model training method according to any one of claims 1 to 4, characterized in that: The determining of target audio feature information includes: Get the original audio; Cutting the original audio into segments to obtain target audio; Perform logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on the target audio to obtain the target audio feature information.

6. The audio recognition model training method according to claim 1, characterized in that: The performing the first data enhancement processing and the second data enhancement processing on the target audio feature information to obtain the first audio feature information and the second audio feature information includes: Performing one or more of audio data expansion processing, audio data fusion processing, audio data time shift processing, and audio data pitch change processing on the target audio feature information to obtain the first audio feature information; The target audio feature information is subjected to one or more of the audio data expansion processing, the audio data fusion processing, the audio data time shift processing, and the audio data pitch change processing to obtain the second audio feature information; the first audio feature information and the second audio feature information are different.

7. The audio recognition model training method according to any one of claims 1 to 3, characterized in that: After determining the audio recognition model based on the first encoding layer in the first target network, the method further includes: Acquire an audio style data set; the audio style data set includes first audio segments corresponding to N audio styles; wherein N is a positive integer greater than 1; Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each first audio segment in the audio style data set to obtain third audio feature information corresponding to each first audio segment; Inputting the third audio feature information corresponding to each of the first audio segments into the audio recognition model to obtain the first encoding feature information corresponding to each of the first audio segments; Classifying the audio style data set into a plurality of first audio segment sets based on the first encoding feature information corresponding to each first audio segment; each first audio segment set includes at least one first audio segment in the audio style data set; When the number of the first audio segment sets meets the N number, it is determined that the audio recognition model verification is successful.

8. The audio recognition model training method according to any one of claims 1 to 4, characterized in that: After determining the audio recognition model based on the first encoding layer in the first target network, the method further includes: Acquire an audio scene data set; the audio scene data set includes second audio segments corresponding to M audio scenes; wherein M is a positive integer greater than 1; Performing logarithmic Mel feature extraction or Mel cepstral coefficient feature extraction on each second audio segment in the audio scene data set to obtain fourth audio feature information corresponding to each second audio segment; Inputting the fourth audio feature information corresponding to each second audio segment into the audio recognition model to obtain second encoded feature information corresponding to each second audio segment; Classify the audio scene dataset into a plurality of second audio segment sets based on the second encoding feature information corresponding to each second audio segment; each second audio segment set includes at least one second audio segment in the audio scene dataset; When the number of the second audio segment sets meets the M number, it is determined that the audio recognition model verification is successful.

9. The audio recognition model training method according to claim 1, characterized in that: The first coding layer and the second coding layer are both 38-layer residual networks.

10. An audio recognition method, characterized in that: include: Get the audio to be recognized; Inputting the audio to be recognized into an audio recognition model trained according to any one of the audio recognition model training methods according to claims 1 to 9 to obtain encoding feature information of the audio to be recognized; The style information and / or scene information of the audio to be recognized is determined based on the encoding feature information of the audio to be recognized.

11. An audio recognition model training device, characterized in that: include: A first information determination module is configured to determine target audio feature information; A second information determination module is configured to perform a first data enhancement process and a second data enhancement process on the target audio feature information to obtain first audio feature information and second audio feature information; A network training module is configured to perform audio recognition training on a first original network and a second original network based on the first audio feature information and the second audio feature information, respectively, to obtain a first target network and a second target network; a gap between first audio output data of the first target network and second audio output data of the second target network is less than or equal to a preset gap; A recognition model determination module, configured to determine an audio recognition model based on a first encoding layer in the first target network or a second encoding layer in the second target network; The network training module is configured to perform audio recognition processing on the first audio feature information through the first original network to obtain the first audio output data; Performing audio recognition processing on the second audio feature information through the second original network to obtain the second audio output data; determining audio similarity data based on the first audio output data and the second audio output data; The first original network and the second original network are trained based on the audio similarity data; and the first target network and the second target network are obtained when an iteration termination condition is met.

12. An audio recognition device, characterized in that: include: An audio acquisition module is configured to acquire audio to be recognized; The coding information determination module is configured to input the audio to be recognized into an audio recognition model trained according to any one of the audio recognition model training methods according to claims 1 to 9 to obtain coding feature information of the audio to be recognized; The style and scene determination module is configured to determine the style information and / or scene information of the audio to be identified based on the encoding feature information of the audio to be identified.

13. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the audio recognition model training method according to any one of claims 1 to 9 or the audio recognition method according to claim 10.

14. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the audio recognition model training method as described in any one of claims 1 to 9 or the audio recognition method as described in claim 10.

15. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a readable storage medium. At least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device performs the audio recognition model training method according to any one of claims 1 to 9 or the audio recognition method according to claim 10.