A method for bird song recognition in ecological environment based on 3D convolution

By using the ecological environment bird call recognition method based on 3D convolution in complex natural environments, combined with sliding windows and deep neural networks, the problem of low recognition accuracy of the traditional Wiener filter algorithm in noisy environments is solved, and the More efficient bird song recognition.

CN118538226BActive Publication Date: 2024-09-24BIRDS DATA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411001630.0
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

Technical Problem

In complex natural environments, it is difficult for the traditional Wiener filter algorithm to effectively remove noise while retaining the detailed information of bird calls, resulting in low accuracy of bird call recognition, especially when noise interference is severe.

Method used

An ecological environment bird call recognition method based on 3D convolution is used to calculate the bird song confidence coefficient and disturbance coefficient through sliding window technology, Fourier transform, IRM algorithm and EMD empirical mode decomposition algorithm, and adaptively adjust the Wiener The smoothing coefficient of the filtering algorithm is combined with the 3D convolutional neural network for recognition.

Benefits of technology

It improves the accuracy of bird song recognition in complex environments, maintains the pitch and syllable characteristics of bird songs, enhances the quality of speech signals, accurately reflects the degree of noise interference, and optimizes the denoising effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118538226B
    Figure CN118538226B
Patent Text Reader

Abstract

The present application relates to the field of speech processing technology, and specifically to a method for identifying bird calls in an ecological environment based on 3D convolution, including: collecting natural environment audio data, obtaining effective audio signals, dividing sliding windows, obtaining the signal period of each sliding window, calculating amplitude variation factors and audio structure monotonic factors, obtaining bird call confidence coefficients, constructing bird call enhancement signals, calculating frequency domain disturbance factors and bird call signal difference factors, obtaining bird call disturbance coefficients, determining smoothing coefficients based on the bird call disturbance coefficients and effective audio signals in the bird call enhancement signals, and obtaining bird call recognition results. The present application aims to solve the problem that the traditional Wiener filtering algorithm does not take into account the complexity of audio signals in the natural environment, making it difficult to retain the detailed information of bird calls while taking into account the denoising effect of audio signals in the natural environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech processing technology, and in particular to a method for identifying bird calls in an ecological environment based on 3D convolution. Background Art

[0002] As an important field of bioacoustic research, bird song recognition has strong practical significance for biodiversity conservation, ecosystem monitoring, scientific research, and environmental technology development. The bird song recognition method based on sliding window and 3D convolution can adapt to different types of bird songs, effectively extract useful sound fragments from the natural environment, and process the time and frequency characteristics of audio signals at the same time to improve the accuracy of recognition.

[0003] The audio signals in the natural environment are complex and diverse. How to extract the audio features of birds in complex environments has become an important prerequisite for the accuracy of bird song recognition. The ubiquitous noise interference in the natural environment and the existence of other audio signals with strong periodicity in complex environments have greatly increased the difficulty of extracting bird audio features in complex environments. The Wiener filter denoising algorithm can perform good denoising on audio signals in natural environments, but the traditional Wiener filter algorithm does not take into account the complexity of audio signals in natural environments and uniformly sets the smoothing coefficient, making it difficult to retain the detailed information of bird songs while taking into account the denoising effect of audio signals in natural environments, resulting in low accuracy in identifying bird songs in natural environments. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides an ecological environment bird song recognition method based on 3D convolution to solve the existing problems.

[0005] The present invention discloses a method for identifying bird sounds in an ecological environment based on 3D convolution, which adopts the following technical solutions:

[0006] An embodiment of the present application provides a method for identifying bird sounds in an ecological environment based on 3D convolution, the method comprising the following steps:

[0007] S1, collect natural environment audio data and obtain effective audio signals;

[0008] S2.1, dividing the sliding window according to the effective audio signal, and obtaining the signal period of each sliding window; obtaining the bird call confidence coefficient based on the complexity and similarity of the effective audio signals of all signal periods in each sliding window;

[0009] S2.2, constructing a bird song enhancement signal according to the bird song confidence coefficients of all sliding windows, and calculating the syllable clutter factor; obtaining the bird song disturbance coefficient based on the syllable clutter factor and the characteristic difference of the effective audio signal in each signal cycle and between all signal cycles in the bird song enhancement signal;

[0010] S3, determining a smoothing coefficient according to the bird song disturbance coefficient and the effective audio signal in the bird song enhancement signal, and obtaining a bird song recognition result.

[0011] Optionally, the step of dividing the sliding window according to the valid audio signal and obtaining the signal period of each sliding window includes the following specific methods:

[0012] The effective audio signal is divided into a plurality of rectangular short-time windows by using short-time autocorrelation analysis, the minimum value of the lengths of all rectangular short-time windows is taken as the optimal window length, and the effective audio signal is divided into a plurality of sliding windows with the lengths of the optimal window lengths at equal intervals;

