Sonar simulation image generation method, system and medium based on style transfer

Generating sonar simulation images through style transfer technology solves the problem of difficult data acquisition in the sonar field, expands the data set, and improves the efficiency and accuracy of automatic classification.

CN115019107BActive Publication Date: 2024-09-06WUHAN UNIV OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210752897.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-09-06
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

In the existing technology, deep neural network algorithms require a large amount of sonar image data when used for automatic classification of underwater images. However, due to the difficulty in obtaining sonar image data, the application of convolutional neural networks in the sonar field is limited.

Method used

Through style transfer technology, satellite remote sensing images are used to generate sonar simulation images, a style transfer network is constructed, and simulated sonar images are generated by combining the characteristics of real sonar images and satellite sub-images to expand the data set.

Benefits of technology

Effectively expand the sonar data set, improve the diversity and quantity of sonar image data, provide a foundation for subsequent work, reduce visual fatigue and misjudgments, and improve work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115019107B
    Figure CN115019107B
Patent Text Reader

Abstract

The present invention discloses a method, system and medium for generating sonar simulation images based on style transfer, wherein the method comprises: according to the target object category contained in the real sonar image, taking the satellite remote sensing image as input, identifying the satellite remote sensing image, identifying the identification object with the same category as the target object, and marking the range where the identification object is located; performing image segmentation on the identified and marked satellite remote sensing image, and constructing a satellite sub-image data set based on the target object category; constructing a style transfer network, taking the real sonar image as the style image, performing style transfer on the segmented satellite sub-image, and generating a sonar simulation image as a training sample image. The present invention is based on remote sensing satellite images, uses a style transfer network to obtain simulated sonar images, can effectively expand the number of sonar data sets, and provides a basis for subsequent related work based on sonar images. The present invention can be widely used in the field of image processing technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a sonar simulation image generation method, system and medium based on style migration. Background Art

[0002] As a high-resolution, multi-purpose, low-cost underwater imaging device, sonar is widely used in oceans, rivers, lakes and other waters. Because it can obtain high-resolution, continuous seabed images, it is widely used in marine surveying and mapping, offshore exploration, underwater search and rescue and other fields. In underwater search and rescue activities, sonar can effectively detect underwater targets such as aircraft wreckage and shipwrecks. During long underwater search and rescue missions, rescuers need to continuously and carefully check the sonar images to confirm whether there are target objects. After working for a period of time, the staff will experience visual fatigue and easily miss the rescue target. In order to effectively reduce the workload of the staff, reduce the misjudgment caused by visual fatigue, and improve work efficiency, it is of practical significance to automatically classify sonar images. However, the existing technology has the following defects:

[0003] In recent years, the most accurate underwater image automatic classification algorithms all use deep neural network algorithms, which require a large amount of sonar image data for training. However, since sonar images are often related to emergency rescue or national defense, it is difficult to obtain data sets, and there are still no public, unified large batches of sonar images. This has prevented convolutional neural networks from being widely used in the sonar field. Summary of the invention

[0004] In order to solve at least one of the technical problems existing in the prior art to a certain extent, the object of the present invention is to provide a method, system and medium for generating sonar simulation images based on style transfer.

[0005] The technical solution adopted by the present invention is:

[0006] A method for generating a sonar simulation image based on style transfer comprises the following steps:

[0007] According to the target object category contained in the real sonar image, the satellite remote sensing image is used as input, the satellite remote sensing image is recognized, the identification object of the same category as the target object is identified, and the range where the identification object is located is marked;

[0008] Perform image segmentation on the identified and labeled satellite remote sensing images, classify them according to the target object category, and construct a satellite sub-image dataset;

[0009] A style transfer network is constructed, and real sonar images are used as style images. The style of the segmented satellite sub-images is transferred to generate sonar simulation images as training sample images.

[0010] Furthermore, the identifying the satellite remote sensing image, identifying an object of the same category as the target object, and marking a range where the object is located, includes:

[0011] Use the target recognition network trained with the preset data set to detect targets in satellite remote sensing images, and divide the detection results into n+1 categories, where n is the number of target object categories;

[0012] The area where the target object is located is marked, wherein the resolution of the marked area is adjusted according to different input images.

[0013] Furthermore, the image segmentation of the identified and marked satellite remote sensing images is performed, and the satellite sub-image data set is constructed based on the target object category, including:

[0014] After marking the object to be identified, the target area is obtained, and the parameters x, y, w, and h of the target area are read, where x and y are the horizontal and vertical coordinates of the upper left corner of the target area, and w and h are the horizontal and vertical scales of the target area;

[0015] According to the parameters read, the target area is segmented with adaptive resolution, and the area of ​​the segmented satellite sub-image is:

[0016]

[0017] in, is the adaptive resolution scaling factor determined by the horizontal and vertical scales of the original image; is the segmentation range of the original mark, The segmentation range after adaptive resolution scaling.

[0018] Further, the adaptive resolution scaling factor λ is obtained by:

[0019]

[0020] Among them, f(w,h) is the smaller side of w and h.

[0021] Furthermore, the style transfer network uses a hollow spatial pyramid structure to extract a style feature map.

[0022] Furthermore, the construction of the style transfer network uses the real sonar image as the style image, performs style transfer on the segmented satellite sub-image, and generates a sonar simulation image as a training sample image, including:

[0023] A convolutional neural network is constructed, and the features of the real sonar image and the satellite sub-image are extracted by using the convolutional neural network. The Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix are used as the loss function for optimization to obtain a sonar simulation image.

[0024] Furthermore, the convolutional neural network is constructed, and the features of the real sonar image and the satellite sub-image are extracted using the convolutional neural network, and the Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix are used as the loss function for optimization to obtain the sonar simulation image, including:

[0025] Based on the first 17 layers of the VGG16 network, shortcut connections are added to the first 17 layers of VGG16 to build a convolutional neural network;

[0026] The convolutional neural network calculation after adding the shortcut is expressed as:

[0027] x l+1 =x l +F(x l )

[0028] In the formula, x l and x l+1 Represent the characteristics of the network layer l and layer l+1 respectively; F(x l ) represents the convolution and activation operations of the network; the network back propagation process after adding the shortcut is:

[0029]

[0030] The first 17 layers of the trained VGG16 network are used as the backbone of the convolutional neural network, and the real sonar image is used as the style image, and the satellite sub-image is used as the content image to input the VGG16 network with shortcut to extract the style feature S and the content feature C respectively;

[0031] The Euclidean distance between the style feature S and the content feature C is taken as the content loss, and the content loss is expressed as:

[0032]

[0033] Where i represents the i-th element in the feature map;

[0034] The style loss function is:

[0035]

[0036]

[0037]

[0038] In the formula It is the output of the style feature S (also called style image S) at the (i, j, k) position of the lth layer of CNN, where (i, j, k) corresponds to the three dimensions of height, width, and channel;

[0039] is the output of the style image at the (i, j, k′)th position of the lth layer of CNN, where (i, j, k′) corresponds to the three dimensions of height, width, and channel;

[0040] is the output of the network generated image G at the (i, j, k)th position of the CNN layer l, where (i, j, k) corresponds to the three dimensions of height, width, and channel;

[0041] is the total number of height dimensions of the lth layer of CNN;

[0042] is the total number of width dimensions of the lth layer of CNN;

[0043] is the total number of channels in the lth layer of CNN;

[0044] is the style feature S of the lth layer of CNN in channel k ′ and the Gram matrix of channel k;

[0045] is the content feature C of the lth layer of CNN in channel k ′ and the Gram matrix of channel k;

[0046] The loss function of style transfer is:

[0047] L=αL c +βL s

[0048] Where α and β are weight coefficients.

[0049] Another technical solution adopted by the present invention is:

[0050] A sonar simulation image generation system based on style transfer, comprising:

[0051] The satellite image processing module is used to identify the satellite remote sensing image according to the target object category contained in the real sonar image, identify the object of the same category as the target object, and mark the range where the object is located;

