Phase synchronization compensation algorithm of earphone bone conduction-air conduction mixed sound field

Through the wavelet packet decomposition and complex domain phase dewinding algorithm, combined with the alternating direction multiplier method, phase synchronization compensation of the mixed sound field of the headphone bone conduction-air conduction is achieved, solving the problem of phase mismatch between the bone conduction and the sound path of the air conduction, and significantly improving the sound image positioning accuracy and frequency domain parameter optimization effect.

CN119922457AInactive Publication Date: 2025-05-02SHENZHEN XINZHENGYU TECH

Patent Information

Application Number
CN202510400596.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-05-02
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing headphone technology is difficult to effectively solve the phase mismatch between the bone conduction and the air conduction sound transmission path, resulting in confusion of sound image positioning, and traditional compensation algorithms fail to fully coordinate the aliasing distortion of the MEMS bone conduction sensor and the ECM air conduction microphone.

Method used

A phase synchronization compensation algorithm for the mixed sound field of the headphone bone conduction-air conduction is proposed. A multi-resolution subband coefficient group is obtained through the wavelet packet decomposition module, a hybrid transfer function matrix is ​​constructed, and the phase deviation is calculated using the complex domain phase dewinding algorithm, a global optimization objective function is established, and the compensation filter group parameters are iteratively solved by the alternating direction multiplication method.

Benefits of technology

Accurate phase synchronization is achieved, the phase error of the cross-band is reduced to <5°, the physiological conduction modeling accuracy is improved, the intelligent frequency domain parameter optimization effect is significant, the project real-time adaptation delay is <2ms, and the power consumption is optimized by 30%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119922457A_ABST
    Figure CN119922457A_ABST
Patent Text Reader

Abstract

The invention discloses a phase synchronization compensation algorithm for a bone conduction-air conduction mixed sound field of an earphone, and the algorithm comprises the steps: enabling a bone conduction vibration sensor signal # imgabs0 # and an air conduction microphone signal # imgabs1 # to pass through a wavelet packet decomposition module, obtaining a multi-resolution sub-band coefficient group # imgabs2 # and a multi-resolution sub-band coefficient group # imgabs3 #, and enabling the # imgabs4 # to be a sub-band index;
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of earphones, and in particular to a phase synchronization compensation algorithm for a bone conduction-air conduction mixed sound field of an earphone. Background Art

[0002] Differences in the sound transmission paths of bone conduction and air conduction lead to phase mismatch: The bone conduction vibration signal (dominant frequency band of 20-1500Hz) and the air conduction sound wave (1000-20000Hz) have significant differences in skull impedance (about 1600 rayl) and external auditory canal acoustic impedance (415 rayl), resulting in a phase deviation of 20°-50° in the time-frequency domain, causing confusion in sound and image positioning (JASA 2021 study showed that a time difference of more than 75ms will result in a positioning error of >15°); Lack of cross-modal signal coordination compensation: Traditional single-path compensation algorithms (such as IEEE TASLP 2020 bone conduction HRTF compensation) do not establish a joint matrix model across the conduction path, and do not adequately handle the aliasing distortion of MEMS bone conduction sensors (frequency response ±6dB@300-4kHz) and ECM air conduction microphones (±3dB@100-10kHz); Limitations of global frequency response optimization: Existing sub-band decomposition methods (such as CN109246559B using a 24-order FIR filter group) have insufficient frequency resolution (ERB bandwidth > 1 / 3oct), resulting in perceptual phase compensation producing phase wrapping distortion of < 4π in the 4-6kHz critical speech frequency band. Summary of the invention

[0003] The present invention aims to solve one of the technical problems in the related art to at least some extent. To this end, one object of the present invention is to propose a phase synchronization compensation algorithm for a headphone bone conduction-air conduction mixed sound field, characterized in that it includes: The bone conduction vibration sensor signal and air conduction microphone signals Through the wavelet packet decomposition module, the multi-resolution sub-band coefficient group is obtained and ,in is the subband index; Construct the mixing transfer function matrix for each subband: , where M is the number of headphone transducer units and N is the order of skull conduction path response; The complex domain phase unwrapping algorithm is used to calculate the phase deviation between each sub-band: , where τ_BA is the baseline value of bone-air conduction physiological conduction delay; Establish the global optimization objective function: , where α[k] is the frequency domain perception weight, and W is the constraint matrix of the transfer function correction ΔH; The compensation filter bank parameters that minimize J are iteratively solved by the alternating direction multiplier method. , and applied to the corresponding sub-band signal synthesis.

[0004] Preferably, the sub-band division adopts a critical frequency band non-uniform division method, adopts Δf=50Hz narrowband division in the range of 100Hz-800Hz, and adopts ERB equivalent rectangular bandwidth division in the range of 800Hz-5kHz.

[0005] Apply a swept frequency test signal behind the user's ear: , synchronously monitor the skull vibration acceleration a(t) and ear canal sound pressure p(t); Calculate the bone conduction frequency response function: ; Air pilot frequency response function: ; The Prony algorithm is used to perform parameterized modeling of H_b(f) and H_a(f), and the minimum model order that makes the fitting error lower than -30dB is taken as the N value.

[0006] Preferably, the frequency domain perception weight α[k] is calculated as: ; Where L[k] is the sound pressure level of each sub-band, MTF[k] is the modulation transfer function value, CLL[k] is the cross-band masking threshold, and the β coefficient is dynamically adjusted according to the user's hearing characteristics.

[0007] Preferably, the head movement angular velocity ω(t) is obtained through an inertial measurement unit, and a sound image position prediction model in a head coordinate system is established; when When , the beamforming parameter matrix is ​​dynamically adjusted: , where R[k] is the steering vector matrix containing the head rotation factor.

[0008] Preferably, the user's individual bone conduction hearing threshold curve is obtained and air conduction hearing threshold curve ; Construct a hearing difference compensation function: ; Gain correction is applied to the compensated bone conduction signal during the sub-band synthesis stage: .

[0009] Preferably, it also includes: Generate the cancellation signal using an adaptive feedback canceller: ; Where h_eb and h_ea are the headphone sound leakage path estimation functions updated by the LMS algorithm; The y(t) is inverted and added to the output signal end to make the bone conduction vibration signal perception mask the air conduction delay component.

[0010] Preferably, the compensated sub-band signals are aligned in the time domain envelope:

[0011] Where $\mathcal{H}$ represents the Hilbert transform, and the dynamic time warping algorithm is used to adjust the bone conduction signal envelope trajectory to match the air conduction signal.

[0012] Preferably, it also includes: The environmental sound classifier analyzes the spectral characteristics of the microphone signal through the CNN network and automatically switches the phase synchronization weight parameters when a specific scene is detected: Voice communication mode: Enhances phase consistency in the 200-4000Hz frequency band Music appreciation mode: Allows the low frequency band (<500Hz) to retain the unique texture of bone conduction vibration Noise reduction mode: Enhances beam directivity constraints in the frequency band above 800Hz

[0013] A headphone signal processing device, comprising: The dedicated acceleration core for wavelet packet decomposition and reconstruction, complex matrix operation unit, parameterized HRTF generation module and dual-path adaptive elimination coprocessor. The dedicated acceleration core for wavelet packet decomposition and reconstruction adopts variable-length instruction set architecture and supports simultaneous 4-channel 1024-point complex wavelet transform.

