VR panoramic space information analysis method and system based on artificial intelligence

Through panoramic semantic segmentation and convolutional network methods based on artificial intelligence, the semantic features and spatiotemporal features of VR panoramic videos are extracted, and a spatial attribute map is constructed, which solves the problem of difficulty in understanding the complex spatial information of VR panoramic videos in the existing technology, and achieves high-level Accurate panoramic spatial information analysis and application.

CN118570688BActive Publication Date: 2024-10-29CHANGZHOU PERFECT DIMENSION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410842866.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-29
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively understand and utilize the complex spatial information and spatio-temporal relationships in VR panoramic videos, which limits the application potential of VR panoramic videos.

Method used

Using an artificial intelligence-based method, the panoramic semantic segmentation model is used to extract the semantic features of the panoramic image, combined with the convolutional network to capture the temporal and spatial domain features of the panoramic video, construct a spatial basic attribute map and add time dimension dynamic information, and generate a semantic layout map and Space structure diagram.

Benefits of technology

It achieves in-depth analysis and effective organization of VR panoramic spatial information, improves the accuracy of semantic segmentation and content analysis, comprehensively describes dynamic changes and object interaction behaviors in panoramic videos, and improves the accuracy of panoramic spatial information analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570688B_ABST
    Figure CN118570688B_ABST
Patent Text Reader

Abstract

The present invention provides a VR panoramic space information analysis method and system based on artificial intelligence, which relates to the field of information analysis technology, including inputting a panoramic image into a panoramic semantic segmentation model to obtain a semantic segmentation result, based on a panoramic video, using a convolutional network, combined with a joint attention mechanism, learning inter-frame correlation and intra-frame importance, capturing temporal features and spatial features, and obtaining a content analysis result; based on the semantic segmentation result, determining basic nodes and basic edges, constructing a spatial basic attribute graph, adding time dimension dynamic information and object interaction relationships in the panoramic space to the spatial basic attribute graph based on the content analysis result, generating a spatial attribute graph, inputting the spatial attribute graph into a spatial information analysis network, generating a semantic layout graph and a spatial structure graph, and determining the VR panoramic space information analysis result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information analysis technology, and in particular to a VR panoramic space information analysis method and system based on artificial intelligence. Background Art

[0002] With the continuous development and application of virtual reality technology, VR panoramic video has been widely used in entertainment, education, tourism and other fields with its immersive experience. VR panoramic video captures real scenes from all angles and provides users with complete visual information. However, the spatial information contained in VR panoramic video is very rich and complex. Traditional analysis methods are difficult to effectively understand and utilize this spatial information, which limits the application potential of VR panoramic video.

[0003] Panoramic images are usually obtained by stitching together images taken by multiple cameras to form a spherical projection, which will cause geometric deformation of the image and bring difficulties to image processing and analysis. Panoramic videos contain not only spatial information, but also dynamic information that changes over time. Traditional methods are difficult to effectively capture this complex spatiotemporal relationship.

[0004] In summary, there is an urgent need for an artificial intelligence-based VR panoramic spatial information analysis method that can effectively represent and organize the spatial information of VR panoramic videos, make full use of spatiotemporal correlation and semantic information, deeply analyze the interaction between objects and regions, and have good scalability and real-time performance. The present invention can solve the problems in the prior art. Summary of the invention

[0005] The embodiments of the present invention provide a VR panoramic space information analysis method and system based on artificial intelligence, which can solve the problems in the prior art.

[0006] According to a first aspect of the embodiments of the present invention,

[0007] Provided is a VR panoramic space information analysis method based on artificial intelligence, comprising:

[0008] Acquire VR panoramic space information, obtain a panoramic image and a corresponding panoramic video, input the panoramic image into a panoramic semantic segmentation model, and obtain a semantic segmentation result, wherein the panoramic semantic segmentation model extracts shallow features and deep features by performing an adaptive convolution operation in a spherical coordinate system, and determines the probability distribution of each semantic category in combination with a spherical geometric loss function;

[0009] Based on the panoramic video, a convolutional network is used in combination with a joint attention mechanism to learn inter-frame correlation and intra-frame importance, capture temporal and spatial features, and perform content analysis on the panoramic video to obtain a content analysis result;

[0010] Based on the semantic segmentation result, basic nodes and basic edges are determined, and a spatial basic attribute graph is constructed. Based on the content parsing result, dynamic information of the time dimension and the interaction relationship of objects in the panoramic space are added to the spatial basic attribute graph to generate a spatial attribute graph. The spatial attribute graph is input into the spatial information analysis network to generate a semantic layout graph and a spatial structure graph, and the VR panoramic spatial information analysis result is determined.

[0011] In an optional embodiment,

[0012] The panoramic image is input into the panoramic semantic segmentation model to obtain the semantic segmentation results including:

[0013] A spherical coordinate system is set, and an adaptive variable convolution kernel is defined based on the latitude and longitude coordinates corresponding to each pixel point of the panoramic image, and the corresponding position of the sampling point of the adaptive variable convolution kernel is determined by spherical distance measurement, and the weight of the adaptive variable convolution kernel is adjusted according to the spherical distance between the sampling point and the convolution center point, so as to construct an adaptive variable convolution layer;

[0014] Based on multiple adaptive variable convolution layers, and connecting a batch normalization layer and an activation layer after each adaptive variable convolution layer, an encoder is constructed in combination with a pre-constructed downsampling layer to extract shallow features and deep features of the panoramic image; based on the downsampling layer, an upsampling layer is determined, and a decoder is constructed through jump connections and an attention mechanism, and semantic features are extracted by fusing the shallow features and the deep features, and the probability distribution of each pixel belonging to each semantic category is determined, and the semantic category with the largest probability is selected as the predicted category of the corresponding pixel point, so as to obtain the semantic segmentation result of the panoramic image.

[0015] In an optional embodiment,

[0016] The loss function of the panoramic semantic segmentation model includes:

[0017] It consists of a cross entropy loss function and a spherical geometry loss function, and the formula of the spherical geometry loss function is as follows:

[0018] ;

[0019] Among them, L2 represents the spherical geometry loss function, C represents the total number of semantic categories, c represents the semantic category index, and A c represents the predicted segmentation region of semantic category c, B c represents the true segmentation area of ​​semantic category c, S represents the spherical area integral element, and d c represents the distance metric between the predicted segmentation region of category c and the true segmentation region, σ represents the distance metric control factor, and R represents a region corresponding to A c With Bc Intersection or union, θ represents latitude and φ represents longitude.

[0020] In an optional embodiment,

[0021] Based on the panoramic video, a convolutional network is used in combination with a joint attention mechanism to learn inter-frame correlation and intra-frame importance, capture temporal and spatial features, and perform content analysis on the panoramic video. The content analysis results include:

[0022] Extracting image frames based on a frame sequence in the panoramic video, and performing size normalization and color space conversion on the image frames;

[0023] A one-dimensional temporal convolution kernel is set, and the correlation between two adjacent image frames is calculated in the temporal dimension through a temporal convolution operation, adjacent correlation information is extracted, correlation weights are determined, a temporal weight matrix is ​​constructed, and the temporal weight matrix is ​​combined with a frame sequence to capture temporal features;

[0024] Extract features from each image frame, generate a feature map, set a two-dimensional spatial convolution kernel, calculate the feature response value of each area in each image frame in the spatial dimension through the spatial convolution operation, determine the importance of the corresponding area, generate importance weights, construct a spatial weight matrix, combine the spatial weight matrix with the feature map, and capture spatial domain features;

