Single-source domain target recognition generalization method, product, medium and equipment
By using Fourier transform to construct a style feature space and decoupled representation learning in a single source domain, domain-invariant features are extracted, which solves the generalization difficulty problem of domain-adaptive target recognition methods under complex weather conditions and improves the model's performance in complex weather conditions. Recognition performance under weather conditions.
Patent Information
- Application Number
- CN202410614035.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-16
AI Technical Summary
Existing domain-adaptive target recognition methods have poor recognition results under complex weather conditions. This is mainly due to the lack of complex weather data in the training data set, which results in insufficient generalization capabilities of the model under complex weather and the inability to effectively extract domain-invariant features. The data distribution is biased towards the source domain, resulting in poor recognition performance of the model under complex weather conditions.
A single-source domain target recognition generalization method is used to construct a style feature space through Fourier transform to generate a stylized image. The feature encoder and decoder are used to decouple the original image and the stylized image into domain-invariant features and domain-unique features. Features, and optimize the regional candidate network through an orthogonal loss function to improve the model's recognition ability under complex weather conditions.
It effectively improves the model's maritime target recognition capabilities under complex and unknown weather conditions, overcomes the problems of difficulty in extracting domain-invariant features and biased data distribution, improves the model's generalization ability, and enables better recognition under different complex weather conditions. sea target.
Smart Images

