Rehabilitation robot training method based on image recognition

By using filter transformation modules and convolutional neural network blocks to process images in the training of rehabilitation robots for image recognition, the problem of image super-resolution tasks under limited computing resources is solved, and high-performance images under limited resources are achieved. processing, improving the effect and efficiency of rehabilitation training.

CN118587766AInactive Publication Date: 2024-09-03SHANDONG XIEHE UNIV

Patent Information

Application Number
CN202410730861.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When computing resources are limited, using the transformer model for image super-resolution tasks faces greater challenges, and it is difficult for existing technologies to obtain high-performance image super-resolution processing with limited resources and training data.

Method used

A rehabilitation robot training method based on image recognition is proposed, which uses multiple filter transformation modules and convolutional neural network blocks, combined with the characteristics of convolution and wavelet packet transformation, to process brightness, blue differential chroma and red differential chroma. Form an image super-resolution module to improve the details and color performance of images.

Benefits of technology

While requiring fewer resources and training data, the clarity and detail of the image are significantly improved, allowing the rehabilitation robot to more accurately capture and analyze subtle movement changes, provide more effective rehabilitation guidance and feedback, and improve the efficiency of rehabilitation training. Effectiveness and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587766A
    Figure CN118587766A
Patent Text Reader

Abstract

The invention provides a rehabilitation robot training method based on image recognition, and relates to the field of image super-resolution. The invention provides a rehabilitation robot training process which comprises the steps of constructing a filtering transformation module, constructing a brightness processing module, constructing a blue difference chrominance processing module, constructing a red difference chrominance processing module, constructing a super-resolution processing module, constructing an image super-resolution module and performing rehabilitation robot training. Meanwhile, an image super-resolution module is provided, so that the super-resolution image is remarkably improved in the aspects of details and color rendition, and a filtering transformation module obtains higher performance under the condition that fewer resources and training data are needed. The blue differential chroma processing module processes blue differential chroma by using the strong feature processing capability of the convolutional neural network, and the red differential chroma processing module processes red differential chroma by using the correlation of the self-attention block.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image super-resolution, and in particular relates to a rehabilitation robot training method based on image recognition. Background Art

[0002] In rehabilitation robot training based on image recognition, super-resolution processing of input images can significantly improve the clarity and detail of the image, which is crucial for accurately identifying the patient's rehabilitation movements. Super-resolution technology can improve the resolution of the image, enabling the rehabilitation robot to more accurately capture and analyze subtle movement changes, thereby providing more effective rehabilitation guidance and feedback, and further improving the effectiveness and efficiency of rehabilitation training.

[0003] In recent years, image super-resolution research has focused on the use of transformer models, which use self-attention mechanisms to capture long-range dependencies in images. However, the computational complexity of the self-attention mechanism is quadratic, which requires significantly more computational resources and memory for transformer models when processing high-resolution images. In contrast, although convolutional neural networks (CNNs) excel in capturing local features, their computational resource requirements are relatively low. Therefore, using transformer models for image super-resolution tasks faces great challenges when computational resources are limited. Summary of the invention

[0004] The present invention provides a rehabilitation robot training method based on image recognition, aiming to propose an image super-resolution module, wherein a brightness processing module uses a plurality of filter transformation modules, the filter transformation module utilizes the inductive bias of convolution and the lossless label mixing characteristics of wavelet packet transformation, and obtains higher performance while requiring fewer resources and training data, a blue differential chromaticity processing module utilizes the powerful feature processing capability of a convolutional neural network to process the blue differential chromaticity, a red differential chromaticity processing module utilizes the correlation of a self-attention block to process the red differential chromaticity, and a super-resolution processing module uses the brightness processing module, the blue differential chromaticity processing module and the red differential chromaticity processing module to perform three-channel separate enhancement on the original input image, so that the super-resolution image is significantly improved in terms of details and color restoration.