[0025] The temporal features and the spatial features are input into a spatiotemporal convolutional network constructed by expanding a two-dimensional convolution kernel into a three-dimensional convolution kernel. The non-local attention mechanism is combined to calculate the long-range dependencies between frames and within frames, capture the global context, and generate a content analysis result of the panoramic video.

[0026] In an optional embodiment,

[0027] Based on the semantic segmentation result, basic nodes and basic edges are determined to construct a spatial basic attribute graph. Based on the content parsing result, time dimension dynamic information and the interaction relationship of objects in the panoramic space are added to the spatial basic attribute graph. Generating the spatial attribute graph includes:

[0028] Based on the semantic segmentation result, each semantic region is determined, and the semantic region is used as a basic node. Based on every two semantic regions adjacent in space, an undirected edge is established between the basic nodes corresponding to the semantic region, and the spatial basic attribute graph is determined based on the undirected edge.

[0029] For each basic node, based on the content analysis result, determine the image frame in which the basic node appears and the time period in which the image frame is located, determine the node time dimension dynamic information, and append the node time dimension dynamic information to the basic node to generate an enhanced node;

[0030] For each basic edge, two basic nodes corresponding to the basic edge are determined, and based on the content analysis result, image frames in which the two basic nodes appear at the same time are determined, and image frames having an adjacency relationship between the two basic nodes are screened, and the time period of the image frame is determined, and the edge time dimension dynamic information is determined, and the edge time dimension dynamic information is attached to the basic edge to generate an enhanced edge;

[0031] Based on the enhanced nodes and the enhanced edges, combined with the content analysis result, identifying the interaction actions, interaction duration and interaction intensity between the objects or areas corresponding to the enhanced nodes, and establishing an interaction relationship;

[0032] The enhanced nodes and the enhanced edges fuse the interaction relationships to determine a spatial attribute graph.

[0033] In an optional embodiment,

[0034] The spatial attribute graph is input into the spatial information analysis network to generate a semantic layout graph and a spatial structure graph, and the VR panoramic spatial information analysis results are determined to include:

[0035] Creating an external memory module for each enhanced node in the spatial attribute graph, storing the historical state and historical feature representation of the enhanced node, and constructing memory information of the enhanced node;

[0036] Based on the neighbor feature representation corresponding to the enhanced node, the weight of the corresponding enhanced edge and the memory information of the enhanced node, feature aggregation is performed through aggregation function calculation to obtain the aggregated feature representation of the enhanced node, based on the preset memory update mechanism, combined with the memory information, an updated state is generated, the aggregated feature representation and the updated state are written into the external memory module to generate updated memory information;

[0037] The aggregated feature representation and the updated memory information are subjected to linear transformation and nonlinear mapping to obtain an updated feature representation of the enhanced node;

[0038] The updated memory information corresponding to each enhanced node is propagated to the corresponding neighbors through the preset memory propagation mechanism;

[0039] Repeat the iteration until a preset number of iterations is reached, and determine the final feature representation and final memory information of each enhanced node;

[0040] Based on the final feature representation and the final memory information of each enhanced node in the spatial attribute graph, a semantic category label of the enhanced node is predicted by a pre-built node classifier to generate a semantic layout graph;

[0041] Based on the corresponding enhanced node of each edge in the spatial attribute graph, the corresponding final feature representation and the final memory information are determined, and the spatial relationship type corresponding to the enhanced edge is predicted through a pre-built edge classifier to generate a spatial structure graph;

[0042] An analysis result is generated based on the semantic layout diagram and the spatial structure diagram.

[0043] In an optional embodiment,

[0044] The loss function of the spatial information analysis network includes:

[0045] It consists of a node classification loss function and an edge prediction loss function;

[0046] The node classification loss function has the following formula:

[0047] ;

[0048] Among them, L NC represents the node classification loss, N represents the total number of enhanced nodes, n represents the enhanced node index, and w n represents the weight coefficient of the enhanced node n, γ1 represents the node classification modulation factor, y n Represents the true category label, y' n represents the predicted category label, ε1 represents the smoothing factor of the node classification loss function;

[0049] The edge prediction loss function has the following formula:

[0050] ;

[0051] Among them, L EP represents the edge prediction loss, M represents the total number of enhanced edges, i represents the enhanced node corresponding to one end of the enhanced edge, j represents the enhanced node corresponding to the other end of the enhanced edge, and w ij represents the weight coefficient between i and j, y ij Indicates the actual edge existence label between i and j, y ' ij represents the probability of edge existence between i and j, γ2 represents the edge prediction modulation factor, ε2 represents the edge prediction loss function smoothing factor, α represents the edge prediction loss adjustment coefficient, and margin represents the distance factor of non-edge pairs.

[0052] According to a second aspect of the embodiments of the present invention,

[0053] Provided is a VR panoramic space information analysis system based on artificial intelligence, comprising:

[0054] The first unit is used to obtain VR panoramic space information, obtain a panoramic image and a corresponding panoramic video, input the panoramic image into a panoramic semantic segmentation model, and obtain a semantic segmentation result, wherein the panoramic semantic segmentation model extracts shallow features and deep features by performing an adaptive convolution operation in a spherical coordinate system, and determines the probability distribution of each semantic category in combination with a spherical geometric loss function;

[0055] The second unit is used to learn inter-frame correlation and intra-frame importance based on the panoramic video through a convolutional network combined with a joint attention mechanism, capture temporal and spatial features, perform content analysis on the panoramic video, and obtain a content analysis result;

[0056] The third unit is used to determine basic nodes and basic edges based on the semantic segmentation result, construct a spatial basic attribute graph, add time dimension dynamic information and the interaction relationship of objects in the panoramic space to the spatial basic attribute graph based on the content parsing result, generate a spatial attribute graph, input the spatial attribute graph into the spatial information analysis network, generate a semantic layout graph and a spatial structure graph, and determine the VR panoramic spatial information analysis result.

[0057] According to a third aspect of the embodiments of the present invention,

[0058] An electronic device is provided, comprising:

[0059] processor;

[0060] a memory for storing processor-executable instructions;

[0061] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0062] According to a fourth aspect of the embodiments of the present invention,

[0063] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0064] In an embodiment of the present invention, by performing adaptive convolution operations in a spherical coordinate system, shallow and deep features in a panoramic image can be accurately extracted, thereby improving the semantic segmentation accuracy of the panoramic image; by utilizing the spherical geometry loss function, the model can better adapt to the spherical projection characteristics of the panoramic image, reduce errors caused by projection deformation, and improve the segmentation effect of each semantic category; by combining a convolutional network with a joint attention mechanism, the inter-frame correlation and intra-frame importance can be captured simultaneously, and the temporal and spatial domain features of the panoramic video can be effectively extracted; the joint attention mechanism is used to learn the correlation between frames and the key areas within the frame, so that the content analysis results are more accurate and reliable; by adding time dimension dynamic information and object interaction relationships to the spatial basic attribute graph, the spatial attribute graph can comprehensively describe the dynamic changes in the panoramic video and the interactive behaviors between objects; by utilizing the spatial attribute graph containing time dynamic information and interaction relationships in the spatial information analysis network, the semantic layout graph and the spatial structure graph can be generated more accurately, thereby improving the accuracy of the panoramic spatial information analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 This is a flow chart of a VR panoramic space information analysis method based on artificial intelligence according to an embodiment of the present invention;

[0066] Figure 2 It is a structural schematic diagram of a VR panoramic space information analysis system based on artificial intelligence according to an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0068] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0069] Figure 1 FIG. 1 is a flow chart of a VR panoramic space information analysis method based on artificial intelligence according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0070] S101. Obtain VR panoramic space information, obtain a panoramic image and a corresponding panoramic video, input the panoramic image into a panoramic semantic segmentation model, and obtain a semantic segmentation result, wherein the panoramic semantic segmentation model extracts shallow features and deep features by performing an adaptive convolution operation in a spherical coordinate system, and determines the probability distribution of each semantic category in combination with a spherical geometric loss function;

