Multi-modal target detection method and device based on decentralized federated learning
By employing a multimodal object detection method within a decentralized federated learning framework, and combining feature extraction and fusion of point cloud data and image data, the problem of insufficient object detection accuracy in autonomous driving is addressed, achieving more accurate and robust object detection.
Patent Information
- Application Number
- CN202311696802.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-11
AI Technical Summary
In existing technologies, it is difficult to guarantee the accuracy of target detection during autonomous driving, especially in complex and ever-changing image backgrounds, where it is severely affected by environmental factors such as lighting and weather, and the difficulty in sharing data leads to insufficient detection accuracy.
A multimodal object detection method based on decentralized federated learning is adopted. By converting target point cloud data and target image data into bird's-eye view, and using multimodal feature extraction and feature fusion, combined with a robust decentralized federated learning framework for collaborative training, the object detection model can achieve accurate detection while protecting data privacy.
While protecting data privacy, it improves the accuracy and robustness of object detection, and provides more comprehensive perception and stronger feature representation through multimodal feature complementarity, thereby improving the effect and performance of object detection.
Smart Images

Figure CN117953227B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, and in particular to a multimodal object detection method and apparatus based on decentralized federated learning. Background Technology
[0002] As an interdisciplinary field of robotics and artificial intelligence, autonomous driving technology for intelligent vehicles has become a hot research topic. Many factors affect vehicle safety, including human factors such as driver inattention, drunk driving, and driving skills; vehicle factors such as design flaws and sudden malfunctions; and environmental factors such as road infrastructure design, traffic congestion, inadequate supervision, and weather conditions. Therefore, using vehicle intelligence to compensate for the shortcomings of the driver is an important way to improve vehicle safety. Object detection is one of the key technologies for achieving autonomous driving; therefore, how to achieve efficient and accurate object detection is a crucial issue that the industry urgently needs to address.
[0003] In related technologies, target detection is usually performed by acquiring images. However, the background of images acquired during autonomous driving is more complex and variable, and is greatly affected by environmental factors such as lighting and weather, as well as the distance, size, shape and orientation of the object being imaged, making it difficult to guarantee the accuracy of target detection.
[0004] Therefore, there is an urgent need for a multimodal object detection method and device based on decentralized federated learning to solve the above problems. Summary of the Invention
[0005] This invention provides a multimodal target detection method and apparatus based on decentralized federated learning, which solves the problem of difficulty in guaranteeing detection accuracy caused by relying on images for target detection in the prior art, and achieves accurate target detection.
[0006] This invention provides a multimodal object detection method based on decentralized federated learning, applicable to target clients in multiple clients, including:
[0007] The target point cloud data and target image data of the target detection region are input into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data.
[0008] The bird's-eye view of the target image data is input into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales, and the bird's-eye view of the target point cloud data is input into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales;
[0009] The minimum-scale second modal feature map and other first modal feature maps besides the minimum-scale first modal feature map are input into the first modal feature fusion layer of the target detection model to obtain the first interactive feature map. The minimum-scale first modal feature map and other second modal feature maps besides the minimum-scale second modal feature map are input into the second modal feature fusion layer of the target detection model to obtain the second interactive feature map.
[0010] The first interaction feature map and the second interaction feature map are input into the detection layer of the target detection model to obtain the target detection result of the target detection region;
[0011] The target detection model is trained by decentralized federated learning based on a first sample dataset in the target client and a second sample dataset of at least one associated client connected to the target client. Each sample dataset in the first sample dataset and the second sample dataset includes sample point cloud data and sample image data of multiple sample detection regions, as well as target detection labels of the sample detection regions.
[0012] According to the present invention, a multimodal target detection method based on decentralized federated learning is provided, wherein the feature extraction and transformation layer includes a first branch feature extraction and transformation layer and a second branch feature extraction and transformation layer. The first branch feature extraction and transformation layer includes a two-dimensional backbone network, a first prediction network, a second prediction network and a first feature mapping network. The second branch feature extraction and transformation layer includes a three-dimensional backbone network and a second feature mapping network.
[0013] The step of inputting the target point cloud data and target image data of the target detection region into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data includes:
[0014] The target image data is input into the two-dimensional backbone network to obtain image features. The image features are input into the first prediction network to obtain the depth prediction value of the target image data. The depth prediction value and the image acquisition parameters corresponding to the target image data are input into the second prediction network to obtain the voxel features of the target image data. The voxel features of the target image data are input into the first feature mapping network to obtain a bird's-eye view of the target image data.
[0015] The target point cloud data is input into the three-dimensional backbone network to obtain the voxel features of the target point cloud data. The voxel features of the target point cloud data are then input into the second feature mapping network to obtain a bird's-eye view of the target point cloud data.
[0016] According to the present invention, a multimodal target detection method based on decentralized federated learning is provided, wherein the first modality feature extraction layer includes multiple stacked first downsampling layers, and the second modality feature extraction layer includes multiple stacked second downsampling layers;
[0017] The process involves inputting a bird's-eye view of the target image data into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales, and inputting a bird's-eye view of the target point cloud data into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales, including:
[0018] The bird's-eye view of the target image data is input into the first modality feature extraction layer to obtain multiple first modality feature maps of different scales output by multiple stacked first downsampling layers;
[0019] The bird's-eye view of the target point cloud data is input into the second modality feature extraction layer to obtain multiple second modality feature maps of different scales output by multiple stacked second downsampling layers.
[0020] According to the multimodal target detection method based on decentralized federated learning provided by the present invention, the first modality feature fusion layer includes a first upsampling layer and a multi-layer stacked second upsampling layer;
[0021] The step of inputting the minimum-scale second modal feature map and other first modal feature maps besides the minimum-scale first modal feature map into the first modal feature fusion layer of the target detection model to obtain the first interactive feature map includes:
[0022] The second modality feature map at the smallest scale is input into the first upsampling layer for upsampling and convolution operations to obtain the upsampling result output by the first upsampling layer;
[0023] For each of the second upsampling layers, the following operation is performed:
[0024] Based on the upsampling result output by the previous upsampling layer of the current second upsampling layer, and the first modal feature map output by the first downsampling layer corresponding to the current second upsampling layer, the input information of the current second upsampling layer is obtained; the previous upsampling layer includes the first upsampling layer or the previous second upsampling layer of the current second upsampling layer;
[0025] The input information is fed into the current second upsampling layer for upsampling and convolution operations to obtain the upsampling result output by the current second upsampling layer;
[0026] Based on the upsampling result output by the current second upsampling layer and the first modal feature map output by the first downsampling layer corresponding to the next second upsampling layer, the input information of the next second upsampling layer is iteratively determined until the upsampling results output by all second upsampling layers are obtained;
[0027] The first interactive feature map is obtained based on the upsampling result output by the last second upsampling layer.
[0028] According to the present invention, a multimodal target detection method based on decentralized federated learning is provided, wherein the detection layer includes a self-attention layer, a residual layer, and a detection head;
[0029] The step of inputting the first interaction feature map and the second interaction feature map into the detection layer of the target detection model to obtain the target detection result of the target detection region includes:
[0030] The first interaction feature map and the second interaction feature map are input into the self-attention layer to obtain the first fused interaction feature;
[0031] The first interaction feature map, the second interaction feature map, and the first fused interaction feature are input into the residual layer to obtain the second fused interaction feature;
[0032] The second fusion interactive feature is input into the detection head to obtain the target detection result of the target detection area.
[0033] According to the present invention, a multimodal object detection method based on decentralized federated learning is provided, wherein the object detection model is trained based on the following steps:
[0034] For each iteration of training, the following training steps are performed:
[0035] Obtain the first local model parameters of each of the associated clients in the current iteration of training; the first local model parameters are obtained by each of the associated clients, based on the Laplacian distribution function, by adding noise to the sample point cloud data and sample image data of each sample detection region in the second sample dataset, and by training based on the noise-added second sample dataset and the global model parameters trained in the previous iteration;
[0036] Based on the Laplacian distribution function, noise is added to the sample point cloud data and sample image data of each sample detection region in the first sample dataset. Then, based on the noise-added first sample dataset and the global model parameters of the previous iteration, iterative training is performed to obtain the second local model parameters of the target client in the current iteration.
[0037] The global model parameters for the current iteration of training are obtained by aggregating and updating the first local model parameters and multiple second local model parameters that satisfy the adjacency matrix connection condition.
[0038] The global model parameters trained in the current iteration are sent to the associated client, and the training steps are executed iteratively until the model performance of the global model parameters trained in the target client meets the performance threshold.
[0039] The target detection model is obtained based on the global model parameters corresponding to the last model training.
[0040] According to the present invention, a multimodal target detection method based on decentralized federated learning is provided, wherein the target point cloud data is obtained based on lidar scanning, and the target image data is obtained based on cameras with multiple different perspectives;
[0041] The camera's exposure is triggered when the scanning laser of the lidar sweeps across the center of the camera's field of view.
[0042] This invention also provides a multimodal target detection device based on decentralized federated learning, applicable to a target client among multiple clients, including:
[0043] The first processing module is used to input the target point cloud data and target image data of the target detection area into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data.
[0044] The second processing module is used to input the bird's-eye view of the target image data into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales, and input the bird's-eye view of the target point cloud data into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales;
[0045] The third processing module is used to input the minimum-scale second modal feature map and other first modal feature maps besides the minimum-scale first modal feature map into the first modal feature fusion layer of the target detection model to obtain a first interactive feature map, and input the minimum-scale first modal feature map and other second modal feature maps besides the minimum-scale second modal feature map into the second modal feature fusion layer of the target detection model to obtain a second interactive feature map;
[0046] The detection module is used to input the first interaction feature map and the second interaction feature map into the detection layer of the target detection model to obtain the target detection result of the target detection region;
[0047] The target detection model is trained by decentralized federated learning based on a first sample dataset in the target client and a second sample dataset of at least one associated client connected to the target client. Each sample dataset in the first sample dataset and the second sample dataset includes sample point cloud data and sample image data of multiple sample detection regions, as well as target detection labels of the sample detection regions.
[0048] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the multimodal object detection method based on decentralized federated learning as described above.
[0049] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the multimodal target detection method based on decentralized federated learning as described above.
[0050] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the multimodal object detection method based on decentralized federated learning as described above.
[0051] The multimodal object detection method and apparatus based on decentralized federated learning provided by this invention, on the one hand, introduces a robust decentralized federated learning framework for collaborative training of the object detection model, thereby achieving more accurate object detection results while protecting data privacy; on the other hand, through the object detection model, multimodal feature extraction and feature fusion are performed on target point cloud data and target image data, thereby obtaining the object detection results of the target detection region, realizing feature complementarity using multiple modal data, providing more comprehensive perception and stronger feature representation, thereby improving the effect and performance of object detection. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0053] Figure 1 This is a flowchart illustrating the multimodal target detection method based on decentralized federated learning provided by the present invention.
[0054] Figure 2This is a schematic diagram of the target detection model structure and federated learning framework structure provided by the present invention;
[0055] Figure 3 This is a schematic diagram of the structure of the FeP module provided by the present invention;
[0056] Figure 4 This is one of the schematic diagrams showing the target detection simulation comparison results provided by the present invention;
[0057] Figure 5 This is the second schematic diagram of the target detection simulation comparison results provided by the present invention;
[0058] Figure 6 This is a schematic diagram of the structure of the multimodal target detection device based on decentralized federated learning provided by the present invention;
[0059] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0061] The multimodal object detection method based on decentralized federated learning provided in this embodiment can be used in various scenarios, such as autonomous driving scenarios, video surveillance scenarios, and other scenarios that require object detection. This embodiment does not specifically limit it. The following uses the autonomous driving scenario as an example for expansion. Other scenarios can be replaced in the same way, and will not be elaborated here.
[0062] In practical applications, the backgrounds of images acquired by autonomous driving systems are more complex and variable. Environmental factors such as lighting and weather can affect camera imaging, and the distance, size, shape, and orientation of objects in the image constantly change, making it difficult to guarantee target detection accuracy. This poses a serious challenge to the target detection performance of autonomous driving systems. Furthermore, in real-world autonomous driving scenarios, collecting large amounts of data for the autonomous driving field has become a crucial means of improving the performance of target detection models. However, autonomous driving manufacturers need to consider local data security policies when collecting data in different countries, thus creating difficulties in sharing data across borders, which in turn makes it difficult to guarantee detection accuracy.
[0063] To address this, this embodiment provides a multimodal target detection method based on decentralized federated learning. Through a decentralized federated learning framework, a target detection model based on protecting local data is established between different regions. The target detection model is then used to extract features from camera streams and LiDAR streams, obtaining bird's-eye view images of different modalities. Subsequently, multi-scale modal feature map extraction and multi-scale modal feature map interaction fusion are performed based on the bird's-eye view images of different modalities to obtain regional target detection results. This not only significantly improves the interaction between image data and point cloud data, enhancing detection performance, but also better protects data security compared to other learning frameworks.
[0064] The following is combined with Figures 1-5 This invention describes a multimodal object detection method based on decentralized federated learning.
[0065] Figure 1 This is a flowchart illustrating a multimodal object detection method based on decentralized federated learning provided in this application embodiment. The method can be applied to a decentralized federated learning framework containing multiple clients, the specific number of which can be set according to actual needs. The target client is any client in the decentralized federated learning framework that needs to perform object detection, and the associated clients are other clients in the federated learning framework that communicate with the target client, excluding the target client itself. The execution entity of this method is the target client in the decentralized federated learning framework. Figure 1 As shown, the method includes the following steps:
[0066] Step 101: Input the target point cloud data and target image data of the target detection region into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data; wherein, the target detection model is trained by decentralized federated learning based on a first sample dataset in the target client and a second sample dataset of at least one associated client connected to the target client; each sample dataset in the first sample dataset and the second sample dataset includes sample point cloud data and sample image data of multiple sample detection regions, as well as the target detection label of the sample detection region;
[0067] The target detection model is used to detect targets in the detection area and output corresponding target detection results. The target detection results include, but are not limited to, multiple items such as target detection box information, target location information, and target category.
[0068] The object detection model is trained under a decentralized federated learning framework formed by multiple clients. The decentralized federated learning framework can be DP-DeceFL (Differential Privacy Decentralized Federated Learning), etc., and this embodiment does not specifically limit it.
[0069] Optionally, before performing step 102, the object detection model needs to be trained in advance. Specifically, the training method is decentralized federated learning training, which involves multiple clients collaboratively training the global model. This addresses the data silo problem in industrial settings and achieves privacy-preserving dual-task analysis functionality. Specific training steps include:
[0070] First, each client collects sample point cloud data and sample image data of different sample detection areas locally, and annotates the sample point cloud data and sample image data of the sample detection areas collected locally to obtain the target detection labels of the sample detection areas collected locally, so as to facilitate subsequent model training and decentralized federated learning framework training.
[0071] Next, each client constructs an initial detection model locally, comprising a feature extraction and transformation layer, a first modality feature extraction layer, a second modality feature extraction layer, a first modality feature fusion layer, a second modality feature fusion layer, and a detection layer. The feature extraction and transformation layer maps point cloud data and image data into a bird's-eye view, and can be constructed based on one or more machine learning models. The first and second modality feature extraction layers extract modal features from the bird's-eye views of the image data and point cloud data, respectively, and can be constructed based on one or more machine learning models; their structures can be the same or different. The first and second modality feature fusion layers interact and fuse modal features from multiple first modality feature maps and multiple second modality feature maps at different scales, respectively, and can be constructed based on one or more machine learning models; their structures can be the same or different. The detection layer fuses the multimodal interaction feature maps to output the target detection result, and can be constructed based on one or more machine learning models.
[0072] Next, based directly on the sample point cloud data, sample image data, and target detection labels of multiple sample detection regions in the first sample dataset within the target client, and the sample point cloud data, sample image data, and target detection labels of multiple sample detection regions in the second sample dataset connected to the target client, the initial detection model in the target client is iteratively trained using decentralized federated learning to obtain the target detection model; or, the sample point cloud data, sample image data of multiple sample detection regions in the first sample dataset within the target client, and the sample point cloud data, sample image data of multiple sample detection regions in the second sample dataset connected to the target client are preprocessed, such as noise enhancement processing, and then the initial detection model in the target client is iteratively trained using decentralized federated learning to obtain the target detection model. This embodiment does not specifically limit this.
[0073] In some embodiments, the object detection model is trained based on the following steps:
[0074] For each iteration of training, the following training steps are performed:
[0075] Obtain the first local model parameters of each of the associated clients in the current iteration of training; the first local model parameters are obtained by each of the associated clients, based on the Laplacian distribution function, by adding noise to the sample point cloud data and sample image data of each sample detection region in the second sample dataset, and by training based on the noise-added second sample dataset and the global model parameters trained in the previous iteration;
[0076] Based on the Laplacian distribution function, noise is added to the sample point cloud data and sample image data of each sample detection region in the first sample dataset. Then, based on the noise-added first sample dataset and the global model parameters of the previous iteration, iterative training is performed to obtain the second local model parameters of the target client in the current iteration.
[0077] The global model parameters for the current iteration of training are obtained by aggregating and updating the first local model parameters and multiple second local model parameters that satisfy the adjacency matrix connection condition.
[0078] The global model parameters trained in the current iteration are sent to the associated client, and the training steps are executed iteratively until the model performance of the global model parameters trained in the target client meets the performance threshold.
[0079] The target detection model is obtained based on the global model parameters corresponding to the last model training.
[0080] It should be noted that, based on decentralized federated learning, to address the information security issue between the target client and its associated clients, differential privacy protection based on the Laplace distribution function is introduced. Specifically, this data protection function is achieved by adding random noise following a Laplace distribution to the original data. The probability density function p(x) of the Laplace distribution function is:
[0081]
[0082] Where μ is the position parameter, b is the scale parameter, and x is the sample point cloud data or sample image data. By introducing Laplacian noise into the decentralized federated learning framework, the learning results used by the client for communication in each round are private.
[0083] It should be noted that during the training of the object detection model, an adjacency matrix with n nodes and edge connection probabilities p is randomly generated (a graph with n nodes and edge connection probabilities p has pn(n-1) / 2 edges in terms of probability) to form a decentralized federated learning framework. The initial detection model is then fed into this centralized federated learning framework for training to obtain the object detection model. The adjacency matrix connection condition is that the edge connection probability is greater than a probability threshold.
[0084] Figure 2 This is a schematic diagram of the target detection model structure and federated learning framework structure provided in the embodiments of this application; as shown below. Figure 2 As shown, with the increase in the number of communications, each client can generate information interaction. During the interaction, the globally trained model is sent to each client, and the local model of each client is updated. At the same time, the local models of multiple clients are aggregated to obtain the global model, thus obtaining the object detection model. The model aggregation and parameter update of this framework are shown in the following formulas:
[0085]
[0086] Where, ω k (t+1) represents the global model parameters obtained by client k during the (t+1)th model training iteration; W kj Let ω be the adjacency matrix between client k and client j, used to characterize the communication between client k and client j; j The local model parameters obtained during the t-th model training process are transmitted to client j; α t Let be the learning rate for client k during the t-th model training. This learning rate can be determined based on Warmup (a learning rate warm-up strategy) and / or Cosine Annealing (a learning rate annealing strategy). Let K be the local loss function for client k during the t-th model training iteration; K represents the number of clients.
[0087] It should be noted that the initial detection model in each client can be iteratively trained based on a model loss function constructed from classification loss, regression loss, and IoU (Intersection over Union Loss); the model loss function L all The specific calculation formula is as follows:
[0088] L all =λ1L cls +λ2L reg +λ3L IoU ;
[0089] Among them, L cls It is the cross-entropy loss between the target detection result and the target detection label, L reg L is the mean absolute error between the center of the predicted bounding box in the object detection result and the center of the ground truth bounding box in the object detection label. IoU λ1, λ2, and λ3 are the IoU loss between the predicted bounding box in the object detection result and the ground truth bounding box in the object detection label, and the weighting coefficients are λ1, λ2, and λ3.
[0090] After acquiring the target detection model, point cloud data provides rich 3D information, capturing features such as the shape, size, and position of the target object, while image data provides information such as the target's texture, color, and appearance. Using both types of data comprehensively allows for a more complete understanding of the target, improving the accuracy and robustness of target detection. Therefore, the target point cloud data and target image data collected in the target detection area can be input into the feature extraction and transformation layer of the target detection model. The feature extraction and transformation layer performs voxel feature extraction and data transformation on the target point cloud data and target image data in the target detection area, transforming the target point cloud data and target image data to the corresponding BEV (Bird's Eye View) plane, thereby obtaining bird's-eye views of the target point cloud data and the target image data.
[0091] It should be noted that by converting image data and point cloud data to a bird's-eye view, complex spatial transformations can be reduced, making it easier for the model to learn and capture the geometry, spatial distribution, and contextual information of the target. This can increase the model's perception range and discrimination ability, and improve the accuracy and robustness of target detection.
[0092] In addition, for each detection area in the sample detection area and the target detection area, the point cloud data and image data of the detection area are collected in pairs. That is, the temporal and spatial and regional spaces of the point cloud data and image data of the detection area are aligned. Specifically, the temporal and spatial alignment can be achieved by performing data conversion on the point cloud data and image data, or by controlling the device that collects the point cloud data and image data.
[0093] In some embodiments, the target point cloud data is obtained based on LiDAR scanning, and the target image data is obtained based on cameras with multiple different viewpoints;
[0094] The camera's exposure is triggered when the scanning laser of the lidar sweeps across the center of the camera's field of view.
[0095] The number of LiDARs here can be one, and the number of cameras can be multiple. The specific number can be set according to actual needs, such as six.
[0096] Optionally, during the data acquisition process, the detection area can be scanned using a lidar to obtain point cloud data, and multiple cameras with different perspectives can be used to take pictures of the detection area to obtain image data from multiple different perspectives.
[0097] It should be noted that in order to achieve good cross-modal data alignment between the LiDAR and the camera, when the LiDAR is collecting point cloud data and sweeps across the center of the camera's FOV (Field of View), the camera's exposure is triggered. At this time, the camera will simultaneously record the image data of the detection area, thereby achieving temporal and spatial alignment of point cloud data and image data, and thus improving the target detection effect.
[0098] Step 102: Input the bird's-eye view of the target image data into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales; and input the bird's-eye view of the target point cloud data into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales.
[0099] Step 103: Input the minimum-scale second modal feature map and other first modal feature maps (excluding the minimum-scale first modal feature map) into the first modal feature fusion layer of the target detection model to obtain the first interactive feature map; and input the minimum-scale first modal feature map and other second modal feature maps (excluding the minimum-scale second modal feature map) into the second modal feature fusion layer of the target detection model to obtain the second interactive feature map.
[0100] Optionally, after obtaining the bird's-eye view of the target point cloud data and the target image data, the bird's-eye view of the target point cloud data and the target image data can be input into the FeP (Feature Pyramid) module for information fusion, and finally output as the target detection result after passing through the detection head.
[0101] The so-called FeP (Feature Pyramid) module is a module built based on the first modality feature extraction layer, the second modality feature extraction layer, the first modality feature fusion layer, and the second modality feature fusion layer.
[0102] Optionally, the specific steps of information fusion include:
[0103] First, the bird's-eye view of the target image data is input into the first modality feature extraction layer of the target detection model. The first modality feature extraction layer uses multiple feature extraction networks of different scales to extract features from the bird's-eye view of the target image data at multiple scales, so as to output multiple first modality feature maps of different scales.
[0104] Furthermore, the bird's-eye view of the target point cloud data is input into the second modality feature extraction layer of the target detection model. The second modality feature extraction layer uses multiple feature extraction networks of different scales to perform multi-scale feature extraction on the bird's-eye view of the target point cloud data, so as to output multiple second modality feature maps of different scales.
[0105] Next, after obtaining multiple first-modal feature maps at different scales and multiple second-modal feature maps at different scales, multimodal interactive fusion can be performed on the multiple first-modal feature maps at different scales and multiple second-modal feature maps at different scales. Specific steps include:
[0106] The minimum-scale second modal feature map is obtained from multiple different scales of second modal feature maps, and other first modal feature maps other than the minimum-scale first modal feature map are obtained from multiple different scales of first modal feature maps. The minimum-scale second modal feature map and other first modal feature maps other than the minimum-scale first modal feature map are input into the first modal feature fusion layer. The first modal feature fusion layer performs deep abstract feature interaction and fusion to obtain the first interactive feature map of the multi-scale feature map of the fused target image data and the deep feature map of the target point cloud data.
[0107] Furthermore, the minimum-scale first modal feature map is obtained from multiple first modal feature maps at different scales, and other second modal feature maps other than the minimum-scale second modal feature map are obtained from multiple second modal feature maps at different scales. The minimum-scale first modal feature map and other second modal feature maps other than the minimum-scale second modal feature map are input into the second modal feature fusion layer. The second modal feature fusion layer performs deep abstract feature interaction and fusion to obtain the second interactive feature map of the multi-scale feature map of the target image data and the target point cloud data.
[0108] Step 104: Input the first interaction feature map and the second interaction feature map into the detection layer of the target detection model to obtain the target detection result of the target detection region.
[0109] Optionally, after obtaining the first interaction feature map and the second interaction feature map, the first interaction feature map and the second interaction feature map can be concatenated and input into the detection layer, and the detection layer can perform target detection and classification based on the first interaction feature map and the second interaction feature map to output the target detection result of the target detection region.
[0110] The multimodal object detection method based on decentralized federated learning provided in this embodiment, on the one hand, introduces a robust decentralized federated learning framework for collaborative training of the object detection model, thereby achieving more accurate object detection results while protecting data privacy; on the other hand, through the object detection model, multimodal feature extraction and feature fusion are performed on the target point cloud data and target image data, thereby obtaining the object detection results of the target detection region, realizing feature complementarity using multiple modal data, providing more comprehensive perception and stronger feature representation, thus improving the effect and performance of object detection.
[0111] In some embodiments, the feature extraction and transformation layer includes a first branch feature extraction and transformation layer and a second branch feature extraction and transformation layer. The first branch feature extraction and transformation layer includes a two-dimensional backbone network, a first prediction network, a second prediction network, and a first feature mapping network. The second branch feature extraction and transformation layer includes a three-dimensional backbone network and a second feature mapping network.
[0112] Step 101, which involves obtaining bird's-eye views of the target point cloud data and the target image data, further includes:
[0113] The target image data is input into the two-dimensional backbone network to obtain image features. The image features are input into the first prediction network to obtain the depth prediction value of the target image data. The depth prediction value and the image acquisition parameters corresponding to the target image data are input into the second prediction network to obtain the voxel features of the target image data. The voxel features of the target image data are input into the first feature mapping network to obtain a bird's-eye view of the target image data.
[0114] The target point cloud data is input into the three-dimensional backbone network to obtain the voxel features of the target point cloud data. The voxel features of the target point cloud data are then input into the second feature mapping network to obtain a bird's-eye view of the target point cloud data.
[0115] like Figure 2 As shown, the feature extraction and transformation layer includes a first branch feature extraction and transformation layer and a second branch feature extraction and transformation layer.
[0116] The first branch feature extraction and transformation layer is used to extract bird's-eye view from the target image data. Specifically, it includes a two-dimensional backbone network, a first prediction network, a second prediction network, and a first feature mapping network. The two-dimensional backbone network (2D Backbone Network, 2DBackbone) can be built based on the Swin Transformer network. The first prediction network can be built based on LSS (Least Squares Solution). The second prediction network can be built based on convolutional neural networks and fully connected networks. The first feature mapping network can be built based on BEV Encoder (Bird's-Eye View Encoder Model).
[0117] Optionally, the steps for acquiring a bird's-eye view of the target image data include:
[0118] First, multi-view image data acquired simultaneously by multiple cameras is input into 2DBackbone to extract rich semantic information features from the image data, thereby obtaining image features.
[0119] The 2D Backbone here first divides and reassembles the input target image data into patches. Then, it obtains feature information at different resolutions through multiple feature learning stages to expand the receptive field. Finally, it acquires image features through residual operations. Each stage contains pairs of Swing Transformer modules. Each module is mainly composed of Layer Normalization (LN), Window-based Multi-head Self-Attention (W-MSA), Shifted Window-based Multi-head Self-Attention (SW-MSA), and Multi-Layer Perceptron (MLP) components, all processed through residual operations. The specific outputs of each part can be expressed by the following formula:
[0120]
[0121]
[0122]
[0123]
[0124] in and z l This represents the feature output of the W-MSA module and the MLP module in the l-th block. and z l+1 This represents the feature outputs of the SW-MSA module and the MLP module in the (l+1)th block.
[0125] Next, the obtained image features are transmitted to a planar transformation module, which includes a first prediction network, a second prediction network, and a first feature mapping network. Considering that the image features exist in a two-dimensional coordinate system, the first prediction network constructed using LSS can project and map the image features of the 2D plane to 3D space, that is, use the image features to predict the depth prediction value of the target image data. The image acquisition parameters corresponding to the target image data are obtained according to the camera's external parameters, and the image acquisition parameters and the predicted depth prediction value are input into the second prediction network to predict the pseudo-voxel features of the target image data. Then, a first feature mapping network based on BEV Encoder is used to encode the voxel features into BEV space features, thereby obtaining a bird's-eye view of the target image data, and thus realizing the transformation from image to BEV plane.
[0126] The second branch feature extraction and transformation layer is used to extract bird's-eye view images from target point cloud data. Specifically, it includes a three-dimensional backbone network and a second feature mapping network. The three-dimensional backbone network can be constructed based on 3D sparse convolutional networks, etc.; the second feature mapping network can be constructed based on BEV Encoder, etc.
[0127] Optionally, the steps for obtaining a bird's-eye view of the target point cloud data include:
[0128] First, the point cloud data collected from the lidar is fed into the three-dimensional backbone network. The three-dimensional backbone network voxels the point cloud data and then extracts the voxel features of the target point cloud data through three-dimensional feature extraction.
[0129] Next, a second feature mapping network based on BEV Encoder is used to encode the voxel features into BEV spatial features, thereby obtaining a bird's-eye view of the target point cloud data, and then realizing the projection from the point cloud to the BEV plane.
[0130] It should be noted that when processing point cloud data, using voxel representation as the core processing method can divide the continuous three-dimensional space into discrete voxel units, so as to analyze and process the three-dimensional point cloud data more quickly.
[0131] The method provided in this embodiment extracts feature representations by inputting target image data and target point cloud data into a two-dimensional backbone network and a three-dimensional backbone network, respectively. Subsequently, these features are used for depth prediction, voxel feature extraction, and feature mapping, ultimately yielding bird's-eye views of the target image data and the target point cloud data. By integrating image and point cloud data and employing multi-layer feature extraction and processing, target information can be obtained from different dimensions and corresponding bird's-eye views can be generated quickly, thereby improving target detection performance.
[0132] In some embodiments, the first modality feature extraction layer includes a plurality of stacked first downsampling layers, and the second modality feature extraction layer includes a plurality of stacked second downsampling layers;
[0133] Step 102, which involves obtaining multiple first-mode feature maps at different scales and multiple second-mode feature maps at different scales, further includes:
[0134] The bird's-eye view of the target image data is input into the first modality feature extraction layer to obtain multiple first modality feature maps of different scales output by multiple stacked first downsampling layers;
[0135] The bird's-eye view of the target point cloud data is input into the second modality feature extraction layer to obtain multiple second modality feature maps of different scales output by multiple stacked second downsampling layers.
[0136] Figure 3 This is a schematic diagram of the structure of the FeP module provided in the embodiments of this application; as shown below. Figure 3 As shown, the first modal feature extraction layer in the FeP module includes multiple stacked first downsampling layers, and the second modal feature extraction layer includes multiple stacked second downsampling layers.
[0137] The multiple stacked first downsampling layers can be constructed from downsampling layers of ResNet 101 (Residual Network 101, a 101-layer residual network); similarly, the multiple stacked second downsampling layers can also be constructed from downsampling layers of ResNet 101. The input to the first downsampling layer is a bird's-eye view of the target image data, and the input to each of the other first downsampling layers is the output of the previous first downsampling layer. Similarly, the input to the first second downsampling layer is a bird's-eye view of the target point cloud data, and the input to each of the other second downsampling layers is the output of the previous second downsampling layer.
[0138] Optionally, the step of determining multiple first modal feature maps at different scales includes: inputting a bird's-eye view of the target image data into the first modal feature extraction layer, extracting features through multiple stacked first downsampling layers in sequence, and then extracting features at different scales from the outputs of the multiple stacked first downsampling layers to obtain multiple first modal feature maps at different scales.
[0139] Optionally, the steps for determining multiple second modal feature maps at different scales include: inputting a bird's-eye view of the target point cloud data into the second modal feature extraction layer, extracting features through multiple stacked second downsampling layers in sequence, and then extracting features at different scales from the outputs of the multiple stacked second downsampling layers to obtain multiple second modal feature maps at different scales.
[0140] The method provided in this embodiment inputs bird's-eye view of target image data and bird's-eye view of target point cloud data into different modal feature extraction layers. Multiple feature maps of different scales are obtained through these layers, thereby facilitating multi-scale feature extraction, which helps to capture rich information about the target and improve the diversity and comprehensiveness of perception, thereby improving the performance of target detection.
[0141] In some embodiments, the first modality feature fusion layer includes a first upsampling layer and a multi-layered stacked second upsampling layer;
[0142] Step 103, which involves obtaining the first interaction feature map, further includes:
[0143] The second modality feature map at the smallest scale is input into the first upsampling layer for upsampling and convolution operations to obtain the upsampling result output by the first upsampling layer;
[0144] For each of the second upsampling layers, the following operation is performed:
[0145] Based on the upsampling result output by the previous upsampling layer of the current second upsampling layer, and the first modal feature map output by the first downsampling layer corresponding to the current second upsampling layer, the input information of the current second upsampling layer is obtained; the previous upsampling layer includes the first upsampling layer or the previous second upsampling layer of the current second upsampling layer;
[0146] The input information is fed into the current second upsampling layer for upsampling and convolution operations to obtain the upsampling result output by the current second upsampling layer;
[0147] Based on the upsampling result output by the current second upsampling layer and the first modal feature map output by the first downsampling layer corresponding to the next second upsampling layer, the input information of the next second upsampling layer is iteratively determined until the upsampling results output by all second upsampling layers are obtained;
[0148] The first interactive feature map is obtained based on the upsampling result output by the last second upsampling layer.
[0149] like Figure 3 As shown, the first modal feature fusion layer in the FeP module includes a first upsampling layer and multiple stacked second upsampling layers. The first modal feature map output by the striped-filled first upsampling layer is the minimum size feature map; the second modal feature map output by the grid-filled second upsampling layer is the minimum size feature map. The output of the first upsampling layer is connected to the input of the first and second upsampling layers; each second upsampling layer is associated with each first downsampling layer; the inputs of other second upsampling layers (excluding the first and second upsampling layers) are connected to the outputs of their respective first downsampling layers and their respective first and second upsampling layers. The multiple stacked second upsampling layers can be constructed from upsampling layers of ResNet 101 (Residual Network 101, a 101-layer residual network).
[0150] Optionally, the steps for obtaining the first interaction feature map include:
[0151] Step S11: The first upsampling layer performs upsampling and convolution operations on the second modality feature map at the smallest scale to achieve the interaction of deep abstract features of the BEV features of the two modalities, thereby obtaining the upsampling result output by the first upsampling layer.
[0152] Next, the following operation is performed on each second upsampling layer:
[0153] Step S12: If the current second upsampling layer is the first second upsampling layer, then the upsampling result output by the first upsampling layer and the first modal feature map output by the first downsampling layer corresponding to the current second upsampling layer are determined as the input information of the current second upsampling layer; if the current second upsampling layer is another second upsampling layer other than the first second upsampling layer, then the upsampling result output by the previous second upsampling layer and the first modal feature map output by the first downsampling layer corresponding to the current second upsampling layer are determined as the input information of the current second upsampling layer.
[0154] Step S13: Based on the current second upsampling layer, perform upsampling and convolution operations on the input information to obtain the upsampling result output by the current second upsampling layer;
[0155] Next, steps S12-S13 are executed iteratively until all the upsampling results of the second upsampling layer output are obtained.
[0156] Finally, the upsampling result output from the last second upsampling layer is used as the first interactive feature map.
[0157] Similarly, the second modality feature fusion layer may also include a third upsampling layer and multiple stacked fourth upsampling layers; the output of the third upsampling layer is connected to the input of the first fourth upsampling layer; each fourth upsampling layer is associated with each second downsampling layer; the multiple stacked fourth upsampling layers may also be generated by constructing upsampling layers based on ResNet 101 (Residual Network 101, a 101-layer residual network);
[0158] It should be noted that the steps for obtaining the second interaction feature map include:
[0159] Step S21: The third upsampling layer performs upsampling and convolution operations on the first modality feature map at the smallest scale to achieve the interaction of deep abstract features of the BEV features of the two modalities, thereby obtaining the upsampling result output by the third upsampling layer.
[0160] Next, the following operation is performed on each fourth upsampling layer:
[0161] Step S22: If the current fourth upsampling layer is the first fourth upsampling layer, then the upsampling result output by the third upsampling layer and the second modal feature map output by the second downsampling layer corresponding to the current fourth upsampling layer are determined as the input information of the current fourth upsampling layer; if the current fourth upsampling layer is another fourth upsampling layer other than the first fourth upsampling layer, then the upsampling result output by the previous fourth upsampling layer and the second modal feature map output by the second downsampling layer corresponding to the current fourth upsampling layer are determined as the input information of the current fourth upsampling layer.
[0162] Step S23: Based on the current fourth upsampling layer, perform upsampling and convolution operations on the input information to obtain the upsampling result output by the current fourth upsampling layer;
[0163] Next, steps S22-S23 are executed iteratively until all the upsampling results of the fourth upsampling layer output are obtained.
[0164] Finally, the upsampling result output from the last fourth upsampling layer is used as the second interactive feature map.
[0165] The method provided in this embodiment fuses feature information extracted from multimodal data at different scales and levels through a multi-level feature pyramid, thereby obtaining a first interactive feature map and a second interactive feature map that fully fuse two BEV features. This improves the object detection model's perception and learning of multimodal information, enhances the robustness and generalization ability of the object detection model, and ultimately improves object detection performance.
[0166] In some embodiments, the detection layer includes a self-attention layer, a residual layer, and a detection head;
[0167] Step 104, obtaining the target detection result of the target detection region, also includes:
[0168] The first interaction feature map and the second interaction feature map are input into the self-attention layer to obtain the first fused interaction feature;
[0169] The first interaction feature map, the second interaction feature map, and the first fused interaction feature are input into the residual layer to obtain the second fused interaction feature;
[0170] The second fusion interactive feature is input into the detection head to obtain the target detection result of the target detection area.
[0171] like Figure 2 As shown, the detection layer includes a self-attention layer, a residual layer, and a detection head.
[0172] Optionally, the target detection results are obtained based on the following steps:
[0173] First, the first and second interaction feature maps obtained by the FeP module are fused through a self-attention layer to obtain the first fused interaction feature, thus acquiring a richer and more comprehensive feature representation. Next, the first fused interaction feature, along with the first and second interaction feature maps, are fused through a residual layer to preserve details and edge information of the original features during the fusion process, avoiding information loss and blurring, thereby obtaining the second fused interaction feature. Finally, the second fused interaction feature is input into the detection head for target detection and classification, yielding the target detection result for the target detection region.
[0174] The method provided in this embodiment, through multiple feature fusions, enables the model to learn feature representations at different levels and scales, which helps improve the robustness and generalization ability of the model, allowing it to better adapt to different scenarios and changing data, improve the object detection model's ability to represent and distinguish different objects, and thus improve the performance of object detection and classification.
[0175] To further verify the effectiveness of the multimodal target detection method in this embodiment, this embodiment will compare the target detection model provided in this embodiment with the original model and method under the same parameter configuration to verify the effectiveness of this method.
[0176] Figure 4 This is one of the schematic diagrams showing the target detection simulation comparison results provided in this embodiment; for example... Figure 4 As shown, the horizontal axis represents the number of iterations (hereinafter referred to as Epoch), and the vertical axis represents the mean average accuracy (hereinafter referred to as Test mAP). By comparing the target detection method based on the feature extraction transformation layer, detection layer, and FeP module provided in this embodiment (hereinafter referred to as the Base+FeP detection algorithm) with the target detection method without the FeP module, that is, only including the feature extraction transformation layer and detection layer (hereinafter referred to as the Base detection algorithm), it can be seen that the mAP (Mean Average Precision) of the Base+FeP detection algorithm provided in this embodiment is significantly higher than that of the Base detection algorithm, thus indicating that the detection effect of the Base+FeP detection algorithm provided in this embodiment is better.
[0177] Figure 5 This is the second schematic diagram showing the target detection simulation comparison results provided in this embodiment; as shown Figure 5As shown, the coordinates represent the number of communication rounds (hereinafter referred to as Communication Rounds), and the vertical axis represents mAP (Mean Average Precision). The object detection model trained using decentralized federated learning with joint differential privacy (hereinafter referred to as DP-DeceFL) provided in this embodiment is compared with object detection models trained using traditional decentralized federated learning frameworks (hereinafter referred to as DeceFL), FedAvg, SL, Centerlized, and Single node. The comparison results show that DP-DeceFL, after a certain number of convergences, can achieve similar results to other learning frameworks and effectively ensure data security. Furthermore, as the number of interactions increases, the mAP of the DP-DeceFL model is significantly higher than that of other learning frameworks. Therefore, comparison with existing frameworks and models verifies the effectiveness of this method.
[0178] The above experiments demonstrate that the multimodal target detection method based on the decentralized federated learning framework provided in this embodiment establishes a multimodal target detection framework based on the decentralized federated learning framework through noise enhancement, multimodal feature extraction, feature fusion, and federated learning. It can achieve feature complementarity using two modalities of data, and compared with the original model and method, it produces better detection results for small distant targets around vehicles.
[0179] The source and target domains are respectively used as rolling bearing data under different working conditions, and the method is compared with other models and existing methods to verify its effectiveness.
[0180] The multimodal target detection device based on decentralized federated learning provided by the present invention will be described below. The multimodal target detection device based on decentralized federated learning described below can be referred to in correspondence with the multimodal target detection method based on decentralized federated learning described above.
[0181] Figure 6 This is a schematic diagram of the structure of the multimodal target detection device based on decentralized federated learning provided in this embodiment; as shown below. Figure 6 As shown, the device includes:
[0182] The first processing module 601 is used to input the target point cloud data and target image data of the target detection area into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data.
[0183] The second processing module 602 is used to input the bird's-eye view of the target image data into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales, and input the bird's-eye view of the target point cloud data into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales;
[0184] The third processing module 603 is used to input the minimum-scale second modal feature map and other first modal feature maps besides the minimum-scale first modal feature map into the first modal feature fusion layer of the target detection model to obtain a first interactive feature map, and input the minimum-scale first modal feature map and other second modal feature maps besides the minimum-scale second modal feature map into the second modal feature fusion layer of the target detection model to obtain a second interactive feature map;
[0185] The detection module 604 is used to input the first interaction feature map and the second interaction feature map into the detection layer of the target detection model to obtain the target detection result of the target detection region;
[0186] The target detection model is trained by decentralized federated learning based on a first sample dataset in the target client and a second sample dataset of at least one associated client connected to the target client. Each sample dataset in the first sample dataset and the second sample dataset includes sample point cloud data and sample image data of multiple sample detection regions, as well as target detection labels of the sample detection regions.
[0187] The multimodal object detection device based on decentralized federated learning provided in this embodiment, on the one hand, introduces a robust decentralized federated learning framework for collaborative training of the object detection model, thereby achieving more accurate object detection results while protecting data privacy; on the other hand, through the object detection model, multimodal feature extraction and feature fusion are performed on the target point cloud data and target image data, thereby obtaining the object detection results of the target detection region, realizing feature complementarity using multiple modal data, providing more comprehensive perception and stronger feature representation, thereby improving the effect and performance of object detection.
[0188] Figure 7 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 7As shown, the electronic device may include: a processor 701, a communication interface 702, a memory 703, and a communication bus 704. The processor 701, communication interface 702, and memory 703 communicate with each other via the communication bus 704. The processor 701 can call logical instructions in the memory 703 to execute a multimodal object detection method based on decentralized federated learning. This method includes: inputting target point cloud data and target image data of the target detection region into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data; inputting the bird's-eye view of the target image data into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps of different scales; and inputting the bird's-eye view of the target point cloud data into the second modal feature extraction layer of the target detection model to obtain... The target detection model generates a first interactive feature map by inputting the second modal feature map at multiple different scales and other first modal feature maps except for the first modal feature map at the smallest scale into the first modal feature fusion layer of the target detection model. The first interactive feature map and the second interactive feature map are then input into the detection layer of the target detection model to obtain the target detection result for the target detection region.
[0189] Furthermore, the logical instructions in the aforementioned memory 703 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0190] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the multimodal object detection method based on decentralized federated learning provided by the above methods. The method includes: inputting target point cloud data and target image data of the target detection region into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data; inputting the bird's-eye view of the target image data into the first modality feature extraction layer of the target detection model to obtain multiple first modality feature maps of different scales, and inputting the target image data into the first modality feature extraction layer of the target detection model to obtain multiple first modality feature maps of different scales. A bird's-eye view of the punctuation cloud data is input to the second modal feature extraction layer of the target detection model to obtain second modal feature maps at multiple different scales. The second modal feature map at the smallest scale and other first modal feature maps (excluding the first modal feature map at the smallest scale) are input to the first modal feature fusion layer of the target detection model to obtain a first interactive feature map. The first modal feature map at the smallest scale and other second modal feature maps (excluding the second modal feature map at the smallest scale) are input to the second modal feature fusion layer of the target detection model to obtain a second interactive feature map. The first interactive feature map and the second interactive feature map are input to the detection layer of the target detection model to obtain the target detection result of the target detection region.
[0191] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the multimodal object detection method based on decentralized federated learning provided by the methods described above. This method includes: inputting target point cloud data and target image data of a target detection region into a feature extraction and transformation layer of a target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data; inputting the bird's-eye view of the target image data into a first modality feature extraction layer of the target detection model to obtain multiple first modality feature maps of different scales; and inputting the bird's-eye view of the target point cloud data into the first modality feature extraction layer of the target detection model. The second modality feature extraction layer of the target detection model obtains second modality feature maps at multiple different scales; the second modality feature map at the smallest scale and other first modality feature maps (excluding the first modality feature map at the smallest scale) are input into the first modality feature fusion layer of the target detection model to obtain a first interactive feature map, and the first modality feature map at the smallest scale and other second modality feature maps (excluding the second modality feature map at the smallest scale) are input into the second modality feature fusion layer of the target detection model to obtain a second interactive feature map; the first interactive feature map and the second interactive feature map are input into the detection layer of the target detection model to obtain the target detection result of the target detection region.
[0192] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0193] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0194] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-modal object detection method based on decentralized federated learning, characterized in that, The target clients applied to multiple clients include: The target point cloud data and target image data of the target detection region are input into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data. The bird's-eye view of the target image data is input into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales, and the bird's-eye view of the target point cloud data is input into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales; The minimum-scale second modal feature map and other first modal feature maps besides the minimum-scale first modal feature map are input into the first modal feature fusion layer of the target detection model to obtain the first interactive feature map. The minimum-scale first modal feature map and other second modal feature maps besides the minimum-scale second modal feature map are input into the second modal feature fusion layer of the target detection model to obtain the second interactive feature map. The first interaction feature map and the second interaction feature map are input into the detection layer of the target detection model to obtain the target detection result of the target detection region; The target detection model is trained by decentralized federated learning based on a first sample dataset in the target client and a second sample dataset of at least one associated client connected to the target client. Each sample dataset in the first sample dataset and the second sample dataset includes sample point cloud data and sample image data of multiple sample detection regions, as well as target detection labels of the sample detection regions.
2. The multi-modal object detection method based on decentralized federated learning according to claim 1, wherein, The feature extraction and transformation layer includes a first branch feature extraction and transformation layer and a second branch feature extraction and transformation layer. The first branch feature extraction and transformation layer includes a two-dimensional backbone network, a first prediction network, a second prediction network, and a first feature mapping network. The second branch feature extraction and transformation layer includes a three-dimensional backbone network and a second feature mapping network. The step of inputting the target point cloud data and target image data of the target detection region into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data includes: The target image data is input into the two-dimensional backbone network to obtain image features. The image features are input into the first prediction network to obtain the depth prediction value of the target image data. The depth prediction value and the image acquisition parameters corresponding to the target image data are input into the second prediction network to obtain the voxel features of the target image data. The voxel features of the target image data are input into the first feature mapping network to obtain a bird's-eye view of the target image data. The target point cloud data is input into the three-dimensional backbone network to obtain the voxel features of the target point cloud data. The voxel features of the target point cloud data are then input into the second feature mapping network to obtain a bird's-eye view of the target point cloud data.
3. The multi-modal object detection method based on decentralized federated learning according to claim 1, wherein, The first modality feature extraction layer includes multiple stacked first downsampling layers, and the second modality feature extraction layer includes multiple stacked second downsampling layers; The process involves inputting a bird's-eye view of the target image data into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales, and inputting a bird's-eye view of the target point cloud data into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales, including: The bird's-eye view of the target image data is input into the first modality feature extraction layer to obtain multiple first modality feature maps of different scales output by multiple stacked first downsampling layers; The bird's-eye view of the target point cloud data is input into the second modality feature extraction layer to obtain multiple second modality feature maps of different scales output by multiple stacked second downsampling layers.
4. The multi-modal object detection method based on decentralized federated learning according to claim 2, characterized in that, The first modal feature fusion layer includes a first upsampling layer and multiple stacked second upsampling layers; The step of inputting the minimum-scale second modal feature map and other first modal feature maps besides the minimum-scale first modal feature map into the first modal feature fusion layer of the target detection model to obtain the first interactive feature map includes: The second modality feature map at the smallest scale is input into the first upsampling layer for upsampling and convolution operations to obtain the upsampling result output by the first upsampling layer; For each of the second upsampling layers, the following operation is performed: Based on the upsampling result output by the previous upsampling layer of the current second upsampling layer, and the first modal feature map output by the first downsampling layer corresponding to the current second upsampling layer, the input information of the current second upsampling layer is obtained; the previous upsampling layer includes the first upsampling layer or the previous second upsampling layer of the current second upsampling layer; The input information is fed into the current second upsampling layer for upsampling and convolution operations to obtain the upsampling result output by the current second upsampling layer; Based on the upsampling result output by the current second upsampling layer and the first modal feature map output by the first downsampling layer corresponding to the next second upsampling layer, the input information of the next second upsampling layer is iteratively determined until the upsampling results output by all second upsampling layers are obtained; The first interactive feature map is obtained based on the upsampling result output by the last second upsampling layer.
5. The multi-modal object detection method based on decentralized federated learning according to any one of claims 1-4, characterized in that, The detection layer includes a self-attention layer, a residual layer, and a detection head; The step of inputting the first interaction feature map and the second interaction feature map into the detection layer of the target detection model to obtain the target detection result of the target detection region includes: The first interaction feature map and the second interaction feature map are input into the self-attention layer to obtain the first fused interaction feature; The first interaction feature map, the second interaction feature map, and the first fused interaction feature are input into the residual layer to obtain the second fused interaction feature; The second fusion interactive feature is input into the detection head to obtain the target detection result of the target detection area.
6. The multimodal target detection method based on decentralized federated learning according to any one of claims 1-4, characterized in that, The target detection model is trained based on the following steps: For each iteration of training, the following training steps are performed: Obtain the first local model parameters of each of the associated clients in the current iteration of training; the first local model parameters are obtained by each of the associated clients, based on the Laplacian distribution function, by adding noise to the sample point cloud data and sample image data of each sample detection region in the second sample dataset, and by training based on the noise-added second sample dataset and the global model parameters trained in the previous iteration; Based on the Laplacian distribution function, noise is added to the sample point cloud data and sample image data of each sample detection region in the first sample dataset. Then, based on the noise-added first sample dataset and the global model parameters of the previous iteration, iterative training is performed to obtain the second local model parameters of the target client in the current iteration. The global model parameters for the current iteration of training are obtained by aggregating and updating the first local model parameters and multiple second local model parameters that satisfy the adjacency matrix connection condition. The global model parameters trained in the current iteration are sent to the associated client, and the training steps are executed iteratively until the model performance of the global model parameters trained in the target client meets the performance threshold. The target detection model is obtained based on the global model parameters corresponding to the last model training.
7. The multimodal target detection method based on decentralized federated learning according to any one of claims 1-4, characterized in that, The target point cloud data is obtained based on LiDAR scanning, and the target image data is obtained based on cameras from multiple different perspectives; The camera's exposure is triggered when the scanning laser of the lidar sweeps across the center of the camera's field of view.
8. A multimodal target detection device based on decentralized federated learning, characterized in that, The target clients applied to multiple clients include: The first processing module is used to input the target point cloud data and target image data of the target detection area into the feature extraction and transformation layer of the target detection model to obtain a bird's-eye view of the target point cloud data and a bird's-eye view of the target image data. The second processing module is used to input the bird's-eye view of the target image data into the first modal feature extraction layer of the target detection model to obtain multiple first modal feature maps at different scales, and input the bird's-eye view of the target point cloud data into the second modal feature extraction layer of the target detection model to obtain multiple second modal feature maps at different scales; The third processing module is used to input the minimum-scale second modal feature map and other first modal feature maps besides the minimum-scale first modal feature map into the first modal feature fusion layer of the target detection model to obtain a first interactive feature map, and input the minimum-scale first modal feature map and other second modal feature maps besides the minimum-scale second modal feature map into the second modal feature fusion layer of the target detection model to obtain a second interactive feature map; The detection module is used to input the first interaction feature map and the second interaction feature map into the detection layer of the target detection model to obtain the target detection result of the target detection region; The target detection model is trained by decentralized federated learning based on a first sample dataset in the target client and a second sample dataset of at least one associated client connected to the target client. Each sample dataset in the first sample dataset and the second sample dataset includes sample point cloud data and sample image data of multiple sample detection regions, as well as target detection labels of the sample detection regions.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the multimodal target detection method based on decentralized federated learning as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the multimodal target detection method based on decentralized federated learning as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Three-dimensional target detection method and system based on multi-modal feature fusion under cross view angle
CN115965847A
Target detection method based on millimeter wave radar and visual feature fusion
CN116778286A