[0013] Perform Fourier transform on the effective audio signal in each sliding window, output the audio signal fundamental frequency, and take the inverse of the audio signal fundamental frequency as the signal period of each sliding window.

[0014] Optionally, the obtaining of the bird call confidence coefficient includes the following specific methods:

[0015] Obtaining an amplitude variation factor and an audio zero-crossing complexity index based on the complexity of the effective audio signal of all signal cycles in each sliding window;

[0016] Obtaining an audio structure monotonicity factor based on the similarity of valid audio signals in all signal cycles in each sliding window;

[0017] The ratio of the audio zero-crossing complexity index of each sliding window to the audio structure monotonic factor is taken as the audio complexity coefficient, the sum of the amplitude variation factors of all signal periods in each sliding window is taken as the amplitude variation coefficient within the window, and the normalized value of the product of the audio complexity coefficient and the amplitude variation coefficient within the window is recorded as the bird call confidence coefficient.

[0018] Optionally, the obtaining of the amplitude variation factor and the audio zero-crossing complexity index includes the following specific methods:

[0019] Arrange the amplitudes of the valid audio signals in each signal period in each sliding window in ascending order according to time sequence as the valid amplitude sequence in each signal period in each sliding window;

[0020] The sum of the dot product similarities between each signal period in each sliding window and the effective amplitude sequences of the remaining signal periods in the sliding window plus the preset parameter adjustment factor is taken as the signal amplitude similarity index of each signal period in each sliding window, and the ratio of the range of the effective amplitude sequence in each signal period in each sliding window to the signal amplitude similarity index is taken as the amplitude variation factor;

[0021] The zero-crossing rates of the effective audio signals in all signal cycles in each sliding window are arranged in ascending order according to time sequence as an effective zero-crossing rate sequence, and the approximate entropy of the effective zero-crossing rate sequence is used as the audio zero-crossing complexity index of each sliding window.

[0022] Optionally, the obtaining of the audio structure monotonicity factor includes the following specific methods:

[0023] The average value of the DTW distances between the Mel-frequency cepstral coefficients of the valid audio signal in all signal periods in each sliding window is calculated, and the calculation result of an exponential function with a natural constant as the base and the inverse of the average value as the exponent is used as the audio structure monotonicity factor.

[0024] Optionally, the constructing of the bird song enhancement signal according to the bird song confidence coefficients of all sliding windows includes the following specific methods:

[0025] Normalizing the bird call confidence coefficients of all sliding windows, and using the normalized result of each bird call confidence coefficient as the confidence ratio of the corresponding sliding window;

[0026] Taking the spectrogram of the valid speech signal in each sliding window as input, and using the IRM algorithm to obtain the enhancement result of the valid audio signal in each sliding window based on the confidence ratio of the sliding window;

[0027] The enhanced results of the effective audio signals in all sliding windows are concatenated in chronological order to obtain a signal as the bird song enhanced signal.

[0028] Optionally, obtaining the bird song disturbance coefficient includes:

[0029] Perform Fourier transform on the effective audio signal in each signal cycle of the bird song enhancement signal, and output the bird song spectrum of each signal cycle; record the maximum value of the effective audio signal in each signal envelope in the bird song spectrum as the energy characteristic value of each signal envelope, and calculate the 3db bandwidth of each signal envelope in the bird song spectrum of each signal cycle;

[0030] The frequency domain interference factor is obtained according to the energy characteristic values ​​of all signal envelopes in the bird song spectrum diagram of each signal cycle and the 3db bandwidth; the bird song signal difference factor is obtained according to the effective audio signals of all signal cycles in the bird song enhancement signal and the energy characteristic values ​​of each signal envelope in the bird song spectrum diagram;

[0031] The normalized value of the product of the cumulative sum of the frequency domain disturbance factors of all signal cycles in the bird song enhancement signal and the cumulative sum of the bird song signal difference factors of all signal cycles is calculated as the bird song disturbance coefficient.

[0032] Optionally, obtaining the frequency domain disturbance factor includes:

[0033] Arrange the 3db bandwidths of all signal envelopes in the bird song spectrum of each signal cycle in ascending order according to the corresponding frequencies as a bandwidth sequence, and use the information entropy of the bandwidth sequence as the bandwidth clutter index;

[0034] For each signal period in the bird song enhancement signal, the sum of the difference between the energy characteristic values ​​of the fundamental frequency signal envelope and the remaining signal envelopes in the bird song spectrum diagram of each signal period plus the preset parameter adjustment factor is taken as the period energy difference of each signal period, the inverse of the sum of the absolute values ​​of the difference between the 3db bandwidths of the fundamental frequency signal envelope and the remaining signal envelopes in the bird song spectrum diagram of each signal period is taken as the bird song bandwidth similarity index, and an exponential function with a natural constant as the base and the bird song bandwidth similarity index as the exponent is taken as the bandwidth disturbance index;

