Multi-task learning method and system based on multimodal data

By performing spatiotemporal alignment and feature extraction on multi-modal data, combined with uncertainty loss weighting, the problem of insufficient utilization of complementarity of multi-modal data in the existing technology is solved, and efficient multi-task learning effects are achieved.

CN112183547BActive Publication Date: 2024-09-17INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011116788.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-19
Publication Date
2024-09-17
Estimated Expiration
2040-10-19

AI Technical Summary

Technical Problem

Existing multi-task learning methods cannot fully utilize the complementarity between multi-modal data and the correlation between tasks, resulting in insufficient learning efficiency and accuracy.

Method used

By acquiring multi-modal data, performing spatio-temporal alignment, extracting hard shared features, soft shared features and non-shared features, and using uncertainty loss weighting to calculate the overall loss function to train multi-task learning methods.

Benefits of technology

It achieves fast and accurate multi-task learning, eliminates the redundancy of data between modalities, and achieves lightweight effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112183547B
    Figure CN112183547B
Patent Text Reader

Abstract

The present invention provides a multi-task learning method and system based on multimodal data, including obtaining multimodal data for completing multiple tasks, grouping the multimodal data by modality type, and performing spatiotemporal alignment; extracting hard shared features of data in each modality from the aligned multimodal data, obtaining soft shared features related to different tasks in each modality based on the hard shared features, obtaining non-shared features related to different tasks in each modality based on the soft shared features, and obtaining data features corresponding to each of the multiple tasks based on the non-shared features; executing the multiple tasks based on the corresponding data features, and calculating the loss function of each of the multiple tasks; and calculating the overall loss function of the multi-task learning method by weighting with uncertainty loss to train the multi-task learning method. The technical solution of the embodiment of the present invention can make full use of the complementarity between multimodal data, quickly and accurately complete multi-task learning, and achieve lightweight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning, and in particular to a multi-task learning method and system based on multimodal data. Background Art

[0002] Multi-task learning (MTL) is a branch of machine learning that uses the commonalities and differences between multiple tasks to solve multiple learning tasks at the same time. Compared with learning each task separately, multi-task learning can improve the learning efficiency and prediction accuracy of task-specific models. In multi-task learning, there is correlation between several given tasks (or at least some of them), which includes two aspects: one is modal correlation, that is, multiple tasks use data of the same modality; the other is the correlation of feature representation, that is, the features required by multiple tasks have a certain correlation. Therefore, multi-task learning mainly improves the performance of each task based on the correlation between tasks.

[0003] However, existing multi-task learning methods generally use a single multi-task learning technology, such as only one of the hard parameter sharing technology, soft parameter sharing technology, multi-task loss weighting technology, etc., and therefore cannot fully utilize the correlation between different tasks. In addition, multiple tasks often use the same modality of input data, which cannot effectively utilize the complementarity of different modal data.

[0004] Therefore, a multi-task learning method based on multimodal data is urgently needed. Summary of the invention

[0005] Therefore, the purpose of the embodiments of the present invention is to overcome the defects of the above-mentioned prior art and provide a multi-task learning method and system based on multimodal data, which can make full use of the complementarity between multimodal data, quickly and accurately complete multi-task learning, and achieve lightweight.

[0006] The above purpose is achieved through the following technical solutions:

[0007] According to a first aspect of the present invention, a multi-task learning method based on multimodal data is provided, comprising acquiring multimodal data for completing multiple tasks, grouping the multimodal data by modality type, and performing spatiotemporal alignment; extracting hard shared features of data in each modality from the aligned multimodal data, obtaining soft shared features related to different tasks in each modality based on the hard shared features, obtaining non-shared features related to different tasks in each modality based on the soft shared features, and obtaining data features corresponding to each of the multiple tasks based on the non-shared features; executing the multiple tasks based on the corresponding data features, and calculating the loss function of each of the multiple tasks; and calculating the overall loss function of the multi-task learning method by weighting with uncertainty loss to train the multi-task learning method.