[0005] The present invention aims to propose an image super-resolution module and provide a rehabilitation robot training method based on image recognition, comprising the following steps: S1, build a filter transformation module, including 3×3 convolution, 2D wavelet packet transform, downsampling, MLP layer, transposed convolution and batch normalization; S2, build a brightness processing module, including 3×3 convolution, filter transformation module and upsampling; S3, build a blue differential chrominance processing module, including 3×3 convolution, convolutional neural network blocks and upsampling; S4, build a red differential chromaticity processing module, including 3×3 convolution, self-attention block and upsampling; S5, constructing a super-resolution processing module, including a brightness processing module, a blue differential chromaticity processing module and a red differential chromaticity processing module; S6, constructing an image super-resolution module, including a color space conversion and super-resolution processing module; S7. Rehabilitation robot training. Use a camera to collect rehabilitation images and videos of patients in different rehabilitation movements and postures. Extract frames from rehabilitation videos to obtain partial rehabilitation images. Annotate all rehabilitation images. Then perform data enhancement on all rehabilitation images. Use pre-trained ResNet as a rehabilitation movement recognition model. Divide the data after data enhancement into training set, validation set, and test set. During the training of the rehabilitation movement recognition model, all rehabilitation images are first input into the image super-resolution module in sequence to obtain super-resolution rehabilitation images. Then, the super-resolution rehabilitation images are input into the rehabilitation movement recognition model. The recognition results are the patient’s rehabilitation movements. Then, define the loss function and optimizer, monitor the training and verification process, evaluate the performance of the rehabilitation movement recognition model, and finally deploy the rehabilitation movement recognition model to the rehabilitation robot so that it can accurately recognize the patient’s rehabilitation movements.

[0006] Preferably, in step S1, for the filter transformation module, the input feature map X LBIn , X LBIn ∈R H×W×C , H, W and C represent the feature map X LBIn The height, width and channel of X LBIn Input to 3×3 convolution to get X LBC3 , X LBC3 ∈R H×W×(C / 4) , X LBC3 The number of channels drops to X LBIn 1 / 4 of the number of channels, X LBC3 Input to the two-dimensional wavelet packet transform, through low-pass and high-pass filtering in the horizontal and vertical directions, four frequency domain components LL, LH, HL and HH are generated. LL represents low frequency-low frequency, LH represents low frequency-high frequency, HL represents high frequency-low frequency, and HH represents high frequency-high frequency. Then, each frequency domain component is downsampled, and the dimension of each frequency domain component will change to (H / 2)×(W / 2)×(C / 4). The four frequency domain components are spliced ​​in the channel dimension to obtain X LB2W , X LB2W ∈R (H / 2)×(W / 2)×(4C / 4) , that is, X LB2W ∈R (H / 2)×(W / 2)×C , X LB2W Input to the MLP layer to get X LBMLP , X LBMLP ∈R(H / 2)×(W / 2)×C , the MLP layer is implemented by 1×1 convolution, which converts X LBMLP Input to the transposed convolution to get X LBTC , X LBTC ∈R H×W×C , X LBTC Input to batch normalization to get X LBBN , X LBBN ∈R H×W×C , X LBBN and X LBIn Add element by element to get the output X of the filter transformation module LBOut , X LBOut ∈R H×W×C , X LBOut and X LBIn The dimensions remain consistent.

[0007] Preferably, in step S2, for the brightness processing module, the feature map X is input YHIn , X YHIn ∈R H×W×1 , H, W and 1 represent the feature map X YHIn The height, width and channel of X YHIn Input to the first 3×3 convolution to get X YHC31 , X YHC31 ∈R H×W×1 , X YHC31 Input to two series-connected filter transformation modules to obtain X YHLB2 , X YHLB2 ∈R H×W×1 , X YHLB2 Input to upsample to get X YHUp , X YHUp ∈R 2H×2W×1 , X YHUp Input to the second 3×3 convolution to get X YHC32 , X YHC32 ∈R 2H×2W×1 , X YHC32 Input to the other two filter transformation modules connected in series to obtain X YHLB4 , X YHLB4 ∈R 2H×2W×1 , X YHLB4 Input to the third 3×3 convolution to get X YHOut , X YHOut ∈R 2H×2W×1 , X YHOut is the output of the brightness processing module.