[0071] In this embodiment, by performing adaptive convolution operations in a spherical coordinate system, shallow and deep features in the panoramic image can be accurately extracted, and the semantic segmentation accuracy of the panoramic image can be improved; by using the spherical geometry loss function, the model can better adapt to the spherical projection characteristics of the panoramic image, reduce the error caused by projection deformation, and improve the segmentation effect of each semantic category; through this method, the probability distribution of the semantic category to which each pixel in the panoramic image belongs can be determined, providing detailed and accurate semantic segmentation results. The adaptive convolution operation can adaptively adjust the size and shape of the convolution kernel according to the feature requirements of different positions of the panoramic image, so as to more effectively extract feature information.

[0072] In an optional embodiment, inputting the panoramic image into a panoramic semantic segmentation model to obtain a semantic segmentation result includes:

[0073] A spherical coordinate system is set, and an adaptive variable convolution kernel is defined based on the latitude and longitude coordinates corresponding to each pixel point of the panoramic image, and the corresponding position of the sampling point of the adaptive variable convolution kernel is determined by spherical distance measurement, and the weight of the adaptive variable convolution kernel is adjusted according to the spherical distance between the sampling point and the convolution center point, so as to construct an adaptive variable convolution layer;

[0074] Based on multiple adaptive variable convolution layers, and connecting a batch normalization layer and an activation layer after each adaptive variable convolution layer, an encoder is constructed in combination with a pre-constructed downsampling layer to extract shallow features and deep features of the panoramic image; based on the downsampling layer, an upsampling layer is determined, and a decoder is constructed through jump connections and an attention mechanism, and semantic features are extracted by fusing the shallow features and the deep features, and the probability distribution of each pixel belonging to each semantic category is determined, and the semantic category with the largest probability is selected as the predicted category of the corresponding pixel point, so as to obtain the semantic segmentation result of the panoramic image.

[0075] For the input panoramic image, a spherical coordinate system is set; the spherical coordinate system takes the center point of the panoramic image as the origin, and uses two angle parameters, longitude and latitude, to represent the position of each pixel on the image; longitude represents the angle of the pixel in the horizontal direction, and latitude represents the angle of the pixel in the vertical direction; through the spherical coordinate system, each pixel on the panoramic image is mapped to a unique position on the sphere.

[0076] For each pixel on the panoramic image, an adaptive variable convolution kernel is defined according to the latitude and longitude coordinates corresponding to the pixel; the size and shape of the adaptive variable convolution kernel can be adjusted as needed to meet the feature extraction requirements of different locations.

[0077] The center point of the convolution kernel corresponds to the position of the current pixel, and the corresponding positions of other sampling points on the convolution kernel are determined by the spherical distance measurement. Specifically, the spherical distance between each sampling point and the center point in the convolution kernel is calculated, and the weight of the sampling point in the convolution kernel is adjusted according to the size of the distance; sampling points closer to the center point will be assigned larger weights, and sampling points farther away will be assigned smaller weights to achieve adaptive feature extraction.

[0078] An adaptive variable convolution layer is constructed using the defined adaptive variable convolution kernel. The input of the convolution layer is the panoramic image, and the output is the feature map obtained after the convolution operation. The parameters of the convolution layer include the size, step size, and padding of the convolution kernel. In the convolution layer, the corresponding adaptive variable convolution kernel is applied to each pixel of the panoramic image to extract local features. The convolution operation scans the image step by step through the sliding convolution kernel, and each convolution generates an output feature value, which eventually forms an output feature map.

[0079] In order to extract shallow features and deep features of panoramic images, an encoder network is constructed; the encoder network is composed of multiple adaptive variable convolutional layers, each of which is followed by a batch normalization layer and an activation layer; the batch normalization layer is used to normalize the output of the convolutional layer to make the data distribution more stable and accelerate the convergence of the network; the activation layer uses a nonlinear function, preferably ReLU, to perform a nonlinear transformation on the output of the convolutional layer to enhance the expression ability of the network; in the encoder network, a downsampling layer is pre-constructed to gradually reduce the size of the feature map and extract more abstract and advanced features; through the combination of multiple layers of adaptive variable convolutional layers and downsampling layers, the shallow features and deep features of the panoramic image are gradually extracted.

[0080] A decoder network is constructed to gradually restore the deep features extracted by the encoder to the size of the original image and generate pixel-level semantic labels; the corresponding upsampling layer in the decoder is determined according to the downsampling layer used in the encoder; the upsampling layer gradually restores the size of the feature map to the size of the original image through deconvolution operations; in order to fuse feature information of different scales, skip connections are used in the decoder to concatenate the shallow features in the encoder with the features of the corresponding layer in the decoder; combined with the attention mechanism, the importance of different features is adaptively adjusted by learning the dependencies between features to improve the accuracy of semantic segmentation.

[0081] In the last layer of the decoder, we get a feature map with the same size as the original image. Each pixel corresponds to a feature vector. For the feature vector of each pixel, we predict the probability distribution of the pixel belonging to each semantic category through a fully connected layer combined with a softmax activation function. The probability distribution represents the possibility that each pixel belongs to a different semantic category, and the semantic category with the highest probability is selected as the predicted category of the pixel. The predicted categories of all pixels are combined together to obtain the semantic segmentation result of the panoramic image.

[0082] The semantic segmentation result is represented in the form of a mask. Different semantic categories are marked with different colors or labels, and each pixel is assigned a corresponding semantic label.

[0083] In this embodiment, the adaptive variable convolution layer scans the panoramic image step by step, and generates an output feature value each time the convolution is performed, thereby ensuring the accuracy and effectiveness of feature extraction; the encoder network utilizes multiple layers of adaptive variable convolution layers, batch normalization layers, and activation layers, which can effectively extract shallow and deep features of the panoramic image, thereby improving the stability of feature extraction and the convergence speed of the network; the decoder network gradually restores the size of the feature map through deconvolution operations, and combines jump connections to fuse the shallow features in the encoder with the deep features in the decoder, thereby realizing the fusion of features of different scales; the introduction of the attention mechanism can learn the dependencies between features, adaptively adjust the importance of different features, and significantly improve the accuracy of semantic segmentation; the output feature map of the decoder is the same size as the original image, thereby ensuring that each pixel has a corresponding feature vector.

[0084] In an optional embodiment, the loss function of the panoramic semantic segmentation model includes:

[0085] It consists of a cross entropy loss function and a spherical geometry loss function, and the formula of the spherical geometry loss function is as follows:

[0086] ;

[0087] Among them, L2 represents the spherical geometry loss function, C represents the total number of semantic categories, c represents the semantic category index, and A c represents the predicted segmentation region of semantic category c, B c represents the true segmentation area of ​​semantic category c, S represents the spherical area integral element, and d c represents the distance metric between the predicted segmentation region of category c and the true segmentation region, σ represents the distance metric control factor, and R represents a region corresponding to A c With B c Intersection or union, θ represents latitude and φ represents longitude.

[0088] First, a spherical geometry loss function is defined to measure the geometric difference between the predicted segmentation area and the true segmentation area. The value of the loss function is between 0 and 1. The closer the value is to 0, the more accurate the predicted segmentation is.

[0089] For each semantic category, the ratio of the intersection area and the union area of ​​the predicted segmentation area and the true segmentation area of ​​the category is calculated to indicate the degree of overlap between the two areas. The ratio is multiplied by an attenuation factor, the value of which is determined by the distance measure between the predicted segmentation area and the true segmentation area. The attenuation factor is represented by an exponential function to reduce the impact of areas with larger distances on the loss function.