[0014] The above solution of the present invention includes at least the following beneficial effects: Precise Phase Synchronization: Through wavelet packet decomposition, fine sub-band division of 1 / 24 octave (Δf=62.5Hz@4kHz) is achieved, and combined with the complex domain phase unwrapping algorithm (LMS convergence speed is increased by 300%), the cross-band phase error is reduced to <5° (ITU-T P.863 MOS score is increased by 0.45); Physiological conduction modeling: The τ_BA time delay parameter (average value for adults: 0.2-1.8ms vary±15%) of CT image modeling simulation was introduced, and the temporal bone density gradient model (accuracy: ±0.5g / cm³) was embedded in the transfer function matrix to make the skull vibration phase prediction error ≤3dBSP; Intelligent frequency domain optimization: Using the Mel-scale weighted α[k] coefficient (trained with the Orpheus auditory database) and LMS adaptive constraints (||W○ΔH||_F≤0.3), a PSD compensation gain of 12dB is achieved in the 2-5kHz speech segment while maintaining frequency response smoothness (fluctuation <2dB); Real-time engineering adaptation: The number of iterations of the ADMM algorithm is reduced to 15 times for internal convergence (60% faster than SQP), the compensation filter group delay is <2ms to meet the real-time requirements of IEC 60268-37, and the power consumption is optimized by 30% (tested on the STM32H7 platform).

[0015] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0017] Figure 1 It is a flow chart of a phase synchronization compensation algorithm for a headphone bone conduction-air conduction mixed sound field provided in an embodiment of the present invention.

[0018] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0019] The 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 intended to be used to explain the present invention, but are not to be construed as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without creative work based on the embodiments of the present invention are within the scope of protection of the present invention.

[0020] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "circumferential", "radial" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0021] 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 the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0022] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like 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 an indirect connection 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.

[0023] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0024] The phase synchronization compensation algorithm for the bone conduction-air conduction mixed sound field of the earphone according to the embodiment of the present invention is described in detail below with reference to the accompanying drawings.

[0025] See also Figure 1 , in this embodiment, includes: The bone conduction vibration sensor signal and air conduction microphone signals Through the wavelet packet decomposition module, the multi-resolution sub-band coefficient group is obtained and ,in is the subband index; Construct the mixing transfer function matrix for each subband: , where M is the number of headphone transducer units and N is the order of skull conduction path response; The complex domain phase unwrapping algorithm is used to calculate the phase deviation between each sub-band: , where τ_BA is the baseline value of bone-air conduction physiological conduction delay; Establish the global optimization objective function: , where α[k] is the frequency domain perception weight, and W is the constraint matrix of the transfer function correction ΔH; The compensation filter bank parameters that minimize J are iteratively solved by the alternating direction multiplier method. , and applied to the corresponding sub-band signal synthesis; Precise Phase Synchronization: Through wavelet packet decomposition, fine sub-band division of 1 / 24 octave (Δf=62.5Hz@4kHz) is achieved, and combined with the complex domain phase unwrapping algorithm (LMS convergence speed is increased by 300%), the cross-band phase error is reduced to <5° (ITU-T P.863 MOS score is increased by 0.45); Physiological conduction modeling: The τ_BA time delay parameter (average value for adults: 0.2-1.8ms vary±15%) of CT image modeling simulation was introduced, and the temporal bone density gradient model (accuracy: ±0.5g / cm³) was embedded in the transfer function matrix to make the skull vibration phase prediction error ≤3dBSP; Intelligent frequency domain optimization: Using the Mel-scale weighted α[k] coefficient (trained with the Orpheus auditory database) and LMS adaptive constraints (||W○ΔH||_F≤0.3), a PSD compensation gain of 12dB is achieved in the 2-5kHz speech segment while maintaining frequency response smoothness (fluctuation <2dB); Real-time engineering adaptation: The number of iterations of the ADMM algorithm is reduced to 15 times for internal convergence (60% faster than SQP), the compensation filter group delay is <2ms to meet the real-time requirements of IEC 60268-37, and the power consumption is optimized by 30% (tested on the STM32H7 platform).

[0026] In this embodiment, the sub-band division adopts the critical frequency band non-uniform division method, adopts Δf=50Hz narrowband division in the range of 100Hz-800Hz, and adopts ERB equivalent rectangular bandwidth division in the range of 800Hz-5kHz; 1. Subband division module design Low frequency band refinement processing (100Hz-800Hz) In the range of 100Hz-800Hz, a narrowband division of Δf=50Hz is used to generate a total of 14 sub-bands (such as 100-150Hz, 150-200Hz...750-800Hz). This frequency band is the sensitive area of ​​human voice fundamental frequency and low-frequency vibration. Narrowband division can improve the time-frequency alignment accuracy of bone conduction and air conduction signals and avoid sound field distortion caused by accumulation of low-frequency phase deviation.

[0027] Technical basis: Bone conduction vibration has significant energy attenuation characteristics in the low frequency band (<800Hz), and narrowband division can more accurately match the group delay response of the skull conduction path.

[0028] Implementation method: The wavelet packet decomposition module uses the Daubechies wavelet basis (db4) with 5 decomposition layers. The original signals s_b(t) and s_a(t) are mapped to the preset subbands through the filter bank.

[0029] High frequency hearing adaptation (800Hz-5kHz) In the range of 800Hz-5kHz, ERB (Equivalent Rectangular Bandwidth) is used to dynamically adjust the subband width based on the auditory critical band model. The specific formula is:

[0030] For example, at 1kHz the subband width is ERB(1000)=129Hz; At 5kHz, ERB(5000)=332Hz; This division method is consistent with the masking effect of human hearing, reducing high-frequency redundant calculations while retaining speech clarity and music details.

[0031] Technical advantages: ERB division achieves sub-band width increasing with frequency in the high frequency band, avoids the waste of high-frequency resolution caused by uniform division, and improves the real-time performance of the algorithm.

[0032] Implementation association: An independent optimization unit of the hybrid transfer function matrix H[k] is implemented for each ERB subband, ensuring dynamic adaptation of the high-frequency phase deviation compensation to the auditory perception weights (α[k]).

[0033] 2. Collaborative implementation of sub-band division and phase compensation Signal flow integration After the bone conduction signal s_b(t) and the air conduction signal s_a(t) are divided into non-uniform sub-bands, a multi-resolution sub-band coefficient group {Ψ_bk}, {Ψ_ak} is generated. For the low-frequency narrowband sub-band, the phase deviation Φ[k] is calibrated band by band first; for the high-frequency ERB sub-band, the frequency domain perception weight α[k] is combined to perform wide-band joint optimization.

[0034] Dynamic parameter configuration Low frequency band: Since the narrowband division of Δf=50Hz produces dense sub-bands, the λ value in the global optimization objective function J needs to be reduced (such as λ=0.1) to weaken the constraint of the transfer function correction ΔH and avoid overfitting.

[0035] High frequency band: The ERB subband width is relatively large, so the λ value needs to be increased (e.g., λ=0.5) to enhance the stability of the beamforming parameter matrix Q[k] and suppress high-frequency noise interference.

[0036] Hardware acceleration support The dedicated accelerator core (WPU) for wavelet packet decomposition realizes parallel computing of non-uniform sub-bands by presetting the critical frequency band partition table. For example, the low-frequency 50Hz narrowband is optimized by fixed-point operation, and the high-frequency ERB sub-band uses floating-point operation unit to balance processing efficiency and accuracy.

[0037] Implementation effect verification

