Semantic segmentation method and device based on multi-modal feature fusion and medium

Through multi-modal feature fusion and knowledge distillation technology, combined with 2D and 3D image features, the problem of agricultural robots identifying fruit picking points in complex environments is solved, and the semantic understanding performance and recognition accuracy are improved.

CN118657940APending Publication Date: 2024-09-17FOSHAN UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410709061.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In complex and unstructured agricultural environments, it is difficult for agricultural robots to accurately identify and locate fruit picking points through single-modal semantic segmentation technology, especially due to the ambiguity of depth perception in 2D images and the sparse geometric information of 3D point cloud images. resulting in identification difficulty.

Method used

Using a semantic segmentation method based on multi-modal feature fusion, by acquiring 2D images and 3D point cloud images, using a pre-built multi-modal feature fusion model, the 2D and 3D image features are deformed and fused to generate semantic segmentation results. A lightweight 2D semantic segmentation model is trained through knowledge distillation technology, combined with the Point Transformer V2 model for cross-entropy loss calculation and feature alignment, and the model is adjusted to form a multi-modal feature fusion model.

Benefits of technology

It improves the semantic understanding performance of agricultural robots in complex scenes, enhances the recognition ability in complex backgrounds and individual fruit discrete situations, and ensures the integrity of feature information and the efficient performance of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657940A
    Figure CN118657940A
Patent Text Reader

Abstract

The invention discloses a semantic segmentation method and device based on multi-modal feature fusion and a medium, and relates to the technical field of image semantic segmentation, and the method comprises the steps: inputting a to-be-detected 3D point cloud image into a pre-constructed multi-modal feature fusion model, so as to generate a semantic segmentation result; the construction of the multi-modal feature fusion model comprises the following steps: generating 2D image features according to a 2D image; generating 3D point cloud features according to the 3D point cloud image; performing deformation processing on the sizes of the 2D image features and the 3D point cloud features; performing spherical projection and feature post-processing on the 3D point cloud image to generate spherical 2D features; fusing the spherical 2D feature with the deformed 2D image feature and the 3D point cloud feature to generate a 2D fusion feature and a 3D fusion feature; generating a 2D image prediction result according to the 2D fusion features and calculating 2D cross entropy loss; generating a 3D point cloud prediction result according to the 3D fusion features and calculating 3D cross entropy loss; the 2D image prediction result and the 3D point cloud prediction result are aligned to calculate prediction loss, and the deformed 2D image features and the deformed 3D point cloud features are aligned to calculate feature loss; calculating reference loss; and adjusting the Poi nt Transformer V2 model according to the reference loss so as to form a multi-modal feature fusion model. By adopting the method, the semantic comprehension performance of the agricultural robot in a complex scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image semantic segmentation, and in particular to a semantic segmentation method, device and medium based on multimodal feature fusion. Background Art

[0002] Smart farming equipment is an emerging area in the agricultural sector that offers great potential for optimizing the harvest of fruits and vegetables. However, accurately identifying the picking location of fruits in complex and unstructured environments is an ongoing challenge faced by the agricultural sector.

[0003] With the aging of the population and the increase in labor costs, harvesting has become a very prominent problem, and intelligent harvesting has become a current research hotspot. At present, the operation information perception technology based on machine vision has become the core technology of agricultural robot intelligence. However, since the operation targets of agricultural robots are usually discrete individuals, their individual characteristics are random and diverse. This non-standardized target information increases the difficulty of perception and judgment of the agricultural robot's machine vision system, resulting in the robot being unable to accurately locate the picking position during the operation process.

[0004] In terms of the data itself, two-dimensional RGB images provide rich color information and fine-grained textures, but are ambiguous in depth perception. The relative spatial semantic information obtained is limited, making it difficult to meet the needs of accurately identifying and locating fruit picking points in unstructured orchard environments. In contrast, three-dimensional image data can provide accurate and extensive depth information. However, due to the limitations of scene information, three-dimensional point cloud images have less geometric information and sparse semantic information of voxels. Single-modal semantic segmentation methods inevitably face a series of challenges in complex environments.