[0008] Preferably, in step S3, for the blue differential chromaticity processing module, the feature map X is input BHIn , X BHIn ∈R H×W×1 , H, W and 1 represent the feature map XBHIn The height, width and channel of X BHIn Input to upsample to get X BHUp , X BHUp ∈R 2H×2W×1 , X BHUp Input to the first 3×3 convolution to get X BHC3 , X BHC3 ∈R 2H×2W×1 , X BHC3 Input to the convolutional neural network block to get X BHCB , X BHCB ∈R 2H×2W×1 , the convolutional neural network block consists of a convolutional layer, a batch normalization layer, an activation function, and a pooling layer. BHCB Input to the second 3×3 convolution to get X BHOut , X BHOut ∈R 2H×2W×1 , X BHOut is the output of the blue differential chrominance processing module.

[0009] Preferably, in step S4, for the red differential chromaticity processing module, the feature map X is input RHIn , X RHIn ∈R H×W×1 , H, W and 1 represent the feature map X RHIn The height, width and channel of X RHIn Input to upsample to get X RHUp , X RHUp ∈R 2H×2W×1 , X RHUp Input to the first 3×3 convolution to get X RHC3 , X RHC3 ∈R 2H×2W×1 , X RHC3 Input to the self-attention block to get X RHSA , X RHSA ∈R 2H×2W×1 , the self-attention block contains input embedding, self-attention mechanism and output transformation, which converts X RHSA Input to the second 3×3 convolution to get X RHOut , X RHOut ∈R 2H×2W×1 , X RHOut ∈R 2H×2W×1 is the output of the red differential chrominance processing module.

[0010] Preferably, in step S5, for the super-resolution processing module, an image X in YCbCr format is input. SRIn , X SRIn ∈R H×W×3 , H, W and 3 represent X SRIn The height, width and channel of X SRIn Split into XSRY , X SRB and X SRR Three parts, X SRY ∈R H×W×1 , X SRB ∈R H×W×1 , X SRR ∈R H×W×1 , X SRY Yes X SRIn Y channel, X SRB Yes X SRIn Cb channel, X SRR Yes X SRIn Cr channel, X SRY Input to the brightness processing module to get X SRY+ , X SRY+ ∈R 2H×2W×1 , X SRB Input to the blue differential chromaticity processing module to get X SRB+ , X SRB+ ∈R 2H×2W×1 , X SRR Input to the red differential chromaticity processing module to get X SRR +, X SRR+ ∈R 2H×2W×1 , X SRY+ , X SRB+ and X SRR+ Splicing is performed in the channel dimension to obtain the output X of the super-resolution processing module SROut , X SROut ∈R 2H ×2W×3 .

[0011] Preferably, in step S6, for the image super-resolution module, the input image X ISRIn , X ISRIn ∈R H×W×3 , X ISRIn Convert from RGB color space to YCbCr color space to get X ISRY , X ISRY ∈R H×W×3 , X ISRY Input to the super-resolution processing module to get X ISRY+ , X ISRY+ ∈R 2H×2W×3 , X ISRY+ Convert from YCbCr color space to RGB color space to get X ISROut , X ISROut ∈R 2H×2W×3 , X ISROut is the output of the image super-resolution module.

[0012] Compared with the prior art, the present invention has the following technical effects: The technical solution provided by the present invention proposes an image super-resolution module, wherein the brightness processing module uses multiple filter transformation modules, the filter transformation module utilizes the inductive bias of convolution and the lossless label mixing characteristics of wavelet packet transform, and obtains higher performance while requiring fewer resources and training data. The blue differential chromaticity processing module utilizes the powerful feature processing capability of the convolutional neural network to process the blue differential chromaticity, and the red differential chromaticity processing module utilizes the correlation of the self-attention block to process the red differential chromaticity. The super-resolution processing module uses the brightness processing module, the blue differential chromaticity processing module and the red differential chromaticity processing module to perform three-channel separate enhancement on the original input image, so that the super-resolution image is significantly improved in terms of details and color restoration. The image super-resolution module is applied to the rehabilitation robot training, and super-resolution processing of the input image can significantly improve the clarity and detail expression of the image, so that the rehabilitation robot can more accurately capture and analyze subtle movement changes, thereby providing more effective rehabilitation guidance and feedback, and further improving the effect and efficiency of rehabilitation training. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 The present invention provides a flow chart of the rehabilitation robot training.

[0014] Figure 2 It is a structural diagram of the filtering transformation module provided by the present invention.

[0015] Figure 3 It is a structural diagram of the brightness processing module provided by the present invention.

[0016] Figure 4 It is a structural diagram of the blue differential chromaticity processing module provided by the present invention.