[0090] The losses of all semantic categories are averaged to obtain the overall spherical geometry loss, which is calculated by summing the losses of all semantic categories and dividing by the total number of semantic categories.

[0091] According to the formula, by introducing spherical geometric characteristics into the loss function, the model can more accurately capture the geometric relationship of the semantic segmentation area when processing spherical images, avoiding segmentation errors caused by ignoring spherical characteristics; by calculating the ratio of the intersection area and the union area of ​​the predicted segmentation area and the true segmentation area, the overlap degree of the two areas is measured, and the similarity between the predicted results and the true results is effectively evaluated, which prompts the model optimization process to pay more attention to the precise overlap of the areas; by introducing an exponential decay factor of the distance metric, the influence of the area with a large distance between the predicted segmentation area and the true segmentation area on the loss is reduced, so that the model pays more attention to the segmentation error at close range and improves the local accuracy of the segmentation results; by using the spherical integral method to calculate the area of ​​the region, the model can accurately measure the area on the spherical image, avoiding the geometric distortion problem introduced by the plane projection method when processing spherical images.

[0092] S102. Based on the panoramic video, a convolutional network is used in combination with a joint attention mechanism to learn inter-frame correlation and intra-frame importance, capture temporal and spatial features, and perform content analysis on the panoramic video to obtain a content analysis result;

[0093] The inter-frame correlation specifically refers to the relationship and similarity between different frames in a video sequence, which measures the continuity and changes of video frames in the time dimension and helps capture the dynamic changes and motion characteristics of video content.

[0094] The intra-frame importance specifically refers to the importance of each region or pixel in a single video frame, reflecting which regions in a certain frame are more critical for understanding and analyzing the video content, and helping to identify significant objects and features in the frame.

[0095] In this embodiment, by combining a convolutional network with a joint attention mechanism, it is possible to simultaneously capture the correlation between frames and the importance within a frame, and effectively extract the temporal and spatial features of the panoramic video. The joint attention mechanism is used to learn the correlation between frames and the key areas within the frame, making the content analysis results more accurate and reliable. The method can comprehensively analyze the dynamic changes and static features in the panoramic video, providing a more comprehensive and accurate information basis for subsequent video content analysis and application.

[0096] In an optional embodiment, based on the panoramic video, a convolutional network is used in combination with a joint attention mechanism to learn inter-frame correlation and intra-frame importance, capture temporal and spatial features, and perform content analysis on the panoramic video. The content analysis results include:

[0097] Extracting image frames based on a frame sequence in the panoramic video, and performing size normalization and color space conversion on the image frames;

[0098] A one-dimensional temporal convolution kernel is set, and the correlation between two adjacent image frames is calculated in the temporal dimension through a temporal convolution operation, adjacent correlation information is extracted, correlation weights are determined, a temporal weight matrix is ​​constructed, and the temporal weight matrix is ​​combined with a frame sequence to capture temporal features;

[0099] Extract features from each image frame, generate a feature map, set a two-dimensional spatial convolution kernel, calculate the feature response value of each area in each image frame in the spatial dimension through the spatial convolution operation, determine the importance of the corresponding area, generate importance weights, construct a spatial weight matrix, combine the spatial weight matrix with the feature map, and capture spatial domain features;

[0100] The temporal features and the spatial features are input into a spatiotemporal convolutional network constructed by expanding a two-dimensional convolution kernel into a three-dimensional convolution kernel. The non-local attention mechanism is combined to calculate the long-range dependencies between frames and within frames, capture the global context, and generate a content analysis result of the panoramic video.

[0101] Image frames are extracted frame by frame from the input panoramic video to form a frame sequence.

[0102] Normalize the size of each extracted image frame to a uniform size, for example, adjust the size of all frames to 640x480 pixels; perform color space conversion on the normalized image frames, from the original RGB color space to a color space more suitable for feature extraction, preferably to a YUV color space;

[0103] A one-dimensional temporal convolution kernel is set for performing convolution operation in the temporal dimension, and the size of the temporal convolution kernel is preferably set to 3 or 5; through the temporal convolution operation, the correlation between two adjacent image frames in the frame sequence is calculated in the temporal dimension, specifically, the temporal convolution kernel is slid onto two adjacent image frames, and the image frames are convolved to obtain a correlation value; the correlation calculation can be based on the similarity measurement between the image frames, and the similarity between the two image frames is calculated by comparing the feature vectors of the two image frames; according to the calculated correlation value, the correlation weight between the adjacent image frames is determined, and the similarity weight is obtained by normalizing or scaling the correlation value to represent the temporal correlation between the adjacent image frames; the correlation weight is organized into a temporal weight matrix, each element of the matrix represents the correlation weight between the adjacent image frames at the corresponding position, and the dimension of the temporal weight matrix is ​​the same as the length of the frame sequence; the constructed temporal weight matrix is ​​combined with the original frame sequence, and the characteristics and change information of the video in the temporal dimension are captured through a weighted average fusion method.

[0104] Perform feature extraction on each image frame in the frame sequence to generate a corresponding feature map, and use a pre-trained convolutional neural network, preferably ResNet, to extract high-level semantic features of the image frame; set a two-dimensional spatial convolution kernel to perform convolution operations in the spatial dimension. The size of the spatial convolution kernel is preferably set to 5x5; through the spatial convolution operation, the characteristic response value of each area in each image frame is calculated in the spatial dimension. Specifically, the spatial convolution kernel is slid to different areas of the image frame, and the convolution calculation is performed on each area to obtain the characteristic response value of the corresponding area; the characteristic response value represents the significance and importance of the corresponding area, which can be calculated based on the local texture, edge, color and other information in the feature map. The higher the response value, the more significant the feature of the area is, and the greater the contribution to the entire image frame; according to the calculated characteristic response value, the importance weight of each area is determined, and the importance of the area to the entire image frame is obtained by scaling the characteristic response value; the importance weights are organized into a spatial weight matrix, and each element of the matrix represents the importance weight of the area at the corresponding position, wherein the dimension of the spatial weight matrix is ​​the same as the size of the image frame; the constructed spatial weight matrix is ​​combined with the extracted feature map, and the feature and regional importance information of the video in the spatial dimension are captured through weighted average fusion.

[0105] The captured time domain features and spatial domain features are input into the spatiotemporal convolutional network for further feature extraction and semantic understanding; the spatiotemporal convolutional network expands the two-dimensional convolution kernel into a three-dimensional convolution kernel, and performs convolution operations in the time dimension and the space dimension at the same time. Specifically, the two-dimensional convolution kernel is replicated multiple times in the time dimension to form a three-dimensional convolution kernel. The three-dimensional convolution kernel can simultaneously capture the local features and dependencies of the video in time and space. The convolution in the time dimension captures the timing information between adjacent frames, and the convolution in the space dimension captures the spatial information within the frame. Through multiple layers of spatiotemporal convolution and pooling operations, the high-level semantic features of the video are gradually extracted. The convolution layer is responsible for extracting local features, and the pooling layer is responsible for reducing the size of the feature map and enhancing the robustness of the features. At the top of the spatiotemporal convolutional network, a fully connected layer and a softmax layer are added to map the extracted high-level features to specific video content categories or labels.

