A method, device and storage medium for determining acoustic index

By determining the frequency range and sound source point of the recording equipment and processing bird sound signals, the problem that the recording signal of the recording equipment affects the accuracy of the acoustic index is solved, the calculation accuracy of the acoustic index is improved, and more reliable ecological diversity assessment is supported.

CN113936688BActive Publication Date: 2024-11-19GUANGZHOU UNIVERSITY +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111072342.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2024-11-19
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

In the prior art, the recording signals recorded by recording equipment are affected by performance and environmental noise, resulting in low accuracy of acoustic index calculations, making it difficult to meet the needs of ecological diversity assessment.

Method used

By obtaining the maximum sampling frequency of the recording device, establishing a coordinate system, determining the sound source point, playing a white noise signal to calculate the sound power level difference of the recording signal, testing the impulse response to determine the frequency range, and performing absolute value processing and filtering based on the bird sound signal , calculate the preselected acoustic index to ensure that the signal is suitable for the acoustic index calculation.

Benefits of technology

It improves the accuracy of the acoustic index, ensures that the bird sound signals obtained by the recording equipment are suitable for the calculation of the acoustic index, and enhances the reliability of ecological diversity assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113936688B_ABST
    Figure CN113936688B_ABST
Patent Text Reader

Abstract

The present invention discloses an acoustic index determination method, device and storage medium. The present invention ensures that if a signal is recorded by a recording device, the recorded signal is suitable for calculating a preselected acoustic index when the first sound power level difference is less than or equal to a level difference threshold, the maximum frequency value is greater than or equal to an upper frequency value, the minimum frequency value is less than or equal to a lower frequency value, and the upper frequency value is less than or equal to half of the maximum sampling frequency; when the absolute value average value is greater than or equal to an average value threshold, the upper frequency value is less than or equal to half of the sampling frequency, and the data quantization bit number is greater than or equal to a bit number threshold, the preselected acoustic index is calculated according to a bird sound signal, further ensuring that the bird sound signal obtained by the recording device is suitable for calculating the acoustic index, thereby improving the accuracy of the preselected acoustic index. The present invention can be widely applied to the field of acoustics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of acoustics, and in particular to an acoustic index determination method, device and storage medium. Background Art

[0002] In the face of global environmental changes, the assessment of biodiversity is an increasingly urgent task. Any changes in biological habitats can be reflected through local soundscapes. Birds, as the most common species in soundscapes, are sensitive to changes in habitats and are important environmental indicator organisms. Similarly, bird species diversity is one of the important components of ecological species diversity and can well reflect changes in local biodiversity. Existing studies have found that bird sound information is closely related to biodiversity. Acoustic indices can describe the ecological diversity of local soundscapes at spatial, temporal and ecological scales based on the frequency and time domain characteristics of audio data.

[0003] Usually, before calculating the acoustic index, it is necessary to use a recording device to record the bird sound signal in the wild. The recording signal recorded by the recording device may have many influencing factors, such as the performance of the recording device and environmental noise, etc., which makes the recording signal not necessarily suitable for the calculation of the acoustic index. If the recording signal is used to calculate the acoustic index, the accuracy of the acoustic index may be low, so a solution needs to be found. Summary of the invention

[0004] In view of this, in order to solve the above technical problems, an object of the present invention is to provide an acoustic index determination method, device and storage medium with improved accuracy.

[0005] The technical solution adopted by the present invention is:

[0006] A method for determining an acoustic index, comprising:

[0007] Obtaining the maximum sampling frequency of the recording device and determining the upper and lower frequency limits of the preselected acoustic index;

[0008] Establishing a coordinate system with the recording device as the origin, and determining a number of sound source points according to the coordinate system;

[0009] Play a white noise signal at the sound source point to determine the recording signal of each of the sound source points, and calculate the first sound power level difference corresponding to each of the recording signals;

[0010] Testing an impulse response at a location at a preset distance from the recording device, and determining a minimum frequency value and a maximum frequency value according to the impulse response;

[0011] When the first sound power level difference is less than or equal to the level difference threshold, the maximum frequency value is greater than or equal to the upper frequency limit value, the minimum frequency value is less than or equal to the lower frequency limit value, and the upper frequency limit value is less than or equal to half of the maximum sampling frequency, a bird sound signal is obtained through the recording device;

[0012] Acquiring the sampling frequency and data quantization bit number of the bird sound signal;

[0013] Performing absolute value processing on the bird sound signal, and calculating the absolute value average of a preset number of absolute value processing results arranged from large to small;

[0014] When the absolute value average is greater than or equal to an average value threshold, the upper limit frequency value is less than or equal to half of the sampling frequency, and the data quantization bit number is greater than or equal to a bit number threshold, the preselected acoustic index is calculated according to the bird sound signal.

[0015] Further, the determining of a plurality of sound source points according to the coordinate system includes:

[0016] Taking the origin of the coordinate system as a reference, a plurality of sound source points with different elevation angles or different azimuth angles are determined within a preset elevation angle range and a preset azimuth angle range; the sound source points are separated from the origin by a preset distance.

[0017] Furthermore, the playing of the white noise signal at the sound source point to determine the recording signal of each of the sound source points, and calculating the first sound power level difference corresponding to each of the recording signals, includes:

[0018] Play white noise signals at the sound source points respectively through loudspeakers; the second sound power level difference between two adjacent first preset multiple frequency bands of the loudspeakers is less than or equal to the level difference threshold;

[0019] The playback gain of the loudspeaker is adjusted so that the sound pressure level of the origin is a preset sound pressure level when the white noise signal is played at each of the sound source points, and the recording signal of each of the sound source points is obtained;

[0020] Perform filtering processing on each of the recording signals respectively through a second preset multiple frequency band filter to obtain a plurality of second preset multiple frequency bands corresponding to each of the recording signals;

[0021] The first sound power level difference of each of the adjacent second preset multiple frequency bands of the recording signal is calculated respectively.

[0022] Further, determining the minimum frequency value and the maximum frequency value according to the impulse response includes:

[0023] performing a fast Fourier transform on the impulse response;

[0024] Take the amplitude value of the fast Fourier transform result and process it logarithmically;

[0025] Calculate the logarithmic mean of the logarithmic processing results of a preset number of items arranged from large to small and located in the middle;

[0026] Determining a search threshold according to a ratio of the number of fast Fourier transform points in the fast Fourier transform process to the first value;

[0027] Taking the search threshold as a starting point and moving in a direction smaller than the search threshold, search for the first first data in the logarithmic processing result that is smaller than the logarithmic average by a second value, and determine the frequency value corresponding to the first data as the minimum frequency value, or when the first data does not exist, set the minimum frequency value to 0;

[0028] Starting from the search threshold, search for the first second data that is smaller than the logarithmic average by a second value in the logarithmic processing result in a direction greater than the search threshold, and determine the frequency value corresponding to the second data as the maximum frequency value, or when the second data does not exist, set the maximum frequency value to the search threshold multiplied by half of the first value.

[0029] Further, the calculating the preselected acoustic index according to the bird sound signal comprises:

[0030] Performing a first normalization on the bird sound signal, performing a labeling calculation process on the normalization result, determining a first average energy value of a useful sound segment and a second average energy value of a noise segment, determining a signal-to-noise ratio according to the first average energy value and the second average energy value, and determining a first signal according to the signal-to-noise ratio and a signal-to-noise ratio threshold;

[0031] synthesizing a bird singing reference sound signal, and performing a second normalization process on the bird singing reference sound signal to obtain a second signal;

[0032] Filtering the second signal by using the impulse response to obtain a third signal;

[0033] calculating a first acoustic index value of the second signal and calculating a second acoustic index value of the third signal;

[0034] Determining a target compensation filter according to the first acoustic index value and the second acoustic index value;

[0035] The preselected acoustic index is calculated based on the target compensation filter and the first signal.

[0036] Further, determining a target compensation filter according to the first acoustic index value and the second acoustic index value includes:

[0037] When a relative difference between the first acoustic index value and the second acoustic index value is less than a difference threshold, setting the target compensation filter to a unit pulse sequence;

[0038] or,

[0039] When the relative difference between the first acoustic index value and the second acoustic index value is greater than or equal to a difference threshold, the compensation filter is set as an equalization filter; the equalization filter is determined by calculating a frequency response of a multiple threshold frequency range of the impulse response;

[0040] filtering the third signal by the compensation filter to obtain a fourth signal, and calculating a third acoustic index value of the fourth signal;

[0041] When the relative difference between the second acoustic index value and the third acoustic index value is less than or equal to a difference threshold, the compensation filter is used as the target compensation filter; otherwise, the multiple threshold is reduced to update the compensation filter until an end condition is reached, and the updated compensation filter is used as the target compensation filter.

[0042] Further, calculating the preselected acoustic index according to the target compensation filter and the first signal includes:

[0043] The first signal is filtered by the target compensation filter, and the preselected acoustic index is calculated according to the filtering result.

[0044] The present invention also provides an acoustic index determination device, comprising:

[0045] A first acquisition module is used to acquire the maximum sampling frequency of the recording device and determine the upper limit frequency value and the lower limit frequency value of the preselected acoustic index;

[0046] A first determination module is used to establish a coordinate system with the recording device as the origin, and determine a plurality of sound source points according to the coordinate system;

[0047] A first calculation module, configured to play a white noise signal at the sound source point to determine the recording signal of each of the sound source points, and calculate a first sound power level difference corresponding to each of the recording signals;

[0048] A second determination module is used to test an impulse response at a location at a preset distance from the recording device, and determine a minimum frequency value and a maximum frequency value according to the impulse response;

[0049] A second acquisition module is used to acquire the bird sound signal through the recording device when the first sound power level difference is less than or equal to the level difference threshold, the maximum frequency value is greater than or equal to the upper frequency limit value, the minimum frequency value is less than or equal to the lower frequency limit value, and the upper frequency limit value is less than or equal to half of the maximum sampling frequency;

[0050] A third acquisition module is used to acquire the sampling frequency and data quantization bit number of the bird sound signal;

[0051] A second calculation module is used to perform absolute value processing on the bird sound signal and calculate the absolute value average of a preset number of absolute value processing results arranged from large to small;