[0038] Simulation and user tests show that the non-uniform sub-band division strategy of the present invention can significantly improve the sound field synchronization performance compared with the traditional uniform division (such as Δf=100Hz): Low frequency band: The root mean square error (RMSE) of phase deviation is reduced by 42%, avoiding the time domain aliasing of bone conduction vibration and air conduction sound waves; High frequency band: Speech intelligibility (STI index) is improved by 18%, and the harmonic distortion rate (THD) of music signals is reduced to below 1.2%.

[0039] Through the hybrid sub-band division mode of low-frequency narrowband + high-frequency ERB, it not only meets the accuracy requirements of low-frequency phase alignment, but also adapts to the high-frequency auditory perception characteristics, forming a collaborative innovation with wavelet packet decomposition, hybrid transfer function construction and global optimization algorithm, and ultimately achieving high-fidelity synchronous reconstruction of bone conduction and air conduction sound fields.

[0040] In this embodiment, the method for determining the conduction path response order N is: 3. Design and application of sweep frequency test signal Signal generation and parameter configuration Apply a swept frequency test signal behind the user's ear , synchronously monitor the skull vibration acceleration a(t) and ear canal sound pressure p(t); Frequency range: covers the effective bone conduction-air conduction frequency band (20Hz-5kHz), using logarithmic interval distribution frequency points (such as 50Hz, 100Hz, 200Hz...5kHz), a total of M=32 frequency points; Amplitude control: Set A_m according to the safe sound pressure level for human ears (SPL<80dB). The amplitude of the low frequency band (<1kHz) increases (A_1=0.1V to A_10=0.5V), and the amplitude of the high frequency band (≥1kHz) decreases (A_11=0.5V to A_32=0.2V) to avoid overloading the high-frequency diaphragm.

[0041] Signal application and data acquisition synchronously Bone conduction vibration monitoring: The skull vibration acceleration signal a(t) is collected through a piezoelectric accelerometer (integrated in the headphone headband), with a sampling rate of ≥48kHz and a resolution of 16bit; Air conduction sound pressure monitoring: Use a miniature microphone in the ear canal (frequency response range 20Hz-20kHz) to synchronously record the ear canal sound pressure signal p(t) and eliminate environmental noise interference (using adaptive noise cancellation algorithm).

[0042] 4. Frequency response function calculation and preprocessing Frequency domain conversion and normalization Calculate bone conduction frequency response function ; Air pilot frequency response function ; Window function selection: Hanning window is used to reduce spectrum leakage, FFT points N_FFT=4096; Frequency response smoothing: Perform 1 / 3 octave smoothing on H_b(f) and H_a(f) to suppress measurement noise.

[0043] Phase consistency check The linear relationship between the input and output signals was verified by the coherence function, and only the frequency data with a coherence value ≥ 0.8 were retained for subsequent modeling.

[0044] 5. Parametric modeling based on Prony algorithm Model construction and order selection The Prony algorithm is used to parameterize the modeling of H_b(f) and H_a(f), and the minimum model order when the fitting error is less than -30dB is taken as the N value; it is expressed in the pole-zero form:

[0045] Order optimization: Use the least squares method to fit the measured frequency response data, and gradually increase the model order (P+Q) until the fitting error (mean square error) is less than -30dB; Determination of N value: Take the minimum model order that makes the joint fitting error of H_b(f) and H_a(f) meet the standard at the same time as the skull conduction path response order N. For example, when P=4 and Q=3, the H_b(f) fitting error is -32dB and H_a(f) is -31dB, then N=max(P,Q)=4.

[0046] Dynamic calibration and user adaptation Personalized storage: Store the N value and corresponding frequency response model parameters in the headphone user profile, supporting multi-user switching.

[0047] Regular update: When changes in the user's wearing status are detected (such as changes in the tightness of the headband), recalibration is automatically triggered.

[0048] 6. Collaborative implementation with phase synchronization compensation algorithm Transfer function matrix construction According to the determined N value, construct the sub-band mixing transfer function matrix: H[k]=[H_b[k]|H_a[k]]∈C^{M×N}, where: H_b[k] is the Nth-order response vector of the bone conduction path in sub-band k; H_a[k] is the Nth-order response vector of the air conduction path in the k-subband.

[0049] Accuracy guarantee of phase deviation calculation Accurate modeling of the N value ensures that the phase relationship between H_b[k] and H_a[k] in Φ[k] = ∠(H_b[k]^H H_a[k]) - 2πf_k τ_BA truly reflects the physiological conduction characteristics and avoids phase estimation errors caused by insufficient model order.

[0050] Global optimization objective function adaptation In the objective function J=Σα[k]|Φ[k]|² + λ||W○ΔH||_F², the N value directly affects the dimension of ΔH. The high-order model (larger N) needs to increase the λ value to suppress overfitting, while the low-order model (smaller N) needs to reduce the λ value to enhance the correction flexibility.

[0051] 7. Implementation effect verification The effectiveness of this method is demonstrated through comparative experiments (N=4 vs. N=2): Phase synchronization accuracy: When N=4, the standard deviation of the full-band phase deviation is reduced to 3.2°, which is 62% higher than that of N=2 (standard deviation 8.7°); Sound field fidelity: speech clarity (PESQ score) increased from 3.1 to 4.2, and music signal harmonic distortion (THD) decreased from 2.5% to 0.8%.

[0052] Through sweep test signal excitation and Prony parameterized modeling, the conduction path response order N is dynamically determined, and a closed-loop system is formed with wavelet packet decomposition, hybrid transfer function construction and optimization algorithm. This method not only improves the personalized adaptation capability of phase compensation, but also simplifies the real-time calculation complexity through the frequency response model, providing core parameter support for the high-precision synchronization of bone conduction-air conduction hybrid sound field.

[0053] In this embodiment, the frequency domain perception weight α[k] is calculated as: ; Where L[k] is the sound pressure level of each sub-band, MTF[k] is the modulation transfer function value, CLL[k] is the cross-band masking threshold, and the β coefficient is dynamically adjusted according to the user's hearing characteristics.

[0054] 8. Modular calculation of frequency-domain perception weight α[k] Real-time measurement of sub-band sound pressure level L[k] Perform short-time energy analysis on each sub-band signal Ψ_bk, Ψ_ak and calculate the sub-band sound pressure level:

[0055] Technical implementation: Through the fast energy detection module of the digital signal processor (DSP), sliding calculation is performed with a time window of 10ms (T=10ms) to ensure real-time performance; Dynamic calibration: Automatically corrects L[k] based on the tightness of the earphones worn by the user (detected by an air pressure sensor) to avoid sound pressure level errors caused by sound leakage.

[0056] Extraction of Modulation Transfer Function MTF[k] Envelope modulation analysis is used to obtain the modulation transfer function value of each sub-band signal: Implementation method: Perform Hilbert transform on the subband signals Ψ_bk and Ψ_ak to extract the envelope, separate the modulation components through a bandpass filter (3-50Hz), and calculate the energy ratio; Application scenarios: A high MTF value (>0.8) indicates that the speech clarity requirement is high and phase consistency needs to be enhanced; a low MTF value (<0.3) indicates that background noise is dominant and phase constraints can be relaxed.

[0057] Calculation of cross-band masking threshold CLL[k] Dynamically generate cross-band masking thresholds based on a psychoacoustic model:

[0058] Where S(f_k, f_i) is the attenuation (dB) of the masking effect of frequency f_i on f_k, which is obtained by looking up the table based on the Zwicker critical band model.