[0035] The ratio of the bandwidth clutter index to the period energy difference is multiplied by the bandwidth disturbance index to obtain the frequency domain disturbance factor.

[0036] Optionally, the obtaining of the bird song signal difference factor includes the following specific methods:

[0037] The EMD empirical mode decomposition algorithm is used to decompose the effective audio signal of each signal cycle in the bird song enhanced signal into multiple connotation modal components. The average value of the number of connotation modal components of all signal cycles in the bird song enhanced signal is taken as the mean of the bird song components. The difference between the number of connotation modal components of each signal cycle and the mean of the bird song components is taken as the difference of the bird song signal components in each signal cycle.

[0038] For each signal cycle in the bird song enhancement signal, the energy characteristic values ​​of all signal envelopes in the bird song spectrum of each signal cycle are arranged in ascending order according to the corresponding frequencies as the bird song energy sequence of each signal cycle, and the sum of the cosine similarities between each signal cycle and the bird song energy sequences of other signal cycles plus the preset parameter adjustment factor is taken as the window energy similarity index of each signal cycle;

[0039] The calculation result of the exponential function with the natural constant as the base and the component difference of the bird song signal as the exponent is taken as the component difference factor, and the ratio of the component difference factor to the window energy similarity index is taken as the bird song signal difference factor.

[0040] Optionally, the determining of the smoothing coefficient and obtaining the bird sound recognition result includes the following specific methods:

[0041] The sum of the value 0.5 and the bird song disturbance coefficient is multiplied by the preset original smoothing coefficient as the smoothing coefficient in the improved Wiener filtering algorithm, the improved Wiener filtering algorithm is used to denoise the bird song enhancement signal to obtain a bird song purification signal, the bird song purification signal is framed, each frame of the bird song purification signal is Fourier transformed, and a bird song purification spectrum is output;

[0042] The bird song purified spectrograms of all frames are organized into a 3D feature map in chronological order and used as the input of the fully connected layer in the DNN deep neural network to output the bird song recognition results.

[0043] The beneficial effects of the present application are as follows: a comprehensive analysis is performed on the time domain amplitude and audio complex structure characteristics of the effective audio signal in the sliding window, and a bird song confidence coefficient is obtained based on the complexity and similarity of the effective audio signals of all signal periods in each sliding window, which more accurately reflects the possibility of containing bird songs in the sliding window; secondly, the effective audio signal in each sliding window is enhanced according to the bird song confidence coefficient of the sliding window to obtain a bird song enhanced signal, which can maintain the pitch, timbre, and regularity between syllables of the bird song and other important singing features without being excessively damaged in the subsequent denoising process, and when the IRM algorithm is used for enhancement, the energy ratio between the bird song signal and the noise in the spectrogram can be adjusted to adjust the energy size at each frequency on each frame signal of the sliding window, thereby further improving the quality and intelligibility of the speech signal; then, the frequency of each signal period in the bird song enhanced signal is adjusted. The frequency domain energy characteristics and signal component bandwidth characteristics are analyzed, and the bird song disturbance coefficient is obtained based on the characteristic differences of the effective audio signals in each signal period and between all signal periods in the bird song enhancement signal. The influence of the noise interference degree on the signal component bandwidth is considered on the basis of analyzing the frequency domain energy differences within the signal period, which more accurately reflects the degree to which the bird song is disturbed by the natural environment noise. Based on this, the smoothing coefficient in the Wiener filtering algorithm is adaptively adjusted to avoid the smoothing coefficient in the Wiener filtering algorithm being too large or too small to affect the denoising effect of the algorithm. While retaining the detailed information of the bird song as much as possible, the audio signal in the natural environment is denoised, which improves the denoising effect of the audio signal in the natural environment. Finally, the bird song is recognized and processed by a neural network based on 3D convolution, which improves the accuracy of bird song recognition in complex natural environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 A schematic diagram of a flow chart of a method for identifying bird sounds in an ecological environment based on 3D convolution provided in one embodiment of the present application;

[0046] Figure 2 Schematic diagram of obtaining bird song recognition results. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] See also Figure 1 , which shows a flow chart of a method for identifying bird sounds in an ecological environment based on 3D convolution provided by an embodiment of the present application, the method comprising the following steps:

[0049] Step S001: Collect natural environment audio data to obtain effective audio signals.

[0050] The sampling rate of the acoustic sensor is set to 48KHz, and the acoustic sensor is placed in the monitored area of ​​the natural environment to collect the natural environment audio data. The EPD endpoint detection algorithm is used to perform endpoint detection on the natural environment audio data, and the start and end positions of each sound signal area in the natural environment audio data are obtained. All the sound signal areas in the natural environment audio data are spliced ​​in chronological order as valid audio signals. Among them, the EPD endpoint detection algorithm is a well-known technology, and the specific process is not repeated in this embodiment.