[0005] Current research mostly focuses on segmentation technology for two-dimensional images or three-dimensional images, while research on segmentation technology for multimodal fusion is relatively limited. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a semantic segmentation method, device and medium based on multimodal feature fusion, which can improve the semantic understanding performance of agricultural robots in complex scenarios.

[0007] In order to solve the above technical problems, the present invention provides a semantic segmentation method based on multimodal feature fusion, comprising: obtaining a 3D point cloud image to be tested; inputting the 3D point cloud image to be tested into a pre-built multimodal feature fusion model to generate a semantic segmentation result; the construction step of the multimodal feature fusion model comprises: inputting a 2D image into a pre-built 2D semantic segmentation student model to generate 2D image features, wherein the 2D image comprises an RGB image and an image semantic segmentation label; inputting the 3D point cloud image into a Point Transformer V2 model to generate 3D point cloud features, the 3D point cloud image includes point cloud data and point cloud semantic segmentation labels; the sizes of the 2D image features and the 3D point cloud features are deformed respectively; the 3D point cloud image is spherically projected and feature post-processed to generate spherical 2D features; the spherical 2D features are fused with the deformed 2D image features to generate 2D fused features; the spherical 2D features are fused with the deformed 3D point cloud features to generate 3D fused features; the 2D fused features are input into the 2D semantic segmentation student model to generate a 2D image prediction result, and the 2D cross entropy loss is calculated based on the 2D image prediction result and the image semantic segmentation label; the 3D fused features are input into the Point Transformer V2 model to generate a 3D point cloud prediction result, and calculate the 3D cross entropy loss based on the 3D point cloud prediction result and the point cloud semantic segmentation label; align the 2D image prediction result and the 3D point cloud prediction result to calculate the prediction loss, and align the deformed 2D image features and the 3D point cloud features to calculate the feature loss; calculate the baseline loss based on the 2D cross entropy loss, 3D cross entropy loss, prediction loss and feature loss; adjust the Point Transformer V2 model according to the baseline loss to form a multimodal feature fusion model.

[0008] As an improvement of the above scheme, the 2D semantic segmentation student model is a lightweight semantic segmentation model that uses PSPNet-ResNet 101 as the teacher model and PSPNet-MobileNetv2 as the student model, and uses knowledge distillation technology to compress the teacher model.

[0009] As an improvement of the above scheme, it also includes training the multimodal feature fusion model, and the training steps include: pre-training the 2D semantic segmentation student model using the PASCAL VOC dataset, and pre-training the Point Transformer V2 model using the KITTI dataset to generate pre-training weights; updating the multimodal feature fusion model through the pre-training weights; training the updated multimodal feature fusion model using the 2D image training set and the 3D point cloud image training set to generate network weights; and updating the multimodal feature fusion model again through the network weights.

[0010] As an improvement of the above scheme, the steps of deforming the sizes of the 2D image features and the 3D point cloud features include: restoring the 2D image features and the 3D point cloud features to the sizes of the original images; and converting the feature dimensions of the 2D image features and the 3D point cloud features after the sizes have been restored.

[0011] As an improvement of the above scheme, the step of fusing the spherical 2D feature with the deformed 2D image feature to generate a 2D fused feature includes: splicing the spherical 2D feature with the deformed 2D image feature; performing CBL processing on the splicing result to generate an initial fused feature; after performing CBL processing on the initial fused feature, performing feature processing through an activation function to generate a benchmark fused feature; performing element-by-element multiplication processing on the initial fused feature and the benchmark fused feature; and performing element-by-element addition processing on the result of the element-by-element multiplication and the deformed 2D image feature to generate a 2D fused feature.

