Panoramic video gaze shift detection and enhancement method based on global information
Through the panoramic perception and gaze transfer detection module of the FishNet network, combined with spherical to plane grid projection and feature enhancement technology, the problem of the inability of traditional networks to capture panoramic gaze transfers is solved, achieving more accurate gaze transfer prediction and virtual reality. Improved experience.
Patent Information
- Application Number
- CN202410030787.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-09
AI Technical Summary
The traditional panoramic gaze prediction network cannot effectively handle the gaze shift phenomenon, especially because the design places too much emphasis on spatiotemporal smoothness and local perception range, resulting in the inability to accurately capture gaze shifts at longer distances.
A panoramic video gaze point transfer detection and enhancement method based on global information is designed. Through the FishNet network, combined with the panoramic sensing plug-in sub-module and gaze point transfer detection module, using spherical to plane grid projection, ERP local encoder, selectivity Feature screening and gaze transfer perception feature enhancement enable accurate prediction of gaze transfer in panoramic videos.
It achieves more accurate gaze transfer perception and prediction, generates globally aware and distortion-free features, and improves gaze transfer detection performance and virtual reality experience.
Smart Images

Figure CN117876928B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision and deep learning technology, and in particular to a method for detecting and enhancing gaze shifts in panoramic videos based on global information. Background Art
[0002] In panoramic scenes, the core goal of panoramic gaze prediction is to identify and understand the importance of regions, which reflects the difference in the degree of attention paid to each region in the entire scene. The realization of this goal enables us to quickly locate the most "critical" areas in the scene. In general, local important regions have a wide range of applications. They can not only drive the compression rate and rendering quality of dynamic regions, but also when wearing a head-mounted display HMD (Head Mounted Display), by using local regions, we can better balance the computational cost and rendering quality, thereby achieving better graphics effects and smoother performance, and ultimately enhancing the user's immersion.
[0003] In the study of the PanopticVideo-300 video surveillance dataset, the present disclosure discovered a striking phenomenon - frequent "gaze point shifts". Due to the limitations of head-mounted displays, the gaze data obtained in traditional panoramic gaze datasets (such as VREyeTracking and Wild360) are usually smooth, because the gaze information collected by the HMD is limited by its field of view. However, Figure 2 -A, in the PanopticVideo-300 dataset, we observed that gaze may quickly shift to another distant location in a very short time. We call this phenomenon "gaze point shift". To describe this phenomenon more vividly, Figure 2 -B provides an example showing that the focus of attention shifts from the speaker to the person pushing the door instantly. In addition, we face another challenge in our research, that is, previous gaze prediction networks cannot handle the "gaze shift" phenomenon well. This is mainly because these network designs overemphasize the attention to spatiotemporal smoothness, and the perception range of gaze is basically local, which makes them theoretically unable to perceive gaze shifts at a longer distance.
[0004] To solve this problem, this paper proposes an innovative network structure, namely FishNet, which is specifically designed to handle the gaze shift phenomenon. Among them, FishNet includes a panoramic video gaze shift detector model, a panoramic perception plug-in solution, and a viewpoint shift detection solution. The viewpoint detection solution includes identifying gaze shifts and enhancing gaze shift perception features. The design of FishNet takes into account the balance of global and local information to more effectively capture the correlation between different regions, thereby more accurately predicting gaze shifts. This novel method is expected to make significant progress in the field of panoramic gaze prediction and contribute to the development of technologies to enhance virtual reality experience and visual perception. Summary of the invention
[0005] In order to solve the above problems, the present disclosure introduces a panoramic video gaze point transfer detection and enhancement method based on global information. The main goal is to make full use of spatiotemporal information, which is a key aspect of gaze point prediction, to suppress false alarms. Traditional methods usually limit the movement of gaze points by designing the network to maintain spatiotemporal smoothness. However, "gaze point transfer" is usually irregular, and the gaze point may jump from one position to another in an instant, with a long spatial distance, which is significantly different from the smooth characteristics of "normal gaze point". The contradiction between these two types of gaze points makes the learning process extremely challenging. Therefore, if the present disclosure directly adopts the traditional network design that relies on the constraint of maintaining spatiotemporal smoothness, it may cause the "gaze point transfer" to be compressed or ignored. Secondly, almost all previous state-of-the-art methods have failed to achieve panoramic global perception and cannot perceive sudden events, which ultimately leads to their inability to effectively capture gaze point transfer. Therefore, this paper proposes an innovative solution to make up for this deficiency.
[0006] The specific steps include:
[0007] 1) Obtain a distortion-free panoramic video gaze transfer dataset.
[0008] 2) Design a FishNet panoramic video gaze shift detection and enhancement network, wherein the FishNet network includes a panoramic perception module and a gaze shift detection module, the panoramic perception module includes a panoramic perception plug-in submodule and an ERP local encoder, the panoramic perception plug-in submodule is composed of a spherical to plane grid projection function module and a panoramic perception decoder, and the gaze shift detection module includes a selective feature screening submodule and a gaze shift perception feature enhancement submodule.
[0009] 3) For each panoramic video gaze point transfer data in the above panoramic video gaze point transfer data set, perform the following steps:
[0010] The panoramic video gaze point transfer data is input into the spherical to plane grid projection function module included in the panoramic perception plug-in submodule in the FishNet network to perform image preprocessing to obtain an undistorted version of the ERP panorama;
[0011] Inputting the undistorted version of the ERP panorama into the ERP local encoder to perform feature extraction processing to obtain local features of the panorama;
[0012] Inputting the above-mentioned local features of the panoramic image into the panoramic perception decoder included in the above-mentioned panoramic perception plug-in submodule to restore global information and obtain the global features of the panoramic image;
[0013] Inputting the panoramic image global features into the selective feature screening submodule included in the gaze point shift detection module to perform shifted gaze point recognition processing to obtain a high-discrimination domain group, wherein each high-discrimination domain is a region in the global image that includes a shifted gaze point;
[0014] The high discrimination domain group is input into the gaze point transfer perception feature enhancement submodule included in the gaze point transfer detection module to perform gaze point transfer perception feature enhancement processing to obtain the panoramic video gaze point transfer enhancement feature.
[0015] Through the above steps, a method for detecting and enhancing the gaze point transfer of a panoramic video based on global information is realized. Compared with the prior art, the beneficial effects of the present disclosure are:
[0016] 1. Enhanced gaze point shift perception features: This paper introduces gaze point shift perception features. Through a newly designed network structure and learning framework, the network can more accurately capture and understand the gaze point shift phenomenon in panoramic videos.
[0017] 2. Panoramic perception and distortion-free features: Through panoramic perception technology and special feature generation methods, the detector model disclosed in the present invention can generate globally perceived and distortion-free features, providing a more reliable basis for the accurate prediction of gaze shift.
[0018] 3. Embeddability and end-to-end training: The disclosed method is designed as a general plug-in that can be easily embedded into existing frameworks while supporting end-to-end training and testing. This flexibility enables the detector to fully utilize pre-trained feature backbones and improve the expressiveness and semantic information of features.
[0019] 4. Viewpoint shift detection: By introducing deformable viewpoint shift detection, the present invention is more flexible in handling gaze point shifts. By using selective feature screening and shift-aware feature enhancement, it can better distinguish between shifted gaze points and normal gaze points. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0021] Figure 1 A flowchart of a panoramic video gaze point transfer detection and enhancement method based on global information provided by the present disclosure;
[0022] Figure 2 A schematic diagram of a gaze point shift phenomenon focused on by a panoramic video gaze point shift detection and enhancement method based on global information provided by the present disclosure;
[0023] Figure 3 A schematic diagram of an application scenario of a panoramic video gaze point transfer detection and enhancement method based on global information provided by the present disclosure;
[0024] Figure 4 A schematic diagram of a spherical distance weighted calculation method for a panoramic video gaze point transfer detection and enhancement method based on global information provided by the present disclosure;
[0025] Figure 5 A schematic diagram of the gaze point transfer feature enhancement steps of a panoramic video gaze point transfer detection and enhancement method based on global information provided in the present invention. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0028] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0031] The present disclosure is further described below through embodiments in conjunction with the accompanying drawings, but the scope of the present disclosure is not limited in any way.
[0032] The panoramic video gaze shift detection and enhancement method based on global information disclosed in the present invention aims to overcome the limitations of the existing technology in capturing the gaze shift phenomenon. By innovatively adopting panoramic perception technology, the detector can extract the global features of the panoramic video in time and space without distortion, laying a solid foundation for accurately capturing the gaze shift. The introduction of deformable viewpoint shift detection, including selective feature screening and shift-aware feature enhancement, enables the system to handle gaze shift more flexibly and accurately, and effectively distinguish it from normal gaze points. Its universal plug-in design allows the method to be easily integrated into different frameworks, while supporting end-to-end training and testing, making full use of pre-trained feature backbones, and improving the performance and applicability of gaze prediction. It is worth noting that the inventor adopts the back-propagation mechanism of gaze transfer learning, and by adjusting the loss function, the system is more focused on learning and understanding the gaze transfer process, further improving the performance of the panoramic video gaze transfer detection and enhancement method based on global information. This innovative panoramic video gaze point detection and enhancement method marks an important progress in the field of gaze point research, and provides a more reliable and innovative solution for gaze point transfer in complex scenes.
[0033] Figure 1 The process 100 of the panoramic video gaze point transfer detection and enhancement method based on global information is shown. The panoramic video gaze point transfer detection and enhancement method based on global information is specifically implemented including the following steps:
[0034] Step 101, obtaining a distortion-free panoramic video gaze point transfer dataset.
[0035] The execution subject of the panoramic video gaze point transfer detection and enhancement method based on global information can obtain a distortion-free panoramic video gaze point transfer dataset from a database. Among them, the panoramic video gaze point transfer data in the above panoramic video gaze point transfer dataset can be a panoramic video image of continuous frames that characterizes the gaze point transfer process. For example, the above panoramic video gaze point transfer dataset can be a subset of the PanopticVideo-300 dataset. The PanopticVideo-300 dataset is a dataset containing a large number of gaze point transfer phenomena. The data in the dataset is mainly in video format. The dataset is collected using the WinDB (Window With ADynamic Blurring, window dynamic smoothing program) method and mainly contains 300 videos. The uniqueness of the PanopticVideo-300 dataset is that it covers a striking phenomenon-"gaze point transfer". This phenomenon has brought great challenges to the existing popular gaze point prediction methods. In traditional gaze point prediction research, it is usually assumed that the gaze point is smooth in time and space. However, PanopticVideo-300 shows an unusual situation-the gaze point can be quickly transferred from one position to another in a very short time, and this transfer may involve a long spatial distance. The existence of this "gaze point shift" phenomenon makes the previous popular gaze point prediction methods face severe challenges when processing the PanopticVideo-300 dataset. Traditional methods usually limit the prediction of gaze points by emphasizing spatiotemporal smoothness, but in the face of such intermittent and sudden "gaze point shift" situations, this limitation may lead to performance degradation. Therefore, researchers urgently need innovative methods to better adapt to the special phenomena in this dataset and ensure the accuracy and robustness of gaze point prediction.
[0036] Step 102, designing a FishNet panoramic video gaze shift detection and enhancement network.
[0037] A FishNet panoramic video gaze shift detection and enhancement network is designed. Among them, the FishNet network may include a panoramic perception module and a gaze shift detection module. The core technical principle of the panoramic perception module is to achieve global feature embedding of undistorted images. The panoramic perception module may include a panoramic perception plug-in submodule and an ERP local encoder. The panoramic perception plug-in submodule may be composed of a spherical to plane grid projection function module and a panoramic perception decoder. The spherical to plane grid projection function module may be a module for converting a typical ERP panoramic image into an undistorted version of an ERP panoramic image. In the undistorted version of the ERP image, all sub-pieces are undistorted and will be used as separate inputs to the "ERP local encoder". The ERP local encoder may be a multi-stage encoder based on Transformer (attention-based conversion model) that takes sub-patch pieces in the undistorted ERP version as independent inputs and undistorted panorama local features as outputs, aiming to establish relationships between sub-pieces and provide a strong feature basis for subsequent steps. The panoramic perception decoder can be used to collect multi-level features output by the ERP local encoder, and to project the panoramic local feature set generated by the encoder back to the ERP information by using the newly designed "plane to spherical grid projection". The above-mentioned gaze shift detection module may include a selective feature screening submodule and a gaze shift perception feature enhancement submodule. The above-mentioned selective feature screening submodule can be used to identify high-discrimination domains including shifted gaze points. The above-mentioned gaze shift perception feature enhancement submodule can be used to enhance the perception features of gaze shift to determine the process of gaze shift.
[0038] In addition, the panoramic perception plug-in submodule is usually designed as an "independent" transformer and can be regarded as a general plug-in specifically for processing the visual distortion of the extracted features when extracting global features based on ERP panoramic images. This plug-in nature enables the module to be flexibly embedded in the existing framework while achieving end-to-end training and testing. For example, the existing framework can be a variant of the transformer, a ViT (Vision Transformer) model or a PVT (Pyramid Vision Transformer) model. It is worth noting that the solution disclosed in the present invention fully supports the pre-trained feature backbone of the network, and the network can make full use of the pre-trained feature backbone to improve the expressiveness and semantic information of the features. Therefore, the features generated by the panoramic perception plug-in submodule disclosed in the present invention are global, distortion-free, and have strong semantic information. The globality and distortion-free nature of these features are crucial for dealing with the phenomenon of "fixation point shift". In particular, since "fixation point shift" usually involves the situation where the visual focus shifts rapidly in the panorama, the global and distortion-free features enable the network to better capture this change. Furthermore, through the panoramic perception method proposed in this disclosure, feature calculation has obtained a new foundation, which is also an important step in the first attempt to bridge the gap between the traditional 2D (Two Dimensional) research field and the panoramic research field. This move is expected to introduce more comprehensive and accurate information to the field of gaze point prediction, improving its performance and applicability.
[0039] Step 103, for each panoramic video gaze point transfer data in the panoramic video gaze point transfer data set, perform the following steps:
[0040] Step 1031, input the panoramic video gaze point transfer data into the spherical to plane grid projection function module included in the panoramic perception plug-in submodule in the FishNet network for image preprocessing to obtain an undistorted version of the ERP panorama.
[0041] The execution subject can input the panoramic video gaze point transfer data into the spherical to plane grid projection function module included in the panoramic perception plug-in submodule in the FishNet network to perform image preprocessing to obtain an undistorted version of the ERP panorama. The image preprocessing performed by the spherical to plane grid projection function module can include a spherical projection operation and a sub-window segmentation operation. Specifically, the panoramic image can be mapped from the ERP to a spherical space, and then reformulated by cutting the obtained spherical sub-window to obtain an undistorted ERP. * The above image preprocessing process can be specifically designed according to the following formula group:
[0042]
[0043]
[0044]
[0045]
[0046] Among them, ERP represents equirectangular projection image. Sphere represents spherical projection. E in E2S and S2E represents ERP image and S represents sphere projection. Represents the projection from ERP to Sphere. Indicates projecting the Sphere back to the ERP, SGrid(·) indicates grid segmentation of the sphere, and SSlices indicates the spherical sub-slices obtained by grid segmenting the sphere. EPats indicates the topological structure of the ERP sub-patch. An ERP sub-patch can be a square plane obtained by patching the tangent plane perpendicular to the normal corresponding to each spherical sub-slice after slicing the sphere. SWindowS indicates a spherical sub-window. A spherical sub-window can be a tangent plane perpendicular to its own normal corresponding to each spherical sub-slice after slicing the sphere. The E stands for EPats, S stands for SSlices, and W stands for SWindows. Represents the mapping between ERP sub-patches and spherical sub-slices. represents the mapping between spherical sub-slices and spherical sub-windows. SWindow(·) represents the division of the sphere into uniform sub-windows. ERP * Fill(·) indicates the undistorted version of the ERP panorama. Fill(·) indicates the use of EPats as an indicator to re-formulate the undistorted version of the ERP panorama, i.e., ERP * Fill(·) forms a distortion-free ERP by splicing EPats according to the ERP layout. Because each EPats can find the corresponding position on the ERP, the layout of the EPats is the same as the ERP layout. However, since EPats are not distorted, the spliced ERP * There is no distortion. Distortion Free means no distortion. Therefore, the above step 1031 provides us with a more accurate and comprehensive image representation, providing a more reliable basis for the prediction of the gaze point.
[0047] Step 1032: Input the undistorted version of the ERP panoramic image into the ERP local encoder for feature extraction processing to obtain local features of the panoramic image.
[0048] The execution subject can input the undistorted version of the ERP panoramic image into the ERP local encoder for feature extraction to obtain the local features of the panoramic image. First, the ERP local encoder extracts the input undistorted version of the ERP panoramic image ERP by Split (·) operation. * Segment into separate patches, and then perform feature extraction on the obtained patches to obtain four intermediate features F 1 、F 2 、F 3 、F 4 This process is to capture the local features of the panoramic image in more detail and provide richer information for the subsequent panoramic perception decoder. These four intermediate features have different sizes, ranging from W×H=4×4 to W×H=32×32, where W and H are the width and height of the ERP respectively. The feature extraction process of the above ERP local encoder can be specifically designed according to the following formula:
[0049]
[0050] Among them, F 1,2,3,4 represents the four local features obtained by the above ERP local encoder. ERPEnC(·) represents the above ERP local encoder. Split(·) represents the ERP * Segmented into separate patches as the input of the above ERP local encoder. GS2E(·) represents the spherical to plane grid projection module. Grid-like Spherical-to-2D means projecting the sphere onto the 2D plane to get sslices sub-slices.
[0051] The intermediate features obtained by the ERP local encoder are diverse, providing detailed and multi-level information for different parts of the panoramic image. However, since these features are different from the redundant information contained in the original ERP, a mechanism is needed to readjust them to make them consistent with the original ERP. Since shallow features are usually affected by noise, the present disclosure decides to abandon F in practical applications. 1 Therefore, in the subsequent step 1033, only F 2 、F 3 、F 4 These three intermediate features ensure alignment of these distortion-free global feature representations while preserving the topological structure of the original ERP.
[0052] It should be noted that step 1031 combines EPats into ERP by splicing * In step 1032, ERP *The Split(·) operation can be used to split the small square patches that can be directly input into the transformer. For ease of operation, the present disclosure directly performs segmentation according to EPats during segmentation. At this time, the patches obtained by segmentation are actually EPats.
[0053] Step 1033, inputting the local features of the panoramic image into the panoramic perception decoder included in the panoramic perception plug-in submodule to restore the global information and obtain the global features of the panoramic image.
[0054] The execution subject can input the local features of the panoramic image into the panoramic perception decoder included in the panoramic perception plug-in submodule to restore the global information and obtain the global features of the panoramic image. 2,3,4 The panoramic perception decoder can perform feature alignment on the input local features through mesh projection to restore global information and obtain the global features of the panoramic image. The feature alignment process can ensure accurate feature information at multiple scales of the panoramic image. In addition, due to the local feature F 4 The resolution is low and it is directly used as a rough locator. This clever design injects a more flexible and efficient feature utilization mechanism into the "panoramic perception decoder". Therefore, the above grid projection operation can be specifically designed according to the following formula:
[0055]
[0056] Where GF represents the global feature of the panorama output by the panorama-aware decoder. Fusion(·) represents a collector including convolution, batch normalization and ReLU. Concat(·) represents the channel-level feature cascade function. The superscripts represent different downsampling scales. When the superscript is 1, it indicates a downsampling scale of 8*8. The superscript 2 indicates a downsampling scale of 16*16. DefConv(·) represents a deformable convolution, which is used to further mitigate the slight misalignment after the Fill(·) operation and ensure the accuracy of the features throughout the process. This unique and meticulous process provides us with a more accurate and reliable tool for panoramic gaze point prediction.
[0057] Since there is a significant difference between the displacement of the gaze point and the "normal gaze point", the normal gaze point is smooth in time and space, while the displaced gaze point may jump on the spherical surface and span a long distance. Since the "gaze point displacement" phenomenon is relatively rare, it is easily suppressed by the number of normal gaze points, and is regarded as noise in network training and eventually diluted. Therefore, the present disclosure further adopts the following steps 1034 and 1035 to perceive the "gaze point transfer" phenomenon and accurately determine whether it exists and where it occurs. Among them, step 1034 can capture the displaced gaze point, and step 1035 can focus on these gaze point transfer areas to achieve more discriminative processing.
[0058] Step 1034, input the panoramic image global features into the selective feature screening submodule included in the gaze point transfer detection module to perform shifted gaze point recognition processing to obtain a high discrimination domain group.
[0059] The above-mentioned execution subject can input the above-mentioned panoramic global features into the selective feature screening submodule included in the above-mentioned gaze point transfer detection module to perform shifted gaze point recognition processing to obtain a high-discrimination domain group. Among them, each high-discrimination domain can be a region in the global map containing shifted gaze points. When the gaze point transfer detection is performed, it is found that the shifted gaze point exhibits three characteristic attributes. The first feature is that the shifted gaze point usually has a significant feature response (that is, the response value of certain regional features is high), which makes them more prominent in the panoramic image. The second feature is that the area related to the "gaze point transfer" usually attracts most of the gaze points in the scene, forming a "spotlight" effect (that is, the feature response value of a certain area is very high). This is because "gaze point transfer" is usually accompanied by the occurrence of sudden events, and the user's attention will be quickly attracted and concentrated. The third feature is that there is a large spherical distance between the "spotlights" in temporally adjacent frames (that is, the distance on the spherical surface between the highest response value areas of video frames that are very close is very far). Taking these three characteristic attributes into consideration, the present disclosure can perform shifted gaze point recognition processing on the above-mentioned global features of the panoramic image through the selective feature screening submodule included in the above-mentioned gaze point shift detection module according to the following steps to obtain a high-discrimination domain group:
[0060] The first step is to identify the isolated region with the largest feature response in each frame feature map. The above identification steps can be designed as follows:
[0061]
[0062] in, Returns a matrix representing the channel averages of its input GF. max{·} represents the maximum value function. Indicates a predefined hard threshold. Dynamic Thresholding indicates a dynamic threshold. |·| +Indicates that only positive values of the matrix are kept. Fo indicates an isolated region. u indicates a sequence number. Fo u represents the uth isolated region. Represents connected component analysis, and returns u isolated regions. Ms{·} represents the location of the gaze point. Spot represents the area with the most concentrated gaze points and high feature response. Specifically, the above recognition step can be effectively identified by dynamic threshold processing according to the first feature attribute mentioned above to those areas with high feature response (i.e., high discrimination domain), which are likely to be "spotlights" containing shifted gaze points. Through connected component analysis, these areas are divided into u isolated parts (Fo), and then these "points" are located through the function Ms{·}, and the isolated area with the maximum feature response is selected based on the regional average.
[0063] Therefore, the above identification process enables the present disclosure to satisfy the first two characteristic attributes of “gaze point shift”.
[0064] The second step is to determine the spherical distance between the isolated regions with the maximum feature response in different video frames. The spherical distance can be determined according to the following formula:
[0065]
[0066] Among them, ω t Represents Spot t The probability of becoming a region containing a shifted fixation point. The subscript t represents the frame number. The subscript t+m represents the t+mth frame, and m is randomly selected from {1, 2, ..., 15}. Spot t Represents the Spot area in the feature map of the tth frame. t+m Represents the Spot area in the feature map of the t+mth frame. GF t represents the panoramic global feature map of the tth frame. SFF(·) represents the selective feature filtering method. f(·) represents the return of the center coordinates {Lat, Lon} of its input area. Lat and Lon represent latitude and longitude respectively. ||·|| S It represents the spherical distance between the coordinates of its input. The spherical distance between the center coordinates of the Spot area corresponding to the two frames of feature maps can be expressed by the following formula:
[0067]
[0068] Lat t Indicates the latitude of the center coordinates of the Spot area in the panoramic global feature map of the tth frame, Lon t Indicates the longitude of the center coordinates of the Spot area in the panoramic global feature map of the tth frame, Lat t+mIndicates the latitude of the center coordinates of the Spot area in the panoramic global feature map of the t+mth frame, Lon t+m Represents the longitude of the center coordinates of the Spot area in the panoramic global feature map of the t+mth frame.
[0069] Therefore, the determination of the above spherical distance enables the present disclosure to satisfy the third characteristic attribute of “focal point transfer”, and ω t The larger the number, the larger the spot. t The higher the probability of being a region including the shifted gaze point.
[0070] The third step is to determine the high discrimination domain group based on the determined spherical distances. First, select the spherical distance with the largest value from each spherical distance as the target spherical distance. Then, the Spot t Regions and Spots t+m The regions were identified as high discriminant domain groups.
[0071] Step 1035: input the high discrimination domain group into the gaze point transfer perception feature enhancement submodule included in the gaze point transfer detection module to perform gaze point transfer perception feature enhancement processing to obtain the panoramic video gaze point transfer enhancement feature.
[0072] The above step 1034 reveals that the panoramic scene may contain high-discrimination domains of "fixation point shift". However, in order to guide the network to focus more on these areas, step 1035 of the present disclosure further proposes a "fixation point shift perception feature enhancement method". Among them, the panoramic video fixation point shift enhancement feature can characterize the process of fixation point shift. The above-mentioned fixation point shift perception feature enhancement processing may include two parts: feature lighting process and feature enhancement process. The core idea of this method is to highlight the features related to the shifted fixation point through the two steps of feature lighting and feature enhancement, so as to achieve the purpose of enhancing the fixation point shift perception feature. Specifically, the above-mentioned high-discrimination domain group can be subjected to fixation point shift perception feature enhancement processing through the following steps to obtain the panoramic video fixation point shift enhancement feature:
[0073] The first step is to "light up" all features that may contain shifted fixations. The implementation is relatively crude, that is, according to the increase of the spherical distance ω, the feature value is increased through a specific scheme. This makes these areas account for a larger proportion of the overall training loss, guiding the FishNet network of the present disclosure to focus more on these different features. Specifically, the feature lighting process can be designed according to the following formula:
[0074] GF * ←Lightup(GF, Spor, ω).
[0075] Among them, GF *Represents the feature map after lighting. Lightup(·) means multiplying the feature value GF by 1+ω according to the spherical distance ω, so as to ensure that when ω=0, the feature of GF does not change, and when ω>0, the feature of GF can positively increase ω. In this way, the area with the highest response value and the most concentrated gaze points can be found, while the background area can be suppressed.
[0076] However, there is a key problem with the simple "lighting up" process: even if the network knows where to shift the gaze point, it may still not really understand the process of "gaze point shifting". From the network's point of view, the modified features are almost the same as normal features, except that the values in some areas are larger, indicating that the network can learn some information from them, but this information is irrelevant to the process of "gaze point shifting". In order to solve this problem, the present disclosure decides to adopt the following feature enhancement steps to further enable the network to learn the process of gaze point shifting, that is, how the focus shifts from one spherical position to another.
[0077] The second step is to perform feature enhancement processing on the target lit area to obtain the panoramic video gaze point transfer enhancement feature. The target lit area can be the feature area with the highest response value and the most concentrated gaze points after the feature map is lit. The feature enhancement process can be designed according to the following formula:
[0078]
[0079] Represents the feature map after the tth frame is lit. It represents the feature map after the t+mth frame is lit. Flat(·) means flattening the input matrix into one column. It represents the feature matrix obtained by superimposing the features of the tth frame and the t+mth frame at the channel level. ⊙ represents the element-by-element matrix multiplication operation. Representation Matrix . Softmax(·) represents normalization. σ(·) represents the sigmoid activation function. Indicates that a single point of two different frames is converted into a "unified shift process". dFlat(·) means that its input is divided back into two matrices. EF represents the enhanced features of the Spot area. EF t EF represents the enhanced features of the Spot area in the panoramic global feature map of the tth frame. t+m Represents the enhanced features of the Spot area in the panoramic global feature map of the t+mth frame.
[0080] Therefore, according to the above steps 1034 and 1035, it is not only helpful to overcome the conflict between "fixation point displacement" and "normal fixation point", but also enables the network to more finely identify and understand the change pattern of fixation point. By paying more attention to "fixation point shift", more comprehensive and accurate information will be introduced into the field of fixation point prediction.
[0081] Since the overall training loss of video-related tasks usually involves multiple consecutive 15 frames, and "gaze point shift" is a sudden process completed within two frames. In this case, the frames with gaze point shift only account for a small part of the entire training loss, ignoring the importance of the "gaze point shift" process in training. Therefore, in order to solve this problem, the present disclosure decides to adopt the "gaze point shift back propagation" network training method, whose goal is to focus the process of back propagation of training loss on frames with gaze point shift by complying with the idea of "gaze point shift perceptual feature enhancement". This learning method is not performed at the feature level, but directly modifies the back-propagated training loss, that is, amplifies the loss of frames with shifted gaze points. The core of this learning framework is to modify the loss function so that it pays more attention to frames with gaze point shifts instead of being overwhelmed by the overall loss. The above network training method is as follows.
[0082] Optionally, the FishNet network may further include a gaze transfer back propagation module. The gaze transfer back propagation module may train the FishNet network through a gaze transfer back propagation strategy according to the following loss function:
[0083]
[0084] in, Represents the loss value between the enhanced true fixation point and the true fixation point. GT represents the true fixation point. * Represents the real gaze point after enhancement. ={Fo} represents the real fixation point after enhancement in the t-th frame image. Clustering(·) represents clustering processing. {Fo} represents the fixation point cluster generated by clustering (i.e., density-based clustering algorithm). Ms{·} represents the selection of a fixation point cluster from {Fo}, and the selected cluster should have the largest number of fixation points. Spot * Indicates the cluster with the largest number of fixations in the clustering results. Represents the KL (Kullback-Leibler) divergence loss function. Represents the MSE (Mean Square Error) loss function. Represents Spot *The probability of becoming a region containing a shifted fixation point. λ represents the balance factor, which is used to and For example, λ can be 5. It should be noted that ω t and The difference is that ω t It is aimed at the feature level (GF), It is aimed at the manual annotation level (GT). As a result, the FishNet network learns and understands the gaze shift phenomenon more effectively.
[0085] As an example, Figure 3 The following is a schematic diagram showing an application scenario of a panoramic video gaze shift detection and enhancement method based on global information. Figure 3 Among them, A, B, C, D, E, F, G, and H represent the execution order of the corresponding steps, “#” represents the sequence number, “#t” represents the tth frame, and “#t+m” represents the t+mth frame. Figure 3 The method includes the steps of “A panoramic perception”, “B gaze transfer detection method”, and “C gaze transfer back propagation”. Among them, the step of “A panoramic perception” corresponds to the above-mentioned panoramic video gaze transfer detector model. “A panoramic perception” also includes the steps of “D spherical to plane grid projection”, “E ERP local information encoding” and “F panoramic perception feature decoding”. Among them, the step of “D spherical to plane grid projection” corresponds to the above-mentioned spherical to plane grid projection module. The step of “E ERP local information encoding” corresponds to the above-mentioned ERP local encoder. The step of “F panoramic perception feature decoding” corresponds to the above-mentioned panoramic perception decoder. “B gaze transfer detection method” includes the steps of “G selective feature screening” and “H feature enhancement of gaze transfer perception”. “C gaze transfer back propagation” corresponds to the above-mentioned gaze transfer learning back propagation step.
[0086] also, Figure 3 The lower left area also shows that step "F panoptic perception feature decoding" clearly shows that the disclosure covers multiple scales of "grid" space (i.e., scale 1 and scale 2) through two "plane to spherical grid projections". This is intended to be consistent with the multi-level structure of the panoptic perception decoder described above, ensuring that the generated panoptic perception features can accurately capture global information at multiple scales. Figure 3 The top area also shows the entire "gaze transfer learning" process, where the loss function involves KL loss and MSE loss, and combines the "gaze transfer perception feature enhancement" mechanism to enable the network to learn the "gaze transfer" process more specifically. Therefore, the back propagation mechanism of gaze transfer learning disclosed in the present invention can specifically amplify the loss of frames with gaze transfer to ensure that the network learns and understands this burst process more effectively.
[0087] Continue to refer Figure 4 , Figure 4 The schematic diagram of the spherical distance weighted calculation method of the panoramic video gaze point transfer detection and enhancement method based on global information is shown. First, the position coordinates of all pixel points in the Spot area are obtained and the average value is calculated. Then the calculated average value coordinates, that is, the coordinates of the center point on the plane, are calculated by Figure 4 The projection to XY is converted into spherical coordinates, i.e., the center coordinates. Then the spherical distance between the tth frame and the t+mth frame is calculated. This spherical distance will be used as the weight of the gaze point transfer. The larger the weight, the greater the possibility of gaze point transfer, which means that the network needs to focus on the area where the viewpoint is transferred. The weight will be directly multiplied by the Spot area as the weight weighting.
[0088] Further references Figure 5 , Figure 5 A schematic diagram of the gaze point transfer feature enhancement steps of the panoramic video gaze point transfer detection and enhancement method based on global information is shown. Figure 5 It consists of two parts, showing the basic principles of the network learning the process of gaze shift. In part 1, the feature values are adjusted through the "lighting up" process. When the feature is lit, the feature value can be increased according to the spherical distance ω, making these areas more prominent during training. In part 2, these modified features are distinguished from normal features through a series of feature enhancement operations, allowing the network to truly learn the process of "gaze shift". It should be noted that the core of this process is It follows the typical co-attention mechanism to transform a single point of two different frames into a “unified shift process”.
[0089] Therefore, the present invention proposes a panoramic video gaze point transfer detection and enhancement method based on global information, which can break through the limitations of existing technologies in capturing gaze point transfer phenomena and achieve more accurate and comprehensive panoramic video gaze point transfer detection by introducing innovative technologies such as panoramic perception, distortion-free feature generation and deformable viewpoint transfer detection.
[0090] It should be noted that the purpose of publishing the embodiments is to help further understand the present disclosure, but those skilled in the art can understand that various substitutions and modifications are possible without departing from the spirit and scope of the present disclosure and the appended claims. Therefore, the present disclosure should not be limited to the contents disclosed in the embodiments, and the scope of protection claimed by the present disclosure shall be subject to the scope defined in the claims.
Claims
1. A panoramic video gaze point transfer detection and enhancement method based on global information, comprising: Obtain a distortion-free panoramic video gaze transfer dataset; A FishNet panoramic video gaze shift detection and enhancement network is designed, wherein the FishNet network includes a panoramic perception module and a gaze shift detection module, the panoramic perception module includes a panoramic perception plug-in submodule and an ERP local encoder, the panoramic perception plug-in submodule is composed of a spherical to plane grid projection function module and a panoramic perception decoder, and the gaze shift detection module includes a selective feature screening submodule and a gaze shift perception feature enhancement submodule; For each panoramic video gaze point transfer data in the panoramic video gaze point transfer data set, the following steps are performed: Input the panoramic video gaze point transfer data into the spherical to plane grid projection function module included in the panoramic perception plug-in submodule in the FishNet network to perform image preprocessing to obtain an undistorted version of the ERP panorama; Inputting the undistorted version of the ERP panorama into the ERP local encoder for feature extraction processing to obtain local features of the panorama; Inputting the local features of the panoramic image into the panoramic perception decoder included in the panoramic perception plug-in submodule to restore global information to obtain the global features of the panoramic image; Inputting the panoramic image global features into the selective feature screening submodule included in the gaze point transfer detection module to perform shifted gaze point recognition processing to obtain a high-discrimination domain group, wherein each high-discrimination domain is a region in the global image containing a shifted gaze point; The high discrimination domain group is input into the gaze point transfer perception feature enhancement submodule included in the gaze point transfer detection module to perform gaze point transfer perception feature enhancement processing to obtain the panoramic video gaze point transfer enhancement feature.
2. The method according to claim 1, wherein: The spherical-to-plane grid projection function module is a module for converting a typical ERP panoramic image into a distortion-free version of the ERP panoramic image.
3. The method according to claim 1, wherein: The image preprocessing performed by the spherical-to-plane grid projection function module includes a spherical projection operation and a sub-window segmentation operation, and the image preprocessing process is designed according to the following formula group: Among them, ERP represents equidistant cylindrical projection image, Sphere represents spherical projection, E in E2S and S2E represents ERP image, and S represents Spere spherical projection. Represents the projection from ERP to Sphere, represents the projection of Sphere back to ERP, SGrid(·) represents the grid-like segmentation of the sphere, SSlices represents spherical sub-slices, EPats represents the topological structure of ERP sub-patches, SWindows represents spherical sub-windows, The E in it stands for WPats, S stands for SSlices, and W stands for SWindows. represents the mapping between ERP sub-patches and spherical sub-slices, represents the mapping between spherical sub-slices and spherical sub-windows, SWindow(·) represents the division of the sphere into uniform sub-windows, and ERP * represents the undistorted version of the ERP panorama, and Fill(·) represents the use of EPats as an indicator to re-formulate the undistorted version of the ERP panorama, i.e., ERP * , Distortion Free means no distortion.
4. The method according to claim 3, wherein: The feature extraction process of the ERP local encoder is designed according to the following formula: F 1,2,3,4 represents the four local features obtained by the ERP local encoder, ERPEnC(·) represents the ERP local encoder, Split(·) represents the ERP * Segmented into separate patches as the input of the ERP local encoder, GS2E(·) represents the spherical to plane grid projection module, and Grid-like Spherical-to-2D means projecting the sphere onto the 2D plane to obtain sslices sub-slices.
5. The method according to claim 4, wherein: The panoramic perception decoder performs feature alignment processing on the input local features through a grid projection operation to restore the global information and obtain the global features of the panoramic image, and the grid projection operation is designed according to the following formula: Among them, GF represents the global feature of the panoramic image output by the panoramic perception decoder, Fusion(·) represents a collector including convolution, batch normalization and ReLU, Concat(·) represents the channel-level feature cascade function, The superscripts represent different downsampling scales. When the superscript is 1, it means the downsampling scale is 8*8. The superscript 2 indicates a downsampling scale of 16*16, and DefConv(·) indicates deformable convolution, which is used to further alleviate the slight misalignment after the Fill(·) operation.
6. The method according to claim 5, wherein: The step of inputting the panoramic image global features into the selective feature screening submodule included in the gaze point shift detection module to perform shifted gaze point recognition processing to obtain a high discrimination domain group includes: Identify the isolated region with the maximum feature response in each frame feature map, wherein the identification step is designed as follows: in, Returns a matrix that represents the channel average of its input GF. max{·} is the maximum value function. is a predefined hard threshold, Dynamic Thresholding represents a dynamic threshold, through which regions with high feature response can be obtained, |·| + Indicates that only the positive values of the matrix are kept, Fo indicates the isolated area, u indicates the sequence number, Fo u represents the uth isolated region, represents connected component analysis and returns u isolated regions, Ms{·} represents the location of the fixation point, and Spot represents the area with the most concentrated fixation points and high feature response; The spherical distance between isolated regions with maximum feature responses in different video frames is determined, wherein the spherical distance is determined according to the following formula: Among them, ω t Represents Spot t The probability of becoming a region containing a shifted fixation point, where subscript t represents the frame number, subscript t+m represents the t+mth frame, and m is randomly selected in {1, 2, ..., 15}. t Represents the Spot area in the feature map of the tth frame, Spot t+m Represents the Spot area in the feature map of the t+mth frame, GF t represents the panoramic global feature map of the tth frame, SFF(·) represents the selective feature filtering method, f(·) represents returning the center coordinates {Lat, Lon} of its input area, Lat and Lon represent latitude and longitude respectively, ||·|| S It means measuring the spherical distance between the input coordinates. The spherical distance between the center coordinates of the Spot area corresponding to the two frames of feature maps is expressed by the following formula: ||{Lat t ,Can t },{Lat t+m ,Can t+m }|| S arccos(sin(Lat) t )×sin(La t+m )+cos(Lat t )×cos(La t+m )×cos(Lon t -Can t+m )), Among them, Lat t Indicates the latitude of the center coordinates of the Spot area in the panoramic global feature map of the tth frame, Lon t Indicates the longitude of the center coordinates of the Spot area in the panoramic global feature map of the tth frame, Lat t+m Indicates the latitude of the center coordinates of the Spot area in the panoramic global feature map of the t+mth frame, Lon t+m Represents the longitude of the center coordinates of the Spot area in the panoramic global feature map of the t+mth frame; Based on the determined spherical distances, a high discrimination domain group is determined.
7. The method according to claim 6, wherein: The gaze point shift perception feature enhancement process includes a feature lighting process and a feature enhancement process, and the feature lighting process is designed according to the following formula: GF * ←Lightup(GF,Spot,ω), Among them, GF * It represents the feature map after lighting. Lightup(·) means multiplying the feature value GF by 1+ω according to the spherical distance ω, ensuring that when ω=0, the feature of GF does not change. When ω>0, the feature of GF can positively increase ω. The feature enhancement process is designed according to the following formula: in, represents the feature map after the tth frame is lit, represents the feature map after the t+mth frame is lit, and Flat(·) means flattening the input matrix into one column. represents, ⊙ represents the element-by-element matrix multiplication operation, Representation Matrix The transpose of , Softmax(·) represents the normalization process, σ(·) represents the sigmoid function, Indicates that a single point of two different frames is converted into a "unified shift process", dFlat(·) means that its input is divided back into two matrices, EF represents the enhanced features of the Spot area, and EF t represents the enhanced features of the Spot area in the panoramic global feature map of the tth frame, EF t+m Represents the enhanced features of the Spot area in the panoramic global feature map of the t+mth frame.
8. The method according to claim 7, wherein: The FishNet network also includes a gaze point transfer back propagation module, which trains the FishNet network through a gaze point transfer back propagation strategy according to the following loss function: in, It represents the loss value between the enhanced true fixation point and the true fixation point, GT represents the true fixation point, GT * represents the real gaze point after enhancement, represents the enhanced real fixation point in the t-th frame image, Clustering(·) represents clustering processing, {Fo} represents the fixation point cluster generated by clustering (i.e., the classic DBSCAN), Ms{·} selects a fixation point cluster from {Fo}, and the selected cluster should have the largest number of fixations, Spot * represents the cluster with the largest number of fixations in the clustering result, represents the KL divergence loss function, represents the MSE mean square error loss function, Represents Spot * The probability of becoming a region containing a shifted fixation point, λ represents the balance factor, which is used to and The loss value is balanced.
