A time domain interpolation method for personalized HRTF
By training the delay prediction model and GRNN model on the personalized HRTF database, combined with three-point adjacent linear interpolation, the problem of inaccurate delay data in the existing HRTF interpolation method is solved, and a more accurate virtual sound source positioning effect is achieved.
Patent Information
- Application Number
- CN202410789547.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing HRTF interpolation methods fail to accurately reflect the user's actual binaural time difference information, cannot meet the vast majority of people's needs for accurate positioning of virtual sound sources, and the delay data using public HRTF databases is inaccurate.
A personalized HRTF database is used to train the delay prediction model, and the GRNN model is used to predict the left and right ear delay in unknown directions, and the main part of the data is calculated through three-point adjacent linear interpolation, and background noise information is added to obtain a complete interpolation result.
It improves the accuracy of HRTF interpolation results and user perception effect, can more accurately reflect individual binaural time difference information, and meets personalized virtual sound source positioning needs.
Smart Images

Figure CN118363953B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of interpolation calculation, and in particular to a time domain interpolation method for personalized HRTF. Background Art
[0002] The HRTF interpolation method uses existing data in the HRTF database to calculate data at unknown locations. Specifically, the personalized HRTF interpolation process can be divided into three stages, namely the delay prediction stage, the main data calculation, and the background noise addition stage. In the delay prediction stage, the delay prediction model is obtained through the known spatial orientation and the corresponding left and right ear delay training in the personalized HRTF database to predict the delay information of the unknown spatial position. In the main data calculation stage, it is necessary to obtain 128-dimensional main part time domain data through three-point adjacent linear interpolation calculation. In the background noise addition stage, noise data will be added to the remaining positions except the main part according to the delay information to obtain a complete interpolation result.
[0003] In the existing HRTF interpolation methods, most of them are based on direct numerical calculations of data from the public HRTF database, without considering the particularity of delay information. The delay data in the calculation results is not accurate and cannot reflect the user's actual binaural time difference information. In addition, HRTF is closely related to the size of physiological structure, and the use of the public HRTF database cannot meet the precise positioning of virtual sound sources for most people. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] Therefore, the purpose of the present invention is to provide a time domain interpolation method for personalized HRTF. The method trains the delay prediction model through the personalized HRTF database to predict the left and right ear delays in unknown directions, and at the same time calculates the main part data and restores the background noise to synthesize the final interpolation result.
[0006] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:
[0007] A time domain interpolation method for personalized HRTF, comprising:
[0008] S1, extracting spatial position parameters and corresponding left and right ear delays from the personalized HRTF database, and training left and right ear delay prediction models respectively;
[0009] S2. Input the specified spatial position parameters to obtain the predicted left and right ear delay values at the corresponding position. and ;
[0010] S3, calculating the interpolation results of the main parts of the left and right ears by linear interpolation of three adjacent points;
[0011] S4. The predicted left and right ear delay values and Add it to the interpolation results of the main part of the left and right ears, and restore the background noise information of the remaining positions to obtain the complete left and right ear interpolation results at the specified spatial position , .
[0012] As a preferred solution of the time domain interpolation method for personalized HRTF described in the present invention, in step S1, a left-right ear delay prediction model is obtained by training a GRNN model.
[0013] As a preferred solution of the time domain interpolation method for personalized HRTF described in the present invention, in step S1, the training sample of the left ear delay prediction model is , the right ear delay prediction model training sample is ;
[0014] in, represents the parameters of all known spatial source locations in the personalized HRTF database, Represent the azimuth and elevation of each source position, Respectively represent the left and right ear delays corresponding to each spatial position.
[0015] As a preferred solution of the time domain interpolation method for personalized HRTF described in the present invention, in step S2, the steps of inputting the specified spatial position parameters and obtaining the predicted left and right ear delay values t of the corresponding positions are as follows:
[0016] The target space position parameters In the first layer of the network, the input layer does not process the parameters directly into the pattern layer. The pattern layer has N neurons, each of which uses a Gaussian function as the kernel function. is the center vector of the kernel function, and the position parameters of the input Calculate the output of each neuron in the pattern layer :
[0017] ;
[0018] Where N is 648, which represents the number of source locations of the measured time domain data in the personalized HRTF database. represents the position parameter corresponding to a source position in each neuron, is the smoothing parameter;
[0019] The summation layer has two neurons. One node in the summation layer performs arithmetic summation on the output of the pattern layer. The output of the node is :
[0020] ;
[0021] Another node in the summation layer calculates the weighted sum of the outputs of each neuron in the pattern layer, with the weight being the left and right ear delay sampling point number of each training sample. , the output of the node is :
[0022] ;
[0023] The output layer divides the output of the numerator and denominator units in the summation layer to obtain the calculated values of the left and right ear delays at the unknown spatial position. :
[0024] .
[0025] As a preferred solution of the time domain interpolation method for personalized HRTF described in the present invention, the calculation formula for calculating the interpolation result of the main part by three-point adjacent linear interpolation is as follows:
[0026] ;
[0027] ;
[0028] ;
[0029] in, Indicates the azimuth interval of the spherical grid of the personalized HRTF database, and the azimuth interval is 5 degrees; Indicates the interval in pitch angle, the pitch angle interval is 15 degrees. Indicates the direction from the nearest vertex, , Respectively represent the distance of the target position from the nearest adjacent point in azimuth and elevation, , They represent the ratio of the distance from the target position to the nearest grid vertex to the azimuth angle interval and the elevation angle interval, respectively.
[0030] As a preferred solution of the time domain interpolation method for personalized HRTF described in the present invention, in step S4, the left and right ear interpolation results are , is a one-dimensional array of length 2940, where the array index is t The main part of the interpolation result is placed in the position of the main part, that is, the starting position of the main part in the array is ( t , t +128), the rest of the array is background noise data, set them to or A random value of .
[0031] Compared with the prior art, the present invention has the following beneficial effects: in this patent, a delay prediction model is obtained by using personalized HRTF training, and the position of the main part of the data obtained by linear interpolation of three adjacent points is determined according to the predicted delay, and the noise data is supplemented at the remaining positions. The time domain interpolation result with personalized delay information can be obtained. The traditional HRTF interpolation method calculates the data as a whole, without considering the difference in left and right ear delay information, that is, the difference in binaural time difference in different individuals. Compared with the HRTF interpolation results obtained by traditional interpolation methods, this patent has certain advantages in the accuracy of interpolation result calculation and practical application perception. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the present invention will be described in detail below in combination with the accompanying drawings and detailed embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0033] Figure 1 The present invention is a flowchart of a time domain interpolation method for personalized HRTF. DETAILED DESCRIPTION
[0034] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0035] The present invention provides a time domain interpolation method for personalized HRTF to solve the problem of inaccurate orientation of virtual sound sources perceived by users.
[0036] There are three known conditions for the implementation of this method: personalized HRTF database (sofa file), generalized regression neural network (GRNN), and specified spatial position parameters. In the present invention, the delay prediction model needs to be trained first, all spatial positions and corresponding left and right ear delays in the personalized HRTF database are extracted, and the delay prediction model is obtained by training the GRNN model. Then the specified spatial position parameters are input to obtain the predicted left and right ear delay values of the corresponding positions, and the main part interpolation results are calculated by three-point adjacent linear interpolation. Finally, the delay information is added to the main interpolation result, and the background noise information of the remaining positions is restored.
[0037] Specifically, the known conditions (i.e., input variables) of the present invention are: the spatial position parameters of the training delay prediction model and the corresponding actual left and right ear delays , the left (right) ear time domain data of the three nearest vertices of the target grid .
[0038] Variable to be determined: left (right) ear delay prediction value t The time domain interpolation results of the left and right ears and the target spatial position .
[0039] (Explanation of known conditions: spatial position parameters and corresponding left (right) ear delay It is extracted from the personalized HRTF database and used to train the delay prediction model. It can predict the delay data at unknown spatial locations. The left and right ear time domain data of the three nearest vertices of the target grid It is obtained from known data in the personalized HRTF database. The distances between the target parameters and the four vertices of the grid are calculated and sorted in turn to obtain the three closest ones).
[0040] See also Figure 1 , the specific steps of this method are as follows:
[0041] Step 1: Extract the spatial position parameters and the corresponding left and right ear delays from the personalized HRTF database, and train the left and right ear delay prediction models respectively. The training samples of the left ear delay prediction model are , the right ear delay prediction model training sample is ,in Represents the parameters of all known spatial locations in the personalized HRTF database. Represent the azimuth and elevation of each source position, Respectively represent the left and right ear delays corresponding to each spatial position.
[0042] Step 2: Set the target space position parameters When the input is input into the first layer of the network, the input layer does not process the input and directly passes the parameters to the pattern layer. The pattern layer has N neurons, each of which uses a Gaussian function as the kernel function to train the sample. is the center vector of the kernel function, and the position parameters of the input Calculate the output of each neuron in the pattern layer :
[0043] ;
[0044] Where N is 648, which represents the number of source locations of the measured time domain data in the personalized HRTF database. represents the position parameter corresponding to a source position in each neuron, is the smoothing parameter, which is set to 0.5 here.
[0045] Step 3: The summation layer has two neurons. One node in the summation layer performs arithmetic summation on the output of the pattern layer. The output of the node is :
[0046] ;
[0047] Step 4: Another node in the summation layer calculates the weighted sum of the outputs of each neuron in the pattern layer, with the weight being the left (right) ear delay sampling point number of each training sample. , the output of the node is :
[0048] ;
[0049] Step 5: The output layer divides the output of the numerator and denominator units in the summation layer to obtain the calculated value of the left (right) ear delay at the unknown spatial position. :
[0050] .
[0051] Step 6: Calculate the interpolation result of the main part through three adjacent linear interpolation points.
[0052] ;
[0053] ;
[0054] ;
[0055] in, Indicates the azimuth interval of the spherical grid of the personalized HRTF database, and the azimuth interval is 5 degrees; Indicates the interval in pitch angle, the pitch angle interval is 15 degrees. Indicates the direction from the nearest vertex. , Respectively represent the distance of the target position from the nearest adjacent point in azimuth and elevation, , They represent the ratio of the distance from the target position to the nearest grid vertex to the azimuth angle interval and the elevation angle interval, respectively.
[0056] Step 7: Add the delay information t to the interpolation result of the main part above, and add the background noise to the rest. Get the complete left (right) ear interpolation result Left (right) ear time domain data is a one-dimensional array of length 2940, where the array index is t The main part of the interpolation result is placed in the position of the main part, that is, the starting position of the main part in the array is ( t , t +128), the rest of the array is background noise data, set them to or A random value of .
[0057] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A time domain interpolation method for personalized HRTF, characterized in that: include: S1, extracting spatial position parameters and corresponding left and right ear delays from the personalized HRTF database, and training left and right ear delay prediction models respectively; S2. Input the specified spatial position parameters to obtain the predicted left and right ear delay values at the corresponding position. and ; S3, calculating the interpolation results of the main parts of the left and right ears by three adjacent linear interpolation points; S4. The predicted left and right ear delay values and Add it to the interpolation results of the main part of the left and right ears, and restore the background noise information of the remaining positions to obtain the complete left and right ear interpolation results at the specified spatial position , ; In step S1, the training sample of the left ear delay prediction model is , the right ear delay prediction model training sample is ; in, represents the parameters of all known spatial source locations in the personalized HRTF database, Represent the azimuth and elevation of each source position, , Respectively represent the left and right ear delays corresponding to each spatial position; In step S2, the steps of inputting the specified spatial position parameters and obtaining the predicted left and right ear delay values t at the corresponding positions are as follows: The target space position parameters In the first layer of the network, the input layer does not process the parameters directly into the pattern layer. The pattern layer has N neurons, each of which uses a Gaussian function as the kernel function. is the center vector of the kernel function, and the input position parameter Calculate the output of each neuron in the pattern layer : ; Where N is 648, which represents the number of source locations of the measured time domain data in the personalized HRTF database. represents the position parameter corresponding to a source position in each neuron, is the smoothing parameter, , All are set to 0.5; The summation layer has two neurons. One node in the summation layer performs arithmetic summation on the output of the pattern layer. The output of the node is : ; Another node in the summation layer calculates the weighted sum of the outputs of each neuron in the pattern layer, with the weight being the left and right ear delay sampling point number of each training sample. , the output of the node is : ; The output layer divides the output of the numerator and denominator units in the summation layer to obtain the calculated values of the left and right ear delays at the unknown spatial position. : ; The calculation formula for calculating the interpolation result of the main part by three adjacent linear interpolation points is as follows: ; ; ; in, Indicates the azimuth interval of the spherical grid of the personalized HRTF database, and the azimuth interval is 5 degrees; Indicates the interval in pitch angle, the pitch angle interval is 15 degrees. Indicates the direction from the nearest vertex, , Respectively represent the distance of the target position from the nearest adjacent point in azimuth and elevation, , They represent the ratio of the distance from the target position to the nearest grid vertex to the azimuth angle interval and the elevation angle interval, respectively.
2. The time domain interpolation method for personalized HRTF according to claim 1, characterized in that: In step S1, a left-right ear delay prediction model is obtained by training the GRNN model.
3. The time domain interpolation method for personalized HRTF according to claim 1, characterized in that: In step S4, the left and right ear interpolation results , is a one-dimensional array of length 2940, where the array index is t The main part of the interpolation result is placed in the position of the main part, that is, the starting position of the main part in the array is ( t , t +128), the rest of the array is background noise data, all of which are set to 1×10 -14 dB or 1×10 -15 A random value in dB.