[0012] As an improvement of the above scheme, the step of fusing the spherical 2D features with the deformed 3D point cloud features to generate 3D fused features includes: weighting the spherical 2D features; weighting the deformed 3D point cloud features; and element-by-element addition of the weighted spherical 2D features and 3D point cloud features to generate 3D fused features.

[0013] As an improvement of the above scheme, the step of inputting the 3D fusion features into the Point Transformer V2 model to generate a 3D point cloud prediction result includes: upsampling the 3D fusion features through the Point Transformer V2 model to generate a 3D point cloud prediction result.

[0014] As an improvement of the above scheme, the steps of aligning the 2D image prediction results and the 3D point cloud prediction results to calculate the prediction loss, and aligning the deformed 2D image features and the 3D point cloud features to calculate the feature loss include: calculating the KL divergence value between the 2D image prediction results and the 3D point cloud prediction results, and using it as the prediction loss; calculating the KL divergence value between the deformed 2D image features and the deformed 3D point cloud features, and using it as the feature loss.

[0015] Correspondingly, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned semantic segmentation method of multimodal feature fusion when executing the computer program.

[0016] Correspondingly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the semantic segmentation method of multimodal feature fusion are implemented.

[0017] The present invention can be applied to multimodal feature fusion semantic segmentation in complex orchard environments. The implementation of the present invention has the following beneficial effects:

[0018] The present invention fuses 2D image features and 3D point cloud features, and by transferring additional knowledge to the 3D model, the complete information from the multimodal data can be well preserved during the knowledge transfer process;

[0019] The present invention unidirectionally aligns the fused features with the point cloud features, and ensures that the fused point cloud features are enhanced without losing modality-specific information through unidirectional alignment, so that the model can also show efficient performance when facing challenges such as complex backgrounds and discrete fruit individuals;

[0020] Furthermore, based on the knowledge distillation technology, the present invention trains a lightweight 2D semantic segmentation student model under the guidance of a powerful teacher model, so that the student model can maintain performance close to or even surpass that of the teacher model while significantly reducing the number of parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of an embodiment of a semantic segmentation method based on multimodal feature fusion of the present invention;

[0022] Figure 2 It is a flow chart of an embodiment of the method for constructing a multimodal feature fusion model in the present invention. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0024] See also Figure 1 , Figure 1 The flowchart of an embodiment of the semantic segmentation method based on multimodal feature fusion of the present invention is shown, which includes:

[0025] S101, obtaining a 3D point cloud image to be measured;

[0026] S102, inputting the 3D point cloud image to be tested into a pre-built multimodal feature fusion model to generate a semantic segmentation result.

[0027] The semantic segmentation results can accurately determine the label type of each point, such as point A is a grape and point B is a leaf.

[0028] Different from the prior art, the present invention can effectively improve the semantic understanding performance of agricultural robots in complex scenarios by constructing a targeted multimodal feature fusion model, thereby hopefully improving the robot's picking efficiency.

[0029] like Figure 2 As shown in the figure, the steps for building the multimodal feature fusion model include:

[0030] S201, inputting the 2D image into a pre-built 2D semantic segmentation student model to generate 2D image features;

[0031] The 2D semantic segmentation student model in the present invention is a lightweight semantic segmentation model obtained by using PSPNet-ResNet 101 as the teacher model, PSPNet-MobileNetv2 as the student model, and using knowledge distillation technology (CIRKD) to compress the teacher model.

[0032] Therefore, based on the knowledge distillation technology, the present invention trains a lightweight 2D semantic segmentation student model under the guidance of the powerful PSPNet-ResNet 101 teacher model, so that the performance of the student model can be close to or even exceed that of the teacher model while the number of parameters is greatly reduced.

[0033] It should be noted that the 2D image is a 2D image dataset constructed for an orchard scene. The present invention processes the collected 2D image according to the PASCAL VOC dataset format. The 2D image includes an RGB image and an image semantic segmentation label.