[0051] Step S002: obtaining a bird song confidence coefficient based on the complexity and similarity of the effective audio signals of all signal periods in each sliding window, obtaining a bird song enhancement signal based on the bird song confidence coefficient, and obtaining a bird song disturbance coefficient based on the characteristic differences of the effective audio signals between the signal periods in the bird song enhancement signal.

[0052] The natural environment audio signals are full of various audio signals, and it is necessary to distinguish the bird singing signals from other audio signals. The bird singing sound is produced by the bird's syrinx, which has a complex structure and may contain multiple syllables and pitch changes as well as different rhythms and orders; while the structure of insect chirping is relatively simple, with obvious periodic characteristics, usually composed of continuous repeated syllables; the sound of water drops is an instantaneous sound, which is not periodic and presents random or irregular time domain characteristics; secondly, the duration and interval changes of bird singing are greater than those of insect chirping and water drop sounds, and the sound intensity changes greatly, while the consistency of the time domain characteristics of insect chirping is stronger than that of bird singing.

[0053] The effective audio signal is divided into a plurality of rectangular short-time windows by using short-time autocorrelation analysis, the minimum value of the length of all rectangular short-time windows is taken as the optimal window length, and the effective audio signal is equally divided into a plurality of sliding windows with the length of the optimal window length. The effective audio signal in each sliding window is subjected to Fourier transform, the audio signal base frequency is output, and the inverse of the audio signal base frequency is taken as the signal period. Among them, the short-time autocorrelation analysis and the Fourier transform are both well-known technologies, and the specific process is not repeated in this embodiment.

[0054] Setting the length of the sliding window to the minimum length of all rectangular short-time windows can ensure that there must be signal components with strong local characteristics in the rectangular short-time window in the sliding window, and avoid the disadvantage that redundant signal components in the sliding window affect subsequent analysis.

[0055] The mel-frequency cepstral coefficient is a coefficient constituting the mel-frequency cepstral, which can reflect the characteristics of the speech signal and calculate the mel-frequency cepstral coefficient of the effective audio signal in each signal period. The mel-frequency cepstral coefficient is a sequence, and the calculation of the mel-frequency cepstral coefficient is a well-known technology, which will not be described in detail in this embodiment.

[0056] For each sliding window, the amplitude of the valid audio signal in each signal period in each sliding window is arranged in ascending order according to the time sequence as the valid amplitude sequence in each signal period in each sliding window; the zero-crossing rate of the valid audio signal in all signal periods in each sliding window is arranged in ascending order according to the time sequence as the valid zero-crossing rate sequence, and the approximate entropy of the valid zero-crossing rate sequence is used as the audio zero-crossing complexity index of each sliding window. Among them, the acquisition of the zero-crossing rate and the calculation of the approximate entropy are well-known technologies, and this embodiment will not be described in detail here.

[0057] Based on the above analysis, the bird song confidence coefficient is constructed to characterize the possibility of containing bird songs in the sliding window:

[0058]

[0059]

[0060]

[0061] in, is the amplitude variation factor of the i-th signal period in the n-th sliding window; , They are the maximum value function and the minimum value function respectively; , are the effective amplitude sequences of the ith and jth signal periods in the nth sliding window respectively; is the number of signal cycles in the nth sliding window; Represents the dot product similarity between two sequences; is the audio structure monotonicity factor of the nth sliding window; represents an exponential function with a natural constant as base; , are the Mel-frequency cepstrum coefficients of the valid audio signal in the i-th and j-th signal periods in the n-th sliding window respectively; Represents the DTW distance between two sequences; is the bird call confidence coefficient of the nth sliding window; is the audio zero-crossing complex index of the nth sliding window; is the normalization function; is a parameter adjustment factor greater than 0, the purpose is to prevent the denominator from being 0. The value is 1.

[0062] The greater the difference between the maximum and minimum values ​​of the effective amplitude sequence in each signal cycle in the sliding window, that is, The larger the value, the greater the change in the intensity of the effective audio signal within the signal period; at the same time, the smaller the dot product similarity between each signal period in the sliding window and the effective amplitude sequence of the remaining signal periods in the sliding window, that is, The smaller it is, the less similar the change characteristics of the effective audio signal in the signal period in the sliding window are to those in other signal periods, and the larger the amplitude variation factor value is; when the difference between the Mel frequency cepstrum coefficients in all signal periods in the sliding window is smaller, that is The smaller the value is, the more similar the frequency characteristics of the valid audio signals in all signal periods in the sliding window are. Furthermore, the more uniform the valid audio signals in the sliding window are, the larger the value of the audio structure monotonicity factor is.

