Region-of-interest image coding method based on code rate adjustment algorithm
By adopting the region-of-interest image coding method based on the code rate adjustment algorithm in the unmanned system, the problem of low efficiency of multi-source image information transmission in complex environments is solved, and efficient transmission and information processing efficiency are improved.
Patent Information
- Application Number
- CN202410653314.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-10
AI Technical Summary
In complex environments, existing unmanned system transmission technology is difficult to efficiently transmit multi-source image information, resulting in high pressure on transmission bandwidth and affecting system performance.
The region-of-interest image coding method based on the bit rate adjustment algorithm is adopted. By establishing a target detection and recognition model, the encoding method is selected according to the transmission bit rate, the H265 encoding format is used to compress and encode the video stream, and the target detection and recognition model is used to generate a target-containing image. The image frames are encoded, the loss function and feature extraction stages are optimized.
It achieves efficient information transmission in complex environments, reduces transmission bandwidth pressure, improves the information processing and transmission efficiency of unmanned systems, and shortens the time from information acquisition to decision-making.
Smart Images

Figure FDA0004857094160000029 
Figure FDA0004857094160000012 
Figure FDA0004857094160000026
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication transmission, and in particular to a method for encoding an image of a region of interest based on a code rate adjustment algorithm, which solves the problem of efficient information transmission in a complex environment. Background Art
[0002] Unmanned system transmission and online intelligent processing are effective means to improve the adaptability of unmanned systems in strong confrontation and denial environments. Based on the current unmanned system usage needs and technology development status, improving the processing capabilities of the platform front end and changing the traditional information processing methods are effective means for unmanned platforms to adapt to complex environments in the future. The integrated technology of onboard online information processing and transmission can not only improve the onboard online information processing capabilities, but also reduce the pressure of information transmission, providing a convenient technical means to effectively adapt to complex applications in the future.
[0003] Unmanned system transmission and online intelligent processing explore a feasible path to effectively improve the use efficiency of existing unmanned systems. Unmanned system transmission and online intelligent processing optimization technology can improve the front-end intelligent information processing and data dynamic transmission capabilities without changing the existing platform and system architecture as much as possible. The overall information processing link is effectively optimized, shortening the time from information acquisition to decision-making, and greatly improving the use efficiency of existing systems.
[0004] Unmanned system transmission and online intelligent processing are key technical measures to achieve large-scale organization and application of unmanned systems. At present, the organization and application of large-scale unmanned systems face significant problems such as limited transmission resources. Unmanned system transmission and online intelligent processing technology are used to adaptively adjust the information transmission content of unmanned systems according to the different support requirements of mission environments, mission scenarios, and mission stages. At present, the most important airborne perception information of drones is mainly multi-source images, including visible light, infrared, SAR, etc. Intelligent target detection and recognition of multi-source images and only transmitting images containing targets can effectively reduce the transmission bandwidth pressure of unmanned systems. Summary of the invention
[0005] In view of the above requirements, the present invention proposes a region of interest image encoding method based on a bit rate adjustment algorithm to solve the problem of efficient information transmission in complex environments.
[0006] The technical solution adopted by the present invention is:
[0007] A method for encoding an area of interest image based on a bit rate adjustment algorithm comprises the following steps:
[0008] Step 1: Establish a target detection and recognition model;
[0009] Step 2: Select different encoding methods based on the transmission bit rate. If the transmission bit rate is greater than the threshold, go to step 3; otherwise, go to step 4.
[0010] Step 3: compress and encode the video bitstream using the H265 encoding format, and then go to step 5;
[0011] Step 4: Use the target detection and recognition model to perform target recognition on the video bitstream, obtain the image frame containing the target, and encode it according to the image format, and then go to step 5;
[0012] Step 5: Complete the image encoding of the region of interest.
[0013] Furthermore, the target detection and recognition model in step 1 is based on YoloV4. The second output feature layer of the backbone network CSPDarknet53-tiny is first pooled through the SPP structure before being sent to the improved feature enhancement network and fused with the first output feature layer. The scale of the first output feature layer is 38×38, and the scale of the second output feature layer is 19×19.
[0014] The loss function of the target detection and recognition model is as follows:
[0015]
[0016] in,
[0017] Where, L loc represents the bounding box positioning loss, IoU represents the intersection over union ratio between the predicted box and the real box, ρ 2 (B,B gt ) represents the square of the Euclidean distance between the center point of the predicted box and the true box, c is the diagonal distance of the smallest rectangular area that can contain the predicted box and the standard box, The difference between the predicted aspect ratio and the standard aspect ratio, β is a hyperparameter;
[0018]
[0019] Where, L cls Represents the prediction category loss. The feature map is divided into K×K grids. K×K represents the number of grids on the feature map, and the value is 19×19 or 38×38. If the j-th prior box of the i-th grid has an object that needs to be predicted, then Otherwise z represents a target category, and p i (z) represents the true probability and predicted probability of the object predicted by the i-th grid belonging to class z, and the true probability distribution before and after label smoothing It is expressed as: y represents the true category, and δ is a hyperparameter;
[0020]
[0021] Where, L conf Represents the prediction confidence loss, M represents the number of prior boxes, and C i , represents the true value and predicted value of the confidence. If the j-th prior box of the i-th grid does not have an object to be predicted, then Otherwise
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] 1. The present invention constructs an information encoding mechanism based on bit rate, adopts an image compression method to generate a compressed video code stream, and adopts a target detection method to generate target image information.
[0024] 2. The present invention constructs a new target recognition model, including adding a feature pyramid structure in the feature extraction stage, using a label smoothing strategy to reduce the negative impact of incorrect labels, and optimizing the loss function. DETAILED DESCRIPTION
[0025] The following will be combined with the embodiments to clearly and completely describe the concept, technical solution advantages and technical effects of the present invention, so as to fully understand the purpose, features and effects of the present invention. It should be noted that the specific embodiments described herein are only used to explain the present invention and do not limit the present invention.
[0026] A method for encoding an image of a region of interest based on a bit rate adjustment algorithm, the method comprising:
[0027] Step 1: Establish a target detection and recognition model;
[0028] Step 2: Select different encoding methods based on the transmission bit rate. If the transmission bit rate is greater than the threshold, go to step 3; otherwise, go to step 4. The threshold can be selected independently according to the actual transmission rate requirements.
[0029] Step 3: compress and encode the video bitstream using the H265 encoding format, and then go to step 5;
[0030] Step 4: Use the target detection and recognition model to perform target recognition on the video bitstream, obtain the image frame containing the target, and encode it according to the image format, and then go to step 5;
[0031] Step 5: Complete the image encoding of the region of interest.
[0032] Among them, the target detection and recognition model is constructed as follows:
[0033] Based on YoloV4 model;
[0034] The second output feature layer (scale 19×19) of the backbone network CSPDarknet53-tiny is first processed by SPP structure pooling before being sent to the improved feature enhancement network and fused with the first output feature layer (scale 38×38);
[0035] Use label smoothing strategies to reduce the negative impact of incorrect labels;
[0036] The loss function is optimized and expressed as follows:
[0037]
[0038] in,
[0039] L loc represents the bounding box positioning loss, IoU represents the intersection over union ratio between the predicted box and the real box, ρ 2 (B,B gt ) represents the square of the Euclidean distance between the center point of the predicted box and the true box, c is the diagonal distance of the minimum rectangular area that can contain the predicted box and the standard box, The difference between the predicted aspect ratio and the standard aspect ratio, β is a hyperparameter;
[0040]
[0041] L cls Represents the prediction category loss. The feature map is divided into K×K (19×19 or 38×38) grids. K×K represents the number of grids on the feature map. If the j-th prior box of the i-th grid has an object that needs to be predicted, then Otherwise z represents a target category, and p i (z) represents the true probability and predicted probability of the object predicted by the i-th grid belonging to class z, and the true probability distribution before and after label smoothing It is expressed as: y represents the true category, and δ is a hyperparameter;
[0042]
[0043] L conf Represents the prediction confidence loss, M represents the number of prior boxes, and C i , represents the true value and predicted value of the confidence. If the j-th prior box of the i-th grid does not have an object to be predicted, then Otherwise
[0044] Here is a more specific example:
[0045] Construct a multi-source image target detection and recognition dataset, including ships and vehicles, to verify the target recognition effect.
[0046] The multi-source target detection and recognition dataset constructed in this embodiment is shown in Table 1.
[0047] Table 1 Multi-source target detection and recognition dataset
[0048] category Data Source Number of images (pictures) vessel Visible light, SAR 1156 vehicle Infrared, visible light 1300
[0049] The accuracy statistics of target detection using this embodiment are shown in Table 2.
[0050] Table 2 Detection and recognition results of multi-source image datasets
[0051] category Accuracy vessel 97.9% vehicle 95.9%
[0052] In summary, the present invention constructs an information encoding mechanism based on bit rate, and uses an image compression method to generate a compressed video stream; constructs a new target recognition model, including adding a feature pyramid structure in the feature extraction stage, using a label smoothing strategy to reduce the negative impact of incorrect labels, and optimizing the loss function, and uses a target detection method to generate target image information.
Claims
1. A method for encoding an image of a region of interest based on a rate adjustment algorithm, characterized in that: The following steps are involved: Step 1: Establish a target detection and recognition model; Step 2: Select different encoding methods based on the transmission bit rate. If the transmission bit rate is greater than the threshold, go to step 3; otherwise, go to step 4. Step 3: compress and encode the video bitstream using the H265 encoding format, and then go to step 5; Step 4: Use the target detection and recognition model to perform target recognition on the video bitstream, obtain the image frame containing the target, and encode it according to the image format, and then go to step 5; Step 5: Complete the image encoding of the region of interest.
2. The method for encoding a region of interest image based on a rate adjustment algorithm according to claim 1, characterized in that: The target detection and recognition model in step 1 is based on YoloV4. The second output feature layer of the backbone network CSPDarknet53-tiny is first pooled through the SPP structure before being sent to the improved feature enhancement network and fused with the first output feature layer. The scale of the first output feature layer is 38×38, and the scale of the second output feature layer is 19×19. The loss function of the target detection and recognition model is as follows: in, Where, L loc represents the bounding box positioning loss, IoU represents the intersection over union ratio between the predicted box and the real box, ρ 2 (B,B gt ) represents the square of the Euclidean distance between the center point of the predicted box and the true box, c is the diagonal distance of the smallest rectangular area that can contain the predicted box and the standard box, The difference between the predicted aspect ratio and the standard aspect ratio, β is a hyperparameter; Where, L cls Represents the prediction category loss. The feature map is divided into K×K grids. K×K represents the number of grids on the feature map, and the value is 19×19 or 38×38. If the j-th prior box of the i-th grid has an object that needs to be predicted, then Otherwise z represents a target category, and p i (z) represents the true probability and predicted probability of the object predicted by the i-th grid belonging to class z, and the true probability distribution before and after label smoothing It is expressed as: y represents the true category, and δ is a hyperparameter; Where, L conf Represents the prediction confidence loss, M represents the number of prior boxes, and C i , represents the true value and predicted value of the confidence. If the j-th prior box of the i-th grid does not have an object to be predicted, then Otherwise