[0008] In some embodiments of the present invention, when a task depends on a single modal data feature, the non-shared feature extracted from the single modal data is the data feature corresponding to the task; when a task depends on multimodal data, the non-shared features extracted from each modal data of the multimodal data are subjected to feature fusion, and the fused non-shared features are the data features corresponding to the task.

[0009] In some embodiments of the present invention, when the task depends on multimodal data, an attention concentration mechanism is used to perform feature fusion on the non-shared features extracted from each modal data that depends on the multimodal data, including: concatenating the non-shared features extracted from each modal data that depends on the multimodal data, and transforming them to generate a feature mask; and fusing the non-shared features based on the feature mask features.

[0010] In some embodiments of the present invention, the multi-task learning method is trained by minimizing the loss.

[0011] In some embodiments of the present invention, the multi-task learning method is trained by cross entropy and / or regression loss.

[0012] In some embodiments of the present invention, the soft shared features are extracted using L2 paradigm or cross-stitch network.

[0013] In some embodiments of the present invention, the weighted calculation of the overall loss function of the multi-task learning method using uncertainty loss includes: adjusting the loss function of each task in the multiple tasks based on the output standard deviation of each task; summing the adjusted loss functions of each task to obtain the overall loss function of the multi-task learning method.

[0014] According to a second aspect of the present invention, a multi-task learning system based on multimodal data is also provided, comprising: an interface module, used to obtain multimodal data for completing multiple tasks, group the multimodal data by modality type, and perform spatiotemporal alignment; a feature extraction module, used to extract hard shared features of data in each modality from the aligned multimodal data, obtain soft shared features related to different tasks in each modality based on the hard shared features, obtain non-shared features related to different tasks in each modality based on the soft shared features, and obtain data features corresponding to each of the multiple tasks based on the non-shared features; a loss calculation module, used to complete the multiple tasks based on the corresponding data features, calculate the loss function of each of the multiple tasks, and calculate the overall loss function of the multi-task learning method by weighting with uncertainty loss; and a training module, used to train the multi-task learning method based on the overall loss function.

[0015] According to a third aspect of the present invention, there is provided a computer-readable storage medium on which a computer program is stored. When the program is executed, the method described in the first aspect of the above embodiment is implemented.

[0016] According to a fourth aspect of the present invention, there is provided an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method described in the first aspect of the above embodiment is implemented.

[0017] The technical solution of the present invention makes full use of the complementarity between multimodal data, eliminates the redundancy of inter-modal data, and can quickly and accurately complete multi-task learning to achieve lightweight.

[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings herein are incorporated into and constitute a part of the specification, showing embodiments consistent with the present invention, and together with the specification, are used to explain the principles of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0020] Figure 1 A flowchart of a multi-task learning method based on multimodal data according to an embodiment of the present invention is shown;

[0021] Figure 2 A flowchart of extracting data features corresponding to each task from multimodal data according to an embodiment of the present invention is shown;

[0022] Figure 3 A schematic diagram of extracting data features corresponding to each task from multimodal data according to an embodiment of the present invention is shown;

[0023] Figure 4 A schematic diagram showing extraction of hard sharing features according to an embodiment of the present invention is shown;

[0024] Figure 5 A schematic diagram of extracting soft sharing features according to an embodiment of the present invention is shown;

[0025] Figure 6 A schematic diagram showing feature fusion of non-shared features of a task that relies on multimodal data according to an embodiment of the present invention is shown;

[0026] Figure 7 A schematic diagram showing an uncertainty loss weighting mechanism according to an embodiment of the present invention is shown;

[0027] Figure 8 A schematic structural diagram of a multi-task learning system based on multimodal data according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail by specific embodiments in conjunction with the accompanying drawings. It should be understood that the described embodiments are part of the embodiments of the present invention, rather than 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 belong to the scope of protection of the present invention.

[0029] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solution of the present invention can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring various aspects of the present invention.