[0063] When the audio zero-crossing complexity index of the sliding window is larger, that is, The larger it is, the worse the regularity of the effective audio signal in each signal period in the sliding window is and the higher the complexity is. At the same time, when the audio structure monotonicity factor of the sliding window is smaller, the sum of the amplitude variation factors of all signal periods is larger, that is, The smaller, The larger it is, the more diverse the effective audio signals in the sliding window are, and the greater the intensity change is. Furthermore, the more likely it is that the effective audio signals in the sliding window contain complex and changeable bird calls, and the larger the bird call confidence coefficient value is.

[0064] Furthermore, in order to improve the distinction between bird calls and noise in effective audio signals, and to keep the pitch, timbre, and regularity between syllables of bird calls as much as possible, important call features will not be excessively damaged in the subsequent denoising process, affecting the final call recognition result, the signal in each sliding window is masked and enhanced based on the bird call confidence coefficient of each sliding window, and the masking enhancement can be achieved by the following steps:

[0065] First, for any sliding window, taking the nth sliding window as an example, the spectrogram of the nth sliding window is obtained as , the larger the bird call confidence coefficient of the nth sliding window, the greater the possibility that the effective audio signal in the nth sliding window contains complex and changeable bird calls. Since the energy in the audio signal is sparse, the The greater the impact on the important singing features of birdsong when the energy of birdsong at each frequency in each frame is masked by noise energy, the greater the possibility that the effective audio signal in the nth sliding window contains complex and changeable birdsong. The greater the noise suppression.

[0066] Secondly, the noise, ambient sound, and clean speech signals of birdsong in the monitored area are obtained as known signals, and the signal-to-noise ratio is estimated based on the known signals using the power spectrum estimation method to obtain the estimated value of the signal-to-noise ratio. Subsequently, the bird song confidence coefficients of all sliding windows are obtained, and extreme value normalization is performed, and the normalized result of each bird song confidence coefficient is used as the confidence ratio of the corresponding sliding window. Finally, the spectrogram is used as the As the input of the IRM (Ideal Ration Mask) algorithm, the adjustable scale factor in the algorithm is used as the confidence ratio of the nth sliding window, and the IRM algorithm is used to obtain the enhancement result of the effective audio signal in the nth sliding window, wherein the signal-to-noise ratio estimation, extreme value normalization and IRM algorithm are all well-known technologies, and the specific process will not be repeated here.

[0067] Based on the above steps, the enhancement results of the effective audio signal in each sliding window are obtained respectively, and all the enhancement results are spliced ​​in chronological order to obtain the enhancement result of the effective audio signal, that is, the bird song enhancement signal.

[0068] In this embodiment, by enhancing the effective audio signal to improve the audio quality, it is possible to maintain the pitch, timbre, and regularity between syllables of the bird's song and other important singing features without excessive damage in the subsequent denoising process. When using the IRM algorithm for enhancement, the energy ratio between the bird's song signal and the noise in the spectrogram can be adjusted to adjust the energy size at each frequency on each frame signal of the sliding window, thereby further improving the quality and intelligibility of the speech signal, and facilitating the improvement of the quality of the audio signal obtained by subsequent denoising.

[0069] Furthermore, the effective audio signal in each signal period of the bird song enhancement signal is Fourier transformed, and the bird song spectrum diagram of each signal period is output. Since the bird song enhancement signal is composed of multiple sliding windows, the length of the signal period of each sliding window is not necessarily the same, and therefore, the length of each signal period in the bird song enhancement signal is not necessarily the same. The effective audio signal of each signal period in the bird song enhancement signal is decomposed into multiple connotation modal components by using the EMD empirical mode decomposition algorithm. Among them, the Fourier transform and the EMD empirical mode decomposition algorithm are both well-known technologies, and the specific process is not repeated in this embodiment.

[0070] The maximum value of the effective audio signal in each signal envelope in the bird song spectrum is recorded as the energy characteristic value of each signal envelope, the energy characteristic values ​​of all signal envelopes in the bird song spectrum of each signal cycle are arranged in ascending order according to the corresponding frequency as the bird song energy sequence, and the 3db bandwidths of all signal envelopes in the bird song spectrum of each signal cycle are arranged in ascending order according to the corresponding frequency as the bandwidth sequence. Among them, the acquisition of signal envelopes and 3db bandwidths is a well-known technology, which will not be described in detail in this embodiment.

[0071] Based on the above analysis, this embodiment constructs a bird song interference coefficient to characterize the degree to which the audio signal in the bird song enhancement signal is disturbed by noise:

[0072]

[0073]

[0074]

