Multiple sound source localization method and system based on finite innovation rate sampling
By constructing a covariance matrix in the microphone array and using the zeroing filter method to reconstruct the signal, combined with the mapping matrix to process the sound source data, the problem of low accuracy and high complexity of multi-sound source positioning is solved, and efficient and accurate sound source positioning is achieved. Source localization and false sound source screening.
Patent Information
- Application Number
- CN202411046090.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Existing sound source localization algorithms have low positioning accuracy and high complexity in multi-sound source environments, especially when the signal-to-noise ratio is low. The beamforming accuracy is weak, and the sound source localization method based on limited innovation rate has exponential complexity when the dimension increases. increase.
Use a preset microphone array to obtain sound source data, construct a covariance matrix and use the FRI signal reconstruction algorithm of the zeroing filter method, combined with the mapping matrix to reconstruct the pulse point source and amplitude estimation, convert it into the arrival direction angle, and screen the real sound source .
It reduces the relationship between complexity and dimensionality from exponential to linear, improves positioning accuracy and robustness, enhances computational efficiency, and can more accurately locate multiple sound sources and eliminate false sound sources.
Smart Images

Figure CN118625257B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a multi-sound source localization method based on finite innovation rate sampling and a system thereof. Background Art
[0002] The existing sound source localization algorithms mainly include: sound source localization algorithm based on Time Difference of Arrival (TDOA) and sound source localization algorithm based on beamforming. However, TDOA will be affected by problems such as signal aliasing and resolution limitation when locating multiple sound sources, which will affect the positioning accuracy. Adaptive beamforming requires a lot of computing resources, and because the sidelobe height will have a great impact on positioning, additional design of array distribution is required. In an environment with a low signal-to-noise ratio, the positioning accuracy of beamforming is also relatively weak.
[0003] At present, the reconstruction signal algorithm based on the finite ratio of innovation (FRI) has not been widely used in the field of sound source localization, and when processing multi-dimensional signals, the complexity will increase exponentially with the increase of dimensions. Therefore, a multi-sound source localization method based on finite ratio sampling with reduced complexity is currently needed.
[0004] The above information disclosed in the above Background section is only for enhancement of understanding of the background of the present application and therefore it may contain information that does not constitute the prior art that is already known to a person of ordinary skill in the art. Summary of the invention
[0005] The present invention provides a multi-sound source localization method based on finite innovation rate sampling to solve the technical problems that the positioning accuracy of beamforming is relatively weak in an environment with a relatively low signal-to-noise ratio, and the complexity of sound source localization based on finite innovation rate increases exponentially with the increase of dimensions.
[0006] A technical solution provided in an embodiment of the present invention is a method for localizing multiple sound sources based on finite innovation rate sampling, comprising:
[0007] Acquiring the sound source data to be located by using a preset microphone array, the sound source data to be located including the sound source signals collected by each microphone in the microphone array;
[0008] Calculate the observation data of the sound source signal collected by each microphone according to the channel signals of the sound source data to be located, and construct the covariance matrix between the microphone signals of each channel according to the observation data;
[0009] Creating a first conjugate matrix and a corresponding first block diagonal matrix according to a first preset solution order, and constructing a first mapping matrix corresponding to each frequency band based on the first block diagonal matrix, the covariance matrix, and the wave number coordinates of the microphone array to map the Fourier coefficients to the real part of the covariance matrix;
[0010] The FRI signal reconstruction algorithm based on the annihilation filter method reconstructs the pulse point source according to the first mapping matrix to obtain the phase of the preset sound source mapped to the unit circle;
[0011] According to the phase, covariance matrix and wave number coordinates of the microphone array, a second mapping matrix corresponding to each frequency band is constructed, the second mapping matrix is expanded to generate a third block diagonal matrix, the amplitude estimation corresponding to the preset sound source is obtained according to the third block diagonal matrix, and the phase is converted into an arrival direction angle;
[0012] The preset sound sources are screened according to the amplitude estimation and the arrival direction angle to obtain the amplitude and arrival direction angle of the real sound source.
[0013] A technical solution provided in an embodiment of the present invention is a multi-sound source localization system based on finite innovation rate sampling, comprising:
[0014] The acquisition module uses a preset microphone array to acquire the sound source data to be located, and the sound source data to be located includes the sound source signal collected by each microphone in the microphone array;
[0015] A covariance matrix construction module calculates the observation data of the sound source signal collected by each microphone according to the channel signals of the sound source data to be located, and constructs the covariance matrix between the microphone signals of each channel according to the observation data;
[0016] A mapping module, which creates a first conjugate matrix and a corresponding first block diagonal matrix according to a first preset solution order, and constructs a first mapping matrix corresponding to each frequency band based on the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array to map the Fourier coefficients to the real part of the covariance matrix;
[0017] Point source reconstruction module, based on the FRI signal reconstruction algorithm of the annihilation filter method, reconstructs the pulse point source according to the first mapping matrix to obtain the phase of the preset sound source mapped to the unit circle;
[0018] The positioning module constructs a second mapping matrix corresponding to each frequency band according to the phase, covariance matrix and wave number coordinates of the microphone array, expands the second mapping matrix to generate a third block diagonal matrix, obtains the amplitude estimate corresponding to the preset sound source according to the third block diagonal matrix, and converts the phase into an arrival direction angle;
[0019] The screening module screens the preset sound source according to the amplitude estimation and the arrival direction angle to obtain the amplitude and arrival direction angle of the real sound source.
[0020] A technical solution provided in an embodiment of the present invention is an electronic device, comprising:
[0021] at least one processor; and, a memory communicatively coupled to the at least one processor;
[0022] The memory stores instructions that can be executed by at least one processor, and the instructions are configured to execute the above-mentioned multi-sound source localization method based on finite innovation rate sampling.
[0023] A technical solution provided in an embodiment of the present invention is a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the multi-sound source localization method based on finite innovation rate sampling as described above.
[0024] Beneficial effects of the present invention:
[0025] Through the joint estimation method, the relationship between complexity and dimension is reduced from exponential to linear, which improves the computational efficiency.
[0026] The method based on finite innovation rate can achieve more accurate positioning when reconstructing signals and has stronger robustness.
[0027] The above invention content is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.
[0029] Figure 1 A flowchart of a multi-sound source localization method based on finite innovation rate sampling provided by the present invention;
[0030] Figure 2 A flowchart of a specific implementation of a multi-sound source localization method based on finite innovation rate sampling provided by the present invention. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0032] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0033] In the description of the present invention, it is necessary to understand that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0034] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0035] The following describes a method for localizing multiple sound sources based on finite innovation rate sampling according to an embodiment of the present invention in conjunction with the accompanying drawings.
[0036] Figure 1 FIG. 1 is a flow chart of an embodiment of a method for localizing multiple sound sources based on finite innovation rate sampling according to the present invention. Figure 1 As shown, the method comprises the following steps:
[0037] Acquiring the sound source data to be located by using a preset microphone array, the sound source data to be located including the sound source signals collected by each microphone in the microphone array;
[0038] Calculate the observation data of the sound source signal collected by each microphone according to the channel signals of the sound source data to be located, and construct the covariance matrix between the microphone signals of each channel according to the observation data;
[0039] Creating a first conjugate matrix and a corresponding first block diagonal matrix according to a first preset solution order, and constructing a first mapping matrix corresponding to each frequency band based on the first block diagonal matrix, the covariance matrix, and the wave number coordinates of the microphone array to map the Fourier coefficients to the real part of the covariance matrix;
[0040] The FRI signal reconstruction algorithm based on the annihilation filter method reconstructs the pulse point source according to the first mapping matrix to obtain the phase of the preset sound source mapped to the unit circle;
[0041] According to the phase, covariance matrix and wave number coordinates of the microphone array, a second mapping matrix corresponding to each frequency band is constructed, the second mapping matrix is expanded to generate a third block diagonal matrix, the amplitude estimation corresponding to the preset sound source is obtained according to the third block diagonal matrix, and the phase is converted into an arrival direction angle;
[0042] The preset sound sources are screened according to the amplitude estimation and the arrival direction angle to obtain the amplitude and arrival direction angle of the real sound source.
[0043] In the above embodiment, the present application is based on collecting the sound source data to be located, constructing the covariance matrix corresponding to the observed data, and mapping the Fourier coefficients to the real part of the covariance matrix. Then, the FRI signal reconstruction algorithm based on the annihilation filter method reconstructs the pulse point source according to the first mapping matrix. The innovative algorithm can handle the precise positioning and quantitative problems of more sound sources, and can achieve more accurate positioning in the reconstructed signal through a method based on a finite innovation rate, and has stronger robustness;
[0044] This application can locate and quantify multiple sound sources by monitoring the sound source data to be located collected by the microphone array;
[0045] This application reduces the relationship between complexity and dimension from exponential to linear, and improves computational efficiency, by using an FRI signal reconstruction algorithm based on the annihilation filter method and an innovative joint estimation method combining the first mapping matrix to reconstruct the pulse point source.
[0046] The present application has high efficiency and high precision. When the amplitude and specific number of the preset sound source are unclear, the present invention can be used to perform multiple screenings to exclude false sound sources.
[0047] In a specific embodiment of the present invention, the observation data of the sound source signals collected by each microphone is calculated according to each channel signal of the sound source data to be located, and the covariance matrix between the microphone signals of each channel is constructed according to the observation data, which specifically includes:
[0048] Acquire signals of each channel of the sound source data to be located;
[0049] After framing, each channel signal is subjected to fast Fourier transform to obtain a frequency domain signal;
[0050] Calculate the observation data of the sound source signal collected by each microphone through the frequency domain signal;
[0051] The covariance matrix between the microphone signals of each channel is constructed by observing the data, wherein the covariance matrix includes the covariance corresponding to each group of microphone signals, and the covariance corresponding to the signals of each group of microphone pairs is shown in the following formula (1):
[0052]
[0053] Wherein, in the above formula (1), q≠qp;
[0054] Used to represent the signal vector received by the qth microphone in the nth frequency band;
[0055] Used to represent the signal vector received by the qp-th microphone in the n-th frequency band;
[0056] The qth microphone and the qpth microphone are any pair of microphones among all microphones (the numbers of the two microphones are different);
[0057] N is the number of frequency bands.
[0058] In the above embodiment, each channel signal after framing is converted into a frequency domain signal by fast Fourier transform, and the observation data corresponding to each microphone is calculated. This method increases the number of measurement values and allows the use of fewer microphones to achieve more accurate measurement results.
[0059] In a specific embodiment of the present invention, a FRI signal reconstruction algorithm based on the annihilation filter method reconstructs a pulse point source according to a first mapping matrix to obtain a phase of a preset sound source mapped to a unit circle, specifically comprising: iteratively processing and updating a corresponding initial right symmetric matrix according to the initialized two-dimensional annihilation filter coefficient according to the first mapping matrix, using the updated right symmetric matrix to obtain the optimal Dirac coefficient, and mapping the normalized optimal Dirac coefficient to the phase on the unit circle.
[0060] In the above embodiment, the two-dimensional annihilation filter can jointly solve two annihilation filters, and the two-dimensional annihilation filter is composed of two one-dimensional annihilation filters, so as to obtain a situation that satisfies two constraints at the same time, simplify the calculation complexity, thereby achieving more accurate positioning and having stronger robustness;
[0061] In a specific embodiment of the present invention, according to the initialized two-dimensional annihilation filter coefficient, the corresponding initial right symmetric matrix is iteratively processed and updated according to the first mapping matrix, the optimal Dirac coefficient is obtained by using the updated right symmetric matrix, and the normalized optimal Dirac coefficient is mapped to the phase on the unit circle, which specifically includes:
[0062] Creating a first conjugate matrix according to a first preset solution order, and creating a first block diagonal matrix according to the first conjugate matrix;
[0063] According to the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array, a first mapping matrix corresponding to each frequency band is constructed to map the Fourier coefficients to the real part of the covariance matrix, and the first mapping matrix is expanded to generate a second block diagonal matrix so that each first mapping matrix is on a diagonal line;
[0064] A second conjugate matrix is created according to a second preset solution order, and a filter coefficient matrix is created according to a preset order, a T-type matrix is constructed by dividing the frequency bands, and a linear transformation matrix is constructed according to the second block diagonal matrix, wherein the second preset solution order is the sum of the first preset solution order and 1, and the preset order is the sum of the preset number of sound sources and 1;
[0065] It should be noted that the T-type matrix T(β) is a 2*2 matrix. The main diagonal is the T-type matrix of the real part of β', and the secondary diagonal is the T-type matrix of the imaginary part. The linear transformation matrix is the transpose of the mapping matrix G The product of and its transpose;
[0066] Initialize the two-dimensional annihilation filter coefficients and the corresponding right symmetric matrix, iterate the target matrix according to the initialized two-dimensional annihilation filter coefficients and the corresponding right symmetric matrix, obtain and compare the uniform sine samples and residuals corresponding to the target matrix to solve for the optimal Dirac coefficient, find the root of the optimal Dirac coefficient and normalize it, and map the normalized optimal Dirac coefficient to the phase on the unit circle.
[0067] In the above embodiment, the initialization technique of randomly scattering points in the optimization iterative algorithm is used. Usually, when calculating the global optimal solution of the optimization problem, it may fall into the local optimal solution and cannot jump out, or the algorithm converges slowly in the later stage of iteration. The above embodiment utilizes the fast convergence speed of the constructed optimization problem in the early stage, uses the initialized two-dimensional annihilation filter coefficients to iterate the target matrix, and compares the residual optimization corresponding to the target matrix, quickly solves the optimal Dirac coefficient, and then selects an optimal result as an approximation of the global optimal solution.
[0068] In a specific embodiment of the present invention, a first mapping matrix corresponding to each frequency band is constructed according to the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array to map the Fourier coefficients to the real part of the covariance matrix, and the first mapping matrix is expanded to generate a second block diagonal matrix so that each first mapping matrix is on a diagonal line, specifically including:
[0069] Separate the real and imaginary parts of the covariance matrix;
[0070] Obtaining the three-dimensional coordinates of the microphone array, and converting the three-dimensional coordinates of the microphone array into wave number coordinates;
[0071] Construct the first kind of Bessel function according to the wave number coordinates of the microphone array and convert it into a real number matrix;
[0072] The first block diagonal matrix is combined with the real number matrix to obtain a first mapping matrix corresponding to each frequency band, and the first mapping matrix is expanded to generate a second block diagonal matrix, so that each first mapping matrix is on a diagonal line.
[0073] In the above embodiment, the Fourier level coefficients are mapped to the real part of the observation value (referring to the covariance matrix) through the first mapping matrix, so that the observation value of the signal can be calculated according to the layout of the microphone array.
[0074] In a specific embodiment of the present invention, a second mapping matrix corresponding to each frequency band is constructed according to the phase, covariance matrix and wave number coordinates of the microphone array, the second mapping matrix is expanded to generate a third block diagonal matrix, and the amplitude estimation corresponding to the preset sound source is obtained according to the third block diagonal matrix, which specifically includes:
[0075] Obtain the pulse amplitude of the corresponding preset sound source according to the phase, map the pulse amplitude to the covariance matrix to obtain a second mapping matrix corresponding to each frequency band, and expand the second mapping matrix to generate a third block diagonal matrix;
[0076] A measurement vector corresponding to the third block diagonal matrix is obtained, and non-negative least squares optimization is performed on the third block diagonal matrix and the measurement vector to calculate an amplitude estimate corresponding to a preset sound source.
[0077] In a specific embodiment of the present invention, it also includes:
[0078] Acquire signals of each channel of the sound source data to be located;
[0079] After framing, each channel signal is subjected to fast Fourier transform to obtain a frequency domain signal;
[0080] The calculation frequency band is selected according to the energy of each frequency band in the frequency domain signal.
[0081] In a specific embodiment of the present invention, obtaining the wave number coordinates of the microphone array specifically includes:
[0082] The center frequency of the frequency band is obtained according to the calculated frequency band, and the three-dimensional coordinates of the microphone array are converted into wave number coordinates using the wavelength calculation formula.
[0083] As a specific embodiment, a multi-sound source localization method based on finite innovation rate sampling is as follows: Figure 2 As shown, the following steps may be included:
[0084] Step A1, using a preset microphone array to obtain sound source data to be located, where the sound source data to be located includes sound source signals collected by each microphone in the microphone array;
[0085] Step A2, taking each channel signal of the sound source data to be located, and performing fast Fourier transform on each channel signal after framing to obtain a frequency domain signal;
[0086] Step A3, selecting a calculation frequency band according to the energy of each frequency band in the frequency domain signal;
[0087] Step A4, calculating the observation data of the sound source signal collected by each microphone through the frequency domain signal, and constructing the covariance matrix between the microphone signals of each channel through the observation data. The covariance matrix takes the non-diagonal part of the covariance matrix, where the covariance corresponding to each group of microphone signal pairs is shown in the following formula (1):
[0088]
[0089] Among them, q≠qp;
[0090] y q Used to represent the signal vector received by the qth microphone in the nth frequency band;
[0091] y qp Used to represent the signal vector received by the qp-th microphone in the n-th frequency band;
[0092] The qth microphone and the qpth microphone are any pair of microphones among all microphones (the numbers of the two microphones are different);
[0093] N is the number of frequency bands;
[0094] Step A5, reconstruct the point sources on the circle according to each covariance matrix:
[0095] Step A51, separating the real part and the imaginary part of the covariance matrix, as shown in the following formula (2):
[0096]
[0097] Among them, C is the observed value matrix obtained, including the imaginary part and the real part;
[0098] Represents the real part of the extracted matrix;
[0099] Represents the imaginary part of the extracted matrix;
[0100] Step A52, obtaining the three-dimensional coordinates of the microphone array, obtaining the center frequency of the frequency band according to the calculated frequency band, and converting the three-dimensional coordinates of the microphone array into wave number coordinates using a wavelength calculation formula;
[0101] Specifically, the frequency band center frequency f can be obtained according to the calculated frequency band obtained in step A3, and the sound speed wavelength can be obtained according to the wavelength calculation formula λ=c / f (wherein the sound speed c=343m / s), and the three-dimensional coordinates of the microphones in the microphone array can be divided by the wavelength to obtain the wave number, so the wave number coordinates of the microphone array can be obtained, wherein the wave number coordinates of the microphones mean how many wavelengths are required for each axial coordinate to be away from the origin coordinate;
[0102] Step A53, creating a first conjugate matrix according to a first preset solution order, and creating a first block diagonal matrix according to the first conjugate matrix;
[0103] Specifically, the first preset solution order can be set to 3, and the expanded first conjugate matrix, that is, the Hermitian matrix is shown in the following formula (3):
[0104]
[0105] in, Used to represent a real symmetric matrix of order M;
[0106] Used to represent the imaginary symmetric matrix of order M;
[0107] The corresponding first block diagonal matrix is shown in the following formula (4):
[0108]
[0109] Step A54, constructing mapping matrices according to different sub-bands respectively, mapping the Fourier level coefficients to the real part of the covariance matrix, so that the observed value of the signal can be calculated according to the layout of the microphone array; specifically including:
[0110] Step A541, construct a first-order Bessel function according to the wave number coordinates of the microphone array and convert it into a real number matrix, as shown in the following formula (5):
[0111]
[0112] Used to represent the Euclidean distance between two microphones;
[0113] in, Used to represent the columns of the mapping matrix G;
[0114] represents the Bessel function of the first kind;
[0115] is the angle between the line connecting q and qp and the positive x-axis;
[0116] m is the order of Fourier, and the range is [-M,M], that is, each data in g is obtained by substituting different m into the formula;
[0117] The above formula is expanded into a real number matrix, as shown in the following formula (6):
[0118]
[0119] in, Used to represent the expanded real matrix;
[0120] Used to represent the mapping matrix;
[0121] Represents the real part used to represent the mapping matrix;
[0122] Represents the imaginary part used to represent the mapping matrix;
[0123] Step A542, combining the first block diagonal matrix with the real number matrix to obtain a first mapping matrix corresponding to each frequency band;
[0124] Specifically, the inner product of the first block diagonal matrix and the real number matrix obtained in step A53 is calculated to obtain mapping matrices of different frequency bands, as shown in the following formula (7):
[0125]
[0126] Where n represents the sub-band number
[0127] Step A543, unfolding all first mapping matrices to generate a second block diagonal matrix, so that each first mapping matrix is on a diagonal line;
[0128] Specifically, assuming there are two calculation bands, the first mapping matrices obtained are G1 and G2, which are expanded and diagonal matrices are generated to obtain , that is, each first mapping matrix is on a diagonal line;
[0129] Step A55, the FRI signal reconstruction algorithm based on the annihilation filter method reconstructs the pulse point source according to the second block diagonal matrix to obtain the phase of the preset sound source mapped to the unit circle, specifically including:
[0130] Step A551, creating a second conjugate matrix according to a second preset solution order, and creating a filter coefficient matrix according to a preset order, wherein the second preset solution order is the sum of the first preset solution order and 1, and the preset order is the sum of the preset number of sound sources and 1;
[0131] Specifically, let D coef0 is the identity matrix of ceil(K / 2) order (ceil is rounded up, such as ceil(2.5)=3), D coef1 By D coef0 And the reverse order is stacked vertically, D coef2 Yes D coef1 A modified version of D coef0 The reverse order of D is negated in value. coef1 ,D coef2 Diagonally concatenate the blocks to get the filter coefficient matrix D coef , as shown in the following formula (8):
[0132]
[0133] The first preset solution order can be set to 3, and the preset number of sound sources can be set to 5;
[0134] The second conjugate matrix at this time is shown in the following formula (9):
[0135]
[0136] Among them, the places without numbers in the matrix are all 0;
[0137] The corresponding diagonal matrix is shown in the following formula (10):
[0138]
[0139] Filter coefficient matrix D coef The derivation formula is shown in the following formula (11-13):
[0140]
[0141]
[0142]
[0143] in, Used to represent the identity matrix, which is a matrix with 1 on the diagonal and 0 on the rest;
[0144] Is And the reverse order is stacked vertically;
[0145] yes A modified version of .
[0146] Step A552, constructing a T-type matrix by dividing the frequency bands, and constructing a linear transformation matrix according to the second block diagonal matrix;
[0147] Specifically, the T-type matrix is shown in the following formula (14):
[0148]
[0149] in,
[0150] T is the Toeplitz matrix;
[0151] Used to indicate based on The T-type matrix of the real part of ;
[0152] K is used to represent the number of sound sources;
[0153] Used to indicate based on The T-type matrix of the imaginary part of ;
[0154] and Respectively represent The real and imaginary parts of
[0155] yes The result of being mapped into the Fourier level is, , β can be obtained by least square fitting according to the formula G*β=C. During the fitting process, G*β will continue to approach C until the minimum residual is reached. This β is the transfer function;
[0156] Specifically, the linear transformation matrix is shown in the following formula:
[0157]
[0158] T is the Toeplitz matrix;
[0159] G is the second block diagonal matrix obtained in step A543;
[0160] Step A553, where the traditional estimation method is implemented by calculating each dimension separately, that is, the total number of samples is K+1) D ,D is the number of dimensions. It can be seen that as the dimension increases, the computational complexity increases exponentially.
[0161] In the optimized method, we solve the two annihilation filters c1 and c2 jointly, that is, the two-dimensional annihilation filter c0 mentioned below, which is composed of two one-dimensional annihilation filters c1 and c2, to obtain a situation that satisfies both constraints at the same time, simplifying the calculation complexity.
[0162] The specific steps include:
[0163] Step A5531, initializing the two-dimensional annihilation filter coefficients and the corresponding right symmetric matrix;
[0164] The order corresponding to the coefficient of the initialized two-dimensional annihilation filter is a preset order (refer to step A551), that is, the sum of the preset number of sound sources and 1;
[0165] Step A5532, iterate the target matrix M according to the initialized two-dimensional annihilation filter coefficients, and obtain the sinusoidal samples and residuals corresponding to the target matrix. Here, the target matrix is iterated according to the maximum number of iterations and the error, specifically including:
[0166] Step A55321, creating an iterated target matrix based on the initialized two-dimensional annihilation filter coefficients and the right symmetric matrix, and ensuring that it can satisfy the constraint conditions;
[0167] The constraint condition is as shown in the following formula (15):
[0168]
[0169] Where c0 is the initialized two-dimensional zeroing filter coefficient;
[0170] The target matrix created is shown in the following formula (16):
[0171]
[0172] Among them, M is used to represent the target matrix;
[0173] N is used to indicate the frequency band;
[0174] The n subscript is used to indicate the subband number;
[0175] H stands for conjugation followed by transposition;
[0176] T is used to represent the matrix T(β) obtained by A552;
[0177] β is used to represent the transfer function;
[0178] The right dual matrix used to represent c;
[0179] Where R(c) represents the right symmetric matrix of T(b), such that , which can simplify the constraints;
[0180] GtG is used to represent a symmetric linear transformation matrix.
[0181] Step A55322, using the target matrix to update the two-dimensional annihilation filter coefficients and the right symmetric matrix, thereby maintaining the symmetry of the matrix for subsequent calculations;
[0182] Specifically, updating the two-dimensional annihilation filter coefficients with the target matrix mainly includes:
[0183] The objective function M is added to the transpose and divided by 2 to obtain a new matrix mtx, and the two-dimensional annihilation filter coefficient c is calculated using the following formula (17).
[0184]
[0185] Step A55323, calculate the uniform sinusoidal samples and residuals of the target matrix through the filter with updated coefficients, as shown in the following formula (18):
[0186]
[0187] in, , the total residual error is the norm of all residual vectors;
[0188] Used to represent transfer functions in different frequency bands.
[0189] A linear transformation matrix used to represent symmetry.
[0190] Used to represent the conjugate transpose of the right symmetric matrix c.
[0191] n is used to indicate the corresponding sub-band number.
[0192] Used to represent the residual vector.
[0193] Used to represent observations in different frequency bands.
[0194] Used to represent the mapping matrix of different frequency bands obtained in 5.4.2.
[0195] Used to represent the calculated uniform sine samples, This is the observed value obtained by iterating the coefficient.
[0196] Step A554: Return the optimal Dirac coefficient after the iteration. , residual (the residual is the optimal case when it is the smallest, and the output is ), as shown in the following formula:
[0197] ,in is half of c obtained in step A55322;
[0198] Used to represent the filter coefficient matrix obtained after iteration.
[0199] Step A56, rooting and normalizing the optimal Dirac coefficient, and mapping the normalized optimal Dirac coefficient to the phase on the unit circle, as shown in the following formula:
[0200]
[0201]
[0202] Among them, uk is used to represent the normalized optimal Dirac coefficient;
[0203] Used to represent the optimal Dirac coefficient.
[0204] Step A57, constructing a second mapping matrix corresponding to each frequency band according to the phase, covariance matrix and wave number coordinates of the microphone array, expanding the second mapping matrix to generate a third block diagonal matrix, obtaining an amplitude estimate corresponding to a preset sound source according to the third block diagonal matrix, and converting the phase into an arrival direction angle;
[0205] Specifically, a mapping matrix is constructed according to the phase by using a non-negative least squares (nnls) algorithm (i.e., a mapping matrix is constructed by reconstructing the angle), the amplitude of the Dirac pulse is mapped to the covariance matrix, the second mapping matrix of each frequency band is calculated by converting the microphone coordinates into wave numbers, and the third block diagonal matrix is combined to obtain an amplitude matrix amp and a measurement vector C' (step A51).
[0206] Perform non-negative least squares optimization on amp and C' to obtain the optimal amplitude estimate, as shown in the following formula (19):
[0207]
[0208] Among them, α is used to represent the best amplitude estimate;
[0209] The real part used to represent the observations.
[0210] α is used to represent the solution obtained by least squares.
[0211] It should be noted that in step A56, the phase (i.e., angle information) of the preset sound source is known. It can be assumed that the sound source of the preset sound source emitting the Dirac pulse is on a circle with a radius of 1m, and the coordinates can be obtained according to the calculated angle; then, a mapping matrix similar to A54 is calculated by the coordinate difference between the microphones and the estimated sound source coordinates (this step is performed in frequency bands), and each frequency band is divided into blocks and placed diagonally to obtain the amplitude matrix amp;
[0212] This matrix reflects the mapping relationship between the relative relationship between different microphones and the position of the sound source.
[0213] Step A6, screening the preset sound sources according to the amplitude estimation and the arrival direction angle to obtain the amplitude and arrival direction angle of the real sound source.
[0214] Specifically, each predicted preset sound source is traversed to filter out false sound sources with smaller amplitudes.
[0215] A multi-sound source localization system based on finite innovation rate sampling is provided, comprising:
[0216] The acquisition module uses a preset microphone array to acquire the sound source data to be located, and the sound source data to be located includes the sound source signal collected by each microphone in the microphone array;
[0217] A covariance matrix construction module calculates the observation data of the sound source signal collected by each microphone according to the channel signals of the sound source data to be located, and constructs the covariance matrix between the microphone signals of each channel according to the observation data;
[0218] A mapping module, which creates a first conjugate matrix and a corresponding first block diagonal matrix according to a first preset solution order, and constructs a first mapping matrix corresponding to each frequency band based on the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array to map the Fourier coefficients to the real part of the covariance matrix;
[0219] Point source reconstruction module, based on the FRI signal reconstruction algorithm of the annihilation filter method, reconstructs the pulse point source according to the first mapping matrix to obtain the phase of the preset sound source mapped to the unit circle;
[0220] The positioning module constructs a second mapping matrix corresponding to each frequency band according to the phase, covariance matrix and wave number coordinates of the microphone array, expands the second mapping matrix to generate a third block diagonal matrix, obtains the amplitude estimate corresponding to the preset sound source according to the third block diagonal matrix, and converts the phase into an arrival direction angle;
[0221] The screening module screens the preset sound source according to the amplitude estimation and the arrival direction angle to obtain the amplitude and arrival direction angle of the real sound source.
[0222] In the above embodiment, the present application is based on collecting the sound source data to be located, constructing the covariance matrix corresponding to the observed data, and mapping the Fourier coefficients to the real part of the covariance matrix. Then, the FRI signal reconstruction algorithm based on the annihilation filter method reconstructs the pulse point source according to the first mapping matrix. The innovative algorithm can handle the precise positioning and quantitative problems of more sound sources, and can achieve more accurate positioning in the reconstructed signal through a method based on a finite innovation rate, and has stronger robustness;
[0223] This application can locate and quantify multiple sound sources by monitoring the sound source data to be located collected by the microphone array;
[0224] This application reduces the relationship between complexity and dimension from exponential to linear, and improves computational efficiency, by using an FRI signal reconstruction algorithm based on the annihilation filter method and an innovative joint estimation method combining the first mapping matrix to reconstruct the pulse point source.
[0225] The present application has high efficiency and high precision. When the amplitude and specific number of the preset sound source are unclear, the present invention can be used to perform multiple screenings to exclude false sound sources.
[0226] An electronic device, comprising:
[0227] at least one processor; and, a memory communicatively coupled to the at least one processor;
[0228] The memory stores instructions that can be executed by at least one processor, and the instructions are configured to execute the above-mentioned multi-sound source localization method based on finite innovation rate sampling.
[0229] A computer-readable storage medium stores a computer program, which is executed by a processor to implement the multi-sound source localization method based on finite innovation rate sampling as described above.
[0230] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0231] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0232] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0233] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0234] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0235] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for localizing multiple sound sources based on finite innovation rate sampling, characterized in that: include: Acquiring the sound source data to be located by using a preset microphone array, wherein the sound source data to be located includes the sound source signals collected by each microphone in the microphone array; Calculating observation data of the sound source signals collected by each microphone according to each channel signal of the sound source data to be located, and constructing a covariance matrix between the microphone signals of each channel according to the observation data; Creating a first conjugate matrix and a corresponding first block diagonal matrix according to a first preset solution order, and constructing a first mapping matrix corresponding to each frequency band based on the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array to map Fourier coefficients to the real part of the covariance matrix; The FRI signal reconstruction algorithm based on the annihilation filter method reconstructs the pulse point source according to the first mapping matrix to obtain the phase of the preset sound source mapped to the unit circle; According to the phase, the covariance matrix and the wave number coordinates of the microphone array, a second mapping matrix corresponding to each frequency band is constructed, the second mapping matrix is expanded to generate a third block diagonal matrix, an amplitude estimate corresponding to a preset sound source is obtained according to the third block diagonal matrix, and the phase is converted into an arrival direction angle; The preset sound source is screened according to the amplitude estimation and the arrival direction angle to obtain the amplitude and arrival direction angle of the real sound source.
2. The method for localizing multiple sound sources based on finite innovation rate sampling according to claim 1, characterized in that: The step of calculating the observation data of the sound source signals collected by each microphone according to each channel signal of the sound source data to be located, and constructing the covariance matrix between the microphone signals of each channel according to the observation data specifically includes: Acquire signals of each channel of the sound source data to be located; After framing, each channel signal is subjected to fast Fourier transform to obtain a frequency domain signal; Calculating observation data of the sound source signal collected by each microphone through the frequency domain signal; The covariance matrix between the microphone signals of each channel is constructed by the observation data, wherein the covariance matrix includes the covariance corresponding to each group of microphone signals, and the covariance corresponding to each group of microphone signal pairs is shown in the following formula: ; Among them, q≠qp; y q Used to represent the signal vector received by the qth microphone in the nth frequency band; y qp Used to represent the signal vector received by the qp-th microphone in the n-th frequency band; The qth microphone and the qpth microphone are any pair of microphones; N is the number of frequency bands.
3. The method for localizing multiple sound sources based on finite innovation rate sampling according to claim 1, characterized in that: The FRI signal reconstruction algorithm based on the annihilation filter method reconstructs the pulse point source according to the first mapping matrix to obtain the phase of the preset sound source mapped to the unit circle, specifically including: iteratively processing and updating the corresponding initial right symmetric matrix according to the initialized two-dimensional annihilation filter coefficients according to the first mapping matrix, using the updated right symmetric matrix to obtain the optimal Dirac coefficient, and mapping the normalized optimal Dirac coefficient to the phase on the unit circle.
4. The method for localizing multiple sound sources based on finite innovation rate sampling as claimed in claim 3, characterized in that: The method of iteratively processing and updating the corresponding initial right symmetric matrix according to the initialized two-dimensional annihilation filter coefficient according to the first mapping matrix, obtaining the optimal Dirac coefficient by using the updated right symmetric matrix, and mapping the normalized optimal Dirac coefficient to the phase on the unit circle specifically includes: Creating a first conjugate matrix according to a first preset solution order, and creating a first block diagonal matrix according to the first conjugate matrix; According to the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array, construct a first mapping matrix corresponding to each frequency band to map the Fourier coefficients to the real part of the covariance matrix, and expand the first mapping matrix to generate a second block diagonal matrix so that each of the first mapping matrices is on a diagonal line; Creating a second conjugate matrix according to a second preset solution order, creating a filter coefficient matrix according to a preset order, constructing a T-type matrix by frequency band, and constructing a linear transformation matrix according to the second block diagonal matrix, wherein the second preset solution order is the sum of the first preset solution order and 1, and the preset order is the sum of a preset number of sound sources and 1; Initialize the two-dimensional annihilation filter coefficients and the corresponding right symmetric matrix, iterate the target matrix according to the initialized two-dimensional annihilation filter coefficients and the corresponding right symmetric matrix, obtain and compare the uniform sine samples and residuals corresponding to the target matrix to solve for the optimal Dirac coefficient, find the root of the optimal Dirac coefficient and normalize it, and map the normalized optimal Dirac coefficient to the phase on the unit circle.
5. The method for localizing multiple sound sources based on finite innovation rate sampling as claimed in claim 4, characterized in that: The first mapping matrix corresponding to each frequency band is constructed according to the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array to map the Fourier coefficients to the real part of the covariance matrix, and the first mapping matrix is expanded to generate a second block diagonal matrix so that each of the first mapping matrices is on a diagonal line, specifically including: separating the real and imaginary parts of the covariance matrix; Acquire the three-dimensional coordinates of the microphone array, and convert the three-dimensional coordinates of the microphone array into wave number coordinates; Constructing a first-order Bessel function according to the wave number coordinates of the microphone array and converting it into a real number matrix; The first block diagonal matrix is combined with the real number matrix to obtain the first mapping matrix corresponding to each frequency band, and the first mapping matrix is expanded to generate the second block diagonal matrix, so that each of the first mapping matrices is on a diagonal line.
6. The method for localizing multiple sound sources based on finite innovation rate sampling according to claim 1, characterized in that: The method further comprises: constructing a second mapping matrix corresponding to each frequency band according to the phase, the covariance matrix and the wave number coordinates of the microphone array, expanding the second mapping matrix to generate a third block diagonal matrix, and obtaining an amplitude estimate corresponding to a preset sound source according to the third block diagonal matrix. Acquire the pulse amplitude of the corresponding preset sound source according to the phase, map the pulse amplitude to the covariance matrix to obtain the second mapping matrix corresponding to each frequency band, and expand the second mapping matrix to generate the third block diagonal matrix; A measurement vector corresponding to the third block diagonal matrix is obtained, and non-negative least squares optimization is performed on the third block diagonal matrix and the measurement vector to calculate an amplitude estimate corresponding to a preset sound source.
7. The method for localizing multiple sound sources based on finite innovation rate sampling according to claim 1, characterized in that: Also includes: Acquire signals of each channel of the sound source data to be located; After framing, each channel signal is subjected to fast Fourier transform to obtain a frequency domain signal; The calculation frequency band is selected according to the energy of each frequency band in the frequency domain signal.
8. The method for localizing multiple sound sources based on finite innovation rate sampling according to claim 7, characterized in that: Obtaining the wave number coordinates of the microphone array specifically includes: The center frequency of the frequency band is obtained according to the calculated frequency band, and the three-dimensional coordinates of the microphone array are converted into wave number coordinates using a wavelength calculation formula.
9. A multi-sound source localization system based on finite innovation rate sampling, characterized in that: include: A collection module, which uses a preset microphone array to obtain the sound source data to be located, wherein the sound source data to be located includes the sound source signal collected by each microphone in the microphone array; A covariance matrix construction module calculates the observation data of the sound source signal collected by each microphone according to the channel signals of the sound source data to be located, and constructs the covariance matrix between the microphone signals of each channel according to the observation data; A mapping module, which creates a first conjugate matrix and a corresponding first block diagonal matrix according to a first preset solution order, and constructs a first mapping matrix corresponding to each frequency band based on the first block diagonal matrix, the covariance matrix and the wave number coordinates of the microphone array to map the Fourier coefficients to the real part of the covariance matrix; A point source reconstruction module, which reconstructs the pulse point source according to the first mapping matrix using a FRI signal reconstruction algorithm based on the annihilation filter method, and obtains the phase of the preset sound source mapped to the unit circle; A positioning module, which constructs a second mapping matrix corresponding to each frequency band according to the phase, the covariance matrix and the wave number coordinates of the microphone array, expands the second mapping matrix to generate a third block diagonal matrix, obtains an amplitude estimate corresponding to a preset sound source according to the third block diagonal matrix, and converts the phase into an arrival direction angle; A screening module screens the preset sound source according to the amplitude estimation and the arrival direction angle to obtain the amplitude and arrival direction angle of the real sound source.
10. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are configured to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Limited innovation rate-based pulse string signal undersampling system and method
CN106817130A
Time-frequency spectrum sensing method based on limited innovation rate
CN110944336A