[0017] Figure 5 It is a structural diagram of the red differential chromaticity processing module provided by the present invention. DETAILED DESCRIPTION

[0018] The present invention aims to propose a rehabilitation robot training method based on image recognition, and proposes an image super-resolution module, wherein a brightness processing module uses multiple filter transformation modules, the filter transformation module utilizes the inductive bias of convolution and the lossless label mixing characteristics of wavelet packet transform, and obtains higher performance while requiring fewer resources and training data, the blue difference chromaticity processing module utilizes the powerful feature processing capability of convolutional neural network to process the blue difference chromaticity, the red difference chromaticity processing module utilizes the correlation of self-attention block to process the red difference chromaticity, and the super-resolution processing module uses the brightness processing module, the blue difference chromaticity processing module and the red difference chromaticity processing module to perform three-channel separate enhancement on the original input image, so that the super-resolution image is significantly improved in terms of details and color restoration.

[0019] See also Figure 1 As shown, a rehabilitation robot training method based on image recognition in an embodiment of the present application: S1, build a filter transformation module, including 1 3×3 convolution, 1 2D wavelet packet transform, 4 downsampling, 1 MLP layer, 1 transposed convolution and 1 batch normalization; S2, build a brightness processing module, including three 3×3 convolutions, four filter transformation modules and one upsampling; S3, build a blue differential chromaticity processing module, including 2 3×3 convolutions, 1 convolutional neural network block and 1 upsampling; S4, build a red differential chromaticity processing module, including 2 3×3 convolutions, 1 self-attention block and 1 upsampling; S5, constructing a super-resolution processing module, including a brightness processing module, a blue differential chromaticity processing module and a red differential chromaticity processing module; S6, constructing an image super-resolution module, including two color space conversions and one super-resolution processing module; S7. Rehabilitation robot training. Use a camera to collect rehabilitation images and videos of patients in different rehabilitation movements and postures. Extract frames from rehabilitation videos to obtain partial rehabilitation images. Annotate all rehabilitation images. Then perform data enhancement on all rehabilitation images. Use pre-trained ResNet as a rehabilitation movement recognition model. Divide the data after data enhancement into training set, validation set, and test set. During the training of the rehabilitation movement recognition model, all rehabilitation images are first input into the image super-resolution module in sequence to obtain super-resolution rehabilitation images. Then, the super-resolution rehabilitation images are input into the rehabilitation movement recognition model. The recognition results are the patient’s rehabilitation movements. Then, define the loss function and optimizer, monitor the training and verification process, evaluate the performance of the rehabilitation movement recognition model, and finally deploy the rehabilitation movement recognition model to the rehabilitation robot so that it can accurately recognize the patient’s rehabilitation movements.

[0020] Further, in step S1, for the filter transformation module, its structure is as follows Figure 2 As shown, the input feature map X LBIn , X LBIn ∈R H×W×C , H, W and C represent the feature map X LBIn The height, width and channel of X LBIn Input to 3×3 convolution to get X LBC3 , X LBC3 ∈R H×W×(C / 4) , X LBC3 The number of channels drops to X LBIn 1 / 4 of the number of channels, X LBC3Input to the two-dimensional wavelet packet transform, through low-pass and high-pass filtering in the horizontal and vertical directions, four frequency domain components LL, LH, HL and HH are generated. LL represents low frequency-low frequency, LH represents low frequency-high frequency, HL represents high frequency-low frequency, and HH represents high frequency-high frequency. Then, each frequency domain component is downsampled, and the dimension of each frequency domain component will change to (H / 2)×(W / 2)×(C / 4). The four frequency domain components are spliced ​​in the channel dimension to obtain X LB2W , X LB2W ∈R (H / 2)×(W / 2)×(4C / 4) , that is, X LB2W ∈R (H / 2)×(W / 2)×C , X LB2W Input to the MLP layer to get X LBMLP , X LBMLP ∈R (H / 2)×(W / 2)×C , the MLP layer is implemented by 1×1 convolution, which converts X LBMLP Input to the transposed convolution to get X LBTC , X LBTC ∈R H ×W×C , X LBTC Input to batch normalization to get X LBBN , X LBBN ∈R H×W×C , X LBBN and X LBIn Perform element-by-element addition, element-by-element addition and Figure 2 In Correspondingly, the output X of the filter transformation module is obtained LBOut , X LBOut ∈R H×W×C , X LBOut and X LBIn The dimensions remain consistent.

