Biological ecological diversity analysis method based on digital audio technology
By using digital audio technology in biodiversity analysis, calculating the coordination distance of speech energy distribution and the speech quality excellence index, and improving the ideal ratio masking algorithm, the problem of noise interference in the natural environment is solved, and the accuracy of speech enhancement and biodiversity are improved. The effect of sexual analysis.
Patent Information
- Application Number
- CN202411002258.5
- 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
Existing biodiversity analysis methods are affected by background noise such as electromagnetic interference, wind and water sounds in the natural environment, and traditional speech enhancement algorithms need to estimate the noise in advance and cannot adaptively adjust, resulting in the introduction of larger noise during the processing. Poor handling.
The biological and ecological diversity analysis method based on digital audio technology is used to obtain the time-frequency unit of the sound spectrogram of the protected area, calculate the coordination distance of the speech energy distribution, use the K-means algorithm for clustering, and combine the density peak clustering method to obtain the speech quality The excellence index improves the signal-to-noise ratio in the ideal ratio masking algorithm, performs speech enhancement processing, avoids the estimation of false noise indexes, and improves the accuracy of speech enhancement.
It improves the accuracy of biodiversity analysis in the natural environment, comprehensively considers the neighborhood information and local density characteristics of time-frequency units, avoids the problem of noise introduction, and improves the accuracy of speech enhancement and biodiversity analysis. Effect.
Smart Images

