Conference terminal intelligent portrait tracking and automatic framing method
By using a multimodal information fusion and joint optimization framework to dynamically adjust camera parameters, the stability issues of human tracking and framing technologies in video conferencing are resolved, achieving high accuracy and stable image output, thus improving the user experience.
Patent Information
- Application Number
- CN202611168527.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-11-20
AI Technical Summary
In existing video conferencing systems, intelligent human tracking and automatic framing technologies are prone to issues such as missing target features and blurred motion when faced with partial occlusion of the human face or rapid movement of people. This can lead to shaking of the human detection frame and loss of the tracking target, affecting the continuity of the video and the user experience.
By employing multimodal information time synchronization fusion, sound source localization and video detection information are obtained through microphone arrays and camera modules. Combined with long short-term memory networks to predict target location, a joint optimization framework is constructed to unify modeling, tracking decision and framing decision. Camera parameters are dynamically adjusted, and adjustment and hierarchical relocation strategies are fed back in real time to ensure tracking accuracy and image stability.
It improves the accuracy of human tracking and the stability of image composition in complex meeting scenarios, avoids image jitter, and ensures high-definition framing and user experience.
Smart Images

Figure CN123145380A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer technology, specifically a method for intelligent human face tracking and automatic image framing in a conference terminal. Background Technology
[0002] In practical applications of video conferencing systems, the positions, postures, and movements of speakers are highly random and dynamic. Relying on intelligent facial tracking and automatic framing technology to capture complete and clear images of speakers in real time is the main technical support for ensuring high-definition framing effects of intelligent conferencing terminals and improving the overall audiovisual experience of meetings.
[0003] Current mainstream intelligent framing solutions generally use common object detection algorithms to identify human image regions. Based on the detected human image bounding box, the gimbal is driven to rotate or the camera imaging parameters are fine-tuned to complete the automatic composition of the meeting screen and human image tracking.
[0004] Traditional detection and tracking architectures rely solely on static human visual features for target localization. In common meeting scenarios, such as partial occlusion of the human face and rapid movement of people, they are prone to problems such as missing target features and blurred motion. This leads to jittering and loss of the human detection frame and the loss of the tracking target, resulting in defects such as lag in gimbal response, frequent image restarts and unstable image framing. These defects greatly reduce the continuity of video conferencing and the user experience, becoming a major technical bottleneck restricting the improvement of human face tracking and automatic framing performance in high-definition smart meeting terminals.
[0005] Therefore, the present invention provides a method for intelligent human face tracking and automatic image framing in a conference terminal. Summary of the Invention
[0006] In order to overcome the shortcomings of the prior art, at least one technical problem raised in the background art is solved.
[0007] The technical solution adopted by this invention to solve its technical problem is: a method for intelligent human face tracking and automatic image framing in a conference terminal, comprising the following steps: Step 1: Perform time-synchronized fusion of multimodal information to obtain time-aligned sound source localization coordinates and video frame detection boxes; Step 2: Construct a joint optimization framework for tracking and framing decisions, and model the tracking accuracy loss, composition aesthetics loss, and image smoothness loss as a unified objective function; Step 3: Solve for the target position and camera adjustment parameters based on the joint optimization framework, and output the optimal target identifier and the optimal camera parameter vector; Step 4: Perform predictive framing and feedback adjustment. Predict the framing effect of future multiple frames based on the camera parameter vector, dynamically adjust the gimbal motor drive signal and the camera optical zoom component, and establish a feedback monitoring mechanism to detect and track confidence index in real time. Step 5: Continuously repeat the above steps to process the input multimodal information stream and output the viewfinder image in real time during the meeting.
[0008] Preferably, the time synchronization fusion of multimodal information includes: The microphone array acquires raw audio data, which is then bandpass filtered to remove environmental noise interference. An adaptive beamforming algorithm is used to estimate the spatial coordinates of the sound source. The camera module acquires raw video data, which is processed by region of interest extraction to reduce the amount of data for subsequent processing. The coordinates of the detection box of the human image region are output through a face detection network or a human detection network. After the data from the two modalities have been processed, they enter the temporal prediction module for asynchronous compensation. The temporal prediction module predicts the position of the target at a future time based on the trajectory data of historical frames.
[0009] Preferably, the time-series prediction module adopts a deep time-series prediction model based on long short-term memory networks. The deep time-series prediction model based on long short-term memory networks is specifically used to model the temporal dependencies of the motion trajectory of human figures, learn the pattern of target position changes over time, and predict its future position and speed.
[0010] Preferably, the objective function in the joint optimization framework adopts a multi-task learning architecture. The three loss terms extract a unified intermediate representation through a shared feature encoding layer. The shared feature encoding layer embeds the input tracking target position features and camera current parameter features into a representation. A shared feature vector is obtained by nonlinear transformation through a multilayer perceptron and then connected to three independent output layers to output the predicted values of the three loss terms.
[0011] Preferably, the weight coefficients of the three loss terms in the joint optimization framework are dynamically adjusted according to the scene. When a target is detected to be moving rapidly, the weight of the tracking accuracy loss is increased, and when a significant shaking is detected in the image, the weight of the smoothness loss is increased.
[0012] Preferably, the step of solving for the tracking target position and camera adjustment parameters based on the joint optimization framework includes: calculating the gradient information of the objective function with respect to the tracking parameters and the gradient information of the objective function with respect to the camera parameters; using a hybrid strategy combining gradient descent algorithm and quasi-Newton method to solve the problem, and solving for the tracking parameters and camera parameters that globally minimize the objective function in each decision cycle; incorporating the prediction deviation of the tracking target position as a constraint into the optimization problem to ensure that the solved camera parameters can cover the possible position range of the target in future time moments.
[0013] Preferably, the predictive framing and feedback adjustment adopts a two-stage strategy. In the first stage, a temporal prediction model is used to estimate the position of the tracking target in the next few frames. In the second stage, the camera parameter sequence that minimizes the loss of compositional aesthetics and the loss of image smoothness is searched under given constraints based on the prediction results. In actual execution, only the parameters of the first frame of the parameter sequence are applied to avoid error accumulation.
[0014] Preferably, the feedback monitoring mechanism detects and tracks the confidence index in real time. The tracking confidence index comprehensively considers the intersection-union ratio of the predicted detection box and the actual detection box, the trajectory continuity score of the target in historical frames, and the spatial consistency score between the sound source localization coordinates and the video detection coordinates.
[0015] Preferably, when the tracking confidence is detected to be lower than a preset threshold, a relocation strategy is triggered. The relocation strategy adopts a hierarchical search mechanism. The first layer uses the sound source positioning coordinates to establish a target search area around the historical tracking position for detection. The detection results are weighted and fused with the sound source positioning coordinates to obtain the relocation candidate position. If the first layer search does not find a detection result that meets the conditions, the second layer search is triggered. The second layer search calls the detection network in the entire screen range and selects the detection box with the highest confidence as the new tracking target.
[0016] Preferably, the continuous loop execution process adopts a pipeline architecture design. The pipeline includes a multimodal information acquisition stage, a time synchronization fusion stage, a joint optimization solution stage, and a predictive framing execution stage. Data is transferred between each processing stage through a double buffering mechanism. At the same time, the system continuously monitors its own operating status information and triggers a self-recovery mechanism when an abnormal state is detected.
[0017] The beneficial effects of this invention include: 1. The intelligent human face tracking and automatic image framing method for conference terminals provided by this invention performs time-aligned fusion of asynchronous multimodal information through a time-series prediction module, unifies the modeling of tracking decisions and framing decisions through a joint optimization framework and solves them collaboratively, and then adjusts camera parameters in advance through a predictive framing strategy and responds to scenarios where the tracking target is occluded or lost through a feedback adjustment mechanism. This can effectively solve the technical problem of high coupling between tracking decisions and framing decisions in existing human face tracking and image framing technologies for conference terminals, and improve tracking accuracy and image composition stability.
[0018] 2. The intelligent human face tracking and automatic image framing method for conference terminals provided by this invention incorporates tracking accuracy loss, composition aesthetic loss, and image smoothness loss into the same optimization framework by constructing a unified objective function. It discovers the potential correlation between the three loss items through a multi-task learning architecture and realizes cross-task knowledge transfer. It automatically adjusts the relative importance of each loss item according to the real-time scene through a dynamic weight adaptive mechanism. Then, it solves the optimal camera parameter sequence through a model prediction control strategy, which can realize the automatic and adaptive adjustment of system parameters.
[0019] 3. The intelligent human face tracking and automatic image framing method for conference terminals provided by this invention triggers a hierarchical relocation strategy when the tracked target is occluded or lost. The first layer uses sound source localization information to perform sound source-guided area search to quickly restore tracking. The second layer performs a full-screen scan search as a fallback. The relocation results are fed back to the joint optimization framework to update the optimization parameters, which can achieve high robustness of human face tracking in complex conference scenarios. The multimodal information fusion architecture fully leverages the complementary advantages of sound source localization information and video detection information. When the video detection information is partially invalidated due to occlusion, the sound source localization information can continue to provide spatial location reference for the target.
[0020] 4. The intelligent human face tracking and automatic image framing method for conference terminals provided by the present invention predicts the position of the target at a future time through a time-series prediction module, searches for the optimal camera parameter sequence in the prediction time domain through a model prediction control strategy, and performs parameter adjustment under a rolling optimization framework, which can achieve a smooth transition of camera parameters and avoid the image jitter problem caused by single-frame optimization in the prior art. Attached Figure Description
[0021] The invention will now be further described with reference to the accompanying drawings.
[0022] Figure 1 This is a flowchart of a method for intelligent human face tracking and automatic image framing in a conference terminal according to the present invention; Figure 2 This is a flowchart of the main stages of the predictive framing and feedback adjustment mechanism in this invention. Detailed Implementation
[0023] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.
[0024] Example 1: like Figure 1 and Figure 2 As shown, the intelligent human face tracking and automatic image framing method for a conference terminal according to the present invention includes the following steps: Step 1: Time synchronization fusion of multimodal information. The main task of this step is to time-align and fuse the sound source localization information collected by the microphone array with the video detection information collected by the camera module. This eliminates the time inconsistency caused by the difference in processing delay between the two modal signals, and provides target position information under a unified time reference for subsequent tracking and framing decisions.
[0025] In the specific implementation, the microphone array module contains eight omnidirectional microphone units arranged in a planar circular array configuration with an array diameter of 8 cm. The microphone unit sensitivity is -38 dBV / Pa, the sampling rate is 16 kHz, and the sampling precision is 16-bit quantization. The raw audio data acquired by the microphone array is preprocessed by a bandpass filter. The passband frequency range of the bandpass filter is set to 300 Hz to 3400 Hz, the filter order is set to 64, and a finite impulse response digital filter is used to ensure phase linearity. After bandpass filtering, the audio data enters the adaptive beamforming module for sound source spatial orientation estimation.
[0026] The adaptive beamforming module employs a minimum variance distortionless response beamforming algorithm. This algorithm constructs a spatial filter by estimating the direction of arrival of the sound source, so that the main lobe of the filter points towards the direction of the sound source and suppresses interference signals from other directions. In specific implementation, the covariance matrix of the microphone array is calculated. The covariance matrix is estimated using a time averaging method, with the estimation window length set to 256 sampling points, i.e., a 16-millisecond time window. The spatial orientation of the sound source is estimated using a spectral peak search method. The azimuth search range is set to 0 degrees to 360 degrees, the elevation search range is set to -30 degrees to +60 degrees, and the search angle resolution is set to 1 degree. The three-dimensional spatial orientation coordinates of the sound source are output, including the horizontal azimuth, elevation, and distance estimates. The sound source localization result is updated every 50 milliseconds, and the localization accuracy is better than 3 degrees in the horizontal azimuth direction, better than 5 degrees in the elevation direction, and better than 0.3 meters in the distance estimation direction.
[0027] The camera module uses a 1-inch complementary metal oxide semiconductor image sensor with 8 million effective pixels. The video capture resolution is set to 1920×1080 pixels, the frame rate is set to 30 frames per second, and the camera lens focal length is set to an optical zoom range of 4.5 mm to 135 mm. The raw video data collected by the camera module enters the region of interest (ROI) extraction module for processing. The ROI extraction adopts a dynamic cropping method based on image content analysis. This method performs scale normalization on the raw video frames, normalizing the image to an input size of 640×360 pixels to reduce the amount of data in subsequent processing. The gradient distribution of the image is calculated through an edge detection operator, and the salient regions in the image are determined based on the gradient distribution. The salient regions are marked as ROIs. Only for the ROIs, the face detection network or the human detection network is called to perform target detection.
[0028] The face detection network adopts a single-stage detector architecture, specifically the You Only Look Once Version 5 network structure. This network includes one backbone feature extraction network and three detection head networks. The backbone feature extraction network adopts a cross-stage partial darknet architecture, which includes 29 convolutional layers and 6 pooling layers. The input image size of the network is set to 416×416 pixels. The detection head networks output feature maps of three different scales to adapt to face detection tasks of different sizes. The inference time of the face detection network is 8 to 12 milliseconds per frame on the graphics processing unit; The output of the face detection network is the coordinates of the detection boxes. Each detection box contains five numerical elements: the x-coordinate of the top left corner, the y-coordinate of the top left corner, the width of the detection box, the height of the detection box, and the detection confidence score.
[0029] The human detection network uses the same single-stage detector architecture, but the network parameters have been retrained and optimized for the human detection task. The network's training dataset contains more than 500,000 images with labeled human bounding boxes. The network output detection results also include the bounding box coordinates and detection confidence of the human region. The video detection result update rate of the camera module is consistent with the video frame rate, and is set to output the detection box result once every 33 milliseconds.
[0030] The timing prediction module receives two asynchronous information streams from the sound source localization module and the video detection module. The main function of the timing prediction module is to perform time alignment compensation on the asynchronously arriving multimodal information and output the predicted value of the tracking target position under a unified time reference. The input data structure of the temporal prediction module includes: the module receives historical trajectory data from the most recent 10 to 15 frames. Each frame contains information in three dimensions. The first dimension is the sound source localization coordinates, including the horizontal azimuth, pitch, and distance of the sound source. The second dimension is the detection box center coordinates, including the horizontal and vertical coordinates of the detection box center point. The third dimension is the detection box size, including the width and height of the detection box. Therefore, each frame has a total of 7 numerical elements. The historical frame data is stored using a circular buffer data structure with a buffer depth of 15 frames. Data updates use a first-in-first-out overwrite strategy.
[0031] The temporal prediction module uses a long short-term memory network as the main prediction algorithm. This network is specifically designed to model the temporal dependencies of the motion trajectory of human figures. The structure of the Long Short-Term Memory (LSTM) network includes: two LSM layers and one fully connected layer. The first LSM layer has 256 hidden units, the second LSM layer has 128 hidden units, and the fully connected layer has nine output dimensions corresponding to the predicted coordinate sets for the next three frames. The network uses the hyperbolic tangent function as the activation function for the hidden states and the sigmoid function as the activation function for the gated units. The input sequence length is 10 frames, and the output sequence length is 3 frames. The prediction time window length of the Long Short-Term Memory network is determined based on the cumulative delay of each processing stage. The audio processing delay is set to 80 milliseconds, the video processing delay is set to 150 milliseconds, and the optimization solution delay is set to 60 milliseconds. The three delays are added together to obtain a prediction time window of 250 milliseconds. This time window ensures that the framing module has sufficient lead time to adjust the camera parameters to cope with changes in the target's position.
[0032] The workflow of the temporal prediction module includes: assembling the historical trajectory data of the most recent 10 frames into an input tensor, with the tensor shape set to a 10×7 two-dimensional matrix; performing forward propagation calculations on the input tensor sequentially through the first long short-term memory layer, the second long short-term memory layer, and the fully connected layer; and outputting a 3×3 two-dimensional matrix from the fully connected layer, where each row corresponds to the predicted coordinates of the next frame, including the sound source horizontal azimuth angle, the sound source elevation angle, and the x-coordinate of the detection box center. The accuracy of the prediction results was verified using cross-validation. On the validation dataset, the root mean square error of the trajectory prediction of the Long Short-Term Memory network was better than 0.15 meters.
[0033] The time-synchronized tracking target location information output by the temporal prediction module includes the following components: the predicted three-dimensional spatial coordinates of the target, including the horizontal azimuth, pitch angle, and distance; the predicted two-dimensional coordinates of the target on the image plane, including the x-coordinate and y-coordinate of the detection box center; the predicted detection box size, including the predicted width and height; and the confidence score of the prediction result, which is calculated based on the historical statistics of the prediction error. The smaller the prediction error, the higher the confidence score.
[0034] In a specific application scenario, assuming the conference room is 8 meters long and 6 meters wide, the conference terminal is installed 1.5 meters above the ground, and the camera module has a horizontal field of view of 70 degrees and a vertical field of view of 40 degrees; As the speaker moves around the conference table, the microphone array collects the speaker's sound source signal in real time and estimates the spatial coordinates of the sound source. The camera module simultaneously collects the video stream of the conference room and detects faces or human body regions. The time-series prediction module receives two asynchronous information streams and predicts the target's position in the next 250 milliseconds based on historical trajectories. Finally, it outputs the time-synchronized tracking target position coordinates for subsequent joint optimization framework.
[0035] Step 2: Construct a joint optimization framework for tracking and framing decisions. The main task of this step is to unify the three heterogeneous optimization objectives of tracking accuracy loss, composition aesthetics loss, and image smoothness loss into a single objective function, and design a joint optimization architecture to achieve coordinated optimization of tracking and framing decisions, thereby avoiding the problem that independent optimization of two subsystems under the two-cascade architecture in the existing technology cannot guarantee the global optimum.
[0036] The objective function is designed using a weighted sum of three loss terms. The mathematical expression of the overall objective function can be described as a weighted sum of three terms: tracking accuracy loss, composition aesthetics loss, and image smoothness loss. The weight coefficients of the three loss terms are determined through a dynamic adjustment mechanism. The weighting coefficients can be set in the following ranges: the weighting coefficient for tracking accuracy loss is set from 0.3 to 0.6, the weighting coefficient for composition aesthetics loss is set from 0.2 to 0.4, and the weighting coefficient for image smoothness loss is set from 0.2 to 0.4. The sum of the three weighting coefficients is always kept at 1.0 to ensure the consistency of the objective function dimensions.
[0037] The tracking accuracy loss term is used to quantify tracking accuracy. This loss term is calculated as follows: The coordinates of the predicted detection boxes output by the temporal prediction module are obtained. Each predicted detection box contains four parameters: x-coordinate of the center point, y-coordinate of the center point, width, and height. All candidate detection boxes output by the video detection network in the current frame are obtained. Each candidate detection box also contains center point coordinates and size parameters. The intersection-union ratio (IU) between the predicted detection box and each candidate detection box is calculated by dividing the intersection area of the two detection boxes by the union area. The tracking accuracy loss is defined as the difference between one and the highest IU value; that is, the tracking accuracy loss equals 1 minus the IU of the predicted box and the best-matching candidate box. The Cross-Union Ratio (CIRR) value ranges from 0 to 1. A CIRR of 1 indicates that the two bounding boxes completely overlap, while a CIRR of 0 indicates that the two bounding boxes do not overlap at all. The Tracking Accuracy Loss value also ranges from 0 to 1; a lower loss value indicates higher tracking accuracy.
[0038] The compositional aesthetics loss term is used to quantify the compositional quality of the framed image. The calculation method of this loss term takes into account two dimensions: the position of the target in the image and the proportion of the target in the image. In the position dimension, the degree of deviation of the tracking target from the center in the viewfinder is calculated. The specific calculation method is as follows: determine the coordinates of the geometric center point of the viewfinder, compare the coordinates of the detection box center point of the tracking target with the coordinates of the geometric center point of the viewfinder, calculate the Euclidean distance between the two, and normalize the distance to a percentage of the viewfinder size as the position loss component. In terms of proportion, the calculation determines whether the area ratio occupied by the tracked target in the frame conforms to the preset portrait composition standard. The preset portrait proportion standard range is set to 25% to 40% of the frame width or 30% to 45% of the frame height. The deviation between the actual proportion and the standard proportion is taken as the proportion loss component. The final value of the composition aesthetics loss term is the weighted sum of the position loss component and the proportion loss component. The weight of the position loss component is set to 0.6, and the weight of the proportion loss component is set to 0.4.
[0039] The image smoothness loss term quantifies the degree of image jitter between consecutive frames. This loss term is calculated as follows: The optimal camera parameter vector output by the joint optimization framework in the current frame and the optimal camera parameter vector output by the previous decision cycle are obtained. The Euclidean distance between the two parameter vectors is then calculated as the specific value of the image smoothness loss. The camera parameter vector contains three parameter elements: the horizontal rotation angle of the gimbal, the vertical pitch angle of the gimbal, and the focal length of the camera's optical zoom. The range of image smoothness loss depends on the physical units of the parameter vectors. The unit for horizontal rotation angle is degrees, the unit for pitch angle is degrees, and the unit for focal length is millimeters. When the Euclidean distance between the parameter vectors of two adjacent frames is less than a threshold, the image is considered to remain smooth. The threshold setting standard is that the change in horizontal rotation angle does not exceed 2 degrees, the change in pitch angle does not exceed 1.5 degrees, and the change in focal length does not exceed 3% of the maximum focal length.
[0040] The objective function is implemented using a multi-task learning architecture. The advantage of the multi-task learning architecture is that it can discover the potential correlation between the three optimization objectives of tracking accuracy, composition aesthetics and image smoothness and achieve cross-task knowledge transfer. The multi-task learning architecture includes the following components: a shared feature encoding layer, three independent output layers, and a dynamic weight adjustment module; The shared feature encoding layer structure includes: embedding the input target position features and current camera parameter features into a 128-dimensional representation; performing a nonlinear transformation on the embedded representation to obtain a shared feature vector using a multilayer perceptron (MLP). The MLP contains two hidden layers: the first hidden layer has 512 neurons, and the second hidden layer has 256 neurons. Both hidden layers use a rectified linear function (CLM) as their activation function. The shared feature encoding layer ultimately outputs a 256-dimensional shared feature vector. Three independent output layers are connected to the output of the shared feature encoding layer. The first output layer is used to predict tracking accuracy loss; its input dimension is 256, its output dimension is 32, and its activation function is a CLM. The second output layer is used to predict compositional aesthetic loss; its input dimension is 256, its output dimension is 32, and its activation function is also a CLM. The third output layer is used to predict image smoothness loss; its input dimension is 256, its output dimension is 16, and its activation function is also a CLM. The training of the multi-task learning architecture adopts an alternating update strategy. During the training process, the parameters of the shared feature encoding layer and the parameters of the three independent output layers are jointly optimized through the backpropagation algorithm.
[0041] The dynamic weight adjustment module automatically adjusts the weight coefficients of the three loss items based on real-time scene information. The adjustment strategies include: when the tracking accuracy index drops by more than 15%, the weight coefficient of tracking accuracy loss is automatically multiplied by a magnification factor of 1.5; when the image smoothness index drops by more than 20%, the weight coefficient of image smoothness loss is automatically multiplied by a magnification factor of 1.3; and when the composition aesthetics score drops by more than 10%, the weight coefficient of composition aesthetics loss is automatically multiplied by a magnification factor of 1.2. The weight coefficients are updated using an exponential moving average method to avoid drastic fluctuations. The decay coefficient of the exponential moving average is set to 0.9, and the lower limit of the weight coefficients is set to 0.15 and the upper limit to 0.65 to ensure that each loss term maintains a certain contribution during the optimization process.
[0042] In a specific application scenario, assume that the joint optimization framework receives the target position coordinates output by the time-series prediction module in a certain decision cycle as follows: horizontal azimuth angle 30 degrees, pitch angle -5 degrees, distance 3 meters, detection box center coordinates as image horizontal coordinate 640 pixels, vertical coordinate 360 pixels, detection box size as width 200 pixels, height 300 pixels. The joint optimization framework uses a shared feature encoding layer to nonlinearly transform these input features into a 256-dimensional shared feature vector. This shared feature vector is then fed into three independent output layers to predict the values of three loss terms: tracking accuracy loss (0.15), compositional aesthetics loss (0.25), and image smoothness loss (0.08). The weights at the current time step are 0.5 for tracking accuracy loss, 0.3 for compositional aesthetics loss, and 0.2 for image smoothness loss. The overall objective function value is 0.5 x 0.15 + 0.3 x 0.25 + 0.2 x 0.08, which equals 0.1235. The joint optimization framework then uses a gradient descent algorithm to search in the parameter space for tracking and camera parameters that globally minimize the objective function.
[0043] Step 3: Solve for the target position and camera adjustment parameters based on the joint optimization framework. The main task of this step is to track the target position according to the time synchronization output of the time series prediction module, calculate the gradient information of the objective function with respect to the tracking parameters and the gradient information of the objective function with respect to the camera parameters within the joint optimization framework, and use numerical optimization methods to solve for the tracking parameters and camera parameters that minimize the objective function globally.
[0044] The decision cycle length is set to 80 milliseconds to ensure the real-time response of the system. The timing start of the decision cycle is the moment when the time series prediction module outputs the time to synchronize and track the target position. The specific execution process of the decision cycle includes: reading the output data of the time-series prediction module at the beginning of the decision cycle, which includes the predicted three-dimensional spatial coordinates of the target, the two-dimensional coordinates of the target on the image plane, the detection box size, and the prediction confidence score; calculating the gradient information of the objective function within the first 30 milliseconds of the decision cycle; and performing numerical optimization iteration and outputting the optimization results within the last 50 milliseconds of the decision cycle.
[0045] The gradient information is calculated using automatic differentiation. The gradient information of the objective function with respect to the tracking parameters is used to guide the selection of the tracking target, and the gradient information of the objective function with respect to the camera parameters is used to guide the adjustment of the camera parameters. The definition space of tracking parameters includes the following elements: unique identifiers for all detected face or human targets, and the set of detection box coordinates for each target. The definition space of camera parameters includes the following elements: pan-tilt horizontal rotation angle, with a value range of -60 degrees to +60 degrees; pan-tilt vertical pitch angle, with a value range of -30 degrees to +30 degrees; and camera focal length, with a value range of 4.5 mm to 135 mm. In the gradient calculation process, the objective function is regarded as a composite function of the tracking parameters and the camera parameters, and the partial derivatives of each parameter are calculated separately using the chain rule.
[0046] The numerical optimization method adopts a hybrid strategy combining gradient descent algorithm and quasi-Newton method. In specific implementation, 3 to 5 gradient descent iterations are used to quickly approach the optimal solution region, and the quasi-Newton method is used to perform a fine search within the optimal solution region to improve the accuracy of the solution. The learning rate parameter of the gradient descent algorithm is set to 0.01, and the step size of the gradient descent iteration is adaptively adjusted according to the magnitude of the gradient. The quasi-Newton method is implemented using a variant of the BFGS algorithm. The parameter update formula of the BFGS algorithm adopts the standard second-order optimization update rule, and positive definiteness constraints are maintained during the parameter update process to ensure the numerical stability of the optimization process.
[0047] In the optimization process, the prediction deviation of the tracking target position is incorporated as a constraint into the optimization problem. The constraints include: defining the prediction deviation threshold as 0.2 meters; when the deviation between the actual position and the predicted position of the tracking target at a future time is less than the threshold, the prediction is considered valid; when the deviation is greater than the threshold, the search range of the camera parameters needs to be expanded to cover the possible position range of the target. The specific implementation of the constraints is to add a penalty term to the objective function. When the obtained camera parameters cannot cover the possible location range of the target, the value of the penalty term increases, thereby guiding the optimization algorithm to search in the direction that satisfies the constraints.
[0048] After optimization, two main results are output: the optimal tracking target identifier and the optimal camera parameter vector; The optimal tracking target identifier is a unique identifier for the target that minimizes the objective function globally among all candidate targets. This identifier is used for target association and identity maintenance in subsequent tracking modules. The optimal camera parameter vector contains three parameter elements. The first element is the horizontal rotation angle of the gimbal, in degrees. The second element is the vertical pitch angle of the gimbal, in degrees; The third element is the camera focal length, in millimeters. The output precision of the optimal camera parameter vector is set to two decimal places.
[0049] In a specific application scenario, assume that the joint optimization framework optimizes and evaluates three candidate tracking targets within a certain decision-making cycle; The tracking accuracy loss of the first candidate target is 0.12, the composition aesthetic loss is 0.35, and the smoothness loss is 0.06. The corresponding optimal camera parameter vector is a horizontal rotation angle of 25.3 degrees, a pitch angle of -3.2 degrees, and a focal length of 45.0 mm. The comprehensive objective function value is 0.187. The tracking accuracy loss of the second candidate target is 0.08, the composition aesthetic loss is 0.22, and the smoothness loss is 0.09. The corresponding optimal camera parameter vector is a horizontal rotation angle of 30.5 degrees, a pitch angle of -2.8 degrees, and a focal length of 42.5 mm. The comprehensive objective function value is 0.127. The tracking accuracy loss of the third candidate target is 0.15, the composition aesthetic loss is 0.28, and the smoothness loss is 0.04. The corresponding optimal camera parameter vector is a horizontal rotation angle of 28.7 degrees, a pitch angle of -3.5 degrees, and a focal length of 48.0 mm. The comprehensive objective function value is 0.161. Comparing the combined objective function values of the three candidate targets, the objective function value of the second candidate target is the lowest, at 0.127. Therefore, the joint optimization framework outputs the second candidate target as the optimal tracking target, and also outputs its corresponding optimal camera parameter vector as the control command for the next stage.
[0050] Step 4: Perform predictive framing and feedback adjustment. The main task of this step is to perform predictive framing adjustment based on the camera parameter vector output by the joint optimization framework, and to establish a feedback monitoring mechanism to deal with abnormal situations such as the tracking target being occluded or lost, so as to ensure that the system can output stable and aesthetically pleasing framing images in various complex scenarios.
[0051] Predictive framing is achieved using a two-stage strategy. The first stage uses a temporal prediction model to estimate the position of the tracking target in the next few frames. The prediction sequence output by the temporal prediction model is 5 frames long, and the prediction time span covers a time window of 200 milliseconds in the future. In the second stage, based on the prediction results, a camera parameter sequence is searched under given constraints to minimize the loss of compositional aesthetics and the loss of image smoothness. The search length of the parameter sequence is also set to 5 frames corresponding to a time span of 200 milliseconds in the future. The constraints were designed with the following dimensions in mind: the target's proportion in the frame was set to 25% to 40% of the frame width and 30% to 45% of the frame height; the target's deviation from the frame center did not exceed 15% of the frame size; and the continuous variation of camera parameters did not exceed 2 degrees of horizontal rotation, 1.5 degrees of pitch angle, or 3% of focal length change per frame. The parameter sequence search was implemented using a dynamic programming algorithm, with the state transition equation using a weighted sum of compositional aesthetic loss and image smoothness loss as the state transition cost function.
[0052] In actual execution, only the parameters of the first frame of the parameter sequence are applied to avoid error accumulation. After execution, the next decision cycle is entered to recalculate the predictive framing. The control commands sent to the gimbal motor drive circuit include two elements: target angle and target angular velocity. The gimbal motor drive circuit uses a proportional-integral-derivative (PID) controller to control the motor speed, with the proportional gain parameter set to 1.2, the integral gain parameter set to 0.05, and the derivative gain parameter set to 0.3. The control commands sent to the camera optical zoom component include two elements: target focal length and focal length change rate. The optical zoom drive circuit also uses a PID controller to adjust the focal length.
[0053] The feedback monitoring mechanism detects and tracks the confidence index in real time. The calculation method of the tracking confidence index comprehensively considers the following factors: the intersection-union ratio (IUU) between the predicted detection box and the actual detection box, with a weight of 0.4; the trajectory continuity score of the target in historical frames, with a weight of 0.3; and the spatial consistency score between the sound source localization coordinates and the video detection coordinates, with a weight of 0.3. The overall score of the tracking confidence index ranges from 0 to 1. When the overall score is higher than 0.7, the tracking status is considered normal. When the overall score is between 0.5 and 0.7, the tracking status needs attention. When the overall score is lower than 0.5, the tracking target is considered to be obscured or lost.
[0054] When the tracking confidence level is detected to be lower than the preset threshold of 0.5, a relocation strategy is triggered. The relocation strategy is implemented using a hierarchical search mechanism. The first layer of search, namely the sound source-guided area search, uses the sound source positioning coordinates to establish a target search area around the historical tracking position. The radius of the search area is set to 0.4 meters, and the geometric center of the search area is set to the three-dimensional spatial coordinates of the historical tracking position. Within the search area, a lightweight face detector or a lightweight human detector is invoked for target detection. The lightweight detector adopts a compressed version of the You Only Look Once Version 5 network structure, with the number of convolutional layers compressed to 60% of the original network and the number of parameters compressed to 40% of the original network. The inference time of the lightweight detector is optimized to less than 5 milliseconds per frame. The detection results are weighted and fused with the sound source localization coordinates to obtain relocation candidate positions. The fusion weight is set to 0.3 for the sound source localization coordinates and 0.7 for the detection box coordinates.
[0055] If the first layer search fails to find a detection result with a confidence score higher than 0.7 within 3 consecutive frames, the second layer search, namely the full-screen scan search, is triggered. The second layer search calls the complete face detection network or the complete human body detection network in the full screen range, traverses all detection results, and selects the detection box with the highest confidence score as the new tracking target. The inference time of the complete detection network is 12 to 15 milliseconds per frame on the graphics processing unit. After the second layer search is completed, the new tracking target information is fed back to the joint optimization framework to update the optimization parameters. At the same time, the historical tracking position records are cleared to avoid interference from the historical positions to the new tracking target.
[0056] In a specific application scenario, suppose that during the meeting, the speaker suddenly gets up and leaves his seat and walks to the other side of the meeting room. At this time, the tracking target undergoes rapid spatial displacement. The joint optimization framework decides at time t that the tracking target is speaker A, and the corresponding camera parameter vector is horizontal rotation angle of 20 degrees, pitch angle of -5 degrees, and focal length of 50 mm. The timing prediction module predicts that speaker A will move to a position with a horizontal rotation angle of 35 degrees, a pitch angle of -8 degrees, and a focal length of 55 mm at time t+200 milliseconds. The predictive framing module calculates the optimal camera parameter sequence based on the prediction result. The parameters of the first frame of the parameter sequence are a horizontal rotation angle of 23 degrees, a pitch angle of -5.5 degrees, and a focal length of 51 mm. These parameters are sent as the execution command for the current moment to the gimbal motor drive circuit and the optical zoom component. At time t+50 milliseconds, because the target's movement speed exceeded expectations, the feedback monitoring mechanism detected that the tracking confidence level dropped to 0.45, triggering the first layer of relocation search; The first layer of search performs face detection within a radius of 0.4 meters, and detects speaker A with a confidence score of 0.65, which does not reach the threshold of 0.7. After the first-layer search fails to find a detection result that meets the conditions for 3 consecutive frames, the second-layer search is triggered. The second-layer search performs human detection in the entire screen range, selects the detection result with the highest confidence as the new tracking target and feeds it back to the joint optimization framework. The joint optimization framework re-solves the optimal camera parameter vector based on the new tracking target information.
[0057] Step 5: Continuously cycle through the above steps. The main task of this step is to continuously cycle through the above four steps during the meeting, process the input multimodal information stream in real time, and output a stable and aesthetically pleasing view to ensure that remote participants can always see a video screen that includes the full image of the current speaker and has a beautiful composition.
[0058] The implementation of the loop execution mechanism adopts a pipeline architecture design, which includes four processing stages: multimodal information acquisition stage, time synchronization fusion stage, joint optimization solution stage, and predictive framing execution stage. The pipeline's data processing employs a time-slicing scheduling strategy, with each processing stage occupying a time window of one decision cycle length. Adjacent processing stages use a double-buffering mechanism to transfer data to avoid data contention. The dual buffering mechanism consists of two buffers, called the current buffer and the backup buffer. When the processing stage reads data from the current buffer, the data acquisition module writes data to the backup buffer. After the processing stage finishes reading the data, the roles of the two buffers are swapped.
[0059] During the loop execution, the system continuously monitors its own running status. The running status information includes the current tracking target identifier, tracking confidence score, current camera parameters, real-time values of each loss item, system processing latency, and memory usage. System operating status information is periodically reported to the main control system of the conference terminal via a communication interface for overall operation and maintenance management. This system operating status information also triggers a self-recovery mechanism; when system processing latency exceeds 150% of the decision cycle length or memory usage exceeds 80%, resource reclamation and status reset processes are automatically triggered to prevent system crashes.
[0060] For example, assuming a video conference lasting 2 hours continues to run the method of the present invention on the conference terminal, at the beginning of the conference the timing prediction module learns the scene characteristics of the conference room and the motion pattern of the speaker, and establishes initial trajectory prediction model parameters; the joint optimization framework optimizes and solves according to the initial parameters, and outputs the framing parameters of the first frame; the framing execution module adjusts the pan-tilt and camera according to the parameter instructions so that the conference host is located in the center of the screen; During the meeting, whenever a speaker speaks, the microphone array collects the sound source signal and locates it. The camera module simultaneously collects the video stream and performs face or human detection. The timing prediction module fuses and compensates for asynchronous information. The joint optimization framework solves for the tracking target and camera parameters simultaneously. The predictive framing module adjusts the framing in advance. The feedback monitoring mechanism detects the tracking status in real time and triggers a relocation strategy when necessary. At the end of the meeting, the system saves the operation log and releases computing resources.
[0061] Example 2: In terms of the technical implementation of the time series prediction module, an attention-based time series prediction model is used to replace the long short-term memory network in order to improve the ability to model long-term time series dependencies. Attention-based time series prediction models consist of two main components: an encoder network and a decoder network. The encoder network consists of four stacked self-attention layers and four feedforward neural network layers. The number of heads in the self-attention layers is set to eight, and the query key-value dimension of each head is set to 64 dimensions. The hidden layer dimension of the feedforward neural network layer is set to 512 dimensions. The input of the encoder network is the historical trajectory data of the most recent 20 frames. Each frame contains feature information in seven dimensions. The encoder network calculates the correlation weight between different frames in the input sequence through the self-attention mechanism and outputs the encoded sequence representation. The decoder network also contains four stacked self-attention layers and four feedforward neural network layers. The input to the decoder network is the encoded sequence representation and the decoded start symbol. The decoder network generates the predicted coordinate sequence of the next five frames step by step through the mask self-attention mechanism. The attention-based prediction model reduces the root mean square error by about 25% compared to long short-term memory networks on long-term prediction tasks, and the prediction time window can be extended to 350 milliseconds to accommodate more complex motion patterns.
[0062] Regarding the distributed parallel computing architecture of the joint optimization framework, the joint optimization computation task is decomposed into two parallel subtasks: a tracking parameter optimization subtask and a camera parameter optimization subtask. The tracking parameter optimization subtask is executed on the first computing unit, which is responsible for calculating the gradient information of the objective function with respect to the tracking parameters and updating the set of candidate tracking targets in the tracking parameter space. The camera parameter optimization subtask is executed on the second computing unit, which is responsible for calculating the gradient information of the objective function with respect to the camera parameters and updating the candidate parameter vector in the camera parameter space. The two computing units synchronize data through a high-speed interconnection network. The synchronized content includes the intermediate calculation results of the objective function, the sliced data of the gradient information, and the intermediate variables of the optimization iteration. The distributed parallel computing architecture reduces the single iteration time of the joint optimization framework from the original 25 milliseconds to 15 milliseconds, and improves the optimization solution efficiency by about 40%.
[0063] Assuming there are 5 speakers in a meeting room scenario and they frequently take turns speaking, a temporal prediction model based on an attention mechanism can capture the motion trajectory features and switching patterns of each of the 5 speakers and accurately predict their movement trends. The distributed parallel computing architecture can simultaneously optimize the tracking parameters of 5 candidate speakers and perform a global search of the camera parameter space, completing the optimization solution and outputting the optimal tracking target and optimal camera parameters within an 80-millisecond decision cycle.
[0064] Example 3: Regarding the two-stage adjustment strategy of model predictive control, the first stage is the framing effect prediction stage. In this stage, the framing effect of each future frame is predicted based on the target position of the future multi-frame output by the time-series prediction module within each decision cycle, under the current camera parameters. The framing effect prediction is achieved using a perspective transformation model. The inputs of the perspective transformation model include the camera intrinsic matrix, the camera extrinsic matrix, the target's three-dimensional spatial coordinates, and the target's size prior information. The outputs are the predicted image plane detection box coordinates and the predicted image composition score. The camera intrinsic parameter matrix contains five parameters: focal length, principal point coordinates, and distortion coefficients. The camera extrinsic parameter matrix contains six parameters: rotation matrix and translation vector. The second stage is the parameter sequence optimization stage. In this stage, a sub-optimization problem is constructed with camera parameters as optimization variables and compositional aesthetic loss and image smoothness loss as optimization objectives. This sub-optimization problem is solved using a sequential quadratic programming algorithm to obtain a set of optimal camera parameter sequences. The iteration termination condition of the sequential quadratic programming algorithm is set to the objective function change being less than 0.001 or the number of iterations reaching 20. During the parameter sequence optimization process, the physical constraints of the camera are considered, including a maximum gimbal angular velocity of 30 degrees per second, a maximum gimbal angular acceleration of 120 degrees squared per second, and a maximum zoom motor speed of 5 millimeters of focal length change per second.
[0065] Regarding the online adaptive adjustment mechanism of the unified evaluation index, the system continuously calculates the real-time values of three main performance indicators during operation. The tracking accuracy index is calculated as the average intersection-over-union ratio of the most recent 30 frames, the composition aesthetics index is calculated as the average composition score of the most recent 30 frames, and the smoothness index is calculated as the average parameter change of the most recent 30 frames. The adaptive adjustment rules for the weighting coefficients include: when the tracking accuracy index is below the threshold of 0.7, the weighting coefficient for tracking accuracy loss is increased by 0.1, while the weighting coefficients for compositional aesthetic loss and smoothness loss are decreased by 0.05 and 0.05 respectively; when the compositional aesthetic index is below the threshold of 0.6, the weighting coefficient for compositional aesthetic loss is increased by 0.1, while the weighting coefficients for tracking accuracy loss and smoothness loss are decreased by 0.05 and 0.05 respectively; when the smoothness index is above the threshold of 0.8, the weighting coefficient for smoothness loss is decreased by 0.1, while the weighting coefficients for tracking accuracy loss and compositional aesthetic loss are increased by 0.05 and 0.05 respectively. A smooth transition strategy is used to adjust the weighting coefficients to avoid system oscillations during the adjustment process.
[0066] In a specific application scenario, suppose a new participant suddenly enters the meeting room through a side door during the meeting. At this moment, two high-quality detected targets appear in the frame simultaneously. The model prediction control strategy predicts the movement trajectory of the two targets in the next few frames, calculates the composition score and image smoothness of the two targets under different camera parameters, and finally selects the parameter sequence that maximizes the overall score as the execution instruction. The system dynamically adjusts the weighting coefficients based on real-time evaluation results. During the phase of rapid target movement, the weight of tracking accuracy is increased to ensure that the target is not lost, while during the phase of target stillness, the weight of compositional aesthetics is increased to improve image quality.
[0067] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for intelligent human face tracking and automatic image framing in a conference terminal, comprising the following steps: Step 1: Perform time-synchronized fusion of multimodal information to obtain time-aligned sound source localization coordinates and video frame detection boxes; Step 2: Construct a joint optimization framework for tracking and framing decisions, and model the tracking accuracy loss, composition aesthetics loss, and image smoothness loss as a unified objective function; Step 3: Solve for the target position and camera adjustment parameters based on the joint optimization framework, and output the optimal target identifier and the optimal camera parameter vector; Step 4: Perform predictive framing and feedback adjustment. Predict the framing effect of future multiple frames based on the camera parameter vector, dynamically adjust the gimbal motor drive signal and the camera optical zoom component, and establish a feedback monitoring mechanism to detect and track confidence index in real time. Step 5: Continuously repeat the above steps to process the input multimodal information stream and output the viewfinder image in real time during the meeting.
2. The intelligent human face tracking and automatic image framing method for a conference terminal according to claim 1, characterized in that, The time synchronization fusion of multimodal information includes: The microphone array acquires raw audio data, which is then bandpass filtered to remove environmental noise interference. An adaptive beamforming algorithm is used to estimate the spatial coordinates of the sound source. The camera module acquires raw video data, which is processed by region of interest extraction to reduce the amount of data for subsequent processing. The coordinates of the detection box of the human image region are output through a face detection network or a human detection network. After the data from the two modalities have been processed, they enter the temporal prediction module for asynchronous compensation. The temporal prediction module predicts the position of the target at a future time based on the trajectory data of historical frames.
3. The intelligent human face tracking and automatic image framing method for a conference terminal according to claim 2, characterized in that, The temporal prediction module adopts a deep temporal prediction model based on long short-term memory networks. This deep temporal prediction model based on long short-term memory networks is specifically used to model the temporal dependencies of the motion trajectory of human figures, learn the pattern of target position changes over time, and predict its future position and speed.
4. The intelligent human face tracking and automatic image framing method for a conference terminal according to claim 1, characterized in that, The objective function in the joint optimization framework adopts a multi-task learning architecture. The three loss terms extract a unified intermediate representation through a shared feature encoding layer. The shared feature encoding layer embeds the input tracking target position features and camera current parameter features into a representation. A shared feature vector is obtained by nonlinear transformation through a multilayer perceptron and then connected to three independent output layers to output the predicted values of the three loss terms.
5. The intelligent human face tracking and automatic image framing method for a conference terminal according to claim 1, characterized in that, The weight coefficients of the three loss terms in the joint optimization framework are dynamically adjusted according to the scene. When a target is detected to be moving quickly, the weight of tracking accuracy loss is increased, and when a significant shaking is detected in the image, the weight of smoothness loss is increased.
6. The intelligent human face tracking and automatic image framing method for a conference terminal according to claim 1, characterized in that, The method for solving the target position and camera adjustment parameters based on the joint optimization framework includes: calculating the gradient information of the objective function with respect to the tracking parameters and the gradient information of the objective function with respect to the camera parameters; using a hybrid strategy combining gradient descent algorithm and quasi-Newton method to solve the problem, and solving for the tracking parameters and camera parameters that globally minimize the objective function in each decision cycle; and incorporating the prediction deviation of the target position as a constraint into the optimization problem to ensure that the solved camera parameters can cover the possible position range of the target in future time moments.
7. The intelligent human face tracking and automatic image framing method for a conference terminal according to claim 4, characterized in that, The predictive framing and feedback adjustment adopts a two-stage strategy. The first stage uses a temporal prediction model to estimate the position of the tracking target in the next few frames. The second stage searches for the camera parameter sequence that minimizes the loss of compositional aesthetics and the loss of image smoothness under given constraints based on the prediction results. In actual execution, only the parameters of the first frame of the parameter sequence are applied to avoid error accumulation.
8. The intelligent human face tracking and automatic image framing method for a conference terminal according to claim 7, characterized in that, The feedback monitoring mechanism detects and tracks the confidence index in real time. The tracking confidence index comprehensively considers the intersection-union ratio of the predicted detection box and the actual detection box, the trajectory continuity score of the target in historical frames, and the spatial consistency score between the sound source localization coordinates and the video detection coordinates.
9. A method for intelligent human face tracking and automatic image framing in a conference terminal according to claim 8, characterized in that, When the tracking confidence is detected to be lower than a preset threshold, a relocation strategy is triggered. The relocation strategy adopts a hierarchical search mechanism. The first layer uses the sound source localization coordinates to establish a target search area around the historical tracking position for detection. The detection results are weighted and fused with the sound source localization coordinates to obtain the relocation candidate position. If the first layer search does not find a detection result that meets the conditions, the second layer search is triggered. The second layer search calls the detection network in the entire screen range and selects the detection box with the highest confidence as the new tracking target.
10. A method for intelligent human face tracking and automatic image framing in a conference terminal according to claim 1, characterized in that, The continuous loop execution process adopts a pipeline architecture design. The pipeline includes a multimodal information acquisition stage, a time synchronization fusion stage, a joint optimization solution stage, and a predictive framing execution stage. Data is transferred between each processing stage through a double buffering mechanism. At the same time, the system continuously monitors its own operating status information and triggers a self-recovery mechanism when an abnormal state is detected.