Figure CN118570781A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of domain adaptive target recognition, and in particular to a single-source domain target recognition generalization method, product, medium and device. Background Art
[0002] The weather is constantly changing during the voyage of ships. The training set (data collected in the marine environment) is difficult to cover various complex weather scenarios in the real environment. The application of current domain adaptive target recognition methods is limited, and the recognition effect of marine targets in complex weather is still not ideal.
[0003] Existing domain adaptive target recognition methods (domain adaptive target recognition methods) are mainly based on adversarial learning. The most classic domain adaptive target recognition model is the Domain Adaptation Faster R-CNN (DA-Faster) model, which uses Faster R-CNN as the framework and has achieved remarkable results on cross-domain datasets. The DA-Faster model is different from the classification task. It adds gradient reversal layers at the image level and instance level to extract domain-invariant features between the source domain and the target domain. The domain adaptive target recognition method based on intrinsic feature guidance (Intrinsic Feature Extraction DomainAdaptation, IFEDA) is based on DA-Faster. It extracts intrinsic features and reduces background information interference to improve the robustness and recognition accuracy of the model under complex weather conditions.
[0004] IFEDA and DA-Faster are two different methods (also called models). The IFEDA method consists of two parts: the intrinsic feature extraction (IFE) method and the object consistency constraint (OCC) method. Among them, the intrinsic feature extraction method ensures that the model extracts domain-invariant features at the instance level, while including the discriminative features of the target and reducing the interference of background redundant information features. The object category consistency constraint method maintains the consistency of categories between the target domain and the source domain, further improving the accuracy of domain adaptive target recognition. The intrinsic feature extraction method of the IFEDA method can only ensure that the model extracts domain-invariant features at the instance level, and cannot achieve domain-invariant feature extraction in complex weather data sets.
[0005] Although the IFEDA method has a high accuracy rate in the data set of foggy weather conditions, its recognition performance is reduced in the data set of dusk weather. The main reason for this is that the weather conditions during the navigation of intelligent ships are complex and changeable, but the training set of the target recognition model is difficult to cover various weather conditions in the marine environment. This is because the data collection cost is high, so there is less training data collected in complex navigation scenarios, and most of the data is collected in good weather conditions such as sunny days. Therefore, the model trained based on the existing data is only good for target recognition in normal weather, but poor for target recognition in complex scenarios. This limits the application of the IFEDA method under complex and changeable weather conditions. Therefore, it is challenging to improve the perception model's perception ability of intelligent ships under complex and unknown weather conditions.
[0006] Since the existing ocean scene data is mainly based on regular sunny day data and there is less complex weather data, conventional methods such as IFEDA, which generate data based on data sets with greater bias, will inevitably be biased towards the source domain (conventional data domain) distribution. The model trained based on this has a good effect on target recognition in regular weather, but poor in complex weather. During the navigation of ships, ocean weather conditions change rapidly. In real environments, the model cannot access the test set during the training phase. Traditional domain generalization models (IFEDA and DA-Faster) need to combine multiple source domains to enhance the backbone network's ability to obtain domain-invariant features between different domains. However, in actual scenarios, data collection and annotation are very time-consuming and labor-intensive, which greatly limits the generalization and application difficulty of such methods.
[0007] In summary, how to overcome the problems of difficulty in extracting domain-invariant features in complex weather datasets, single generation style and the generated data biased towards the source domain distribution, which leads to difficulty in generalizing the method model, and improve the generalization ability of the model (generalization ability means that the model can achieve good recognition performance when migrated to other domains), so as to effectively improve the recognition ability of maritime targets under different complex and unknown weather conditions, has become an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0008] The purpose of the present invention is to provide a single-source domain target recognition generalization method, product, medium and equipment, which can overcome the problems of difficulty in extracting domain-invariant features in complex weather data sets, single generation style and generated data biased towards source domain distribution, which leads to difficulty in generalizing the method model, improve the generalization ability of the model, and thus effectively improve the recognition ability of marine targets under different complex and unknown weather conditions.
[0009] To achieve the above object, the present invention provides the following solution.
[0010] On the one hand, the present invention provides a single-source domain object recognition generalization method, comprising:
[0011] Randomly select two image samples from a single-source domain dataset, extract image features through two-dimensional convolution, and construct a style feature space; the single-source domain dataset is a sample set of marine target images containing a variety of different weather conditions; the two image samples randomly selected from the single-source domain dataset are marine target image samples in two different weather conditions;
[0012] Generate a stylized image corresponding to an original image through the style feature space; the original image is one of two image samples arbitrarily selected from the single-source domain data set;
[0013] Passing a feature encoder to encode the original image and the stylized image features respectively;
[0014] The original image and stylized image features are jointly decoupled into domain-invariant features and domain-unique features through two feature decoders;
[0015] The region candidate network is trained using the domain invariant features, and the region candidate network is optimized using an orthogonal loss function and a target recognition loss function to obtain an optimized region candidate network;
[0016] The image of the target at sea in complex unknown weather is input into the optimized region candidate network, and the category and position of the target at sea in the image of the target at sea in complex unknown weather are obtained by using the optimized region candidate network.
[0017] Optionally, the construction of the style feature space is achieved by extracting the phase and amplitude of different domain images through Fourier transform; the different domain images are two image samples arbitrarily selected from the single source domain data set.
[0018] Optionally, generating a stylized image corresponding to the original image through the style feature space specifically includes:
[0019] For each frequency domain image obtained by Fourier transform, a new amplitude value sample set corresponding to the frequency domain image is constructed to obtain an arbitrary style amplitude corresponding to each frequency domain image. Finally, each stylized image is obtained through Fourier inversion.
[0020] Optionally, the feature encoder adopts a variational autoencoder.
[0021] Optionally, the two feature decoders are composed of a series of convolutional layers.
[0022] Optionally, the calculation method of the orthogonal loss function includes:
[0023] Extracting RoI features from the domain-invariant features and the domain-unique features respectively to obtain instance-level domain-invariant features and instance-level domain-unique features;
[0024] Performing an average pooling operation on the instance-level domain invariant features and the instance-level domain unique features respectively to obtain the instance-level domain invariant features and the instance-level domain unique features after the operation;
[0025] Calculating the product of the vectors of the instance-level domain invariant features after the operation and the instance-level domain unique features after the operation;
[0026] The orthogonal loss function is calculated by adding the vector products of each pixel in the image.
[0027] Optionally, the method for calculating the target recognition loss function includes:
[0028] Get the regression loss and classification loss of the target bounding box and the region candidate network loss function;
[0029] The target recognition loss function is calculated by adding the regression loss and classification loss of the target bounding box and the region candidate network loss function.
[0030] On the other hand, the present invention provides a computer program product, comprising a computer program, which implements the single-source domain target recognition generalization method when executed by a processor.
[0031] On the other hand, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the single-source domain target recognition generalization method.
[0032] On the other hand, the present invention provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the single-source domain target recognition generalization method.
[0033] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0034] The single-source domain target recognition generalization method, product, medium and device disclosed in the present invention generate data with different styles from the source domain data on a single source domain, and decouple the source domain data from its generated data in a decoupling manner to obtain domain-invariant features and domain-unique features. A model (i.e., a regional candidate network) is trained based on the domain-invariant features, and the model is optimized using an orthogonal loss function, so that the model can fully extract domain-invariant features, thereby improving the generalization ability of the perception model on complex unknown environment data sets. Therefore, it has a good recognition effect on marine targets under different complex unknown weather conditions, thereby overcoming the problem that the method model is difficult to generalize due to the difficulty in extracting domain-invariant features in complex weather data sets, the single generation style and the generated data being biased towards the source domain distribution, thereby improving the generalization ability of the model and effectively improving the model's recognition ability for marine targets under different complex unknown weather conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A flowchart of a single-source domain object recognition generalization method provided in Embodiment 1 of the present invention;
[0037] Figure 2 This is a flow chart of the SDRL method of the present invention;
[0038] Figure 3 This is the visualization comparison result of the SDRL method of the present invention in three complex weather conditions: sunny day, foggy day, dusk and cloudy day. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] The purpose of the present invention is to provide a single-source domain target recognition generalization method, product, medium and equipment, which can overcome the problems of difficulty in extracting domain-invariant features in complex weather data sets, single generation style and generated data biased towards source domain distribution, which leads to difficulty in generalizing the method model, improve the generalization ability of the model, and thus effectively improve the recognition ability of marine targets under different complex and unknown weather conditions.
[0041] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0042] Embodiment 1
[0043] like Figure 1 As shown, the first embodiment provides a single-source domain object recognition generalization method, including:
[0044] Step 101: randomly select two image samples from a single-source domain dataset, extract image features through two-dimensional convolution, and construct a style feature space; the single-source domain dataset is a sample set of marine target images in various weather conditions; the randomly selected two image samples from the single-source domain dataset are marine target image samples in two different weather conditions.
[0045] In step 101, the construction of the style feature space is achieved by extracting the phase and amplitude of different domain images through Fourier transform; the different domain images are two image samples randomly selected from a single source domain data set.
[0046] Step 102: Generate a stylized image corresponding to the original image through the style feature space; the original image is one of two image samples randomly selected from the single source domain dataset.
[0047] The step 102 specifically includes:
[0048] For each frequency domain image obtained by Fourier transform, a new amplitude value sample set corresponding to the frequency domain image is constructed to obtain the arbitrary style amplitude corresponding to each frequency domain image. Finally, each stylized image is obtained through Fourier inversion.
[0049] Step 103: The original image and the stylized image are respectively encoded with a feature encoder to obtain features of the original image and the stylized image.
[0050] In step 103, the feature encoder adopts a variational autoencoder.
[0051] Step 104: Decouple the original image and stylized image features into domain-invariant features and domain-specific features through two feature decoders.
[0052] In step 104, the two feature decoders are composed of a series of convolutional layers.
[0053] Step 105: The region candidate network is trained using domain-invariant features, and the orthogonal loss function and the target recognition loss function are used to optimize the region candidate network to obtain an optimized region candidate network.
[0054] In step 105, the calculation method of the orthogonal loss function includes:
[0055] The RoI features in the domain-invariant features and the domain-unique features are extracted respectively to obtain the instance-level domain-invariant features and the instance-level domain-unique features.
[0056] Average pooling operations are performed on the instance-level domain invariant features and the instance-level domain unique features respectively to obtain the instance-level domain invariant features and the instance-level domain unique features after the operation.
[0057] Calculate the product of the vectors of the instance-level domain invariant features after the operation and the instance-level domain unique features after the operation.
[0058] The orthogonal loss function is calculated by adding the vector products of each pixel in the image.
[0059] In step 105, the method for calculating the target recognition loss function includes:
[0060] Get the regression loss and classification loss of the object bounding box and the region proposal network loss function.
[0061] The target recognition loss function is calculated by adding the regression loss and classification loss of the target bounding box and the region proposal network loss function.
[0062] Step 106: Input the image of the sea target in complex unknown weather into the optimized region candidate network, and use the optimized region candidate network to obtain the category and position of the sea target in the image of the sea target in complex unknown weather.
[0063] The technical solution of the present invention is described below with a specific embodiment:
[0064] The present invention provides a single-source domain target recognition generalization method, which is a single-source domain target recognition generalization method based on stylization and decoupled representation learning (Stylization and Decoupled Representation Learning, SDRL). The present invention mainly aims at the problem that the domain-invariant feature extraction is difficult in the dataset of complex unknown weather conditions, the generated style is single, and the generated data is biased towards the source domain distribution, which leads to the difficulty of model generalization. The single-source domain generalization strategy is adopted, and the data stylization and decoupled learning are combined to improve the generalization ability of the model. Among them, generalization is domain migration. For the present invention, target recognition under unknown weather conditions is the domain that needs to be migrated. The overall idea of the present invention is as follows:
[0065] First, a stylization method based on Fourier transform is used in a single source domain to generate data with different styles from the source domain data. Secondly, a decoupled representation learning method is used to decouple the source domain data from its generated data into style-invariant features (i.e., domain-invariant features) and style-unique features (i.e., domain-unique features). Among them, decoupled representation learning, also known as disentangled representation learning (DRL), refers to decomposing the changing factors of feature representation in a data set that meets certain conditions, and these changing factors are independent of each other. Then, the model is trained using a vector orthogonal loss function (i.e., orthogonal loss function) so that the model can fully extract domain-invariant features and improve the generalization ability of the perception model on unknown environment data sets (i.e., complex unknown environment data sets). Finally, classification and regression tasks are performed on the branch that extracts domain-invariant features in the decoupled representation learning model to improve the model's ability to recognize maritime targets under complex unknown weather conditions, thereby achieving a good recognition effect on maritime targets under different complex unknown weather conditions, and effectively improving the model's ability to recognize maritime targets under different complex unknown weather conditions.
[0066] The overall process of the single-source domain object recognition generalization method based on stylization and decoupled representation learning in this invention is as follows: Figure 2 As shown, the following steps are included:
[0067] Step 1: Randomly select two images from the single-source domain dataset, extract image features through two-dimensional convolution, and construct a style feature space. The specific style feature space is constructed mainly through Fourier transform to extract the phase and amplitude of different domain (style) images. The method is shown in formula (1) to formula (3):
[0068]
[0069]
[0070]
[0071] Where H and W represent the height and width of the image, f represents the input function, and the image in the time domain is used as the Fourier transform input. (w,h) represents the spatiotemporal position of the current pixel, and (u,v) represents the frequency domain position of the pixel of image x. Represents the frequency domain image obtained by performing Fourier transform (Fourier transform) operation on the image, and the phase of the image is obtained and amplitude e is the e-index, π is the circumference of a circle, i represents the imaginary unit, R(u,v) represents the real part of the Fourier transform, and I(u,v) represents the imaginary part of the Fourier transform. Formula (1) is the application of the conventional two-dimensional discrete Fourier transform to images.
[0072] When constructing the style feature space, the styles of any two images selected from the single-source domain dataset should be different. The single-source domain dataset includes images of different styles. The single-source domain is not just one domain. There are multiple domain images in the single-source domain dataset, including images of different domains (different weather).
[0073] Step 2: Generate a stylized image corresponding to the original image through the stylization module (style feature space) to enhance the diversity of the single-source domain style. Construct the corresponding new amplitude value sample sets respectively Get any style amplitude (Each frequency domain image corresponds to an arbitrary style amplitude). Finally, after Fourier inversion Get a new style image and generate an image The specific method is shown in formula (4):
[0074]
[0075] in, represents the kth image in the jth source domain, N is the image width, that is, the maximum pixel value in each row, M is the image height, that is, the maximum pixel value in each column, (u, v) represents the current pixel position (the frequency domain position of the current image pixel), Calculate the phase according to formula (2) in step 1: for The phase calculated according to formula (2) in step 1, e is the e index, i represents the imaginary unit, Represents the generated image (i.e. the stylized image).
[0076] Fourier transform can convert a two-dimensional image from the conventional spatial domain to Fourier frequency domain. Through Fourier transform, each two-dimensional image can obtain its corresponding frequency domain image, and the frequency domain image can be represented by phase and amplitude. Different phases and amplitudes can be recombined to obtain a new frequency domain image, and then an inverse Fourier transform can be performed on the new frequency domain image to restore it to a new two-dimensional image.
[0077] Step 3: Encode the original image (original image) and the generated image separately through the feature encoder Features. Use Variational Auto-Encoder (VAE) to encode the original image x S With the stylized image Get a single source domain feature set Where w, h, c represent the width, length and number of channels of the feature map respectively, and F b represents a single source domain feature set, It is a feature map set, which contains three dimensions: w, h, and c.
[0078] To generate an image of a certain style, an image of that style is selected as the original image, and a new image of that style (generated image) is generated based on the original image. The single source domain feature set includes pairs of features.
[0079] Step 4: Decouple the original image and generated image features into domain-invariant features and domain-unique features through two feature decoders (feature extractors). Design two feature extractors E DIR With E DSR , respectively from F b Decouple domain-invariant features Unique features of the domain Where E DIR With E DSR It is composed of a series of convolutional layers. As shown in formula (5) and formula (6):
[0080] F di =E DIR (F b ) (5)
[0081] F ds =E DSR (F b )=F b -F di (6)
[0082] Among them, F di represents the domain invariant feature, F ds represents domain-specific features, E DIR With E DSR Denotes two feature decoders. Feature extractor E DIR With E DSR It is composed of a series of convolutional layers, namely the CNN structure, which is well known to those skilled in the art.
[0083] Then, the domain invariant features F extracted by the model are di As the input of the target region candidate network, a series of candidate regions with domain invariant features are extracted. Among them, the target region candidate network is RPN (Region Proposal Network), and the feature map is input. Through this network structure, the target candidate box and RoI area can be obtained.
[0084] The method of the present invention decouples the original image and the generated image features into domain-invariant features and domain-unique features in a decoupling manner, and trains a model based on the domain-invariant features. Therefore, it has a good recognition effect on targets under different weather conditions, thereby solving the problem that the generation style is single and the generated data tends to be distributed in the source domain, which makes the method model difficult to generalize.
[0085] Step 5: Use vector orthogonality to constrain domain-invariant features and domain-unique features, and improve the accuracy and completeness of the backbone network to extract domain-invariant features. Based on the vector decomposition theory, the principle of independent operation between vectors is adopted, and the vector orthogonality strategy is introduced to maintain the orthogonal relationship between the decomposed vectors to promote the domain-invariant features F. di Domain-specific features F ds Decoupling of . Using orthogonal loss function Maintain F di With F ds The orthogonal relationship between them can fully extract F di Specifically, first, extract F di With F ds The RoI features in the instance level domain invariant features are obtained and instance-level domain-specific features Secondly, the instance-level invariant features A di and instance-level domain-specific features Ad s进 Perform average pooling operation to obtain instance-level domain invariant features after the operation and instance-level domain-specific features after the operation Then, calculate P di and P ds The product S of the vectors between them. Finally, the vector products of each pixel in the image are added together to calculate the orthogonal loss value. The calculation method of is as follows:
[0086]
[0087]
[0088] Among them, n represents the number of candidate boxes, c represents the number of channels, w and h represent the width and length respectively. represents the L2 norm, ⊙ represents the dot product operation between vectors, S[i,j] represents the product of the vectors i and j, i and j are P di and P ds The corresponding pixel value at the position. Formula (7) is the product formula. Since P di and P ds The two feature maps are of the same size, so the vector product of pixels at corresponding positions can be calculated to obtain the vector product of each pixel in the image.
[0089] Step 6: Use the features generated by the domain invariant feature extraction module for the final classification and regression of the model (target recognition model) to improve the generalization performance of the single-source domain target recognition model. In the process of training the target recognition model, it is necessary to optimize it through the target recognition loss function. Target recognition loss function The definition of is shown in formula (9):
[0090]
[0091] in, and They represent the regression loss and classification loss of the target bounding box, respectively. The regression loss and classification loss of the target bounding box are well known to those skilled in the art. The bounding box regression loss generally uses the smooth-L1 loss, and the classification loss in the present invention uses the cross entropy loss function. That is, the region proposal network (RPN) loss function is well known to those skilled in the art. Used to distinguish the foreground and background of the image and fine-tune the bounding box.
[0092] Steps 1 to 5 include the training and testing steps of the target recognition model. The training model data set mainly includes target image data under normal weather conditions in ocean scenes and a small amount of target image data under complex weather conditions. The input for testing the trained model is the image data of marine targets under different complex weather conditions. The following Tables 1, 2, and 3 show the sample test results under different weather conditions. The trained target recognition model can extract domain-invariant features from the images input to the model for recognition. The model can be applied to multiple domains (different weather conditions) for recognition. The model is trained through domain-invariant features, and recognition is performed through the trained model, realizing generalization from a single model to multiple source domains, that is, achieving good recognition effect of the model in one domain, and generalizing from one domain to other domains can achieve good recognition effect.
[0093] In order to verify the effectiveness of the SDRL method proposed in this invention, a real environment dataset was used for training and testing. In terms of dataset selection, the experiment used a marine target dataset containing 4 different weather conditions, including sunny, dusk, cloudy and foggy weather. 4218 sunny weather data were used as the training set for the single-source domain generalization method, 671 foggy weather, 329 dusk weather and 1819 cloudy weather were used as the test set, and it was ensured that the test set was not accessed during model training. The experiment was carried out using 6 common categories of the dataset, namely: bulk carriers, container ships, cruise ships, sailboats, other ships and islands and reefs. The mean average precision (mAP) with a threshold of 0.5 was used as a measurement indicator for the marine target category to verify the effectiveness of the single-source domain target recognition generalization method based on stylization and decoupled representation learning.
[0094] Experiments were conducted in marine datasets under different complex weather conditions, and the performance of the proposed generalized model for marine target recognition in a single-source domain based on stylized and decoupled representation learning was compared with the classic single-source domain target recognition model. Tables 1, 2, and 3 show the recognition results of the models in marine target datasets under different complex sea conditions. Table 1 shows the marine target recognition results when the source domain is sunny and the unknown target domain is dusk. Table 2 shows the marine target recognition results when the source domain is sunny and the unknown target domain is foggy. Table 3 shows the marine target recognition results when the source domain is sunny and the unknown target domain is cloudy.
[0095] Table 1 Recognition results in dusk weather (%)
[0096] method Bulk Carrier container ship Cruise Other ships Islands and Reefs sailboat mAP Faster R-CNN 51.3 71.1 82.6 29.7 42.6 85.1 60.4 IBN-Net 54.3 72.9 83.3 29.1 41.9 85.7 61.2 SW 52.6 71.4 83.2 30.7 43.9 86.7 61.4 IterNorm 50.3 69.1 83.6 31.1 42.2 85.5 60.3 ISW 52.3 71.4 82.8 31.5 42.4 86.4 61.1 IFEDA 52.1 71.7 86.0 32.7 44.7 85.9 62.1 SDRL 60.8 75.1 88.8 34.1 40.2 87.9 64.5
[0097] As can be seen from Table 1, the single-source domain generalization model of stylized and decoupled representation learning proposed in the present invention has a recognition accuracy of 64.5% mAP in the marine target dataset in dusk weather, which is 4.1%, 2.4%, 3.3%, 4.2%, 3.4% and 3.1% higher than the baseline model Faster R-CNN and other classic single-source domain target recognition generalization models IFEDA, IBN-Net, IterNorm, ISW and SW respectively.
[0098] Table 2 Recognition results in foggy weather (%)
[0099] method Bulk Carrier container Cruise Other ships Islands and Reefs sailboat mAP Faster R-CNN 75.7 80.2 82.1 38.3 59.8 85.7 70.3 IBN-Net 76.3 79.6 81.1 37.1 56.6 84.1 69.1 SW 76.9 80.8 82.2 37.4 60.1 84.3 70.3 IterNorm 75.6 78.6 81.9 38.7 56.4 85.8 69.5 ISW 75.8 80.7 83.3 40.6 60.1 88.1 71.5 IFEDA 79.3 80.9 85.1 41.7 60.2 88.3 72.6 SDRL 79.4 85.6 87.6 41.6 61.4 88.5 74.0
[0100] As can be seen from Table 2, the single-source domain generalization model of stylized and decoupled representation learning proposed in the present invention has a recognition accuracy of 74.0% mAP in the marine target dataset in foggy weather, which is 3.7%, 1.4%, 4.9%, 4.5%, 2.5% and 3.7% higher than the baseline model FasterR-CNN and other classic single-source domain target recognition generalization models IFEDA, IBN-Net, IterNorm, ISW and SW, respectively.
[0101] Table 3 Recognition results under cloudy weather (%)
[0102] method Bulk Carrier container ship Cruise Other ships Islands and Reefs sailboat mAP Faster R-CNN 66.1 80.3 80.2 46.0 40.5 79.5 65.4 IBN-Net 66.2 77.5 79.8 44.5 39.1 79.6 64.5 SW 67.1 79.7 80.6 46.2 40.4 78.8 65.5 IterNorm 67.2 77.6 78.9 46.1 37.9 73.6 63.6 ISW 67.9 80.8 80.1 45.7 41.7 79.7 66.0 IFEDA 68.6 80.7 84.1 48.3 42.7 79.8 67.4 SDRL 72.0 81.7 88.0 50.2 42.4 80.9 69.2
[0103] It can be seen from Table 3 that the single-source domain generalization model of stylized and decoupled representation learning proposed in the present invention has a recognition accuracy of 69.2% mAP in the marine target dataset in cloudy weather, which is 3.8%, 1.8%, 4.7%, 5.6%, 3.2% and 3.7% higher than the baseline model FasterR-CNN and other classic single-source domain target recognition generalization models IFEDA, IBN-Net, IterNorm, ISW and SW respectively.
[0104] Table 4 Comparison results under different weather conditions (%)
[0105] method cloudy day Foggy Day Dusk mAP Faster R-CNN 65.4 70.3 60.4 65.4 IBN-Net 64.5 69.1 61.2 64.9 SW 65.5 70.3 61.4 65.7 IterNorm 63.6 69.5 60.3 64.5 ISW 66.0 71.5 61.1 66.2 IFEDA 67.4 72.6 62.1 67.4 SDRL 69.2 74.0 64.5 69.2
[0106] It can be seen from Table 4 that the single-source domain generalization model of stylized and decoupled representation learning proposed in the present invention has a recognition accuracy of 69.2% mAP in the marine target dataset in unknown weather scenes, which is 3.8%, 1.8%, 4.3%, 4.7%, 3.0% and 3.5% higher than the baseline model Faster R-CNN and other classic single-source domain target recognition generalization models IFEDA, IBN-Net, IterNorm, ISW and SW, respectively.
[0107] The method of the present invention marks the prediction box and category score on the recognition results of randomly selected samples in dusk, foggy and cloudy weather, and qualitatively analyzes the effect of the model. Among them, the sample specifically refers to the image data containing the marked target in complex weather such as dusk and foggy weather. The prediction box will mark the bulk carriers, container ships, cruise ships, sailboats, other ships and islands and reefs in the picture. The data set of the training and testing model of the present invention marks the categories of bulk carriers, container ships, cruise ships, sailboats, other ships and islands and reefs. The marked category score refers to the score of bulk carriers, container ships, cruise ships, sailboats, other ships or islands and reefs in the prediction box. This score is a probability value, that is, the probability of belonging to a specific category of targets. Figure 3 The recognition results of the single-source domain maritime target recognition generalization model (SDRL) based on stylization and decoupled representation learning proposed in this paper in unknown and complex weather conditions are demonstrated. Figure 3 Parts (a), (d), and (g) show the recognition effect of the SDRL model. Figure 3 Parts (b), (e) and (h) show the recognition effect of the IFEDA model. Figure 3 Parts (c), (f), and (i) show the recognition effect of the FasterR-CNN model. Figure 3 From the set of recognition results shown, it can be seen that the SDRL method proposed in the present invention has better recognition effect than the models trained by the other two methods. Figure 3 Parts (a), (b), and (c) are the recognition results of some samples in the marine target dataset collected in foggy weather. Figure 3 Parts (d), (e) and (f) are the recognition results of some samples in the marine target dataset collected at dusk. Figure 3 Parts (g), (h) and (i) are the recognition results of some samples in the marine target dataset collected on cloudy days. Figure 3 Parts (a), (d), and (g) are visualization results of the SDRL model generalized from sunny days to complex unknown weather conditions. Figure 3 Part (a) shows the visualization result of the SDRL model generalized from sunny days to foggy days, part (d) shows the visualization result of the SDRL model generalized from sunny days to dusk days, and part (g) shows the visualization result of the SDRL model generalized from sunny days to cloudy days. Figure 3 Parts (b), (e), and (h) are visualization results of the IFEDA model generalized from sunny days to complex unknown weather conditions. Figure 3 Part (b) shows the visualization result of the IFEDA model generalized from sunny days to foggy days, part (e) shows the visualization result of the IFEDA model generalized from sunny days to dusk weather, and part (h) shows the visualization result of the IFEDA model generalized from sunny days to cloudy days. Figure 3 Parts (c), (f), and (i) are visualization results of the Faster R-CNN model generalized from the sunny day dataset to complex unknown weather. Figure 3 Part (c) shows the visualization result of the Faster R-CNN model generalized from the sunny data set to foggy weather, part (f) shows the visualization result of the Faster R-CNN model generalized from the sunny data set to dusk weather, and part (i) shows the visualization result of the Faster R-CNN model generalized from the sunny data set to cloudy weather. The target domain data and labels cannot be accessed during model training, so the three complex weather conditions are unknown to the model. From the visualization results, it can be seen that the single-source domain maritime target recognition generalization model of stylized and decoupled representation learning proposed in the present invention has better recognition results and can effectively improve the recognition ability of ships under complex unknown weather conditions.
[0108] Aiming at the problem of difficulty in generalizing the domain adaptive target recognition model under complex and unknown weather conditions, the present invention proposes a generalization method for single-source domain target recognition based on stylization and decoupled representation learning, so as to further improve the recognition ability of intelligent ships under complex, changeable and even unknown weather conditions during navigation. The generalization model for single-source domain target recognition based on stylization and decoupled representation learning consists of two parts: a stylization method and a decoupled representation learning method. First, a stylization method based on Fourier transform is used to generate a variety of data with different styles from the source domain during training. Then, the decoupled representation learning method is used to extract the domain-invariant features and domain-unique features of the generated image and the single-source domain image. Finally, the vector orthogonal loss function is used to enhance the network's ability to acquire domain-invariant features. The proposal of the present invention can lay a foundation for improving the perception ability of intelligent ships, especially the perception ability of targets in complex environments.
[0109] Embodiment 2
[0110] A computer program product includes a computer program, which, when executed by a processor, implements the single-source domain target recognition generalization method in embodiment 1.
[0111] Embodiment 3
[0112] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the single-source domain target recognition generalization method in embodiment 1.
[0113] Embodiment 4
[0114] A computer device, comprising a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the single-source domain target recognition generalization method in Example 1 can be implemented.
[0115] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A single-source domain object recognition generalization method, characterized in that: include: Randomly select two image samples from the single-source domain dataset, extract image features through two-dimensional convolution, and construct a style feature space; The single-source domain data set is a sample set of marine target images in various weather conditions; two image samples randomly selected from the single-source domain data set are samples of marine target images in two different weather conditions; Generate a stylized image corresponding to an original image through the style feature space; the original image is one of two image samples arbitrarily selected from the single-source domain data set; Passing a feature encoder to encode the original image and the stylized image features respectively; The original image and stylized image features are jointly decoupled into domain-invariant features and domain-unique features through two feature decoders; The region candidate network is trained using the domain invariant features, and the region candidate network is optimized using an orthogonal loss function and a target recognition loss function to obtain an optimized region candidate network; The image of the target at sea in complex unknown weather is input into the optimized region candidate network, and the category and position of the target at sea in the image of the target at sea in complex unknown weather are obtained by using the optimized region candidate network.
2. The single-source domain object recognition generalization method according to claim 1, characterized in that: The construction of the style feature space is achieved by extracting the phase and amplitude of different domain images through Fourier transformation; the different domain images are two image samples randomly selected from the single source domain data set.
3. The single-source domain object recognition generalization method according to claim 2, characterized in that: Generating a stylized image corresponding to the original image through the style feature space specifically includes: For each frequency domain image obtained by Fourier transform, a new amplitude value sample set corresponding to the frequency domain image is constructed to obtain an arbitrary style amplitude corresponding to each frequency domain image. Finally, each stylized image is obtained through Fourier inversion.
4. The single-source domain object recognition generalization method according to claim 1, characterized in that: The feature encoder adopts a variational autoencoder.
5. The single-source domain object recognition generalization method according to claim 1, characterized in that: The two feature decoders are constructed by a series of convolutional layers.
6. The single-source domain object recognition generalization method according to claim 1, characterized in that: The calculation method of the orthogonal loss function includes: Extracting RoI features from the domain-invariant features and the domain-unique features respectively to obtain instance-level domain-invariant features and instance-level domain-unique features; Performing an average pooling operation on the instance-level domain invariant features and the instance-level domain unique features respectively to obtain the instance-level domain invariant features and the instance-level domain unique features after the operation; Calculating the product of the vectors of the instance-level domain invariant features after the operation and the instance-level domain unique features after the operation; The orthogonal loss function is calculated by adding the vector products of each pixel in the image.
7. The single-source domain object recognition generalization method according to claim 1, characterized in that: The calculation method of the target recognition loss function includes: Get the regression loss and classification loss of the target bounding box and the region candidate network loss function; The target recognition loss function is calculated by adding the regression loss and classification loss of the target bounding box and the region candidate network loss function.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the single-source domain target recognition generalization method described in any one of claims 1 to 7 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the single-source domain target recognition generalization method described in any one of claims 1 to 7 is implemented.
10. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the single-source domain target recognition generalization method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Cross-domain target detection method based on multi-level domain adaptive weak supervised learning
CN116342942A
Multi-source domain adaptation method and device based on sub-domain moment matching, equipment and memory
CN117557818A
Defending multimodal fusion models against single-source adversaries
US20220405537A1
Multi-domain medical image segmentation method based on domain adaptation
WO2023065070A1