[0059] Real-time optimization: Quickly query the pre-stored masking threshold table (stored in the headset firmware) to reduce calculation complexity.

[0060] 9. Dynamic adjustment mechanism of β coefficient User hearing characteristics input Get the user's individual bone conduction hearing threshold curve BHT(f) and air conduction hearing threshold curve AHT(f): Hearing test module: The headset has a built-in hearing self-test function, which plays a calibration tone (20Hz-20kHz sweep frequency signal) and records the user's response threshold; Data storage: The threshold curve is encrypted and stored in the user configuration file, supporting multi-user switching.

[0061] Adaptive allocation of β coefficients Dynamically adjust weight coefficients based on hearing differences

[0062] Technical points: β_SPL is inversely proportional to the hearing difference. The greater the hearing loss (the higher the AHT-BHT difference), the lower the sound pressure level weight is, avoiding over-amplification and distortion. β_MTF is positively correlated with the MTF value, which strengthens the phase synchronization requirement in the high modulation frequency band; β_CLL is positively correlated with the masking threshold and relaxes the phase constraint in high masking environments (such as noisy scenes).

[0063] 10. Collaborative implementation with global optimization objective function Real-time reconstruction of the objective function J Embed α[k] into the global optimization objective function: Normalization processing: Dynamic normalization of coefficients is achieved through sliding average (MTF_avg) and maximum value tracking (CLL_max).

[0064]

[0065] Dynamic priority: In voice communication mode, the β_MTF weight is automatically increased by 2 times to strengthen the phase alignment of the 200-4000Hz frequency band; in music mode, the β_CLL weight is reduced by 50% to retain the low-frequency bone conduction vibration texture.

[0066] Iterative optimization of compensation filter parameters When solving the problem using the alternating direction method of multipliers (ADMM), α[k] is used as the regularization weight: Sub-problem decomposition: When updating G_b[k] and G_a[k], the phase deviation of the high α[k] subband is optimized first; When updating ΔH, the W matrix constraints (such as the diagonal weights associated with β_SPL) are combined to suppress overcorrection.

[0067] Convergence condition: terminate when the change rate of the objective function J is less than 1% or the number of iterations reaches 50, balancing the computational efficiency and accuracy.

[0068] 11. Implementation effect verification The advantages of this solution are verified through comparative experiments (fixed weight vs. dynamic weight): Phase synchronization accuracy: Under dynamic weight, the root mean square error (RMSE) of the phase deviation in the entire frequency band is reduced to 2.8°, which is 47% higher than that of fixed weight (RMSE=5.3°); Speech intelligibility: In noisy environments, speech clarity (STI index) increased from 0.65 to 0.82; Power consumption optimization: Due to dynamic weight allocation, DSP computing load is reduced by 18%, extending the battery life of the headphones.

[0069] Through multi-dimensional auditory feature fusion and dynamic weight allocation mechanism, the calculation depth of frequency domain perception weight α[k] is integrated into the phase synchronization compensation algorithm. Combining wavelet packet decomposition, hybrid transfer function construction and global optimization framework, the following innovations are achieved: Personalized adaptation: Dynamically adjust the β coefficient based on the user's hearing threshold to improve the user experience of hearing-impaired users; Scene adaptation: Through real-time analysis of MTF and CLL, intelligent switching optimization strategies for voice, music, and noise reduction modes; Computational efficiency: Pre-stored psychoacoustic parameter tables and sliding window optimization to ensure real-time requirements.

[0070] In this embodiment, the head movement angular velocity ω(t) is obtained through an inertial measurement unit, and a sound image position prediction model in the head coordinate system is established; When |ω(t)|>ω_th, the beamforming parameter matrix is ​​dynamically adjusted: , where R[k] is the steering vector matrix containing the head rotation factor.

[0071] 12. Inertial Measurement Unit (IMU) data acquisition and processing Hardware configuration and data acquisition The headset has a built-in six-axis IMU (such as MPU6050) to collect head movement angular velocity ω(t)=[ω_x, ω_y,ω_z] in real time, with a sampling rate ≥100Hz and a resolution of 0.1° / s.

[0072] Noise suppression: The raw angular velocity data is smoothed by a Kalman filter to suppress high-frequency jitter noise.

[0073] Coordinate system alignment: The IMU coordinate system and the headphone acoustic coordinate system (centered on the ear canal) are calibrated through a rotation matrix to ensure that the motion data is consistent with the sound field spatial mapping.

[0074] Motion state detection and threshold determination Calculate the modulus of the angular velocity of the head movement:

[0075] When |\omega(t)| > ω_th (the typical threshold is set to 30° / s), the user's head is judged to be in a fast motion state, triggering dynamic adjustment of the beamforming parameters.

[0076] 13. Construction of sound image position prediction model in head coordinate system Kinematic model and calculation of sound image offset Predict the sound image position offset Δθ(t) based on the head angular velocity:

[0077] Where α is the angular acceleration (estimated by differential angular velocity) and Δt is the prediction time window (50ms by default).

[0078] Implementation method: numerical integration (such as trapezoidal method) is used to calculate the sound image offset angle in real time and update the sound source direction vector.

[0079] Dynamic Correction of Steering Vector Matrix R[k] The steering vector matrix R[k]∈C^{M×D} (D is the number of sound source directions) of each subband k is adjusted according to Δθ(t):

[0080] Where r(θ) is the array response vector in direction θ, which is determined by the geometric layout of the headphone microphone array.

[0081] 14. Dynamic Optimization of the Beamforming Parameter Matrix Q[k] Minimum Variance Distortionless Response (MVDR) algorithm adaptation Based on the updated steering vector matrix R[k], the beamforming parameter matrix Q[k] is calculated:

[0082] Regularization parameter γ adjustment: When the head moves quickly (|\omega(t)| > ω_th), increase the γ value (for example, from 0.01 to 0.1) to enhance the robustness of the algorithm and suppress motion noise interference.

[0083] Static mode optimization: When the head is stationary (|\omega(t)| < 10° / s), γ returns to the default value to improve beam pointing accuracy.

[0084] Co-implementation with phase synchronization compensation Mixed transfer function matrix update: Q[k] is incorporated into the mixed transfer function matrix H[k] to form a motion-aware composite transfer function:

[0085] Objective function expansion: Add motion stability constraint term to the global optimization objective function J:

[0086] Where μ is the motion smoothing weight, and Q_prev is the parameter matrix of the previous frame, which avoids the sound field jump caused by parameter mutation.

[0087] Implementation effect verification

[0088] The effectiveness of this solution was verified by simulating head movement scenarios (such as rapid head turning and walking): Sound image tracking accuracy: Under dynamic adjustment, the sound image position offset error is ≤3°, which is significantly improved compared with fixed beamforming (error ≥10°); Noise suppression capability: In a motion noise (such as wind noise) environment, the voice signal-to-noise ratio (SNR) is improved by 8dB; Real-time computing: IMU data processing and beamforming update delay is less than 5ms, meeting the needs of real-time sound field rendering.

[0089] Through IMU motion perception and dynamic beamforming optimization, the head motion state is deeply integrated into the phase synchronization compensation algorithm of the bone conduction-air conduction mixed sound field, achieving the following innovations: Motion-adaptive sound field stabilization: Dynamic adjustment through the sound image position prediction model and MVDR algorithm to ensure the consistency of the sound field space when the head moves; Multi-modal parameter collaboration: Deep fusion of beamforming parameters Q[k], hybrid transfer function H[k], and global optimization objective function J to improve algorithm robustness; Low latency and high precision: IMU data preprocessing and matrix update optimization to ensure real-time requirements.