[0052] Satellite image segmentation module, used to segment the identified and marked satellite remote sensing images, classify them according to the target object category, and construct a satellite sub-image dataset;

[0053] The image style transfer module is used to build a style transfer network. It uses real sonar images as style images, performs style transfer on the segmented satellite sub-images, and generates sonar simulation images as training sample images.

[0054] Another technical solution adopted by the present invention is:

[0055] A sonar simulation image generation system based on style transfer, comprising:

[0056] at least one processor;

[0057] at least one memory for storing at least one program;

[0058] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0059] Another technical solution adopted by the present invention is:

[0060] A computer-readable storage medium stores a program executable by a processor, wherein the program executable by the processor is used to execute the method described above when executed by the processor.

[0061] The beneficial effects of the present invention are as follows: the present invention uses remote sensing satellite images as input, takes real sonar images as targets, uses a style transfer network, obtains simulated sonar images, can effectively expand the number of sonar data sets, and provides a basis for subsequent related work based on sonar images. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the embodiments of the present invention or the drawings of related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0063] Figure 1 is a flowchart of the steps of a method for generating a sonar simulation image based on style transfer in an embodiment of the present invention;

[0064] Figure 2 It is a flow chart of a method for generating a sonar simulation image based on style transfer in an embodiment of the present invention;

[0065] Figure 3 is a structural diagram of a convolutional neural network in an embodiment of the present invention;

[0066] Figure 4is a workflow diagram of a style transfer network based on the VGG16 network in an embodiment of the present invention;

[0067] Figure 5 is a schematic diagram of a satellite remote sensing image used in an embodiment of the present invention;

[0068] Figure 6 is a schematic diagram of a satellite remote sensing image after target recognition in an embodiment of the present invention;

[0069] Figure 7 is a schematic diagram of a satellite remote sensing sub-image after image cropping in an embodiment of the present invention;

[0070] Figure 8 is a schematic diagram of a simulated sonar image obtained through style transfer in an embodiment of the present invention. DETAILED DESCRIPTION

[0071] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0072] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0073] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0074] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0075] like Figure 1 As shown, this embodiment provides a method for generating a sonar simulation image based on style transfer, comprising the following steps:

[0076] S1. According to the target object category contained in the real sonar image, the satellite remote sensing image is used as input to identify the satellite remote sensing image, identify the object with the same category as the target object, and mark the range where the object is located.

[0077] According to the existing target object categories contained in the real sonar image and the target object categories to be added, the satellite remote sensing image is used as input to identify the satellite remote sensing image area with the same target object category.

[0078] (1) There are two categories in the real sonar image dataset: ship wreckage and aircraft wreckage. The types of target objects are relatively small and the number distribution is uneven, which will make it impossible to carry out subsequent work based on the real sonar image dataset. In order to make the sonar image dataset diverse and sufficient in number, the present invention takes ship wreckage, aircraft wreckage, people falling into the water and stones as target object categories.

[0079] (2) Using a satellite remote sensing image as the original image input, identify the above-mentioned target object in the image, obtain the identified object, and mark the image area where the identified object is located. The marked data are: the category to which the identified object belongs, the coordinates x, y of the upper left corner of the area where the identified object is located, and the scale h, w of the area where the identified object is located in the height and width directions of the image.

[0080] S2. Perform image segmentation on the identified and labeled satellite remote sensing images, classify them according to the target object category, and construct a satellite sub-image dataset.

[0081] According to the identification object marking data in the above steps, the marked area is cropped, and the length, width and ratio of the cropped sub-image are determined, and the image is scaled with different lengths, widths and aspect ratios.

[0082] The specific steps are:

[0083] (1) Based on the x, y, h, w obtained in the above steps, the original image is cropped. The cropping range is:

[0084] {(x, y), (x+w, y), (x, y+h), (x+w, y+h)}

[0085] The four coordinates in the above formula are the four corner coordinates of the cropped image. The image is cropped with the four corner coordinates as the cropping range to obtain a sub-image.

