A method of acoustic signal recognition based on generalized regression neural network using Mel-frequency cepstral coefficients
By combining the Mel frequency cepstrum coefficient and the generalized regression neural network, the MFCC features of the acoustic signal are extracted and the GRNN model is optimized, which solves the problems of the complexity of acoustic signal recognition and unstable recognition performance in the signal-to-noise ratio environment in the existing technology, and achieves Robust recognition performance under multiple signal-to-noise ratios.
Patent Information
- Application Number
- CN202210304605.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-03-21
AI Technical Summary
Existing machine learning methods in acoustic signal recognition are complex and require training a large number of network parameters, and the recognition performance is unstable in multiple signal-to-noise ratio environments. It is especially difficult to achieve effective recognition when the signal-to-noise ratio is low.
The method of combining Mel frequency cepstrum coefficients with generalized regression neural network (GRNN) is used to optimize the GRNN model by extracting MFCC features, performing FFT and Mel filtering, calculating cepstral difference parameters, and using k-fold cross-validation to determine the optimal expansion factor. To realize the recognition of acoustic signals.
It can robustly identify seal species under different signal-to-noise ratios, and can still achieve accurate identification especially at low signal-to-noise ratios. It is better than traditional SVM and CNN methods, and has a simple structure and fewer parameters.
Smart Images