[0090] In this embodiment, the user's individual bone conduction hearing threshold curve BHT(f) and air conduction hearing threshold curve AHT(f) are obtained; Constructing a hearing difference compensation function ; Gain correction is applied to the compensated bone conduction signal during the sub-band synthesis stage: .

[0091] 15. Automated measurement of user hearing threshold Test signal design and application Through the built-in bone conduction vibration unit and air conduction speaker of the headset, multi-frequency pure tone test signals are applied to the user: Frequency range: covers 20Hz to 8kHz, distributed in 1 / 3 octaves (such as 125Hz, 250Hz, 500Hz...8kHz), a total of 24 frequency points; Signal form: Bone conduction signal uses sinusoidal vibration wave (acceleration 0.1-2.0g adjustable), air conduction signal uses pure sound wave (sound pressure level 40-90dB SPL adjustable); Adaptive amplitude increase method: Starting from the subthreshold intensity, the signal strength is gradually increased until the user confirms that they perceive the sound by pressing a button, and the threshold value of the frequency point (BHT(f) and AHT(f)) is recorded.

[0092] Data collection and processing Bone conduction threshold (BHT) (f): The minimum perceptible acceleration is determined by monitoring the user's skull vibration response through a piezoelectric sensor and combining user feedback; Air conduction threshold (AHT) (f): The ear canal sound pressure is recorded using an ear canal microphone and combined with user feedback to determine the minimum audible sound pressure level. Data storage: The threshold curve is encrypted and stored in the headset user profile, supporting multi-user switching and cloud synchronization.

[0093] 16. Construction and optimization of hearing difference compensation function C(f) Mathematical modeling of compensation function According to the difference between bone conduction and air conduction hearing thresholds, a frequency domain compensation function is constructed:

[0094] Physical meaning: If AHT(f) > BHT(f) (air conduction hearing loss is greater), then C(f) >1, and the bone conduction signal is enhanced to compensate for the lack of air conduction; otherwise, the bone conduction signal is suppressed; Smoothing: Perform cubic spline interpolation on discrete frequency thresholds to generate a continuous compensation curve to avoid sudden gain changes between frequency bands.

[0095] Dynamic calibration mechanism Environmental adaptation: When a change in environmental noise is detected (such as switching from a quiet room to a noisy street), the threshold retest is automatically triggered and C(f) is updated; User intervention: Supports manual fine-tuning of compensation intensity through the mobile APP to meet personalized needs.

[0096] 17. Gain correction in sub-band synthesis stage Band mapping of compensation gain Map the continuous compensation function C(f) to the wavelet packet subband center frequency f_k to generate the subband compensation coefficient C(f_k). For example: For the 100-150Hz subband (f_k=125Hz), take C(125Hz); For the 4-5kHz subband (f_k=4.5kHz), take C(4.5kHz).

[0097] Gain correction of bone conduction signal In the sub-band signal synthesis stage, a dynamic gain is applied to the compensated bone conduction signal:

[0098] Collaboration with phase compensation: G_b[k] is the compensation filter parameter obtained through global optimization, and C(f_k) performs pre-gain correction on this basis to form a dual compensation machine; Anti-saturation processing: limit the product gain of C(f_k)⋅G_b[k] to not exceed the preset maximum value (such as 20dB) to avoid signal overload distortion.

[0099] Bypass processing of air conduction signals The air conduction signal Ψ_{ak} is directly filtered by G_a[k] (without applying C(f_k) correction), retaining the original sound field characteristics, and is only aligned with the bone conduction signal through a phase synchronization algorithm.

[0100] 18. Implementation effect verification The effectiveness of this solution is verified through comparative experiments (enabling / disabling the compensation function): Users with hearing differences: For users with AHT-BHT=15dB, speech intelligibility (PESQ score) improved from 2.8 to 4.1; Dynamic scene adaptation: When the ambient noise is 70dB, the compensation gain automatically increases by 6dB, and the signal-to-noise ratio (SNR) increases by 4.2dB; Computational overhead: The newly added compensation module only increases the DSP computing load by 3%, and the real-time performance meets the delay requirement of <10ms.

[0101] Through personalized hearing threshold measurement and dynamic frequency domain compensation function, the user's hearing difference is deeply integrated into the phase synchronization compensation algorithm of the bone conduction-air conduction mixed sound field, achieving the following innovations: Accurate hearing adaptation: Threshold curve generation based on frequency sweep test ensures that the compensation function matches the user's actual hearing loss characteristics; Dual compensation mechanism: The synergy of C(f_k) and G_b[k] takes into account both frequency domain gain correction and time domain phase alignment; Low-complexity implementation: Through frequency band mapping and gain limiting, the real-time and stability of the algorithm are guaranteed.

[0102] In this embodiment, it also includes: Generate the cancellation signal using an adaptive feedback canceller: ; Where h_eb and h_ea are the headphone sound leakage path estimation functions updated by the LMS algorithm; The y(t) is inverted and added to the output signal end to make the bone conduction vibration signal perception mask the air conduction delay component.

[0103] 19. Hardware configuration and signal acquisition Sound leakage monitoring sensor integration The following sensors are built into the earphones to support leakage path modeling: Bone conduction sound leakage monitoring microphone: located on the outside of the headset, used to collect the sound wave signal of the bone conduction vibration signal leaking to the outside through the shell

[0104] Air conduction sound leakage monitoring microphone: located at the edge of the ear pad, used to collect sound wave signals leaking from the air conduction signal through the gap of the ear pad

[0105] Reference signal input: The bone conduction vibration sensor signal sb(t)sb(t) and the air conduction microphone signal sa(t)sa(t) are used as reference inputs of the adaptive filter.

[0106] Signal synchronization and preprocessing Sampling rate matching: All sensor signals are sampled at a uniform rate of 48kHz, and high-frequency noise is eliminated through anti-aliasing filters; Delay calibration: Use the cross-correlation algorithm to measure the transmission delay of each signal path to ensure signal alignment.

[0107] 20. Leakage path estimation and cancellation signal generation Leakage Path Modeling The estimation function of bone conduction and air conduction sound leakage paths is dynamically updated using the least mean square (LMS) algorithm. and :

[0108] Step size parameter optimization: bone conduction step size μbμb is set to 0.01 (low-frequency signals converge slowly), and air conduction step size μaμa is set to 0.05 (high-frequency signals need to be tracked quickly); Filter length: and The tap numbers of are 64 and 32 respectively, balancing the computational complexity and modeling accuracy.

[0109] Cancellation signal synthesis Generate a cancellation signal And invert and add to the output:

[0110] Phase alignment: The residual time delay between the cancellation signal and the main signal is compensated by the fractional delay filter to ensure the effectiveness of the anti-phase cancellation; Dynamic gain control: Automatically adjust the offset signal gain according to the sound leakage intensity to avoid signal distortion caused by over-compensation.

[0111] 21. Collaborative implementation with phase synchronization compensation algorithm Mixed transfer function matrix correction In the hybrid transfer function matrix Introduce sound leakage to offset the effect:

[0112] in is the frequency domain response matrix of the leakage path, converted by FFT and get.

[0113] Global Optimization Objective Function Extension In the original objective function Add leakage suppression constraints in:

[0114] Weight coefficient η: Dynamically adjusted according to the ambient noise level. In high-noise environments, η is increased to 0.2 to enhance sound leakage suppression. Frequency domain selectivity: Set higher weights for frequency bands with significant sound leakage (such as 1-3kHz) to optimize the cancellation effect.

[0115] Real-time parameter update mechanism Motion state perception: When the IMU detects rapid head movement, the LMS algorithm update cycle is shortened to 5ms, improving the speed of sound leakage path tracking; User interactive adaptation: supports manual increase / decrease of the offset strength through the headset touch panel to meet personalized needs.

[0116] 22. Implementation effect verification The performance of this solution was verified through laboratory and real-world testing: Sound leakage suppression capability: In 60dB ambient noise, the bone conduction sound leakage attenuation reaches 15dB, and the air conduction sound leakage attenuation reaches 12dB; Improved speech clarity: In noisy environments, speech intelligibility (STI index) increased from 0.58 to 0.75; Real-time indicators: LMS algorithm single frame processing time <0.1ms, overall signal processing delay <10ms, meeting real-time requirements.

[0117] The deep integration of adaptive feedback canceller and phase synchronization compensation algorithm enables the following innovations: Dynamic sound leakage modeling: LMS algorithm is used to track the changes in sound leakage paths in real time to adapt to different wearing states and environmental conditions; Multi-modal collaborative optimization: Leakage suppression and phase synchronization work together under dual constraints in the frequency domain and time domain to improve the fidelity of the sound field; Low-complexity implementation: Reduce computational overhead through frequency-domain matrix modification and selective weight assignment.

[0118] In this embodiment, the compensated sub-band signals are aligned in the time domain envelope:

[0119] Where $\mathcal{H}$ represents the Hilbert transform, and the dynamic time warping algorithm is used to adjust the bone conduction signal envelope trajectory to match the air conduction signal.

[0120] In order to achieve the time domain envelope alignment of the headphone bone conduction-air conduction mixed sound field, the dynamic time warping (DTW) algorithm is further introduced on the basis of phase synchronization compensation to ensure that the envelope trajectories of the bone conduction and air conduction signals are accurately matched in the time domain. The specific implementation steps are as follows: 23. Subband signal envelope extraction and preprocessing Hilbert transform implementation For the compensated sub-band signal and Perform the Hilbert transform and compute the analytic signal:

[0121] Technical implementation: Use FIR filter (such as 64-order Hanning window design) to quickly calculate Hilbert transform in the frequency domain, and compensate the delay to less than 1ms; Band selection optimization: For low-frequency sub-bands (<1kHz), higher-order filters are used to improve envelope smoothness; for high-frequency sub-bands (≥1kHz), calculations are simplified to reduce latency.

[0122] Envelope energy calculation Extract the time domain envelope by analyzing the signal:

[0123] Downsampling: downsample the envelope signal to 1 / 4 of the original sampling rate (e.g. 48kHz → 12kHz) to reduce the amount of calculation for the subsequent DTW algorithm. Normalization: Normalize the amplitude of the envelope signal (map the maximum value to 1) to eliminate the impact of energy differences between different sub-bands on alignment.

[0124] 24. Dynamic Time Warping (DTW) algorithm adaptation Path constraints and cost function design The envelope sequence for each subband k is and , construct the DTW alignment path:

[0125] Local constraints: limit the path slope to 1 (allow only diagonal, horizontal or vertical movement) to avoid excessive stretching or compression; Subband differentiation parameters: low-frequency subbands (<800Hz) allow greater time stretching (window length 50ms), and high-frequency subbands (≥800Hz) limit the window to 20ms to preserve transient details.

[0126] Timeline Mapping and Signal Adjustment Generate time mapping function based on optimal DTW path , for bone conduction signals To perform nonlinear time stretching:

[0127] Interpolation method: cubic spline interpolation is used to ensure signal continuity and avoid phase jumps; Real-time optimization: Segmented processing is performed through sliding windows (window length 100ms, overlap 50%) to ensure processing delay <10ms.

[0128] 25. Collaborative optimization with phase synchronization compensation Phase-Envelope Joint Constraint Add the envelope alignment error term to the global optimization objective function J:

[0129] Weight coefficient ν: dynamically adjusted according to the signal type, speech signal ν=0.3 (emphasis on envelope alignment), music signal ν=0.1 (preserve natural fluctuations); Iterative update mechanism: In the alternating direction multiplier method (ADMM), the phase parameters {G_b[k], G_a[k]} and the envelope mapping function are optimized alternately .

[0130] Inter-band consistency assurance Cross-band synchronization: Smooth constraints are imposed on the DTW paths of adjacent sub-bands (e.g., the path difference does not exceed 5ms) to avoid time axis misalignment between frequency bands. Phase compensation correction: Fine-tune the phase deviation Φ[k] according to the envelope alignment result to compensate for the additional phase offset introduced by time stretching.

[0131] 26. Implementation effect verification The effectiveness of this solution is verified through simulation and user hearing tests: Envelope alignment accuracy: After DTW alignment, the correlation coefficient between bone conduction and air conduction envelopes increased from 0.65 to 0.92; Improved auditory experience: In voice scenarios, the user subjective score (MOS) increased from 3.8 to 4.5; in music scenarios, the rhythm synchronization error was reduced to less than 20ms; Computational efficiency: The optimized DTW algorithm has a single subband processing time of <2ms on the ARM Cortex-M7 core, meeting real-time requirements.

[0132] Through the dual optimization of time domain envelope alignment and phase synchronization compensation, the following innovations are achieved: Multi-dimensional signal matching: Based on the phase alignment in the frequency domain, the envelope trajectory is further aligned in the time domain to improve the naturalness of the sound field; Dynamic adaptive processing: flexibly adapt to different signal types (speech / music) and frequency band characteristics through the DTW algorithm; Low-latency implementation: Combine downsampling, segmented processing, and efficient interpolation to ensure real-time requirements.

[0133] In this embodiment, it also includes: The ambient sound classifier analyzes the spectral characteristics of the microphone signal through the CNN network and automatically switches the phase synchronization weight parameters when a specific scene is detected: Voice communication mode: Enhances phase consistency in the 200-4000Hz frequency band Music appreciation mode: Allows the low frequency band (<500Hz) to retain the unique texture of bone conduction vibration Noise reduction mode: Enhances beam directivity constraints in the frequency band above 800Hz

[0134] In order to realize the scene-adaptive phase synchronization compensation of the bone-conduction-air-conduction mixed sound field of headphones, the present invention proposes a real-time environment classification and dynamic parameter switching technology based on deep learning. The specific implementation steps are as follows: 27. Design and training of environmental sound classifier Input data preprocessing Real-time acquisition of ambient sound signals from an air conduction microphone , follow these steps: Frame windowing: With a frame length of 20ms and a frame shift of 10ms, the Hanning window is weighted to generate short-time spectrum fragments; Feature extraction: Calculate the Mel frequency cepstral coefficient (MFCC, 13 dimensions) and logarithmic Mel spectrum energy (40 dimensions) of each frame to form a 53-dimensional feature vector; Standardization: Normalize the mean and variance of features to adapt to CNN input requirements.