[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0032] In existing multi-task learning, since a single learning technology and single-modal input data are usually used, the correlation between tasks and the complementarity of different modal data cannot be fully utilized, and there is no multi-modal data fusion. The present invention utilizes the characteristics of multi-task learning, combines hardware parameter sharing, software parameter sharing, multi-task loss weighting and other methods, extracts data features corresponding to each task in the multi-task from the multi-modal input data and executes the task, calculates the loss function of each task, and uses the overall loss function of multi-task learning through uncertainty loss weighting technology to train the multi-task learning method.

[0033] Figure 1 FIG. 1 is a flowchart of a multi-task learning method based on multimodal data according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0034] S110, acquiring multimodal data for completing multiple tasks, grouping the multimodal data by modality type, and performing spatiotemporal alignment.

[0035] Data from multiple sources are organized into different input data according to the modality type, and the input data of different modalities meet certain spatiotemporal alignment requirements. For example, in a multi-task learning, three tasks need to be completed, namely, task one image semantic segmentation, task two 3D target detection, and task three point cloud semantic segmentation. The input data includes data of two modalities, image data and point cloud data. Among them, task one image semantic segmentation depends on image data, task two 3D target detection depends on image data and point cloud data, and task three point cloud semantic segmentation depends on point cloud data. First, align the time of image data and point cloud data. For example, the time stamp can be used to ensure the time alignment of the two modal data; then align the spatial coordinates of image data and point cloud data. In one embodiment, the view frustum corresponding to the point cloud data can be intercepted based on the image data to ensure spatial alignment. For example, the intrinsic and extrinsic matrix of the camera, the coordinate transformation matrix of the camera and the laser radar are obtained, the view frustum is determined by the camera, and then the view frustum is projected into the laser radar, and only the laser point cloud data inside the view frustum is extracted, thereby realizing the spatial alignment of image data and point cloud data.

[0036] S120, extracting hard shared features of the data in each modality from the aligned multimodal data, obtaining soft shared features related to different tasks in each modality based on the hard shared features, obtaining non-shared features related to different tasks in each modality based on the soft shared features, and obtaining data features corresponding to each of the multiple tasks based on the non-shared features.

[0037] For the sake of clarity, we first explain the two parameter sharing mechanisms in a unified way: the hard parameter sharing mechanism means that multiple tasks use the same feature extraction network, which extracts the same features for different tasks, i.e., "hard shared features"; the soft parameter sharing mechanism means that each task has its own feature extraction subnetwork, but the subnetworks of different tasks are mutually constrained, and the features extracted by different subnetworks are correlated, i.e., "soft shared features". In addition, if the extracted features do not use any sharing mechanism, they are "non-shared features".

[0038] In the present invention, based on the grouped and aligned data, the hard sharing mechanism and soft sharing mechanism are respectively used in each modality, and the hard sharing features, soft sharing features and non-sharing features of each modality data are extracted from the aligned multimodal data in turn, and the data features corresponding to each task are obtained based on the non-sharing features. In this process, the degree of feature sharing between different tasks is gradually reduced.

[0039] Figure 2 A flow chart of extracting data features corresponding to each task from multimodal data according to an embodiment of the present invention is shown. Figure 3 FIG. 1 is a schematic diagram showing a method of extracting data features corresponding to each task from multimodal data according to an embodiment of the present invention. Figure 2 As shown, step S120 includes the following steps:

[0040] S210, extracting hard shared features for input data of the same modality.

[0041] Figure 4 FIG. 2 is a schematic diagram showing a method for extracting hard sharing features according to an embodiment of the present invention. Figure 4 As shown, for each modality of input data, a corresponding neural network is used to extract its hard shared features, so that the hard shared features can be shared between different tasks in the modality. For example, for image data, a 2D convolutional network can be used to extract hard shared features for image semantic segmentation tasks (i.e., task one) and 3D object detection tasks (i.e., task two); for point cloud data, a Pointnet network or a voxel feature encoding layer VFE (Voxel Feature Encoding) can be combined with a 3D convolutional network to extract hard shared features for 3D object detection tasks and point cloud semantic segmentation tasks.

[0042] S220, based on the hard shared features, extract soft shared features related to different tasks in the same modality.

