A small sample sound recognition method and system based on cross-domain transfer learning
Through cross-domain transfer learning and time-frequency multi-space feature extraction methods, the problem of model instability in small sample sound signal recognition is solved, and high-precision recognition results are achieved, which is suitable for scenarios such as ocean ship noise.
Patent Information
- Application Number
- CN202111632403.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-12-28
AI Technical Summary
The existing technology has poor model accuracy and stability in small-sample sound signal recognition, especially in scenarios where it is difficult to obtain data such as ocean ship noise, making it difficult to design a high-precision small-sample audio recognition algorithm.
A small sample sound recognition method based on cross-domain transfer learning is adopted. Through cross-domain two-stage pre-training and time-frequency multi-space feature extraction of the model, a small amount of labeled sound signal data is used to train a deep neural network, combining deep convolutional networks and recurrent neural networks. network to improve the robustness and generalization of the model.
In the case of only a small amount of labeled data, a model with strong stability and high recognition accuracy is achieved, which is suitable for military, maritime traffic management, marine environmental protection and other fields.
Smart Images

Figure CN114299986B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of sound signal processing, and in particular relates to a small sample sound recognition method and system based on cross-domain transfer learning. Background Art
[0002] Accurate sound signal recognition has important application value in both military and civil fields. In the military field, sound signal target recognition is a key technology for realizing the intelligence of equipment and weapon systems. In addition to military scenarios, sound signal target recognition also plays a very important role in civil issues such as maritime traffic management, fishing and protecting the marine environment. Most of the existing audio recognition methods rely on a large amount of labeled data. In some small sample scenarios where sound data is difficult to obtain (such as surface noise of ships, etc.), the accuracy and stability of the existing methods will be greatly degraded. Designing a high-precision small sample audio recognition algorithm is very challenging and of practical significance. The existing methods are mainly divided into traditional feature extraction and classification algorithms and methods using deep networks for feature extraction and classification. The following introduces these two methods of sound signal recognition.
[0003] 1. Traditional sound signal feature extraction and recognition methods
[0004] Traditional sound signal recognition methods are mainly divided into two stages: feature extraction and feature classification. In the feature extraction stage, various manually designed features are extracted from the original sound signal data; in the feature classification stage, some statistical classification models are used to identify and classify the features extracted in the feature extraction stage.
[0005] In the feature extraction stage, there are a variety of manually designed statistical features. For example, in the literature Zak A. Ships classification basing on acoustic signatures. WSEAS Trans Signal Process 2008; 4(4): 137–49, feature extraction is directly performed using discrete Fourier transform (DFT), while in the literature Zak A. Ship's hydroacoustics signatures classification using neural networks. In: Mwasiagi JI, editor. Self Organizing Maps–applications and novel algorithms design. INTECH; 2011. p. 209–32 and Wang S, Zeng X. Robust underwater noise targets classification using auditory inspired time–frequency analysis. Appl Acoust 2014; 78: 68–76, feature extraction uses Mel-frequency cepstral coefficients (MFCCs) and Hilbert-Huang transform respectively.
[0006] Discrete Fourier transform transforms the signal from the time domain to the frequency domain, and then extracts the spectral characteristics of the signal. Suppose the data in the time domain is f n ,n=0,2,…,N-1, then the frequency domain feature F is obtained through discrete Fourier transform m ,m=0,…,N-1. The transformation formula is:
[0007]
[0008] Where i is the imaginary unit.
[0009] Mel-frequency cepstral coefficients are the coefficients that make up the Mel-frequency cepstral, and the extraction process is as follows:
[0010] 1) Pre-emphasize, frame and window the sound signal first;
[0011] 2) For each short-time window, the corresponding spectrum is obtained by fast Fourier transform (FFT);
[0012] 3) The obtained spectrum is passed through a Mel filter bank to obtain a Mel spectrum;
[0013] 4) Perform cepstrum analysis on the Mel frequency spectrum (take the logarithm and do inverse transformation) to obtain the Mel frequency cepstrum coefficients MFCC.
[0014] Hilbert-Huang transform is an empirical mode decomposition method, which mainly includes two parts. The first part is empirical mode decomposition (EMD); the second part is Hilbert spectrum analysis (HSA). The basic process of HHT processing non-stationary signals is: first, the given signal is decomposed into several intrinsic mode functions (expressed as Intrinsic Mode Function or IMF, also called intrinsic mode function) using the EMD method. These IMFs are components that meet certain conditions; then, each IMF is Hilbert transformed to obtain the corresponding Hilbert spectrum, that is, each IMF is expressed in the joint time-frequency domain; finally, the Hilbert spectrum of all IMFs is summarized to obtain the Hilbert spectrum of the original signal.
[0015] In the feature classification stage, mainstream statistical machine methods are used to classify and identify the extracted features. For example, the hidden Markov model is used in the literature Das A, Borisov N, Caesar M. Fingerprinting smart devices through embedded acoustic components arXiv preprint 2014 Available from: arXiv:1403.3366, while the literature Wang S, Zeng X. Robust underwater noise targets classification using auditory inspired time–frequency analysis. Appl Acoust 2014; 78: 68–76 and Zak A. Ship's hydroacoustics signatures classification using neural networks. In: Mwasiagi JI, editor. Self Organizing Maps–applications and novel algorithms design. INTECH; 2011. p. 209–32 uses support vector machines and neural networks for feature recognition respectively.
[0016] In traditional methods, feature extraction methods and feature classification methods are combined in various ways according to the characteristics of different data. Different combinations may have good effects on data in certain scenarios, but there is no widely applicable method that has a good recognition effect on sound signals in different scenarios, and the generalization and robustness of the model cannot be guaranteed; at the same time, most traditional feature extraction methods only use the characteristics of a certain domain of the sound signal (time domain, frequency domain or time-frequency domain), while ignoring the characteristics of other domains.
[0017] 2. Sound signal recognition based on deep learning
[0018] In recent years, deep learning technology has been widely studied and applied in the field of sound signal recognition, and has achieved remarkable results. It is mainly divided into two types of methods: convolutional neural network (CNN) based and recurrent neural network (RNN) based.
[0019] There are two main types of sound signal recognition methods based on convolutional neural networks: one is to directly use the original one-dimensional sound signal as the input of the network and extract features and classify it through one-dimensional convolution. For example, in the paper Lee J, Park J, Kim KL, et al. Sample-level deep convolutional neural networks for music auto-tagging using raw waveforms [J]. arXiv preprint arXiv, 2017: 1703.01789, Lee et al. used the original audio waveform signal as input and compared the recognition effects under different numbers of convolution layers and convolution kernel sizes; in the paper Dieleman S, Schrauwen B. End-to-end learning for music audio [A]. 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) [C]. 2014: 6964-6968, Dieleman et al. designed a new network structure and compared the recognition effects when using Mel spectrogram and original sound signal as input respectively; the second method is to use the two-dimensional spectrogram as the network input and use two-dimensional convolution to extract features and classification. For example, in the paper Zhang P, Zheng X, Zhang W, et al. A deep neural network for modeling music [A]. Proceedings of the 5th ACM on International Conference on Multimedia Retrieval [C]. 2015: 379-386, Zhang et al. proposed a k-max pooling structure based on CNN to fully extract the information in the spectrogram; in the paper Choi K, Fazekas G, Sandler M. Automatic tagging using deep convolutional neural networks [J]. arXiv preprint arXiv, 2016: 1606.00298, Choi et al. used Mel-spectrogram as the input of the network and adopted convolution and pooling layers of different sizes to extract features at different levels.
[0020] The method based on recurrent network regards the original time domain signal as a time series as the input of the network. Reference Yao Xiaomei. Research on music genre classification method based on LSTM model [D]. Henan University of Science and Technology, 2019 Yao Xiaomei used the long short-term memory model (LSTM) to learn the continuous frame features of sound signals for audio recognition; Reference Huaping Liu. Music Emotion Recognition Using a Variant of Recurrent Neural Network [A]. Science and Engineering Research Center. Proceedings of 2018 International Conference on Mathematics, Modeling, Simulation and Statistics Application (MMSSA 2018) [C]. 2018: 22-25 Liu et al. used the chromaticity spectrum of music as the input of the bidirectional LSTM network to extract high-level features related to emotions.
[0021] Although deep learning has achieved great success in the field of sound recognition, the above methods rely on a large amount of labeled data to train the model. For small sample sound signal data such as ocean ship noise, how to design more targeted deep feature learning and recognition network structures and algorithms based on the physical characteristics of the audio itself is still an urgent problem to be solved. Summary of the invention
[0022] In view of the characteristics of small sample sound signals, the purpose of the present invention is to propose a small sample sound recognition method based on cross-domain transfer learning. This method mainly focuses on the robustness and generalization of deep learning models, solves the model instability problem caused by small sample training data through the model cross-domain two-stage pre-training method, and further improves the model through the method of sound signal time-frequency multi-space feature extraction. Finally, a high-precision recognition model is trained using only a small amount of labeled sound signal data. Small sample learning and sound signal recognition models are organically combined, and a high-precision recognition model can be obtained even with only a small amount of labeled data.
[0023] The present invention is implemented by the following technical solution: a small sample sound recognition method based on cross-domain transfer learning, comprising the following steps:
[0024] Performing Mel time-frequency transformation on the collected original sound signal to obtain a Mel spectrogram of the sound signal, inputting the Mel spectrogram into the established sound recognition model, extracting the time-frequency domain, time domain and frequency domain features of the Mel spectrogram based on the sound recognition model, splicing the time-frequency domain, time domain and frequency domain features of the spectrogram into a fully connected layer to obtain the final sound signal recognition result;
[0025] The sound recognition model training comprises the following steps:
[0026] Collect the original sound signal and annotate part of the data; perform Mel time-frequency transformation on the collected original sound signal to obtain the Mel spectrogram of the sound signal, and collect a large amount of annotated natural image data;
[0027] The collected unlabeled Mel spectrograms and labeled natural images are used to pre-train the deep neural network. Based on the transfer learning and contrastive learning algorithms, the model's feature extraction capability for natural images is transferred to the Mel spectrograms across domains to obtain the pre-trained deep neural network.
[0028] The sound recognition model based on time-frequency multi-space feature extraction extracts the time-frequency multi-space features of the annotated Mel-spectrogram to further train the pre-trained deep neural network to obtain the final sound recognition model; the sound recognition model includes a deep convolutional network and a recurrent neural network.
[0029] The extraction of the Mel spectrogram comprises the following steps:
[0030] The original sound signal is divided into frames and windows, and each window is subjected to Fourier transform to obtain the frequency domain features of each window. The frequency domain features are stacked in the time sequence of the windows to obtain a two-dimensional time-frequency signal.
[0031] The two-dimensional time-frequency signal is filtered using a Mel filter bank to obtain a Mel spectrogram.
[0032] The natural image data is selected from a public natural image database.
[0033] The cross-domain adaptation of the model is achieved based on the two-stage pre-training method. The two-stage pre-training includes the following steps:
[0034] Use labeled natural image datasets to supervise the pre-training of deep neural networks;
[0035] The spectrograms of unlabeled sound signals are used to further pre-train the deep neural network using a self-supervised contrastive learning algorithm.
[0036] When using the spectrogram of unlabeled sound signals to further pre-train the deep neural network using a self-supervised contrastive learning algorithm, the contrastive learning algorithm is combined with the sound signal, and each input data is randomly perturbed twice to obtain two randomly perturbed data. Then, the features of the two randomly perturbed data are extracted through a deep convolutional neural network for contrastive learning training.
[0037] The data enhancement specifically includes: adding noise, changing pitch, time stretching and time shifting the input data in sequence.
[0038] For the deep neural network obtained by double-stage pre-training, the sound recognition model is obtained by further training the deep neural network based on time-frequency multi-space feature extraction. Its mathematical expression is as follows:
[0039]
[0040] Where I is the Mel spectrogram of the annotated sound signal, f1(θ) is a deep convolutional network used to extract the time-frequency-spatial feature z1 of the sound spectrogram, f2(θ) and f3(θ) are recurrent neural networks used to extract the time-spatial feature z2 and frequency-spatial feature z3 of the spectrogram, respectively. is the concatenation operation of the vector, f4(θ) is a fully connected network used to generate the final classification result P, I is the spectrogram of the sound signal, P = {p1, p2, ..., p n} is a one-dimensional vector, where p i is the probability value that the audio belongs to the i-th category; f1(θ) uses ResNet or DenseNet for image feature extraction, f2(θ) and f3(θ) use recurrent neural network structures, LSTM or GRU, and θ is the parameter of the deep network.
[0041] On the other hand, the present invention provides a small sample sound recognition system based on cross-domain transfer learning, including a data acquisition module and a recognition module, the data acquisition module is used to perform Mel time-frequency transformation on the collected original sound signal to obtain a Mel spectrogram of the sound signal, and input the Mel spectrogram into the established sound recognition model;
[0042] The recognition module is used to extract the time-frequency domain, time domain and frequency domain features of the Mel-spectrogram based on the sound recognition model, and splice the time-frequency domain, time domain and frequency domain features of the spectrogram into a fully connected layer to obtain the final sound signal recognition result; wherein, the sound recognition model is obtained by the following steps:
[0043] The sound recognition model training comprises the following steps:
[0044] Collect the original sound signal and annotate part of the data; perform Mel time-frequency transformation on the collected original sound signal to obtain the Mel spectrogram of the sound signal, and collect a large amount of annotated natural image data;
[0045] The collected unlabeled Mel spectrograms and labeled natural images are used to pre-train the deep neural network. Based on the transfer learning and contrastive learning algorithms, the model's feature extraction capability for natural images is transferred to the Mel spectrograms across domains to obtain the pre-trained deep neural network.
[0046] The sound recognition model based on time-frequency multi-space feature extraction extracts the time-frequency multi-space features of the annotated Mel-spectrogram to further train the pre-trained deep neural network to obtain the final sound recognition model; the sound recognition model includes a deep convolutional network and a recurrent neural network.
[0047] In addition, the present invention can also provide a computer device, including a processor and a memory, the memory is used to store a computer executable program, the processor reads the computer executable program from the memory and executes it, and when the processor executes the computer executable program, it can implement the small sample sound recognition method based on cross-domain transfer learning described in the present invention.
[0048] At the same time, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the small sample sound recognition method based on cross-domain transfer learning described in the present invention can be implemented.
[0049] Compared with the prior art, the present invention has at least the following beneficial technical effects:
[0050] The present invention provides a small sample sound recognition method based on cross-domain transfer learning. This method can obtain a model with strong stability and high recognition accuracy when there are only a small number of labeled sound signals. The method mainly includes two steps: cross-domain two-stage pre-training of the model and sound recognition based on time-frequency multi-space feature extraction; the cross-domain two-stage pre-training of the model mainly uses transfer learning and contrastive learning to allow the model pre-trained on natural images to gradually adapt to the spectrogram of sound data, ensuring the robustness and feature extraction ability of the model, and making the model more generalizable and discriminative for the spectrogram of sound data; the sound recognition model based on time-frequency multi-space feature extraction includes two parts: a deep convolutional network and a recurrent neural network. The deep convolutional network can be a currently popular image segmentation network structure, and the multi-space features of the sound signal are used for recognition, which can improve the recognition accuracy and the stability of the model;
[0051] In summary, the present invention provides a small sample sound recognition method based on cross-domain transfer learning. This method uses only a small amount of labeled sound signal data to train a high-precision recognition model, which has important application value in military, maritime traffic management, fishing and marine environment protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a specific process framework diagram of the present invention;
[0053] Figure 2 It is the overall network architecture diagram of the sound signal recognition model;
[0054] Figure 3 It is the algorithm flow chart of comparative learning of sound signal data. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific examples. These examples are only illustrative and not limiting of the present invention.
[0056] like Figure 1 As shown, the present invention provides a small sample sound recognition method based on cross-domain transfer learning, comprising:
[0057] 1. Constructing a framework for a small sample sound recognition method based on cross-domain transfer learning
[0058] Construct a small sample sound signal recognition system framework. Figure 1 As shown, firstly, all the data to be used are preprocessed and feature extracted, then the model is pre-trained in a cross-domain two-stage manner from natural images to sound spectrograms, and finally, on this basis, the model is used to extract the time-frequency multi-space features of the sound signal and output the recognition type of the sound signal.
[0059] 2. Model cross-domain two-stage pre-training based on small sample learning
[0060] For the problem of small sample sound signal recognition, due to the small number of labeled training samples, the model directly trained with small sample data is not robust and has low accuracy. Therefore, the present invention proposes a cross-domain two-stage pre-training method for the model to solve the problem of small sample training. First, the model is trained on a natural image dataset where data acquisition is relatively easy, and then the model is gradually adapted to the spectrogram of the sound signal.
[0061] Specifically, we first pre-train the deep neural network in a supervised manner on a large number of labeled natural image datasets, ImageNet. A large amount of training data will make the deep neural network have strong robustness and discrimination ability.
[0062] Next, in order to adapt the model to the spectrogram of the sound signal, the contrastive learning algorithm is organically combined with the sound signal. The contrastive learning algorithm process is as follows: Figure 3 As shown, the core is to perform two random disturbances on each input data to obtain two randomly disturbed data, and then extract the features of the two randomly disturbed data respectively through a deep convolutional neural network, control the features extracted from the two disturbed data of the same data to be as close as possible, and the features extracted from the disturbed data of different data to be as separable as possible. Specifically, when using the contrastive learning algorithm, the present invention first performs two random data enhancements on the sound signal in the time domain, and the data enhancement methods include: Noise addition (adding noise), Pitchshifting (changing pitch), Time stretching (time stretching) and Shift / Time shifting (time shifting), and then converts the two disturbed time domain signals into Mel spectrograms as input features of the neural network for contrastive learning training. Performing data enhancement in the time domain can ensure that the enhancement is practical and small, and will not change the discriminability of the signal. The contrastive learning algorithm can allow the model to further adapt to the spectrogram of the sound signal, so that the model has better generalization and feature extraction capabilities.
[0063] The model cross-domain two-stage pre-training method proposed in this invention solves the problem of instability of small sample audio recognition model through two steps of transfer learning and contrastive learning. Transfer learning can improve the robustness and discrimination ability of the model, and contrastive learning organically combined with sound signals can make the model have stronger feature extraction ability and generalization for the spectrogram of sound signals.
[0064] 3. Sound signal recognition model based on time-frequency multi-space features
[0065] The horizontal axis of the spectrogram of the sound signal is the time axis, and the vertical axis is the frequency axis, which contains rich information of the sound signal. Specifically, different positions of the entire image reflect the time-frequency domain information of different (time, frequency) combinations; the horizontal axis reflects the sequence information of the frequency domain over time; the vertical axis reflects the sequence information of the time domain over frequency. The present invention designs a time-frequency multi-space feature model to extract the features of the time-frequency domain, time domain and frequency domain of the spectrogram respectively, and gives the final recognition result by combining the features of the three domains.
[0066] The mathematical modeling of sound signal recognition based on time-frequency multi-space features is as follows:
[0067]
[0068] Where f1(θ) is a deep convolutional network used to extract the time-frequency domain features z1∈R of the audio 512×1, f2(θ) and f3(θ) are recurrent neural networks, which are used to extract time domain features z2∈R 512×1 and frequency domain features z3∈R 512×1 , is the concatenation operation of the vector, f4(θ) is a fully connected network, which is used to generate the final classification result P; I is the spectrogram of the sound signal, P = {p1, p2, ..., p n} is a one-dimensional vector, where p i is the probability value that the audio belongs to the i-th category.
[0069] f1(θ) can be a popular network structure for image feature extraction, such as ResNet, DenseNet, etc. f2(θ) and f3(θ) can be any recurrent neural network structure, such as LSTM, GRU, etc. θ is a parameter of the deep network. Figure 2 As shown, a model framework selected by the present invention is shown, which uses a 34-layer ResNet model to extract the time-frequency domain features of the spectrogram, and uses two LSTM models to extract the time domain and frequency domain features of the spectrogram respectively, and then concatenates the time-frequency domain features, the time domain and frequency domain features and sends them to a fully connected layer to obtain the final sound signal recognition result.
[0070] The sound signal recognition model based on time-frequency multi-space features designed by the present invention can fully extract the features of the sound signal in the time-frequency domain, time domain and frequency domain, and the rich features can improve the recognition accuracy of the model.
[0071] A small sample sound recognition system based on cross-domain transfer learning includes a data acquisition module and a recognition module, wherein the data acquisition module is used to perform Mel time-frequency transformation on the collected original sound signal to obtain a Mel spectrogram of the sound signal, and input the Mel spectrogram into the established sound recognition model;
[0072] The recognition module is used to extract the time-frequency domain, time domain and frequency domain features of the Mel-spectrogram based on the sound recognition model, and splice the time-frequency domain, time domain and frequency domain features of the spectrogram into a fully connected layer to obtain the final sound signal recognition result; wherein, the sound recognition model is obtained by the following steps:
[0073] The sound recognition model training comprises the following steps:
[0074] Collect the original sound signal and annotate part of the data; perform Mel time-frequency transformation on the collected original sound signal to obtain the Mel spectrogram of the sound signal, and collect a large amount of annotated natural image data;
[0075] The collected unlabeled Mel spectrograms and labeled natural images are used to pre-train the deep neural network. Based on the transfer learning and contrastive learning algorithms, the model's feature extraction capability for natural images is transferred to the Mel spectrograms across domains to obtain the pre-trained deep neural network.
[0076] The sound recognition model based on time-frequency multi-space feature extraction extracts the time-frequency multi-space features of the annotated Mel-spectrogram to further train the pre-trained deep neural network to obtain the final sound recognition model; the sound recognition model includes a deep convolutional network and a recurrent neural network.
[0077] In addition, the present invention can also provide a computer device, including a processor and a memory, the memory is used to store a computer executable program, the processor reads part or all of the computer executable program from the memory and executes it, and when the processor executes part or all of the computer executable program, it can implement the small sample sound recognition method based on cross-domain transfer learning described in the present invention.
[0078] On the other hand, the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the small sample sound recognition method based on cross-domain transfer learning described in the present invention can be implemented.
[0079] The computer device may be a laptop computer, a desktop computer or a workstation.
[0080] The processor may be a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or an off-the-shelf field programmable gate array (FPGA).
[0081] The memory of the present invention may be an internal storage unit of a laptop computer, a desktop computer or a workstation, such as a memory or a hard disk; or an external storage unit, such as a mobile hard disk or a flash memory card.
[0082] Computer-readable storage media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer-readable storage media may include: read-only memory (ROM), random access memory (RAM), solid-state drive (SSD) or optical disk, etc. Among them, random access memory may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM).
[0083] 4. Verification of Model Validity
[0084] The recognition of surface ship sound signals is a typical small sample sound signal recognition problem. The method of the present invention was subjected to an ablation experiment on the public Shipsear surface ship sound dataset, and the results are shown in Table 1. The recognition accuracy of the original model trained directly on the small sample data was 69.23%; the recognition accuracy after the model was pre-trained using cross-domain two-stage training was 84.62%; the recognition accuracy could reach 88.46% by using the model's cross-domain two-stage pre-training and multi-space feature recognition method at the same time. This experiment also fully verified the effectiveness of the small sample sound recognition method based on cross-domain transfer learning of the present invention, and a robust and accurate model can be obtained by relying only on a small amount of labeled sound signal data.
[0085] Table 1 shows the ablation test results of the model on the Shipsear dataset
[0086]
[0087] Although the present invention has been described in detail with general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements may be made thereto based on the present invention. Therefore, these modifications or improvements made on the basis of not departing from the spirit of the present invention all belong to the scope of protection claimed in the present invention.
Claims
1. A small sample sound recognition method based on cross-domain transfer learning, characterized in that: The following steps are involved: Performing Mel time-frequency transformation on the collected original sound signal to obtain a Mel spectrogram of the sound signal, inputting the Mel spectrogram into the established sound recognition model, extracting the time-frequency domain, time domain and frequency domain features of the Mel spectrogram based on the sound recognition model, splicing the time-frequency domain, time domain and frequency domain features of the spectrogram into a fully connected layer to obtain the final sound signal recognition result; The sound recognition model training comprises the following steps: Collect the original sound signal and annotate part of the data; Perform Mel time-frequency transformation on the collected original sound signal to obtain the Mel spectrogram of the sound signal, and collect a large amount of annotated natural image data; The collected unlabeled Mel spectrograms and labeled natural images are used to pre-train the deep neural network. Based on the transfer learning and contrastive learning algorithms, the model's feature extraction capability for natural images is transferred to the Mel spectrograms across domains to obtain the pre-trained deep neural network. The sound recognition model based on time-frequency multi-space feature extraction extracts the time-frequency multi-space features of the annotated Mel-spectrogram to further train the pre-trained deep neural network to obtain the final sound recognition model; the sound recognition model includes a deep convolutional network and a recurrent neural network.
2. The small sample sound recognition method based on cross-domain transfer learning according to claim 1 is characterized in that: The extraction of the Mel-gram spectrogram comprises the following steps: The original sound signal is divided into frames and windows, and each window is subjected to Fourier transform to obtain the frequency domain features of each window. The frequency domain features are stacked in the time sequence of the windows to obtain a two-dimensional time-frequency signal. The two-dimensional time-frequency signal is filtered using a Mel filter bank to obtain a Mel spectrogram.
3. The small sample sound recognition method based on cross-domain transfer learning according to claim 1 is characterized in that: The natural image data is selected from a public natural image database.
4. The small sample sound recognition method based on cross-domain transfer learning according to claim 1 is characterized in that: The cross-domain adaptation of the model is achieved based on the two-stage pre-training method. The two-stage pre-training includes the following steps: Use labeled natural image datasets to supervise the pre-training of deep neural networks; The spectrograms of unlabeled sound signals are used to further pre-train the deep neural network using a self-supervised contrastive learning algorithm.
5. The small sample sound recognition method based on cross-domain transfer learning according to claim 4 is characterized in that: When using the spectrogram of unlabeled sound signals to further pre-train the deep neural network using a self-supervised contrastive learning algorithm, the contrastive learning algorithm is combined with the sound signal, and each input data is randomly perturbed twice to obtain two randomly perturbed data. Then, the features of the two randomly perturbed data are extracted through a deep convolutional neural network for contrastive learning training.
6. The small sample sound recognition method based on cross-domain transfer learning according to claim 5 is characterized in that: The data enhancement specifically includes: adding noise, changing pitch, time stretching and time shifting the input data in sequence.
7. The small sample sound recognition method based on cross-domain transfer learning according to claim 1 is characterized in that: For the deep neural network obtained by double-stage pre-training, the sound recognition model is obtained by further training the deep neural network based on time-frequency multi-space feature extraction. Its mathematical expression is as follows: in is a Mel spectrogram with annotated sound signals, It is a deep convolutional network used to extract the time-frequency-spatial features of the sound spectrogram. , and is a recurrent neural network, which is used to extract the temporal and spatial features of the spectrogram and frequency-space characteristics , is the vector concatenation operation, It is a fully connected network used to generate the final classification results , is the spectrogram of the sound signal, is a one-dimensional vector, where The sound signal belongs to The probability value of the class, i =1,2,3…, n , n is the total number of categories; Using ResNet or DenseNet for image feature extraction, and Using a recurrent neural network structure, LSTM or GRU, are the parameters of the deep network.
8. A small sample sound recognition system based on cross-domain transfer learning, characterized in that: It includes a data acquisition module and a recognition module. The data acquisition module is used to perform Mel time-frequency transformation on the collected original sound signal to obtain a Mel spectrogram of the sound signal, and input the Mel spectrogram into the established sound recognition model; The recognition module is used to extract the time-frequency domain, time domain and frequency domain features of the Mel-spectrogram based on the sound recognition model, and splice the time-frequency domain, time domain and frequency domain features of the spectrogram into a fully connected layer to obtain the final sound signal recognition result; wherein, the sound recognition model is obtained by the following steps: The sound recognition model training comprises the following steps: Collect the original sound signal and annotate part of the data; perform Mel time-frequency transformation on the collected original sound signal to obtain the Mel spectrogram of the sound signal, and collect a large amount of annotated natural image data; The collected unlabeled Mel spectrograms and labeled natural images are used to pre-train the deep neural network. Based on the transfer learning and contrastive learning algorithms, the model's feature extraction capability for natural images is transferred to the Mel spectrograms across domains to obtain the pre-trained deep neural network. The sound recognition model based on time-frequency multi-space feature extraction extracts the time-frequency multi-space features of the annotated Mel-spectrogram to further train the pre-trained deep neural network to obtain the final sound recognition model; the sound recognition model includes a deep convolutional network and a recurrent neural network.
9. A computer device, characterized in that: It includes a processor and a memory, the memory is used to store a computer executable program, the processor reads the computer executable program from the memory and executes it, and when the processor executes the computer executable program, it can implement the small sample sound recognition method based on cross-domain transfer learning as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored in a computer-readable storage medium. When the computer program is executed by a processor, the small sample sound recognition method based on cross-domain transfer learning as described in any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Speech emotion recognition method based on parameter migration and spectrogram
CN108597539A
Parallel feature extraction system and method for general specific voice in voice signal
CN110992987A
Voice emotion recognition method based on attention CNN Bi-GRU fusion visual information
CN113643723A
Training method of emotion recognition model, emotion recognition method, device, apparatus, and storage medium
WO2020173133A1