[0052] The third calculation module is used to calculate the preselected acoustic index according to the bird sound signal when the absolute value average is greater than or equal to the average value threshold, the upper limit frequency value is less than or equal to half of the sampling frequency, and the data quantization bit number is greater than or equal to the bit number threshold.

[0053] The present invention also provides an acoustic index determination device, comprising a processor and a memory;

[0054] The memory stores a program;

[0055] The processor executes the program to implement the method.

[0056] The present invention also provides a computer-readable storage medium, wherein the storage medium stores a program, and the method is implemented when the program is executed by a processor.

[0057] The beneficial effects of the present invention are as follows: by obtaining the maximum sampling frequency of the recording device and determining the upper and lower frequency limits of the preselected acoustic index, a coordinate system is established with the recording device as the origin, and a number of sound source points are determined according to the coordinate system, a white noise signal is played at the sound source point to determine the recording signal of each sound source point, and the first sound power level difference corresponding to each recording signal is calculated, and the impulse response of the position separated from the recording device by a preset distance is tested, and the minimum frequency value and the maximum frequency value are determined according to the impulse response. When the first sound power level difference is less than or equal to the level difference threshold, the maximum frequency value is greater than or equal to the upper frequency value, the minimum frequency value is less than or equal to the lower frequency value, and the upper frequency value is less than or equal to the maximum sampling frequency half, ensuring that if a signal is recorded through a recording device, its recorded signal is suitable for the calculation of a pre-selected acoustic index; obtaining a bird sound signal through a recording device, obtaining the sampling frequency and data quantization bit number of the bird sound signal, performing absolute value processing on the bird sound signal, and calculating the absolute value average of a preset number of absolute value processing results arranged from large to small, when the absolute value average is greater than or equal to the average value threshold, the upper limit frequency value is less than or equal to half of the sampling frequency, and the data quantization bit number is greater than or equal to the bit number threshold, calculating the pre-selected acoustic index according to the bird sound signal, further ensuring that the bird sound signal obtained by the recording device is suitable for the calculation of the acoustic index, thereby improving the accuracy of the pre-selected acoustic index. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A schematic diagram of the steps of the method for determining the acoustic index of the present invention;

[0059] Figure 2 It is a schematic diagram of a spherical coordinate system according to a specific embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of this application.

[0061] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0062] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0063] like Figure 1 As shown, an embodiment of the present invention provides a method for determining an acoustic index, comprising steps S100-S800:

[0064] S100, obtaining the maximum sampling frequency of the recording device and determining the upper limit frequency value and the lower limit frequency value of the preselected acoustic index.

[0065] In the embodiment of the present invention, when the recording device supports one or more sampling frequency values, the maximum value, i.e., the maximum sampling frequency fs, is selected. Optionally, the pre-selected acoustic index can be selected in advance, and the optional acoustic indexes include but are not limited to: Acoustic Complexity Index (ACI), Acoustic Diversity Index (ADI), Acoustic Evenness Index (AEI), Acoustic Richness Index (AR), Bioacoustic Index (BI), Acoustic Entropy Index (H), Normalized Difference Soundscape Index (NDSI), and each acoustic index has requirements for the input signal, such as the upper limit frequency value f of the input signal required by the acoustic index. IH And the lower frequency value f IL .

[0066] S200: Establish a coordinate system with the recording device as the origin, and determine a number of sound source points according to the coordinate system.

[0067] Optionally, a spherical coordinate system is established with the microphone of the recording device as the origin, and other coordinate systems may be used in other embodiments. In the embodiment of the present invention, the direction of the microphone A is directly forward, and the origin of the coordinate system is used as a reference to determine a number of sound source points with different elevation angles or different azimuth angles within a preset elevation angle range and a preset azimuth angle range; the sound source point is separated from the origin by a preset distance.

[0068] like Figure 2 As shown, specifically, any point S in space is represented by spherical coordinates (r, θ, φ), r is the distance, which is set to 1 m (preset distance) in the embodiment of the present invention, φ is the elevation angle, θ is the azimuth angle, -90°≤φ≤90° (preset elevation angle range) and 0°≤θ<360° (preset azimuth angle range); φ=0° and +90° respectively represent the horizontal plane and directly above, and in the horizontal plane θ=0° and 90° respectively represent directly in front and directly to the right. Specifically, the recording equipment is placed in the effective free field of the anechoic chamber with a bracket, and the sound source points are determined to be (1, 0°, 0°), (1, 45°, 0°), (1, 90°, 0°), (1, 135°, 0°), (1, 180°, 0°), (1, 0°, 45°), (1, 45°, 45°), (1, 90°, 45°), (1, 135°, 45°), (1, 180°, 45°), and (1, 0°, 90°), for a total of 11. The number and positions of the sound source points in other embodiments can be adjusted according to actual needs.

[0069] S300: Play a white noise signal at a sound source point to determine a recording signal at each sound source point, and calculate a first sound power level difference corresponding to each recording signal.

[0070] Optionally, step S300 includes steps S310-S340:

[0071] S310: Play white noise signals at the sound source points through loudspeakers.