[0043] Based on the obtained hard shared features, soft shared features are extracted for different tasks in each modality. The soft shared features related to different tasks in the same modality are not independent and unrelated to each other, but are constrained according to the correlation between tasks.

[0044] Figure 5 FIG. 2 is a schematic diagram showing a method for extracting soft sharing features according to an embodiment of the present invention. Figure 5 As shown in the figure, different tasks in the same modality use corresponding neural networks to extract their soft shared features. For example, for image data, different convolutional subnetworks can be used to extract soft shared features of image semantic segmentation task (i.e., task one) and 3D object detection task (i.e., task two), respectively. The inputs of the two subnetworks are hard shared features of image data, but the outputs are the soft shared features of image semantic segmentation task (i.e., task one) and 3D object detection task (i.e., task two). Similarly, for point cloud data, different Pointnet subnetworks can be used to extract soft shared features of 3D object detection network (i.e., task two) and point cloud semantic segmentation task (i.e., task three). The inputs of the two subnetworks are hard shared features of point cloud data, and the outputs are the soft shared features of 3D object detection network (i.e., task two) and point cloud semantic segmentation task (i.e., task three).

[0045] In order to make the soft shared features within the same modality constrain each other based on the correlation between tasks, the neural networks used for different tasks within the modality can be constrained. In one embodiment, the L2 norm can be used to achieve the similarity of parameters in the feature extraction networks of different tasks, so that the extracted soft shared features are constrained against each other. For example, the L2 distance of the parameter vectors of the feature extraction networks corresponding to different tasks in the same modality can be used as an optimization target in the training model stage, and the target is minimized so that the features extracted by different feature extraction networks have similarities, so as to obtain soft shared features for different tasks. In another embodiment, a cross-stitch network can also be used to constrain network similarity. For example, the network can automatically learn the features that need to be shared by adding a "cross-stitch" unit between the feature layers of the two networks.

[0046] S230, extracting non-shared features related to different tasks in the same modality based on the soft shared features.

[0047] In each modality, based on the soft-shared features, non-shared features related to different tasks are extracted, that is, matching features are extracted for each task to ensure the task relevance of the features. At this time, features are no longer shared between different tasks. The input of the feature extraction network of each task is the respective soft-shared features, and the output is the task-related non-shared features. For example, in image data, different convolutional subnetworks are used to extract non-shared features of the image semantic segmentation task (task one) and the 3D object detection task (task two). At this time, the inputs of the two subnetworks are their respective soft-shared features, and the outputs are the non-shared features related to the image semantic segmentation task (task one) and the image non-shared features related to the 3D object detection task (task two); in point cloud data, different Pointnet subnetworks are used to extract non-shared features of the 3D object detection network (task two) and the point cloud semantic segmentation task (task three). At this time, the inputs of the two subnetworks are their respective soft-shared features, and the outputs are the non-shared features related to the 3D object detection network (task two) and the point cloud non-shared features related to the point cloud semantic segmentation task (task three).

[0048] S240: Obtain data features corresponding to each of the multiple tasks based on the non-shared features.

[0049] When a task depends on the features of a single modal data, the non-shared features extracted from the single modal data are the data features corresponding to the task; when a task depends on multimodal data, the non-shared features extracted from each modal data of the dependent multimodal data are fused, and the fused non-shared features are the data features corresponding to the task.

[0050] Figure 6 FIG. 1 is a schematic diagram showing feature fusion of non-shared features of a task that relies on multimodal data according to an embodiment of the present invention. Figure 6As shown, the attention concentration mechanism can be used to balance the effects of non-shared features of different modalities. The non-shared features of different modalities are concatenated and transformed to generate a feature mask, and then the mask is used to adjust the fused features. For example, the feature vector of the non-shared feature of modality one is x1, and the feature vector of the non-shared feature of modality two is x2. The feature vector x1 of the non-shared feature of modality one and the feature vector x2 of the non-shared feature of modality two are concatenated to obtain the concatenated feature vector x3 (x3 = concat (x1, x2), where concat represents the concatenation operation), and then the concatenated feature vector x3 is transformed to obtain the transformed feature vector x4 (x4 = g (x3), where g represents the feature transformation network), and the feature mask m of the concatenated feature vector x3 is generated (m = attention (x3), where attention represents the network that generates the mask), and the feature mask is used to adjust the transformed feature vector x4 to obtain the fused feature vector x5 ( in represents dot product).