[0021] Further, in step S2, for the brightness processing module, its structure is as follows Figure 3 As shown, the input feature map X YHIn , X YHIn ∈R H×W×1 , H, W and 1 represent the feature map X YHIn The height, width and channel of X YHIn Input to the first 3×3 convolution to get X YHC31 , X YHC31 ∈R H×W×1 , X YHC31 Input to two series-connected filter transformation modules to obtain X YHLB2 , X YHLB2 ∈R H×W×1 , X YHLB2 Input to upsample to get X YHUp , X YHUp ∈R 2H×2W×1 , XYHUp Input to the second 3×3 convolution to get X YHC32 , X YHC32 ∈R 2H ×2W×1 , X YHC32 Input to the other two filter transformation modules connected in series to obtain X YHLB4 , X YHLB4 ∈R 2H×2W×1 , X YHLB4 Input to the third 3×3 convolution to get X YHOut , X YHOut ∈R 2H×2W×1 , X YHOut is the output of the brightness processing module.

[0022] Further, in step S3, for the blue differential chromaticity processing module, its structure is as follows: Figure 4 As shown, the input feature map X BHIn , X BHIn ∈R H×W×1 , H, W and 1 represent the feature map X BHIn The height, width and channel of X BHIn Input to upsample to get X BHUp , X BHUp ∈R 2H×2W×1 , X BHUp Input to the first 3×3 convolution to get X BHC3 , X BHC3 ∈R 2H×2W×1 , X BHC3 Input to the convolution network block to get X BHCB , X BHCB ∈R 2H×2W×1 The convolutional network block consists of a convolutional layer, a batch normalization layer, an activation function, and a pooling layer. BHCB Input to the second 3×3 convolution to get X BHOut , X BHOut ∈R 2H×2W×1 , X BHOut is the output of the blue differential chrominance processing module.

[0023] Further, in step S4, for the red differential chromaticity processing module, its structure is as follows: Figure 5 As shown, the input feature map X RHIn , X RHIn ∈R H×W×1 , H, W and 1 represent the feature map X RHIn The height, width and channel of X RHIn Input to upsample to get X RHUp , X RHUp ∈R 2H×2W×1 , X RHUp Input to the first 3×3 convolution to get XRHC3 , X RHC3 ∈R 2H×2W×1 , X RHC3 Input to the self-attention block to get X RHSA , X RHSA ∈R 2H×2W×1 , the self-attention block contains input embedding, self-attention mechanism and output transformation, which converts X RHSA Input to the second 3×3 convolution to get X RHOut , X RHOut ∈R 2H×2W×1 , X RHOut ∈R 2H×2W×1 is the output of the red differential chrominance processing module.

[0024] Further, in step S5, for the super-resolution processing module, the image X in YCbCr format is input. SRIn , X SRIn ∈R 640×640×3 , 640, 640 and 3 represent X SRIn The height, width and channel of X SRIn Split into X SRY , X SRB and X SRR Three parts, X SRY ∈R 640×640×1 , X SRB ∈R 640×640×1 , X SRR ∈R 640×640×1 , X SRY Yes X SRIn Y channel, X SRB Yes X SRIn Cb channel, X SRR Yes X SRIn Cr channel, X SRY Input to the brightness processing module to get X SRY+ , X SRY+ ∈R 1280×1280×1 , X SRB Input to the blue differential chromaticity processing module to get X SRB+ , X SRB+ ∈R 1280×1280×1 , X SRR Input to the red differential chromaticity processing module to get X SRR+ , X SRR+ ∈R 1280×1280×1 , X SRY+ , X SRB+ and X SRR+ Splicing is performed in the channel dimension to obtain the output X of the super-resolution processing module SROut , X SROut ∈R 1280×1280×3 .

[0025] Further, in step S6, for the image super-resolution module, the input image X ISRIn , X ISRIn ∈R 640×640×3 , X ISRIn Convert from RGB color space to YCbCr color space to get X ISRY , X ISRY ∈R 640×640×3 , X ISRY Input to the super-resolution processing module to get X ISRY+ , X ISRY+ ∈R 1280×1280×3 , X ISRY+ Convert from YCbCr color space to RGB color space to get X ISROut , X ISROut ∈R 1280×1280×3 , X ISROut is the output of the image super-resolution module.