[0075] in, is the frequency domain disturbance factor of the pth signal period in the bird song enhancement signal; is the information entropy of the bandwidth sequence of the pth signal period in the bird song enhancement signal; is the number of signal envelopes in the bird song spectrum diagram of the pth signal period in the bird song enhancement signal; , are the energy eigenvalues ​​of the baseband signal envelope and the qth signal envelope in the bird song spectrum diagram of the pth signal period in the bird song enhancement signal respectively; , They are the 3db bandwidths of the baseband signal envelope and the qth signal envelope in the bird song spectrum diagram of the pth signal cycle in the bird song enhancement signal respectively; represents an exponential function with a natural constant as base; is the bird song signal difference factor of the pth signal cycle in the bird song enhancement signal; is the number of intrinsic modal components in the pth signal period in the bird song enhancement signal; is the average number of intrinsic modal components of all signal cycles in the bird song enhancement signal; , are the bird song energy sequences of the pth and rth signal cycles in the bird song enhancement signal respectively; Represents the cosine similarity between two sequences; is the disturbance coefficient of birdsong; is the number of signal cycles in the birdsong enhancement signal; is the normalization function; is a parameter adjustment factor greater than 0, the purpose is to prevent the denominator from being 0. The value is 1.

[0076] When the difference between the energy characteristic value and 3db bandwidth of each signal envelope in the signal period and the baseband signal envelope of the signal period is smaller, that is, The smaller, The smaller it is, the more likely the bird song signal within the signal period is interfered by noise, which reduces the energy gap between the fundamental frequency and other frequencies in the bird song spectrum and reduces the bandwidth difference. At the same time, the larger the information entropy of the bandwidth sequence corresponding to the signal period, that is, The larger the value, the more likely the bird song signal in the signal period is to be interfered by noise, resulting in complex bandwidth characteristics. Furthermore, the greater the degree of noise interference to the bird song signal in the signal period, the greater the value of the frequency domain interference factor.

[0077] When the number of connotation modal components of a signal period is larger than the average number of connotation modal components of all signal periods, the cosine similarity between the signal period and the bird song energy sequence of the remaining signal periods is smaller, that is, The bigger, The smaller the value, the greater the difference in signal components and signal strength between the bird song signal in this signal cycle and other signal cycles, and the greater the bird song signal difference factor value;

[0078] and The bigger, The larger it is, the more chaotic the syllables of the bird song signal in the bird song enhancement signal are, and the greater the degree of noise interference. At the same time, due to noise interference in the bird song enhancement signal, the difference between the bird song signals between each signal cycle is more significant, and the larger the bird song disturbance coefficient value is, the higher the smoothing coefficient in the Wiener filter algorithm should be adjusted at this time to eliminate the interference of noise in the natural environment as much as possible while ensuring the detailed information of the bird song.

[0079] Step S003: obtaining a bird song purification signal according to the smoothing coefficient, obtaining a 3D feature map of a neural network input based on the bird song purification signal, and obtaining a bird song recognition result.

[0080] Improve the smoothing coefficient in the Wiener filter algorithm based on the bird song disturbance coefficient:

[0081]

[0082] in, is the smoothing coefficient in the improved Wiener filtering algorithm; is the original smoothing coefficient with a value range of 0 to 1. The value is 0.5; is the disturbance coefficient of birdsong.

[0083] The value range is 0.5 to 1.5. When the bird song disturbance coefficient is smaller, it means that the bird song signal is less disturbed by the natural environment noise, and the smoothing coefficient should be lowered to retain the detailed information of the bird song as much as possible. When the disturbance coefficient is less than 1, the smoothing coefficient is reduced on the basis of the original smoothing coefficient. When the disturbance coefficient of bird song is larger, it means that the bird song signal is more disturbed by the natural environment noise. At this time, the smoothing coefficient should be increased to eliminate the interference of the natural environment noise on the bird song signal as much as possible. If it is greater than 1, the smoothing coefficient is increased based on the original smoothing coefficient.

[0084] The bird song enhancement signal is taken as input, and denoising is performed based on the smoothing coefficient using the Wiener filtering algorithm. The denoising result is used as the bird song purification signal, the bird song purification signal is framed, and each frame of the bird song purification signal is subjected to Fourier transform to output a bird song purification spectrum diagram. In this embodiment, the length of each frame of the bird song purification signal is 20ms.

[0085] The bird song purified spectrograms of all frames are organized into a 3D feature map in time order and used as the input of the DNN deep neural network to output the bird song recognition result. Among them, the 3D convolution kernel is used as the convolution kernel of the DNN deep neural network, Adam is used as the optimization algorithm, and the cross entropy loss function is used as the loss function of the DNN deep neural network. The 3D feature map of the bird song signal is 3D convolved with the convolution group. During the convolution process, the filters are slid from left to right and from top to bottom in the time dimension of the 3D feature map. The step size of each slide is set to 1, and the dimension of the filters is 3×3×3. The purpose of this sliding is to better extract the deep features of the bird song in the time sequence. The 3D deep features output after the convolution are used as the input of the fully connected layer in the DNN deep neural network. The output of the DNN deep neural network is the bird song recognition result.