[0034] For example, the resulting 2D image dataset can be recorded as By inputting the 2D image into the pre-built 2D semantic segmentation student model, the 2D image features can be obtained, which are recorded as Among them, H l represents the height of the l-th layer feature, W lrepresents the width of the l-th layer feature, C represents the feature dimension, and K1 represents the number of 2D images in the 2D image dataset.

[0035] S202, inputting the 3D point cloud image into the Point Transformer V2 model to generate 3D point cloud features;

[0036] It should be noted that the 3D point cloud image is a 3D point cloud image dataset constructed for the orchard scene. The present invention processes the collected 3D point cloud image according to the KITTI dataset format. The 3D point cloud image includes point cloud data, point cloud semantic segmentation labels and image point cloud calibration files.

[0037] For example, the 3D point cloud image dataset can be recorded as By inputting the 3D point cloud image into the encoder of the Point Transformer V2 model, the 3D point cloud features can be obtained, which is recorded as Among them, N l represents the number of points in the lth layer, and K2 represents the number of 3D point cloud images in the 3D point cloud image dataset.

[0038] S203, deforming the size of the 2D image feature;

[0039] (1) Restore the 2D image features to the size of the original image, that is:

[0040]

[0041] (2) The 2D image features after size reduction are converted into feature dimensions, namely:

[0042]

[0043] Among them, M represents the dimension after feature transformation.

[0044] S204, deforming the size of the 3D point cloud feature;

[0045] (1) Restore the 3D point cloud features to the size of the original image, that is:

[0046]

[0047] (2) The 3D point cloud features after size restoration are converted into feature dimensions, namely:

[0048]

[0049] S205, performing spherical projection and feature post-processing on the 3D point cloud image to generate spherical 2D features;

[0050] Specifically, the features of the 3D point cloud image can be first extracted through a 2D convolution layer with a convolution kernel of 1×N; then a Reshape operation is performed to convert its feature dimension into M×C; and finally a spherical 2D feature obtained by projecting the 3D point cloud image is obtained.

[0051] For example, a 3D point cloud image Spherical projection and feature post-processing operations can obtain a spherical 2D feature representation Among them, H s is the height of the spherical projection, W s is the width of the spherical projection.

[0052] S206, fusing the spherical 2D feature with the deformed 2D image feature to generate a 2D fused feature;

[0053] Accordingly, the specific steps of fusing the spherical 2D features with the deformed 2D image features include:

[0054] (1) Splicing the spherical 2D features with the deformed 2D image features;

[0055] (2) Processing the splicing results with CBL to generate initial fusion features;

[0056] Through steps (1) and (2), the deformed 2D image With the spherical 2D feature F l sp After splicing, and then passing through the integration module CBL, the initial fusion feature is recorded as

[0057] (3) After the initial fusion features are processed by CBL, feature processing is performed through the activation function to generate the benchmark fusion features;

[0058] The initial fusion features Input to the integration module CBL and processed by the activation function Sigmoid, and the obtained benchmark fusion feature is recorded as

[0059] (4) Performing element-by-element multiplication of the initial fusion feature and the reference fusion feature;

[0060] (5) The result of the element-by-element multiplication is added element-by-element to the deformed 2D image features to generate a 2D fusion feature.

[0061] Through steps (4) and (5), the benchmark fusion feature With the initial fusion feature Perform element-by-element multiplication and then add it to the deformed 2D image features Add element by element and record the result as

[0062] That is:

[0063]

[0064] in,

[0065] CBL are Conv2D, Batch Normalization and Leaky ReLU operations;

[0066] Concat represents concatenation operation;

[0067] ⊕ represents element-by-element addition operation;

[0068] ⊙ represents an element-by-element multiplication operation.

[0069] S207, fusing the spherical 2D feature with the deformed 3D point cloud feature to generate a 3D fused feature;

[0070] Accordingly, the specific steps of fusing the spherical 2D features with the deformed 3D point cloud features include:

[0071] (1) Weighting of spherical 2D features;

[0072] (2) Weighting the deformed 3D point cloud features;

[0073] (3) The weighted spherical 2D features and 3D point cloud features are added element by element to generate 3D fusion features.

[0074] The spherical 2D feature F l sp 3D point cloud features after deformation After weighting, the two are added element by element, and the resulting 3D fusion feature is recorded as The calculation formula is as follows:

[0075]

[0076] Therefore, the present invention forms a cross-modal fusion knowledge transfer (CMFKTM) strategy by fusing the spherical 2D features with the deformed 3D point cloud features, thereby migrating additional knowledge to the 3D model. At the same time, the complete information from the multimodal data can be well preserved during the knowledge transfer process.

[0077] S208, inputting the 2D fusion features into the 2D semantic segmentation student model to generate a 2D image prediction result, and calculating a 2D cross entropy loss according to the 2D image prediction result and the image semantic segmentation label;

[0078] For example, 2D fusion features As input features, it is input into the 2D semantic segmentation student model to obtain the 2D image prediction result Then, the 2D image prediction result P 2D Calculate 2D cross entropy loss with image semantic segmentation labels

[0079] It should be noted that the decoder of the 2D semantic segmentation student model refers to the head module of PSPNet. The cross-entropy loss function is a loss function commonly used in machine learning and deep learning to measure the difference between the model output and the true label.

[0080] The calculation formula for 2D cross entropy loss is as follows:

[0081]

[0082] in,

[0083] H represents the height of the image;

[0084] W represents the width of the image;

[0085] CE is the cross entropy loss function;

[0086] Z h,w represents the predicted value;

[0087] y h,w Indicates the tag value;

[0088] σ is the activation function.

[0089] S209, inputting the 3D fusion features into the Point Transformer V2 model to generate a 3D point cloud prediction result, and calculating the 3D cross entropy loss according to the 3D point cloud prediction result and the point cloud semantic segmentation label;

[0090] Specifically, the 3D fusion features can be decoded by the Point Transformer V2 model. Upsample the rows to generate 3D point cloud prediction results

[0091] Then, the 3D point cloud prediction result P 3D Calculate 3D cross entropy loss with point cloud semantic segmentation labels

[0092]

[0093] in,

[0094] N represents the number of points in the point cloud data;

[0095] Z n is the predicted value;

[0096] y n is the tag value.

[0097] S210, aligning the 2D image prediction result and the 3D point cloud prediction result to calculate the prediction loss, and aligning the deformed 2D image features and the 3D point cloud features to calculate the feature loss;

[0098] Alignment refers to the use of one-way knowledge alignment. The specific alignment steps include:

[0099] (1) Calculate the 2D image prediction result P 2D And the 3D point cloud prediction result P 3D The KL divergence value between them is used as the prediction loss Loss P :

[0100]

[0101] in,

[0102] D KL It is the KL divergence calculation function;

[0103] T is the temperature coefficient.

[0104] (2) Calculate the deformed 2D image features 3D point cloud features after deformation The KL divergence value between them is used as the feature loss Loss 2D3D :

[0105]

[0106] in,

[0107] L is the number of layers of the feature matrix;

[0108] τ is the temperature coefficient.

[0109] Therefore, the present invention uses a unidirectional alignment method to ensure that the fused point cloud features are enhanced without losing the modality-specific information, so that the model can demonstrate efficient performance even when facing challenges such as complex backgrounds and discrete individual fruits.

[0110] S211, calculate the baseline loss based on 2D cross entropy loss, 3D cross entropy loss, prediction loss and feature loss:

[0111]

[0112] Among them, α and β are loss coefficients designed to balance the impact of distillation loss on the main task loss.

[0113] S212: Adjust the Point Transformer V2 model according to the baseline loss to form a multimodal feature fusion model.