[0106] On the basis of the spatiotemporal convolutional network, a non-local attention mechanism is introduced to capture the long-range dependencies between and within frames. The non-local attention mechanism establishes global context information by calculating the correlation between any two positions. Specifically, for each position, the correlation between the current position and all other positions is calculated to generate an attention weight matrix. For the long-range dependency between frames, the correlation between the current frame and other frames is calculated to capture the global context of the video in the time dimension, and the feature representation of the current frame is enhanced by weighted fusion of the features of other frames. For the long-range dependency within the frame, the correlation between different regions in the current frame is calculated to capture the global context of the video in the spatial dimension, and the feature representation of the current region is enhanced by weighted fusion of the features of other regions. Through the non-local attention mechanism, the spatiotemporal convolutional network can make full use of the global context information, capture the long-range dependency in the video, and improve the accuracy of content parsing.

[0107] After being processed by the spatiotemporal convolutional network and the non-local attention mechanism, the content analysis results of the panoramic video are generated. The content analysis results can be labels or descriptions for identifying and classifying objects, scenes, actions, etc. in the video. By analyzing the content of each frame of the image, frame-level content labels or descriptions are generated; the frame-level content analysis results are combined with the time information to obtain the complete content analysis results of the panoramic video, and the frame-level analysis results are associated with the corresponding timestamps through time synchronization or time encoding.

[0108] In this embodiment, the temporal attention module is used to measure and fuse the correlation of adjacent frames in the temporal dimension, so as to capture the temporal change information of the video; the spatial attention module is used to measure and fuse the importance of each region in the image frame in the spatial dimension, so as to highlight the characteristics of the significant region; the spatiotemporal convolutional network extracts features in the temporal and spatial dimensions at the same time through three-dimensional convolution operations, so as to capture the local temporal information and spatial information in the video; multi-layer spatiotemporal convolution and pooling operations further extract high-level semantic features of the video to improve the robustness and discrimination of the features; the non-local attention mechanism captures the long-range dependencies between and within frames by calculating the correlation between arbitrary positions, enhances the feature representation, makes full use of the global contextual information, and improves the accuracy and comprehensiveness of the content analysis; after being processed by the spatiotemporal convolutional network and the non-local attention mechanism, the accurate content analysis results of the panoramic video can be generated, including the recognition and classification of objects, scenes and actions, and the content labels or descriptions at the frame level are combined with the time information to provide a complete video content analysis, and support time synchronization and time coding.

[0109] S103. Based on the semantic segmentation result, basic nodes and basic edges are determined, and a spatial basic attribute graph is constructed. Based on the content parsing result, dynamic information of the time dimension and the interaction relationship of objects in the panoramic space are added to the spatial basic attribute graph to generate a spatial attribute graph. The spatial attribute graph is input into the spatial information analysis network to generate a semantic layout graph and a spatial structure graph, and the VR panoramic spatial information analysis result is determined.

[0110] The time dimension dynamic information specifically refers to the state and characteristics of each basic node and basic edge in the panoramic video that change over time, including the moment, duration, and change trend of the connection between each semantic area and adjacent semantic areas at different time points.

[0111] The object interaction relationship specifically refers to the interaction and relationship between different semantic areas in the panoramic video, including physical relationships such as contact, collision, and separation between objects, as well as operations and uses between people and objects.

[0112] In this embodiment, by adding time dimension dynamic information and object interaction relationships to the spatial basic attribute graph, the spatial attribute graph can comprehensively describe the dynamic changes and interaction behaviors between objects in the panoramic video; by using the spatial attribute graph containing time dynamic information and interaction relationships in the spatial information analysis network, the semantic layout graph and the spatial structure graph can be generated more accurately, thereby improving the accuracy of panoramic spatial information analysis; by combining the semantic segmentation results, the time dimension dynamic information and the object interaction relationships, the information of the VR panoramic space is comprehensively analyzed, providing more detailed and accurate support for subsequent applications and decisions.

[0113] In an optional embodiment, based on the semantic segmentation result, basic nodes and basic edges are determined to construct a spatial basic attribute graph, and based on the content parsing result, time dimension dynamic information and object interaction relationships in the panoramic space are added to the spatial basic attribute graph, and generating the spatial attribute graph includes:

[0114] Based on the semantic segmentation result, each semantic region is determined, and the semantic region is used as a basic node. Based on every two semantic regions adjacent in space, an undirected edge is established between the basic nodes corresponding to the semantic region, and the spatial basic attribute graph is determined based on the undirected edge.

[0115] For each basic node, based on the content analysis result, determine the image frame in which the basic node appears and the time period in which the image frame is located, determine the node time dimension dynamic information, and append the node time dimension dynamic information to the basic node to generate an enhanced node;

[0116] For each basic edge, two basic nodes corresponding to the basic edge are determined, and based on the content analysis result, image frames in which the two basic nodes appear at the same time are determined, and image frames having an adjacency relationship between the two basic nodes are screened, and the time period of the image frame is determined, and the edge time dimension dynamic information is determined, and the edge time dimension dynamic information is attached to the basic edge to generate an enhanced edge;

[0117] Based on the enhanced nodes and the enhanced edges, combined with the content analysis result, identifying the interaction actions, interaction duration and interaction intensity between the objects or areas corresponding to the enhanced nodes, and establishing an interaction relationship;

[0118] The enhanced nodes and the enhanced edges fuse the interaction relationships to determine a spatial attribute graph.

[0119] Based on the semantic segmentation results, each semantic region in the panoramic video is determined. A semantic region refers to a set of pixels with the same semantic label, representing different objects or regions in the scene; a spatial basic attribute graph is constructed with each semantic region as a base node. Each base node represents a semantic region, which contains the semantic label and spatial position information of the region; for every two spatially adjacent semantic regions, an undirected edge is established between the base nodes corresponding to the semantic regions, indicating the spatial adjacency relationship between the two semantic regions; the undirected edge indicates the connectivity of the two semantic regions in space, regardless of directionality. Each undirected edge contains the information of the two connected base nodes; a spatial basic attribute graph with semantic regions as nodes and undirected edges as connections is constructed to represent the spatial relationship between different semantic regions in the panoramic video.

[0120] For each basic node in the spatial basic attribute graph, based on the content parsing results, determine the image frame in which the semantic area corresponding to the node appears; by analyzing the content parsing results, find all image frames containing the semantic area, and record the time positions of these image frames in the video; according to the time position of the image frame, determine the time period in which the basic node appears in the video, and the time period can be represented by a start time and an end time, or by a timestamp sequence; append the determined node time dimension dynamic information to the corresponding basic node to generate an enhanced node, which contains the original semantic label and spatial position information, as well as the newly added time dimension dynamic information; integrate the time dimension information into the spatial basic attribute graph, so that each node contains not only spatial information, but also time dynamic information.

[0121] For each basic edge in the spatial basic attribute graph, determine the two basic nodes connected by the basic edge, and based on the content analysis results, find the image frames where the two basic nodes appear at the same time, that is, at the same time point, the two semantic regions appear in the video at the same time; in the image frames that appear at the same time, further filter out the image frames with an adjacency relationship between the two basic nodes, that is, in these image frames, the two semantic regions are spatially adjacent; according to the time position of the filtered image frames, determine the time period in which the basic edge appears in the video. Similarly, the time period can be represented by the start time and the end time, or by a timestamp sequence; append the determined edge time dimension dynamic information to the corresponding basic edge to generate an enhanced edge. The enhanced edge contains the original connection information and the newly added time dimension dynamic information; the time dimension information is integrated into the edge of the spatial basic attribute graph, so that each edge contains not only spatial connection information, but also time dynamic information.