[0086] Among them, 3D convolution kernel and DNN deep neural network are well-known technologies, and the specific process is not repeated in this embodiment. Figure 2 shown.

[0087] In this embodiment, a bird song enhancement signal and a bird song purification signal are constructed based on the effective audio signal obtained in the natural environment, thereby reducing the interference degree of noise on the recognition of bird songs. The bird song enhancement signal is an enhancement result of the collected effective audio signal, which can maintain the pitch, timbre, and regularity between syllables of the bird song and other important singing features without being excessively damaged in the subsequent denoising process, and enhances the comprehensibility of the speech signal, so that when the 3D feature map is convolved with the 3D convolution kernel, more contextual information with high comprehensibility can be obtained on the 3D feature map through a larger receptive field, and filters at each sliding position on the 3D feature map will multiply the convolution kernel and the elements of the coverage area element by element, so more contextual information with high comprehensibility makes the extracted deep features more consistent with the temporal features of the bird song, thereby improving the accuracy of bird song recognition in the natural environment.

[0088] It should be noted that the above sequence of the embodiments of the present application is for description only 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.

[0089] 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.

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

Claims

1. A method for identifying bird sounds in an ecological environment based on 3D convolution, characterized in that: The method comprises the following steps: S1, collect natural environment audio data and obtain effective audio signals; S2.1, dividing the sliding window according to the effective audio signal, and obtaining the signal period of each sliding window; obtaining the bird call confidence coefficient based on the complexity and similarity of the effective audio signals of all signal periods in each sliding window; S2.2, constructing a bird song enhancement signal according to the bird song confidence coefficients of all sliding windows; obtaining a bird song disturbance coefficient based on the characteristic difference of the effective audio signal within each signal period and between all signal periods in the bird song enhancement signal; S3, determining a smoothing coefficient according to the bird song disturbance coefficient and the effective audio signal in the bird song enhancement signal, and obtaining a bird song recognition result; The specific method of obtaining the bird call confidence coefficient includes: Obtaining an amplitude variation factor and an audio zero-crossing complexity index based on the complexity of the effective audio signal of all signal cycles in each sliding window; Obtaining an audio structure monotonicity factor based on the similarity of valid audio signals in all signal cycles in each sliding window; The ratio of the audio zero-crossing complexity index to the audio structure monotonic factor of each sliding window is taken as the audio complexity coefficient, the sum of the amplitude variation factors of all signal cycles in each sliding window is taken as the amplitude variation coefficient within the window, and the normalized value of the product of the audio complexity coefficient and the amplitude variation coefficient within the window is recorded as the bird call confidence coefficient; The obtaining of the bird song disturbance coefficient comprises: Perform Fourier transform on the effective audio signal in each signal cycle of the bird song enhancement signal, and output the bird song spectrum of each signal cycle; record the maximum value of the effective audio signal in each signal envelope in the bird song spectrum as the energy characteristic value of each signal envelope, and calculate the 3db bandwidth of each signal envelope in the bird song spectrum of each signal cycle; The frequency domain interference factor is obtained according to the energy characteristic values ​​of all signal envelopes in the bird song spectrum diagram of each signal cycle and the 3db bandwidth; the bird song signal difference factor is obtained according to the effective audio signals of all signal cycles in the bird song enhancement signal and the energy characteristic values ​​of each signal envelope in the bird song spectrum diagram; Calculate the normalized value of the product of the cumulative sum of the frequency domain disturbance factors of all signal cycles in the bird song enhancement signal and the cumulative sum of the bird song signal difference factors of all signal cycles as the bird song disturbance coefficient; The method of determining the smoothing coefficient and obtaining the bird call recognition result includes: The sum of the value 0.5 and the bird song disturbance coefficient is multiplied by the preset original smoothing coefficient as the smoothing coefficient in the improved Wiener filtering algorithm, the improved Wiener filtering algorithm is used to denoise the bird song enhancement signal to obtain a bird song purification signal, the bird song purification signal is framed, each frame of the bird song purification signal is Fourier transformed, and a bird song purification spectrum is output; The bird song purified spectrograms of all frames are organized into a 3D feature map in chronological order and used as the input of the fully connected layer in the DNN deep neural network to output the bird song recognition results.

2. The method for identifying bird sounds in an ecological environment based on 3D convolution according to claim 1, characterized in that: The specific method of dividing the sliding window according to the effective audio signal and obtaining the signal period of each sliding window includes: The effective audio signal is divided into a plurality of rectangular short-time windows by using short-time autocorrelation analysis, the minimum value of the lengths of all rectangular short-time windows is taken as the optimal window length, and the effective audio signal is divided into a plurality of sliding windows with the lengths of the optimal window lengths at equal intervals; Perform Fourier transform on the effective audio signal in each sliding window, output the audio signal fundamental frequency, and take the inverse of the audio signal fundamental frequency as the signal period of each sliding window.