[0135] CNN network architecture Design lightweight convolutional neural networks for real-time reasoning on embedded devices: Input layer: 53×1 feature vector, processed by 1D convolution; Convolutional layers: 3 layers of 1D convolution (filter number 32 / 64 / 128, kernel size 3), each layer is followed by ReLU activation and max pooling (pooling size 2); Fully connected layer: The output layer has 3 nodes (speech, music, and noise reduction scenarios), and uses Softmax activation to output probability distribution; Model compression: Use knowledge distillation technology to migrate pre-trained large models (such as VGGish) to lightweight networks to improve classification accuracy.

[0136] Training and deployment Dataset: Use open source environmental audio datasets (such as UrbanSound8K) and self-collected headphone scene data (including speech, music, and noise), a total of 100,000 samples; Real-time inference: The model is quantized to 8-bit integer and deployed on the CNN dedicated acceleration core of the headphone signal processing device. The single-frame inference time is less than 2ms.

[0137] 28. Scene detection and dynamic switching of weight parameters Scene decision logic Voice communication mode: triggered when the voice probability is >0.7 and the signal-to-noise ratio (SNR) is >15dB, strengthening the phase consistency of the 200-4000Hz frequency band; Music appreciation mode: triggered when the music probability is >0.6 and the low-frequency energy ratio (<500Hz) is >40%, allowing the low frequency to retain the bone conduction vibration texture; Noise reduction mode: triggered when the noise probability is >0.8 and the high-frequency energy (>800Hz) increases suddenly, enhancing the beam directivity constraint.

[0138] Phase synchronization weight parameter adjustment Dynamically modify the frequency domain perception weights in the global optimization objective function and the regularization coefficient ;

[0139]

[0140] Parameter transition mechanism In order to avoid auditory jumps when switching scenes, exponential smoothing filtering is used to gradually adjust the parameters:

[0141] The transition time window is set to 100ms to ensure smooth transition of parameters.

[0142] 29. Collaborative optimization with phase synchronization compensation algorithm Dynamic Correction of Mixed Transfer Function Matrix In noise reduction mode, the beamforming matrix and Joint Optimization:

[0143] Band Selection Matrix : Apply diagonal constraints to the frequency band above 800Hz , strengthen directionality.

[0144] Band signal synthesis strategy Music mode: bone conduction signal of low frequency sub-band (<500Hz) The original envelope fluctuation is retained and only the phase is aligned; the high-frequency sub-band is directly synthesized; Speech mode: strictly align phase and envelope across the entire frequency band, and perform secondary calibration using the DTW algorithm; Noise reduction mode: suppress sub-band energy in non-target directions .

[0145] 30. Implementation effect verification The performance of this solution was verified through multiple scenario tests: Classification accuracy: The recognition accuracy of speech / music / noise scenes is 92% / 88% / 95% respectively; Voice mode: In conference scenarios, speech intelligibility (STI) is improved by 25% and latency is less than 15ms; Music mode: low-frequency texture retention (user rating) reaches 4.6 / 5.0, harmonic distortion (THD) <1%; Noise reduction mode: Under 80dB subway noise, the target speech SNR is increased by 12dB.

[0146] Through environmental scene classification and dynamic weight switching, deep learning technology and phase synchronization compensation algorithm are deeply integrated to achieve the following innovations: Intelligent scene adaptation: Real-time environment recognition based on CNN accurately matches the acoustic requirements of voice, music, and noise reduction modes; Multi-parameter collaborative optimization: weights , regularization term , beamforming matrix Linkage adjustment to improve the algorithm's ability to adapt to different scenarios; Low power consumption: The combination of lightweight CNN and dedicated acceleration core only increases power consumption by 5%, meeting the battery life requirements of headphones.

[0147] A headphone signal processing device, comprising: The dedicated acceleration core for wavelet packet decomposition and reconstruction, complex matrix operation unit, parameterized HRTF generation module and dual-path adaptive elimination coprocessor. The dedicated acceleration core for wavelet packet decomposition and reconstruction adopts a variable-length instruction set architecture and supports simultaneous 4-channel 1024-point complex wavelet transform.

[0148] 31. Headphone signal processing device architecture design The headphone signal processing device of the present invention is a multi-core heterogeneous architecture, integrating the above-mentioned algorithm logic, and the specific module composition and functions are as follows: Wavelet packet decomposition and reconstruction dedicated acceleration core (WPU) Hardware features: Supports variable length instruction set (VLIW), and can execute 4-channel 1024-point complex wavelet transform in parallel; Built-in critical band division table, the low frequency band (100-800Hz) adopts 50Hz narrowband mode, and the high frequency band (800Hz-5kHz) enables ERB dynamic division mode; The number of decomposition layers is configurable (5-8 layers), and supports dynamic switching of multi-wavelet bases such as Daubechies (db4) and Symlet (sym6).

[0149] Real-time guarantee: Single channel processing delay <0.5ms, four-channel parallel throughput up to 48kHz sampling rate; Reduce memory access latency through hardware pipeline and on-chip cache optimization.

[0150] Complex Matrix Unit (CMU) Functionality: Perform hybrid transfer function matrix construction Iterative calculation of the global optimization objective function J; Integrated alternating direction method of multipliers (ADMM) hardware accelerator, supporting floating-point matrix multiply-add (FMA) and norm calculation ; Dynamically load frequency-domain aware weights and scene mode parameters.

[0151] Performance indicators: A single matrix iteration (100×100 scale) takes <10μs; Supports dynamic precision switching (16-bit fixed point / 32-bit floating point) to balance calculation accuracy and power consumption.

[0152] Parametric HRTF Generation Module (PHM) Core technologies: Generate personalized head-related transfer function (HRTF) in real time based on head motion prediction model; Integrated IMU interface to receive six-axis angular velocity data , dynamically correct the sound image position offset; Stores multi-user HRTF parameter templates and supports hearing threshold curves Mapping.

[0153] Output interface: Generate beamforming matrix and frequency band selection matrix , and push it to CMU for joint optimization.

[0154] Dual-path adaptive cancellation coprocessor (DAC) Functional division: Bone conduction path processor: LMS leakage path estimation and cancellation signal synthesis; Air conduction path processor: realizes DTW envelope alignment and Hilbert transform acceleration; The dual-path data interaction bus supports seamless switching of time domain / frequency domain signals.

[0155] Real-time offset performance: The delay of the leakage path modeling is less than 1ms, and the cancellation depth is ≥12dB (1-5kHz frequency band); The envelope alignment error is <5%, and the dynamic time warping (DTW) processing time is <3ms / subband.

[0156] Environmental Classification Coprocessor (ECP) Core components: Integrated lightweight CNN acceleration core, supporting real-time classification of 53-dimensional MFCC features; Built-in scene mode decision logic, output voice / music / noise reduction mode flags to CMU and PHM; Supports user-defined mode priorities (such as manually switching music modes).

[0157] Energy efficiency optimization: Using 8-bit integer quantization, classification power consumption <5mW; The scene switching response time is <20ms, and the transition is smooth and imperceptible.

[0158] 32. Data flow coordination and real-time guarantee Signal Processing Pipeline Input stage: Bone conduction vibration signal With air conduction microphone signal After being sampled by the ADC, it is input into the WPU for wavelet packet decomposition; IMU Data With ambient sound Synchronize input PHM and ECP.

[0159] Core computing stage: WPU output subband coefficient group , To MCU, build Matrix and calculation ; PHM generation and Matrix, and Joint optimization; ECP output scene mode flag, dynamic adjustment , parameter.

[0160] Output stage: CMU output compensation filter parameters {G_b[k], G_a[k]} To WPU for sub-band signal synthesis; The DAC module performs leakage cancellation and envelope alignment to generate the final output signal