[0114] As can be seen from the above, the present invention combines multimodal fusion and knowledge distillation strategies; it not only uses data from multiple modalities to enhance the model's ability to visually perceive unstructured environments in the wild, but also uses 2D image data representation to further supplement 3D point cloud data information; it also uses knowledge distillation technology to perform knowledge alignment between features and prediction results during the processing of 2D and 3D data images, so that the richer spatial features in the 3D image can guide the 2D image feature representation. Therefore, the present invention makes use of the delicate pixel information of 2D images and the rich spatial semantic information of 3D images, so that the picking robot can better understand the semantic information of various objects in the scene in complex unstructured scenes, further improving the picking efficiency.

[0115] Furthermore, after completing step S211, the multimodal feature fusion model may be trained. The specific training steps include:

[0116] (1) Pre-train the 2D semantic segmentation student model using the PASCAL VOC dataset and pre-train the Point Transformer V2 model using the KITTI dataset to generate pre-trained weights;

[0117] (2) Update the multimodal feature fusion model through pre-trained weights;

[0118] (3) Using the 2D image training set and the 3D point cloud image training set to train the updated multimodal feature fusion model to generate network weights;

[0119] (4) Update the multimodal feature fusion model again through the network weights.

[0120] Therefore, hybrid training of the multimodal feature fusion model by using 2D image training sets and 3D point cloud image training sets can effectively improve the recognition accuracy of the multimodal feature fusion model.

[0121] Correspondingly, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned semantic segmentation method based on multimodal feature fusion when executing the computer program.

[0122] At the same time, the present invention also discloses a computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the above-mentioned semantic segmentation method based on multimodal feature fusion are implemented.

[0123] In summary, the present invention can be applied to multimodal feature fusion semantic segmentation in complex orchard environments. The present invention has the following beneficial effects:

[0124] The present invention introduces strong regularization and prior knowledge from 2D images, performs knowledge transfer and knowledge fusion on a single modality, thereby optimizing the sparsity, density variation and lack of texture of large-scale outdoor 3D point cloud data.

[0125] The present invention obtains richer semantic and structural information from multimodal data, and extracting this information into a 3D network can effectively learn the key features of the region of interest, thereby improving the accuracy of complex scene analysis in orchards at a lower computational cost;

[0126] Based on knowledge distillation technology, the present invention trains a lightweight 2D semantic segmentation student model under the guidance of a powerful teacher model, so that the student model can maintain performance close to or even surpass that of the teacher model while significantly reducing the number of parameters;

[0127] The present invention fuses 2D image features and 3D point cloud features, and by transferring additional knowledge to the 3D model, the complete information from the multimodal data can be well preserved during the knowledge transfer process;

[0128] The present invention unidirectionally aligns the fused features with the point cloud features. The unidirectional alignment ensures that the fused point cloud features are enhanced without losing modality-specific information, so that the model can demonstrate efficient performance even when facing challenges such as complex backgrounds and discrete individual fruits.

[0129] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A semantic segmentation method based on multimodal feature fusion, characterized in that: include: Obtain the 3D point cloud image to be tested; Inputting the 3D point cloud image to be tested into a pre-built multimodal feature fusion model to generate a semantic segmentation result; The steps of constructing the multimodal feature fusion model include: Inputting a 2D image into a pre-built 2D semantic segmentation student model to generate 2D image features, wherein the 2D image includes an RGB image and an image semantic segmentation label; Inputting the 3D point cloud image into the Point Transformer V2 model to generate 3D point cloud features, wherein the 3D point cloud image includes point cloud data and point cloud semantic segmentation labels; Deforming the sizes of the 2D image features and the 3D point cloud features respectively; Performing spherical projection and feature post-processing on the 3D point cloud image to generate spherical 2D features; fusing the spherical 2D feature with the deformed 2D image feature to generate a 2D fused feature; fusing the spherical 2D feature with the deformed 3D point cloud feature to generate a 3D fused feature; Inputting the 2D fusion features into the 2D semantic segmentation student model to generate a 2D image prediction result, and calculating a 2D cross entropy loss based on the 2D image prediction result and the image semantic segmentation label; Input the 3D fusion features into the Point Transformer V2 model to generate a 3D point cloud prediction result, and calculate the 3D cross entropy loss based on the 3D point cloud prediction result and the point cloud semantic segmentation label; Aligning the 2D image prediction result and the 3D point cloud prediction result to calculate the prediction loss, and aligning the deformed 2D image features and the 3D point cloud features to calculate the feature loss; Calculate a baseline loss based on the 2D cross entropy loss, 3D cross entropy loss, prediction loss, and feature loss; The Point Transformer V2 model is adjusted according to the baseline loss to form a multimodal feature fusion model.

