Sound source detection and feature extraction method based on frequency domain sound scene analysis
Through frequency domain sound scene analysis technology, it solves the problems of sound source detection and timbre identification in complex environments for machine hearing, achieves accurate sound source identification and scene reconstruction, and improves the anti-interference ability and interpretability of the machine hearing system.
Patent Information
- Application Number
- CN202410883039.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-24
AI Technical Summary
Existing machine hearing technology is difficult to accurately detect and identify sound sources, especially timbre characteristics, in complex environments, and suffers from poor interpretability and poor generalization.
Using sound source detection and feature extraction methods based on frequency domain acoustic scene analysis, the fundamental frequency and timbre of the object are extracted through the transformation of time domain signals to frequency domain signals, the collection of feature points and feature line segments, and the hypothesis and testing of the attention mechanism. Features to achieve intuitive identification of sound sources and scene reconstruction.
This method can flexibly and efficiently complete the recognition of acoustic objects and scene reconstruction in complex environments. It is suitable for the identification of harmonic signals, enhances the anti-interference ability of the machine hearing system, and is consistent with the subjective hearing mechanism of the human ear.
Smart Images

Figure CN118692486A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of machine hearing and intelligent computing, and in particular relates to a sound source detection and feature extraction method based on frequency domain sound scene analysis. Background Art
[0002] Machine hearing is an important means to achieve human-computer interaction and environmental interaction. In addition to the need for language communication, since sound waves have the characteristic of bypassing obstacles, in the robot's multimodal information acquisition system, hearing and vision are coordinated to make up for its visual limitations. Research on machine hearing to locate and track sound source targets and separate and identify sound source signals is of great significance and value.
[0003] Visual images can still clearly distinguish features such as the shape of objects when individuals block each other, but the propagation characteristics of sound waves cause various sound source signals to overlap. Although the human ear can clearly perceive sound objects, it is very difficult to describe them parametrically. Generally, sound objects are described by the subjective perceptual attributes of sound, which are divided into four aspects: loudness, pitch, timbre, and subjective duration. Loudness, pitch, and subjective duration depend on the amplitude, fundamental frequency, and objective duration of the sound wave, respectively, and are one-dimensional subjective feeling parameters. Timbre is related to factors such as the time characteristics of the sound wave amplitude and frequency composition, and is considered to be a multi-dimensional perceptual attribute.
[0004] The detection of pitch is mainly through fundamental frequency detection, including time domain method and frequency domain method. The time domain method includes autocorrelation method, average amplitude difference function method, etc.; the frequency domain method uses the instantaneous spectrum of harmonics to identify the fundamental frequency, such as cepstrum method, wavelet transform method, etc. Mechanical numerical calculation methods have great shortcomings and often make errors in estimation. For example, the human ear can also feel the existence of pitch in polyphonic sounds without fundamental frequency. If the low-order harmonics in the polyphonic sound are removed, its pitch will hardly change, but it brings serious problems to the fundamental frequency detection method. The more complex timbre is an auditory attribute that is still not fully understood. Timbre can be regarded as the characteristic of sound, and each sound-producing body has its own unique timbre. Timbre descriptors include frequency domain descriptors such as spectral centroid and cepstral coefficients, time domain descriptors such as amplitude envelope and autocorrelation coefficient, harmonic parameter descriptors such as harmonic energy and harmonic-to-noise ratio, psychoacoustic descriptors such as sharpness and roughness, etc. Since timbre is diffused in the entire time-frequency space of the spectrogram, the subjective feelings reflected by these parameters and the automatic sound source identification based on this are very limited and one-sided.
[0005] In recent years, machine learning has developed rapidly, and applications such as sound source identification and timbre conversion have also integrated deep learning, especially some end-to-end processing, using deep neural networks to automatically estimate complex functions between output and input through statistical methods. However, this model has inherent defects and requires a large amount of data training. The model is large and complex, and the generalization and interpretability are very poor. Compared with human hearing, machine hearing technology solutions have many defects and are not feasible in complex environments or under limited hardware conditions. In practical applications, a machine hearing method that can flexibly and efficiently process sound signals, is compatible with human intuitive perception, and has strong interpretability is needed to meet the needs of intelligent computing. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a sound source detection and feature extraction method based on frequency domain sound scene analysis, reconstruct the sound scene through data processing and information interpretation of sound signals, intuitively judge the existence of sound objects in the time and frequency domains and identify individuals / contents, and transform the original sound signals into truly meaningful target and environmental scene information during the processing and interpretation process from basic signal units to object information flows.
[0007] In order to solve the above technical problems, the present invention is implemented in the following ways:
[0008] A sound source detection and feature extraction method based on frequency domain sound scene analysis, comprising:
[0009] 1) The collected time domain sound signal is transformed into a frequency domain signal, and the energy values of the frequency domain signal are arranged and filled into the spectrum diagram;
[0010] 2) Collecting primary clues including feature points and feature line segments in the spectrogram;
[0011] 3) Object hypothesis and testing under the attention mechanism;
[0012] 4) Extraction of object feature clues.
[0013] Furthermore, the step 1) specifically includes:
[0014] 11) After receiving the time domain signal x(n), the time series is divided into frames of length N and windowed, and the frequency domain signal X(f k ), the corresponding frequency is f k =kf s / N, where f s represents the signal sampling frequency, k=0,..., N-1 represents the frequency point number;
[0015] 12) Calculate the signal energy P(f k )=|X(f k )| 2, and arranged and filled into a multiple frequency spectrum diagram, wherein the horizontal axis f of the multiple frequency diagram represents the frequency, in a linear frequency form or a logarithmic frequency form, the vertical axis m represents the frequency multiple, and the pixel value P(mf) at the coordinate (f, m) is the signal energy value at the frequency mf.
[0016] Furthermore, the step 2) specifically includes:
[0017] 21) Collecting feature points on the frequency spectrum, adding the energy and position of the feature points to form a feature point parameter set, wherein the feature point is the energy maximum point on the horizontal line corresponding to the frequency multiple on the frequency spectrum, and the peak significance of the maximum point is used to restrict the selection of whether to be a feature point;
[0018] 22) Collect characteristic line segments on the frequency spectrum to form a characteristic line segment parameter set, wherein the characteristic line segment is vertical or nearly vertical, the horizontal coordinates of the two adjacent upper and lower characteristic points in the line segment are equal or close, and the upper and lower adjacent characteristic line segments are connected head to tail to form a longer line segment or broken line, and the found characteristic line segment and its position, length, strength, etc. are added to the characteristic line segment parameter set.
[0019] Furthermore, the step 3) specifically includes:
[0020] 31) Set the base frequency f i If there is a sound object at the location, and it is triggered by attention, the clues that trigger attention include the location clues of feature points or feature segments, inertial clues, instantaneous clues, experience clues, etc. After the attention trigger hypothesis is set, a corresponding fundamental frequency f is constructed. i The vertical line L starting from the horizontal axis coordinate i ;
[0021] 32) Check the fundamental frequency f i The confidence that the acoustic object exists at i , if the fundamental frequency f i If there is a real target at L, then its fundamental frequency and harmonic components are i Nearby, by correcting L i The head, tail and direction of L include the coincident or adjacent feature points and feature line segments, and relax the conditions to find the corresponding L i More feature points and feature line segments are obtained to obtain the corrected near-straight line L′ i ; Examine the corrected approximate straight line L′ i The content and distribution of the characteristic points and characteristic line segments in the object are calculated, and the confidence ρi of the object existence is obtained, and the approximate straight line L′ reflecting the harmonic distribution position characteristics of the object signal is obtained. i , the line head position is on the horizontal axis f′ on the double spectrum diagram i At the end of the line, the frequency multiples corresponding to express;
[0022] 33) If there are cues that trigger attention corresponding to other fundamental frequencies, repeat steps 31) and 32) to perceive other sound objects.
[0023] Furthermore, the step 4) specifically includes:
[0024] 41) For the detected fundamental frequency f′ i The sound object at the corresponding fundamental frequency f′ i The horizontal coordinate f′ i The peak width at is taken as the signal baseband width W i , if the signal fundamental frequency energy is weak or does not exist, the width of the low-order harmonic with a significant peak value is taken as the signal baseband width;
[0025] 42) For the detected fundamental frequency f′ i The acoustic object at the location is extracted, and the near straight line L′ obtained in step 32) is extracted i The signal energy corresponding to each point on the horizontal axis and the coordinate f′ on the horizontal axis i is the center and the width is W i +ΔW baseband horizontal line segment corresponding to each point of the signal energy, as a simplified sound object timbre representation Q ab , ΔW represents the redundancy value set outside the baseband width;
[0026] 43) For the detected fundamental frequency f′ i The acoustic object at the location is extracted by the approximate straight line L′ i The center is W, the width is i The signal energy corresponding to each point on the strip of +ΔW is used as the complete timbre representation Q of the sound object in the frequency domain at the corresponding moment of the frame. c ;
[0027] 44) The detected f′ i The confidence of the sound object ρ i , fundamental frequency f′ i , near line L′ i The position of each point on the signal baseband width W i , Tone Characteristics Q ab , complete timbre characteristics Q c etc. are used as object feature clues output, and are processed jointly with the sound scene analysis in the spatial and temporal domains to complete the tasks of sound source identification and sound scene reconstruction;
[0028] 45) If there are other fundamental frequency objects that trigger attention, repeat steps 41) to 44) to extract feature clues of the new objects.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] The sound source detection and feature extraction processing flow of the present invention is divided into two parts: the front end and the back end. The front end collects clues from the signal, and the back end interprets and integrates the information in an intuitive and active manner, which can flexibly and efficiently complete the sound object perception task. The method is suitable for the identification of polyphonic signals containing harmonics, and replaces the calculation of the signal with the interpretation of information, thereby getting rid of the various restrictions imposed on traditional methods. The present invention can intuitively "see" the sound object, and at the same time, it has a clear representation of the shape characteristics of the sound object in the frequency domain, which is conducive to completing various auditory tasks such as interference suppression, target detection, positioning, and identification; it can also accurately detect the fundamental frequency under unfavorable conditions such as fundamental frequency loss and non-strict linear frequency doubling. At the same time, it conforms to the subjective hearing mechanism of the human ear and can process the expected or imaginary sound source, thereby enhancing the anti-interference ability of the machine hearing system in harsh environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is the overall flow chart of the present invention;
[0032] Figure 2 is a spectrum diagram obtained in an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram of the position of a characteristic point on a spectral diagram in an embodiment of the present invention;
[0034] Figure 4 is a schematic diagram of the distribution of characteristic line segments on a frequency spectrum diagram in an embodiment of the present invention;
[0035] Figure 5 is a schematic diagram of a nearly straight line arrangement of target fundamental frequency and harmonic components in an embodiment of the present invention;
[0036] Figure 6 is a schematic diagram of the positions of signal energy points on a spectral diagram in an embodiment of the present invention;
[0037] Figure 7 Schematic diagram of simplified timbre representation of sound objects in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The specific implementation of the present invention is further described in detail below with reference to the accompanying drawings and specific examples.
[0039] This embodiment performs target detection and feature extraction on piano key sounds, such as Figure 1 As shown, a sound source detection and feature extraction method based on frequency domain sound scene analysis includes the following specific steps:
[0040] The collected time domain sound signal is transformed into a frequency domain signal, and the energy values of the frequency domain signal are arranged and filled into the spectrum diagram, specifically including:
[0041] 11) After receiving the time domain signal x(n), where n is the sampling sequence number, the time series is divided into frames of length N and windowed, and the frequency domain signal X(f k ), the corresponding frequency is f k =kf s / N, where f s represents the signal sampling frequency, k=0,...,N-1 represents the frequency point number; use commonly used rectangular window, Hanning window, Hamming window, Gaussian window, Chebyshev window, etc. as the window function, or other methods to convert the signal into a frequency domain signal, such as bandpass filtering with a specific frequency point as the center frequency, and frequency domain signal conversion methods using octave, Mel and other logarithmic frequencies.
[0042] In this embodiment, the sampling rate f s =44100Hz to collect the time domain signal of the piano key A4 note, divide the time series into frames of length N = 4096, add the Hanning window, and calculate the frequency domain signal X(f k ).
[0043] 12) Calculate the signal energy P(f k )=|X(f k )| 2 , and arranged and filled into a multiple frequency spectrum diagram, wherein the horizontal axis f of the multiple frequency spectrum diagram represents the frequency, in a linear frequency form or a logarithmic frequency form, the vertical axis m=1,2,... represents the frequency multiple, and the pixel value P(mf) at the coordinate (f,m) is the signal energy value at the frequency mf.
[0044] If the target signal has a fundamental frequency and multiple harmonic components, these fundamental frequencies and harmonic components are basically located on a vertical line in the octave spectrum diagram, and the intersection of the vertical line and the horizontal axis corresponds to the fundamental frequency of the signal. The horizontal axis of the octave spectrum diagram is in linear frequency form or logarithmic frequency form. In the linear frequency form, the calculation of the octave energy value is simple, and the fundamental frequency range can be selected according to actual needs, or it can be processed according to multiple fundamental frequency ranges; in the logarithmic frequency form, a larger fundamental frequency range can be covered. The value range of the vertical axis of the octave spectrum diagram (maximum harmonic number) is related to the sampling frequency f s and the maximum fundamental frequency f max Related, depending on the requirements, if there is mf ≥ f in the double spectrum s / 2 pixel, its value is set to a fixed small value.
[0045] In this embodiment, the signal energy P(f k )=10log 10 |X(f k )| 2 , fill in the double spectrum diagram as Figure 2As shown. In the figure, the horizontal axis uses the frequency point number k to replace the frequency f, and the conversion relationship between them is: f k =kf s / N, where the horizontal coordinate value range is k = 0, ..., 127; the vertical coordinate multiple value range is m = 1, ..., 16.
[0046] like Figure 2 In the example, the values of each column when m=1 are given by P(f k ), k=0,...,127 is directly filled, and when m is other values, the following method is used: To fill the point (k′,m′), take P(f k ) is filled in with the maximum value. Figure 2 It can be seen that the fundamental frequency and harmonic components of the signal are basically located near the vertical line of k = 41, which does not conform to the strict frequency multiplication relationship, and constitutes a nearly straight line object with a specific scale, shape and brightness distribution. If this object can be extracted, it will be helpful for target enhancement and interference suppression.
[0047] 2) Collect primary clues including feature points and feature line segments in the frequency spectrum, including:
[0048] 21) Collect feature points on the fold spectrum graph, add the energy and position of the feature points and form a feature point parameter set. The feature point is the energy maximum point on the horizontal line corresponding to the frequency multiple on the fold spectrum graph. The peak significance of the maximum point and other conditions are used to restrict the selection of whether to be a feature point; an invalid feature area can be set in the upper left corner of the fold spectrum graph, and no feature points need to be found in this area. Assuming that a certain point (f1, m1) is a significant maximum point, and (m1+1)f2=m1f1, then (f2, m1+1) is also a maximum point. If f2 is close to f1, that is, f1-f2≤δ, δ is the frequency distance protection value, then (f2, m1+1) will interfere with the harmonic judgment of the baseband f1 signal at the position (f1, m1+1). Therefore, by f1-f2≤δ, set the m≥f / δ-1 area as an invalid feature area.
[0049] In this embodiment, the characteristic point parameter set is obtained by calculating the maximum value, and the maximum value point must meet the peak relative height condition, and the positions of all characteristic points on the double spectrum are collected as follows: Figure 3 As shown, the blank area in the upper left corner is determined by m≧k-1.
[0050] 22) Collect characteristic line segments on the frequency spectrum or the characteristic point parameter set to form a characteristic line segment parameter set, wherein the characteristic line segment is vertical or nearly vertical, the horizontal coordinates of the upper and lower adjacent characteristic points in the line segment are equal or close, and the upper and lower adjacent characteristic line segments are connected head to tail to form a longer line segment or broken line, and the found characteristic line segment and its position, length, strength, etc. are added to the characteristic line segment parameter set.
[0051] An invalid feature area is set in the upper left corner of the frequency spectrum. No feature points need to be found in this area. Assuming that a certain point (f1, m1) is a significant maximum point, and (m1+1)f2=m1f1, then (f2, m1+1) is also a maximum point. If f2 is close to f1, that is, f1-f2≤δ, δ is the frequency distance protection value, then (f2, m1+1) will interfere with the harmonic judgment of the baseband f1 signal at the position (f1, m1+1). Therefore, by f1-f2≤δ, the area m≥f / δ-1 is set as an invalid feature area.
[0052] In order to facilitate the collection of feature points and feature line segments, the present invention can divide the frequency spectrum into a plurality of non-overlapping or partially overlapping sub-planes, which is conducive to parallel and efficient processing.
[0053] In this embodiment, in the feature point set obtained in step 21), if the difference in the horizontal coordinates of two adjacent feature points is not greater than 1, the two points are connected to form a feature line segment; the feature line segments adjacent to each other are connected head to tail to form a longer line segment or a broken line. The distribution of the collected feature line segments on the frequency spectrum is as follows: Figure 4 shown.
[0054] 3) Object hypothesis and test under the attention mechanism, including:
[0055] 31) Set the base frequency f i If there is a sound object at the location, if it is assumed to be triggered by attention, the clues that trigger attention include the location clues of feature points or feature segments (multiple feature points or feature segments, or the horizontal coordinate parameters of longer segments / broken lines point to the same frequency f i nearby; feature points and feature line segments composed of low-order harmonics require higher attention), inertial clues (the presence of sound objects with stable or uniformly changing pitch), instantaneous clues (suddenly appearing or rapidly moving feature points or feature line segments), and experience clues (experienced expected f i ), etc. After the attention trigger hypothesis is set, the construction bar corresponds to the fundamental frequency f i The vertical line L starting from the horizontal axis coordinate i ;
[0056] In this embodiment, the position parameters of the multiple feature points and the long broken line found in step 2) all point to k=41, thus triggering the judgment that the acoustic object exists at this time, and constructing a vertical straight line L starting from the horizontal axis k=41. i .
[0057] 32) Check the fundamental frequency f i The confidence that there is an acoustic object at i , that is, the user treats f iThe degree of belief in the authenticity of the object exists; if the fundamental frequency f i If there is a real target at L, then its fundamental frequency and harmonic components are i Nearby, by correcting L i The head, tail and direction of L include the coincident or adjacent feature points and feature line segments, and relax the conditions to find the corresponding L i More feature points and feature line segments are obtained to obtain the corrected near-straight line L′ i ; Examine the corrected approximate straight line L′ i The content and distribution of characteristic points and characteristic line segments in the image are used to calculate the confidence ρ of the object. i . Optionally, comprehensively examine the horizontal axis f i / 2 near straight line (usually including light and dark feature points), 2f i The obtained near-straight line L′ reflects the harmonic distribution position characteristics of the target signal. i , the line head position is on the horizontal axis f′ on the double spectrum diagram i At the end of the line, the frequency multiples corresponding to express;
[0058] In this embodiment, according to the adjacent L i The feature points and feature line segments are corrected by L i , and at the same time, relax the peak significance condition to find L i More feature points and feature line segments. The corrected near line L′ i like Figure 5 As shown, from m = 1 to m = 16 (i.e. ), the obtained L′ i It coincides with multiple feature points and feature line segments, so the assumption that there is an acoustic object at k=41 has a high degree of confidence.
[0059] 33) corresponds to other fundamental frequencies (f j , f k If there are cues that trigger attention, then repeat steps 31) and 32) to perceive other sound objects.
[0060] In this embodiment, although there is an obvious low-order harmonic characteristic line segment at k=82, it cannot trigger attention because it forms a multiple frequency relationship with the target at k=41.
[0061] 4) Extraction of object feature clues, including:
[0062] 41) For the detected fundamental frequency f′ i The sound object at the corresponding fundamental frequency f′ i The horizontal coordinate f′ iThe peak width at is taken as the signal baseband width W i , if the signal fundamental frequency energy is weak or does not exist, the low-order harmonic width with significant peak value (the width on the f axis, not on the mf axis) is taken as the signal baseband width;
[0063] In this embodiment, the signal baseband width W is expressed in frequency points. i =5(points).
[0064] 42) For the detected fundamental frequency f′ i The acoustic object at the location is extracted, and the near straight line L′ obtained in step 32) is extracted. i (The length is ) corresponding to each point on the signal energy, and the coordinate f′ on the horizontal axis i is the center and the width is W i The signal energy corresponding to each point on the baseband horizontal line segment of +ΔW (if the signal fundamental frequency energy is weak or non-existent, the baseband horizontal line segment is replaced by a low-order harmonic horizontal line segment with a significant peak value) is used as the simplified sound object timbre representation Q ab , ΔW represents the redundancy value set outside the baseband width;
[0065] In this embodiment, ΔW represented by frequency points is set to 4 (points), so the baseband width to be intercepted is 9 points. Figure 6 Represents the approximate straight line L′ i The positions of the baseband straight line and the signal energy corresponding to them are as follows: Figure 7 As shown (left and right), these two sets of vectors represent the simplified timbre representation Q of the sound object. ab .
[0066] 43) For the detected fundamental frequency f′ i The acoustic object at the location is extracted by the approximate straight line L′ i The center is W, the width is i The signal energy corresponding to each point on the strip of +ΔW is used as the complete timbre representation Q of the sound object in the frequency domain at the corresponding moment of the frame. c ; On the double spectrum, the same frequency width W i +ΔW, the coordinate width corresponding to the mth harmonic is 1 / m of the fundamental frequency, and the harmonic components on the strip use the original data consistent with the fundamental frequency resolution, so that the number of points in each row on the strip is equal.
[0067] 44) The detected f′ i The confidence of the sound object ρ i , fundamental frequency f′ i , near straight line L′ i The position of each point on the signal baseband width W i Tone characteristicsQ ab(including unseparated loudness attributes), complete timbre characteristics Q c (including the unseparated loudness attribute) as the object feature clue output, and jointly processed with the sound scene analysis in the spatial domain and time domain to complete the sound source identification and sound scene reconstruction tasks;
[0068] Specifically in this embodiment, i , f′ i , L′ i , W i , Q ab The parameters are packaged and output as feature clues of the acoustic object at k=41.
[0069] 45) If there are other fundamental frequency objects that trigger attention, repeat steps 41) to 44) to extract feature clues of the new objects.
[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.
Claims
1. A sound source detection and feature extraction method based on frequency domain sound scene analysis, characterized in that: include: 1) The collected time domain sound signal is transformed into a frequency domain signal, and the energy values of the frequency domain signal are arranged and filled into the spectrum diagram; 2) Collecting primary clues including feature points and feature line segments in the spectrogram; 3) Object hypothesis and verification under the attention mechanism; 4) Extraction of object feature clues.
2. The method for sound source detection and feature extraction based on frequency domain sound scene analysis according to claim 1, characterized in that: The step 1) specifically includes: 11) After receiving the time domain signal x(n), the time series is divided into frames of length N and windowed, and the frequency domain signal X(f k ), the corresponding frequency is f k =kf s / N, where f s represents the signal sampling frequency, k=0, ..., N-1 represents the frequency point number; 12) Calculate the signal energy P(f k )=|x(f k )| 2 , and arranged and filled into a multiple frequency spectrum diagram, wherein the horizontal axis f of the multiple frequency spectrum diagram represents the frequency, in a linear frequency form or a logarithmic frequency form, the vertical axis m represents the frequency multiple, and the pixel value P(mf) at the coordinate (f, m) is the signal energy value at the frequency mf.
3. The method for sound source detection and feature extraction based on frequency domain sound scene analysis according to claim 1, characterized in that: The step 2) specifically includes: 21) Collecting feature points on the frequency spectrum, adding the energy and position of the feature points to form a feature point parameter set, wherein the feature point is the energy maximum point on the horizontal line corresponding to the frequency multiple on the frequency spectrum, and the peak significance of the maximum point is used to restrict the selection of whether to be a feature point; 22) Collect characteristic line segments on the frequency spectrum to form a characteristic line segment parameter set, wherein the characteristic line segment is vertical or nearly vertical, the horizontal coordinates of the two adjacent upper and lower characteristic points in the line segment are equal or close, and the upper and lower adjacent characteristic line segments are connected head to tail to form a longer line segment or broken line, and the found characteristic line segment and its position, length, and strength are added to the characteristic line segment parameter set.
4. The method for sound source detection and feature extraction based on frequency domain sound scene analysis according to claim 1, characterized in that: The step 3) specifically includes: 31) Set the base frequency f i If there is a sound object at the location, and it is triggered by attention, the clues that trigger attention include the location clues of feature points or feature segments, inertial clues, instantaneous clues, and experience clues. After the attention trigger hypothesis is set, a corresponding fundamental frequency f is constructed. i The vertical line L starting from the horizontal axis coordinate i ; 32) Check the fundamental frequency f i The confidence that there is an acoustic object at i , if the fundamental frequency f i If there is a real target at L, then its fundamental frequency and harmonic components are i Nearby, by correcting L i The head, tail and direction of L include the coincident or adjacent feature points and feature line segments, and relax the conditions to find the corresponding L i More feature points and feature line segments are obtained to obtain the corrected near-straight line L′ i ; Examine the corrected approximate straight line L′ i The content and distribution of characteristic points and characteristic line segments in the object are used to calculate the confidence ρ of the object. i , the obtained approximate straight line L′ reflects the harmonic distribution position characteristics of the target signal i , the line head position is on the horizontal axis f of the frequency spectrum i ′, the frequency multiple corresponding to the end of the line is express; 33) If there are cues that trigger attention corresponding to other fundamental frequencies, repeat steps 31) and 32) to perceive other sound objects.
5. The method for sound source detection and feature extraction based on frequency domain sound scene analysis according to claim 1, characterized in that: The step 4) specifically includes: 41) For the detected fundamental frequency f i The sound object at ′ will correspond to the fundamental frequency f i ′’s horizontal coordinate f i The peak width at ′ is taken as the signal baseband width W i , if the signal fundamental frequency energy is weak or does not exist, the low-order harmonic width with significant peak value is taken as the signal baseband width; 42) For the detected fundamental frequency f i ', extract the near line L' obtained in step 32) i The signal energy corresponding to each point on the horizontal axis and the coordinate f i ′ is the center and the width is W i +ΔW baseband horizontal line segment corresponding to each point of the signal energy, as a simplified sound object timbre representation Q ab , ΔW represents the redundancy value set outside the baseband width; 43) For the detected fundamental frequency f i ′, extract the acoustic object near the straight line L′ i The center is W, the width is i The signal energy corresponding to each point on the strip of +ΔW is used as the complete timbre representation Q of the sound object in the frequency domain at the corresponding moment of the frame. c ; 44) The detected f i The confidence of the acoustic object at ′ρ i , fundamental frequency f i ', near straight line L' i The position of each point on the signal baseband width W i , Tone Characteristics Q ab , complete timbre characteristics Q c etc. are used as object feature clues output, and are processed jointly with the sound scene analysis in the spatial and temporal domains to complete the tasks of sound source identification and sound scene reconstruction; 45) If there are other fundamental frequency objects that trigger attention, repeat steps 41) to 44) to extract feature clues of the new objects.