[0051] S130, executing multiple tasks based on corresponding data features, and calculating the loss function of each of the multiple tasks.

[0052] The difference between the predicted value and the true value of a sample is called loss, and the function used to calculate the loss is called the loss function. During the training phase, the parameters of the model can be trained by minimizing the loss.

[0053] In one embodiment, for tasks that only rely on a single modality of data, cross entropy can be used to calculate the loss function of the task. For example, the image semantic segmentation task (task one) only relies on image data, and the cross entropy loss can be used to measure the task performance; the point cloud semantic segmentation task (task three) only relies on point cloud data, and the cross entropy loss can also be used to measure the task performance. Cross entropy loss is used to measure the difference between probability distributions, and here it is used to measure the difference between the predicted distribution and the true distribution of the category to which each pixel in the image (or each point in the point cloud) belongs.

[0054] In one embodiment, for tasks that rely on multiple modal data, the non-shared features obtained in different modalities of the task that relies on multi-modal data can be fused to obtain the corresponding data features, and then the loss is calculated after the task is executed based on the corresponding data features. For example, the 3D target detection task (Task 2) relies on data in two modalities, image and point cloud. The non-shared features of the task are extracted in both modalities. After the two non-shared features are fused, the loss is calculated after the prediction output. At this time, the loss includes two parts, one is the cross entropy loss for target classification (the object category corresponding to the 3D detection box), and the other is the regression loss for positioning (the position and size of the 3D detection box). The regression loss is used to measure the difference between the predicted value and the true value of the continuous variable. Specifically, square loss, absolute value loss, etc. can be used.

[0055] S140, using uncertainty loss weighted to calculate the overall loss function of the multi-task learning method to train the multi-task learning method.

[0056] For the loss obtained for each task, by using the uncertainty-based loss weighting mechanism to calculate the overall loss function of the multi-task learning method, we can dynamically adapt to the changes in the relative performance of each task during the model training process. For example, at a certain stage, task 1 is far better than task 2, then the adjusted weighted loss will make task 2 more important, thereby focusing on optimizing task 2 and reducing the focus on task 1, thereby achieving better overall performance. For the loss function L of task i i , assuming that the uncertainty of task i (i.e., output standard deviation) is σ i , and σ i Satisfy the formula:

[0057]

[0058] Among them, w i is a learnable parameter, exp is an exponential function, sqrt is a square root function,

[0059] The adjusted loss function is:

[0060]

[0061] Finally, sum all the adjusted loss functions to get the overall loss function:

[0062] L=ΣL i ' (3)

[0063] By introducing the uncertainty of the task (i.e., the output standard deviation) into the loss function, the overall likelihood function of multiple tasks can be minimized.

[0064] Figure 7FIG. 4 is a schematic diagram showing an uncertainty loss weighting mechanism according to an embodiment of the present invention. Figure 7 As shown, the loss function of task one is adjusted by its uncertainty σ1, the loss function of task two is adjusted by its uncertainty σ2, and the loss function of task three is adjusted by its uncertainty σ3. Finally, all adjusted loss functions are summed to obtain the overall loss function L.

[0065] Through the above uncertainty loss weighting mechanism, different tasks in multi-task learning can be balanced.

[0066] On the other hand, the present invention also provides a multi-task learning system based on multi-modal data, which is used to execute the above-mentioned multi-task learning method based on multi-modal data.

[0067] Figure 8 FIG. 1 is a schematic diagram of a multi-task learning system based on multimodal data according to an embodiment of the present invention. Figure 8 As shown, the system 800 includes an interface module 801, a feature extraction module 802, a loss calculation module 803, and a training module 804. Although the block diagram describes the components in a functionally separate manner, such description is for illustrative purposes only. The components shown in the figure can be arbitrarily combined or divided into independent software, firmware and / or hardware components. Moreover, no matter how such components are combined or divided, they can be executed on the same computing device or multiple computing devices, where the multiple computing devices can be connected by one or more networks.

