Postoperative rehabilitation effect monitoring system based on image enhancement
By setting thresholds and information entropy to filter pixels, improve color balance, and combine multi-layer feature extraction and dual clustering technology, the problem of image noise interference and segmentation accuracy in the postoperative rehabilitation effect monitoring system is solved, and more realistic images are achieved. processing and more efficient monitoring of postoperative rehabilitation outcomes.
Patent Information
- Application Number
- CN202411057296.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-02
AI Technical Summary
In the existing postoperative rehabilitation effect monitoring system, there is a lot of noise interference in the original image, the visual effect is unnatural when the image is enhanced, color correction and noise filtering cannot be accurately performed, and the image segmentation accuracy is poor and the robustness is low.
Secondary screening of pixels by setting thresholds to improve white point detection accuracy, local processing and improvement of color balance, introduction of information entropy to improve image quality assessment; multi-layer feature extraction and dual clustering, combined with edge perception and super-pixel technology, Perform wound region segmentation and improve the accuracy and consistency of segmentation results through label fusion and loss design.
It achieves a more realistic and uniform color of the image, avoids excessive or insufficient processing, improves the accuracy and robustness of postoperative wound image segmentation, and enhances the efficiency, accuracy and robustness of postoperative rehabilitation effect monitoring. .
Smart Images