[0072] In the embodiment of the present invention, the sound source point and the recording device are both in the effective free field of the anechoic room, and the same loudspeaker plays a 20-second white noise signal at each of the sound source points, with the loudspeaker facing the coordinate origin. Optionally, the loudspeaker satisfies the frequency range of 100Hz to 16000Hz, the second sound power level difference of two adjacent first preset multiples (including but not limited to 1 / 3 times) of the frequency band is less than or equal to the level difference threshold (including but not limited to 3dB), the peak factor of the white noise signal is ≥2, the spectrum density: 20Hz to 20kHz ±1dB, and the signal-to-noise ratio is ≥60dB). It should be noted that, assuming the upper limit frequency of a certain frequency band is f H , the lower limit frequency is fL , if f H / f L =2 n1 , and each frequency band satisfies this relationship, then it is called n1 times band division. When n1 is 1 / 3, the frequency band division is 1 / 3 times band, and the center frequency of the band is f c =(f H f L )1 / 2, in the embodiment of the present invention, for the 1 / 3 octave band, between 100 Hz and 16000 Hz, the center frequencies of the frequency bands are 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, and 12500 Hz, respectively, and the frequency bands corresponding to the center frequencies of 125 and 160 Hz are adjacent frequency bands, and the frequency bands corresponding to 160 and 200 Hz are also adjacent frequency bands, and so on, which will not be repeated here.

[0073] S320: Adjust the playback gain of the loudspeaker so that the sound pressure level at the origin when the white noise signal is played at each sound source point is a preset sound pressure level, and obtain the recording signal of each sound source point.

[0074] Optionally, a fixed value Lp (dB) is selected as the preset sound pressure level in the preset sound pressure level range of 70 dB to 80 dB, and the playback gain of the loudspeaker is adjusted so that the sound pressure level at the origin when the white noise signal is played at each sound source point is Lp (dB). Then, the recording signal of each sound source point is recorded by a recording device. Suppose the recording signals corresponding to each sound source point are y i (n), (i=1,2,…,11;n=0,1,2,…,N-1). Where N represents the number of sample points contained in a recording file. For example, if a mono recording file is 2 seconds long and the sampling rate is 32000Hz, then N=2x32000=64000; y i (n) represents the recorded signal corresponding to the i-th sound source point. For example, y1(0) represents the first sample point of the recorded signal corresponding to the first sound source point, y1(N-1) represents the N-th sample point, and y2(0) represents the first sample point of the recorded signal corresponding to the second sound source point.

[0075] S330, filtering each recording signal using a second preset multiple frequency band filter to obtain a plurality of second preset multiple frequency bands corresponding to each recording signal.

[0076] Optionally, the second preset multiple is 1 / 3, for example, using a 1 / 3 octave filter (the upper cutoff frequency is 2 times the lower cutoff frequency) 1 / 3 times the bandpass filter) for the recorded signal yi (n) Filter each recording signal y i (n) A frequency band signal composed of a number of 1 / 3 frequency bands corresponding to the frequency band signal, optionally taking 18 1 / 3 frequency bands as an example, the frequency band signal is y ik (n), k = 1, 2, ..., 18, corresponding to the 1 / 3 octave bands with center frequencies of 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000 Hz, that is, the recording signal corresponding to each sound source point is filtered by 18 1 / 3 octave filters, and each recording signal is divided into 18 frequency bands, y ik (n) represents the signal of the kth frequency band of the i-th recorded signal.

[0077] S340, respectively calculating the first sound power level difference of the adjacent second preset multiple frequency bands of each recording signal.

[0078] Specifically, the first sound power level L ik The calculation formula is:

[0079]

[0080] It should be noted that for each frequency band k, all L ik The difference between the two is the first sound power level difference.

[0081] S400, testing an impulse response at a location that is a preset distance from a recording device, and determining a minimum frequency value and a maximum frequency value according to the impulse response.

[0082] In the embodiment of the present invention, a recording device is placed in an effective free field of the anechoic chamber using a bracket at a height of 1.2-1.5 m, and the impulse response h(n) of the recording device is tested at a position 1 m (preset distance) directly in front of the recording device.

[0083] Specifically, in step S400, the minimum frequency value and the maximum frequency value are determined according to the impulse response, including steps S410-S460:

[0084] S410, performing fast Fourier transform on the impulse response.

[0085] Specifically, h(n) is subjected to FFT (Fast Fourier Transform) to obtain H(m), wherein the number of FFT points in the FFT process (the number of FFT points set when performing FFT on h(n) / the number of Fast Fourier Transform points) N_FFT = fs (maximum sampling frequency).

[0086] S420, taking the amplitude value of the fast Fourier transform result and performing logarithmic processing.

[0087] Specifically, take the amplitude value of H(m) to obtain ABS_H(m), perform logarithmic processing on ABS_H(m) to obtain the logarithmic processing result dB_H(m). The logarithmic processing formula is:

[0088] dB_H(m)=20log 10 [ABS_H(m)]

[0089] S430, calculating the logarithmic mean of the logarithmic processing results of a preset number of items arranged from large to small and located in the middle.

[0090] Specifically, the logarithmic processing results are arranged from large to small, a preset number of logarithmic processing results located in the middle are taken out, and then the average value is calculated using the taken out logarithmic processing results to obtain the logarithmic average value AVG_dB_H. It should be noted that taking out a preset number of logarithmic processing results located in the middle is equivalent to removing a certain number of maximum values ​​and minimum values.