[0068] The interface module 801 is used to obtain multimodal data for completing multiple tasks, group the multimodal data by modality, and perform spatiotemporal alignment. The feature extraction module 802 extracts the hard shared features of the data in each modality from the aligned multimodal data as described above, obtains the soft shared features related to different tasks in each modality based on the hard shared features, obtains the non-shared features related to different tasks in each modality based on the soft shared features, and obtains the data features corresponding to each task in the multiple tasks based on the non-shared features. The loss calculation module 803 is used to complete multiple tasks based on the corresponding data features, calculate the loss function of each task in the multiple tasks, and use the uncertainty loss weighted calculation to calculate the overall loss function of the multi-task learning method. The training module 804 is used to train the multi-task learning method based on the overall loss function as described above.

[0069] In yet another embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program or executable instructions are stored. When the computer program or executable instructions are executed, the technical solution described in the above embodiment is implemented. The implementation principle is similar and will not be repeated here. In an embodiment of the present invention, a computer-readable storage medium can be any tangible medium that can store data and can be read by a computing device. Examples of computer-readable storage media include hard disk drives, network attached storage (NAS), read-only memory, random access memory, CD-ROM, CD-R, CD-RW, magnetic tape, and other optical or non-optical data storage devices. The computer-readable storage medium may also include computer-readable media distributed on a network-coupled computer system so that computer programs or instructions can be stored and executed in a distributed manner.

[0070] References in this specification to "various embodiments," "some embodiments," "one embodiment," or "an embodiment," etc. refer to a particular feature, structure, or property described in conjunction with the embodiment being included in at least one embodiment. Thus, the appearances of the phrases "in various embodiments," "in some embodiments," "in one embodiment," or "in an embodiment," etc., in various places throughout the specification do not necessarily refer to the same embodiment. Furthermore, particular features, structures, or properties may be combined in any suitable manner in one or more embodiments. Thus, particular features, structures, or properties shown or described in conjunction with one embodiment may be combined in whole or in part with features, structures, or properties of one or more other embodiments without restriction, as long as the combination is not illogical or inoperable.

[0071] The expressions of "including", "having" and similar meanings in this specification are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices. "One" or "an" does not exclude multiple situations. In addition, the elements in the drawings of this application are for illustrative purposes only and are not drawn to scale.

[0072] Although the present invention has been described through the above embodiments, the present invention is not limited to the embodiments described herein, but also includes various changes and modifications made without departing from the scope of the present invention.

Claims

1. A multi-task learning method based on multimodal data, include: Acquire multimodal data for completing multiple tasks, group the multimodal data by modality type, and perform spatiotemporal alignment, wherein the multimodal data includes image data and point cloud data, and the multiple tasks are task one: an image semantic segmentation task based on image data, task two: a 3D object detection task based on image data and point cloud data, and task three: a point cloud semantic segmentation task based on point cloud data; Extracting hard shared features of data in each modality from the aligned multimodal data, obtaining soft shared features related to different tasks in each modality based on the hard shared features, obtaining non-shared features related to different tasks in each modality based on the soft shared features, and obtaining data features corresponding to each of the multiple tasks based on the non-shared features, wherein: For image data, a 2D convolutional network is used to extract hard shared features for tasks one and two. Different convolutional subnetworks are used to extract soft shared features of tasks one and two under image data from the hard shared features of image data. Different convolutional subnetworks are used to extract non-shared features of tasks one and two under image data from the soft shared features of tasks one and two under image data. For point cloud data, the Pointnet network or the combination of voxel feature encoding layer VFE and 3D convolutional network is used to extract hard shared features for tasks 2 and 3. Different Pointnet sub-networks are used to extract soft shared features of tasks 2 and 3 under point cloud data from the hard shared features of point cloud data. Different Pointnet sub-networks are used to extract non-shared features of tasks 2 and 3 under point cloud data from the soft shared features of tasks 2 and 3 under point cloud data. The non-shared features of Task 1 under image data are used as the data features corresponding to Task 1, the non-shared features of Task 2 under image data and the non-shared features of Task 2 under point cloud data are fused, and the fused non-shared features are used as the data features corresponding to Task 2, and the non-shared features of Task 3 under point cloud data are used as the data features corresponding to Task 3; Execute the plurality of tasks based on the corresponding data features, and calculate a loss function for each of the plurality of tasks; The overall loss function of the multi-task learning method is calculated by weighting with uncertainty loss to train the multi-task learning method.