Figure CN118570099B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of postoperative rehabilitation detection, and in particular to a postoperative rehabilitation effect monitoring system based on image enhancement. Background Art
[0002] The postoperative rehabilitation effect monitoring system is a medical system used to track and evaluate the patient's postoperative rehabilitation progress. The main purpose of this type of system is to help medical professionals monitor the recovery of postoperative wounds in real time through image data, sensor data and other related information, so as to optimize treatment and rehabilitation plans. However, the general postoperative rehabilitation effect monitoring system has a lot of noise interference in the original image, the visual effect is unnatural when the image is enhanced for the postoperative wound image, and the color correction and noise filtering cannot be accurately performed; the general postoperative rehabilitation effect monitoring system has the problem of being unable to effectively process the image data in the postoperative rehabilitation effect monitoring, and the accuracy and robustness are poor when the postoperative wound image is segmented. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a postoperative rehabilitation effect monitoring system based on image enhancement. In view of the problems that the original image of the general postoperative rehabilitation effect monitoring system has a lot of noise interference, the visual effect is unnatural when the image is enhanced for the postoperative wound image, and the color correction and noise filtering cannot be accurately performed, the present invention sets a threshold to perform secondary pixel screening, which helps to focus on the wound area; improves the accuracy of white point detection by adding a control threshold, and reduces artifacts caused by uneven brightness or other factors; effectively corrects color deviation by local processing and improving color balance, so that the color of the image is more realistic and uniform; introduces information entropy to improve Image quality assessment can be performed to objectively measure the clarity and information content of the image, avoiding excessive or insufficient processing of postoperative wound images. In view of the fact that general postoperative rehabilitation effect monitoring systems are unable to effectively process image data in postoperative rehabilitation effect monitoring, and have poor accuracy and low robustness in postoperative wound image segmentation, this solution can accurately segment the wound area and optimize the details through multi-layer feature extraction and dual clustering. Edge perception and superpixel technology improve the robustness of segmentation and can handle complex wound boundaries. Label fusion and loss design make the final segmentation result more accurate and consistent, thereby achieving high efficiency, precision and robustness in postoperative rehabilitation effect monitoring.
[0004] The technical solution adopted by the present invention is as follows: the postoperative rehabilitation effect monitoring system based on image enhancement provided by the present invention comprises an image acquisition module, an image enhancement module, an image segmentation module and a postoperative rehabilitation effect monitoring module;
[0005] The image acquisition module acquires historical postoperative wound images;
[0006] The image enhancement module performs secondary pixel screening by setting a threshold value; divides the historical postoperative wound image into image blocks; performs color correction based on the selected spare white point; and introduces information entropy to perform quality assessment on the historical postoperative wound image after color correction;
[0007] The image segmentation module introduces fuzzy clustering to segment the image; segments the wound area through multi-layer feature extraction and double clustering; processes the wound boundary based on edge perception and superpixel technology; and constructs the model loss based on label fusion and loss design;
[0008] The postoperative rehabilitation effect monitoring module constructs a postoperative wound image classification model based on the historical postoperative wound images processed by the image segmentation module, and then predicts the postoperative wound images collected in real time to achieve postoperative rehabilitation effect monitoring.
[0009] Furthermore, the image enhancement module processes the historical postoperative wound images acquired by the image acquisition module; specifically, it includes the following contents:
[0010] Color space conversion: convert historical postoperative wound images into YCrCb color space;
[0011] Add preliminary constraints: used to filter pixels in historical postoperative wound images, expressed as follows:
[0012] ;
[0013] Where Y is the brightness component in the YCrCb color space, is the threshold value, and They are the blue color difference component and the red color difference component, and β are the control and The maximum absolute value of , the value range of α and β is 10-30, The value range is 50-100. It is the threshold of the brightness component in the YCrCb color space. This threshold is used to filter out pixels with higher brightness. In the YCrCb color space, the range of the brightness component Y is usually 0 to 255. The value range of τ is set to 50-100 because the brightness values in this range usually correspond to the brighter areas in the image, which is suitable for detecting white spots or bright areas. The lower limit of τ is set to 50 to avoid mistaking darker pixels for white spots, and the upper limit is set to 100. It is to ensure that the brightness of the selected pixel is high enough so that the white point area can be effectively identified; α is the control parameter of the blue color difference component, which is used to define the maximum absolute value range of the blue color difference allowed. The range of 10-30 can allow some slight blue color difference, while avoiding excessive color difference from being mistakenly included. This setting ensures that the selected pixel color does not deviate too far from the standard white point or bright color; β is the control parameter of the red color difference component, which is used to define the maximum absolute value range of the red color difference allowed. The range of 10-30 ensures that the selected pixel color is close to neutral white or light color, while not including too much color difference, ensuring more accurate detection of white points or bright areas;
[0014] Add control threshold: Add control threshold to improve the accuracy of white point detection, which is expressed as follows:
[0015] ;
[0016] Wherein, γ is the control threshold, and the value range of γ is 10-70; γ is to ensure that the detected white point area meets the expected color characteristics by limiting the difference between the brightness and color difference components. White points or bright color areas usually have relatively stable color characteristics, that is, the brightness value is high, and the value of its color difference component is small. In order to ensure the accuracy of detection, γ is set to exclude those pixels whose color difference component has too much influence on the brightness. The value range of 10-70 provides sufficient flexibility and allows adjustment according to the image characteristics in actual applications. Lower γ values, such as 10-30, are suitable for scenes with small changes in color difference components, while higher γ values, such as 40-70, are suitable for scenes with large changes in color difference components.
[0017] Image block division: The entire historical postoperative wound image is divided into small blocks based on the image pyramid. For each image block, the mean and mean square error of the color components are calculated, and the backup white point is selected based on the following criteria:
[0018] ;
[0019] In the formula, and are the blue color difference component and the red color difference component of the pixel (i, j) in the image block, respectively. and are the means of the blue color difference component and the red color difference component, respectively. and are the standard deviations of the blue and red color difference components, respectively, and sign(·) is the sign function;
[0020] Color correction: for all selected alternate white points, calculate the mean of their chromaticity values, where the chromaticity value refers to the color component of each pixel in the image in the color space, and is represented by the chromaticity components in the color space, i.e., the blue color difference and the red color difference components; based on the mean of the chromaticity values of the alternate white points, use the cv2.convertScaleAbs(·) function of OpenCV to adjust each color channel of the historical postoperative wound image;
[0021] Image evaluation: Information entropy is introduced to evaluate the quality of historical postoperative wound images after color correction, which is expressed as follows:
[0022] ;
[0023] Where H(·) is the image quality assessment function, d is the distance between pixels, β1 and are the azimuth and altitude angles of polar coordinates, p(·) is the correlation probability distribution function, i and j represent the grayscale values of two pixels;
[0024] Image determination: An evaluation threshold is set in advance. If the quality evaluation value of the historical postoperative wound image after color correction is higher than the evaluation threshold, the image enhancement is completed. Otherwise, the parameters are adjusted to perform image enhancement on the historical postoperative wound image again.
[0025] Furthermore, the image segmentation module processes the historical postoperative wound images processed by the image enhancement module, annotates the images with rehabilitation assessment levels in advance, and uses the rehabilitation assessment levels as image labels; the image segmentation module specifically includes the following contents:
[0026] Multi-layer feature extraction network unit: The multi-layer feature extraction network unit includes: a convolution layer, which applies convolution operation to extract low-level features of historical postoperative wound images; a pooling layer, which downsamples features using a maximum pooling operation; a deconvolution layer, which is used to restore the resolution of the feature map; a jump connection, which combines low-level features with high-level features through a jump connection to generate a complete feature map of the historical postoperative wound image; an output layer, which outputs the extracted feature map of the historical postoperative wound image;
[0027] Differentiable dual clustering unit: The differentiable dual clustering unit includes skip connection clustering and deep clustering subnetworks; skip connection clustering includes: feature map processing, convolution operation on the feature map of the input historical postoperative wound image, and concatenation of the feature map after convolution processing and the feature map before processing to obtain the feature map ; Response value calculation, characteristic map Apply the softmax function to calculate the response value of each pixel in each channel , expressed as: ; Generate initial labels based on the channel with the maximum confidence , expressed as: ,in, It is a feature map The response value of the (n,p)th pixel in each channel; the deep clustering subnetwork includes: constructing a correlation matrix for feature weighting, expressed as: ,in, is the weight of the nth feature on the mth cluster in the i1th iteration, is the nth eigenvector, and are the values of the jth cluster center and the mth cluster center in the i1-1th iteration, respectively, and M is the number of cluster centers; the features are weighted to update the cluster centers, expressed as: ,in, is the jth cluster center in the i1th iteration, is the weight of the mth feature on the jth cluster in the i1th iteration; the feature map is calculated based on the association and cluster center , expressed as: ,in, is the correlation matrix, is the cluster center matrix; the feature map is processed by the softmax function to obtain the response value of each pixel in each channel , expressed as: ; Generate initial labels based on the channel with the maximum confidence , expressed as: ,in, It is a feature map The response value of the (n,p)th pixel in each channel, N is the total number of iterations, is the weight of the nth feature on the qth cluster in the i1th iteration;
[0028] Edge-aware superpixel unit: Generate T superpixels from historical postoperative wound images using the EA segmentation algorithm , where S is a set of superpixels; S1, S2 and S T They are the 1st, 2nd and Tth superpixel regions, and the boundary information is processed by combining the edge gradient information and the superpixel segmentation results;
[0029] Label fusion unit: based on label distribution of each superpixel ,in, and are the 1st label and the kth label respectively, and is the number of labels appearing in superpixel h. The labels are sorted in descending order by number to obtain a descending label distribution set ,in, and It is the number of labels sorted in descending order; processing intersection sets , C(1) and C(2) are the label sets of the two superpixel segmentation results; recalculate the label distribution , c i2 is the recalculated label, u i2 is the recalculated quantity, and Yes Tags The number of occurrences in the first superpixel region and the second superpixel region; based on the minimum Select the final label , and assign final labels to all pixels in the historical postoperative wound images;
[0030] Loss design unit: minimize the gap between the current pixel and the adjacent pixel features, expressed as: ,in, It is a loss function used to measure the gap between the current pixel and the adjacent pixel features. W is the width of the image, and H is the height of the image. , and are the feature vectors of the pixels at positions (i+1,j), (i,j) and (i,j+1), respectively; minimizing the gap between each pixel label and the superpixel label, expressed as ; ,in, is the loss function that measures the gap between the pixel label and the superpixel label, N is the total number of pixels, is the Kronecker delta function, t is a built-in parameter; the final loss L is expressed as ,in, is the loss weight, p is the index of the superpixel currently processed, is the total number of superpixels, The value range is 0.1-10. The purpose is to balance the smoothness of the image and the consistency between pixel and superpixel labels. The range of values provides flexibility to adjust the balance of the loss function based on model performance. When focusing on label consistency, choose a higher value;
[0031] Segmentation judgment unit: A maximum number of iterations is pre-set. If the image segmentation module converges on the loss of historical postoperative wound images, the image segmentation module is constructed. If the maximum number of iterations is reached, the module parameters are adjusted and reconstructed, otherwise the iteration continues.
[0032] Furthermore, the postoperative rehabilitation effect monitoring module specifically divides the historical postoperative wound images processed by the image segmentation module into a training set and a test set, uses a support vector machine to classify and model the historical postoperative wound images, and obtains a postoperative wound image classification model; collects postoperative wound images in real time, and inputs them into the postoperative wound image classification model after being processed by the image enhancement module and the image segmentation module. If the rehabilitation assessment level output by the wound image classification model is too low, it indicates that the rehabilitation effect is poor, and an early warning process is given to achieve postoperative rehabilitation effect monitoring.
[0033] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0034] (1) In view of the problems of a large amount of noise interference in the original image of the general postoperative rehabilitation effect monitoring system, unnatural visual effects when enhancing the postoperative wound image, and inability to accurately perform color correction and noise filtering, this scheme sets a threshold for secondary pixel screening, which helps to focus on the wound area; improves the accuracy of white point detection by adding a control threshold and reduces artifacts caused by uneven brightness or other factors; effectively corrects color deviation through local processing and improved color balance, making the color of the image more realistic and uniform; introduces information entropy to improve image quality evaluation, objectively measures the clarity and information content of the image, and avoids excessive or insufficient processing of postoperative wound images.
[0035] (2) In view of the problems that general postoperative rehabilitation effect monitoring systems cannot effectively process image data in postoperative rehabilitation effect monitoring and have poor accuracy and low robustness in postoperative wound image segmentation, this scheme can accurately segment the wound area and optimize the details through multi-layer feature extraction and dual clustering; edge perception and superpixel technology improve the robustness of segmentation and can handle complex wound boundaries; label fusion and loss design make the final segmentation result more accurate and consistent; thereby achieving high efficiency, precision and robustness in postoperative rehabilitation effect monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of a postoperative rehabilitation effect monitoring system based on image enhancement provided by the present invention;
[0037] Figure 2 It is a flowchart of the image enhancement module;
[0038] Figure 3 Schematic diagram of the image segmentation module.
[0039] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0040] The technical solutions in the embodiments of the present invention will be clearly and completely described below 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, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0041] In the description of the present invention, it is necessary to understand that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred system or element must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.
[0042] Example 1, see Figure 1 The postoperative rehabilitation effect monitoring system based on image enhancement provided by the present invention comprises an image acquisition module, an image enhancement module, an image segmentation module, a postoperative rehabilitation effect monitoring module and a neurology prognosis evaluation module;
[0043] The image acquisition module acquires historical postoperative wound images; and sends the data to the image enhancement module;
[0044] The image enhancement module receives the data sent by the image acquisition module, performs secondary pixel screening by setting a threshold value; divides the historical postoperative wound image into image blocks; performs color correction based on the selected spare white point; introduces information entropy to perform quality assessment on the historical postoperative wound image after color correction; and sends the data to the image segmentation module;
[0045] The image segmentation module receives the data sent by the image enhancement module, introduces fuzzy clustering to segment the image; segments the wound area through multi-layer feature extraction and double clustering; processes the wound boundary based on edge perception and superpixel technology; constructs the model loss based on label fusion and loss design; and sends the data to the postoperative rehabilitation effect monitoring module;
[0046] The postoperative rehabilitation effect monitoring module receives data sent by the image segmentation module, constructs a postoperative wound image classification model based on the historical postoperative wound images processed by the image segmentation module, and then predicts the postoperative wound images collected in real time to achieve postoperative rehabilitation effect monitoring.
[0047] Example 2, see Figure 1 and Figure 2 This embodiment is based on the above embodiment, and the image enhancement module processes the historical postoperative wound images acquired by the image acquisition module; specifically, it includes the following contents:
[0048] Color space conversion: convert historical postoperative wound images into YCrCb color space;
[0049] Add preliminary constraints; used to filter pixels in historical postoperative wound images; expressed as follows:
[0050] ;
[0051] Where Y is the brightness component in the YCrCb color space, is the threshold value, and They are the blue color difference component and the red color difference component, and β are the control and The maximum absolute value of , the value range of α and β is 10-30, The value range is 50-100. It is the threshold of the brightness component in the YCrCb color space. This threshold is used to filter out pixels with higher brightness. In the YCrCb color space, the range of the brightness component Y is usually 0 to 255. The value range of τ is set to 50-100 because the brightness values in this range usually correspond to the brighter areas in the image, which is suitable for detecting white spots or bright areas. The lower limit of τ is set to 50 to avoid mistaking darker pixels for white spots, and the upper limit is set to 100. It is to ensure that the brightness of the selected pixel is high enough so that the white point area can be effectively identified; α is the control parameter of the blue color difference component, which is used to define the maximum absolute value range of the blue color difference allowed. The range of 10-30 can allow some slight blue color difference, while avoiding excessive color difference from being mistakenly included. This setting ensures that the selected pixel color does not deviate too far from the standard white point or bright color; β is the control parameter of the red color difference component, which is used to define the maximum absolute value range of the red color difference allowed. The range of 10-30 ensures that the selected pixel color is close to neutral white or light color, while not including too much color difference, ensuring more accurate detection of white points or bright areas;
[0052] Add control threshold: Add control threshold to improve the accuracy of white point detection, which is expressed as follows:
[0053] ;
[0054] Wherein, γ is the control threshold, and the value range of γ is 10-70; γ is to ensure that the detected white point area meets the expected color characteristics by limiting the difference between the brightness and color difference components. White points or bright color areas usually have relatively stable color characteristics, that is, the brightness value is high, and the value of its color difference component is small. In order to ensure the accuracy of detection, γ is set to exclude those pixels whose color difference component has too much influence on the brightness. The value range of 10-70 provides sufficient flexibility and allows adjustment according to the image characteristics in actual applications. Lower γ values, such as 10-30, are suitable for scenes with small changes in color difference components, while higher γ values, such as 40-70, are suitable for scenes with large changes in color difference components.
[0055] Image block segmentation; divide the entire historical postoperative wound image into small blocks based on the image pyramid; for each image block, calculate the mean and mean square error of the color components; select the backup white point based on the following criteria:
[0056] ;
[0057] In the formula, and are the blue color difference component and the red color difference component of the pixel (i, j) in the image block respectively; and are the means of the blue color difference component and the red color difference component respectively; and are the standard deviations of the blue and red color difference components, respectively; sign(·) is the sign function;
[0058] Color correction: for all selected alternate white points, calculate the mean of their chromaticity values, where the chromaticity value refers to the color component of each pixel in the image in the color space, and is represented by the chromaticity components in the color space, i.e., the blue color difference and the red color difference components; based on the mean of the chromaticity values of the alternate white points, use the cv2.convertScaleAbs(·) function of OpenCV to adjust each color channel of the historical postoperative wound image;
[0059] Image evaluation: Information entropy is introduced to evaluate the quality of historical postoperative wound images after color correction; it is expressed as follows:
[0060] ;
[0061] Where H(·) is the image quality assessment function; d is the distance between pixels; β1 and are the azimuth and altitude of polar coordinates respectively; p(·) is the correlation probability distribution function; i and j represent the grayscale values of two pixels;
[0062] Image determination: An evaluation threshold is set in advance. If the quality evaluation value of the historical postoperative wound image after color correction is higher than the evaluation threshold, the image enhancement is completed; otherwise, the parameters are adjusted to perform image enhancement on the historical postoperative wound image again.
[0063] By performing the above operations, in order to solve the problems of a large amount of noise interference in the original image of the general postoperative rehabilitation effect monitoring system, unnatural visual effects when enhancing the postoperative wound image, and inability to accurately perform color correction and noise filtering, this scheme sets a threshold for secondary pixel screening, which helps to focus on the wound area; improves the accuracy of white point detection by adding a control threshold, and reduces artifacts caused by uneven brightness or other factors; effectively corrects color deviation through local processing and improved color balance, so that the color of the image is more realistic and uniform; introduces information entropy to improve image quality evaluation, objectively measures the clarity and information content of the image, and avoids excessive or insufficient processing of postoperative wound images.
[0064] Example 3, see Figure 1 and Figure 3 This embodiment is based on the above embodiment. The image segmentation module processes the historical postoperative wound image processed by the image enhancement module, annotates the image with a rehabilitation assessment level in advance, and uses the rehabilitation assessment level as an image label. The image segmentation module specifically includes the following contents:
[0065] A multi-layer feature extraction network unit; the multi-layer feature extraction network unit includes: a convolution layer, applying a convolution operation to extract low-level features of the historical postoperative wound image; a pooling layer, using a maximum pooling operation to downsample the features; a deconvolution layer, used to restore the resolution of the feature map; a jump connection, combining the low-level features with the high-level features through the jump connection to generate a complete feature map of the historical postoperative wound image; an output layer, outputting the extracted feature map of the historical postoperative wound image;
[0066] Differentiable dual clustering unit; Differentiable dual clustering unit includes skip connection clustering and deep clustering subnetwork; Skip connection clustering includes: feature map processing, convolution operation on the feature map of the input historical postoperative wound image, and concatenation of the feature map after convolution processing and the feature map before processing to obtain the feature map ; Response value calculation, characteristic map Apply the softmax function to calculate the response value of each pixel in each channel , expressed as: ; Generate initial labels based on the channel with the maximum confidence , expressed as: ,in, It is a feature map The response value of the (n,p)th pixel in each channel; the deep clustering subnetwork includes: constructing a correlation matrix for feature weighting, expressed as: ,in, is the weight of the nth feature on the mth cluster in the i1th iteration; is the nth eigenvector, and are the values of the jth cluster center and the mth cluster center in the i1-1th iteration respectively; M is the number of cluster centers; the features are weighted to update the cluster centers, expressed as: ,in, is the jth cluster center in the i1th iteration; is the weight of the mth feature on the jth cluster in the i1th iteration; the feature map is calculated based on the association and cluster center , expressed as: ,in, is the correlation matrix; is the cluster center matrix; the feature map is processed by the softmax function to obtain the response value of each pixel in each channel , expressed as: ; Generate initial labels based on the channel with the maximum confidence , expressed as: ,in, It is a feature map The response value of the (n,p)th pixel in each channel; N is the total number of iterations; is the weight of the nth feature on the qth cluster in the i1th iteration;
[0067] Edge-aware superpixel unit; T superpixels generated from historical postoperative wound images using the EA segmentation algorithm , where S is a set of superpixels; S1, S2 and S T They are the 1st, 2nd and Tth superpixel regions respectively; the boundary information is processed by combining the edge gradient information and the superpixel segmentation results;
[0068] Label fusion unit; label distribution based on each superpixel ,in, and They are the 1st label and the kth label respectively; and is the number of labels appearing in superpixel h; sort the labels in descending order by number to obtain the descending label distribution set ,in, and It is the number of labels sorted in descending order; processing intersection sets , C(1) and C(2) are the label sets of the two superpixel segmentation results, and the label distribution is recalculated , c i2 is the recalculated label, u i2 is the recalculated quantity, and Yes Tags The number of occurrences in the first superpixel region and the second superpixel region; based on the minimum Select the final label ; and assign final labels to all pixels in the historical postoperative wound images;
[0069] Loss design unit; minimize the gap between the current pixel and the adjacent pixel features, expressed as: ,in, It is a loss function used to measure the gap between the current pixel and the adjacent pixel features; W is the width of the image; H is the height of the image; , and are the feature vectors of the pixels at positions (i+1,j), (i,j) and (i,j+1), respectively; minimizing the gap between each pixel label and the superpixel label, expressed as ; ,in, is the loss function that measures the gap between the pixel label and the superpixel label; N is the total number of pixels; is the Kronecker delta function, t is a built-in parameter; the final loss L is expressed as ,in, is the loss weight; p is the index of the superpixel currently processed; is the total number of superpixels; The value range is 0.1-10. The purpose is to balance the smoothness of the image and the consistency between pixel and superpixel labels. The range of values provides flexibility. The balance of the loss function is adjusted based on the model performance. A higher value is selected when focusing on label consistency. value;
[0070] Segmentation judgment unit; a maximum number of iterations is pre-set. If the image segmentation module converges on the loss of historical postoperative wound images, the image segmentation module is constructed; if the maximum number of iterations is reached, the module parameters are adjusted and reconstructed; otherwise, the iteration continues.
[0071] By performing the above operations, the general postoperative rehabilitation effect monitoring system has the problems of being unable to effectively process the image data in postoperative rehabilitation effect monitoring and having poor accuracy and low robustness in postoperative wound image segmentation. Through multi-layer feature extraction and double clustering, this scheme can accurately segment the wound area and optimize the details; edge perception and superpixel technology improve the robustness of segmentation and can handle complex wound boundaries; label fusion and loss design make the final segmentation result more accurate and consistent; thereby achieving high efficiency, precision and robustness in postoperative rehabilitation effect monitoring.
[0072] Example 4, see Figure 1 This embodiment is based on the above embodiment. The postoperative rehabilitation effect monitoring module specifically divides the historical postoperative wound images processed by the image segmentation module into a training set and a test set, and uses a support vector machine to classify and model the historical postoperative wound images to obtain a postoperative wound image classification model; the postoperative wound images are collected in real time, and after being processed by the image enhancement module and the image segmentation module, they are input into the postoperative wound image classification model. If the rehabilitation assessment level output by the wound image classification model is too low, it indicates that the rehabilitation effect is poor, and an early warning process is given to achieve postoperative rehabilitation effect monitoring.
[0073] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0074] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0075] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. A postoperative rehabilitation effect monitoring system based on image enhancement, characterized by: The system includes an image acquisition module, an image enhancement module, an image segmentation module and a postoperative rehabilitation effect monitoring module; The image acquisition module acquires historical postoperative wound images; The image enhancement module performs secondary pixel screening by setting a threshold value; divides the historical postoperative wound image into image blocks; performs color correction based on the selected spare white point; and introduces information entropy to perform quality assessment on the historical postoperative wound image after color correction; The image segmentation module introduces fuzzy clustering to segment the image; segments the wound area through multi-layer feature extraction and double clustering; processes the wound boundary based on edge perception and superpixel technology; and constructs the model loss based on label fusion and loss design; The postoperative rehabilitation effect monitoring module constructs a postoperative wound image classification model based on the historical postoperative wound images processed by the image segmentation module, and then predicts the postoperative wound images collected in real time to achieve postoperative rehabilitation effect monitoring; In the image enhancement module, a control threshold is added: A control threshold is added to improve the accuracy of white point detection, which is expressed as follows: ; Where γ is the control threshold; Y is the brightness component in the YCrCb color space; and They are blue color difference component and red color difference component respectively; the value range of γ is 10-70; The image segmentation module processes the historical postoperative wound images processed by the image enhancement module, annotates the images with rehabilitation assessment levels in advance, and uses the rehabilitation assessment levels as image labels. The image segmentation module specifically includes the following contents: Multi-layer feature extraction network unit: The multi-layer feature extraction network unit includes: a convolution layer, which applies convolution operation to extract low-level features of historical postoperative wound images; a pooling layer, which downsamples features using a maximum pooling operation; a deconvolution layer, which is used to restore the resolution of the feature map; a jump connection, which combines low-level features with high-level features through a jump connection to generate a complete feature map of the historical postoperative wound image; an output layer, which outputs the extracted feature map of the historical postoperative wound image; Differentiable dual clustering units; Edge-aware superpixel unit: Generate T superpixels from historical postoperative wound images using the EA segmentation algorithm , where S is the set of superpixels, S1, S2 and S T They are the 1st, 2nd and Tth superpixel regions, and the boundary information is processed by combining the edge gradient information and the superpixel segmentation results; Label fusion unit: based on label distribution of each superpixel ,in, and are the 1st label and the kth label respectively, and is the number of labels appearing in superpixel h. The labels are sorted in descending order by number to obtain a descending label distribution set ,in, and It is the number of tags sorted in descending order, processing the intersection set , C(1) and C(2) are the label sets of the two superpixel segmentation results, and the label distribution is recalculated , c i2 is the recalculated label, u i2 is the recalculated quantity, and Yes Tags The number of occurrences in the first superpixel region and the second superpixel region, based on the minimum Select the final label , and assign final labels to all pixels in the historical postoperative wound images; Loss design unit: minimize the gap between the current pixel and the adjacent pixel features, expressed as: ,in, It is a loss function used to measure the gap between the current pixel and the adjacent pixel features. W is the width of the image, and H is the height of the image. , and are the feature vectors of the pixels at positions (i+1,j), (i,j) and (i,j+1), respectively, minimizing the gap between each pixel label and the superpixel label, expressed as , ,in, is the loss function that measures the gap between the pixel label and the superpixel label, N is the total number of pixels, is the Kronecker delta function, t is a built-in parameter, and the final loss L is expressed as ,in, is the loss weight, p is the index of the superpixel currently processed, is the total number of superpixels, The value range is 0.1-10; Segmentation judgment unit: a maximum number of iterations is pre-set. If the image segmentation module converges to the loss of historical postoperative wound images, the image segmentation module is constructed. If the maximum number of iterations is reached, the module parameters are adjusted and reconstructed, otherwise the iteration continues; The differentiable dual clustering unit includes a skip connection clustering and a deep clustering subnetwork; the skip connection clustering includes: feature map processing, performing a convolution operation on the feature map of the input historical postoperative wound image, and splicing the feature map after the convolution processing with the feature map before the processing to obtain a feature map ; Response value calculation, characteristic diagram Apply the softmax function to calculate the response value of each pixel in each channel , expressed as: ; Generate initial labels based on the channel with the maximum confidence , expressed as: ,in, It is a feature map The response value of the (n,p)th pixel in each channel; the deep clustering subnetwork includes: constructing a correlation matrix for feature weighting, expressed as: ,in, is the weight of the nth feature on the mth cluster in the i1th iteration, is the nth eigenvector, and are the values of the jth cluster center and the mth cluster center in the i1-1th iteration, respectively, and M is the number of cluster centers; the features are weighted to update the cluster centers, expressed as: ,in, is the jth cluster center in the i1th iteration; is the weight of the mth feature on the jth cluster in the i1th iteration; the feature map is calculated based on the association and cluster center , expressed as: ,in, is the correlation matrix; is the cluster center matrix; the feature map is processed by the softmax function to obtain the response value of each pixel in each channel , expressed as: ; Generate initial labels based on the channel with the maximum confidence , expressed as: ,in, It is a feature map The response value of the (n,p)th pixel in each channel, where N is the total number of iterations; is the weight of the nth feature on the qth cluster in the i1th iteration.
2. The postoperative rehabilitation effect monitoring system based on image enhancement according to claim 1, characterized in that: The image enhancement module processes the historical postoperative wound images collected by the image acquisition module; Includes the following: Color space conversion: convert historical postoperative wound images into YCrCb color space; Add preliminary constraints: used to filter pixels in historical postoperative wound images, expressed as follows: ; Where Y is the brightness component in the YCrCb color space; is the threshold value; and They are blue color difference component and red color difference component respectively; and β are the control and The maximum absolute value of; the value range of α and β is 10-30; The value range is 50-100; Add control threshold; Image block division: The entire historical postoperative wound image is divided into small blocks based on the image pyramid. For each image block, the mean and mean square error of the color components are calculated, and the backup white point is selected based on the following criteria: ; In the formula, and are the blue color difference component and the red color difference component of the pixel (i, j) in the image block respectively; and are the means of the blue color difference component and the red color difference component respectively; and are the standard deviations of the blue and red color difference components, respectively; sign(·) is the sign function; Color correction: for all selected alternate white points, calculate the mean of their chromaticity values, where the chromaticity value refers to the color component of each pixel in the image in the color space, and is represented by the chromaticity components in the color space, i.e., the blue color difference and the red color difference components; based on the mean of the chromaticity values of the alternate white points, use the cv2.convertScaleAbs(·) function of OpenCV to adjust each color channel of the historical postoperative wound image; Image evaluation: Information entropy is introduced to evaluate the quality of historical postoperative wound images after color correction, which is expressed as follows: ; Where H(·) is the image quality assessment function; d is the distance between pixels; β1 and are the azimuth and altitude of polar coordinates respectively; p(·) is the correlation probability distribution function; i and j represent the grayscale values of two pixels; Image determination: An evaluation threshold is set in advance. If the quality evaluation value of the historical postoperative wound image after color correction is higher than the evaluation threshold, the image enhancement is completed. Otherwise, the parameters are adjusted to perform image enhancement on the historical postoperative wound image again.
3. The postoperative rehabilitation effect monitoring system based on image enhancement according to claim 1, characterized in that: The postoperative rehabilitation effect monitoring module specifically divides the historical postoperative wound images processed by the image segmentation module into a training set and a test set, uses a support vector machine to classify and model the historical postoperative wound images, obtains a postoperative wound image classification model, collects postoperative wound images in real time, and inputs them into the postoperative wound image classification model after being processed by the image enhancement module and the image segmentation module. If the rehabilitation assessment level output by the wound image classification model is too low, it indicates that the rehabilitation effect is poor, and an early warning process is given to achieve postoperative rehabilitation effect monitoring.
Citation Information
Patent Citations
Superpixel segmentation method based on boundary detection
CN111915629A
Image feature fusion image semantic segmentation method
CN112001391A
Image matching method based on self-attention deep neural network
CN112288011A
Image clustering method and device, electronic equipment and computer readable storage medium
CN113255714A
Image segmentation method based on bounding box and co-occurrence feature prediction
CN113592894A