[0086] (2) Based on the sub-image obtained in the above steps, the image is scaled using 416×416 pixels as the standard. The image scaling formula is as follows:

[0087]

[0088] S3. Construct a style transfer network, use the real sonar image as the style image, perform style transfer on the segmented satellite sub-image, and generate a sonar simulation image as a training sample image.

[0089] A convolutional neural network is constructed and used to extract the features of real sonar images and sub-images. The Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix are used as the loss function for optimization to obtain the simulated sonar image.

[0090] The specific steps are:

[0091] (1) Based on the first 17 layers of the VGG16 network, shortcut connections are added to the first 17 layers of the VGG16 to construct a convolutional neural network. Figure 3 shown.

[0092] The shortcut connection is to add an input to the output of the function. The output after adding the shortcut can be clearly expressed as the linear superposition of F(x) and x. The output is expressed as the linear superposition of the input and a nonlinear transformation of the input. The training effect of the network is guaranteed when the network structure is deepened. The network calculation after adding the shortcut can be expressed as:

[0093] x l+1 =x l +F(x l )

[0094] In the above formula, x l and x l+1 Represent the features of the network layer l and layer l+1 respectively. l ) represents the convolution and activation operations of the network. The network back propagation process after adding the shortcut is:

[0095]

[0096] (2) Load the parameters of the above convolutional neural network, and input the sub-image obtained in step S2 and the real sonar image into the network for style transfer. Figure 4 shown.

[0097] The first 17 layers of the trained VGG16 network are used as the backbone of the above convolutional neural network, the real sonar image is used as the style image, and the sub-image obtained in step S2 is used as the content image to input the VGG16 network with shortcut to extract the style feature S and content feature C respectively.

[0098] The Euclidean distance between the style feature S and the content feature C is taken as the content loss, and the content loss can be expressed as:

[0099]

[0100] Where i represents the i-th element in the feature map, and each element in the feature map is a value between [0,1).

[0101] The style loss function is:

[0102]

[0103]

[0104]

[0105] In the formula is the output of the style image at the (i, j, k)th position of the lth layer of CNN, where (i, j, k) corresponds to height, width, and channel

[0106] The loss function of style transfer is:

[0107] L=αL c +βL s

[0108] Where α and β are weight coefficients

[0109] (3) Set up a comparative experiment to verify the similarity between the simulated sonar images and the real sonar images.

[0110] Experimental group data setting: real sonar images and simulated sonar images are combined into a mixed data set, and the data set is divided into a training set and a validation set in a ratio of 7:3. Control group data setting: only real sonar images are set as the data set, and the training set and the validation set are divided in a ratio of 7:3. After the image classification network test, the accuracy of the two experimental data sets is similar.

[0111] The above method is explained in detail below with reference to the accompanying drawings and specific embodiments.

[0112] See also Figure 2 , Figure 2 A flowchart of a sonar simulation image generation method based on style transfer provided by an embodiment of the present invention is shown, and the method comprises the following steps:

[0113] Step S101, based on the existing target object categories and the target object categories to be added contained in the real sonar image, the satellite remote sensing image is used as input to identify the satellite remote sensing image area with the same category as the target object.

[0114] (1) The real sonar image data set involved in this embodiment includes two categories: ship wreckage and aircraft wreckage. In order to make the simulated sonar image target types have practical application value in rescue and salvage and underwater detection, people falling into the water and stones are added as target categories.

[0115] (2) Figure 5 This is one of the satellite remote sensing images used in this example. The satellite remote sensing image is used as input, objects in the remote sensing image are identified according to the classification criteria, and the identified areas are marked. Figure 5 There are three aircraft in the image, so after identification, the three aircraft and their corresponding areas should be marked. Figure 6 The marked data are:

[0116] {airplane,(642,187),120,120}

[0117] {airplane,(151,360),210,180}

[0118] {airplane,(329,552),174,147}