[0122] Based on the enhancement nodes and enhancement edges, combined with the content analysis results, the interaction relationship between the objects or regions corresponding to the two enhancement nodes is identified; for each pair of enhancement nodes, the temporal overlap and spatial adjacency of the enhancement nodes in the video, as well as the semantic information provided by the content analysis results, are analyzed; based on the degree of temporal overlap and spatial adjacency, as well as the semantic information, the interaction actions between the two enhancement nodes are identified. The interaction action can be a collision, contact, or distance between objects, or an operation or use between people and objects; the time period in which the interaction action occurs is determined, and the interaction duration is calculated. The interaction duration indicates the length of time for the interaction between two objects or regions; based on the type and duration of the interaction action, the interaction strength is estimated, and the interaction strength indicates the strength of the interaction between two objects or regions, which can be expressed in numerical values ​​or levels; the identified interaction action, interaction duration, and interaction strength are attached to the corresponding enhancement nodes and enhancement edges as interaction relationships; based on the enhancement nodes and enhancement edges, the interaction relationship between objects or regions is established to enrich the semantic information of the spatial attribute graph.

[0123] The enhanced nodes, enhanced edges and established interaction relationships are fused to form the final spatial attribute graph; the spatial attribute graph contains the spatial relationships, temporal dynamic information and interaction relationships of objects and regions in the panoramic video, providing a comprehensive representation of the video content; the enhanced nodes represent objects or regions in the video, including semantic labels, spatial positions and temporal dynamic information; the enhanced edges represent the spatial connection relationships between objects or regions, including temporal dynamic information; the interaction relationships represent the interaction behaviors between objects or regions, including interaction actions, duration and intensity; through fusion, a comprehensive spatial attribute graph is formed, which not only reflects the spatial structure of the video, but also includes temporal dynamics and interaction semantics.

[0124] In this embodiment, a spatial basic attribute graph is constructed with semantic regions as basic nodes, and spatially adjacent semantic regions are represented by undirected edges, so that the spatial relationship between different semantic regions in the panoramic video can be clearly represented; time dimension information is added to each basic node and basic edge, so that each node and edge contains not only spatial information but also temporal dynamic information, reflecting the time period when the semantic region appears and interacts in the video; the time dimension information is added to the basic nodes and basic edges to generate enhanced nodes and enhanced edges, which contain temporal dynamic information and enrich the representation ability of the video; based on the enhanced nodes and enhanced edges, combined with the content parsing results, the interactive relationship between objects or regions in the video is identified, and the interactive action and its duration and intensity are identified by analyzing the time overlap, spatial adjacency and semantic information.

[0125] In an optional embodiment, the spatial attribute graph is input into a spatial information analysis network to generate a semantic layout graph and a spatial structure graph, and determining the VR panoramic spatial information analysis result includes:

[0126] Creating an external memory module for each enhanced node in the spatial attribute graph, storing the historical state and historical feature representation of the enhanced node, and constructing memory information of the enhanced node;

[0127] Based on the neighbor feature representation corresponding to the enhanced node, the weight of the corresponding enhanced edge and the memory information of the enhanced node, feature aggregation is performed through aggregation function calculation to obtain the aggregated feature representation of the enhanced node, based on the preset memory update mechanism, combined with the memory information, an updated state is generated, the aggregated feature representation and the updated state are written into the external memory module to generate updated memory information;

[0128] The aggregated feature representation and the updated memory information are subjected to linear transformation and nonlinear mapping to obtain an updated feature representation of the enhanced node;

[0129] The updated memory information corresponding to each enhanced node is propagated to the corresponding neighbors through the preset memory propagation mechanism;

[0130] Repeat the iteration until a preset number of iterations is reached, and determine the final feature representation and final memory information of each enhanced node;

[0131] Based on the final feature representation and the final memory information of each enhanced node in the spatial attribute graph, a semantic category label of the enhanced node is predicted by a pre-built node classifier to generate a semantic layout graph;

[0132] Based on the corresponding enhanced node of each edge in the spatial attribute graph, the corresponding final feature representation and the final memory information are determined, and the spatial relationship type corresponding to the enhanced edge is predicted through a pre-built edge classifier to generate a spatial structure graph;

[0133] An analysis result is generated based on the semantic layout diagram and the spatial structure diagram.

[0134] For each enhanced node in the spatial attribute graph, a corresponding external memory module is created to store the historical state and feature representation of the enhanced node; the external memory module is a data structure that can be implemented in the form of an array, list, or dictionary. It is used to save the state and feature information of the enhanced node at different time steps; at the initial moment, the initial state and initial feature representation of the enhanced node are stored in the external memory module; the initial state can be the attribute information of the node, such as semantic label, spatial position, etc.; the initial feature representation can be the original feature vector of the node; by creating an external memory module for each enhanced node, the memory information of the enhanced node is constructed for use in the subsequent feature aggregation and update process.

[0135] For each enhanced node, feature aggregation is performed through an aggregation function based on the feature representation of its neighbor nodes, the weight of the corresponding enhanced edges, and the node's own memory information; the feature representation of the neighbor nodes can be obtained by accessing the external memory module of the adjacent node, representing the state and features of the neighbor nodes at the previous time step; the weight of the enhanced edge represents the strength or importance of the connection between nodes, which is calculated based on the interaction relationship of the edges; the node's own memory information is read from the corresponding external memory module, representing the state and features of the node at the previous time step; the aggregation function can be a common operation such as summation, averaging, and maximum pooling, which is used to fuse the features of the neighbor nodes, the weight of the edges, and the node's own memory information to obtain the aggregated feature representation of the node.

[0136] Based on the preset memory update mechanism, the node's update state is generated by combining the node's aggregate feature representation and current memory information. The memory update mechanism preferably uses a gating unit to control the update method of the memory information; the node's aggregate feature representation and update state are written into an external memory module, and the node's memory information is updated. The node's memory information includes the aggregate feature and update state of the current time step.

[0137] The aggregated feature representation of the node is fused with the updated memory information, and the updated feature representation of the node is obtained through linear transformation and nonlinear mapping; the linear transformation can be a matrix multiplication or a convolution operation, which is used to convert and combine the aggregated features and memory information.

[0138] Through linear transformation and nonlinear mapping, the updated feature representation of the node is obtained, which represents the feature state of the node at the current time step; according to the preset memory propagation mechanism, the updated memory information of each node is propagated to the neighboring nodes. After receiving the propagated memory information, the neighboring nodes can fuse it with their own memory information for feature aggregation and update in the next time step.

[0139] The process of feature aggregation, memory update, feature update, and memory propagation is repeated until the preset number of iterations is reached.

[0140] In each iterative step, the feature representation and memory information of the node will be updated and propagated, so that the node can make full use of neighbor information and historical information for feature learning and updating; after multiple iterations, the feature representation and memory information of each enhanced node will converge to a stable state, representing the final features and state of the node in the graph.

[0141] Based on the final feature representation and final memory information of each enhanced node in the spatial attribute graph, the semantic category label of the node is predicted through the pre-built node classifier. The node classifier preferably uses a multi-layer perceptron model to map the feature representation of the node to the semantic category label; the predicted semantic category label represents the object or region category to which the node belongs, such as people, cars, buildings, etc.; the predicted semantic category label is assigned to the corresponding enhanced node to generate a semantic layout graph. The semantic layout graph represents the semantic information of different objects and regions in the panoramic video.

[0142] Based on the corresponding enhanced nodes of each edge in the spatial attribute graph, the final feature representation and final memory information of the node are determined; the spatial relationship type represented by the enhanced edge, such as adjacent, contained, and distant, is predicted through the pre-built edge classifier. The edge classifier also uses a multi-layer perceptron model to map the endpoint node features of the edge to the spatial relationship type; the predicted spatial relationship type represents the spatial relationship between the two nodes connected by the enhanced edge; the predicted spatial relationship type is assigned to the corresponding enhanced edge to generate a spatial structure graph. The spatial structure graph represents the spatial structure information between objects and regions in the panoramic video.