2. The semantic segmentation method based on multimodal feature fusion as claimed in claim 1, characterized in that ,The 2D semantic segmentation student model is a lightweight semantic segmentation model that uses PSPNet-ResNet 101 as the teacher model and PSPNet-MobileNetv2 as the student model, and uses knowledge distillation technology to compress the teacher model.

3. The semantic segmentation method based on multimodal feature fusion as claimed in claim 2, characterized in that , and also includes training the multimodal feature fusion model, the training steps including: Pre-training the 2D semantic segmentation student model using the PASCAL VOC dataset and pre-training the Point Transformer V2 model using the KITTI dataset to generate pre-trained weights; Updating the multimodal feature fusion model through the pre-trained weights; Using the 2D image training set and the 3D point cloud image training set to train the updated multimodal feature fusion model to generate network weights; The multimodal feature fusion model is updated again through the network weights.

4. The semantic segmentation method based on multimodal feature fusion according to claim 1, characterized in that: The step of deforming the sizes of the 2D image features and the 3D point cloud features comprises: Restoring the 2D image features and the 3D point cloud features to the sizes of the original images respectively; The restored 2D image features and 3D point cloud features are converted into feature dimensions respectively.

5. The semantic segmentation method based on multimodal feature fusion according to claim 1, characterized in that: The step of fusing the spherical 2D feature with the deformed 2D image feature to generate a 2D fused feature comprises: Splicing the spherical 2D feature with the deformed 2D image feature; Performing CBL processing on the splicing result to generate an initial fusion feature; After the initial fusion feature is subjected to CBL processing, feature processing is performed through an activation function to generate a reference fusion feature; Performing element-by-element multiplication of the initial fusion feature and the reference fusion feature; The result of the element-by-element multiplication is added element-by-element to the deformed 2D image features to generate 2D fusion features.

6. The semantic segmentation method based on multimodal feature fusion according to claim 1, characterized in that: The step of fusing the spherical 2D feature with the deformed 3D point cloud feature to generate a 3D fused feature comprises: Performing weighted processing on the spherical 2D features; Perform weighted processing on the deformed 3D point cloud features; The weighted spherical 2D features and 3D point cloud features are added element by element to generate 3D fusion features.

7. The semantic segmentation method based on multimodal feature fusion according to claim 1, characterized in that: The step of inputting the 3D fusion features into the Point Transformer V2 model to generate a 3D point cloud prediction result comprises: The 3D fusion features are upsampled through the Point Transformer V2 model to generate a 3D point cloud prediction result.

8. The semantic segmentation method based on multimodal feature fusion according to claim 1, characterized in that: The steps of aligning the 2D image prediction result and the 3D point cloud prediction result to calculate the prediction loss, and aligning the deformed 2D image features and the 3D point cloud features to calculate the feature loss include: Calculate the KL divergence value between the 2D image prediction result and the 3D point cloud prediction result, and use it as the prediction loss; The KL divergence value between the deformed 2D image features and the deformed 3D point cloud features is calculated and used as the feature loss.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

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

Citation Information

Cited By

  • Building three-dimensional information extraction method, device and equipment based on multi-modal data

    CN120088659A