[0091] S440: Determine a search threshold according to a ratio of the number of fast Fourier transform points in a fast Fourier transform process to the first value.

[0092] It should be noted that the first value can be adjusted as needed, and the embodiment of the present invention is described by taking the first value being 4 as an example. Specifically, the search threshold m1 = N_FFT / 4.

[0093] S450, starting from the search threshold, searching for the first data which is smaller than the logarithmic mean by a second value in the logarithmic processing result in a direction smaller than the search threshold, and determining the frequency value corresponding to the first data as the minimum frequency value, or when the first data does not exist, setting the minimum frequency value to 0.

[0094] It should be noted that the second value can be adjusted as needed. In the embodiment of the present invention, the second value is 10dB as an example. Specifically, starting from the search threshold m1, search in the direction of m1<N_FFT / 4, search for the first first data dB_H′(m) that is 10dB smaller than the logarithmic average value AVG_dB_H in the logarithmic processing result dB_H(m), and determine the frequency value corresponding to the first data dB_H′(m) as the minimum frequency value m min In addition, when the first data dB_H′(m) does not exist, the minimum frequency value m min =0.

[0095] S460, starting from the search threshold, searching for the first second data that is smaller than the logarithmic mean by a second value in the logarithmic processing result in a direction greater than the search threshold, and determining the frequency value corresponding to the second data as the maximum frequency value, or when the second data does not exist, setting the maximum frequency value to the search threshold multiplied by half of the first value.

[0096] It should be noted that the execution order of step S450 and step S460 is not limited. Specifically, starting from the search threshold m1, search in the direction of m1>N_FFT / 4 to find the first second data dB_H″(m) that is 10dB smaller than the logarithmic average value AVG_dB_H, and determine the frequency value corresponding to the second data dB_H″(m) as the maximum frequency value m max In addition, if the second data dB_H″(m) does not exist, the maximum frequency value m max =N_FFT / 2.

[0097] S500, when the first sound power level differences are all less than or equal to the level difference threshold, the maximum frequency value is greater than or equal to the upper frequency limit value, the minimum frequency value is less than or equal to the lower frequency limit value, and the upper frequency limit value is less than or equal to half of the maximum sampling frequency, a bird sound signal is obtained through a recording device.

[0098] Specifically, when the first sound power level difference is less than or equal to the level difference threshold (including but not limited to 3dB), the maximum frequency value m max Greater than or equal to the upper frequency value f IH , minimum frequency value m min Less than or equal to the lower frequency limit f IL And the upper frequency value f IH Less than or equal to half of the maximum sampling frequency (fs / 2), it is considered that the sound signal recorded by the recording device can be used to calculate the preselected acoustic index. At this time, the recording device is used to obtain the bird sound signal, which is a signal that at least contains the singing sound of the bird. Optionally, it can be recorded on-site in the wild.

[0099] S600: Acquire the sampling frequency and data quantization bit number of the bird sound signal.

[0100] Optionally, the bird sound signal can be monophonic or binaural. If it is binaural, only one channel is sampled at a time. In this case, the bird sound signal is represented by x(n), and the sampling frequency is represented by f. sr The number of data quantization bits is represented by Nbits. The bird sound signal also includes the number of data N_x.

[0101] S700, performing absolute value processing on the bird sound signal, and calculating the absolute value average of a preset number of absolute value processing results arranged from large to small.

[0102] In the embodiment of the present invention, performing absolute value processing on the bird sound signal includes: taking the absolute value of the bird sound signal x(n) and dividing it by 2 Nbits-1 , get the absolute value processing result ABS_x(n). Then, sort ABS_x(n) from large to small, calculate the absolute value processing results of the preset number (floor(0.1N_x) to floor(0.3N_x)) and take the average value to get the absolute value average AVG_x. Among them, floor() means rounding down.

[0103] S800, when the absolute value average is greater than or equal to the average value threshold, the upper limit frequency value is less than or equal to half of the sampling frequency, and the data quantization bit number is greater than or equal to the bit number threshold, calculate the pre-selected acoustic index according to the bird sound signal.

[0104] Specifically, when the absolute value average value AVG_x ≥ 0.1 (average value threshold), the upper limit frequency value f IH ≤ sampling frequency f sr / 2. If the number of data quantization bits Nbits≥16 (bit number threshold), it is considered that the sound signal recorded by the recording device can be used to calculate the pre-selected acoustic index. In this case, the pre-selected acoustic index is calculated based on the bird sound signal.

[0105] Specifically, the step S800 calculates the preselected acoustic index according to the bird sound signal, including steps S810-S860:

[0106] S810, perform a first normalization on the bird sound signal, perform annotation calculation processing on the normalization result, determine the first average energy value of the useful sound segment and the second average energy value of the noise segment, determine the signal-to-noise ratio according to the first average energy value and the second average energy value, and determine the first signal according to the signal-to-noise ratio and the signal-to-noise ratio threshold.