Figure CN118522292B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of biodiversity analysis, and in particular to a method for analyzing biological ecological diversity based on digital audio technology. Background Art
[0002] In ecology, biodiversity is one of the important indicators for evaluating an ecological environment. Biodiversity can maintain the balance of the ecosystem. Different organisms are interdependent and interact with each other, forming a complex ecological network, which is of great significance to the stability and sustainable development of nature reserves. At the same time, since different species usually have unique sound characteristics, as a non-invasive monitoring method, acoustic means are an important method for monitoring and analyzing the laws of biological activities in ecosystems and evaluating the health of ecosystems. It helps to understand the distribution, behavior and interaction of various species in the entire ecosystem.
[0003] In a natural environment, sound monitoring equipment may be interfered by background noise such as electromagnetic interference, wind, and water. At the same time, in order to improve the spectral characteristics of speech signals and make the spectrogram more recognizable, speech enhancement processing is often required. Traditional speech enhancement algorithms, such as spectral subtraction, are simple to understand and easy to implement, but require noise estimation in advance. Ideal Binary Mask (IBM) only needs to use a simple binary classification model for prediction, but the processing of noisy speech is too rough and introduces a lot of noise during the processing. Ideal Ratio Mask (IRM) directly describes the ratio of pure speech energy to noisy speech energy in the time-frequency unit, but in practical applications, noise estimation is also required in advance. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a biological ecological diversity analysis method based on digital audio technology to solve the existing problems.
[0005] The biological ecological diversity analysis method based on digital audio technology of the present invention adopts the following technical scheme:
[0006] An embodiment of the present invention provides a biological ecological diversity analysis method based on digital audio technology, the method comprising the following steps:
[0007] Obtain the protected area sound spectrograms for each time interval of all protected areas;
[0008] Obtain the time-frequency units of the sound spectrogram of the protected area; obtain the speech energy distribution of each time-frequency unit based on the speech energy of the time-frequency unit, and obtain the circular energy distribution difference factor of each time-frequency unit based on the Euclidean distance between the time-frequency units; obtain the speech energy distribution coordination distance between each time-frequency unit based on the circular energy distribution difference factor of each time-frequency unit, the speech energy distribution and the Euclidean distance between each time-frequency unit; use the K-means algorithm to obtain the clusters of the sound spectrogram of the protected area based on the speech energy distribution coordination distance; construct a three-dimensional feature space based on the time, sound frequency and speech energy of the sound spectrogram of the protected area, and Each cluster of the sound spectrogram of the protected area obtains each set of time-frequency units in the three-dimensional feature space, obtains the truncation distance according to the Euclidean distance between the time-frequency unit data points in the three-dimensional feature space, obtains the local density of each time-frequency unit data point in each time-frequency unit set according to the truncation distance combined with the density peak clustering method, and obtains the speech quality excellence index of each time-frequency unit data point according to the local density and the speech energy distribution coordination distance; obtains the cluster overall noise false index of each time-frequency unit set according to the speech quality excellence index; obtains the time-frequency noise false index of each time-frequency unit data point according to the cluster overall noise false index and the speech quality excellence index;
[0009] According to the false index of time-frequency noise, the ideal ratio masking algorithm was combined to perform ideal ratio masking speech enhancement on the sound spectrogram of the protected area. The enhanced spectrogram of the protected area was segmented by a semantic segmentation neural network, and the hierarchical clustering method was used to cluster the spectrograms of each protected area after semantic segmentation. The Pearson correlation coefficient was used to measure the similarity between categories, and the categories with a Pearson correlation coefficient greater than the preset threshold of 0.8 were regarded as one category to complete the analysis of biodiversity.
[0010] Further, the time-frequency unit of the sound spectrogram of the protected area is obtained, including:
[0011] For the sound spectrogram of the protected area in each time series interval, each sound data point in the sound spectrogram of the protected area is regarded as a time-frequency unit.
[0012] Further, the method of acquiring the speech energy distribution of each time-frequency unit according to the speech energy of the time-frequency unit, and acquiring the circular energy distribution difference factor of each time-frequency unit according to the Euclidean distance between the time-frequency units, includes:
[0013] With each time-frequency unit as the center, a circle with a radius of 3 is constructed, and all the time-frequency units on the edge of the circle are recorded as the circular time-frequency units of each time-frequency unit;
[0014] For each circular time-frequency unit of each time-frequency unit, a square window with a side length of 5 is constructed with the circular time-frequency unit as the center, and a histogram distribution diagram is constructed with the speech energy of all time-frequency units in the square window as the horizontal axis and the number of time-frequency units as the vertical axis as the speech energy distribution of the circular time-frequency unit;
[0015] Calculate the cth and cth values obtained with each time-frequency unit as the center The Wasserstein distance of the speech energy distribution between the cth and the cth circular time-frequency units is calculated. The Euclidean distance between the circular time-frequency units is calculated, the product of the Wasserstein distance and the Euclidean distance is calculated, and the average of the product of all circular time-frequency units of each time-frequency unit is used as the circular energy distribution difference factor of each time-frequency unit.
[0016] Further, the obtaining of the speech energy distribution coordination distance between each time-frequency unit according to the circular energy distribution difference factor of each time-frequency unit, the speech energy distribution and the Euclidean distance between each time-frequency unit includes:
[0017] Calculating the absolute value of the difference of the circular energy distribution difference factor between each time-frequency unit, and calculating the result of an exponential function with a natural constant as the base and the absolute value of the difference as the exponent;
[0018] Calculating the Wasserstein distance between the speech energy distributions of the time-frequency units, and calculating the sum of the Wasserstein distance and a preset adjustment parameter;
[0019] The ratio of the calculation result to the sum is calculated, and the product of the ratio and the Euclidean distance between each time-frequency unit is used as the speech energy distribution coordination distance between each time-frequency unit.
[0020] Further, the method of obtaining clusters of the sound spectrogram of the protected area using the K-means algorithm according to the speech energy distribution coordination distance includes:
[0021] The sound spectrogram of the protected area is used as the input of the K-means clustering algorithm, the coordination distance of the speech energy distribution between each time-frequency unit is used as the measurement method of the K-means algorithm, and the number of clusters is set to K, where K is the preset number of clusters. The output of the K-means clustering algorithm is the clusters of the sound spectrogram of the protected area.
[0022] Furthermore, the three-dimensional feature space is constructed according to the time, sound frequency, and speech energy of the protected area sound spectrogram, and each set of time-frequency units in the three-dimensional feature space is obtained according to each cluster of the protected area sound spectrogram, including:
[0023] Taking time, sound frequency and speech energy as three dimensions, each time-frequency unit in the sound spectrogram of the protected area is used as the data point of each time-frequency unit to construct a three-dimensional feature space;
[0024] The set of data points corresponding to all time-frequency units in each cluster is taken as each time-frequency unit set.
[0025] Further, the method of obtaining a cutoff distance according to the Euclidean distance between the time-frequency unit data points in the three-dimensional feature space, obtaining the local density of each time-frequency unit data point in each time-frequency unit set according to the cutoff distance combined with the density peak clustering method, and obtaining the speech quality excellence index of each time-frequency unit data point according to the local density and the speech energy distribution coordination distance includes:
[0026] Calculate the Euclidean distances between all the time-frequency unit data points in each time-frequency unit set, sort the Euclidean distances in ascending order, take the last element of the first 2% elements in the sorting result as the representative distance of each time-frequency unit set, and take the rounded integer value of the mean of the representative distances of all time-frequency unit sets as the cutoff distance of the density peak clustering method;
[0027] The time-frequency unit set is used as an input of a density peak clustering method, and the output of the density peak clustering method is the local density of each time-frequency unit data point in the time-frequency unit set;
[0028] For each set of time-frequency units, calculate the absolute value of the difference in local density between the zth time-frequency unit data point and the yth time-frequency unit data point, calculate the inverse of the speech energy distribution coordination distance between the zth time-frequency unit data point and the yth time-frequency unit data point, calculate the product of the absolute value of the difference and the inverse, and calculate the average of the products obtained from the zth time-frequency unit data point and all other time-frequency unit data points as the speech quality excellence index of the zth time-frequency unit data point.
[0029] Further, the step of obtaining the cluster overall noise false index of each time-frequency unit set according to the speech quality excellence index includes:
[0030] The average of the speech quality excellence indexes of all time-frequency unit data points in each time-frequency unit set is taken as the cluster overall noise false index of each time-frequency unit set.
[0031] Further, the step of obtaining the time-frequency noise false index of each time-frequency unit data point according to the cluster overall noise false index and the voice quality excellence index includes:
[0032] The product of the cluster overall noise false index of each time-frequency unit set and the speech quality excellence index of each time-frequency unit data point in each time-frequency unit set is used as the time-frequency noise false index of each time-frequency unit data point in each time-frequency unit set.
[0033] Furthermore, the method of performing ideal ratio masking speech enhancement processing on the sound spectrogram of the protected area according to the time-frequency noise false index in combination with the ideal ratio masking algorithm includes:
[0034] The false time-frequency noise index of each time-frequency unit data point is used as the false time-frequency noise index of each time-frequency unit corresponding to each time-frequency unit data point in the sound spectrogram of the protected area;
[0035] The protected area sound spectrogram is used as the input of the ideal ratio masking algorithm, and the time-frequency noise false index of each time-frequency unit is used as the signal-to-noise ratio of the ideal ratio masking algorithm. The output of the ideal ratio masking algorithm is the protected area sound spectrogram after speech enhancement.
[0036] The present invention has at least the following beneficial effects:
[0037] The present invention realizes a biological ecological diversity analysis method based on digital audio technology. According to the similarity between each time-frequency unit in the sound spectrogram of the protected area, combined with the Wasserstein distance, a speech energy distribution coordination distance is constructed to reflect the difference degree of speech energy distribution between the time-frequency units. The beneficial effect is that the neighborhood information of the time-frequency unit is comprehensively considered to avoid the problem that the speech energy of two time-frequency units is similar, but the speech energy distribution in the neighborhood of the time-frequency unit has a large difference; the above-mentioned speech energy distribution coordination distance is used as a measurement method of the K-means clustering algorithm, according to the characteristic information of the biological call in the spectrogram, combined with the DPC clustering algorithm, the time-frequency noise false index is obtained, and the signal-to-noise ratio in the ideal ratio masking algorithm is improved. The beneficial effect is that the local density characteristics of the time-frequency unit are comprehensively considered to improve the signal-to-noise ratio in the ideal ratio masking algorithm, avoid the problem that the ideal ratio masking algorithm needs to estimate the noise in advance and cannot perform adaptive adjustment, and improve the accuracy of speech enhancement performed by the ideal ratio masking algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flow chart of the biological ecological diversity analysis method based on digital audio technology provided by the present invention;
[0040] Figure 2 It is a schematic diagram of a circular time-frequency unit;
[0041] Figure 3 Schematic diagram of time-frequency unit data points. DETAILED DESCRIPTION
[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the biological ecological diversity analysis method based on digital audio technology proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0043] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0044] The specific scheme of the biological ecological diversity analysis method based on digital audio technology provided by the present invention is described in detail below with reference to the accompanying drawings.
[0045] An embodiment of the present invention provides a biological ecological diversity analysis method based on digital audio technology. Specifically, the following biological ecological diversity analysis method based on digital audio technology is provided. Figure 1 , the method comprises the following steps:
[0046] Step S001, collecting sound data of a nature reserve through sound monitoring equipment, and constructing a sound spectrogram of the reserve using short-time Fourier transform.
[0047] Divide the entire nature reserve into There are three protected areas. A sound monitoring device is placed in the center of each protected area. The sound data of the protected area is collected with a mono channel, a sampling frequency of 22kHz, and a data resolution of 16 bits. The collection time is T, where T is taken as 1 hour.
[0048] Furthermore, this embodiment takes one minute as a time interval, divides the collected sound data of the nature reserve into N time intervals, N takes the empirical value of 60, and uses short-time Fourier transform on the sound data of the protected area in each time interval to construct a spectrogram corresponding to each protected area. The window length of the short-time Fourier transform algorithm is set to an empirical value of 10 milliseconds, wherein the short-time Fourier transform and the construction of the spectrogram are both well-known technologies and will not be repeated here.
[0049] At this point, the spectrogram corresponding to any time interval in each protection zone is obtained. For the convenience of subsequent description, this embodiment takes any one of the protection zones as an example, and records the spectrogram corresponding to the nth time interval in the protection zone as the protection zone sound spectrogram of the nth time interval. .
[0050] Step S002, based on the similarity between the circular time-frequency units in the sound spectrogram of the protected area, construct the speech energy distribution coordination distance as a metric of the K-means algorithm, perform preliminary clustering on the sound spectrogram of the protected area, and based on the characteristic information of the biological calls in the spectrogram, combine the DPC clustering algorithm to obtain the time-frequency noise false index and improve the signal-to-noise ratio in the ideal ratio masking algorithm.
[0051] In natural environments, sound monitoring equipment is easily disturbed by background noise such as electromagnetic interference, wind, and water, resulting in more noise components in the collected spectrogram. At the same time, in order to improve the spectral characteristics of the sound signal and make the spectrogram more recognizable, the ideal ratio masking algorithm is usually used for language enhancement processing. However, the spectrogram may contain both pure sound signals and noisy sound signals, and there is an issue that the ratio of pure sound signals to noisy sound signals is uncertain.
[0052] Specifically, the horizontal axis of the spectrogram is time, and the vertical axis is sound frequency. Each sound data point in the spectrogram has a corresponding speech energy value.
[0053] Therefore, this embodiment regards any sound data point in the spectrogram as a time-frequency unit. The purpose of this embodiment is to obtain an accurate time-frequency noise false index based on the characteristics of each time-frequency unit in the spectrogram, as the signal-to-noise ratio in the ideal ratio masking, to perform speech enhancement on the spectrogram, and to improve the accuracy of subsequent biodiversity analysis.
[0054] In the spectrogram, two time-frequency units belonging to the same biological call often have similar speech energy distribution, while noise usually changes irregularly and unpredictably in time or frequency, and the speech energy distribution of each noise point varies greatly. Based on the above analysis, the sound spectrogram of the protected area in the nth time interval is For example, take the i-th time-frequency unit as the center, construct a circle with a radius of 3, and record all the time-frequency units that the circle passes through as circular time-frequency units. Start numbering from the circular time-frequency unit in the upper left corner, which is 1, and number it clockwise to 16, such as Figure 2 shown.
[0055] Specifically, the sound data of two spectrograms at different times in a nature reserve with a single sound data source and no interference from human activities should be relatively similar, with similar frequency and speech energy distribution. However, due to the noise contained in the spectrogram area, the energy distribution of some areas in the two spectrograms is quite different, that is, the color difference is quite different.
[0056] Based on the above analysis, the sound spectrogram of the protected area can be obtained. The speech energy distribution coordination distance between the i-th time-frequency unit and the j-th time-frequency unit in :
[0057]
[0058]
[0059] in, It is a spectrogram of the sound of the protected area The circular energy distribution difference factor of the i-th time-frequency unit in, , They are the cth and cth time-frequency units centered on the i-th time-frequency unit. The speech energy distribution of the circular time-frequency unit, the speech energy distribution The acquisition method is as follows: taking the cth circular time-frequency unit as the center, obtaining the speech energy of all time-frequency units in a 5*5 window, and constructing a histogram distribution diagram, wherein the abscissa of the histogram distribution diagram is the language energy value, and the ordinate is the number of time-frequency units; It is to calculate the energy distribution of two speech , The Wasserstein distance between is the number of all circular time-frequency units centered at the i-th time-frequency unit. In this embodiment, the empirical value is 16. is the cth and The Euclidean distance between circular time-frequency units, is the radius of the circle. The method for constructing the histogram distribution diagram and the method for calculating the Wasserstein distance are well known to those skilled in the art and will not be described in detail herein.
[0060] When the Wasserstein distance between two circular time-frequency units is larger, that is, The larger the value is, the greater the difference in speech energy distribution between the two circular time-frequency units is. At the same time, when the distance between the two circular time-frequency units in the spectrogram is farther, that is, The larger the distance, the greater the difference in the energy distribution of speech in each circular time-frequency unit. The circular energy distribution difference factor is greater. The bigger.
[0061] It is a spectrogram of the sound of the protected area The speech energy distribution coordination distance between the i-th time-frequency unit and the j-th time-frequency unit in is is an exponential function with the natural constant e as base. , is the speech energy distribution centered on the i-th and j-th time-frequency units, is the Euclidean distance between the i-th and j-th time-frequency units, It is an adjustment parameter, its function is to prevent the denominator from being 0, and the empirical value is 0.001.
[0062] When the energy distribution imbalance factor between two time-frequency units differs more, that is, The larger the distance, the lower the similarity of the speech energy distribution of each circular time-frequency unit of the two time-frequency units and the higher the difference. When the Wasserstein distance of the speech energy distribution of the two time-frequency units is larger, that is, The larger the value, the lower the similarity and higher the difference of speech energy distribution between the two time-frequency units. At the same time, when the Euclidean distance between the two time-frequency units is larger, that is, The larger the value is, the farther the two time-frequency units are in spectrum and time, and the greater the difference in speech energy distribution between the i-th time-frequency unit and the j-th time-frequency unit. The bigger.
[0063] At this point, the sound spectrogram of the protected area is obtained The speech energy distribution coordination distance between any two time-frequency units in . The smaller the speech energy distribution coordination distance value, the more likely the two time-frequency units are to represent the same speech features.
[0064] In nature reserves, the calls of organisms are usually continuous. For example, the duration of birds' courtship calls in nature reserves can be up to 7-8 seconds, and the calls of some birds that are good at singing may even last more than ten seconds. In addition, organisms usually generate calls in a specific frequency range, so the calls of organisms may be relatively concentrated in the frequency range. In summary, in the spectrogram, the time-frequency units belonging to the calls of organisms and with higher pure speech energy are often close in time and frequency, and are usually clustered together.
[0065] Based on the above analysis, the sound spectrogram of the protected area As the input of the K-means clustering algorithm, the coordination distance of the speech energy distribution of two time-frequency units is used as the measurement method of the K-means algorithm, wherein the number of clusters is determined by the heuristic eigenvalue difference search (eigengap heuristic), and the output is K clusters, and the empirical value of K is 10. The K-means algorithm and the heuristic eigenvalue difference search are both well-known technologies, and the specific process will not be repeated here.
[0066] Furthermore, the time, sound frequency, and speech energy in the spectrogram are taken as three dimensions to construct a three-dimensional feature space, such as Figure 3As shown. For any cluster, taking the kth cluster as an example, after constructing the three-dimensional feature space, all the time-frequency units in the cluster correspond to a data point in the above three-dimensional feature space, which is recorded as the time-frequency unit data point. The set of time-frequency unit data points corresponding to all time-frequency units in the kth cluster is recorded as the kth time-frequency unit set.
[0067] In the three-dimensional feature space, the Euclidean distance between any two time-frequency unit data points in the kth time-frequency unit set is calculated, and the above-obtained Euclidean distances are sorted in ascending order. The last element of the first 2% elements in the sorting result is taken as the representative distance of the kth time-frequency unit set. The representative distances of all time-frequency unit sets are obtained in the same way, and the mean of the representative distances of all time-frequency unit sets is taken as the cutoff distance in the density peak clustering DPC (Density Peaks Clustering). It should be noted that if the last element of the first 2% elements in the sorting result is not an integer, it is rounded off to obtain an integer. The density peak clustering DPC algorithm is used, and the input is the kth time-frequency unit set. The output of the density peak clustering DPC is the local density of each time-frequency unit data point in the kth time-frequency unit set. The density peak clustering DPC algorithm is a well-known technology and the specific process is not repeated here.
[0068] Based on the above analysis, the false time-frequency noise index of the zth time-frequency unit data point in the kth time-frequency unit set can be obtained: :
[0069]
[0070]
[0071]
[0072] in, is the speech quality excellence index of the zth time-frequency unit data point in the kth time-frequency unit set, are the local densities of the zth and yth time-frequency unit data points in the kth time-frequency unit set, respectively. , is the speech energy distribution coordination distance between the zth and yth time-frequency unit data points in the kth time-frequency unit set, It is the total number of all time-frequency unit data points in the kth time-frequency unit set.
[0073] When the local density of the zth time-frequency unit data point is greater than that of other time-frequency unit data points in the same cluster, that is, The larger the value is, the closer the zth time-frequency unit data point is to other data points in the same cluster in the feature space. At the same time, the smaller the speech energy distribution coordination distance between two time-frequency unit data points is, that is, The larger it is, the more similar the speech energy distributions of the two time-frequency units are. The zth time-frequency unit data point is more likely to be close to other time-frequency unit data points in time and frequency, the more likely they are to be clustered together, the more likely they are to be pure speech time-frequency units, the better the speech quality of the time-frequency unit data point, and the higher the speech quality excellence index.
[0074] is the cluster overall noise false index of the kth time-frequency unit set. When the speech quality excellence index of all time-frequency unit data points in the kth time-frequency unit set is higher, that is, The higher the value, the less noise components in the entire cluster may be. The time-frequency units in the kth cluster are more likely to be the voices of biological calls. The overall noise false index of the cluster is The bigger.
[0075] is the false index of time-frequency noise of the zth time-frequency unit data point in the kth time-frequency unit set. When the speech quality excellence index of the time-frequency unit data points of the entire cluster is higher, that is, The larger the value is, the smaller the speech noise component of the cluster is likely to be, and the more likely it is the speech of a biological call. The noise component of the time-frequency unit in the cluster is likely to be less, and the speech quality of the time-frequency unit data point is better. The larger the value, the more likely the time-frequency unit is a pure speech time-frequency unit. The bigger.
[0076] Step S003, performing ideal ratio masking speech enhancement processing on the protected area sound spectrogram according to the time-frequency noise false index, obtaining the enhanced protected area sound spectrogram, performing segmentation processing on the enhanced protected area sound spectrogram, and completing the analysis of biodiversity.
[0077] Based on the above steps, the time-frequency noise false index of each time-frequency unit data point is obtained and used as the sound spectrogram of the protected area. The false index of time-frequency noise of each time-frequency unit corresponding to each time-frequency unit data point in the ideal ratio masking algorithm is used, and the input is the sound spectrogram of the protected area. , where the false index of time-frequency noise of each time-frequency unit is used as the signal-to-noise ratio of the ideal ratio masking algorithm, and the sound spectrogram of the protected area is Perform speech enhancement and output the sound spectrogram of the protected area after speech enhancement , wherein the ideal ratio masking algorithm is a well-known technology, and the specific process is not repeated. According to the above steps, the sound spectrogram of the protection zone corresponding to each time sequence interval is subjected to the ideal ratio masking speech enhancement processing.
[0078] At this point, the enhanced sound spectrogram of the protected area is obtained.
[0079] After obtaining the enhanced protected area sound spectrogram, the enhanced protected area spectrogram is segmented by a semantic segmentation neural network. The loss function of the semantic segmentation neural network training is the cross entropy loss function. The neural network structure and the specific process of training are prior art, which will not be described in detail in this embodiment. The implementer can also use other neural networks to segment the enhanced protected area sound spectrogram to complete the detection and analysis of biodiversity. This embodiment proposes to cluster the hungry protected area spectrogram after semantic segmentation using a hierarchical clustering method to complete the analysis of biodiversity. The hierarchical clustering of this embodiment uses a system clustering method to treat all variables to be classified as one category, and then calculate the degree of correspondence or closeness between each individual. This embodiment uses the Pearson correlation coefficient to measure. The larger the Pearson correlation coefficient, the more similar the individual is. The variables with a Pearson correlation coefficient greater than the threshold of 0.8 are regarded as one category, and the total number of all biological categories is obtained to complete the analysis of biodiversity.
[0080] Specifically, for the enhanced sound spectrogram of the protected area, implementers can refer to the existing paper: Analysis of bird biodiversity in soundscapes based on segmentation and extraction of spectrogram feature information, and adopt the methods therein to realize biodiversity analysis.
[0081] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0082] 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.
[0083] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A biological ecological diversity analysis method based on digital audio technology, characterized in that: The method comprises the following steps: Obtain the protected area sound spectrograms for each time interval of all protected areas; Obtain the time-frequency units of the sound spectrogram of the protected area; obtain the speech energy distribution of each time-frequency unit based on the speech energy of the time-frequency unit, and obtain the circular energy distribution difference factor of each time-frequency unit based on the Euclidean distance between the time-frequency units; obtain the speech energy distribution coordination distance between each time-frequency unit based on the circular energy distribution difference factor of each time-frequency unit, the speech energy distribution and the Euclidean distance between each time-frequency unit; use the K-means algorithm to obtain the clusters of the sound spectrogram of the protected area based on the speech energy distribution coordination distance; construct a three-dimensional feature space based on the time, sound frequency and speech energy of the sound spectrogram of the protected area, and Each cluster of the sound spectrogram of the protected area obtains each set of time-frequency units in the three-dimensional feature space, obtains the truncation distance according to the Euclidean distance between the time-frequency unit data points in the three-dimensional feature space, obtains the local density of each time-frequency unit data point in each time-frequency unit set according to the truncation distance combined with the density peak clustering method, and obtains the speech quality excellence index of each time-frequency unit data point according to the local density and the speech energy distribution coordination distance; obtains the cluster overall noise false index of each time-frequency unit set according to the speech quality excellence index; obtains the time-frequency noise false index of each time-frequency unit data point according to the cluster overall noise false index and the speech quality excellence index; According to the false index of time-frequency noise, the ideal ratio masking algorithm was combined to perform ideal ratio masking speech enhancement processing on the sound spectrogram of the protected area; the enhanced spectrogram of the protected area was segmented by a semantic segmentation neural network, and the hierarchical clustering method was used to cluster the spectrograms of each protected area after semantic segmentation. The Pearson correlation coefficient was used to measure the similarity between categories, and the categories with a Pearson correlation coefficient greater than the preset threshold of 0.8 were regarded as one category to complete the analysis of biodiversity; The method of obtaining the speech energy distribution coordination distance between each time-frequency unit according to the circular energy distribution difference factor of each time-frequency unit, the speech energy distribution and the Euclidean distance between each time-frequency unit includes: Calculating the absolute value of the difference of the circular energy distribution difference factor between each time-frequency unit, and calculating the result of an exponential function with a natural constant as the base and the absolute value of the difference as the exponent; Calculating the Wasserstein distance between the speech energy distributions of the time-frequency units, and calculating the sum of the Wasserstein distance and a preset adjustment parameter; The ratio of the calculation result to the sum is calculated, and the product of the ratio and the Euclidean distance between each time-frequency unit is used as the speech energy distribution coordination distance between each time-frequency unit.
2. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 1, characterized in that: The step of obtaining the time-frequency unit of the sound spectrogram of the protected area includes: For the sound spectrogram of the protected area in each time series interval, each sound data point in the sound spectrogram of the protected area is regarded as a time-frequency unit.
3. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 1, characterized in that: The method of obtaining the speech energy distribution of each time-frequency unit according to the speech energy of the time-frequency unit, and obtaining the circular energy distribution difference factor of each time-frequency unit according to the Euclidean distance between the time-frequency units, includes: With each time-frequency unit as the center, a circle with a radius of 3 is constructed, and all the time-frequency units on the edge of the circle are recorded as the circular time-frequency units of each time-frequency unit; For each circular time-frequency unit of each time-frequency unit, a square window with a side length of 5 is constructed with the circular time-frequency unit as the center, and a histogram distribution diagram is constructed with the speech energy of all time-frequency units in the square window as the horizontal axis and the number of time-frequency units as the vertical axis as the speech energy distribution of the circular time-frequency unit; Calculate the cth and cth values obtained with each time-frequency unit as the center The Wasserstein distance of the speech energy distribution between the cth and the cth circular time-frequency units is calculated. The Euclidean distance between the circular time-frequency units is calculated, the product of the Wasserstein distance and the Euclidean distance is calculated, and the average of the product of all circular time-frequency units of each time-frequency unit is used as the circular energy distribution difference factor of each time-frequency unit.
4. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 1, characterized in that: The method of obtaining the clusters of the sound spectrogram of the protected area using the K-means algorithm according to the speech energy distribution coordination distance includes: The sound spectrogram of the protected area is used as the input of the K-means clustering algorithm, the coordination distance of the speech energy distribution between each time-frequency unit is used as the measurement method of the K-means algorithm, and the number of clusters is set to K, where K is the preset number of clusters. The output of the K-means clustering algorithm is the clusters of the sound spectrogram of the protected area.
5. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 1, characterized in that: The three-dimensional feature space is constructed according to the time, sound frequency, and speech energy of the protected area sound spectrogram, and each time-frequency unit set in the three-dimensional feature space is obtained according to each cluster of the protected area sound spectrogram, including: Taking time, sound frequency and speech energy as three dimensions, each time-frequency unit in the sound spectrogram of the protected area is used as the data point of each time-frequency unit to construct a three-dimensional feature space; The set of data points corresponding to all time-frequency units in each cluster is taken as each time-frequency unit set.
6. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 5, characterized in that: The method of obtaining the cutoff distance according to the Euclidean distance between the time-frequency unit data points in the three-dimensional feature space, obtaining the local density of each time-frequency unit data point in each time-frequency unit set according to the cutoff distance combined with the density peak clustering method, and obtaining the speech quality excellence index of each time-frequency unit data point according to the local density and the speech energy distribution coordination distance includes: Calculate the Euclidean distances between all the time-frequency unit data points in each time-frequency unit set, sort the Euclidean distances in ascending order, take the last element of the first 2% elements in the sorting result as the representative distance of each time-frequency unit set, and take the rounded integer value of the mean of the representative distances of all time-frequency unit sets as the cutoff distance of the density peak clustering method; The time-frequency unit set is used as an input of a density peak clustering method, and the output of the density peak clustering method is the local density of each time-frequency unit data point in the time-frequency unit set; For each set of time-frequency units, calculate the absolute value of the difference in local density between the zth time-frequency unit data point and the yth time-frequency unit data point, calculate the inverse of the speech energy distribution coordination distance between the zth time-frequency unit data point and the yth time-frequency unit data point, calculate the product of the absolute value of the difference and the inverse, and calculate the average of the products obtained from the zth time-frequency unit data point and all other time-frequency unit data points as the speech quality excellence index of the zth time-frequency unit data point.
7. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 1, characterized in that: The step of obtaining the cluster overall noise false index of each time-frequency unit set according to the speech quality excellence index includes: The average of the speech quality excellence indexes of all time-frequency unit data points in each time-frequency unit set is taken as the cluster overall noise false index of each time-frequency unit set.
8. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 1, characterized in that: The step of obtaining the time-frequency noise false index of each time-frequency unit data point according to the cluster overall noise false index and the voice quality excellence index includes: The product of the cluster overall noise false index of each time-frequency unit set and the speech quality excellence index of each time-frequency unit data point in each time-frequency unit set is used as the time-frequency noise false index of each time-frequency unit data point in each time-frequency unit set.
9. The biological ecological diversity analysis method based on digital audio technology as claimed in claim 1, characterized in that: The method of performing ideal ratio masking speech enhancement processing on the protected area sound spectrogram according to the time-frequency noise false index and in combination with the ideal ratio masking algorithm comprises: The false time-frequency noise index of each time-frequency unit data point is used as the false time-frequency noise index of each time-frequency unit corresponding to each time-frequency unit data point in the sound spectrogram of the protected area; The protected area sound spectrogram is used as the input of the ideal ratio masking algorithm, and the time-frequency noise false index of each time-frequency unit is used as the signal-to-noise ratio of the ideal ratio masking algorithm. The output of the ideal ratio masking algorithm is the protected area sound spectrogram after speech enhancement.