[0161] Real-time control Hard real-time constraints: The total delay from signal input to sound field rendering is ≤15ms (including sensor delay of 5ms and calculation delay of 10ms); A priority scheduling strategy is adopted to ensure that critical paths (such as the 200-4000Hz frequency band in voice mode) have priority in occupying computing resources.

[0162] Dynamic load balancing: When the ECP detects a high-noise environment, it automatically allocates additional resources to the DAC's leakage cancellation module; In music mode, the proportion of WPU low-frequency sub-band computing resources is increased to 70%, retaining the vibration texture.

[0163] 33. Hardware implementation and energy efficiency optimization Chip-level integration Using 22nm FD-SOI process, it integrates five functional modules into a single SoC; Power consumption of key modules: WPU: 15mW (four-channel full-speed mode); CMU: 20mW (floating point matrix operation); ECP: 5mW (CNN inference); Total power consumption ≤50mW, supporting headphone battery life >24 hours.

[0164] Memory architecture optimization On-chip SRAM (512KB) partition storage: Wavelet coefficient buffer (128KB); Matrix operation intermediate data (256KB); User profile (HRTF, hearing threshold, etc., 128KB); The external LPDDR4X interface (1GB) is used for large-capacity parameter table storage (such as ERB band table, masking threshold library).

[0165] Low power mode design Standby mode: Only ECP and IMU maintain low power operation (<1mW), and monitor the environment scene switching in real time; Dynamic Voltage Frequency Scaling (DVFS): Dynamically adjusts the clock frequency of the WPU and CMU (200MHz-1GHz) according to the computing load; Module-level power gating: Inactive modules (such as the high-frequency sub-band processing unit in noise reduction mode) are automatically powered off.

[0166] 34. Implementation effect verification Through FPGA prototype verification and tape-out testing, the device achieves the following performance indicators: Algorithm compatibility: fully supports all the above technical features, including phase synchronization, dynamic sub-band division, leakage cancellation, etc. Real-time performance: end-to-end delay ≤ 12ms at 48kHz sampling rate; Calculation accuracy: phase synchronization error <2°, envelope alignment correlation coefficient >0.9; Energy efficiency ratio: 0.5TOPS / W (CNN reasoning), 3 times higher than traditional DSP solutions; User subjective ratings: speech clarity (MOS) 4.6 / 5.0, music immersion rating 4.8 / 5.0.

[0167] The headphone signal processing device deeply integrates the above innovative technologies through multi-core heterogeneous architecture and hardware-algorithm co-design, achieving the following breakthroughs: Full-link optimization: hardware acceleration of the entire process from signal decomposition, matrix calculation to environmental perception to ensure high accuracy and low latency; Dynamic resource allocation: intelligently schedule computing resources based on scenario modes to balance performance and power consumption; User adaptation: supports multi-dimensional personalized parameter configuration such as HRTF, hearing threshold, and sound leakage path.

[0168] 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 invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more 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.

[0169] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. Phase synchronization compensation algorithm for headphone bone conduction-air conduction mixed sound field, characterized in that: include: The bone conduction vibration sensor signal and air conduction microphone signals Through the wavelet packet decomposition module, the multi-resolution sub-band coefficient group is obtained and ,in is the subband index; Construct the mixing transfer function matrix for each subband: , where M is the number of headphone transducer units and N is the order of skull conduction path response; The complex domain phase unwrapping algorithm is used to calculate the phase deviation between each sub-band: , where τ_BA is the baseline value of bone-air conduction physiological conduction delay; Establish the global optimization objective function: , where α[k] is the frequency domain perception weight, and W is the constraint matrix of the transfer function correction ΔH; The compensation filter bank parameters that minimize J are iteratively solved by the alternating direction multiplier method. , and applied to the corresponding sub-band signal synthesis.

2. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: The sub-band division adopts a critical frequency band non-uniform division method, adopts Δf=50Hz narrowband division in the range of 100Hz-800Hz, and adopts ERB equivalent rectangular bandwidth division in the range of 800Hz-5kHz.

3. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: The method for determining the response order N of the conduction path is: Apply a swept frequency test signal behind the user's ear: , synchronously monitor the skull vibration acceleration a(t) and ear canal sound pressure p(t); Calculate the bone conduction frequency response function: ; Air pilot frequency response function: ; The Prony algorithm is used to perform parameterized modeling of H_b(f) and H_a(f), and the minimum model order that makes the fitting error lower than -30dB is taken as the N value.

4. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: The calculation formula of the frequency domain perception weight α[k] is: ; Where L[k] is the sound pressure level of each sub-band, MTF[k] is the modulation transfer function value, CLL[k] is the cross-band masking threshold, and the β coefficient is dynamically adjusted according to the user's hearing characteristics.

5. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: The head angular velocity ω(t) is obtained through the inertial measurement unit, and a sound image position prediction model in the head coordinate system is established; when When , the beamforming parameter matrix is ​​dynamically adjusted: , where R[k] is the steering vector matrix containing the head rotation factor.

6. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: Get the user's individual bone conduction hearing threshold curve and air conduction hearing threshold curve ; Constructing a hearing difference compensation function ; Gain correction is applied to the compensated bone conduction signal during the sub-band synthesis stage: 。 7. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: Also includes: Generate the cancellation signal using an adaptive feedback canceller: ; Where h_eb and h_ea are the headphone sound leakage path estimation functions updated by the LMS algorithm; The y(t) is inverted and added to the output signal end to make the bone conduction vibration signal perception mask the air conduction delay component.

8. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: Perform time domain envelope alignment on the compensated sub-band signal: Where $\mathcal{H}$ represents the Hilbert transform, and the dynamic time warping algorithm is used to adjust the bone conduction signal envelope trajectory to match the air conduction signal.

9. The phase synchronization compensation algorithm for the headphone bone conduction-air conduction mixed sound field according to claim 1, characterized in that: Also includes: The environmental sound classifier analyzes the spectral characteristics of the microphone signal through the CNN network and automatically switches the phase synchronization weight parameters when a specific scene is detected: Voice communication mode: Enhances phase consistency in the 200-4000Hz frequency band Music appreciation mode: Allows the low frequency band (<500Hz) to retain the unique texture of bone conduction vibration Noise reduction mode: Enhances beam directivity constraints in the frequency band above 800Hz 10. An earphone signal processing device, applied to the phase synchronization compensation algorithm of the earphone bone conduction-air conduction mixed sound field according to any one of claims 1 to 9, characterized in that: include: The dedicated acceleration core for wavelet packet decomposition and reconstruction, complex matrix operation unit, parameterized HRTF generation module and dual-path adaptive elimination coprocessor. The dedicated acceleration core for wavelet packet decomposition and reconstruction adopts variable-length instruction set architecture and supports simultaneous 4-channel 1024-point complex wavelet transform.

Citation Information

Patent Citations

  • speaker

    CN109246559B

  • Ultra-low time delay audio processing method and system based on spectrum analysis

    CN105931649A

  • Acoustic devices

    US11328702B1

  • Adaptive filter unit for being used as an echo canceller

    US20180027125A1

  • Method, apparatus, and system for voice activity detection based on radio signals

    US20230090763A1

Cited By

  • Intelligent wearing system and control method of intelligent wearing system

    CN120859536A

  • Intelligent hearing aid mode switching system and switching method thereof

    CN121357481A

  • A smart hearing aid mode switching system and its switching method

    CN121357481B