[0026] The above are only preferred embodiments of the present invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, and these all fall within the protection scope of the present invention.

Claims

1. A rehabilitation robot training method based on image recognition, characterized in that: The following steps are involved: S1, build a filter transformation module, including 3×3 convolution, 2D wavelet packet transform, downsampling, MLP layer, transposed convolution and batch normalization; S2, build a brightness processing module, including 3×3 convolution, filter transformation module and upsampling; S3, build a blue differential chrominance processing module, including 3×3 convolution, convolutional neural network blocks and upsampling; S4, build a red differential chromaticity processing module, including 3×3 convolution, self-attention block and upsampling; S5, constructing a super-resolution processing module, including a brightness processing module, a blue differential chromaticity processing module and a red differential chromaticity processing module; S6, constructing an image super-resolution module, including a color space conversion and super-resolution processing module; S7. Rehabilitation robot training. Use a camera to collect rehabilitation images and videos of patients in different rehabilitation movements and postures. Extract frames from rehabilitation videos to obtain partial rehabilitation images. Annotate all rehabilitation images. Then perform data enhancement on all rehabilitation images. Use pre-trained ResNet as a rehabilitation movement recognition model. Divide the data after data enhancement into training set, validation set, and test set. During the training of the rehabilitation movement recognition model, all rehabilitation images are first input into the image super-resolution module in sequence to obtain super-resolution rehabilitation images. Then, the super-resolution rehabilitation images are input into the rehabilitation movement recognition model. The recognition results are the patient’s rehabilitation movements. Then, define the loss function and optimizer, monitor the training and verification process, evaluate the performance of the rehabilitation movement recognition model, and finally deploy the rehabilitation movement recognition model to the rehabilitation robot so that it can accurately recognize the patient’s rehabilitation movements.

2. A rehabilitation robot training method based on image recognition according to claim 1, characterized in that: In step S1, for the filter transformation module, the input feature map X LBIn , X LBIn ∈R H×W×C , H, W and C represent the feature map X LBIn The height, width and channel of X LBIn Input to 3×3 convolution to get X LBC3 , X LBC3 ∈R H×W×(C / 4) , X LBC3 The number of channels drops to X LBIn 1 / 4 of the number of channels, X LBC3 Input to the two-dimensional wavelet packet transform, through low-pass and high-pass filtering in the horizontal and vertical directions, four frequency domain components LL, LH, HL and HH are generated. LL represents low frequency-low frequency, LH represents low frequency-high frequency, HL represents high frequency-low frequency, and HH represents high frequency-high frequency. Then, each frequency domain component is downsampled, and the dimension of each frequency domain component will change to (H / 2)×(W / 2)×(C / 4). The four frequency domain components are spliced ​​in the channel dimension to obtain X LB2W , X LB2W ∈R (H / 2)×(W / 2)×(4C / 4) , that is, X LB2W ∈R (H / 2)×(W / 2)×C , X LB2W Input to the MLP layer to get X LBMLP , X LBMLP ∈R (H / 2)×(W / 2)×C , the MLP layer is implemented by 1×1 convolution, which converts X LBMLP Input to the transposed convolution to get X LBTC , X LBTC ∈R H×W×C , X LBTC Input to batch normalization to get X LBBN , X LBBN ∈R H ×W×C , X LBBN and X LBIn Add element by element to get the output X of the filter transformation module LBOut , X LBOut ∈R H×W×C , X LBOut and X LBIn The dimensions remain consistent.

3. The rehabilitation robot training method based on image recognition according to claim 1, characterized in that: In step S2, for the brightness processing module, the input feature map X YHIn , X YHIn ∈R H×W×1 , H, W and 1 represent the feature map X YHIn The height, width and channel of X YHIn Input to the first 3×3 convolution to get X YHC31 , X YHC31 ∈R H×W×1 , X YHC31 Input to two series-connected filter transformation modules to obtain X YHLB2 , X YHLB2 ∈R H×W×1 , X YHLB2 Input to upsample to get X YHUp , X YHUp ∈R 2H×2W×1 , X YHUp Input to the second 3×3 convolution to get X YHC32 , X YHC32 ∈R 2H×2W×1 , X YHC32 Input to the other two filter transformation modules connected in series to obtain X YHLB4 , X YHLB4 ∈R 2H×2W×1 , X YHLB4 Input to the third 3×3 convolution to get X YHOut , X YHOut ∈R 2H ×2W×1 , X YHOut is the output of the brightness processing module.