[0107] Specifically, the bird sound signal is first normalized to obtain the normalized result x nor (n), based on the energy detection method, the annotation calculation is performed: nor (n) The noise segment and the useful sound segment are marked, and the first average energy value ES of the useful sound segment and the second average energy value EN of the noise segment are calculated, and then the signal-to-noise ratio dB_SN is calculated as 10log 10 [ES / EN].

[0108] Optionally, if dB_SN < 15 (signal-to-noise ratio threshold), nor (n) Use the optimally-modified log-spectral amplitude (OMLSA) method to perform noise reduction and obtain the first signal x after noise reduction dn(n); if dB_SN ≥ 15, then the first signal x dn (n) = x nor (n).

[0109] S820: synthesize a bird singing reference sound signal, and perform a second normalization process on the bird singing reference sound signal to obtain a second signal.

[0110] Specifically, a bird song reference sound signal xr(n) is synthesized, the number of bird species in xr(n) is greater than or equal to two, the frequency range covered by xr(n) is at least 200Hz-10000Hz, and the signal-to-noise ratio of xr(n) is greater than or equal to 15dB. In the embodiment of the present invention, a second normalization process is performed on xr(n) to obtain a second signal x0(n).

[0111] S830. Filter the second signal through the impulse response to obtain a third signal.

[0112] Specifically, the second signal x0(n) is filtered by the impulse response h(n) to obtain the third signal x1(n).

[0113] S840: Calculate a first acoustic index value of the second signal and calculate a second acoustic index value of the third signal.

[0114] S850: Determine a target compensation filter according to the first acoustic index value and the second acoustic index value.

[0115] Specifically, step S850 includes step S801 or S802:

[0116] S801: When a relative difference between a first acoustic index value and a second acoustic index value is less than a difference threshold, a target compensation filter is set to a unit pulse sequence.

[0117] In the embodiment of the present invention, the first acoustic index value is compared with the second acoustic index value. When the relative difference between the first acoustic index value and the second acoustic index value is less than 10% (difference threshold), the target compensation filter h is set to c (n) = unit pulse sequence δ(n).

[0118] Optionally, step S802 includes steps S8021-S8023:

[0119] S8021: When the relative difference between the first acoustic index value and the second acoustic index value is greater than or equal to a difference threshold, setting the compensation filter as an equalization filter.

[0120] Specifically, when the relative difference between the first acoustic index value and the second acoustic index value is greater than or equal to 10% (difference threshold), the compensation filter h c1 (n) = equalization filter h e(n). It should be noted that the equalization filter h e (n) By calculating the frequency response of the impulse response h(n) at 1 / m2 times (multiple threshold), m2 is determined by experiment, for example, the initial value is set to 3, the frequency range is 100-16000Hz, the amplitude decibel value of each frequency band is obtained, and the average value is calculated. Based on the average value, the decibel value of the boost or attenuation of each frequency band is calculated, and the corresponding equalization filter h is designed accordingly. e (n).

[0121] S8022. Filter the third signal through a compensation filter to obtain a fourth signal, and calculate a third acoustic index value of the fourth signal.

[0122] Specifically, using the compensation filter h c1 (n) Filter the third signal x1(n) to obtain a fourth signal x2(n), and calculate a third acoustic index corresponding to the fourth signal x2(n).

[0123] S8023. When the relative difference between the second acoustic index value and the third acoustic index value is less than or equal to the difference threshold, the compensation filter is used as the target compensation filter; otherwise, the multiple threshold is reduced to update the compensation filter until the end condition is reached, and the updated compensation filter is used as the target compensation filter.

[0124] Specifically, when the relative difference between the second acoustic index value and the third acoustic index value is less than or equal to 10% (difference threshold), the compensation filter h c1 (n) as the target compensation filter h c (n), otherwise N is increased by 128 or m2 is increased by 3 (equivalent to reducing the multiple threshold), and the compensation filter h is updated again according to step S8021 c1 (n), until m2 ≥ 24 (end condition), the updated compensation filter h c1 (n) as the target compensation filter h c (n).

[0125] S860: Calculate a preselected acoustic index according to the target compensation filter and the first signal.

[0126] Specifically, through the target compensation filter h c (n) For the first signal x dn (n) Filter and get the filtering result x f (n), and according to the filtering result x f(n) Calculate the preselected acoustic index. It should be noted that the calculation of the preselected acoustic index and each acoustic index value in the embodiment of the present invention can be based on the open source R language package to calculate the corresponding acoustic index for the signal. Optionally, ACI, ADI, AEI, BI, NDSI use the soundecology package, AR, H use the seewave package, and the tuneR package can also be used for signal reading and format conversion.

[0127] In the embodiment of the present invention, filtering can be performed from x with a lower signal-to-noise ratio. nor (n) common environmental noises such as wind, cicada sounds, and stream sounds are eliminated from the signal to obtain a first signal; the target compensation filter can compensate the signal obtained by the recording device to reduce signal distortion.

[0128] The acoustic index determination method of the embodiment of the present invention enables both professional and non-professional recording equipment to obtain relatively consistent acoustic indexes for their recorded data; in addition, the credibility of homemade or cheap recording equipment is improved, which will be beneficial to the use of such equipment to carry out large-scale, reliable ecological diversity surveys and monitoring, which can save costs and improve economic benefits.