[0143] Based on the generated semantic layout map and spatial structure map, content analysis and understanding of panoramic videos are performed; the semantic layout map provides semantic information of objects and regions in the video, which can be used for tasks such as object detection and scene understanding; the spatial structure map provides spatial relationship information between objects and regions in the video, which can be used for tasks such as spatial reasoning and interactive analysis; combining the semantic layout map and the spatial structure map, a higher level of video content analysis can be performed, and by comprehensively utilizing semantic information and spatial structure information, comprehensive video analysis results can be generated to provide support for subsequent applications and decision-making.

[0144] In this embodiment, a corresponding external memory module is created for each enhanced node, which can store the historical state and feature representation of the node, so that the node can retain and use past feature information, which helps to aggregate and update features more accurately; by aggregating the features of neighboring nodes, enhancing the weight of edges and the memory information of the nodes themselves, effective aggregation of node features is achieved. The use of aggregation functions ensures the flexibility and adaptability of feature fusion; through linear transformation and nonlinear mapping, the aggregated feature representation of the node is fused with the updated memory information to generate an updated feature representation, so that the node feature can reflect the most accurate current state at each time step; the propagation of memory information between neighboring nodes enables each node to share and use the information of other nodes, and the information propagation mechanism helps to learn and update global features, enhancing the representation ability of the entire graph; by comprehensively utilizing semantic information and spatial structure information, comprehensive video analysis results are generated to provide support for subsequent applications and decisions, which can better support various practical application needs.

[0145] In an optional embodiment, the loss function of the spatial information analysis network includes:

[0146] It consists of a node classification loss function and an edge prediction loss function;

[0147] The node classification loss function has the following formula:

[0148] ;

[0149] Among them, L NC represents the node classification loss, N represents the total number of enhanced nodes, n represents the enhanced node index, and w n represents the weight coefficient of the enhanced node n, γ1 represents the node classification modulation factor, y n Represents the true category label, y' n represents the predicted category label, ε1 represents the smoothing factor of the node classification loss function;

[0150] The edge prediction loss function has the following formula:

[0151] ;

[0152] Among them, L EP represents the edge prediction loss, M represents the total number of enhanced edges, i represents the enhanced node corresponding to one end of the enhanced edge, j represents the enhanced node corresponding to the other end of the enhanced edge, and w ij represents the weight coefficient between i and j, y ij Indicates the actual edge existence label between i and j, y ' ij represents the probability of edge existence between i and j, γ2 represents the edge prediction modulation factor, ε2 represents the edge prediction loss function smoothing factor, α represents the edge prediction loss adjustment coefficient, and margin represents the distance factor of non-edge pairs.

[0153] According to the node classification loss function, it includes two parts: the numerator and the denominator. The numerator includes the weighted cross entropy error of all enhanced nodes. Specifically, for each node, the product of the true category label and the predicted category label is calculated, and the product is modulated according to the confidence of the prediction, that is, the degree to which the predicted label value is close to 1. The numerator reflects the contribution of nodes with higher prediction accuracy to the overall loss; the denominator includes two parts, the first part is the sum of the weighted true labels of all nodes, and the second part is the sum of the weighted predicted labels of all nodes. After the modulation factor is adjusted, the denominator normalizes the label distribution of all nodes to ensure that the output of the loss function is within a reasonable range.

[0154] According to the edge prediction loss function, it includes two parts, wherein the first part is for the case where there is an edge. For each pair of nodes, if there is an edge between them, the product of the true edge label and the predicted edge label is calculated, and the product is modulated according to the confidence of the prediction, that is, the degree to which the predicted label value is close to 1; wherein the second part is for the case where there is no edge. If there is no edge between the two nodes, the distance between them is calculated, represented by the difference between the predicted edge label and a boundary value, and the distance is squared and adjusted. Through a distance factor and an adjustment coefficient, it is ensured that even in the absence of an edge, the prediction accuracy can be measured by the boundary value.

[0155] According to the formula, the spatial information analysis network is guaranteed to be able to optimize both node classification and edge prediction tasks at the same time. The node classification loss function focuses on the semantic classification of each node, and the edge prediction loss function focuses on the accuracy of the relationship between nodes. Through the combination of the two losses, the network can not only accurately identify the semantic category of each node, but also accurately predict the relationship between nodes, forming a complete spatial attribute graph, which provides a solid foundation for further video content analysis and understanding.

[0156] Figure 2 FIG. 1 is a schematic diagram of the structure of a VR panoramic space information analysis system based on artificial intelligence according to an embodiment of the present invention. Figure 2As shown, the system comprises:

[0157] The first unit is used to obtain VR panoramic space information, obtain a panoramic image and a corresponding panoramic video, input the panoramic image into a panoramic semantic segmentation model, and obtain a semantic segmentation result, wherein the panoramic semantic segmentation model extracts shallow features and deep features by performing an adaptive convolution operation in a spherical coordinate system, and determines the probability distribution of each semantic category in combination with a spherical geometric loss function;

[0158] The second unit is used to learn inter-frame correlation and intra-frame importance based on the panoramic video through a convolutional network combined with a joint attention mechanism, capture temporal and spatial features, perform content analysis on the panoramic video, and obtain a content analysis result;

[0159] The third unit is used to determine basic nodes and basic edges based on the semantic segmentation result, construct a spatial basic attribute graph, add time dimension dynamic information and the interaction relationship of objects in the panoramic space to the spatial basic attribute graph based on the content parsing result, generate a spatial attribute graph, input the spatial attribute graph into the spatial information analysis network, generate a semantic layout graph and a spatial structure graph, and determine the VR panoramic spatial information analysis result.

[0160] According to a third aspect of the embodiments of the present invention,

[0161] An electronic device is provided, comprising:

[0162] processor;

[0163] a memory for storing processor-executable instructions;

[0164] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0165] According to a fourth aspect of the embodiments of the present invention,

[0166] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0167] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.