Figure CN115331678B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the fields of digital signal processing, machine learning and underwater acoustic measurement, and relates to a generalized regression neural network acoustic signal recognition method using Mel frequency cepstral coefficients. The Mel frequency cepstral coefficients and the generalized regression neural network model are used to realize acoustic signal recognition under multiple signal-to-noise ratios. Background Art
[0002] In the context of the rapid development of machine learning technology, data-driven models such as neural networks can mine the deep features of different target acoustic signals, and can reduce the impact of noise to a large extent, effectively realizing the autonomy and intelligence of classification decisions. Therefore, in the field of sound signal processing, machine learning methods have been widely studied and applied. In 2012, Liu Jian et al. extracted the energy spectrum features of the acoustic signal and input it into the classification model of the support vector machine (SVM). The results showed that this method can effectively identify the ship radiation noise signal (Liu Jian, Liu Zhong, Xiong Ying. Underwater target recognition based on wavelet packet energy spectrum and SVM. Journal of Wuhan University of Technology: Transportation Science and Engineering Edition, 2012, 36(2):5.). In 2017, Yue et al. established a deep brief network (DBN) model to achieve unlabeled underwater target acoustic signal recognition (Hao Y, Zhang L, Wang D, et al. The Classification of Underwater Acoustic Targets Based on Deep Learning Methods. 2017 2nd International Conference on Control, Automation and Artificial Intelligence. 2017.). In 2019, Lv Haitao et al. used convolutional neural networks (CNN) to classify the framed and normalized ship noise signals. The results showed that the classification performance was better than the traditional high-order spectrum classification method (Lv Haitao, Gong Jianwen, Kong Xiaopeng. Underwater acoustic target classification technology based on convolutional neural network. Ship Electronic Engineering, 2019, 39 (2): 158–162.). In 2020, Zhong et al. collected underwater sound signals and input them into a CNN model for beluga whale detection (Zhong M, Castellote M, Dodhia R, et al. Beluga whale acoustic signal classification using deep learning neural network models. The Journal of the Acoustical Society of America, 147(3): 1834.).In 2021, Mishachandar et al. used CNN to identify ocean noise, and effectively identified human sounds, natural sounds, and marine animal sounds through the CNN model (Mishachandar B, Vairamuthu S. Diverse ocean noise classification using deep learning. Applied Acoustics, 2021.). The above sound signal recognition methods based on machine learning models are often more complicated, requiring the training of a large number of network parameters and taking a long time to train.
[0003] In summary, in multiple signal-to-noise ratio environments, a machine learning method that combines acoustic signal feature extraction technology with the nonlinear fitting ability of neural networks and has a simple structure and fewer parameters is essential. Summary of the invention
[0004] Technical issues to be solved
[0005] In order to avoid the shortcomings of the prior art, the present invention proposes a generalized regression neural network acoustic signal recognition method using Mel-frequency cepstral coefficients.
[0006] Technical Solution
[0007] A method for acoustic signal recognition using a generalized regression neural network using Mel frequency cepstrum coefficients, characterized by the following steps:
[0008] Step 1: Extract MFCC features from the collected underwater acoustic signal;
[0009] Step 2: Perform FFT on each frame of signal to obtain the spectrum;
[0010] Step 3: Filter the spectrum through a set of triangular bandpass filters to obtain Mel filtering;
[0011] Step 4: Calculate the logarithmic energy of each filter output and calculate its discrete cosine transform to obtain the L-order MFCC;
[0012] Step 5: Calculate the cepstral difference parameters from L MFCC cepstral coefficient values, and combine the three parameters of MFCC, first-order and second-order cepstral difference parameters as the feature vector of the signal;
[0013] Step 6: Use 3 / 4 of all processed data as training and validation data, and the rest as testing of the GRNN model;
[0014] Step 7: Randomly divide the data used for model training and validation into k folds, and use the k-fold cross-validation method to determine the optimal expansion factor. The measurement indicators of the validation set recognition results under different expansion factors are as follows:
[0015]
[0016] Where N is the number of samples, is the number of samples correctly identified among N samples;
[0017] The validation set is 1 fold, and the training set is the other k-1 folds;
[0018] Step 7: For each expansion factor, first use the training set for training, then test the validation set, and calculate the corresponding accuracy; use each fold of training samples as a validation set, repeat the above process, and count and calculate the mean of k accuracies, that is, the average accuracy;
[0019] Repeat the above steps for all expansion factors, and take the expansion factor corresponding to the minimum value of average accuracy as the optimal expansion factor;
[0020] Step 8: Use the obtained optimal expansion factor as the parameter of the GRNN model, and use the training data to train the GRNN model. Then input the test data under multiple signal-to-noise ratios into the model, perform acoustic signal recognition on the test data, statistically analyze the recognition results, and analyze the recognition performance of the GRNN model, so as to realize recognition of real-time data with the trained and tested GRNN model.
[0021] When extracting the MFCC features, the collected sound signal is pre-processed by pre-emphasis, framing and windowing.
[0022] The value range of the expansion factor is: 0.01, 0.02, ..., 0.1, with a step size of 0.01.
[0023] Beneficial Effects
[0024] The present invention proposes a method for identifying acoustic signals using a generalized regression neural network using Mel frequency cepstrum coefficients, which combines MFCC and GRNN, gives full play to the advantages of MFCC rich in sound features and GRNN nonlinear fitting, and effectively identifies seal species. First, the MFCC features of the acoustic signal are extracted, FFT and Mel filtering are performed, the L-order MFCC is obtained, the cepstrum difference parameters are calculated, and the GRNN model is tested, wherein the k-fold cross-validation method is used to determine the optimal expansion factor, the method divides the training data into k folds, and uses them as validation sets for testing in turn, the obtained optimal expansion factor is used for GRNN training, and the test sound data is identified.
[0025] This study analyzes the recognition performance of this method under different signal-to-noise ratios. Gaussian white noise is added to the initial sound signal, and the noise bandwidth corresponds to the sound signals of different types of seals. The signal-to-noise ratios are 10dB, 5dB and 0dB respectively. The initial signal of the leopard seal and the waveform of the signal under different signal-to-noise ratios are taken as examples. Figure 6 As shown in Figure 1, the lower the signal-to-noise ratio, the more glitches appear in the signal. This study uses 10-fold cross validation to train and validate the GRNN model. The GRNN optimization expansion factor process of the MFCC features of each scene is as follows: Figure 7 As shown, it can be analyzed that, in general, as the expansion factor increases, the recognition performance decreases, and the optimal expansion factor is concentrated between 0 and 0.1.
[0026] This study uses SVM and CNN as comparison models. The SVM model uses the radial basis function as the kernel function. The CNN model structure is as follows: Figure 8 As shown, the optimization algorithm uses the Sgdm algorithm. Table 1, Table 2 and Table 3 are the recognition accuracy of GRNN, CNN and SVM methods in various scenarios, respectively. A, B and C represent leopard seals, Ross seals and Weddell seals, respectively. GRNN, CNN and SVM methods can effectively identify seal species under high signal-to-noise ratio, but the reduction of signal-to-noise ratio has a greater impact on the SVM method. When the signal-to-noise ratio is 0dB, the error of the SVM method is large and effective recognition cannot be achieved. Compared with SVM, the CNN method is less affected by the reduction of signal-to-noise ratio. Under high signal-to-noise ratio, it is not much different from the GRNN method. GRNN is only better than the CNN method to a certain extent, but under low signal-to-noise ratio, especially at 0dB, the error of the CNN method is large. The reduction of signal-to-noise ratio has the least impact on the GRNN method. When the signal-to-noise ratio is above 5dB, the GRNN method can achieve accurate recognition, and when the signal-to-noise ratio is 0dB, the GRNN method can still achieve approximate recognition. In general, GRNN can robustly identify seal species at all signal-to-noise ratios, because the MFCC-GRNN model combines the feature advantages of MFCC and the nonlinear fitting ability of GRNN. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 : GRNN model structure diagram
[0028] Figure 2 :Overall flow chart of seal species identification method based on MFCC and GRNN
[0029] Figure 3 : Watkins database collection map
[0030] Figure 4 : Waveforms of sounds of different types of seals
[0031] Figure 5:MFCC features of different types of seals
[0032] (a) Leopard seal; (b) Ross seal; (c) Weddell seal
[0033] Figure 6 :The initial signal and waveforms under different signal-to-noise ratios
[0034] Figure 7 : GRNN optimization expansion factor process for each scenario
[0035] Figure 8 : CNN structure diagram DETAILED DESCRIPTION
[0036] The present invention will now be further described with reference to the embodiments and the accompanying drawings:
[0037] Mel-frequency cepstral coefficient (MFCC) is a widely used feature in speech recognition, which is based on the characteristics of the human ear. Due to the special structure of the human ear, the listener can automatically separate the low-frequency part and the high-frequency part of the speech, among which the low-frequency part is the main part of identifying the characteristics of the speech.
[0038] The generalized regression neural network (GRNN), which belongs to the feedforward neural network, is based on kernel regression analysis and has good nonlinear mapping capabilities. GRNN obtains the conditional probability density function by calculating the input and output of the training data and the input of the test data, and further obtains the output of the test data. GRNN contains an input layer, a pattern layer, a summation layer, and an output layer, and only requires one network parameter, while other neural network models generally require the selection of multiple parameters. Therefore, GRNN has obvious advantages in network construction. GRNN has only one network parameter, and optimizing the expansion factor can improve its training performance. This study uses k-fold cross validation to determine the optimal expansion factor. Figure 1 This is the structure diagram of the GRNN model.
[0039] This study proposes a method to accurately identify seal species based on GRNN input MFCC features. This study combines MFCC and GRNN to give full play to the advantages of MFCC's rich sound features and GRNN's nonlinear fitting to effectively identify seal species.
[0040] The technical solution adopted by the present invention to solve the technical problem comprises the following steps:
[0041] 1) This study needs to extract the MFCC features of the sound signal. First, the collected sound signal is preprocessed. The preprocessing process includes pre-emphasis, framing and windowing. Pre-emphasis is to make the spectrum of the signal smoother by enhancing the spectrum of the high-frequency part of the signal. Framing can divide the signal into several short-term signals, and the signal can be regarded as a stable process within the short period of time. In the framing process, overlapping segmentation is generally used to make the transition between frames smooth. Windowing is to reduce the truncation effect of the signal.
[0042] 2) After preprocessing, perform FFT on each frame of signal to obtain the spectrum.
[0043] 3) The spectrum is then filtered through a set of triangular bandpass filters to obtain Mel filtering.
[0044] 4) Calculate the logarithmic energy of each filter output and calculate its discrete cosine transform to obtain the L-order MFCC.
[0045] 5) Calculate the delta cepstrum parameters according to the L MFCC cepstrum coefficients, and combine the three parameters of MFCC, first-order and second-order cepstrum difference parameters as the feature vector of the signal.
[0046] 6) The collected sound data of different types are randomly divided in proportion, one part is used for training and verification data, and the other is used for testing the GRNN model.
[0047] 7) This study selects the range and step size of the expansion factor to obtain a large number of expansion factors for the optimization of the GRNN model.
[0048] 8) Each expansion factor is used for training the GRNN model, and the optimal expansion factor is determined by using the k-fold cross-validation method. This method divides the training data into k folds and uses them as validation sets for testing in turn. The expansion factor with the best recognition performance on the validation set is selected as the optimal expansion factor.
[0049] 9) The obtained optimal expansion factor is used for GRNN training and the test sound data is recognized.
[0050] Specific implementation process
[0051] By extracting MFCC features and optimizing expansion factors, the GRNN model can make full use of training data and optimization models to realize the recognition of sound signals. Figure 2 The overall process of construction and training is divided into the following steps:
[0052] 1) Data preprocessing includes pre-emphasis, framing and windowing. Pre-emphasis: enhance the spectrum of the high-frequency part of the signal to make the spectrum of the signal smoother; framing: divide the signal into several short time periods, and the signal can be regarded as a stable process in the short time period; windowing: let the signal be s(n) and the window function be w(n). The signal s'(n) obtained after windowing is:
[0053] s'(n)=s(n)w(n) (1)
[0054] Where 0≤n≤N-1, N is the number of sample points, and w(n) is usually the Hamming window.
[0055] 2) After preprocessing, perform FFT on each frame of the signal to obtain the spectrum, the discrete spectrum S' of the signal a (k) is:
[0056]
[0057] 3) The spectrum is filtered through a set of triangular bandpass filters to obtain Mel filtering. There are M filters with a center frequency of f(m), where m = 1, 2, ..., M. The formula of the triangular filter is:
[0058]
[0059] 4) Calculate the logarithmic energy of each filter output:
[0060]
[0061] 5) Perform discrete cosine transform on the calculated M logarithmic energies to obtain the L-order MFCC, where L is usually 12 to 16. The discrete cosine transform formula is:
[0062]
[0063] 6) Calculate the cepstral difference parameters based on L MFCC cepstral coefficient values, the formula is as follows:
[0064]
[0065] In the formula, d represents the nth first-order difference result, C n represents the nth cepstrum coefficient calculated by formula (5), L represents the order when obtaining MFCC, and K represents the time difference of the first-order derivative, which can be 1 or 2. When the calculation result is put into formula (6), the second-order difference result can be obtained.
[0066] 7) The three-part parameter combination of MFCC, first-order cepstral difference parameters and second-order cepstral difference parameters is used as the signal feature vector of the input GRNN model.
[0067] 8) Randomly select 3 / 4 of the data from each type of sound data for model training and verification, and the remaining 1 / 4 is used for data testing.
[0068] 9) This study uses the k-fold cross-validation method to determine the optimal expansion factor. This method first needs to determine the range of the expansion factor, such as 0.01, 0.02, …, 0.1, with a step size of 0.01.
[0069] 10) Randomly divide the data used for model training and validation into k folds, with the validation set being 1 of the folds and the training set being the other k-1 folds.
[0070] 11) Accuracy is used as a measure of the recognition results of the validation set under different expansion factors. The formula is as follows:
[0071]
[0072] Where N is the number of samples, is the number of samples correctly identified among N samples.
[0073] 12) For each expansion factor, first use the training set for training, then test the validation set, and calculate the corresponding accuracy; use each fold of training samples as a validation set, repeat the above process, and count and calculate the mean of k accuracies, that is, the average accuracy.
[0074] 13) Repeat the above steps for all expansion factors, and take the expansion factor corresponding to the minimum value of the average accuracy as the optimal expansion factor.
[0075] 14) The obtained optimal expansion factor is used as the parameter of the GRNN model, and the training data is used to train the GRNN model. Then, the test data under multiple signal-to-noise ratios are input into the model, and the test data is subjected to acoustic signal recognition, and the recognition results are statistically analyzed. The recognition performance of the GRNN model is analyzed, and the trained and tested GRNN model can recognize real-time data.
[0076] Specific implementation examples:
[0077] This study uses the underwater acoustic signals of seals as an example to identify the species of leopard seals, Ross seals and Weddell seals. The above three seals all live in Antarctica and are likely to appear in the same sea area. The input data used in this study are the target acoustic signals of leopard seals, Ross seals and Weddell seals in the Watkins Marine Mammal Sound Database. Figure 3 The seal data used in this study is in the elliptical area. Figure 4 Waveform diagrams of the sounds made by different types of seals.
[0078] The input of this study is the MFCC features of audio data. First, each segment of data is segmented, with 256 samples in each segment and an offset of 128 samples in each segment, which is consistent with the frame division of previous studies. The MFCC of each segment of data is calculated. During the extraction process, 24 groups of filters are set, and their first-order and second-order differential coefficients are calculated. The MFCC, first-order and second-order differential coefficients are fused to obtain a 1*36 feature vector for each segment of data, which is used as the feature input of a single sample. For each category, 3 / 4 of the data is selected for data training, and the remaining 1 / 4 is used for data testing, resulting in 14,762 training samples and 4,923 test samples. The MFCC features of leopard seals, Ross seals and Weddell seals are as follows: Figure 5 (a) Figure 5 (b) Figure 5 (c) as shown.
[0079] In practical applications, there are often different degrees of environmental noise in the ocean. This study analyzes the recognition performance of this method under different signal-to-noise ratios. Gaussian white noise is added to the initial sound signal, and the noise bandwidth corresponds to the sound signals of different types of seals. The signal-to-noise ratios are 10dB, 5dB and 0dB respectively. The initial signal of the leopard seal and the waveform of the signal under different signal-to-noise ratios are taken as examples. Figure 6 As shown in Figure 1, the lower the signal-to-noise ratio, the more glitches appear in the signal. This study uses 10-fold cross validation to train and validate the GRNN model. The GRNN optimization expansion factor process of the MFCC features of each scene is as follows: Figure 7 As shown, it can be analyzed that, in general, as the expansion factor increases, the recognition performance decreases, and the optimal expansion factor is concentrated between 0 and 0.1.
[0080] This study uses SVM and CNN as comparison models. The SVM model uses the radial basis function as the kernel function. The CNN model structure is as follows: Figure 8As shown, the optimization algorithm uses the Sgdm algorithm. Table 1, Table 2 and Table 3 are the recognition accuracy of GRNN, CNN and SVM methods in various scenarios, respectively. A, B and C represent leopard seals, Ross seals and Weddell seals, respectively. GRNN, CNN and SVM methods can effectively identify seal species under high signal-to-noise ratio, but the reduction of signal-to-noise ratio has a greater impact on the SVM method. When the signal-to-noise ratio is 0dB, the error of the SVM method is large and effective recognition cannot be achieved. Compared with SVM, the CNN method is less affected by the reduction of signal-to-noise ratio. Under high signal-to-noise ratio, it is not much different from the GRNN method. GRNN is only better than the CNN method to a certain extent, but under low signal-to-noise ratio, especially at 0dB, the error of the CNN method is large. The reduction of signal-to-noise ratio has the least impact on the GRNN method. When the signal-to-noise ratio is above 5dB, the GRNN method can achieve accurate recognition, and when the signal-to-noise ratio is 0dB, the GRNN method can still achieve approximate recognition. In general, GRNN can robustly identify seal species at all signal-to-noise ratios, because the MFCC-GRNN model combines the feature advantages of MFCC and the nonlinear fitting ability of GRNN.
[0081] Table 1. Seal species recognition accuracy of GRNN method
[0082] Signal-to-noise ratio / dB A B C Total Noise-free 0.9956 0.9828 0.9424 0.9616 10 0.9867 0.9553 0.9124 0.9344 5 0.9757 0.9467 0.8937 0.9200 0 0.9115 0.9065 0.8647 0.8838
[0083] Table 2. Seal species recognition accuracy of CNN method
[0084] Signal-to-noise ratio / dB A B C Total Noise-free 0.9823 0.9713 0.9171 0.9423 10 0.9646 0.9524 0.9061 0.9279 5 0.9292 0.9346 0.8918 0.9104 0 0.8717 0.8521 0.8544 0.8552
[0085] Table 3. Seal species recognition accuracy of SVM method
[0086] Signal-to-noise ratio / dB A B C Total Noise-free 0.9862 0.9731 0.9252 0.9478 10 0.9403 0.9335 0.8966 0.9137 5 0.8805 0.8539 0.8302 0.8956 0 0.8164 0.8200 0.8163 0.8176
Claims
1. A method for acoustic signal recognition using a generalized regression neural network using Mel frequency cepstral coefficients, characterized in that Here are the steps: Step 1: Extract MFCC features from the collected underwater acoustic signal; Step 2: Perform FFT on each frame of signal to obtain the spectrum; Step 3: Filter the spectrum through a set of triangular bandpass filters to obtain Mel filtering; Step 4: Calculate the logarithmic energy of each filter output and calculate its discrete cosine transform to obtain the L-order MFCC; Step 5: Calculate the cepstral difference parameters from L MFCC cepstral coefficient values, and combine the three parameters of MFCC, first-order and second-order cepstral difference parameters as the feature vector of the signal; Step 6: Use 3 / 4 of all processed data as training and validation data, and the rest as testing of the GRNN model; Step 7: Randomly divide the data used for model training and validation into k folds, and use the k-fold cross-validation method to determine the optimal expansion factor. The measurement indicators of the validation set recognition results under different expansion factors are as follows: Where N is the number of samples, is the number of samples correctly identified among N samples; The validation set is 1 fold, and the training set is the other k-1 folds; Step 7: For each expansion factor, first use the training set for training, then test the validation set, and calculate the corresponding accuracy; use each fold of training samples as a validation set, repeat the above process, and count and calculate the mean of k accuracies, that is, the average accuracy; Repeat the above steps for all expansion factors, and take the expansion factor corresponding to the minimum value of average accuracy as the optimal expansion factor; Step 8: Use the obtained optimal expansion factor as the parameter of the GRNN model, and use the training data to train the GRNN model. Then input the test data under multiple signal-to-noise ratios into the model, perform acoustic signal recognition on the test data, statistically analyze the recognition results, and analyze the recognition performance of the GRNN model, so as to realize recognition of real-time data with the trained and tested GRNN model.
2. The method for acoustic signal recognition using a generalized regression neural network using Mel-frequency cepstrum coefficients according to claim 1, characterized in that: When extracting the MFCC features, the collected sound signal is pre-processed by pre-emphasis, framing and windowing.
3. The method for acoustic signal recognition using a generalized regression neural network using Mel-frequency cepstrum coefficients according to claim 1, characterized in that: The value range of the expansion factor is: 0.01, 0.02, ..., 0.1, with a step size of 0.01.