[0129] The embodiment of the present invention further provides an acoustic index determination device, comprising:

[0130] A first acquisition module is used to acquire the maximum sampling frequency of the recording device and determine the upper limit frequency value and the lower limit frequency value of the preselected acoustic index;

[0131] A first determination module is used to establish a coordinate system with the recording device as the origin, and determine a number of sound source points according to the coordinate system;

[0132] A first calculation module, used for playing a white noise signal at a sound source point to determine a recording signal at each sound source point, and calculating a first sound power level difference corresponding to each recording signal;

[0133] A second determination module is used to test the impulse response of a position separated from the recording device by a preset distance, and determine the minimum frequency value and the maximum frequency value according to the impulse response;

[0134] A second acquisition module is used to acquire a bird sound signal through a recording device when the first sound power level difference is less than or equal to the level difference threshold, the maximum frequency value is greater than or equal to the upper frequency value, the minimum frequency value is less than or equal to the lower frequency value, and the upper frequency value is less than or equal to half of the maximum sampling frequency;

[0135] A third acquisition module is used to acquire the sampling frequency and data quantization bit number of the bird sound signal;

[0136] The second calculation module is used to perform absolute value processing on the bird sound signal and calculate the absolute value average of a preset number of absolute value processing results arranged from large to small;

[0137] The third calculation module is used to calculate the pre-selected acoustic index according to the bird sound signal when the absolute value average is greater than or equal to the average value threshold, the upper limit frequency value is less than or equal to half of the sampling frequency, and the data quantization bit number is greater than or equal to the bit number threshold.

[0138] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0139] An embodiment of the present invention further provides an acoustic index determination device, the device comprising a processor and a memory;

[0140] The memory is used to store programs;

[0141] The processor is used to execute the program to implement the acoustic index determination method of the embodiment of the present invention. The device of the embodiment of the present invention can realize the function of determining the acoustic index. The device can be any intelligent terminal including a mobile phone, a tablet computer, a computer, a personal digital assistant (PDA), a car computer, etc.

[0142] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0143] An embodiment of the present invention further provides a computer-readable storage medium, which stores a program, and the program is executed by a processor to complete the acoustic index determination method as described in the aforementioned embodiment of the invention.

[0144] The embodiment of the present invention further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the acoustic index determination method of the aforementioned embodiment of the present invention.

[0145] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0146] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0147] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0149] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for determining an acoustic index, characterized in that: include: Obtaining the maximum sampling frequency of the recording device and determining the upper and lower frequency limits of the preselected acoustic index; Establishing a coordinate system with the recording device as the origin, and determining a number of sound source points according to the coordinate system; Play a white noise signal at the sound source point to determine the recording signal of each of the sound source points, and calculate the first sound power level difference corresponding to each of the recording signals; Testing an impulse response at a location at a preset distance from the recording device, and determining a minimum frequency value and a maximum frequency value according to the impulse response; When the first sound power level difference is less than or equal to the level difference threshold, the maximum frequency value is greater than or equal to the upper frequency limit value, the minimum frequency value is less than or equal to the lower frequency limit value, and the upper frequency limit value is less than or equal to half of the maximum sampling frequency, a bird sound signal is obtained through the recording device; Acquiring the sampling frequency and data quantization bit number of the bird sound signal; Performing absolute value processing on the bird sound signal, and calculating the absolute value average of a preset number of absolute value processing results arranged from large to small; When the absolute value average is greater than or equal to the average value threshold, the upper limit frequency value is less than or equal to half of the sampling frequency, and the data quantization bit number is greater than or equal to the bit number threshold, the bird sound signal is first normalized, and the normalization result is labeled and calculated to determine the first average energy value of the useful sound segment and the second average energy value of the noise segment, determine the signal-to-noise ratio according to the first average energy value and the second average energy value, and determine the first signal according to the signal-to-noise ratio and the signal-to-noise ratio threshold; synthesizing a bird singing reference sound signal, and performing a second normalization process on the bird singing reference sound signal to obtain a second signal; Filtering the second signal by using the impulse response to obtain a third signal; calculating a first acoustic index value of the second signal and calculating a second acoustic index value of the third signal; Determining a target compensation filter according to the first acoustic index value and the second acoustic index value; The preselected acoustic index is calculated based on the target compensation filter and the first signal.

2. The method for determining the acoustic index according to claim 1, characterized in that: Determining a plurality of sound source points according to the coordinate system includes: Taking the origin of the coordinate system as a reference, a plurality of sound source points with different elevation angles or different azimuth angles are determined within a preset elevation angle range and a preset azimuth angle range; the sound source points are separated from the origin by a preset distance.

3. The method for determining the acoustic index according to claim 1, characterized in that: Playing a white noise signal at the sound source point to determine the recording signal of each of the sound source points, and calculating a first sound power level difference corresponding to each of the recording signals, comprises: Play white noise signals at the sound source points respectively through loudspeakers; the second sound power level difference between two adjacent first preset multiple frequency bands of the loudspeakers is less than or equal to the level difference threshold; The playback gain of the loudspeaker is adjusted so that the sound pressure level of the origin is a preset sound pressure level when the white noise signal is played at each of the sound source points, and the recording signal of each of the sound source points is obtained; Perform filtering processing on each of the recording signals respectively through a second preset multiple frequency band filter to obtain a plurality of second preset multiple frequency bands corresponding to each of the recording signals; The first sound power level difference of each of the adjacent second preset multiple frequency bands of the recording signal is calculated respectively.