[0119] Step S102 , cropping the marked area according to the identification object marking data in the above steps, determining the length, width and ratio of the cropped sub-image, and scaling the image with different lengths, widths and aspect ratios.

[0120] (1) Based on {classes, (x, y), w, h} obtained in the above steps, the cropping range of the three images is:

[0121] {(642,187),(762,187),(642,370),(762,370)}

[0122] {(151,360),(361,360),(151,542),(361,542)}

[0123] {(329,552),(503,552),(329,699),(503,699)}

[0124] The image is cropped using the four corner coordinates as the cropping range to obtain the sub-image as follows Figure 7 shown.

[0125] (2) Based on the sub-image obtained in the above steps, the image is scaled using 416×416 pixels as the standard. The image scaling formula is as follows:

[0126]

[0127] The sizes of the three sub-images after scaling are 416×416, 416×357, and 416×351 respectively.

[0128] S103: Construct a convolutional neural network, and use the network to extract features of the real sonar image and the sub-image, optimize the loss function using the Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix to obtain a simulated sonar image.

[0129] (1) Based on the first 17 layers of the VGG16 network, shortcut connections are added to the first 17 layers of VGG16 to build a convolutional neural network.

[0130] Shortcut structure: Except for the necessary downsampling operation, the data input to the network is not processed in any way and is directly fused with the feature map after convolution to improve the ability of the neural network to extract features.

[0131] (2) Load the parameters of the above convolutional neural network, which are obtained from the ImageNet dataset training. Input the sub-image obtained in step S102 and the real sonar image into the network for style transfer.

[0132] The simulated sonar image after style transfer is as follows Figure 8 shown.

[0133] (3) Set up a comparative experiment to verify the similarity between the simulated sonar images and the real sonar images.

[0134] Experimental group data setting: The real sonar images and simulated sonar images are combined into a mixed data set and the data set is divided into a training set and a validation set in a ratio of 7:3. The number of training sets and validation sets is 84 and 36 respectively. Control group data setting: Only the real sonar images are set as the data set, and the training set and validation set are divided in a ratio of 7:3. The number of training sets and validation sets is 44 and 18 respectively. After inference by the image classification network, the accuracy of the two sets of data are 86.11% and 83.33% respectively. The difference between the two sets of data is quite large, indicating that for the same image classification network, the real data set and the mixed data set have a strong similarity.

[0135] This embodiment uses remote sensing satellite aircraft images as input, takes real aircraft wreckage sonar images as targets, and uses a style transfer network to obtain simulated sonar images, effectively expanding the number of aircraft sonar image data sets.

[0136] In summary, the method of this embodiment has the following advantages and beneficial effects compared with the prior art:

[0137] The present invention uses remote sensing satellite images as input, takes real sonar images as targets, and uses a style transfer network to obtain simulated sonar images. In addition, in the process from inputting images to finally obtaining simulated sonar images, the present invention does not need to manually add image features, and can quickly obtain simulated sonar images based on remote sensing images of different resolutions. The obtained simulated sonar images have the style of real sonar images, which can effectively expand the number of sonar data sets and provide a basis for subsequent related work based on sonar images.

[0138] This embodiment also provides a sonar simulation image generation system based on style transfer, including:

[0139] The satellite image processing module is used to identify the satellite remote sensing image according to the target object category contained in the real sonar image, identify the object of the same category as the target object, and mark the range where the object is located;

[0140] Satellite image segmentation module, used to segment the identified and marked satellite remote sensing images, classify them according to the target object category, and construct a satellite sub-image dataset;

[0141] The image style transfer module is used to build a style transfer network. It uses real sonar images as style images, performs style transfer on the segmented satellite sub-images, and generates sonar simulation images as training sample images.

[0142] A sonar simulation image generation system based on style transfer in this embodiment can execute a sonar simulation image generation method based on style transfer provided by the method embodiment of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0143] This embodiment also provides a sonar simulation image generation system based on style transfer, including:

[0144] at least one processor;

[0145] at least one memory for storing at least one program;

[0146] When the at least one program is executed by the at least one processor, the at least one processor implements Figure 1 The method shown.