4. The rehabilitation robot training method based on image recognition according to claim 1, characterized in that: In step S3, for the blue differential chromaticity processing module, the input feature map X BHIn , X BHIn ∈R H×W×1 , H, W and 1 represent the height, width and channel of the feature map XBHIn, BHIn Input to upsample to get X BHUp , X BHUp ∈R 2H×2W×1 , X BHUp Input to the first 3×3 convolution to get X BHC3 , X BHC3 ∈R 2H×2W×1 , X BHC3 Input to the convolutional neural network block to get X BHCB , X BHCB ∈R 2H×2W×1 , the convolutional neural network block consists of a convolutional layer, a batch normalization layer, an activation function, and a pooling layer. BHCB Input to the second 3×3 convolution to get X BHOut , X BHOut ∈R 2H×2W×1 , X BHOut is the output of the blue differential chrominance processing module.

5. The rehabilitation robot training method based on image recognition according to claim 1, characterized in that: In step S4, for the red differential chromaticity processing module, the input feature map X RHIn , X RHIn ∈R H×W×1 , H, W and 1 represent the feature map X RHI n's height, width, and channels, and X RHIn Input to upsample to get X RHUp , X RHUp ∈R 2H×2W×1 , X RHUp Input to the first 3×3 convolution to get X RHC3 , X RHC3 ∈R 2H×2W×1 , X RHC3 Input to the self-attention block to get X RHSA , X RHSA ∈R 2H×2W×1 , the self-attention block contains input embedding, self-attention mechanism and output transformation, which converts X RHSA Input to the second 3×3 convolution to get X RHOut , X RHOut ∈R 2H×2 W ×1 , X RHOut ∈R 2H×2 W ×1 is the output of the red differential chrominance processing module.

6. The rehabilitation robot training method based on image recognition according to claim 1, characterized in that: In step S5, for the super-resolution processing module, the image X in YCbCr format is input. SRIn , X SRIn ∈R H×W×3 , H, W and 3 represent X SRIn The height, width and channel of X SRIn Split into X SRY , X SRB and X SRR Three parts, X SRY ∈R H×W×1 , X SRB ∈R H×W×1 , X SRR ∈R H ×W×1 , X SRY Yes X SRIn Y channel, X SRB Yes X SRIn Cb channel, X SRR Yes X SRIn Cr channel, X SRY Input to the brightness processing module to get X SRY+ , X SRY+ ∈R 2H×2W×1 , X SRB Input to the blue differential chromaticity processing module to get X SRB+ , X SRB+ ∈R 2H×2W×1 , X SRR Input to the red differential chromaticity processing module to obtain X SRR+ , X SRR+ ∈R 2H×2W×1 , X SRY +, X SRB+ and X SRR+ Splicing is performed in the channel dimension to obtain the output X of the super-resolution processing module SROut , X SROut ∈R 2H×2W×3 .

7. The rehabilitation robot training method based on image recognition according to claim 1, characterized in that: In step S6, for the image super-resolution module, the input image X ISRIn , X ISRIn ∈R H×W×3 , X ISRIn Convert from RGB color space to YCbCr color space to get X ISRY , X ISRY ∈R H×W×3 , X ISRY Input to the super-resolution processing module to get X ISRY+ , X ISRY+ ∈R 2H×2W×3 , X ISRY+ Convert from YCbCr color space to RGB color space to get X ISROut , X ISROut ∈R 2H×2W×3 , X ISROut is the output of the image super-resolution module.

Citation Information

Patent Citations

  • Video image processing method and device, electronic equipment and storage medium

    CN114782250A

  • Airborne remote sensing image super-resolution reconstruction method based on multi-scale feature fusion

    CN115018708A

  • Image super-resolution method, device, system and medium

    CN117541475A

Cited By

  • JPEG (Joint Photographic Experts Group) image recompression and decompression model and method based on neural network

    CN119583815A