A method for identifying bird calls in wild ecological environment based on neural network
By constructing the multi-delay periodic index and convolution divisibility degree within the window of the bird song signal in the neural network model, and optimizing the number of 3D convolution kernel groups, the computational complexity and memory of the deep learning model in bird song recognition are solved. demand issues, improving identification accuracy and efficiency.
Patent Information
- Application Number
- CN202411002631.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-25
AI Technical Summary
When the neural network model based on deep learning processes bird song signals, the high computational complexity and large memory requirements of 3D convolution cause iterative training to fail and cannot effectively identify birds.
By dividing the bird song signal into rectangular short-time windows, the spectral entropy delay synchronization coefficient and window long delay stability coefficient of each frame signal are calculated, and a multi-delay period index within the window is constructed, combined with the convolution divisibility degree and the sliding three-dimensional convolution Product smoothness, adjust the number of 3D convolution kernel groups, and optimize the neural network model for bird song recognition.
The accuracy and efficiency of bird song recognition are improved. By accurately evaluating the noise level and smoothness of the frame signal, the number of convolution groups is adaptively adjusted to reduce the computational complexity and improve the feature extraction effect.
Smart Images

Figure CN118522294B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of speech processing, and in particular to a method for identifying bird calls in a wild ecological environment based on a neural network. Background Art
[0002] Birdsong signals are high-frequency signals that can usually be transmitted over long distances, and the sounds of different species of birds are somewhat distinguishable. Therefore, bird identification is often performed by collecting bird song signals. Thanks to its excellent learning and feature extraction capabilities for large amounts of data, various neural network models based on deep learning technology are widely used in bird song identification.
[0003] When learning the features of bird song signals, neural network models based on deep learning usually learn the feature images of bird song signals, such as the time domain waveform of bird song signals, the spectrum of bird song signals, the Mel language spectrum, etc. In the neural network model, the feature images of bird song signals are weighted and summed through convolution operations to obtain the features of the image. Since 3D convolution can describe the object relationship in 3D space, 3D convolution can extract more feature information from the feature images of continuous frames in bird song signals. However, 3D convolution not only has high computational complexity, but also requires a large memory space when processing three-dimensional data. It is easy for the neural network model to fail to train after a certain number of iterations, and it is impossible to identify birds based on the feature images of bird song signals. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a method for identifying bird calls in wild ecological environment based on neural network to solve the existing problems.
[0005] The method for identifying bird calls in a wild ecological environment based on a neural network of the present invention adopts the following technical solutions:
[0006] An embodiment of the present invention provides a method for identifying bird calls in a wild ecological environment based on a neural network, the method comprising the following steps:
[0007] Collect bird song signals;
[0008] The spectrum diagram of each frame of bird singing signal is used as the characteristic image of each frame of bird singing signal; the bird singing signal is divided into multiple rectangular short-time windows; the spectral entropy delay synchronization coefficient of each frame of bird singing signal is obtained according to the difference of autocorrelation function of each frame of bird singing signal in each rectangular short-time window at different time delays; the window long delay stability coefficient of each frame of bird singing signal is obtained according to the peak amplitude distribution of the autocorrelation function of each frame of bird singing signal in each rectangular short-time window at different time delays; the multi-delay period index within the window of each frame of bird singing signal is obtained by combining the spectral entropy delay synchronization coefficient and the window long delay stability coefficient;
[0009] Add the time dimension to the two-dimensional feature image to convert it into a three-dimensional feature image; obtain the similarity of the segmentation results between two coordinate points on the plane feature image corresponding to each moment; combine the segmentation result similarity and the multi-delay period index in the window to obtain the convolution separability of the plane feature image corresponding to each moment; obtain the temporal smoothness of each frame of the bird's singing signal based on the distribution of the convolution separability of the plane feature image at the corresponding moment of all frames of bird's singing signals in the rectangular short-time window; obtain the sliding three-dimensional convolution smoothness of each frame of the bird's singing signal by combining the convolution separability at each moment and the temporal smoothness of each frame of the bird's singing signal; obtain the number of convolution groups of the 3D convolution kernel based on the frequency distribution of the spectrum diagram of each frame of the bird's singing signal and the sliding three-dimensional convolution smoothness; and complete the bird's singing recognition by combining the number of convolution groups of the 3D convolution kernel and the neural network model.
[0010] Preferably, the method of obtaining the spectral entropy time delay synchronization coefficient of each frame of the bird singing signal according to the difference of the autocorrelation function of each frame of the bird singing signal in each rectangular short-time window under different time delays includes:
[0011] The VAD endpoint detection algorithm is used to obtain the sound signal interval of the bird song signal. The minimum interval length of all sound signal intervals is used as the delay upper limit when calculating the autocorrelation function. For each rectangular short-time window, the autocorrelation function of each frame of the bird song signal under different time delays is calculated, and the position, width and amplitude of the peak of the autocorrelation function are obtained. The bird song signal is Fourier transformed to calculate the spectral entropy of each frame of the bird song signal.
[0012] The expression of the spectral entropy delay synchronization coefficient of each frame of bird song signal is:
[0013]
[0014] In the formula, is the spectral entropy delay synchronization coefficient of the a-th frame bird song signal, is an exponential function with a natural constant as base, is the spectral entropy of the a-th frame of the bird song signal in the rectangular short-time window, is the width of the peak of the autocorrelation function corresponding to the a-th frame of the bird's chirping signal at the upper limit of the delay in the rectangular short-time window, , are the maximum and minimum spectral entropy values of all bird song signals in the rectangular short-time window, , They are respectively the maximum and minimum widths of the autocorrelation function peaks corresponding to the upper limit of the delay for all frames of bird song signals in the rectangular short-time window.
[0015] Preferably, the window long delay stability coefficient of each frame of the bird singing signal is obtained according to the peak amplitude distribution of the autocorrelation function of each frame of the bird singing signal in each rectangular short-time window under different delays, and the expression is:
[0016]
[0017] In the formula, is the window long delay stability coefficient of the a-th frame bird song signal, N is the number of frames in the rectangular short-time window to which the a-th frame bird song signal belongs, , are the peak amplitude sequences composed of the amplitudes of the autocorrelation function peaks of the a-th frame bird chirping signal and the b-th frame bird chirping signal at all time delays within the upper limit of the time delay in ascending order of the time delay scale, is the minimum function, is the value variance function, Indicates that the sequence is calculated separately , The variance of values between elements in the same order, , Sequence , The coefficient of variation of the internal elements.
[0018] Preferably, the method of combining the spectral entropy delay synchronization coefficient and the window long delay stability coefficient to obtain the window multi-delay period index of each frame of the bird song signal includes:
[0019] For each frame of bird singing signal in each rectangular short-time window, the product of the window long delay stability coefficient and the spectral entropy delay synchronization coefficient is calculated, the difference between the Mel-cepstral coefficient at the frequency corresponding to the peak of the autocorrelation function under the first delay and the Mel-cepstral coefficient at the frequency corresponding to the peak of the autocorrelation function under all other delays is calculated, the sum of the differences under all delays is calculated, the sum of the sum and the preset parameter adjustment factor is calculated, recorded as the first sum, and the ratio of the product to the first sum is used as the multi-delay period index within the window of each frame of the bird singing signal.
[0020] Preferably, the obtaining of the segmentation result similarity between two coordinate points on the plane feature image corresponding to each moment includes:
[0021] For the plane feature image corresponding to each moment, each coordinate point on the plane feature image is used as a segmentation point to determine the minimum closed loop path using the Dijkstra algorithm. The minimum closed loop path of each coordinate point divides the plane feature image into two data clusters.
[0022] The expression of the similarity of the segmentation results between two coordinate points is:
[0023]
[0024] In the formula, is the xth moment corresponding to the plane feature image , The similarity of the segmentation results between the coordinate points, , They are respectively , The number of data clusters obtained when the coordinate points are the split points. So The set of elements in the cth data cluster obtained when the coordinate point is the segmentation point, So The set of elements in the gth data cluster obtained when the coordinate point is the segmentation point, Is a collection , The Jaccard coefficient between .
[0025] Preferably, the convolution separability of the corresponding plane feature image at each moment is obtained by combining the segmentation result similarity and the multi-delay period index within the window, including:
[0026] Calculate the mean path length of the minimum closed-loop path corresponding to all coordinate points on the plane feature image corresponding to each moment, recorded as the first mean, calculate the mean similarity of the segmentation results between all coordinate points on the plane feature image corresponding to each moment, recorded as the second mean, calculate the product of the first mean and the multi-delay cycle index within the window of the frame corresponding to each moment, and take the ratio of the product to the second mean as the convolution separability of the plane feature image corresponding to each moment.
[0027] Preferably, the temporal smoothness of each frame of the bird singing signal is obtained according to the distribution of the convolution separability of the plane feature image at the corresponding time of all frames of the bird singing signal in the rectangular short-time window, including:
[0028] A sequence consisting of the convolution separability of the plane feature images of all the bird singing signals at the corresponding moments in the rectangular short-time window to which each frame of the bird singing signal belongs is obtained, the variance of all the elements in the sequence is calculated, the absolute value of the difference between the in-window multi-delay period index of each frame of the bird singing signal and the in-window multi-delay period index mean of all the bird singing signals in the rectangular short-time window to which each frame of the bird singing signal belongs is calculated, and the product of the variance and the absolute value of the difference is used as the temporal smoothness of each frame of the bird singing signal.
[0029] Preferably, the step of combining the degree of convolution separability at each moment and the temporal smoothness of each frame of bird song signal to obtain the sliding three-dimensional convolution smoothness of each frame of bird song signal includes:
[0030] The multi-delay periodic index in the window of all frames of bird singing signals is used to obtain each cluster cluster by using a clustering algorithm, the variance of all elements in each cluster cluster is calculated, and the cluster cluster corresponding to the minimum variance is used as the high noise component cluster cluster, and a sequence composed of the convolution separability of the plane feature images of all elements in the high noise component cluster cluster at the corresponding time is obtained, which is recorded as the first sequence, and the Pearson correlation coefficient between the sequence and the first sequence is calculated, and the mean of the absolute value of the difference between the corresponding time of each frame of bird singing signal and the corresponding time of all elements in the high noise component cluster cluster is calculated, which is recorded as the third mean, and the product of the third mean and the Pearson correlation coefficient is calculated, which is recorded as the first product, and the ratio of the time series smoothness of each frame of bird singing signal to the first product is used as the sliding three-dimensional convolution smoothness of each frame of bird singing signal.
[0031] Preferably, the number of convolution groups of the 3D convolution kernel is obtained according to the frequency distribution of the bird song signal spectrum of each frame and the smoothness of the sliding three-dimensional convolution, including:
[0032] For each frame of bird singing signal, the Mel-frequency cepstral coefficients of all frequencies of the corresponding spectrum are sorted in descending order of frequency, and the sliding three-dimensional convolution smoothness and the multi-delay period index within the window of each frame of the bird singing signal are placed in the first two places of the sorting result. The obtained sequence is used as the convolution feature sequence of each frame of the bird singing signal, and the cosine similarity between the convolution feature sequences of all any two consecutive frames of bird singing signals is calculated respectively. All the cosine similarities are used to obtain the abnormal points using the stable random forest felling algorithm. The number of convolution groups divided by the 3D convolution kernel is the sum of the total number of abnormal points and 1.
[0033] Preferably, the method of combining the number of convolution groups of the 3D convolution kernel and the neural network model to complete the bird song recognition includes:
[0034] The three-dimensional feature image of the bird singing signal is convolved with each convolution group to obtain the convolution results. The vector obtained by concatenating the convolution results head to tail in the time sequence of the convolution groups is used as the 3D convolution acoustic feature vector of the bird singing signal. The 3D convolution acoustic feature vector is used as the input of the neural network model, and the output is the bird recognition result of the bird singing signal.
[0035] The present invention has at least the following beneficial effects:
[0036] The present application proposes a method for identifying bird calls in a wild ecological environment based on a neural network. The pure sound bird call signal is divided into multiple rectangular short-time windows through short-time autocorrelation analysis. The multi-delay periodic index within the window is constructed by analyzing the autocorrelation degree of each frame of the bird call signal at different time delays. The multi-delay periodic index within the window takes into account the periodicity of the energy distribution of the bird call signal and the noise signal in the rectangular short-time window at different time delays. The beneficial effect is that the noise content of each frame of the bird call signal can be accurately evaluated by analyzing the spectral entropy size and periodic stability between adjacent frames; secondly, the convolution separability at each moment is determined based on the influence of noise in the corresponding plane feature image at each moment in the time dimension. The convolution separability can accurately reflect the separability of the coordinate points on the plane feature image at each moment; and the number of grouped convolutions during 3D convolution is adaptively determined in combination with the randomness of the noise signal and the smoothness of the sliding three-dimensional convolution of each frame of the bird call signal. By reasonably dividing the number of grouped convolutions, the convolution efficiency of the 3D convolution is accelerated without destroying the continuity of the acoustic features, and the image features on the 3D feature image are better extracted, thereby improving the recognition rate of bird calls. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. 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 paying creative work.
[0038] Figure 1 A flowchart of a method for identifying bird calls in a wild ecological environment based on a neural network according to an embodiment of the present invention;
[0039] Figure 2 Obtain a flow chart for bird song identification metrics;
[0040] Figure 3 This is a schematic diagram of the sliding window sliding up and down;
[0041] Figure 4 It is a schematic diagram of the overall sliding of the sliding window;
[0042] Figure 5 Schematic diagram of image feature extraction for a 3D feature image. DETAILED DESCRIPTION
[0043] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, characteristics and effects of the method for identifying bird calls in a wild ecological environment based on a neural network proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0044] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0045] The specific scheme of the method for identifying bird calls in a wild ecological environment based on a neural network provided by the present invention is described in detail below with reference to the accompanying drawings.
[0046] See also Figure 1 , which shows a flowchart of a method for identifying bird calls in a wild ecological environment based on a neural network according to an embodiment of the present invention, the method comprising the following steps:
[0047] Step S001, determining the sound signal interval in the wild bird singing signal based on the enhanced wild bird singing signal.
[0048] Collect the bird singing signal in the wild, use the spectral subtraction method to obtain the enhanced result of the bird singing signal in the wild and record it as the bird singing enhanced signal, use the bird singing enhanced signal as input, and use the VAD (Voice Activity Detection) endpoint detection algorithm to determine the silent signal interval and the sound signal interval in the bird singing enhanced signal. Both the spectral subtraction method and the VAD endpoint detection algorithm are well-known technologies, and the specific process will not be repeated. Secondly, all the sound signal intervals in the bird singing enhanced signal are spliced in chronological order, and the spliced audio signal is used as the pure sound bird singing signal corresponding to the bird singing enhanced signal. The spectrum diagram of each frame of the bird singing signal is used as the feature image of each frame of the bird singing signal, and the spectrum diagram of each frame of the bird singing signal is discrete data.
[0049] Step S002, constructing a multi-delay period index within the window based on the degree of autocorrelation of each frame of bird song signal under different delays within the rectangular short-time window; and determining the number of groups during group convolution based on the extractability of the bird song signal features within the 3D area passed by each sliding of the 3D convolution process.
[0050] Specifically, this embodiment collects pure sound bird singing signals, obtains the spectral entropy delay synchronization coefficient of each frame of bird singing signals according to the frequency domain characteristics of the pure sound bird singing signals, obtains the window long delay stability coefficient of each frame of bird singing signals according to the autocorrelation of the bird singing signals, and combines the spectral entropy delay synchronization coefficient and the window long delay stability coefficient to obtain the window multi-delay period index of each frame of bird singing signals, obtains the similarity of the segmentation results between two coordinate points, and combines the window multi-delay period index and the segmentation result similarity to obtain the degree of convolution separability at each acquisition moment, and then obtains the sliding three-dimensional convolution smoothness of each frame of bird singing signals, determines the sliding step size of each group of convolutions, and the bird singing recognition index acquisition flow chart is shown in FIG. Figure 2 The construction process of the sliding three-dimensional convolution smoothness of each frame of bird song signal is as follows:
[0051] The purpose of this application is to determine the number of grouped convolutions during 3D convolution by analyzing the acoustic features between feature images corresponding to consecutive frames of bird song signals and the separability between feature images corresponding to adjacent frames, thereby improving the training ability of the recognition model and realizing the recognition of bird songs.
[0052] When the recognition model extracts image features, the sliding window slides on the input image according to the predetermined step size and order. For 3D convolution, the convolution kernel needs to perform sliding calculations in three dimensions. In this application, time is used as the third dimension in addition to the feature image scale, and the feature image corresponding to each frame of the pure bird song signal is used as a plane feature image in the time dimension, that is, a slice image.
[0053] Specifically, birds meet their daily needs through bird calls, which are short in duration, simple in pronunciation, often monosyllabic or disyllabic, and less polysyllabic, and have the characteristics of continuity. The noise in the bird song signal usually conforms to the Gaussian random distribution, and the energy of the noise signal is evenly distributed in each sound signal interval; however, due to the changes in the syllable distribution and the changes in the acoustic information, the energy of the bird song signal is not evenly distributed in each sound signal interval. That is, the stronger the periodicity of the energy distribution between the continuous frames of bird song signals in the local time period, the stronger the autocorrelation of the continuous frames of bird song signals under different time delays; the weaker the periodicity of the energy distribution between the continuous frames of bird song signals in the local time period, the worse the autocorrelation of the continuous frames of bird song signals under different time delays, and the higher the probability that the continuous frames of bird song signals contain bird song signals with different acoustic information.
[0054] Based on the above analysis, the pure sound bird song signal is taken as the analysis object, and the short-time autocorrelation analysis is used to divide the pure sound bird song signal into multiple rectangular short-time windows, and in each rectangular short-time window, the autocorrelation function of each frame of the bird song signal with itself under different time delays is calculated, and the position, width and amplitude of the peak of the autocorrelation function are obtained. Short-time autocorrelation analysis is a well-known technology, and the specific process will not be repeated. It should be noted that in the present application, the upper limit of the delay is determined according to the interval size of the silent signal interval and the sound signal interval in the bird song enhancement signal, and the minimum interval length of all sound signal intervals is used as the upper limit of the delay T when calculating the autocorrelation function. The different delay scales are specifically: The beneficial effect of such a value is that the upper limit of the delay is set to a delay range that does not exceed the length of the sound signal interval, reducing the influence of the change of the bird singing signal itself in the pure sound bird singing signal on the calculation result of the autocorrelation function caused by the excessive delay range. Secondly, the pure sound bird singing signal is used as input, and the short-time Fourier transform technology is used to obtain the energy value at each frequency on each frame of the bird singing signal, and the spectral entropy probability density is calculated. Based on the spectral entropy probability density, the spectral entropy of each frame of the bird singing signal is determined. The short-time Fourier transform is a well-known technology, and the specific process will not be repeated.
[0055] Based on the above analysis, the multi-delay period index within the window is constructed here to characterize the strength of the autocorrelation of the energy distribution within the rectangular short-time window taken by each frame of the bird's singing signal in the pure sound bird's singing signal. The multi-delay period index within the window of the a-th frame bird's singing signal is calculated, and the expression is:
[0056]
[0057]
[0058]
[0059] In the formula, is the spectral entropy delay synchronization coefficient of the a-th frame bird song signal, is an exponential function with a natural constant as base, is the spectral entropy of the a-th frame of the bird song signal in the rectangular short-time window, is the width of the peak of the autocorrelation function corresponding to the a-th frame of the bird's chirping signal at the upper limit of the delay in the rectangular short-time window, , are the maximum and minimum spectral entropy values of all bird song signals in the rectangular short-time window, , They are the maximum and minimum widths of the autocorrelation function peaks corresponding to the upper limit of the delay for all frames of bird calls in the rectangular short-time window;
[0060] is the window long delay stability coefficient of the a-th frame bird song signal, N is the number of frames in the rectangular short-time window to which the a-th frame bird song signal belongs, , are the peak amplitude sequences composed of the amplitudes of the autocorrelation function peaks of the a-th frame bird chirping signal and the b-th frame bird chirping signal at all time delays within the upper limit of the time delay in ascending order of the time delay scale, is the minimum function, is the value variance function, Indicates that the sequence is calculated separately , The variance of values between elements in the same order, , Sequence , The coefficient of variation of the internal elements, wherein the calculation of the value variance and the coefficient of variation is a well-known technique, and the specific process will not be repeated here;
[0061] is the multi-delay period index of the a-th frame bird song signal in the window, n is the number of different delay scales of the a-th frame bird song signal in the rectangular short-time window, is a parameter adjustment factor used to prevent the denominator from being 0. , the implementer can set it according to the actual situation, and this embodiment does not limit it. , They are the Mel-frequency cepstral coefficients at the frequencies corresponding to the peak values of the autocorrelation function in the first delay scale and the pth delay scale of the a-th frame signal, respectively. The calculation of the Mel-frequency cepstral coefficients is a well-known technology, and this embodiment will not be described in detail here. Recorded as the first sum.
[0062] Among them, the higher the noise energy ratio on the bird song signal of the a-th frame, the greater the energy randomness, and the more uniform the probability density distribution of the spectral entropy at different energy levels. The larger the value of The larger the value of At the same time, since the noise is randomly distributed, the more noise components are contained in the bird singing signal of the a-th frame, the greater the change in the degree of autocorrelation of the bird singing signal of the a-th frame under different time delays in the rectangular short-time window, and the shorter the period change of the bird singing signal of the a-th frame, The smaller the value of The larger the value of is, the stronger the synchronization between the spectral entropy change and the periodic change of the bird song signal in the ath frame is. The closer the value is to 0, the second difference The closer the value is to 1;
[0063] The more noise components contained in the a-th frame bird song signal, the stronger the periodicity of the a-th frame bird song signal, and the larger the amplitude of the autocorrelation function peak of the a-th frame bird song signal at different time delays, the first lower limit value The larger the value of , the greater the change in the peak amplitude of the autocorrelation function under different time delays, the more disordered the distribution of elements in the peak amplitude sequence of the a-th frame bird song signal, and the greater the difference in the coefficient of variation of the peak amplitude sequence between the a-th frame bird song signal and the other frames of bird song signals. The larger the value of The larger the value is, the stronger the periodicity of the bird song signal in the a-th frame under various time delays is, the closer the corresponding frequencies of the autocorrelation function peaks under different time delays are, and the closer the corresponding acoustic features of the autocorrelation function peaks under different time delays are. The smaller the value of The larger the value of is, the stronger the delay periodicity of the a-th frame bird song signal is and the higher the randomness of the energy distribution is during the short-time autocorrelation analysis.
[0064] At this point, the multi-delay period index within the window of each frame of the pure bird singing signal is obtained, which is used to determine the number of subsequent grouping convolution groupings.
[0065] 3D convolution is a process in which a convolution kernel slides and calculates in 3 dimensions. In this application, the feature image of each frame of the bird song signal in the pure sound bird song signal is taken as a slice image. In the time dimension, each convolution of the convolution kernel will be calculated with the feature image of the continuous frame bird song signal in the same scale range to extract the features of the image. When performing group convolution, if the areas with strong continuity of acoustic features on the feature image are divided into different group convolutions, then the extracted features will also be greatly different from the actual bird song acoustic features after splicing, which reduces the accuracy of bird song recognition. Therefore, this application considers judging which areas of the feature image should be divided into a group convolution by the acoustic stability of the pure sound bird song signal in different sound intervals, so as to avoid the phenomenon of destroying the continuity of the bird song features due to unreasonable group size and improve the effectiveness of feature extraction.
[0066] Furthermore, in this application, the sliding step size of the sliding window is set to 1. It should be noted that the step size of the sliding window can be set to a suitable value according to the recognition model and the duration of the wild bird song data, and this embodiment does not limit this. When the sliding window slides on the feature image with a step size of 1, changes will occur in two dimensions before and after each sliding. In the sliding process from top to bottom, such as Figure 3 As shown in , before and after a slide, the convolution object does not change in the time dimension, but changes in the frequency and amplitude dimensions with a step size of 1; Figure 4As shown in the figure, when sliding to the end, the next sliding does not change in frequency, but changes in amplitude and time with a step size of 1. Since the bird song signal is a high-frequency signal, and the distribution of energy in each frame of the bird song signal changes with the rise and fall of the volume, if the bird song signal of the a-th frame remains unchanged in the time dimension, the features extracted before and after the convolution in the frequency and amplitude dimensions conform to the distribution characteristics of the noise component, and the bird song signal of the a+1-th frame remains unchanged in the time dimension, and the features extracted before and after the convolution in the frequency and amplitude dimensions do not conform to the distribution characteristics of the noise component, it indicates that the acoustic features of the bird song contained in the a-th frame and the a+1-th frame of the bird song signal are quite different, and being divided into different convolution groups will not affect the continuity of the acoustic features in the pure bird song signal.
[0067] In this embodiment, the time dimension is used as the segmentation dimension during group convolution, that is, the convolution kernel is split into different groups in the time dimension, and each group is responsible for a certain depth of 3D convolution calculation. Specifically, the pure sound bird singing signal is used as input, and the librosa.feature.spectral_rolloff function in Python is used to obtain the roll-off coefficient of each frame of the bird singing signal in the pure sound bird singing signal. The call of the Python function is a well-known technology, and the specific process is no longer repeated. The larger the roll-off coefficient of each frame of the bird singing signal, the more serious the spectrum attenuation in the high-frequency interval, the higher the abruptness in the time dimension, and the higher the degree of influence on the acoustic features in the pure sound bird singing signal; the worse the autocorrelation of a frame of bird singing signal in a rectangular short-time window, the lower the probability that the frame contains noise components. In the time dimension, the more important the continuity of the acoustic features in the pure sound bird singing signal is, the weaker the divisibility of the frame.
[0068] In the present application, the three-dimensional parameter values of time, frequency, and amplitude will determine a unique point on the formed three-dimensional feature image. For any moment in the time dimension, each moment will correspond to a plane feature image with an unchanged value in the time dimension. Taking the xth moment as an example, each coordinate point in the plane feature image is used as input, and the Dijkstra algorithm is used to determine the minimum closed-loop path of each coordinate point. The minimum closed-loop path of each coordinate point will divide the plane feature image into two data clusters. The coordinate points contained in the minimum closed-loop path are taken as one data cluster, and the remaining coordinate points on the plane feature image are taken as another data cluster. The Dijkstra algorithm is a well-known technology, and the specific process will not be repeated.
[0069] Based on the multi-delay period index within the window of each frame of bird song signal and the length of the minimum closed-loop path when the coordinate point is segmented at each moment, the degree of segmentation at each moment in the time dimension is determined. The convolution segmentation degree of the plane feature image corresponding to the xth moment is calculated as follows:
[0070]
[0071]
[0072] In the formula, is the xth moment corresponding to the plane feature image , The similarity of the segmentation results between the coordinate points, , They are respectively , The number of data clusters obtained when the coordinate points are the split points. So The set of elements in the cth data cluster obtained when the coordinate point is the segmentation point, So The set of elements in the gth data cluster obtained when the coordinate point is the segmentation point, Is a collection , The Jaccard coefficient between , wherein the calculation of the Jaccard coefficient is a known technique and will not be described in detail in this embodiment;
[0073] is the degree of convolution separability of the plane feature image corresponding to the xth moment, is the multi-delay period index of the window corresponding to the bird chirping signal at the xth moment, is the mean path length of the minimum closed-loop path corresponding to all coordinate points on the plane feature image at the xth moment, is the mean of the similarity of the segmentation results between all coordinate points on the plane feature image corresponding to the xth moment. is recorded as the first mean, Recorded as the second mean.
[0074] Among them, the worse the connectivity between the coordinate points at different positions on the plane feature image corresponding to the xth moment, the greater the difference in the segmentation results of the plane feature image when segmenting from different coordinate points at different positions. , The greater the difference in element distribution, The smaller the value of is, the more noise components there are in the pure bird song signal at the xth moment, the stronger the delay periodicity of the frame bird song signal corresponding to the xth moment, and the higher the randomness of the energy distribution. The larger the value of is, the slower the segmentation rate of each segmentation point in the corresponding plane feature image is, and the longer the minimum closed-loop path length is during segmentation. The larger the value of The larger the value of , the more coordinate points corresponding to the noise components in the plane feature image at the x-th moment in the time dimension, the lower the probability of affecting the continuity of the acoustic features in the pure bird song signal at the x-th moment, and the higher the degree of separability during group convolution.
[0075] Further, according to the above steps, the multi-delay period index in the window of each frame of the bird singing signal is obtained respectively, and the multi-delay period index in the window of all frames of the bird singing signal is used as input, and the k-means clustering algorithm is used to cluster all the multi-delay period indexes in the window into k clusters. In this embodiment, , the implementer can set it according to the actual situation, and this embodiment does not limit it. The k-means clustering algorithm is a well-known technology, and the specific process is not repeated. Secondly, the variance of all elements in each cluster is calculated respectively, and the cluster corresponding to the minimum variance is used as the high noise component cluster.
[0076] Based on the above analysis, a sliding three-dimensional convolution smoothness is constructed here to characterize the influence of the 3D convolution kernel on the bird song characteristics of each frame of the bird song signal when sliding. The sliding three-dimensional convolution smoothness of the bird song signal of the a-th frame is calculated, and the expression is:
[0077]
[0078]
[0079] In the formula, is the temporal smoothness of the bird song signal in frame a, It is a sequence composed of the convolution separability of the plane feature images of all the bird singing signals at the corresponding time in the rectangular short-time window where the a-th frame of bird singing signal is located. Is a sequence The variance of all elements in , is the multi-delay period index within the window of the a-th frame bird song signal, It is the mean value of the multi-delay period index of all the bird singing signals in the rectangular short-time window where the a-th frame bird singing signal is located;
[0080] is the sliding three-dimensional convolution smoothness of the a-th frame bird song signal, is the mean of the absolute value of the difference between the corresponding time of each element in the high noise component cluster and the corresponding time of the bird song signal of the ath frame, It is a sequence of the degree of convolution separability of the plane feature image at the corresponding moment for each element in the high noise component cluster. It is to calculate the Pearson correlation coefficient between the sequences. The Pearson correlation coefficient is a well-known technology, and the specific calculation process will not be repeated. Recorded as the first sequence, Let it be the first product, Recorded as the third mean.
[0081] According to the above steps, the sliding three-dimensional convolution smoothness of the corresponding frame bird song signal at all moments in the time dimension is obtained respectively. Then, the Mel cepstral coefficients of all frequencies on each frame of the bird song signal are sorted in descending order of frequency. The sliding three-dimensional convolution smoothness and the multi-delay period index in the window of each frame of the bird song signal are placed at the first place of the sorting result to obtain the convolution feature sequence of each frame of the bird song signal. For example, the convolution feature sequence of the a-th frame of the bird song signal is ,in, , They are the Mel-frequency cepstral coefficients corresponding to the maximum and minimum frequencies of the bird song signal in the ath frame, respectively. The cosine similarity of the convolution feature sequences between any two consecutive frames of bird song signals is calculated in sequence, and then M convolution feature sequences will obtain M-1 cosine similarities. The M-1 cosine similarities are used as input, and the Robust Random Cut Forest (RRCF) algorithm is used to obtain K abnormal points in the M-1 cosine similarities. The RRCF algorithm is a well-known technology, and the specific process is not repeated here. The moment when each abnormal point corresponds to the previous frame of two consecutive frames is taken as a convolution segmentation moment in the time dimension, and the 3D convolution kernel is divided into K+1 convolution groups.
[0082] At this point, the number of groups of group convolution in the pure bird song signal is obtained, which is used to subsequently determine the sliding step size of each group convolution after grouping.
[0083] Step S003, extracting image features of 3D feature images at different depths based on each group convolution, and obtaining bird song recognition results based on the image features extracted by all group convolutions using a recognition model.
[0084] In this application, the discrete spectrum of each frame of the bird song signal is used as the feature image of each frame of the bird song signal, that is, the slice image at each moment in the time dimension is the spectrum of the corresponding frame of the bird song signal, and the spectrum of all frames of the bird song signal in the pure sound bird song signal is combined into a 3D feature image in time sequence as the 3D feature image of the pure sound bird song signal, and the 3D feature image of the pure sound bird song signal is 3D convolved with K+1 convolution groups respectively to obtain K+1 image features, such as Figure 5 As shown, Figure 5D, L, and W in it represent the depth, height, and width of the 3D convolution kernel, respectively; D1 and D2 represent the depth of the first and second convolution groups, respectively; and DK+1 represents the depth of the K+1 convolution group. The vector obtained by concatenating the K+1 image features of the 3D feature image of the pure sound bird song signal extracted by the K+1 convolution group in the temporal order of the K+1 convolution group is used as the 3D convolution acoustic feature vector of the pure sound bird song signal. The 3D convolution acoustic feature vector is used as the input of the recognition model. Considering the temporal characteristics of the audio signal, the recognition model of this embodiment selects the recurrent neural network RNN (Recurrent Neural Network), uses the cross entropy function as the loss function, and uses the Adam algorithm as the optimization algorithm. The output of the recurrent neural network is the bird recognition result of the pure sound bird song signal. The recurrent neural network RNN is an existing well-known technology, and this embodiment will not be described in detail here.
[0085] To summarize, the embodiments of the present invention adaptively determine the number of grouped convolutions during 3D convolution by combining the randomness of the noise signal and the smoothness of the sliding three-dimensional convolution of each frame of the bird song signal. By reasonably dividing the number of grouped convolutions, the convolution efficiency of the 3D convolution is accelerated without destroying the continuity of the acoustic features, and the image features on the 3D feature image are better extracted, thereby improving the recognition rate of bird songs.
[0086] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying 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.
[0087] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0088] 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 principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying bird calls in wild ecological environment based on neural network, characterized in that: The method comprises the following steps: Collect bird song signals; The spectrum diagram of each frame of bird singing signal is used as the characteristic image of each frame of bird singing signal; the bird singing signal is divided into multiple rectangular short-time windows; the spectral entropy delay synchronization coefficient of each frame of bird singing signal is obtained according to the difference of autocorrelation function of each frame of bird singing signal in each rectangular short-time window at different time delays; the window long delay stability coefficient of each frame of bird singing signal is obtained according to the peak amplitude distribution of the autocorrelation function of each frame of bird singing signal in each rectangular short-time window at different time delays; the multi-delay period index within the window of each frame of bird singing signal is obtained by combining the spectral entropy delay synchronization coefficient and the window long delay stability coefficient; Adding a time dimension to a two-dimensional feature image to convert it into a three-dimensional feature image; obtaining the similarity of the segmentation results between two coordinate points on the plane feature image corresponding to each moment; combining the segmentation result similarity and the multi-delay period index in the window to obtain the convolution separability of the plane feature image corresponding to each moment; obtaining the temporal smoothness of each frame of the bird's singing signal according to the distribution of the convolution separability of the plane feature image at the corresponding moment of all frames of bird's singing signals in a rectangular short-time window; combining the convolution separability at each moment and the temporal smoothness of each frame of the bird's singing signal to obtain the sliding three-dimensional convolution smoothness of each frame of the bird's singing signal; obtaining the number of convolution groups of the 3D convolution kernel according to the frequency distribution of the spectrum diagram of each frame of the bird's singing signal and the sliding three-dimensional convolution smoothness; combining the number of convolution groups of the 3D convolution kernel and the neural network model to complete the bird's singing recognition; The method of obtaining the spectral entropy time delay synchronization coefficient of each frame of the bird singing signal according to the difference of the autocorrelation function of each frame of the bird singing signal in each rectangular short-time window under different time delays includes: The VAD endpoint detection algorithm is used to obtain the sound signal interval of the bird song signal. The minimum interval length of all sound signal intervals is used as the delay upper limit when calculating the autocorrelation function. For each rectangular short-time window, the autocorrelation function of each frame of the bird song signal under different time delays is calculated, and the position, width and amplitude of the peak of the autocorrelation function are obtained. The bird song signal is Fourier transformed to calculate the spectral entropy of each frame of the bird song signal. The expression of the spectral entropy delay synchronization coefficient of each frame of bird song signal is: In the formula, is the spectral entropy delay synchronization coefficient of the a-th frame bird song signal, is an exponential function with a natural constant as base, is the spectral entropy of the a-th frame of the bird song signal in the rectangular short-time window, is the width of the peak of the autocorrelation function corresponding to the a-th frame of the bird's chirping signal at the upper limit of the delay in the rectangular short-time window, , are the maximum and minimum spectral entropy values of all bird song signals in the rectangular short-time window, , They are the maximum and minimum widths of the autocorrelation function peaks corresponding to the upper limit of the delay for all frames of bird calls in the rectangular short-time window; The long-delay stability coefficient of the window of each frame of the bird's singing signal is obtained according to the peak amplitude distribution of the autocorrelation function of each frame of the bird's singing signal under different delays in each rectangular short-time window, and the expression is: In the formula, is the window long delay stability coefficient of the a-th frame bird song signal, N is the number of frames in the rectangular short-time window to which the a-th frame bird song signal belongs, , are the peak amplitude sequences composed of the amplitudes of the autocorrelation function peaks of the a-th frame bird chirping signal and the b-th frame bird chirping signal at all time delays within the upper limit of the time delay in ascending order of the time delay scale, is the minimum function, is the value variance function, Indicates that the sequence is calculated separately , The variance of values between elements in the same order, , Sequence , The coefficient of variation of the internal elements; The method of combining the spectral entropy delay synchronization coefficient and the window long delay stability coefficient to obtain the window multi-delay period index of each frame of the bird song signal includes: For each frame of bird singing signal in each rectangular short-time window, the product of the window long delay stability coefficient and the spectral entropy delay synchronization coefficient is calculated, the difference between the Mel-cepstral coefficient at the frequency corresponding to the peak of the autocorrelation function under the first delay and the Mel-cepstral coefficient at the frequency corresponding to the peak of the autocorrelation function under all other delays is calculated, the sum of the differences under all delays is calculated, the sum of the sum and the preset parameter adjustment factor is calculated, recorded as the first sum, and the ratio of the product to the first sum is used as the multi-delay period index within the window of each frame of the bird singing signal.
2. The method for identifying bird calls in wild ecological environment based on neural network according to claim 1, characterized in that: The obtaining of the segmentation result similarity between two coordinate points on the plane feature image corresponding to each moment includes: For the plane feature image corresponding to each moment, each coordinate point on the plane feature image is used as a segmentation point to determine the minimum closed loop path using the Dijkstra algorithm. The minimum closed loop path of each coordinate point divides the plane feature image into two data clusters. The expression of the similarity of the segmentation results between two coordinate points is: In the formula, is the xth moment corresponding to the plane feature image , The similarity of the segmentation results between the coordinate points, , They are respectively , The number of data clusters obtained when the coordinate points are the split points. So The set of elements in the cth data cluster obtained when the coordinate point is the segmentation point, So The set of elements in the gth data cluster obtained when the coordinate point is the segmentation point, Is a collection , The Jaccard coefficient between .
3. The method for identifying bird calls in wild ecological environment based on neural network according to claim 2, characterized in that: The convolution segmentability of the corresponding plane feature image at each moment is obtained by combining the segmentation result similarity and the multi-delay period index within the window, including: Calculate the mean path length of the minimum closed-loop path corresponding to all coordinate points on the plane feature image corresponding to each moment, recorded as the first mean, calculate the mean similarity of the segmentation results between all coordinate points on the plane feature image corresponding to each moment, recorded as the second mean, calculate the product of the first mean and the multi-delay cycle index within the window of the frame corresponding to each moment, and take the ratio of the product to the second mean as the convolution separability of the plane feature image corresponding to each moment.
4. The method for identifying bird calls in wild ecological environment based on neural network according to claim 1, characterized in that: The temporal smoothness of each frame of the bird singing signal is obtained according to the distribution of the convolution separability of the plane feature image at the corresponding time of all frames of the bird singing signal in the rectangular short-time window, including: A sequence consisting of the convolution separability of the plane feature images of all the bird singing signals at the corresponding moments in the rectangular short-time window to which each frame of the bird singing signal belongs is obtained, the variance of all the elements in the sequence is calculated, the absolute value of the difference between the in-window multi-delay period index of each frame of the bird singing signal and the in-window multi-delay period index mean of all the bird singing signals in the rectangular short-time window to which each frame of the bird singing signal belongs is calculated, and the product of the variance and the absolute value of the difference is used as the temporal smoothness of each frame of the bird singing signal.
5. The method for identifying bird calls in wild ecological environment based on neural network according to claim 4, characterized in that: The sliding three-dimensional convolution smoothness of each frame of the bird singing signal is obtained by combining the convolution separability at each moment and the temporal smoothness of each frame of the bird singing signal, including: The multi-delay periodic index in the window of all frames of bird singing signals is used to obtain each cluster cluster by using a clustering algorithm, the variance of all elements in each cluster cluster is calculated, and the cluster cluster corresponding to the minimum variance is used as the high noise component cluster cluster, and a sequence composed of the convolution separability of the plane feature images of all elements in the high noise component cluster cluster at the corresponding time is obtained, which is recorded as the first sequence, and the Pearson correlation coefficient between the sequence and the first sequence is calculated, and the mean of the absolute value of the difference between the corresponding time of each frame of bird singing signal and the corresponding time of all elements in the high noise component cluster cluster is calculated, which is recorded as the third mean, and the product of the third mean and the Pearson correlation coefficient is calculated, which is recorded as the first product, and the ratio of the time series smoothness of each frame of bird singing signal to the first product is used as the sliding three-dimensional convolution smoothness of each frame of bird singing signal.
6. The method for identifying bird calls in wild ecological environment based on neural network according to claim 1, characterized in that: The number of convolution groups of the 3D convolution kernel is obtained according to the frequency distribution of the bird song signal spectrum of each frame and the smoothness of the sliding three-dimensional convolution, including: For each frame of bird singing signal, the Mel-frequency cepstral coefficients of all frequencies of the corresponding spectrum are sorted in descending order of frequency, and the sliding three-dimensional convolution smoothness and the multi-delay period index within the window of each frame of the bird singing signal are placed in the first two places of the sorting result. The obtained sequence is used as the convolution feature sequence of each frame of the bird singing signal, and the cosine similarity between the convolution feature sequences of all any two consecutive frames of bird singing signals is calculated respectively. All the cosine similarities are used to obtain the abnormal points using the stable random forest felling algorithm. The number of convolution groups divided by the 3D convolution kernel is the sum of the total number of abnormal points and 1.
7. The method for identifying bird calls in wild ecological environment based on neural network according to claim 1, characterized in that: The method of combining the number of convolution groups of the 3D convolution kernel and the neural network model to complete the bird song recognition includes: The three-dimensional feature image of the bird singing signal is convolved with each convolution group to obtain the convolution results. The vector obtained by concatenating the convolution results head to tail in the time sequence of the convolution groups is used as the 3D convolution acoustic feature vector of the bird singing signal. The 3D convolution acoustic feature vector is used as the input of the neural network model, and the output is the bird recognition result of the bird singing signal.