[0147] A sonar simulation image generation system based on style transfer in this embodiment can execute a sonar simulation image generation method based on style transfer provided by the method embodiment of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0148] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 1 The method shown.

[0149] This embodiment also provides a storage medium storing instructions or programs that can execute a sonar simulation image generation method based on style transfer provided by the method embodiment of the present invention. When the instructions or programs are run, any combination of implementation steps of the method embodiment can be executed, and the corresponding functions and beneficial effects of the method can be obtained.

[0150] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0151] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0152] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0153] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0154] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0155] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0156] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0157] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0158] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for generating sonar simulation images based on style transfer, characterized in that: The following steps are involved: According to the target object category contained in the real sonar image, the satellite remote sensing image is used as input, the satellite remote sensing image is recognized, the identification object of the same category as the target object is identified, and the range where the identification object is located is marked; Perform image segmentation on the identified and labeled satellite remote sensing images, classify them according to the target object category, and construct a satellite sub-image dataset; Construct a style transfer network, use real sonar images as style images, perform style transfer on the segmented satellite sub-images, and generate sonar simulation images as training sample images; The construction of the style transfer network uses the real sonar image as the style image, performs style transfer on the segmented satellite sub-image, and generates a sonar simulation image as a training sample image, including: Constructing a convolutional neural network, using the convolutional neural network to extract features of the real sonar image and the satellite sub-image, optimizing the loss function using the Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix to obtain a sonar simulation image; The convolutional neural network is constructed, and features of the real sonar image and the satellite sub-image are extracted using the convolutional neural network. The Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix are used as the loss function for optimization to obtain the sonar simulation image, including: Based on the first 17 layers of the VGG16 network, shortcut connections are added to the first 17 layers of VGG16 to build a convolutional neural network; The convolutional neural network calculation after adding the shortcut is expressed as: x l+1 =x l +F(x l ) In the formula, x l and x l+1 Represent the characteristics of the network layer l and layer l+1 respectively; F(x l ) represents the convolution and activation operations of the network; The network back propagation process after adding the shortcut is: The first 17 layers of the trained VGG16 network are used as the backbone of the convolutional neural network, and the real sonar image is used as the style image, and the satellite sub-image is used as the content image to input the VGG16 network with shortcut to extract the style feature S and the content feature C respectively; The Euclidean distance between the style feature S and the content feature C is taken as the content loss, and the content loss is expressed as: Where i represents the i-th element in the feature map; The style loss function is: In the formula is the output of the style feature S at the (i, j, k)th position of the lth layer of CNN, where (i, j, k) corresponds to the three dimensions of height, width, and channel; is the output of the style image at the (i, j, k′)th position of the lth layer of CNN, where (i, j, k′) corresponds to the three dimensions of height, width, and channel; is the output of the network generated image G at the (i, j, k)th position of the CNN layer l, where (i, j, k) corresponds to the three dimensions of height, width, and channel; is the total number of height dimensions of the lth layer of CNN; is the total number of width dimensions of the lth layer of CNN; is the total number of channels in the lth layer of CNN; is the Gram matrix of the style feature S of the lth layer of CNN in channel k′ and channel k; is the Gram matrix of the content feature C of the lth layer of CNN in channel k′ and channel k; The loss function of style transfer is: L=αL c +βL s Where α and β are weight coefficients.

2. The method for generating sonar simulation images based on style transfer according to claim 1, characterized in that: The step of identifying the satellite remote sensing image, identifying an object of the same category as the target object, and marking a range where the object is located includes: Use the target recognition network trained with the preset data set to detect targets in satellite remote sensing images, and divide the detection results into n+1 categories, where n is the number of target object categories; Mark the area where the target object is located.

