Three-dimensional biomedical video compression method, system and device and storage medium
Through the end-to-end optimization framework of the three-dimensional biomedical video compression method, combined with the entropy model to process the time and spatial dimensions, the problem of low efficiency of redundant information processing in the existing technology is solved, and more efficient three-dimensional biomedical video compression performance is achieved.
Patent Information
- Application Number
- CN202310299489.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-03-24
AI Technical Summary
Existing 3D biomedical video compression technology cannot effectively remove redundant information in the temporal and spatial dimensions, resulting in limited coding performance. In particular, methods based on wavelet transform and motion prediction have low efficiency when processing 3D biomedical videos. .
A three-dimensional biomedical video compression method is designed. Through the end-to-end joint optimization framework of the three-dimensional motion estimation network, the motion vector coding network, the three-dimensional motion compensation module and the residual coding network, different processing is performed for the time dimension and the spatial dimension, using The entropy model performs encoding and decoding to generate reconstructed frame images to reduce redundancy.
It significantly improves the compression performance of 3D biomedical videos, retains important information, and improves coding efficiency, which is better than traditional JP3D and MV-HEVC methods.
Smart Images

Figure CN118694971A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional biomedical video compression, and in particular to a three-dimensional biomedical video compression method, system, equipment and storage medium. Background Art
[0002] Biomedical videos describe the changes of three-dimensional biomedical images along the fourth dimension of time. The redundancy of the time dimension is usually higher than that of the spatial dimension. Among various biomedical videos, the most representative one is functional magnetic resonance imaging (fMRI), which is a powerful tool for measuring changes in neuronal activity caused by hemodynamics. In addition, biological videos can also be used to study the structural changes of organisms; for example, three-dimensional biological videos captured by optical microscopy imaging technology help observe activities such as cell division.
[0003] Captured 3D biomedical videos usually have hundreds of frames in the temporal dimension, which poses great challenges for storage and transmission. To address these challenges, effective biomedical video coding methods are urgently needed. These methods need to meet high bit rate lossy or even lossless coding to preserve all important information.
[0004] Currently, the following two types of technical solutions are mainly used:
[0005] 1. Three-dimensional video coding method based on wavelet transform.
[0006] Wavelet-based methods mainly borrow the idea of transform coding, aiming to transform the original information into another domain with more concentrated energy. Wavelet transform was chosen mainly because of its highly respected excellent decomposition ability and reversibility. For this reason, wavelet-based methods are also often used for 3D video coding with lossy and lossless coding. The most commonly used wavelet-based method is JP3D (3D image extension of JPEG-2000 standard), which is the 10th part of the famous JPEG-2000 (an image coding standard created and maintained by the JPEG organization). However, JP3D cannot remove redundant information in more than three dimensions, which limits its performance. In some recent works, 4D wavelet transform and its improved variants have been studied for 3D biomedical video coding. These methods usually treat 3D video as 4D image, that is, they do not distinguish between the time dimension and other spatial dimensions. Since the calculation process of time dimension and space dimension is the same, they cannot completely remove redundant spatiotemporal information and spatial dimension. However, it should be pointed out that the characteristics of time dimension are different from other dimensions. For example, the correlation of time dimension is usually greater than that of spatial dimension. Therefore, special treatment of the temporal dimension is required, such as estimating the motion between adjacent frames. In addition to these issues, similar to motion-based methods, these methods also hand-design the transformation and entropy modules independently instead of jointly optimizing them.
[0007] 2. Traditional motion-based 3D video coding method.
[0008] The core idea of motion-based methods is predictive coding, which focuses on modeling the motion vector (MV) between two frames by designing motion estimation (ME) and motion compensation (MC) modules. In previous works, some motion-based methods designed for 2D natural videos, such as Advanced Video Coding (AVC) and High Efficiency Video Coding (HEVC), were directly applied to 3D biomedical videos. However, these methods failed to exploit the correlation in the third dimension, i.e., the axial direction. Therefore, the coding performance of these methods is greatly limited. Different from these methods, the multi-view extension of HEVC (MV-HEVC) supports the simultaneous encoding of multiple 2D videos using inter-layer prediction. Therefore, MV-HEVC has the potential to exploit the correlation in all dimensions. However, there are still many problems with MV-HEVC for 3D biomedical video coding. First, the prediction, transform, and entropy coding modules are designed and optimized separately, resulting in poor performance. Second, the ME module of MV-HEVC is designed based on the motion in natural videos, such as rigid body motion. In contrast, the motion in biomedical videos is the irregular scaling of some biological tissues. The mismatch between the two types of motion leads to the inefficiency of the ME module. Third, in order to be compatible with the HEVC decoder, the multi-view information in MV-HEVC is only referenced in the prediction process. The transform and entropy coding modules will ignore this valuable information for further use, resulting in incomplete removal of redundant information. Summary of the invention
[0009] The purpose of the present invention is to provide a three-dimensional biomedical video compression method, system, device and storage medium, which can improve the three-dimensional biomedical video compression performance.
[0010] The objective of the present invention is achieved through the following technical solutions:
[0011] A three-dimensional biomedical video compression method, comprising:
[0012] The three-dimensional biomedical video is encoded frame by frame. When encoding the current frame image, motion estimation is performed using the current frame image and the reconstructed reference frame image corresponding to the previous frame through a three-dimensional motion estimation network to obtain a motion vector; the motion vector is encoded and decoded through a motion vector encoding network to obtain a reconstructed motion vector; motion compensation is performed using the reconstructed motion vector and the reference frame image corresponding to the previous frame through a three-dimensional motion compensation module to obtain a predicted frame image; the predicted frame image and the current frame image are combined to calculate the residual, and the residual is encoded and decoded through a residual encoding network to obtain a reconstructed residual; the reconstructed reference frame image corresponding to the current frame is generated using the reconstructed residual and the predicted frame image, and applied to the encoding of the next frame image; wherein an entropy model is provided in both the motion vector encoding network and the residual encoding network, and the three-dimensional motion estimation network, the motion vector encoding network, the three-dimensional motion compensation module and the residual encoding network are jointly optimized in an end-to-end manner.
[0013] A three-dimensional biomedical video compression system, comprising: a three-dimensional motion estimation network, a motion vector coding network, a three-dimensional motion compensation module, a residual coding network and a reference frame reconstruction module;
[0014] The three-dimensional biomedical video is encoded frame by frame by a three-dimensional biomedical video compression system. When the current frame image is encoded, the three-dimensional motion estimation network uses the current frame image and the reconstructed reference frame image corresponding to the previous frame to perform motion estimation to obtain a motion vector; the motion vector encoding network encodes and decodes the motion vector to obtain a reconstructed motion vector; the three-dimensional motion compensation network uses the reconstructed motion vector and the reference frame image corresponding to the previous frame to perform motion compensation to obtain a predicted frame image; the residual encoding network combines the predicted frame image with the current frame image to calculate the residual, and encodes and decodes the residual to obtain the reconstructed residual; the reference frame reconstruction module uses the reconstructed residual and the predicted frame image to generate a reconstructed reference frame image corresponding to the current frame, and applies it to the encoding of the next frame image; wherein, an entropy model is provided in the motion vector encoding network and the residual encoding network, and the three-dimensional motion estimation network, the motion vector encoding network, the three-dimensional motion compensation module and the residual encoding network are jointly optimized in an end-to-end manner.
[0015] A processing device, comprising: one or more processors; a memory for storing one or more programs;
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.
[0017] A readable storage medium stores a computer program, which implements the above method when the computer program is executed by a processor.
[0018] It can be seen from the technical solution provided by the present invention that a three-dimensional biomedical video compression framework is designed, which includes a three-dimensional motion estimation network, a motion vector coding network, a three-dimensional motion compensation module and a residual coding network. The framework can jointly optimize each part end-to-end, and different processing is performed on the time dimension and the spatial dimension. Through this framework, the three-dimensional biomedical video compression performance can be greatly improved, and important information in the three-dimensional biomedical video can be retained. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0020] Figure 1 A schematic diagram of a framework of a three-dimensional biomedical video compression method provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of a three-dimensional motion estimation network provided by an embodiment of the present invention;
[0022] Figure 3 A flowchart of Example 1 provided for an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of a motion vector coding network based on an autoencoder provided in an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of a residual coding network based on a learnable wavelet provided by an embodiment of the present invention;
[0025] Figure 6 A flowchart of Example 2 provided for an embodiment of the present invention;
[0026] Figure 7 A flowchart of Example 3 provided for an embodiment of the present invention;
[0027] Figure 8 A schematic diagram showing the beneficial effects of a three-dimensional biomedical video coding framework provided by an embodiment of the present invention;
[0028] Fig. 9 A schematic diagram of a three-dimensional biomedical video compression system provided by an embodiment of the present invention;
[0029] Fig.10 A schematic diagram of a processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings 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 protection scope of the present invention.
[0031] First, the terms that may be used in this article are explained as follows:
[0032] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.
[0033] The following is a detailed description of a three-dimensional biomedical video compression method provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professionals in the field. If no specific conditions are specified in the embodiments of the present invention, the conventional conditions in the field or the conditions recommended by the manufacturer shall be followed.
[0034] Embodiment 1
[0035] The embodiment of the present invention provides a three-dimensional biomedical video compression method, such as Figure 1 As shown, the overall framework of the method is that during the encoding process, the three-dimensional biomedical video is encoded frame by frame. When the current frame image is encoded, the motion estimation is performed using the current frame image and the reconstructed reference frame image corresponding to the previous frame through the three-dimensional motion estimation network to obtain the motion vector; the motion vector encoding network is used to encode and decode the motion vector to obtain the reconstructed motion vector; the three-dimensional motion compensation module is used to perform motion compensation using the reconstructed motion vector and the reference frame image corresponding to the previous frame to obtain the predicted frame image; the residual is calculated by combining the predicted frame image and the current frame image, and the residual is encoded and decoded through the residual encoding network to obtain the reconstructed residual; the reconstructed reference frame image corresponding to the current frame (the result of the current frame image encoding) is generated using the reconstructed residual and the predicted frame image, and is applied to the encoding of the next frame image. In the above encoding process, both the motion vector and the residual need to be encoded and transmitted to the relevant decoder for reconstruction. Among them, the motion vector encoding network and the residual encoding network are both provided with entropy models, and the three-dimensional motion estimation network, the motion vector encoding network, the three-dimensional motion compensation module and the residual encoding network are jointly optimized in an end-to-end manner.
[0036] In the embodiment of the present invention, it can be used for both lossy and lossless coding. Figure 1 Path 2 in the figure is used for lossless coding, and path 1 is used for lossy coding. Specifically, for lossy coding, the result of motion compensation is the predicted frame image, and the residual is obtained by subtracting the predicted frame image from the current frame image. For lossless coding, the result of motion compensation is rounded to an integer to obtain the predicted frame image, mainly because lossless coding of floating-point numbers consumes a large number of bits.
[0037] In an embodiment of the present invention, the three-dimensional biomedical video includes four dimensions, namely: the time dimension t and the spatial dimensions x, y, and z. In MV-HEVC, a two-dimensional video along the z dimension of a three-dimensional video is called a view, and videos of different z dimensions constitute multi-view information. There is a lot of redundancy between these views, but MV-HEVC has not designed effective technology to remove this redundant information during the transformation and entropy coding process. In an embodiment of the present invention, a three-dimensional motion estimation network, a motion vector coding network, a three-dimensional motion compensation module, and a residual coding network form a three-dimensional biomedical video compression framework. The residual coding network and the entropy model are both three-dimensional, thereby removing redundancy between views, and the entire framework can be jointly optimized end-to-end.
[0038] In order to more clearly demonstrate the technical solution and technical effects provided by the present invention, the following is a specific embodiment of the present invention. Figure 1 Each part of the framework is described in detail.
[0039] 1. 3D motion estimation network.
[0040] In the embodiment of the present invention, the three-dimensional motion estimation network is mainly responsible for performing motion estimation using the current frame image and the reconstructed reference frame image corresponding to the previous frame to obtain a motion vector.
[0041] It is observed that only some areas in a 3D video move dramatically over time, while other areas contain a lot of imaging noise and are mostly static. 3D biomedical videos have common features, such as noticeable motion of small areas over time and large background noise. Therefore, performing motion estimation on the entire frame is complex and inefficient. In an embodiment of the present invention, a simple and efficient 3D motion estimation network is proposed based on these observations. First, the strongest motion area in the 3D video is predicted by a segmentation network. Second, the motion vector between frames of the predicted area is obtained using an unsupervised ME network.
[0042] like Figure 2 As shown, the 3D motion estimation network provided by the embodiment of the present invention includes a segmentation network and an unsupervised motion estimation network.
[0043] 1. Segment the network.
[0044] In the embodiment of the present invention, the input of the segmentation network is the current frame image, and the foreground area of the current frame is segmented out by the segmentation network.
[0045] For example, the segmentation network can adopt a three-dimensional U-Net structure. Figure 2 The upper part shows the relevant structure. The 3D U-Net consists of multiple 3D convolutional layers, maximum pooling layers, trilinear upsampling layers, and multiple skip connections. Specifically, Figure 2 Among the 21 boxes in the upper part: the 3rd, 6th and 9th represent maximum pooling layers, the 12th, 15th and 18th represent trilinear upsampling layers, and the rest represent 3D convolutional layers. The dotted arrows represent skip connections.
[0046] 2. Unsupervised motion estimation network.
[0047] In an embodiment of the present invention, the foreground area of the current frame, the current frame image and the reconstructed reference frame image corresponding to the previous frame are input into the unsupervised motion estimation network, the current frame image and the reconstructed reference frame image corresponding to the previous frame are merged and multiplied with the foreground area of the current frame to obtain the area where the motion vector needs to be predicted, and the area where the motion vector needs to be predicted is predicted to obtain the motion vector.
[0048] Figure 2 The lower part exemplarily shows the structure of the unsupervised motion estimation network, which includes multiple 3D convolutional layers and multiple trilinear upsampling layers, wherein a number of sequentially connected 3D convolutional layers are first set, and then a number of 3D linear upsampling layers and 3D convolutional layers are alternately set, and the output part of each 3D convolutional layer is provided with a leakyrelu layer as a nonlinear activation function; specifically, Figure 2 The dotted boxes in the lower part represent the 3D convolution layer + leakyrelu layer, and the solid boxes represent the trilinear upsampling layer.
[0049] In order to facilitate training, a large number of jump connections are added to the 3D motion estimation network ( Figure 2 ).
[0050] 2. Motion vector coding network.
[0051] In an embodiment of the present invention, a motion vector coding network based on an autoencoder is used to encode and decode a motion vector. The motion vector coding network based on an autoencoder includes: a motion vector coding forward transform network, a first quantization module, a first entropy model, a first arithmetic encoder, a first arithmetic decoder, a first inverse quantization module and a motion vector coding inverse transform network.
[0052] Among them, the motion vector is forward transformed through the motion vector coding forward transform network, and then quantized through the first quantization module to obtain quantization features, and the probability parameters of the quantization features are calculated through the first entropy model, which are called first probability parameters; the quantization features are arithmetically encoded by the first arithmetic encoder in combination with the first probability parameters to obtain a first encoded code stream; the first encoded code stream is arithmetically decoded by the first arithmetic decoder in combination with the first probability parameters to obtain quantization features, dequantized by the first dequantization module, and then de-transformed through the motion vector coding inverse transform network to obtain a reconstructed motion vector.
[0053] 3. Three-dimensional motion compensation network.
[0054] In the embodiment of the present invention, the input of the three-dimensional motion compensation network is the reference frame image corresponding to the previous frame of the reconstructed motion vector.
[0055] When lossy coding is used, the reference frame image corresponding to the previous frame is warped using the reconstructed motion vector to obtain a predicted frame image; when lossless coding is used, the reference frame image corresponding to the previous frame is warped using the reconstructed motion vector and then rounded to obtain a predicted frame image.
[0056] Those skilled in the art can understand that the warp operation refers to: transforming an image to the perspective of another image, or moving an image to a target position according to a relative motion.
[0057] 4. Residual coding network.
[0058] In an embodiment of the present invention, a residual coding network is used to encode and decode the residual; wherein the residual is obtained by subtracting the current frame image from the predicted frame image.
[0059] In an embodiment of the present invention, the residual coding network includes: a residual coding forward transform network, a second quantization module, a second entropy model, a second arithmetic encoder, a second arithmetic decoder, a second inverse quantization module and a residual coding inverse transform network.
[0060] When lossless coding is used, the residual is forward transformed through the residual coding forward transform network to obtain residual features, and the probability parameters of the residual features are calculated through the second entropy model, which are called second probability parameters; the residual features are arithmetically encoded through the second arithmetic encoder in combination with the second probability parameters to obtain a second encoded code stream; the second encoded code stream is arithmetically decoded through the second arithmetic decoder in combination with the second probability parameters to obtain residual features, and then inversely transformed through the residual coding inverse transform network to obtain a reconstructed residual.
[0061] When lossy coding is used, the residual is forward transformed through the residual coding forward transform network, and quantized through the second quantization module to obtain quantized residual features, and the probability parameters of the quantized residual features are calculated through the second entropy model, which are called third probability parameters; the quantized residual features are arithmetically encoded by the second arithmetic encoder in combination with the third probability parameters to obtain a third encoded code stream; the third encoded code stream is arithmetically decoded by the second arithmetic decoder in combination with the third probability parameters to obtain quantized residual features, which are dequantized through the second dequantization module, and then detransformed through the residual coding inverse transform network to obtain a reconstructed residual.
[0062] In the embodiment of the present invention, the residual coding network may use an end-to-end learnable wavelet solution.
[0063] To facilitate understanding, three examples are given below.
[0064] Example 1
[0065] Figure 3 The flowchart of Example 1 uses a three-dimensional motion estimation network, a motion vector coding network based on an autoencoder, and a residual coding network based on a learnable wavelet.
[0066] The input is the current frame image and the reconstructed reference frame image, and the output is the reconstructed frame image. The 3D biomedical video is encoded frame by frame. Specifically:
[0067] 1) The current frame image and the reconstructed reference frame image are fed into a 3D motion estimation network to obtain motion vectors. The motion vectors need to be compressed and transmitted to the decoder for reconstruction.
[0068] Figure 4 A schematic diagram of a motion vector coding network based on an autoencoder is provided. The motion vector coding forward transform network includes a plurality of convolutional layers (Conv) arranged in sequence, and the output parts of the first to the second to last convolutional layers are all provided with a Relu activation function; the motion vector coding inverse transform network includes a plurality of deconvolutional layers (Deconv) arranged in sequence, and the output parts of the second to the last deconvolutional layers are all provided with a Relu activation function. The relevant processes in the motion vector coding network based on the autoencoder have been described in detail before, so they will not be repeated here.
[0069] 2) The motion compensation module uses the reconstructed motion vector to perform a warp operation on the reference frame. For lossy coding, the output of the motion compensation module is the predicted frame, and the residual is obtained by subtracting the predicted frame from the current frame. For lossless coding, the result of the warp operation needs to be rounded before the predicted frame can be obtained.
[0070] 3) Subtract the current frame from the predicted frame to obtain the residual. After obtaining the residual, the residual codec network implements the encoding and decoding operation of the residual.
[0071] In this example, the residual codec network uses a residual coding network based on learnable packets, such as Figure 5 As shown. The relevant processes in the residual coding network have been introduced in detail before. The main difference is that the residual coding forward transform network and the residual coding inverse transform network in the residual coding network based on the learnable wavelet when the learnable wavelet solution is adopted correspond to the learnable wavelet forward transform and the learnable wavelet inverse transform. The rest of the parts are the same, so they will not be repeated here. Figure 5 In the example, path 1 is used for lossy coding and path 2 is used for lossless coding. In lossy coding, the learnable inverse wavelet transform result also needs to be input into the post-processing module, which is composed of multiple layers of convolution to compensate for quantization loss.
[0072] 4) Finally, the reconstructed residual is added to the predicted frame to obtain the reconstructed frame.
[0073] In the above whole process, the motion vector and residual need to be encoded and transmitted to the decoder for reconstruction.
[0074] Example 2
[0075] Figure 6 This is a flowchart of Example 2. Different from Example 1, the motion vector coding and residual coding used in Example 2 both use corresponding modules in traditional coding (such as HEVC). The rest of the process is consistent with that in Example 1.
[0076] Example 3
[0077] Figure 7 This is the flowchart of Example 2. Unlike Example 1, Example 3 uses a traditional motion estimation network, and the rest of the process is consistent with that of Example 1.
[0078] In order to illustrate the effect of the above scheme of the present invention, relevant experiments were carried out.
[0079] 1. Beneficial effects of a three-dimensional biomedical video coding framework.
[0080] On typical 3D biomedical video datasets, including the ACDC dataset and the Fluo dataset, the experimental results are as follows: Figure 8As shown, Bit per pixel (BPP) represents pixel depth, and PSNR represents peak signal-to-noise ratio; ours and ours_fine represent the solutions of the present invention, except that ours_fine performs additional multi-frame return fine-tuning operations during training; aiWave is a three-dimensional image coding method (D.Xue, H.Ma, L.Li, D.Liu, and Z.Xiong, "aiWave: VolumetricImageCompression with 3-D Trained Affine Wavelet-like Transform," arXiv preprint arXiv:2203.05822, 2022); MV-HEVC and HEVC are traditional motion-based three-dimensional video coding methods mentioned in the background technology part, and JP3D is a method based on wavelet transform. In three-dimensional video coding, {x, y, z} or {x, y, t} can be selected to make a two-dimensional video for encoding, and -xyz and -zyt are used to mark the corresponding curves, where xyz refers to the three spatial dimensions of the three-dimensional video, and xyt refers to the two spatial dimensions and time dimension of the three-dimensional video. It can be seen from the curves corresponding to the experimental results of each solution that the present invention achieves the highest performance, that is, better reconstruction quality is achieved at the same bit rate, or in other words, more bit rate is saved at the same reconstruction quality.
[0081] 2. The beneficial effects of the 3D motion estimation network.
[0082] Table 1 shows the warp PSNR under different settings of the 3D motion estimation network. The warp PSNR is defined as the PSNR (peak signal-to-noise ratio) between the predicted frame and the current frame. From Table 1, it can be seen that when the segmentation network is removed (i.e., the last 5 rows marked with the symbol “×” in the Segmentation section), the warp PSNR drops significantly. The experimental results show that due to the irregular motion and severe background noise in biomedical videos, it is difficult to accurately estimate the motion vector for full-frame 3D motion estimation. The experiment also tried to increase the number of channels in the unsupervised motion estimation network. The warp PSNR gradually increases, but there is still a large gap with the performance using the segmentation network. The experimental results demonstrate the effectiveness of the proposed 3D motion estimation network.
[0083] Table 1: Results of 3D motion estimation network
[0084]
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0086] Embodiment 2
[0087] The present invention also provides a three-dimensional biomedical video compression system, which is mainly implemented based on the method provided in the above embodiment, such as Fig. 9 As shown, the system mainly includes: a 3D motion estimation network, a motion vector coding network, a 3D motion compensation module, a residual coding network and a reference frame reconstruction module;
[0088] The three-dimensional biomedical video is encoded frame by frame by a three-dimensional biomedical video compression system. When the current frame image is encoded, the three-dimensional motion estimation network uses the current frame image and the reconstructed reference frame image corresponding to the previous frame to perform motion estimation to obtain a motion vector; the motion vector encoding network encodes and decodes the motion vector to obtain a reconstructed motion vector; the three-dimensional motion compensation network uses the reconstructed motion vector and the reference frame image corresponding to the previous frame to perform motion compensation to obtain a predicted frame image; the residual encoding network combines the predicted frame image with the current frame image to calculate the residual, and encodes and decodes the residual to obtain the reconstructed residual; the reference frame reconstruction module uses the reconstructed residual and the predicted frame image to generate a reconstructed reference frame image corresponding to the current frame, and applies it to the encoding of the next frame image; wherein, an entropy model is provided in the motion vector encoding network and the residual encoding network, and the three-dimensional motion estimation network, the motion vector encoding network, the three-dimensional motion compensation module and the residual encoding network are jointly optimized in an end-to-end manner.
[0089] In the embodiment of the present invention, the three-dimensional motion estimation network includes: a segmentation network and an unsupervised motion estimation network
[0090] The input of the segmentation network is the current frame image, and a segmentation result is generated by the segmentation network; the segmentation result, the current frame image and the reconstructed reference frame image corresponding to the previous frame are input to the unsupervised motion estimation network, the current frame image and the reconstructed reference frame image corresponding to the previous frame are merged and multiplied with the segmentation result, the area where the motion vector needs to be predicted in the current frame image and the reconstructed reference frame image corresponding to the previous frame is segmented, the area where the motion vector needs to be predicted is predicted, and the motion vector is obtained.
[0091] In the embodiment of the present invention, the motion vector coding network is a motion vector coding network based on an autoencoder;
[0092] The motion vector coding network based on the autoencoder includes: a motion vector coding forward transform network, a first quantization module, a first entropy model, a first arithmetic encoder, a first arithmetic decoder, a first inverse quantization module and a motion vector coding inverse transform network;
[0093] Among them, the motion vector is forward transformed through the motion vector coding forward transform network, and then quantized through the first quantization module to obtain quantization features, and the probability parameters of the quantization features are calculated through the first entropy model, which are called first probability parameters; the quantization features are arithmetically encoded by the first arithmetic encoder in combination with the first probability parameters to obtain a first encoded code stream; the first encoded code stream is arithmetically decoded by the first arithmetic decoder in combination with the first probability parameters to obtain quantization features, dequantized by the first dequantization module, and then de-transformed through the motion vector coding inverse transform network to obtain a reconstructed motion vector.
[0094] In the embodiment of the present invention, the residual coding network includes: a residual coding forward transform network, a second quantization module, a second entropy model, a second arithmetic encoder, a second arithmetic decoder, a second inverse quantization module and a residual coding inverse transform network;
[0095] When lossless coding is used, the residual is forward transformed through the residual coding forward transform network to obtain residual features, and the probability parameters of the residual features are calculated through the second entropy model, which are called second probability parameters; the residual features are arithmetically encoded through the second arithmetic encoder in combination with the second probability parameters to obtain a second encoded code stream; the second encoded code stream is arithmetically decoded through the second arithmetic decoder in combination with the second probability parameters to obtain residual features, and then inversely transformed through the residual coding inverse transform network to obtain a reconstructed residual.
[0096] When lossless coding is used, the residual is forward transformed through the residual coding forward transform network, and quantized through the second quantization module to obtain quantized residual features, and the probability parameters of the quantized residual features are calculated through the second entropy model, which are called third probability parameters; the quantized residual features are arithmetically encoded by the second arithmetic encoder in combination with the third probability parameters to obtain a third encoded code stream; the third encoded code stream is arithmetically decoded by the second arithmetic decoder in combination with the third probability parameters to obtain quantized residual features, which are dequantized through the second dequantization module, and then detransformed through the residual coding inverse transform network to obtain a reconstructed residual.
[0097] Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above.
[0098] Embodiment 3
[0099] The present invention also provides a processing device, such as Fig.10 As shown, it mainly includes: one or more processors; a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the methods provided in the aforementioned embodiments.
[0100] Furthermore, the processing device also includes at least one input device and at least one output device; in the processing device, the processor, memory, input device, and output device are connected via a bus.
[0101] In the embodiment of the present invention, the specific types of the memory, input device and output device are not limited; for example:
[0102] The input device may be a touch screen, an image acquisition device, a physical button or a mouse, etc.;
[0103] The output device may be a display terminal;
[0104] The memory may be a random access memory (RAM) or a non-volatile memory, such as a disk memory.
[0105] Embodiment 4
[0106] The present invention also provides a readable storage medium storing a computer program, which implements the method provided in the above embodiment when the computer program is executed by a processor.
[0107] In the embodiment of the present invention, the readable storage medium is a computer-readable storage medium and can be set in the aforementioned processing device, for example, as a memory in the processing device. In addition, the readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk, etc., which can store program codes.
[0108] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A three-dimensional biomedical video compression method, characterized in that: include: The three-dimensional biomedical video is encoded frame by frame. When encoding the current frame image, motion estimation is performed using the current frame image and the reconstructed reference frame image corresponding to the previous frame through a three-dimensional motion estimation network to obtain a motion vector; the motion vector is encoded and decoded through a motion vector encoding network to obtain a reconstructed motion vector; motion compensation is performed using the reconstructed motion vector and the reference frame image corresponding to the previous frame through a three-dimensional motion compensation module to obtain a predicted frame image; the predicted frame image and the current frame image are combined to calculate the residual, and the residual is encoded and decoded through a residual encoding network to obtain a reconstructed residual; the reconstructed reference frame image corresponding to the current frame is generated using the reconstructed residual and the predicted frame image, and applied to the encoding of the next frame image; wherein an entropy model is provided in both the motion vector encoding network and the residual encoding network, and the three-dimensional motion estimation network, the motion vector encoding network, the three-dimensional motion compensation module and the residual encoding network are jointly optimized in an end-to-end manner.
2. A three-dimensional biomedical video compression method according to claim 1, characterized in that: The step of performing motion estimation using the current frame image and the reconstructed reference frame image corresponding to the previous frame through the three-dimensional motion estimation network to obtain the motion vector includes: A three-dimensional motion estimation network including a segmentation network and an unsupervised motion estimation network is used for motion estimation; the input of the segmentation network is the current frame image, and the foreground area of the current frame is segmented out by the segmentation network; the foreground area of the current frame, the current frame image and the reconstructed reference frame image corresponding to the previous frame are input to the unsupervised motion estimation network, the current frame image and the reconstructed reference frame image corresponding to the previous frame are merged and multiplied with the foreground area of the current frame to obtain the area where the motion vector needs to be predicted, and the area where the motion vector needs to be predicted is predicted to obtain the motion vector.
3. A three-dimensional biomedical video compression method according to claim 1, characterized in that: The encoding and decoding of the motion vector by a motion vector coding network to obtain a reconstructed motion vector comprises: A motion vector coding network based on an autoencoder is used to encode and decode the motion vector; the motion vector coding network based on the autoencoder comprises: a motion vector coding forward transform network, a first quantization module, a first entropy model, a first arithmetic encoder, a first arithmetic decoder, a first inverse quantization module and a motion vector coding inverse transform network; Among them, the motion vector is forward transformed through the motion vector coding forward transform network, and then quantized through the first quantization module to obtain quantization features, and the probability parameters of the quantization features are calculated through the first entropy model, which are called first probability parameters; the quantization features are arithmetically encoded by the first arithmetic encoder in combination with the first probability parameters to obtain a first encoded code stream; the first encoded code stream is arithmetically decoded by the first arithmetic decoder in combination with the first probability parameters to obtain quantization features, dequantized by the first dequantization module, and then de-transformed through the motion vector coding inverse transform network to obtain a reconstructed motion vector.
4. A three-dimensional biomedical video compression method according to claim 1, characterized in that: The calculating of the residual by combining the predicted frame image with the current frame image, and encoding and decoding the residual by a residual coding network to obtain a reconstructed residual comprises: Subtracting the current frame image from the predicted frame image to obtain a residual, and using a residual coding network to encode and decode the residual; the residual coding network includes: a residual coding forward transform network, a second quantization module, a second entropy model, a second arithmetic encoder, a second arithmetic decoder, a second inverse quantization module and a residual coding inverse transform network; When lossless coding is used, the residual is forward transformed through the residual coding forward transform network to obtain residual features, and the probability parameters of the residual features are calculated through the second entropy model, which are called second probability parameters; the residual features are arithmetically encoded through the second arithmetic encoder in combination with the second probability parameters to obtain a second encoded code stream; the second encoded code stream is arithmetically decoded through the second arithmetic decoder in combination with the second probability parameters to obtain residual features, and then inversely transformed through the residual coding inverse transform network to obtain a reconstructed residual. When lossless coding is used, the residual is forward transformed through the residual coding forward transform network, and quantized through the second quantization module to obtain quantized residual features, and the probability parameters of the quantized residual features are calculated through the second entropy model, which are called third probability parameters; the quantized residual features are arithmetically encoded by the second arithmetic encoder in combination with the third probability parameters to obtain a third encoded code stream; the third encoded code stream is arithmetically decoded by the second arithmetic decoder in combination with the third probability parameters to obtain quantized residual features, which are dequantized through the second dequantization module, and then detransformed through the residual coding inverse transform network to obtain a reconstructed residual.
5. A three-dimensional biomedical video compression system, characterized in that: Including: 3D motion estimation network, motion vector coding network, 3D motion compensation module, residual coding network and reference frame reconstruction module; The three-dimensional biomedical video is encoded frame by frame by a three-dimensional biomedical video compression system. When the current frame image is encoded, the three-dimensional motion estimation network uses the current frame image and the reconstructed reference frame image corresponding to the previous frame to perform motion estimation to obtain a motion vector; the motion vector encoding network encodes and decodes the motion vector to obtain a reconstructed motion vector; the three-dimensional motion compensation network uses the reconstructed motion vector and the reference frame image corresponding to the previous frame to perform motion compensation to obtain a predicted frame image; the residual encoding network combines the predicted frame image with the current frame image to calculate the residual, and encodes and decodes the residual to obtain the reconstructed residual; the reference frame reconstruction module uses the reconstructed residual and the predicted frame image to generate a reconstructed reference frame image corresponding to the current frame, and applies it to the encoding of the next frame image; wherein, an entropy model is provided in the motion vector encoding network and the residual encoding network, and the three-dimensional motion estimation network, the motion vector encoding network, the three-dimensional motion compensation module and the residual encoding network are jointly optimized in an end-to-end manner.
6. A three-dimensional biomedical video compression system according to claim 5, characterized in that: The three-dimensional motion estimation network includes: a segmentation network and an unsupervised motion estimation network The input of the segmentation network is the current frame image, and a segmentation result is generated by the segmentation network; the segmentation result, the current frame image and the reconstructed reference frame image corresponding to the previous frame are input to the unsupervised motion estimation network, the current frame image and the reconstructed reference frame image corresponding to the previous frame are merged and multiplied with the segmentation result, the area where the motion vector needs to be predicted in the current frame image and the reconstructed reference frame image corresponding to the previous frame is segmented, the area where the motion vector needs to be predicted is predicted, and the motion vector is obtained.
7. A three-dimensional biomedical video compression system according to claim 5, characterized in that: The motion vector coding network is a motion vector coding network based on an autoencoder; The motion vector coding network based on the autoencoder includes: a motion vector coding forward transform network, a first quantization module, a first entropy model, a first arithmetic encoder, a first arithmetic decoder, a first inverse quantization module and a motion vector coding inverse transform network; Among them, the motion vector is forward transformed through the motion vector coding forward transform network, and then quantized through the first quantization module to obtain quantization features, and the probability parameters of the quantization features are calculated through the first entropy model, which are called first probability parameters; the quantization features are arithmetically encoded by the first arithmetic encoder in combination with the first probability parameters to obtain a first encoded code stream; the first encoded code stream is arithmetically decoded by the first arithmetic decoder in combination with the first probability parameters to obtain quantization features, dequantized by the first dequantization module, and then de-transformed through the motion vector coding inverse transform network to obtain a reconstructed motion vector.
8. A three-dimensional biomedical video compression system according to claim 5, characterized in that: The residual coding network includes: a residual coding forward transform network, a second quantization module, a second entropy model, a second arithmetic encoder, a second arithmetic decoder, a second inverse quantization module and a residual coding inverse transform network; When lossless coding is used, the residual is forward transformed through the residual coding forward transform network to obtain residual features, and the probability parameters of the residual features are calculated through the second entropy model, which are called second probability parameters; the residual features are arithmetically encoded through the second arithmetic encoder in combination with the second probability parameters to obtain a second encoded code stream; the second encoded code stream is arithmetically decoded through the second arithmetic decoder in combination with the second probability parameters to obtain residual features, and then inversely transformed through the residual coding inverse transform network to obtain a reconstructed residual. When lossless coding is used, the residual is forward transformed through the residual coding forward transform network, and quantized through the second quantization module to obtain quantized residual features, and the probability parameters of the quantized residual features are calculated through the second entropy model, which are called third probability parameters; the quantized residual features are arithmetically encoded by the second arithmetic encoder in combination with the third probability parameters to obtain a third encoded code stream; the third encoded code stream is arithmetically decoded by the second arithmetic decoder in combination with the third probability parameters to obtain quantized residual features, which are dequantized through the second dequantization module, and then detransformed through the residual coding inverse transform network to obtain a reconstructed residual.
9. A processing device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Image compression neural network model based on deep learning, and method and device thereof
CN113141506A
End-to-end video compression coding method
CN114040207A
End-to-end video compression method and device and computer readable storage medium
CN114513670A
End-to-end intelligent video coding method and device
CN115278262A
System and Method for Adaptive Video Compression Motion Compensation
US20090080525A1