4. The method for determining the acoustic index according to claim 1, characterized in that: The determining of the minimum frequency value and the maximum frequency value according to the impulse response comprises: performing a fast Fourier transform on the impulse response; Take the amplitude value of the fast Fourier transform result and process it logarithmically; Calculate the logarithmic mean of the logarithmic processing results of a preset number of items arranged from large to small and located in the middle; Determining a search threshold according to a ratio of the number of fast Fourier transform points in the fast Fourier transform process to the first value; Taking the search threshold as a starting point and moving in a direction smaller than the search threshold, search for the first first data in the logarithmic processing result that is smaller than the logarithmic average by a second value, and determine the frequency value corresponding to the first data as the minimum frequency value, or when the first data does not exist, set the minimum frequency value to 0; Starting from the search threshold, search for the first second data that is smaller than the logarithmic average by a second value in the logarithmic processing result in a direction greater than the search threshold, and determine the frequency value corresponding to the second data as the maximum frequency value, or when the second data does not exist, set the maximum frequency value to the search threshold multiplied by half of the first value.

5. The method for determining the acoustic index according to claim 1, characterized in that: The step of determining a target compensation filter according to the first acoustic index value and the second acoustic index value includes: When a relative difference between the first acoustic index value and the second acoustic index value is less than a difference threshold, setting the target compensation filter to a unit pulse sequence; or, When the relative difference between the first acoustic index value and the second acoustic index value is greater than or equal to a difference threshold, the compensation filter is set as an equalization filter; the equalization filter is determined by calculating a frequency response of a multiple threshold frequency range of the impulse response; filtering the third signal by the compensation filter to obtain a fourth signal, and calculating a third acoustic index value of the fourth signal; When the relative difference between the second acoustic index value and the third acoustic index value is less than or equal to a difference threshold, the compensation filter is used as the target compensation filter; otherwise, the multiple threshold is reduced to update the compensation filter until an end condition is reached, and the updated compensation filter is used as the target compensation filter.

6. The method for determining the acoustic index according to claim 1, characterized in that: The calculating the preselected acoustic index according to the target compensation filter and the first signal comprises: The first signal is filtered by the target compensation filter, and the preselected acoustic index is calculated according to the filtering result.

7. An acoustic index determination device, characterized in that: include: A first acquisition module is used to acquire the maximum sampling frequency of the recording device and determine the upper limit frequency value and the lower limit frequency value of the preselected acoustic index; A first determination module is used to establish a coordinate system with the recording device as the origin, and determine a plurality of sound source points according to the coordinate system; A first calculation module, configured to play a white noise signal at the sound source point to determine the recording signal of each of the sound source points, and calculate a first sound power level difference corresponding to each of the recording signals; A second determination module is used to test an impulse response at a location at a preset distance from the recording device, and determine a minimum frequency value and a maximum frequency value according to the impulse response; A second acquisition module is used to acquire the bird sound signal through the recording device when the first sound power level difference is less than or equal to the level difference threshold, the maximum frequency value is greater than or equal to the upper frequency limit value, the minimum frequency value is less than or equal to the lower frequency limit value, and the upper frequency limit value is less than or equal to half of the maximum sampling frequency; A third acquisition module is used to acquire the sampling frequency and data quantization bit number of the bird sound signal; A second calculation module is used to perform absolute value processing on the bird sound signal and calculate the absolute value average of a preset number of absolute value processing results arranged from large to small; A third calculation module is used for performing a first normalization on the bird sound signal when the absolute value average value is greater than or equal to the average value threshold, the upper limit frequency value is less than or equal to half of the sampling frequency, and the number of data quantization bits is greater than or equal to the bit number threshold, performing a labeling calculation process on the normalization result, determining a first average energy value of the useful sound segment and a second average energy value of the noise segment, determining a signal-to-noise ratio according to the first average energy value and the second average energy value, and determining a first signal according to the signal-to-noise ratio and the signal-to-noise ratio threshold; synthesizing a bird singing reference sound signal, and performing a second normalization process on the bird singing reference sound signal to obtain a second signal; The second signal is filtered by the impulse response to obtain a third signal calculating a first acoustic index value of the second signal and calculating a second acoustic index value of the third signal; Determining a target compensation filter according to the first acoustic index value and the second acoustic index value; The preselected acoustic index is calculated based on the target compensation filter and the first signal.

8. An acoustic index determination device, characterized in that: including a processor and a memory; The memory stores a program; The processor executes the program to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The storage medium stores a program, and when the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • A directional acoustic index acquisition method based on a differential microphone linear array

    CN109714689A

  • Bird voice recognition method, bird voice recognition device, computer equipment and storage medium

    CN110246504A

  • Steady bird sound extraction method and device and computer readable storage medium

    CN111540368A

  • Active room compensation in loudspeaker system

    US20180249272A1