Digital human interaction optimization method and platform based on sound field positioning analysis
By combining microphone arrays and visual sensors, acoustic and visual features are extracted, and sound source localization sub-models are dynamically selected and fused. This solves the problems of positioning accuracy and response lag in digital humans in complex environments, and achieves efficient and natural sound source localization and interaction.
Patent Information
- Application Number
- CN202611382102.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, digital human voice source localization relies on a single fixed model, which cannot adapt to interactive environments of varying complexity. This results in low localization accuracy, slow response, and poor naturalness of interaction under complex sound fields such as background noise, reverberation, and multi-source interference.
Multi-channel sound signals are collected using a microphone array of a digital human, and environmental images are collected using a visual sensor. Acoustic and visual feature vectors are extracted to construct a sound source localization model array. Sub-models are dynamically selected and fused based on the environmental complexity coefficient to locate the sound source.
It achieves high-precision sound source localization and natural interaction in complex interactive environments, improving the positioning accuracy and response speed of digital humans under background noise, reverberation and multi-source interference.
Smart Images

Figure CN123179127A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital human interaction optimization, and in particular to a digital human interaction optimization method and platform based on sound field localization analysis. Background Technology
[0002] Digital human interaction technology is widely used in various fields such as intelligent customer service, virtual anchors, metaverse social networking, and intelligent cockpits. The naturalness and accuracy of its interaction directly determine the user experience. Sound source localization is the core foundation for digital humans to achieve natural interaction. Digital humans need to accurately identify the direction of the user's voice and actively face the user to achieve human-like interactive feedback. Real-world interaction environments present various complex factors such as background noise, reverberation, multi-source interference, and differences in spatial layout, posing a significant challenge to sound source localization.
[0003] Current methods for voice source localization in digital humans mostly employ a single-model, fixed-localization approach, which has significant technical limitations. Single-source localization models cannot adapt to interactive environments of varying complexity. In scenarios with high noise, strong reverberation, or complex spatial layouts, localization accuracy drops drastically, preventing the digital human from accurately facing the user. Furthermore, the localization process lacks adaptive optimization, using the same localization logic regardless of environmental simplicity, making it difficult to balance localization efficiency and accuracy, thus affecting the naturalness of digital human interaction. With the diversification of digital human application scenarios, there is an urgent need for an adaptive, precise, and efficient digital human interaction optimization method that can adapt to different environments, overcome existing technical bottlenecks, and improve the naturalness and accuracy of digital human interaction. Summary of the Invention
[0004] This application provides a digital human interaction optimization method and platform based on sound field localization analysis to solve the problems in the prior art where digital human sound source localization relies on a single fixed model and cannot adapt to interactive environments of different complexities, resulting in low localization accuracy, slow response, and poor interaction naturalness under complex sound fields such as background noise, reverberation, and multi-source interference.
[0005] This application discloses the following technical solution: In a first aspect, this application provides a digital human interaction optimization method based on sound field localization analysis, the method comprising: Multi-channel sound signals are acquired through a digital human's microphone array, and environmental images are acquired through a visual sensor; Acoustic feature vectors are extracted from the multi-channel sound signals, and visual feature vectors are extracted from the environmental images; Calculate the environmental complexity coefficient based on the acoustic feature vector and the visual feature vector; Construct a sound source localization model array, wherein the sound source localization model array contains multiple sound source localization sub-models; Based on the environmental complexity coefficient, the number of sound source localization sub-models to be invoked is determined, the number of sound source localization sub-models is selected from the sound source localization model array, the multi-channel sound signals are input to each selected sound source localization sub-model, multiple sound source direction estimation results are obtained, the multiple sound source direction estimation results are fused to obtain the final sound source direction, and the digital human is driven to interact with the final sound source direction.
[0006] Secondly, this application provides a digital human interaction optimization platform based on sound field localization analysis, the platform comprising: A multi-channel signal acquisition module is used to acquire multi-channel sound signals through the microphone array of the digital human and to acquire environmental images through a visual sensor. The feature extraction module is used to extract acoustic feature vectors from the multi-channel sound signal and visual feature vectors from the environmental image; An environment complexity calculation module is used to calculate the environment complexity coefficient based on the acoustic feature vector and the visual feature vector; A model array construction module is used to construct a sound source localization model array, wherein the sound source localization model array contains multiple sound source localization sub-models; The dynamic fusion and interaction module is used to determine the number of sound source localization sub-models to be invoked based on the environmental complexity coefficient, select the number of sound source localization sub-models from the sound source localization model array, input the multi-channel sound signals to each selected sound source localization sub-model to obtain multiple sound source direction estimation results, fuse the multiple sound source direction estimation results to obtain the final sound source direction, and drive the digital human to interact towards the final sound source direction.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages: First, this application acquires multi-channel sound signals through a microphone array of a digital human and environmental images through a visual sensor, achieving simultaneous acquisition of auditory and visual information. This provides a rich perceptual data foundation for subsequent multimodal fusion analysis and solves the problem that existing technologies rely solely on a single audio signal and lack environmental context information.
[0008] Furthermore, by extracting acoustic feature vectors from multi-channel sound signals and visual feature vectors from environmental images, the acoustic and spatial geometric characteristics of the interactive environment can be quantitatively reflected, providing multi-dimensional quantitative indicators for environmental complexity assessment and solving the problem that existing technologies cannot perceive environmental acoustic and spatial differences.
[0009] Furthermore, by calculating the environmental complexity coefficient based on acoustic and visual feature vectors, an objective quantitative evaluation of the complexity of the current interactive environment is achieved. This enables subsequent positioning strategies to be adaptively adjusted according to environmental complexity, solving the problem that existing technologies cannot accurately determine environmental complexity, leading to a mismatch between positioning strategies and the environment.
[0010] Furthermore, a sound source localization model array containing multiple sound source localization sub-models is constructed. By pre-training multiple heterogeneous or homogeneous sub-models, the system's coverage and robustness to different acoustic environments are enhanced, solving the problems of poor generalization ability and unstable localization accuracy of a single sound source localization model in variable environments.
[0011] Finally, the number of sub-models to be called is determined based on the environmental complexity coefficient. The corresponding number of sub-models are selected from the model array to process the sound signals respectively. The estimation results of multiple sound source directions are fused to obtain the final sound source direction, and the digital human is driven to interact in that direction. This realizes the dynamic adaptation of the number and complexity of localization model calls and the fusion decision of multi-model results, which effectively improves the localization accuracy and response speed under complex sound fields such as background noise, reverberation, and multi-source interference. It solves the problems of low localization accuracy, slow response, and poor interaction naturalness caused by the use of a single fixed model in the existing technology.
[0012] In summary, the technical solution of this application realizes full-process adaptive optimization of digital human sound source localization from environmental perception and complexity assessment to dynamic multi-model fusion, effectively improving the accuracy of sound source localization and the naturalness of interaction of digital humans in complex interactive environments. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 A flowchart illustrating the digital human interaction optimization method based on sound field localization analysis provided in this application embodiment; Figure 2 A schematic diagram of the structure of the digital human interaction optimization platform based on sound field localization analysis provided in the embodiments of this application.
[0015] The components represented by each number in the attached diagram are explained below: The system includes a multi-channel signal acquisition module 11, a feature extraction module 12, an environmental complexity calculation module 13, a model array construction module 14, and a dynamic fusion and interaction module 15. Detailed Implementation
[0016] This application provides a digital human interaction optimization method and platform based on sound field localization analysis, which is used to solve the technical problems in the prior art where digital human sound source localization relies on a single fixed model and cannot adapt to interactive environments of different complexities, resulting in low localization accuracy, slow response, and poor interaction naturalness under complex sound fields such as background noise, reverberation, and multi-source interference.
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] Example 1, as Figure 1 As shown, this application provides a digital human interaction optimization method based on sound field localization analysis, the method comprising the following steps: S100: Acquires multi-channel sound signals through a digital human's microphone array and captures environmental images through a visual sensor; In the embodiments of this application, in the digital human voice source localization interaction scenario, it is necessary to solve the problem that the existing technology relies solely on a single microphone array to collect audio signals and cannot simultaneously acquire environmental visual context information, so as to provide a data foundation for subsequent multimodal fusion analysis by simultaneously acquiring auditory and visual data and improve the ability of voice source localization to perceive the environment. Specifically, relying solely on audio signals is insufficient to perceive the user's actual location, room geometry, wall reflections, and other spatial features. Under background noise, reverberation, or multi-source interference, it is impossible to distinguish between the real user and the noise source, resulting in positioning direction deviation; at the same time, the lack of visual information makes it impossible to determine whether the user is facing the digital human or whether there is occlusion, affecting the interaction quality.
[0019] Step S100 in the method provided in this application embodiment includes: The microphone array of the digital human is configured as a circular array, and each microphone in the microphone array independently collects sound signals from the environment and converts them into digital signals to obtain multi-channel sound signals. The digital human is equipped with a visual sensor that acquires color images at the same sampling frequency as the microphone array, and these color images are used as environmental images. A detailed explanation follows: In this embodiment, a circular array refers to an array topology where microphone elements are evenly distributed on the same circumference. Compared to linear arrays, circular arrays offer 360-degree blind-spot-free azimuth coverage and consistent localization performance for sound sources from all directions, making them particularly suitable for applications requiring omnidirectional perception in digital humans.
[0020] A multi-channel audio signal refers to a microphone array where each microphone independently captures ambient sound and converts it into a digital signal. The digital signals output by all microphones together constitute a multi-channel audio signal. Each channel corresponds to the time-domain waveform of one microphone, and the relative delay and amplitude differences between channels contain the directional information of the sound source.
[0021] The same sampling frequency means that the image acquisition frame rate of the visual sensor and the audio sampling rate of the microphone array are synchronized in time. Specifically, while acquiring each frame of color image, the microphone array acquires multi-channel sound signals within the corresponding time window, thereby ensuring that the auditory and visual data are strictly aligned on the time axis, which facilitates subsequent multimodal feature fusion.
[0022] Environmental images refer to color visual records of the scene in which a digital human exists, including spatial structural information such as the user's face, body posture, interior walls, and furniture layout. These images are used to extract visual feature vectors, such as user distance and wall distance, to help assess environmental complexity.
[0023] In this step, the microphone array is first arranged in a circular topology, with each microphone evenly spaced on the circumference. Each microphone independently collects sound waves from the environment and converts them into analog voltage signals. These analog signals are then processed by an analog-to-digital converter (ADC). Based on the Nyquist sampling theorem, the continuous signal is sampled at equal intervals and its amplitude is quantized. The sampling frequency is at least twice the highest frequency of the signal to ensure that the digital signal can reconstruct the original analog signal without distortion. This converts the time- and amplitude-continuous analog signal into a time- and amplitude-discrete digital signal. The digital signal output by each microphone is a series of numerical values arranged in chronological order. The digital signals from all channels together constitute a multi-channel digital signal, which serves as the input data for subsequent processing.
[0024] Furthermore, the visual sensor acquires color images at the same sampling rate as the microphone array. Specifically, while acquiring each frame of color image, the microphone array simultaneously acquires sound data within the corresponding time window, ensuring strict temporal alignment between auditory and visual data. The acquired color images constitute the environmental images, which are used for subsequent visual feature extraction.
[0025] For example, taking a virtual anchor digital human as an example, its microphone array is configured as a circular array with a radius of 6cm, evenly distributing 6 MEMS microphones. Each microphone independently collects ambient sound at a sampling rate of 48kHz and a precision of 16 bits, converting it into a digital signal to form a 6-channel audio signal. Simultaneously, the RGB vision sensor equipped on the digital human's head collects 1920×1080 pixel color images at a frame rate of 48fps as the ambient image, achieving strict temporal alignment between audio and video data. With this configuration, the microphone array can achieve blind-spot-free sound source perception in a 360° horizontal azimuth angle, and the vision sensor can capture the user's face and room layout information within a 90° field of view in front.
[0026] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0027] In summary, this step, by configuring the microphone array as a circular array to acquire multi-channel sound signals and simultaneously acquiring environmental images at the same sampling frequency, achieves spatiotemporally aligned acquisition of auditory and visual information. This overcomes the shortcomings of existing technologies that rely solely on a single audio modality and lack environmental visual context. The circular array configuration ensures 360° all-around sound source perception capability without blind spots, providing a high-quality, synchronized, and aligned data foundation for subsequent multimodal fusion analysis. This solves the problem of sound source localization direction deviation caused by the inability to perceive spatial features such as user location and room layout.
[0028] S200: Extract acoustic feature vectors from the multi-channel sound signals and extract visual feature vectors from the environmental images; In this embodiment of the application, in the scenario where multi-channel audio signals and environmental images have been acquired, in order to quantify the acoustic and spatial characteristics of the interactive environment, it is necessary to extract acoustic feature vectors reflecting signal-to-noise ratio, reverberation time, etc. from the multi-channel audio signals, and extract visual feature vectors such as user distance and wall distance from the environmental images. This solves the problem that the existing technology only extracts shallow audio features, cannot quantify background noise and reverberation intensity, and does not extract geometric features such as user distance and wall reflection, making it difficult to assess the complexity of the environment.
[0029] Step S200 in the method provided in this application embodiment includes: The multi-channel audio signal is subjected to frame segmentation and windowing processing to obtain a time-domain frame signal; Perform the following steps for each time-domain frame signal: A speech activity detection algorithm is used to identify frames without speech activity, the average power of the frames without speech activity is calculated, and the calculated average power is used as the background noise power. Identify frames containing speech, calculate the average power of the frames containing speech, and use the calculated average power as the speech signal power; The logarithm of the ratio of the speech signal power to the background noise power is taken to obtain the signal-to-noise ratio estimate, and the signal-to-noise ratio estimate is used as the first acoustic feature. Calculate the reverberation time estimate and use the reverberation time estimate as a second acoustic feature; The first acoustic feature and the second acoustic feature of each time-domain frame signal are concatenated to form an acoustic feature vector. A detailed explanation follows: In this embodiment, frame segmentation and windowing refers to dividing a continuous multi-channel audio signal into multiple short time segments according to a fixed time length, and multiplying each frame by a window function to reduce abrupt changes in the frame boundary signal, thereby obtaining a time-domain frame signal as the basic unit for subsequent analysis.
[0030] Speech activity detection algorithms are algorithms used to distinguish whether an audio frame contains speech components. They determine whether a frame contains speech or not based on features such as energy and spectrum.
[0031] Background noise power refers to the power estimate of the ambient background noise obtained by calculating the average power of all frames without speech activity.
[0032] Speech signal power refers to the average power estimate of the effective speech signal obtained by calculating the average power of all frames containing speech.
[0033] The signal-to-noise ratio (SNR) estimate is the first acoustic feature obtained by taking the logarithm of the ratio of the speech signal power to the background noise power, which reflects the degree of noise interference in the environment.
[0034] Reverberation time estimate is a parameter that describes how fast sound decays in an enclosed space. As a secondary acoustic feature, it reflects the reverberation intensity of the environment.
[0035] Acoustic feature vectors are vectors formed by concatenating the signal-to-noise ratio estimate and reverberation time estimate of each frame, and are used to quantify the acoustic properties of the current interactive environment.
[0036] In this step, the acquired multi-channel audio signal is first processed by framing and windowing. The continuous signal is divided into multiple short time frames and multiplied by a window function to suppress spectral leakage, thus obtaining the time-domain frame signal.
[0037] Furthermore, for each time-domain frame signal, the following processing is performed: A speech activity detection algorithm is used to identify whether the current frame contains speech components. For frames determined to have no speech activity, the average power of that frame is calculated, and the average power of all frames without speech activity is statistically analyzed to obtain the background noise power. For frames determined to contain speech, the average power of that frame is calculated, and the average power of all speech frames is statistically analyzed to obtain the speech signal power.
[0038] Furthermore, the logarithm of the ratio of speech signal power to background noise power is taken to obtain the signal-to-noise ratio estimate, which is used as the first acoustic feature. Simultaneously, the reverberation time estimate is calculated as the second acoustic feature.
[0039] Finally, the first and second acoustic features corresponding to each time-domain frame signal are concatenated to form the acoustic feature vector of that frame. This vector quantifies the noise level and reverberation intensity of the current interactive environment and is used for subsequent calculation of the environmental complexity coefficient.
[0040] In the method provided in this application embodiment, calculating the reverberation time estimate and using the reverberation time estimate as a second acoustic feature includes: The digital human is controlled to emit a preset detection sound signal through a built-in speaker, wherein the detection sound signal is a swept frequency signal or a maximum length sequence signal; The environmental impulse response is obtained by using the microphone array to collect the reflection and attenuation signals formed after the detection sound signal propagates in the environment; The energy decay curve is obtained by integrating the energy of the environmental impulse response. The length of the time interval during which the energy decay curve decreases from -5 dB to -35 dB is calculated, and this time interval length is multiplied by 2 to obtain the estimated reverberation time. A detailed explanation follows: In this embodiment, the probe sound signal refers to a specific test sound actively emitted by the digital human through its built-in speaker, such as a sweep frequency signal or a maximum length sequence signal, which is used to stimulate the ambient acoustic response.
[0041] A swept frequency signal is a sinusoidal signal whose frequency changes continuously from low to high frequency. Its energy distribution is uniform and it is suitable for measuring the frequency response and impulse response of a system.
[0042] Maximum length sequence signal refers to a pseudo-random binary sequence with white noise characteristics. The impulse response of the environment can be extracted from it through autocorrelation analysis. It has the characteristics of strong noise resistance and high measurement efficiency.
[0043] The environmental impulse response refers to the received signal formed after the sound signal collected by the microphone array is reflected, reverberated, and attenuated by the environment. It reflects the time-domain characteristics of the entire acoustic path from the sound source to the receiving point.
[0044] Energy integral refers to the cumulative integration of the squared value of the environmental impulse response from time zero to the present, resulting in an energy accumulation curve that increases over time.
[0045] The energy decay curve refers to the inverse process of the energy integral result, or the inverse integration of the square of the impulse response, representing the process of sound energy decaying in the environment over time.
[0046] In this step, the digital human is first controlled to actively emit a preset detection sound signal through its built-in speaker. This signal can be a swept frequency signal or a maximum length sequence signal to excite the acoustic response of the environment. The swept frequency signal can cover a wide frequency range, while the maximum length sequence signal has noise interference resistance.
[0047] Furthermore, a microphone array is used to collect the reflection and attenuation signals formed after the sound signal propagates in the environment, thus obtaining the environmental impulse response. This impulse response contains the complete path information of the sound wave from the speaker, through reflection from surfaces such as walls, and finally to the microphone.
[0048] Finally, the environmental impulse response is processed by energy integration to obtain an energy decay curve, which describes the gradual decay of sound energy in the environment over time. On the energy decay curve, the length of the time interval from -5 dB to -35 dB is identified; the decay within this interval is approximately linear. Multiplying this time interval by 2 yields the time required for decay from -5 dB to -65 dB, which is used as an estimate of the reverberation time. This estimate characterizes the reverberation intensity of the current environment as a second acoustic feature.
[0049] For example, taking a virtual anchor scenario in a live streaming room as an example, the microphone array collects 6-channel audio signals with a sampling rate of 48kHz. First, frame segmentation and windowing processing are performed, with a frame length of 32ms and a frame shift of 16ms, using a Hamming window. Voice activity detection identifies the first 0.5 seconds as a frame without voice, and the average power is calculated to give a background noise power of 1.2 × [missing value]. The following 1.2 seconds contain user voice frames, and the average power of the voice signal is calculated to be 3.8 × The logarithm of the signal-to-noise ratio (SNR) is estimated at 15.0 dB, which is used as the first acoustic feature. For reverberation time estimation, the built-in speaker of the digital human emits a sweeping signal of 200 Hz to 8 kHz, and the microphone array collects the ambient impulse response. The energy decay curve is obtained by integrating the impulse response energy, and the time interval from -5 dB to -35 dB is calculated to be 0.12 seconds. Multiplying this by 2 gives a reverberation time estimate of 0.24 seconds, which is used as the second acoustic feature. The first and second acoustic features of this frame are concatenated to obtain a two-dimensional acoustic feature vector [15.0, 0.24].
[0050] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0051] Step S200 in the method provided in this application embodiment further includes: The environmental image is preprocessed by denoising and size normalization to obtain a preprocessed environmental image. Depth information is obtained from the preprocessed environmental image using a monocular depth estimation network, and combined with a face detection algorithm, the polar coordinate distance of the user relative to the microphone array is calculated, and the calculated polar coordinate distance is used as the first visual feature. The wall area is extracted from the preprocessed environmental image using a semantic segmentation network, the distance from the microphone array to the nearest wall is calculated, and the calculated distance is used as a second visual feature. The first visual feature and the second visual feature are concatenated to form a visual feature vector; Specifically, a monocular depth estimation network is used to obtain depth information from the preprocessed environmental image, and a face detection algorithm is combined to calculate the polar coordinate distance of the user relative to the microphone array, including: The user's facial region is located from the environmental image using a face detection algorithm, and a facial bounding box is obtained. The monocular depth estimation network is used to predict the depth value corresponding to the facial bounding box. The predicted depth value is used as the user distance, and the user distance is used as the polar coordinate distance. A detailed explanation follows: In this embodiment, noise reduction and size normalization refer to filtering out noise from the environmental image and scaling it uniformly to a fixed resolution to eliminate interference and size differences during the acquisition process.
[0052] Monocular depth estimation network refers to a type of deep learning network that takes a single color image as input and outputs the depth value of each pixel or target region.
[0053] Face detection algorithms refer to computer vision algorithms that locate the user's facial region from an image and output a bounding box.
[0054] Polar coordinate distance refers to the distance between the user and the microphone array, which is given directly in this application by the depth value corresponding to the face detection box.
[0055] Semantic segmentation networks refer to deep learning networks that label the category of each pixel in an image. In this application, they are used to extract areas such as walls and floors.
[0056] The wall region refers to the set of all pixels in the semantic segmentation network output that are labeled as "wall".
[0057] The closest distance to the wall refers to the minimum Euclidean distance from the microphone array position to the corresponding three-dimensional spatial points of all wall pixels.
[0058] A visual feature vector is a vector formed by concatenating a first visual feature and a second visual feature, used to quantify the spatial geometric properties of an environment.
[0059] In this step, the environmental image is first preprocessed by denoising and size normalization to eliminate acquisition noise and unify the image size, resulting in a preprocessed environmental image.
[0060] Furthermore, a monocular depth estimation network is used to obtain depth information from the preprocessed environmental image. Specifically, the user's facial region is first located in the environmental image using a face detection algorithm, and a facial bounding box is output. Then, the bounding box region is input into the monocular depth estimation network, which predicts the depth value corresponding to the region. This depth value is used as the user distance and is expressed as a first visual feature in the form of polar coordinate distance.
[0061] Furthermore, a semantic segmentation network is used to classify the preprocessed environmental image pixel by pixel, extracting all pixels with the category label "wall". By combining depth information, each wall pixel is mapped to a 3D spatial point coordinate. The Euclidean distance from the microphone array position to the corresponding spatial point of each wall pixel is calculated, and the minimum value among all Euclidean distances is taken as the distance from the microphone array to the nearest wall, i.e., the second visual feature.
[0062] Finally, the first and second visual features are concatenated to form a visual feature vector. This vector quantifies the user's spatial position relative to the digital human and the spatial geometric constraints of the environment, and is used for subsequent calculations of the environmental complexity coefficient.
[0063] In the method provided in this application embodiment, a semantic segmentation network is used to extract wall areas from the preprocessed environmental image, the distance from the microphone array to the nearest wall is calculated, and the calculated distance is used as a second visual feature, including: The preprocessed environmental image is input into a pre-trained semantic segmentation network, which outputs a category label for each pixel, wherein the category label includes at least walls, ground, ceiling and other objects; Extract all pixels labeled as "wall" and calculate the three-dimensional spatial coordinates of each wall pixel by combining the depth information. Calculate the Euclidean distance from the position of the microphone array to the coordinates of the three-dimensional point in space corresponding to each wall pixel, and take the minimum value among all Euclidean distances as the distance from the microphone array to the nearest wall.
[0064] In this embodiment, the pre-trained semantic segmentation network refers to a deep learning model that has been trained on a large-scale labeled dataset and is able to classify each pixel in the input image and output the corresponding category label.
[0065] Category labels refer to the semantic category identifiers assigned to each pixel by the semantic segmentation network. In this application, at least four categories are included: walls, ground, ceiling, and other objects.
[0066] Three-dimensional spatial point coordinates refer to the coordinates of wall pixels in an image combined with the corresponding depth information and mapped to real three-dimensional space through a camera intrinsic parameter model.
[0067] In this step, the preprocessed environmental image is first input into a pre-trained semantic segmentation network. This network classifies each pixel in the image and outputs the corresponding category label. The category labels include at least four categories: walls, ground, ceiling, and other objects.
[0068] Furthermore, all pixels labeled "wall" are extracted from the segmentation results. For each wall pixel, the depth information corresponding to that pixel is combined with the camera intrinsic model to map the pixel coordinates and depth values to actual coordinates in 3D space, thus obtaining the 3D point coordinates corresponding to each wall pixel.
[0069] Furthermore, the Euclidean distance from the microphone array's position coordinates in 3D space to the corresponding spatial point of each wall pixel is calculated. After traversing all wall pixels, the minimum value among all Euclidean distances is taken as the distance from the microphone array to the nearest wall. This distance value is used to quantify the spatial geometric constraints of the environment, i.e., the distance between the digital human and the surrounding walls, and serves as a second visual feature input for subsequent environmental complexity calculations.
[0070] For example, taking a virtual anchor live streaming scenario, the environmental image is denoised and normalized to a resolution of 512×512. The face detection algorithm locates the user's facial bounding box as [640, 480, 160, 160]. The monocular depth estimation network predicts an average depth of 1.8 meters within this bounding box, which is used as the user's polar coordinate distance. The semantic segmentation network outputs pixel-level labels, extracting approximately 120,000 pixels from the wall area. Combining this with depth information, each wall pixel is mapped to a three-dimensional spatial coordinate. The microphone array is located at the origin (0, 0, 0), and the Euclidean distance to each wall point is calculated, with a minimum value of 0.6 meters, which is used as the second visual feature. The two are concatenated to obtain the visual feature vector [1.8, 0.6].
[0071] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0072] In summary, this step extracts the signal-to-noise ratio estimate as the first acoustic feature by performing frame-by-frame windowing, speech activity detection, and power statistics on multi-channel audio signals. It then extracts the reverberation time estimate as the second acoustic feature by actively transmitting probe signals and calculating energy attenuation curves, thus comprehensively quantifying environmental noise and reverberation intensity. Simultaneously, after preprocessing the environmental image, a monocular depth estimation network combined with face detection is used to extract the user's polar coordinate distance as the first visual feature, and a semantic segmentation network is used to extract wall regions and calculate the nearest wall distance as the second visual feature, thereby quantifying the user's spatial location and environmental geometric constraints. By concatenating these two types of feature vectors, a joint representation of the acoustic and spatial attributes of the interactive environment is achieved, solving the problems of existing technologies' inability to effectively extract multimodal environmental features and accurately assess environmental complexity.
[0073] S300: Calculate the environmental complexity coefficient based on the acoustic feature vector and the visual feature vector; In scenarios where acoustic feature vectors representing environmental acoustic properties and visual feature vectors representing spatial geometric properties have been obtained through the above steps, in order to objectively and quantitatively assess the overall complexity of the current interactive environment, it is necessary to design a method that effectively integrates the two types of heterogeneous features and maps them to the same complex metric. This would solve the technical problems in existing technologies, such as the isolated use of acoustic and visual information, the lack of a joint complex metric model, and the inability to provide a scientific basis for the adaptive adjustment of subsequent positioning strategies.
[0074] Step S300 in the method provided in this application embodiment includes: The acoustic feature vector and the visual feature vector are concatenated to obtain a multimodal feature vector; The multimodal feature vector is input into a pre-trained multimodal fusion neural network, and the environment complexity coefficient is output, wherein the value of the environment complexity coefficient ranges from 0 to 1. The training process of a multimodal fusion neural network includes: Collect multimodal feature vector samples from multiple real-world environments, and use all multimodal feature vector samples to form the training sample input set. Each multimodal feature vector sample includes an acoustic feature vector and a visual feature vector. Each multimodal feature vector sample in the training sample input set is labeled with a corresponding environment complexity coefficient label, and all environment complexity coefficient labels are used to form the training sample output set. The value range of the environment complexity coefficient label is from 0 to 1. Construct an initial multimodal fusion neural network, wherein the output layer of the initial multimodal fusion neural network adopts the Sigmoid activation function; Using the training sample input set as input and the training sample output set as supervision signals, the initial multimodal fusion neural network is subjected to supervised training until convergence is verified, resulting in a trained multimodal fusion neural network. A detailed explanation follows: Multimodal feature vectors refer to joint feature vectors formed by sequentially concatenating acoustic and visual feature vectors, which integrate perceptual information from both auditory and visual modalities.
[0075] Multimodal fusion neural networks refer to a type of deep learning model that takes multimodal feature vectors as input, performs nonlinear transformations through hidden layers, and outputs environmental complexity coefficients to achieve joint mapping of acoustic and visual features.
[0076] The environment complexity coefficient refers to a scalar value ranging from 0 to 1 in the output of a neural network, which quantifies the complexity of the current interactive environment. 0 represents the simplest environment, and 1 represents the most complex environment.
[0077] The training sample input set refers to the collection of multimodal feature vector samples collected from multiple real environments. Each sample contains an acoustic feature vector and a visual feature vector.
[0078] The training sample output set refers to the set of environmental complexity coefficient labels manually annotated for each input sample. The label values are also in the range of 0 to 1, serving as a supervision signal.
[0079] The Sigmoid activation function is a non-linear function that maps any real number to the interval (0,1), and its formula is Sigmoid(x) = (x refers to the weighted sum of the output layer neurons before activation), used in the output layer of the neural network to ensure that the range of output values is controllable.
[0080] Supervised training refers to the learning process that uses labeled training data and iteratively updates the network weights through backpropagation to make the network output approximate the real labels.
[0081] Validation convergence refers to periodically evaluating the model's loss on the validation set during training. Training is stopped when the loss no longer decreases significantly or reaches a preset number of rounds, ensuring that the model has generalization ability.
[0082] In this step, the acoustic feature vector obtained in step S200 is first concatenated with the visual feature vector to form a multimodal feature vector, which integrates perceptual information from both auditory and visual modalities.
[0083] Furthermore, the multimodal feature vectors are input into a pre-trained multimodal fusion neural network. After nonlinear transformation through the hidden layers, the network outputs a scalar value ranging from 0 to 1, which is the environment complexity coefficient.
[0084] Furthermore, the training process of this multimodal fusion neural network is as follows: First, multiple multimodal feature vector samples from real-world environments are collected. Each sample contains an acoustic feature vector and a visual feature vector, forming the training sample input set. Simultaneously, each sample is manually labeled with its corresponding environmental complexity coefficient, forming the training sample output set. Then, an initial multimodal fusion neural network is constructed, with its output layer employing the Sigmoid activation function to ensure that the output values are compressed to the 0-1 range. Finally, using the training sample input set as input and the training sample output set as supervision signals, supervised training is performed on the network. The network weights are iteratively updated through backpropagation until the loss on the validation set converges, resulting in the trained multimodal fusion neural network.
[0085] Finally, after training, the network can be used for real-time inference: input the multimodal feature vector of the current frame, output the corresponding environmental complexity coefficient, which is used to adaptively adjust the number of calls to the sound source localization sub-model.
[0086] For example, taking a virtual anchor live streaming scenario, 5000 multimodal feature vector samples from real-world environments are collected. Each sample is a four-dimensional input vector concatenated from two-dimensional acoustic and two-dimensional visual feature vectors. An environmental complexity coefficient between 0 and 1 is manually labeled for each sample. A multimodal fusion neural network is constructed: an input layer with 4 nodes; three hidden layers (32 nodes in the first layer, 16 nodes in the second layer, and 8 nodes in the third layer), all using ReLU activation; and an output layer with 1 node using Sigmoid activation. Training parameters include: mean squared error loss, Adam optimizer, learning rate of 0.001, batch size of 64, and 500 training epochs. The loss is evaluated on a validation set every 50 epochs, and training stops early when the loss no longer decreases after 10 consecutive validation epochs. The resulting multimodal fusion neural network is then trained.
[0087] For example, taking a virtual anchor live streaming scenario, the acoustic feature vector is [15.0, 0.24], where 15.0 is the estimated signal-to-noise ratio of 15 dB and 0.24 is the estimated reverberation time of 0.24 seconds; the visual feature vector is [1.8, 0.6], where 1.8 is the user distance of 1.8 meters and 0.6 is the nearest wall distance of 0.6 meters. These two sets of features are concatenated to obtain a four-dimensional multimodal feature vector [15.0, 0.24, 1.8, 0.6]. This vector is input into a trained multimodal fusion neural network. After nonlinear transformation in the hidden layers, the output layer calculates the environment complexity coefficient using the Sigmoid function, for example, 0.67. This coefficient indicates that the current virtual anchor live streaming environment is of medium to high complexity. The number of sound source localization sub-models to be called will be dynamically determined based on this coefficient.
[0088] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0089] In summary, this step achieves an objective quantitative assessment of the complexity of the interactive environment by concatenating acoustic and visual feature vectors into a multimodal feature vector and inputting it into a pre-trained multimodal fusion neural network. It outputs an environment complexity coefficient between 0 and 1, solving the technical problems of existing technologies that cannot fuse acoustic and visual information, lack a joint complexity quantification model, and are difficult to adaptively adjust subsequent localization strategies.
[0090] S400: Construct a sound source localization model array, wherein the sound source localization model array contains multiple sound source localization sub-models; In this application embodiment, in scenarios where the ability to quantify environmental complexity is already available and adaptive sound source localization is required, in order to overcome the shortcomings of a single sound source localization model in terms of poor generalization ability and unstable localization accuracy in a variable interactive environment, it is necessary to pre-construct a model array containing multiple sound source localization sub-models to solve the problem that the existing technology uses a single fixed model that cannot adapt to environments of different complexities, resulting in drastic fluctuations in localization performance as the environment changes.
[0091] Step S400 in the method provided in this application embodiment includes: Collect multiple multi-channel sound signal samples under different environmental conditions. Each multi-channel sound signal sample corresponds to a known sound source direction ground value. All multi-channel sound signal samples and their corresponding sound source direction ground values constitute a training sample set. The training sample set is divided into K mutually exclusive subsets using the K-fold cross-validation method, where K is a preset positive integer; For each fold, select one subset as the validation set and the remaining K-1 subsets as the training set, resulting in a total of K training-validation subset pairs; Based on the K sets of training-validation subsets, K sound source localization sub-models are trained respectively, wherein the sound source localization sub-models adopt the same neural network structure; The K trained sound source localization sub-models are combined to obtain a sound source localization model array. A detailed explanation follows: In this embodiment, the true sound source direction refers to the real sound source azimuth angle corresponding to each multi-channel sound signal sample, which serves as a supervision label for model training.
[0092] K-fold cross-validation involves randomly dividing the training sample set into K mutually exclusive subsets of equal size, taking one subset as the validation set and the remaining K-1 subsets as the training set, repeating this process K times. This method is used to evaluate the model's generalization ability and make full use of limited data.
[0093] Mutually exclusive subsets are K subsets that have no overlapping samples, and each sample belongs to only one subset.
[0094] The training-validation subset refers to the combination formed by each compromise, for a total of K groups.
[0095] A sound source localization sub-model refers to an independent model trained using the same one-dimensional convolutional neural network structure. For example, each sub-model consists of an input layer, six convolutional layers, a global average pooling layer, and two fully connected layers. It takes a multi-channel sound signal as input and outputs an estimated sound source direction.
[0096] A sound source localization model array refers to a set of models that combine K independently trained sound source localization sub-models. Subsequently, some of these sub-models are dynamically called for fusion localization based on the complexity of the environment.
[0097] In this step, we first collect multi-channel sound signal samples under different environmental conditions, with each sample corresponding to a known ground truth value for the sound source direction. All samples and their ground truth values are then combined to form a training sample set.
[0098] Furthermore, the training sample set is divided into K mutually exclusive subsets using the K-fold cross-validation method, where K is a preset positive integer. For each fold, one subset is selected as the validation set, and the remaining K-1 subsets are selected as the training set, resulting in a total of K training-validation subset pairs.
[0099] Furthermore, based on these K training-validation subset pairs, K sound source localization sub-models are trained respectively. Each sound source localization sub-model uses the same neural network structure, with multi-channel sound signals as input and sound source direction estimates as output. During training, supervised learning is performed using training set data as input and corresponding ground truth values as supervision signals, and performance is evaluated on the validation set.
[0100] Finally, the K trained sound source localization sub-models are combined to obtain a sound source localization model array. The sub-models in this array have differentiated generalization capabilities due to different training data partitioning. Subsequently, some sub-models can be dynamically called for fusion localization based on environmental complexity to improve overall robustness and accuracy.
[0101] For example, taking a virtual anchor live streaming scenario, 5000 multi-channel audio signal samples were collected. Each sample is a 6-channel, 2-second audio clip with a sampling rate of 48 kHz. The samples cover 10 different environmental conditions, such as a quiet conference room, a live streaming room with background music, a studio with strong reverberation, and a multi-person conversation scene. Each sample corresponds to a known true value of the sound source direction, with azimuth angles ranging from 0 degrees to 360 degrees, marked at 1-degree intervals. Using 5-fold cross-validation, the 5000 samples were randomly divided into 5 mutually exclusive subsets, with 1000 samples in each subset. One subset was selected sequentially as the validation set, and the remaining 4 subsets were used as the training set, resulting in 5 training-validation subset pairs.
[0102] Furthermore, a sound source localization sub-model was constructed: the neural network structure adopted a one-dimensional convolutional network, with each convolutional kernel having a size of 3 and the number of channels being 16, 32, 64, 128, 128, and 256 respectively, followed by two fully connected layers, the first layer having 128 nodes and the second layer having 1 node. The output is the predicted azimuth angle, ranging from 0 to 360 degrees. Training parameters: the loss function was mean absolute error, the optimizer was Adam, the learning rate was 0.001, the batch size was 32, and the training run was 200 epochs per round. Five sub-models were trained based on five training-validation subsets, with each sub-model having a mean absolute error of less than 3 degrees on its respective validation set. Finally, the five trained sound source localization sub-models were combined to form a sound source localization model array.
[0103] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0104] In summary, this step, by collecting multi-channel sound signal samples and their true values of sound source directions under multiple environmental conditions, and using K-fold cross-validation to divide the training and validation sets, trains K sound source localization sub-models with the same network structure and combines them into a model array. This solves the technical problems of poor generalization ability and unstable localization accuracy of single sound source localization models in variable interactive environments, and provides a model foundation for subsequent dynamic calling of multi-model fusion localization based on environmental complexity.
[0105] S500: Based on the environmental complexity coefficient, determine the number of sound source localization sub-models to be invoked, select the number of sound source localization sub-models from the sound source localization model array, input the multi-channel sound signal to each selected sound source localization sub-model respectively, obtain multiple sound source direction estimation results, fuse the multiple sound source direction estimation results to obtain the final sound source direction, and drive the digital human to interact towards the final sound source direction; In this embodiment of the application, in the scenario where the environmental complexity coefficient has been obtained and a sound source localization model array has been constructed, in order to ensure both positioning accuracy and computational efficiency, it is necessary to adaptively determine the number of sub-models to be called based on the complexity coefficient, and effectively fuse the estimation results of multiple sub-models to obtain the final sound source direction. This solves the problem that the existing technology uses a single fixed model or simple average fusion, which leads to large positioning deviations in complex environments and high computational redundancy in simple environments.
[0106] Step S500 in the method provided in this application embodiment includes: Multiply the environmental complexity coefficient by the total number K of the sound source localization sub-models in the sound source localization model array, and round the product up to obtain the number M of sub-models that need to be called, where the value of M ranges from 1 to K. M sound source localization sub-models are randomly selected from the sound source localization model array as the called sound source localization sub-models; The multi-channel sound signals are input into each called sound source localization sub-model to obtain M sound source direction estimation results, and each sound source direction estimation result is represented as a unit vector; Calculate the arithmetic mean of all unit vectors, and take the direction of the vector of the arithmetic mean as the final sound source direction; Based on the direction of the final sound source, head rotation control commands and body rotation control commands are generated for the digital human, causing the digital human to face the direction of the final sound source, and simultaneously adjusting the digital human's voice output volume and interactive interface layout. A detailed explanation follows: In this embodiment, the final sound source direction refers to the direction angle of the synthesized vector obtained by taking the arithmetic mean of multiple unit vectors, which is used as the optimal sound source orientation after multi-model fusion.
[0107] The layout of the interactive interface refers to the arrangement of information elements on the digital human display screen, and the visual focus area is adjusted according to the direction of the sound source.
[0108] In this step, the number of sound source localization sub-models to be called is first determined based on the environmental complexity coefficient calculated in the previous steps. Specifically, the environmental complexity coefficient is multiplied by the total number of sub-models K in the sound source localization model array, and the product is rounded up to obtain the number of calls M, where M ranges from 1 to K.
[0109] Further, M sound source localization sub-models are randomly selected from the sound source localization model array constructed in the aforementioned steps as the called sub-models. The multi-channel sound signals acquired in step S100 are input to these M sub-models respectively, and each sub-model independently outputs a sound source direction estimation result. Each angle estimation result is converted into a unit vector, that is, the direction is represented on a unit circle.
[0110] Furthermore, the arithmetic mean of all M unit vectors is calculated to obtain a composite vector. The direction of this composite vector is taken as the final sound source direction. By using vector averaging instead of angle averaging, the problem of angular periodicity boundaries can be avoided.
[0111] Finally, head rotation control commands and body rotation control commands are generated based on the final sound source direction. Head commands control the digital human's neck joints, ensuring the face is precisely oriented towards the sound source; body commands control the digital human's waist or chassis, causing the entire torso to turn towards the sound source. Simultaneously, the digital human's voice output volume and interactive interface layout are adjusted to enhance the naturalness of the interaction and the user experience.
[0112] For example, continuing from the previously calculated environmental complexity coefficient of 0.67, the total number of sub-models K in the sound source localization model array is 5. Multiplying 0.67 by 5 gives 3.35, which is rounded up to obtain the number of sub-models to be called, M=4. Four sub-models are randomly selected from the five, for example, sub-models 1, 2, 4, and 5. The six-channel audio signals collected by the virtual anchor microphone array are input into these four sub-models respectively, resulting in four sound source direction estimation results: sub-model 1 outputs 35°, sub-model 2 outputs 38°, sub-model 4 outputs 32°, and sub-model 5 outputs 36°. Each angle is converted into a unit vector: (cos35°, sin35°), (cos38°, sin38°), (cos32°, sin32°), and (cos36°, sin36°). Calculate the arithmetic mean of the four unit vectors to obtain the composite vector (0.813, 0.582), with a direction angle of arctan(0.582 / 0.813) = 35.6°. Use this angle as the final sound source direction. Generate a head rotation control command to turn the virtual anchor's head 35.6° to the right, and simultaneously generate a body rotation control command to turn the entire body 35.6°. Simultaneously adjust the voice output volume to 1.2 times the default volume, and shift the subtitles and emoticon areas of the interactive interface to the right side of the screen to match the user's voice direction.
[0113] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0114] In summary, this step dynamically determines the number of sub-models to be called by multiplying the environmental complexity coefficient by the total number of models in the array and rounding up. It then randomly selects a corresponding number of sub-models from the array to process the sound signals. After converting the multiple direction estimation results into unit vectors, it calculates the arithmetic mean to obtain the final sound source direction. Based on this, it generates head and body rotation control commands and simultaneously adjusts the voice output volume and the layout of the interactive interface. This achieves adaptive matching of the number and complexity of models called and fusion decision-making of multi-model results. It solves the technical problems of existing technologies that use a single fixed model, resulting in large positioning deviations in complex environments, high computational redundancy in simple environments, and unnatural interactive responses.
[0115] In summary, the embodiments of this application have at least the following technical effects: This embodiment simultaneously acquires auditory and visual signals, extracts acoustic and visual features, and fuses them to calculate environmental complexity coefficients. It then uses K-fold cross-validation to train multiple sound source localization sub-models to form a model array. The number of sub-models is adaptively called based on the complexity coefficients, and the estimation results from multiple models are fused into the final sound source direction, driving the digital human to turn and simultaneously adjusting voice volume and interface layout. This solves the technical problems of a single fixed model being unable to adapt to environments of varying complexity, low localization accuracy, lag in response, and poor naturalness of interaction, significantly improving the localization robustness and interactive experience in complex sound fields.
[0116] Example 2, as shown in the appendix Figure 2 As shown, based on the inventive concept of the digital human interaction optimization method based on sound field localization analysis provided in Embodiment 1, this application also provides a digital human interaction optimization platform based on sound field localization analysis, specifically including: The multi-channel signal acquisition module 11 is used to acquire multi-channel sound signals through the microphone array of the digital human and to acquire environmental images through a visual sensor. Feature extraction module 12 is used to extract acoustic feature vectors from the multi-channel sound signal and visual feature vectors from the environmental image; The environmental complexity calculation module 13 is used to calculate the environmental complexity coefficient based on the acoustic feature vector and the visual feature vector; The model array construction module 14 is used to construct a sound source localization model array, which includes multiple sound source localization sub-models. The dynamic fusion and interaction module 15 is used to determine the number of sound source localization sub-models to be called according to the environmental complexity coefficient, select the number of sound source localization sub-models from the sound source localization model array, input the multi-channel sound signal to each selected sound source localization sub-model respectively, obtain multiple sound source direction estimation results, fuse the multiple sound source direction estimation results to obtain the final sound source direction, and drive the digital human to interact towards the final sound source direction.
[0117] In one embodiment, the multi-channel signal acquisition module 11 is further configured to: configure the microphone array of the digital human as a circular array, wherein each microphone in the microphone array independently acquires sound signals in the environment and converts them into digital signals to obtain multi-channel sound signals; The digital human is equipped with a visual sensor that acquires color images at the same sampling frequency as the microphone array, and these color images are used as environmental images.
[0118] In one embodiment, the feature extraction module 12 is further configured to: perform framing and windowing processing on the multi-channel audio signal to obtain a time-domain frame signal; Perform the following steps for each time-domain frame signal: A speech activity detection algorithm is used to identify frames without speech activity, the average power of the frames without speech activity is calculated, and the calculated average power is used as the background noise power. Identify frames containing speech, calculate the average power of the frames containing speech, and use the calculated average power as the speech signal power; The logarithm of the ratio of the speech signal power to the background noise power is taken to obtain the signal-to-noise ratio estimate, and the signal-to-noise ratio estimate is used as the first acoustic feature. Calculate the reverberation time estimate and use the reverberation time estimate as a second acoustic feature; The first acoustic feature and the second acoustic feature of each time-domain frame signal are concatenated to form an acoustic feature vector.
[0119] Furthermore, the feature extraction module 12 also includes: controlling the digital human to emit a preset detection sound signal through a built-in speaker, wherein the detection sound signal is a frequency sweep signal or a maximum length sequence signal; The environmental impulse response is obtained by using the microphone array to collect the reflection and attenuation signals formed after the detection sound signal propagates in the environment; The energy decay curve is obtained by integrating the energy of the environmental impulse response. Calculate the length of the time interval during which the energy decay curve drops from -5 dB to -35 dB, and multiply the length of the time interval by 2 to obtain the estimated reverberation time.
[0120] The feature extraction module 12 further includes: performing noise reduction and size normalization preprocessing on the environmental image to obtain a preprocessed environmental image; Depth information is obtained from the preprocessed environmental image using a monocular depth estimation network, and combined with a face detection algorithm, the polar coordinate distance of the user relative to the microphone array is calculated, and the calculated polar coordinate distance is used as the first visual feature. The wall area is extracted from the preprocessed environmental image using a semantic segmentation network, the distance from the microphone array to the nearest wall is calculated, and the calculated distance is used as a second visual feature. The first visual feature and the second visual feature are concatenated to form a visual feature vector; Specifically, a monocular depth estimation network is used to obtain depth information from the preprocessed environmental image, and a face detection algorithm is combined to calculate the polar coordinate distance of the user relative to the microphone array, including: The user's facial region is located from the environmental image using a face detection algorithm, and a facial bounding box is obtained. The monocular depth estimation network is used to predict the depth value corresponding to the facial bounding box. The predicted depth value is used as the user distance, and the user distance is used as the polar coordinate distance.
[0121] Furthermore, the feature extraction module 12 also includes: inputting the preprocessed environmental image into a pre-trained semantic segmentation network and outputting a category label for each pixel, wherein the category label includes at least walls, ground, ceiling and other objects; Extract all pixels labeled as "wall" and calculate the three-dimensional spatial coordinates of each wall pixel by combining the depth information. Calculate the Euclidean distance from the position of the microphone array to the coordinates of the three-dimensional point in space corresponding to each wall pixel, and take the minimum value among all Euclidean distances as the distance from the microphone array to the nearest wall.
[0122] In one embodiment, the environmental complexity calculation module 13 is further configured to: concatenate the acoustic feature vector and the visual feature vector to obtain a multimodal feature vector; The multimodal feature vector is input into a pre-trained multimodal fusion neural network, and the environment complexity coefficient is output, wherein the value of the environment complexity coefficient ranges from 0 to 1. The training process of a multimodal fusion neural network includes: Collect multimodal feature vector samples from multiple real-world environments, and use all multimodal feature vector samples to form the training sample input set. Each multimodal feature vector sample includes an acoustic feature vector and a visual feature vector. Each multimodal feature vector sample in the training sample input set is labeled with a corresponding environment complexity coefficient label, and all environment complexity coefficient labels are used to form the training sample output set. The value range of the environment complexity coefficient label is from 0 to 1. Construct an initial multimodal fusion neural network, wherein the output layer of the initial multimodal fusion neural network adopts the Sigmoid activation function; Using the training sample input set as input and the training sample output set as supervision signal, supervised training is performed on the initial multimodal fusion neural network until convergence is verified, thus obtaining the trained multimodal fusion neural network.
[0123] In one embodiment, the model array construction module 14 is further configured to: collect multiple multi-channel sound signal samples under different environmental conditions, each multi-channel sound signal sample corresponding to a known sound source direction true value, and construct a training sample set by all multi-channel sound signal samples and their corresponding sound source direction true values. The training sample set is divided into K mutually exclusive subsets using the K-fold cross-validation method, where K is a preset positive integer; For each fold, select one subset as the validation set and the remaining K-1 subsets as the training set, resulting in a total of K training-validation subset pairs; Based on the K sets of training-validation subsets, K sound source localization sub-models are trained respectively, wherein the sound source localization sub-models adopt the same neural network structure; The K sound source localization sub-models obtained from training are combined to obtain a sound source localization model array.
[0124] In one embodiment, the dynamic fusion and interaction module 15 is further configured to: multiply the environmental complexity coefficient by the total number K of the sound source localization sub-models in the sound source localization model array, and round up the product to obtain the number M of sub-models to be called, wherein the value of M ranges from 1 to K. M sound source localization sub-models are randomly selected from the sound source localization model array as the called sound source localization sub-models; The multi-channel sound signals are input into each called sound source localization sub-model to obtain M sound source direction estimation results, and each sound source direction estimation result is represented as a unit vector; Calculate the arithmetic mean of all unit vectors, and take the direction of the vector of the arithmetic mean as the final sound source direction; Based on the direction of the final sound source, head rotation control commands and body rotation control commands are generated for the digital human to face the direction of the final sound source, and the voice output volume and interactive interface layout of the digital human are adjusted synchronously.
[0125] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. Additionally, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are possible or may be advantageous.
Claims
1. A digital human interaction optimization method based on sound field localization analysis, characterized in that, The method includes: Multi-channel sound signals are acquired through a digital human's microphone array, and environmental images are acquired through a visual sensor; Acoustic feature vectors are extracted from the multi-channel sound signals, and visual feature vectors are extracted from the environmental images; Calculate the environmental complexity coefficient based on the acoustic feature vector and the visual feature vector; Construct a sound source localization model array, wherein the sound source localization model array contains multiple sound source localization sub-models; Based on the environmental complexity coefficient, the number of sound source localization sub-models to be invoked is determined, the number of sound source localization sub-models is selected from the sound source localization model array, the multi-channel sound signals are input to each selected sound source localization sub-model, multiple sound source direction estimation results are obtained, the multiple sound source direction estimation results are fused to obtain the final sound source direction, and the digital human is driven to interact with the final sound source direction.
2. The digital human interaction optimization method based on sound field localization analysis according to claim 1, characterized in that, Multi-channel sound signals are acquired through a microphone array of a digital human, and environmental images are acquired through a visual sensor, including: The microphone array of the digital human is configured as a circular array, and each microphone in the microphone array independently collects sound signals from the environment and converts them into digital signals to obtain multi-channel sound signals. The digital human is equipped with a visual sensor that acquires color images at the same sampling frequency as the microphone array, and these color images are used as environmental images.
3. The digital human interaction optimization method based on sound field localization analysis according to claim 1, characterized in that, Extracting acoustic feature vectors from the multi-channel audio signal includes: The multi-channel audio signal is subjected to frame segmentation and windowing processing to obtain a time-domain frame signal; Perform the following steps for each time-domain frame signal: A speech activity detection algorithm is used to identify frames without speech activity, the average power of the frames without speech activity is calculated, and the calculated average power is used as the background noise power. Identify frames containing speech, calculate the average power of the frames containing speech, and use the calculated average power as the speech signal power; The logarithm of the ratio of the speech signal power to the background noise power is taken to obtain the signal-to-noise ratio estimate, and the signal-to-noise ratio estimate is used as the first acoustic feature. Calculate the reverberation time estimate and use the reverberation time estimate as a second acoustic feature; The first acoustic feature and the second acoustic feature of each time-domain frame signal are concatenated to form an acoustic feature vector.
4. The digital human interaction optimization method based on sound field localization analysis according to claim 3, characterized in that, Calculating the reverberation time estimate and using the reverberation time estimate as a second acoustic feature includes: The digital human is controlled to emit a preset detection sound signal through a built-in speaker, wherein the detection sound signal is a swept frequency signal or a maximum length sequence signal; The environmental impulse response is obtained by using the microphone array to collect the reflection and attenuation signals formed after the detection sound signal propagates in the environment; The energy decay curve is obtained by integrating the energy of the environmental impulse response. Calculate the length of the time interval during which the energy decay curve drops from -5 dB to -35 dB, and multiply the length of the time interval by 2 to obtain the estimated reverberation time.
5. The digital human interaction optimization method based on sound field localization analysis according to claim 1, characterized in that, Extracting visual feature vectors from the environmental image includes: The environmental image is preprocessed by denoising and size normalization to obtain a preprocessed environmental image. Depth information is obtained from the preprocessed environmental image using a monocular depth estimation network, and combined with a face detection algorithm, the polar coordinate distance of the user relative to the microphone array is calculated, and the calculated polar coordinate distance is used as the first visual feature. The wall area is extracted from the preprocessed environmental image using a semantic segmentation network, the distance from the microphone array to the nearest wall is calculated, and the calculated distance is used as a second visual feature. The first visual feature and the second visual feature are concatenated to form a visual feature vector; Specifically, a monocular depth estimation network is used to obtain depth information from the preprocessed environmental image, and a face detection algorithm is combined to calculate the polar coordinate distance of the user relative to the microphone array, including: The user's facial region is located from the environmental image using a face detection algorithm, and a facial bounding box is obtained. The monocular depth estimation network is used to predict the depth value corresponding to the facial bounding box. The predicted depth value is used as the user distance, and the user distance is used as the polar coordinate distance.
6. The digital human interaction optimization method based on sound field localization analysis according to claim 5, characterized in that, The semantic segmentation network is used to extract wall regions from the preprocessed environmental image, and the distance from the microphone array to the nearest wall is calculated. The calculated distance is used as a second visual feature, including: The preprocessed environmental image is input into a pre-trained semantic segmentation network, which outputs a category label for each pixel, wherein the category label includes at least walls, ground, ceiling and other objects; Extract all pixels labeled as "wall" and calculate the three-dimensional spatial coordinates of each wall pixel by combining the depth information. Calculate the Euclidean distance from the position of the microphone array to the coordinates of the three-dimensional point in space corresponding to each wall pixel, and take the minimum value among all Euclidean distances as the distance from the microphone array to the nearest wall.
7. The digital human interaction optimization method based on sound field localization analysis according to claim 1, characterized in that, Based on the acoustic feature vector and the visual feature vector, the environmental complexity coefficient is calculated, including: The acoustic feature vector and the visual feature vector are concatenated to obtain a multimodal feature vector; The multimodal feature vector is input into a pre-trained multimodal fusion neural network, and the environment complexity coefficient is output, wherein the value of the environment complexity coefficient ranges from 0 to 1. The training process of a multimodal fusion neural network includes: Collect multimodal feature vector samples from multiple real-world environments, and use all multimodal feature vector samples to form the training sample input set. Each multimodal feature vector sample includes an acoustic feature vector and a visual feature vector. Each multimodal feature vector sample in the training sample input set is labeled with a corresponding environment complexity coefficient label, and all environment complexity coefficient labels are used to form the training sample output set. The value range of the environment complexity coefficient label is from 0 to 1. Construct an initial multimodal fusion neural network, wherein the output layer of the initial multimodal fusion neural network adopts the Sigmoid activation function; Using the training sample input set as input and the training sample output set as supervision signal, supervised training is performed on the initial multimodal fusion neural network until convergence is verified, thus obtaining the trained multimodal fusion neural network.
8. The digital human interaction optimization method based on sound field localization analysis according to claim 1, characterized in that, Construct a sound source localization model array, which includes multiple sound source localization sub-models, including: Collect multiple multi-channel sound signal samples under different environmental conditions. Each multi-channel sound signal sample corresponds to a known sound source direction ground value. All multi-channel sound signal samples and their corresponding sound source direction ground values constitute a training sample set. The training sample set is divided into K mutually exclusive subsets using the K-fold cross-validation method, where K is a preset positive integer; For each fold, select one subset as the validation set and the remaining K-1 subsets as the training set, resulting in a total of K training-validation subset pairs; Based on the K sets of training-validation subsets, K sound source localization sub-models are trained respectively, wherein the sound source localization sub-models adopt the same neural network structure; The K sound source localization sub-models obtained from training are combined to obtain a sound source localization model array.
9. The digital human interaction optimization method based on sound field localization analysis according to claim 1, characterized in that, Based on the environmental complexity coefficient, the number of sound source localization sub-models to be invoked is determined. The specified number of sound source localization sub-models are selected from the sound source localization model array. The multi-channel sound signal is input to each selected sound source localization sub-model to obtain multiple sound source direction estimation results. These multiple sound source direction estimation results are fused to obtain the final sound source direction. The digital human is then driven to interact towards the final sound source direction, including: Multiply the environmental complexity coefficient by the total number K of the sound source localization sub-models in the sound source localization model array, and round the product up to obtain the number M of sub-models that need to be called, where the value of M ranges from 1 to K. M sound source localization sub-models are randomly selected from the sound source localization model array as the called sound source localization sub-models; The multi-channel sound signals are input into each called sound source localization sub-model to obtain M sound source direction estimation results, and each sound source direction estimation result is represented as a unit vector; Calculate the arithmetic mean of all unit vectors, and take the direction of the vector of the arithmetic mean as the final sound source direction; Based on the direction of the final sound source, head rotation control commands and body rotation control commands are generated for the digital human to face the direction of the final sound source, and the voice output volume and interactive interface layout of the digital human are adjusted synchronously.
10. A digital human interaction optimization platform based on sound field localization analysis, characterized in that, The platform is used to implement the digital human interaction optimization method based on sound field localization analysis according to any one of claims 1-9, the platform comprising: A multi-channel signal acquisition module is used to acquire multi-channel sound signals through the microphone array of the digital human and to acquire environmental images through a visual sensor. The feature extraction module is used to extract acoustic feature vectors from the multi-channel sound signal and visual feature vectors from the environmental image; An environment complexity calculation module is used to calculate the environment complexity coefficient based on the acoustic feature vector and the visual feature vector; A model array construction module is used to construct a sound source localization model array, wherein the sound source localization model array contains multiple sound source localization sub-models; The dynamic fusion and interaction module is used to determine the number of sound source localization sub-models to be invoked based on the environmental complexity coefficient, select the number of sound source localization sub-models from the sound source localization model array, input the multi-channel sound signals to each selected sound source localization sub-model to obtain multiple sound source direction estimation results, fuse the multiple sound source direction estimation results to obtain the final sound source direction, and drive the digital human to interact towards the final sound source direction.