3. The method for identifying bird sounds in an ecological environment based on 3D convolution according to claim 1, characterized in that: The specific method of obtaining the amplitude variation factor and the audio zero-crossing complexity index includes: Arrange the amplitudes of the valid audio signals in each signal period in each sliding window in ascending order according to time sequence as the valid amplitude sequence in each signal period in each sliding window; The sum of the dot product similarities between each signal period in each sliding window and the effective amplitude sequences of the remaining signal periods in the sliding window plus the preset parameter adjustment factor is taken as the signal amplitude similarity index of each signal period in each sliding window, and the ratio of the range of the effective amplitude sequence in each signal period in each sliding window to the signal amplitude similarity index is taken as the amplitude variation factor; The zero-crossing rates of the effective audio signals in all signal cycles in each sliding window are arranged in ascending order according to time sequence as an effective zero-crossing rate sequence, and the approximate entropy of the effective zero-crossing rate sequence is used as the audio zero-crossing complexity index of each sliding window.

4. The method for identifying bird sounds in an ecological environment based on 3D convolution according to claim 1, characterized in that: The specific method of obtaining the audio structure monotonicity factor includes: The average value of the DTW distances between the Mel-frequency cepstral coefficients of the valid audio signal in all signal periods in each sliding window is calculated, and the calculation result of an exponential function with a natural constant as the base and the inverse of the average value as the exponent is used as the audio structure monotonicity factor.

5. The method for identifying bird sounds in an ecological environment based on 3D convolution according to claim 1, characterized in that: The specific method of constructing the bird song enhancement signal according to the bird song confidence coefficients of all sliding windows is as follows: Normalizing the bird call confidence coefficients of all sliding windows, and using the normalized result of each bird call confidence coefficient as the confidence ratio of the corresponding sliding window; Taking the spectrogram of the valid speech signal in each sliding window as input, and using the IRM algorithm to obtain the enhancement result of the valid audio signal in each sliding window based on the confidence ratio of the sliding window; The enhanced results of the effective audio signals in all sliding windows are concatenated in chronological order to obtain a signal as the bird song enhanced signal.

6. The method for identifying bird sounds in an ecological environment based on 3D convolution according to claim 1, characterized in that: The obtaining of the frequency domain interference factor comprises: Arrange the 3db bandwidths of all signal envelopes in the bird song spectrum of each signal cycle in ascending order according to the corresponding frequencies as a bandwidth sequence, and use the information entropy of the bandwidth sequence as the bandwidth clutter index; For each signal period in the bird song enhancement signal, the sum of the difference between the energy characteristic values ​​of the fundamental frequency signal envelope and the remaining signal envelopes in the bird song spectrum diagram of each signal period plus the preset parameter adjustment factor is taken as the period energy difference of each signal period, the inverse of the sum of the absolute values ​​of the difference between the 3db bandwidths of the fundamental frequency signal envelope and the remaining signal envelopes in the bird song spectrum diagram of each signal period is taken as the bird song bandwidth similarity index, and an exponential function with a natural constant as the base and the bird song bandwidth similarity index as the exponent is taken as the bandwidth disturbance index; The ratio of the bandwidth clutter index to the period energy difference is multiplied by the bandwidth disturbance index to obtain the frequency domain disturbance factor.

7. The method for identifying bird sounds in an ecological environment based on 3D convolution according to claim 1, characterized in that: The specific method of obtaining the bird song signal difference factor includes: The EMD empirical mode decomposition algorithm is used to decompose the effective audio signal of each signal cycle in the bird song enhanced signal into multiple connotation modal components. The average value of the number of connotation modal components of all signal cycles in the bird song enhanced signal is taken as the mean of the bird song components. The difference between the number of connotation modal components of each signal cycle and the mean of the bird song components is taken as the difference of the bird song signal components in each signal cycle. For each signal cycle in the bird song enhancement signal, the energy characteristic values ​​of all signal envelopes in the bird song spectrum of each signal cycle are arranged in ascending order according to the corresponding frequencies as the bird song energy sequence of each signal cycle, and the sum of the cosine similarities between each signal cycle and the bird song energy sequences of other signal cycles plus the preset parameter adjustment factor is taken as the window energy similarity index of each signal cycle; The calculation result of the exponential function with the natural constant as the base and the component difference of the bird song signal as the exponent is taken as the component difference factor, and the ratio of the component difference factor to the window energy similarity index is taken as the bird song signal difference factor.

Citation Information

Patent Citations

  • A bird species identification method based on bird whistling

    CN109409308A

  • Bird chirp recognition method based on label hierarchical structure attribute relationship

    CN117095694A

  • Lightweight twitter identification method based on EC-OfficientNet

    CN117831543A

  • Bird chirp recognition method based on audio signal processing

    CN118173105A

  • System and methods for automated wildlife detection, monitoring and control

    US20210137097A1