[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A VR panoramic space information analysis method based on artificial intelligence, characterized in that: include: Acquire VR panoramic space information, obtain a panoramic image and a corresponding panoramic video, input the panoramic image into a panoramic semantic segmentation model, and obtain a semantic segmentation result, wherein the panoramic semantic segmentation model extracts shallow features and deep features by performing an adaptive convolution operation in a spherical coordinate system, and determines the probability distribution of each semantic category in combination with a spherical geometric loss function; Based on the panoramic video, a convolutional network is used in combination with a joint attention mechanism to learn inter-frame correlation and intra-frame importance, capture temporal and spatial features, and perform content analysis on the panoramic video to obtain a content analysis result; Based on the semantic segmentation result, basic nodes and basic edges are determined, and a spatial basic attribute graph is constructed. Based on the content parsing result, time dimension dynamic information and the interaction relationship of objects in the panoramic space are added to the spatial basic attribute graph to generate a spatial attribute graph. The spatial attribute graph is input into the spatial information analysis network to generate a semantic layout graph and a spatial structure graph, and a VR panoramic spatial information analysis result is determined. The panoramic image is input into the panoramic semantic segmentation model to obtain the semantic segmentation results including: A spherical coordinate system is set, and an adaptive variable convolution kernel is defined based on the latitude and longitude coordinates corresponding to each pixel point of the panoramic image, and the corresponding position of the sampling point of the adaptive variable convolution kernel is determined by spherical distance measurement, and the weight of the adaptive variable convolution kernel is adjusted according to the spherical distance between the sampling point and the convolution center point, so as to construct an adaptive variable convolution layer; Based on the multiple adaptive variable convolution layers, and each of the adaptive variable convolution layers is followed by a batch normalization layer and an activation layer, and combined with the pre-constructed downsampling layer, an encoder is constructed to extract shallow features and deep features of the panoramic image; based on the downsampling layer, an upsampling layer is determined, and a decoder is constructed through a skip connection and an attention mechanism, and semantic features are extracted by fusing the shallow features and the deep features, and the probability distribution of each pixel belonging to each semantic category is determined, and the semantic category with the largest probability is selected as the predicted category of the corresponding pixel, so as to obtain the semantic segmentation result of the panoramic image; The loss function of the panoramic semantic segmentation model includes: It consists of a cross entropy loss function and a spherical geometry loss function, and the formula of the spherical geometry loss function is as follows: Among them, L2 represents the spherical geometry loss function, C represents the total number of semantic categories, c represents the semantic category index, and A c represents the predicted segmentation region of semantic category c, B c represents the true segmentation area of ​​semantic category c, S represents the spherical area integral element, and d c represents the distance metric between the predicted segmentation region of category c and the true segmentation region, σ represents the distance metric control factor, and R represents a region corresponding to A c With B c Intersection or union, θ represents latitude and φ represents longitude; Based on the semantic segmentation result, basic nodes and basic edges are determined to construct a spatial basic attribute graph. Based on the content parsing result, time dimension dynamic information and the interaction relationship of objects in the panoramic space are added to the spatial basic attribute graph. Generating the spatial attribute graph includes: Based on the semantic segmentation result, each semantic region is determined, and the semantic region is used as a basic node. Based on every two semantic regions adjacent in space, an undirected edge is established between the basic nodes corresponding to the semantic region, and the spatial basic attribute graph is determined based on the undirected edge. For each basic node, based on the content analysis result, determine the image frame in which the basic node appears and the time period in which the image frame is located, determine the node time dimension dynamic information, and append the node time dimension dynamic information to the basic node to generate an enhanced node; For each basic edge, two basic nodes corresponding to the basic edge are determined, and based on the content analysis result, image frames in which the two basic nodes appear at the same time are determined, and image frames having an adjacency relationship between the two basic nodes are screened, and the time period of the image frame is determined, and the edge time dimension dynamic information is determined, and the edge time dimension dynamic information is attached to the basic edge to generate an enhanced edge; Based on the enhanced nodes and the enhanced edges, combined with the content analysis result, identifying the interaction actions, interaction duration and interaction intensity between the objects or areas corresponding to the enhanced nodes, and establishing an interaction relationship; The enhanced nodes and the enhanced edges fuse the interaction relationships to determine a spatial attribute graph; The spatial attribute graph is input into the spatial information analysis network to generate a semantic layout graph and a spatial structure graph, and the VR panoramic spatial information analysis results are determined to include: Creating an external memory module for each enhanced node in the spatial attribute graph, storing the historical state and historical feature representation of the enhanced node, and constructing memory information of the enhanced node; Based on the neighbor feature representation corresponding to the enhanced node, the weight of the corresponding enhanced edge and the memory information of the enhanced node, feature aggregation is performed through aggregation function calculation to obtain the aggregated feature representation of the enhanced node, based on the preset memory update mechanism, combined with the memory information, an updated state is generated, the aggregated feature representation and the updated state are written into the external memory module to generate updated memory information; The aggregated feature representation and the updated memory information are subjected to linear transformation and nonlinear mapping to obtain an updated feature representation of the enhanced node; The updated memory information corresponding to each enhanced node is propagated to the corresponding neighbors through the preset memory propagation mechanism; Repeating the iteration until a preset number of iterations is reached, and determining the final feature representation and final memory information of each enhanced node; Based on the final feature representation and the final memory information of each enhanced node in the spatial attribute graph, a semantic category label of the enhanced node is predicted by a pre-built node classifier to generate a semantic layout graph; Based on the corresponding enhanced node of each edge in the spatial attribute graph, the corresponding final feature representation and the final memory information are determined, and the spatial relationship type corresponding to the enhanced edge is predicted through a pre-built edge classifier to generate a spatial structure graph; Generate analysis results based on the semantic layout diagram and the spatial structure diagram; The loss function of the spatial information analysis network includes: It consists of a node classification loss function and an edge prediction loss function; The node classification loss function has the following formula: Among them, L NC represents the node classification loss, N represents the total number of enhanced nodes, n represents the enhanced node index, and w n represents the weight coefficient of the enhanced node n, γ1 represents the node classification modulation factor, y n Represents the true category label, y' n represents the predicted category label, ε1 represents the smoothing factor of the node classification loss function; The edge prediction loss function has the following formula: Among them, L EP represents the edge prediction loss, M represents the total number of enhanced edges, i represents the enhanced node corresponding to one end of the enhanced edge, j represents the enhanced node corresponding to the other end of the enhanced edge, and w ij represents the weight coefficient between i and j, y ij Indicates the actual edge existence label between i and j, y' ij represents the probability of edge existence between i and j, γ2 represents the edge prediction modulation factor, ε2 represents the edge prediction loss function smoothing factor, α represents the edge prediction loss adjustment coefficient, and margin represents the distance factor of non-edge pairs.

2. The method according to claim 1, characterized in that Based on the panoramic video, a convolutional network is used in combination with a joint attention mechanism to learn inter-frame correlation and intra-frame importance, capture temporal and spatial features, and perform content analysis on the panoramic video. The content analysis results include: Extracting image frames based on a frame sequence in the panoramic video, and performing size normalization and color space conversion on the image frames; A one-dimensional temporal convolution kernel is set, and the correlation between two adjacent image frames is calculated in the temporal dimension through a temporal convolution operation, adjacent correlation information is extracted, correlation weights are determined, a temporal weight matrix is ​​constructed, and the temporal weight matrix is ​​combined with a frame sequence to capture temporal features; Extract features from each image frame, generate a feature map, set a two-dimensional spatial convolution kernel, calculate the feature response value of each area in each image frame in the spatial dimension through the spatial convolution operation, determine the importance of the corresponding area, generate importance weights, construct a spatial weight matrix, combine the spatial weight matrix with the feature map, and capture spatial domain features; The temporal features and the spatial features are input into a spatiotemporal convolutional network constructed by expanding a two-dimensional convolution kernel into a three-dimensional convolution kernel. The non-local attention mechanism is combined to calculate the long-range dependencies between frames and within frames, capture the global context, and generate a content analysis result of the panoramic video.

3. A VR panoramic space information analysis system based on artificial intelligence, used to implement the method described in any one of claims 1 to 2, characterized in that: include: The first unit is used to obtain VR panoramic space information, obtain a panoramic image and a corresponding panoramic video, input the panoramic image into a panoramic semantic segmentation model, and obtain a semantic segmentation result, wherein the panoramic semantic segmentation model extracts shallow features and deep features by performing an adaptive convolution operation in a spherical coordinate system, and determines the probability distribution of each semantic category in combination with a spherical geometric loss function; The second unit is used to learn inter-frame correlation and intra-frame importance based on the panoramic video through a convolutional network combined with a joint attention mechanism, capture temporal and spatial features, perform content analysis on the panoramic video, and obtain a content analysis result; The third unit is used to determine basic nodes and basic edges based on the semantic segmentation result, construct a spatial basic attribute graph, add time dimension dynamic information and the interaction relationship of objects in the panoramic space to the spatial basic attribute graph based on the content parsing result, generate a spatial attribute graph, input the spatial attribute graph into the spatial information analysis network, generate a semantic layout graph and a spatial structure graph, and determine the VR panoramic spatial information analysis result.

4. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 2.

5. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Space object layout generation method and device, equipment and storage medium

    CN117253008A

  • Panoramic image segmentation method and system based on multi-scale context

    CN118072026A