2. The method according to claim 1, further comprising: When a task depends on a single modality data feature, the non-shared feature extracted from the single modality data is the data feature corresponding to the task; When a task depends on multimodal data, the non-shared features extracted from each modal data that depends on the multimodal data are subjected to feature fusion, and the fused non-shared features are the data features corresponding to the task.

3. The method according to claim 2, in, When the task depends on multimodal data, an attention concentration mechanism is used to perform feature fusion on the non-shared features extracted from each modality of the multimodal data, including: The non-shared features extracted from each modal data of the dependent multimodal data are concatenated and transformed to generate a feature mask; The non-shared features are fused based on the feature mask features.

4. The method according to claim 3, in, The multi-task learning method is trained by minimizing the loss.

5. The method according to claim 4, in, The multi-task learning method is trained by cross entropy and / or regression loss.

6. The method according to claim 1, in, The soft shared features are extracted using the L2 paradigm or the cross-stitch network.

7. The method according to claim 1, in, The overall loss function of the multi-task learning method is calculated by weighting the uncertainty loss, including: Adjusting the loss function of each task in the plurality of tasks based on an output standard deviation of each task; The adjusted loss function of each task is summed to obtain an overall loss function of the multi-task learning method.

8. A multi-task learning system based on multimodal data, include: An interface module, used to obtain multimodal data for completing multiple tasks, group the multimodal data by modality type, and perform spatiotemporal alignment, wherein the multimodal data includes image data and point cloud data, and the multiple tasks are task one: an image semantic segmentation task based on image data, task two: a 3D object detection task based on image data and point cloud data, and task three: a point cloud semantic segmentation task based on point cloud data; A feature extraction module is used to extract hard shared features of data in each modality from the aligned multimodal data, obtain soft shared features related to different tasks in each modality based on the hard shared features, obtain non-shared features related to different tasks in each modality based on the soft shared features, and obtain data features corresponding to each of the multiple tasks based on the non-shared features, wherein: For image data, a 2D convolutional network is used to extract hard shared features for tasks one and two. Different convolutional subnetworks are used to extract soft shared features of tasks one and two under image data from the hard shared features of image data. Different convolutional subnetworks are used to extract non-shared features of tasks one and two under image data from the soft shared features of tasks one and two under image data. For point cloud data, the Pointnet network or the combination of voxel feature encoding layer VFE and 3D convolutional network is used to extract hard shared features for tasks 2 and 3. Different Pointnet sub-networks are used to extract soft shared features of tasks 2 and 3 under point cloud data from the hard shared features of point cloud data. Different Pointnet sub-networks are used to extract non-shared features of tasks 2 and 3 under point cloud data from the soft shared features of tasks 2 and 3 under point cloud data. The non-shared features of Task 1 under image data are used as the data features corresponding to Task 1, the non-shared features of Task 2 under image data and the non-shared features of Task 2 under point cloud data are fused, and the fused non-shared features are used as the data features corresponding to Task 2, and the non-shared features of Task 3 under point cloud data are used as the data features corresponding to Task 3; a loss calculation module, configured to complete the plurality of tasks based on the corresponding data features, calculate the loss function of each of the plurality of tasks, and calculate the overall loss function of the multi-task learning method by weighting with uncertainty loss; and A training module is used to train the multi-task learning method based on the overall loss function.

9. A storage medium storing a computer program, wherein when the computer program is executed by a processor, the computer program can be used to implement the method according to any one of claims 1 to 7.

10. An electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it can be used to implement the method according to any one of claims 1 to 7.