3. The method for generating sonar simulation images based on style transfer according to claim 1, characterized in that: The image segmentation is performed on the identified and marked satellite remote sensing images, and the satellite sub-image data set is constructed based on the target object category, including: After marking the object to be identified, the target area is obtained, and the parameters x, y, w, and h of the target area are read, where x and y are the horizontal and vertical coordinates of the upper left corner of the target area, and w and h are the horizontal and vertical scales of the target area; According to the parameters read, the target area is segmented with adaptive resolution, and the area of ​​the segmented satellite sub-image is: in, is the adaptive resolution scaling factor determined by the horizontal and vertical scales of the original image; is the segmentation range of the original mark, The segmentation range after adaptive resolution scaling.

4. The method for generating sonar simulation images based on style transfer according to claim 3, characterized in that: The adaptive resolution scaling factor λ is obtained by: Among them, f(w,h) is the smaller side of w and h.

5. The method for generating sonar simulation images based on style transfer according to claim 1, characterized in that: The style transfer network uses a hollow spatial pyramid structure to extract a style feature map.

6. A sonar simulation image generation system based on style transfer, characterized in that: include: The satellite image processing module is used to identify the satellite remote sensing image according to the target object category contained in the real sonar image, identify the object of the same category as the target object, and mark the range where the object is located; Satellite image segmentation module, used to segment the identified and marked satellite remote sensing images, classify them according to the target object category, and construct a satellite sub-image dataset; The image style transfer module is used to build a style transfer network, use real sonar images as style images, perform style transfer on the segmented satellite sub-images, and generate sonar simulation images as training sample images; The construction of the style transfer network uses the real sonar image as the style image, performs style transfer on the segmented satellite sub-image, and generates a sonar simulation image as a training sample image, including: Constructing a convolutional neural network, using the convolutional neural network to extract features of the real sonar image and the satellite sub-image, optimizing the loss function using the Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix to obtain a sonar simulation image; The convolutional neural network is constructed, and features of the real sonar image and the satellite sub-image are extracted using the convolutional neural network. The Euclidean distance between the features of the two images and the Euclidean distance of the Gram matrix are used as the loss function for optimization to obtain the sonar simulation image, including: Based on the first 17 layers of the VGG16 network, shortcut connections are added to the first 17 layers of VGG16 to build a convolutional neural network; The convolutional neural network calculation after adding the shortcut is expressed as: x 1+1 =x l +F(x l ) In the formula, x l and x l+1 Represent the characteristics of the network layer l and layer l+1 respectively; F(x l ) represents the convolution and activation operations of the network; the network back propagation process after adding the shortcut is: The first 17 layers of the trained VGG16 network are used as the backbone of the convolutional neural network, and the real sonar image is used as the style image, and the satellite sub-image is used as the content image to input the VGG16 network with shortcut to extract the style feature S and the content feature C respectively; The Euclidean distance between the style feature S and the content feature C is taken as the content loss, and the content loss is expressed as: Where i represents the i-th element in the feature map; The style loss function is: In the formula is the output of the style feature S at the (i, j, k)th position of the lth layer of CNN, where (i, j, k) corresponds to the three dimensions of height, width, and channel; is the output of the style image at the (i, j, k′)th position of the lth layer of CNN, where (i, j, k′) corresponds to the three dimensions of height, width, and channel; is the output of the network generated image G at the (i, j, k)th position of the CNN layer i, where (i, j, k) corresponds to the three dimensions of height, width, and channel; is the total number of height dimensions of the lth layer of CNN; is the total number of width dimensions of the lth layer of CNN; is the total number of channels in the lth layer of CNN; is the Gram matrix of the style feature S of the lth layer of CNN in channel k′ and channel k; is the Gram matrix of the content feature C of the lth layer of CNN in channel k′ and channel k; The loss function of style transfer is: L=αL c +βL s Where α and β are weight coefficients.

7. A sonar simulation image generation system based on style transfer, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 5 when executed by the processor.

Citation Information

Patent Citations

  • Side-scan sonar image target classification method based on style migration

    CN110991516A

  • Zero-sample side-scan sonar image target classification method

    CN111582403A

  • Sonar image automatic target identification method based on neural network visualization

    CN113052215A

  • Method and apparatus for training machine learning model, apparatus for video style transfer

    US20210256304A1