Intelligent detection and segmentation method for echocardiogram
By performing target area segmentation and adaptive enhancement processing on echocardiograms, the problem of inaccurate image enhancement processing in traditional methods is solved, and the accuracy and reliability of segmentation results are improved.
Patent Information
- Application Number
- CN202411320178.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-09-23
AI Technical Summary
Traditional echocardiography segmentation methods have low accuracy in image enhancement processing, resulting in insufficient accuracy and reliability of subsequent segmentation results.
By dividing each frame sub-image in the echocardiogram into multiple target areas, and performing image enhancement processing based on the enhancement necessity correction value and grayscale mapping range of each area, ensuring that the degree of enhancement matches the local features, and limiting different frame sub-images. The enhanced differences between images are finally input into the intelligent detection segmentation model for segmentation.
The readability of echocardiograms and the accuracy and reliability of segmentation results are improved, and the problems of excessive enhancement and distortion are avoided.
Smart Images

Figure CN118864501A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to an intelligent detection and segmentation method for an ultrasonic cardiogram. Background Art
[0002] Echocardiography is a non-invasive and safe medical imaging method. By subsequently segmenting the echocardiogram, accurate cardiac structure segmentation and function measurement can be achieved. Since some features of each sub-image in the obtained echocardiogram are not obvious and have poor readability, each sub-image needs to be enhanced before segmentation to make it easier to read.
[0003] In the related art, the image enhancement algorithm is usually used to directly enhance the echocardiogram. However, since the overall grayscale of the pixels in the echocardiogram is relatively low, the grayscale difference is small, and the grayscale value distribution is relatively extreme, directly enhancing the echocardiogram will result in problems such as over-enhancement and global enhancement, and effective segmentation of the echocardiogram cannot be completed.
[0004] It is not difficult to find that the traditional segmentation scheme has low accuracy in the image enhancement processing link, which leads to low accuracy and reliability in the subsequent image segmentation link. Summary of the invention
[0005] In order to solve the technical problem that the traditional segmentation scheme has low accuracy in the image enhancement processing link, the purpose of the present invention is to provide an intelligent detection and segmentation method for echocardiogram, and the technical scheme adopted is as follows: An intelligent detection and segmentation method for an echocardiogram, the method comprising: acquiring an echocardiogram to be segmented; Segmenting each sub-image frame in the echocardiogram into a plurality of target regions respectively; Divide all target regions belonging to the same feature region in adjacent frame sub-images into the same feature group to obtain multiple feature groups; Determining a correction value of the necessity of enhancement of each target area, and extracting a region to be enhanced in each feature group according to the correction value of the necessity of enhancement of each target area; Determine the grayscale mapping range corresponding to each feature group, and perform image enhancement processing on the area to be enhanced in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram; The enhanced echocardiogram is input into a pre-established intelligent detection segmentation model to obtain an echocardiogram segmentation result output by the intelligent detection segmentation model.
[0006] According to an intelligent detection and segmentation method of an echocardiogram provided by the present invention, each sub-image frame in the echocardiogram is segmented into a plurality of target areas, comprising: Extracting a sector-shaped region in each sub-image frame in the echocardiogram; Performing clustering processing on the pixel points in each of the fan-shaped areas to obtain a plurality of clusters; A connected region composed of continuous adjacent pixel points in each of the clusters is taken as a target region, and a plurality of target regions corresponding to each frame sub-image are obtained.
[0007] According to an intelligent detection and segmentation method for echocardiography provided by the present invention, the method of dividing all target areas belonging to the same feature area in adjacent frame sub-images into the same feature group includes: Obtain the overlap area, the absolute value of the difference between the edge chain codes and the grayscale intersection size of any two target areas in adjacent frame sub-images; According to the overlapped area of any two target regions in the adjacent frame sub-images, the absolute value of the difference of the edge chain codes and the grayscale intersection size, the possibility evaluation value that any two target regions in the adjacent frame sub-images belong to the same feature region is calculated; All target areas whose likelihood evaluation values are greater than a preset evaluation threshold are divided into the same feature group.
[0008] According to an intelligent detection and segmentation method for echocardiography provided by the present invention, the step of determining the enhancement necessity correction value of each target area includes: Obtaining the grayscale value of each pixel in each target area, the grayscale value of each pixel in an adjacent area of the target area, and the area of the target area; Calculate the characteristic expression degree of each target area according to the gray value of each pixel point in each target area and the gray value of each pixel point in the adjacent area of the target area; According to the characteristic expression degree of each target area, an initial value of the enhancement necessity of each target area is calculated; According to the initial value of the enhancement necessity of each target area, the characteristic expression degree and the area of the area, the enhancement necessity correction value of each target area is calculated.
[0009] According to an intelligent detection and segmentation method for an echocardiogram provided by the present invention, the characteristic expression degree of each target area is calculated based on the grayscale value of each pixel point in each target area and the grayscale value of each pixel point in an adjacent area of the target area, including: According to the grayscale value of each pixel in each target area, the grayscale mean and grayscale variance of all the pixels in each target area are calculated; The grayscale difference between each target area and each adjacent area is calculated based on the grayscale mean of all pixels in each target area and the grayscale mean of all pixels in the adjacent area of the target area. Calculating the grayscale representation value of each target area according to the grayscale mean and grayscale variance of all pixels in each target area; The grayscale difference value is divided by the grayscale expression value to obtain the characteristic expression level of each target area.
[0010] According to an intelligent detection and segmentation method for echocardiogram provided by the present invention, the initial value of the necessity for enhancement of each target area is calculated according to the degree of characteristic expression of each target area, including: For each of the target regions, according to the degree of feature expression of each of the target regions, respectively determine a first feature expression mean of all target regions in the cluster to which the target region belongs, and a second feature expression mean of all target regions in the sub-image to which the target region belongs; Determine the number of first gray levels of all pixels in the target area, and determine the number of second gray levels of all pixels in each target area in the cluster to which the target area belongs; Calculating a feature expression saliency value of the target area in the corresponding sub-image according to the feature expression degree, the first feature expression mean value, and the second feature expression mean value; Taking the first gray level quantity as a quotient and the second gray level quantity as a quotient, a gray level quantity ratio is obtained; An initial value of the necessity for enhancement of each of the target regions is calculated based on the feature significance value and the gray level quantity ratio.
[0011] According to an intelligent detection and segmentation method for echocardiogram provided by the present invention, the necessity correction value of enhancement of each target region is calculated based on the initial value of the necessity of enhancement of each target region, the degree of feature expression and the area of the region, including: According to the characteristic expression degree and the area of each target area, respectively determine the third characteristic expression mean value and the area mean value of all target areas in the characteristic group to which the target area belongs; Calculate the performance weight of each target area according to the characteristic performance degree, the area, the third characteristic performance mean and the area mean of each target area; According to the initial enhancement necessity value and the performance weight value of each target area, the enhancement necessity correction value of the target area is calculated.
[0012] According to an intelligent detection and segmentation method for echocardiogram provided by the present invention, the step of determining the grayscale mapping range corresponding to each feature group includes: According to the enhancement necessity correction values of all target areas in each feature group, the enhancement necessity mean of each feature group is calculated; Determine the minimum grayscale value of the pixels in each target area, and calculate the minimum grayscale mean value of all target areas in each feature group based on the minimum grayscale value; Multiplying the enhancement necessity mean of each feature group by the minimum grayscale mean to obtain a range lower limit value; Determine the maximum grayscale value of all pixels in the target area in each feature group, and use the maximum grayscale value as the upper limit of the range; According to the lower limit value of the range and the upper limit value of the range, a grayscale mapping range corresponding to each feature group is obtained.
[0013] According to an intelligent detection and segmentation method for an echocardiogram provided by the present invention, before segmenting each sub-image frame in the echocardiogram into a plurality of target regions, the method further comprises: De-noising is performed on each sub-image frame in the echocardiogram.
[0014] According to an intelligent detection and segmentation method for an echocardiogram provided by the present invention, the image enhancement processing is performed on the to-be-enhanced region in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram, including: Determine the grayscale correction value of at least part of the pixels in each area to be enhanced by using a histogram equalization algorithm; If the grayscale correction value is not within the grayscale mapping range corresponding to the feature group to which the to-be-enhanced area belongs, the grayscale mapping value with the smallest difference from the grayscale correction value within the grayscale mapping range is used as the grayscale update value; The grayscale values of at least some of the pixels in the area to be enhanced in each feature group are updated according to the grayscale update value to obtain an enhanced echocardiogram.
[0015] The present invention has the following beneficial effects: By acquiring an echocardiogram to be segmented, each frame sub-image in the echocardiogram is segmented into multiple target areas, all target areas belonging to the same feature area in adjacent frame sub-images are divided into the same feature group to obtain multiple feature groups, and the enhancement necessity correction value of each target area is determined. According to the enhancement necessity correction value of each target area, the area to be enhanced in each feature group is extracted, the grayscale mapping range corresponding to each feature group is determined, and image enhancement processing is performed on the area to be enhanced in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram. Finally, the enhanced echocardiogram is input into a pre-established intelligent detection segmentation model to obtain the echocardiogram segmentation result output by the intelligent detection segmentation model. Since each sub-image frame in the echocardiogram is segmented into multiple target areas, the enhancement necessity of each target area is quantified by the enhancement necessity correction value, which ensures that the enhancement degree of each target area matches its local features, and determines a unified grayscale mapping range for target areas belonging to the same feature group to limit the enhancement differences between sub-images of different frames, thereby improving the readability of each sub-image frame in the echocardiogram, making the enhancement processing link more accurate, and thus improving the accuracy and reliability of the echocardiogram segmentation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of a flow chart of an intelligent detection and segmentation method for an echocardiogram provided by an embodiment of the present invention; Figure 2 It is a sub-image of a frame in the echocardiogram after denoising; Figure 3 It is the clustering result of one sub-image in the echocardiogram; Figure 4 A schematic diagram of the structure of an intelligent detection and segmentation device for echocardiography provided by one embodiment of the present invention; Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation, structure, features and effects of an intelligent detection and segmentation method of echocardiography proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0019] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0020] Combine the following Figures 1 to 5 The specific scheme of the intelligent detection and segmentation method of echocardiogram provided by the present invention is specifically described.
[0021] See also Figure 1 , which shows a method flow chart of an intelligent detection and segmentation method for echocardiogram provided by an embodiment of the present invention, such as Figure 1 As shown, the intelligent detection and segmentation method of echocardiogram provided by the embodiment of the present invention specifically includes: Step 110: Acquire the echocardiogram to be segmented.
[0022] Echocardiography is a non-invasive technique that uses the special physical properties of short ultrasonic waves to examine the anatomical structure and functional state of the heart and large blood vessels. In this embodiment, the echocardiogram is a dynamic image composed of multiple frames of continuous static sub-images.
[0023] In one embodiment, after step 110 and before step 120, the method may further include: Each sub-image frame in the echocardiogram is denoised separately.
[0024] In actual applications, due to the electronic or mechanical noise from the ultrasound equipment itself and external factors in the surrounding environment, echocardiography may have a certain degree of noise interference. The image enhancement process is sensitive to noise. When there is noise in the echocardiogram, the image enhancement process will cause the noise to be amplified, thus affecting the quality and details of the enhanced image.
[0025] Therefore, before image enhancement, this embodiment uses a denoising algorithm such as a mean filter algorithm to denoise each sub-image frame in the echocardiogram to reduce the impact of noise on the clarity and quality of each sub-image frame, thereby improving image quality and visualization effect. Figure 2 The figure shows an exemplary sub-image of a certain frame in an echocardiogram after denoising.
[0026] Step 120: Segment each sub-image frame in the echocardiogram into a plurality of target regions.
[0027] Considering that the image enhancement algorithm can only enhance the whole ultrasound cardiogram directly, it is impossible to enhance the local details of the specific feature area, and the background may be over-enhanced, which will affect the image quality after the enhancement. In order to enhance the ultrasound cardiogram more effectively, this embodiment divides each sub-image in the ultrasound cardiogram into multiple target areas based on the performance of different feature areas in each frame of the sub-image. It can be understood that each target area can represent part of the key image information in the sub-image, and then targeted local enhancement processing can be achieved based on the target area as a unit.
[0028] Step 130: Divide all target regions belonging to the same feature region in adjacent frame sub-images into the same feature group to obtain multiple feature groups.
[0029] Due to the dynamic acquisition process of echocardiography and the contraction and expansion state of the heart, the same part of the heart structure in the continuous frame sub-images may inevitably have different degrees of enhancement results in the corresponding target area due to the heart beating or slight changes in the scanning angle. In order to make the image enhancement more natural and ensure that the enhancement results of the same part are as consistent as possible, it is necessary to synchronously enhance the target area of the same part in the continuous multi-frame sub-images. In this regard, this embodiment divides the feature groups. By establishing multiple feature groups, all target areas belonging to the same part (i.e., the same feature area) are divided into the same feature group. The target areas in the same feature group can be synchronously enhanced later to ensure that the image enhancement effect is more natural.
[0030] Step 140: Determine the enhancement necessity correction value of each target area, and extract the area to be enhanced in each feature group according to the enhancement necessity correction value of each target area.
[0031] It is understandable that, since the target area obtained by preliminary segmentation may contain edge tissue areas other than the cardiac structure, and the main purpose of the image enhancement process is to better highlight the details of the cardiac structure, this embodiment screens important areas by enhancing the necessity correction value, and extracts the areas to be enhanced that are more necessary to be enhanced from the target area obtained by preliminary segmentation, thereby avoiding over-enhancement and improving the enhancement efficiency and accuracy of the subsequent image enhancement process.
[0032] Step 150: Determine the grayscale mapping range corresponding to each feature group, and perform image enhancement processing on the area to be enhanced in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram.
[0033] It can be understood that the present embodiment determines a unified grayscale mapping range for each feature group. The grayscale mapping range can characterize the grayscale update range of all pixels in each area to be enhanced in the feature group during the image enhancement process, and can limit the enhancement differences between sub-images of different frames in the same area to be enhanced during the image enhancement process, thereby improving the readability of each frame sub-image after the enhancement process.
[0034] Step 160: Input the enhanced echocardiogram into a pre-established intelligent detection segmentation model to obtain an echocardiogram segmentation result output by the intelligent detection segmentation model.
[0035] In this embodiment, the intelligent detection and segmentation model can be built based on a neural network architecture and put into use after preliminary training. The intelligent detection and segmentation model can accurately identify and segment the cardiac structure area and the edge tissue area in each frame sub-image of the echocardiogram after enhanced processing, thereby quickly and accurately outputting the cardiogram segmentation results.
[0036] In one embodiment, each sub-image frame in the echocardiogram is segmented into a plurality of target regions, specifically including: In the first step, the fan-shaped region in each sub-image frame of the echocardiogram is extracted.
[0037] In order to avoid the influence of annotations and background in the echocardiogram on image processing, it is first necessary to perform image difference processing on the acquired echocardiogram to remove the annotations and background areas in the echocardiogram and only retain the part within the fan-shaped area, thereby realizing the extraction of the fan-shaped area.
[0038] In the second step, the pixels in each sector area are clustered to obtain multiple clusters.
[0039] In some embodiments, a K-means clustering algorithm may be used to cluster all pixels in each sub-image frame of an echocardiogram to obtain multiple clusters. Figure 3 The clustering result of one sub-image in an echocardiogram when the cluster number is set to 4 is exemplarily shown.
[0040] In the third step, the connected domain composed of continuous adjacent pixels in each cluster is taken as the target area to obtain multiple target areas corresponding to each frame sub-image.
[0041] In this embodiment, based on clustering to obtain multiple clusters, a connected domain composed of continuous adjacent pixels in each cluster is used as the target area, so that each frame sub-image can be divided into several target areas according to the grayscale characteristics of the pixels in each frame sub-image.
[0042] In one embodiment, all target regions belonging to the same feature region in adjacent frame sub-images are divided into the same feature group, specifically including: In the first step, the overlapping area of any two target regions in adjacent frame sub-images, the absolute value of the difference between the edge chain codes, and the grayscale intersection size are obtained.
[0043] It can be understood that the overlapping area can represent the area size of the overlapping part of any two target areas in adjacent frame sub-images, the absolute value of the difference in edge chain codes can represent the difference in edge information of any two target areas in adjacent frame sub-images, and the grayscale intersection size can represent the grayscale consistency of pixels in any two target areas in adjacent frame sub-images. In practical applications, the grayscale intersection size of adjacent frame sub-images can be determined according to the number of pixels with corresponding positions and equal grayscale values in adjacent frame sub-images.
[0044] In the second step, the possibility evaluation value of any two target regions in adjacent frame sub-images belonging to the same feature region is calculated based on the overlapping area of any two target regions in adjacent frame sub-images, the absolute value of the difference between the edge chain codes, and the grayscale intersection size.
[0045] In practical applications, since the time interval between two consecutive adjacent sub-images in echocardiography is very short, the possibility evaluation value of any two target areas in adjacent sub-images belonging to the same feature area can be matched according to the overlapping area of any two target areas in the two adjacent sub-images, the absolute value of the difference between the edge chain codes, and the grayscale intersection size.
[0046] In this embodiment, the adjacent frame sub-images The target area and The probability evaluation value of the target areas belonging to the same feature area can be specifically expressed as follows: (1) In the formula, Indicates the number of adjacent frame sub-images The target area and The probability evaluation value of the target areas belonging to the same feature area; Indicates The target area and The overlap area of the target areas on the echocardiogram; Indicates The target area and The absolute value of the difference between the edge chain codes of the target areas, p represents a constant value that is not 0, which is used to prevent the denominator from being 0 and causing the entire expression to be meaningless. In this embodiment, the value of p is 0.01. In specific applications, the implementer can set it according to specific circumstances; Indicates The target area and The grayscale intersection size of the target area.
[0047] In the third step, all target areas whose likelihood evaluation values are greater than the preset evaluation threshold are divided into the same feature group.
[0048] It can be understood that the possibility evaluation value can represent the possibility that any two target areas in adjacent frame sub-images belong to the same feature area. The higher the possibility evaluation value, the greater the possibility that any two target areas in adjacent frame sub-images belong to the same feature area. In this embodiment, the target areas with possibility evaluation values greater than the preset evaluation threshold are determined to belong to the same feature area. Therefore, all target areas with possibility evaluation values greater than the preset evaluation threshold are divided into the same feature group.
[0049] In some embodiments, the preset evaluation threshold can be taken as 0.6. Therefore, the target area with a possibility evaluation value greater than 0.6 can be regarded as the same feature area, and all target areas belonging to the same feature area can be placed in the same feature group. In this way, the target areas of all frame sub-images of the echocardiogram can be divided into several feature groups, each feature group containing a target area of each frame sub-image. If there is an isolated target area, the isolated target area can be treated as a separate feature group.
[0050] In one embodiment, determining the enhancement necessity correction value of each target area specifically includes: The first step is to obtain the grayscale value of each pixel in each target area, the grayscale value of each pixel in the adjacent area of the target area, and the area of the target area.
[0051] In the second step, the characteristic expression degree of each target area is calculated according to the gray value of each pixel in each target area and the gray value of each pixel in the adjacent area of the target area.
[0052] In a specific implementation, the characteristic expression degree of each target area is calculated according to the grayscale value of each pixel in each target area and the grayscale value of each pixel in the adjacent area of the target area, which specifically includes: Firstly, according to the gray value of each pixel in each target area, the gray mean and gray variance of all pixels in each target area are calculated.
[0053] Then, the grayscale difference value between each target region and each adjacent region is calculated based on the grayscale mean value of all pixels in each target region and the grayscale mean value of all pixels in the adjacent region of the target region.
[0054] Then, the grayscale representation value of each target area is calculated according to the grayscale mean and grayscale variance of all pixels in each target area.
[0055] Finally, the grayscale difference value is divided by the grayscale expression value to obtain the characteristic expression degree of each target area.
[0056] It is understandable that an ultrasound image is formed by the reflection of ultrasound waves in cardiac tissue. In an ultrasound image, the cardiac structure area is presented as an area with a relatively small grayscale and a relatively simple grayscale distribution, while the background tissue area is presented as an area with a relatively high grayscale and a relatively rich variety of grayscales. Accordingly, this embodiment uses the grayscale difference value between the target area and its adjacent areas to reflect the degree of characteristic expression of different target areas. The greater the grayscale difference value between the target area and its adjacent areas, the higher the degree of characteristic expression of the target area. The first sub-image in the frame The degree of characteristic expression of a target area can be expressed as follows: (2) In the formula, Indicates the echocardiogram The first sub-image in the frame The degree of feature expression of the target area; Indicates The sub-image of the frame The grayscale mean of all pixels in the target area; Indicates The sub-image of the frame The grayscale variance of all pixels in the target area; Indicates The sub-image of the frame The number of neighboring regions of a target region; Indicated in The sub-image of the frame The target area The grayscale mean of all pixels in the adjacent areas, k represents a constant value not equal to 0, which is used to prevent the denominator from being 0 and causing the entire expression to be meaningless. In this embodiment, k is 0.01. In specific applications, the implementer can set it according to the specific situation.
[0057] It should be noted that in the above formula, Indicates The sub-image of the frame The target area and The grayscale difference value of the adjacent areas is larger, which means that the grayscale difference between the pixels in the target area and its adjacent areas is larger, and the feature expression degree of the target area is greater. Indicates The sub-image in the frame The grayscale expression value of the target area. The smaller the grayscale expression value, the greater the characteristic expression degree of the target area.
[0058] The third step is to calculate the initial value of the enhancement necessity of each target area according to the characteristic expression degree of each target area.
[0059] In a specific implementation, according to the characteristic expression degree of each target area, the initial value of the enhancement necessity of each target area is calculated, which specifically includes: Firstly, for each target region, according to the feature expression degree of each target region, the first feature expression mean of all target regions in the cluster to which the target region belongs and the second feature expression mean of all target regions in the sub-image to which the target region belongs are determined respectively.
[0060] At the same time, the number of first gray levels of all pixels in the target area is determined, and the number of second gray levels of all pixels in each target area in the cluster to which the target area belongs is determined.
[0061] Then, according to the feature expression degree, the first feature expression mean value and the second feature expression mean value, the feature expression saliency value of the target area in the corresponding sub-image is calculated.
[0062] Then, the quotient of the first gray level quantity and the second gray level quantity is calculated to obtain a gray level quantity ratio.
[0063] Finally, the initial value of the enhancement necessity of each target area is calculated based on the feature significance value and the gray level quantity ratio.
[0064] It can be understood that the feature expression degree can represent the feature significance of the target area in the entire sub-image. When the feature expression degree of a target area is greater, it means that the target area is more significant in the entire sub-image and requires a greater degree of enhancement, which helps to highlight the details in the target area. When the feature expression degree of all target areas in the cluster where a target area is located is relatively large, it means that all target areas corresponding to the cluster are more likely to belong to the cardiac structure area and should be enhanced.
[0065] At the same time, the division of the target area is based on the grayscale information of the pixels. When the number of grayscale levels of the pixels in the target area accounts for the number of grayscale levels of all target areas in the cluster where it is located, it means that the details in the target area are richer. At the same time, the greater the degree of feature expression, the greater the degree of enhancement should be. Based on this, this embodiment determines the initial value of the enhancement necessity for each target area. The sub-image of the frame The initial value of the enhancement necessity of a target area can be specifically expressed as follows: (3) In the formula, Indicates The sub-image of the frame The initial value of the enhancement necessity of the target area, Indicates The sub-image of the frame The degree of feature expression of the target area; Indicates The sub-image of the frame The mean of the first feature performance of all target areas in the cluster to which the target area belongs; Indicates The mean value of the second feature performance of all target areas in the frame sub-image; Indicates The sub-image of the frame The number of first gray levels of all pixels in the target area; Indicates The sub-image of the frame The number of second gray levels of all pixels in each target area in the cluster where the target area is located.
[0066] It should be noted that in the above formula, Indicates The sub-image of the frame The feature expression significance value of a target area in the corresponding sub-image is larger, and the feature expression degree of the target area is more significant, and the necessity of enhancing the target area is greater. Indicates The sub-image of the frame The grayscale quantity ratio corresponding to the target area is as large as the grayscale quantity ratio, which means that the details of the target area are richer and the necessity of enhancing the target area is greater.
[0067] The fourth step is to calculate the enhancement necessity correction value of each target area according to the enhancement necessity initial value, feature expression degree and area of each target area.
[0068] In a specific implementation, the enhancement necessity correction value of each target area is calculated based on the enhancement necessity initial value, feature expression degree and area of each target area, which specifically includes: First, according to the characteristic expression degree and the area of each target area, the third characteristic expression mean value and the area mean value of all target areas in the characteristic group to which the target area belongs are determined respectively.
[0069] Then, the performance weight value of each target area is calculated according to the characteristic performance degree, the area of the area, the mean value of the third characteristic performance and the mean value of the area of the area of each target area.
[0070] Finally, according to the initial enhancement necessity value and the performance weight value of each target area, the enhancement necessity correction value of each target area is calculated.
[0071] In practical applications, for target areas in the same feature group (such as the contraction areas of the atria and ventricles), there will be different degrees of changes in all sub-images of the echocardiogram. These changes may include changes in the shape, position, size or intensity of the target area. In order to achieve effective enhancement of the echocardiogram and improve visual perception of details, the greater the change of a target area in the same feature group between adjacent sub-images, the greater the necessity of its enhancement. Therefore, this embodiment corrects the initial value of the necessity of enhancement of each target area, and finally obtains the correction value of the necessity of enhancement of each target area. Specifically, The sub-image of the frame The enhancement necessity modifier for each target area can be expressed as follows: (4) In the formula, Indicates The sub-image of the frame The enhancement necessity modifier of each target area; Indicates The sub-image of the frame The initial value of the enhancement necessity of each target area; , Respectively represent The sub-image of the frame The degree of characteristic expression and area of each target area; , Respectively represent The sub-image of the frame The mean value of the third feature expression degree and the mean value of the area of all target regions in the feature group to which the target region belongs.
[0072] It should be noted that In order to reflect the performance of the target area in the entire time series of the echocardiogram according to the feature expression degree and area of the target area in the corresponding feature group, that is, the performance weight value, the performance weight value can correct the initial value of the necessity for enhancement. When the performance of the target area in the corresponding feature group is relatively weak, the performance weight value is greater than 1, that is, the initial value of the necessity for enhancement of the target area is increased to a certain extent; when the performance of the target area in the corresponding feature group is relatively obvious, the performance weight value is between 0 and 1, that is, the initial value of the necessity for enhancement of the target area is weakened to a certain extent, thereby avoiding the problem of over-enhancement of the target area in the current frame sub-image, resulting in a greater difference with the adjacent frame sub-image.
[0073] In practical applications, the initially determined target areas can be screened according to the enhancement necessity correction value. Specifically, the enhancement necessity correction value of each target area can be compared with the preset necessity threshold, and the target areas with enhancement necessity correction values higher than the preset necessity threshold are retained and used as areas to be enhanced in subsequent image enhancement processing.
[0074] In some embodiments, the preset necessity threshold value can be set to 0.3. When the enhancement necessity correction value of a target area is lower than 0.3, the target area is considered to belong to the marginal tissue area other than the cardiac structure in the echocardiogram, and the target area is not subsequently enhanced to avoid over-enhancement, thereby better highlighting the details of the cardiac structure and maintaining the natural effect of each frame sub-image after enhancement. At the same time, for target areas with enhancement necessity correction values higher than 0.3, they are used as areas to be enhanced for subsequent enhancement processing, so that key areas can be enhanced in a targeted manner, reducing the amount of data processing in the enhancement processing link, thereby improving the processing efficiency of the enhancement processing link.
[0075] In one embodiment, determining the grayscale mapping range corresponding to each feature group specifically includes: In the first step, the enhancement necessity mean of each feature group is calculated based on the enhancement necessity correction values of all target areas in each feature group.
[0076] The second step is to determine the minimum grayscale value of the pixels in each target area, and calculate the minimum grayscale mean of all target areas in each feature group based on the minimum grayscale value.
[0077] In the third step, the enhancement necessity mean of each feature group is multiplied by the minimum grayscale mean to obtain the lower limit of the range.
[0078] The fourth step is to determine the maximum grayscale value of all pixels in the target area in each feature group, and use the maximum grayscale value as the upper limit of the range.
[0079] The fifth step is to obtain the grayscale mapping range corresponding to each feature group according to the lower limit value and the upper limit value of the range.
[0080] In this embodiment, for each feature group, the grayscale mapping range is set to ,in, is the minimum grayscale mean of all pixels in the target area in the feature group. is the mean value of the enhancement necessity of all target regions in the feature group, It is the maximum gray value of the pixels in all target areas in the feature group.
[0081] In one embodiment, performing image enhancement processing on the to-be-enhanced region in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram specifically includes: In the first step, the grayscale correction value of at least part of the pixels in each area to be enhanced is determined by a histogram equalization algorithm.
[0082] It can be understood that the basic principle of the histogram equalization algorithm is to calculate the cumulative histogram of each frame sub-image and map the pixel value to a new pixel value, that is, the grayscale correction value, so that the cumulative histogram becomes evenly distributed. In this way, the originally too dark or too bright area to be enhanced will be properly adjusted, thereby improving the image quality of the echocardiogram.
[0083] In the second step, if the grayscale correction value is not within the grayscale mapping range corresponding to the feature group to which the to-be-enhanced region belongs, the grayscale mapping value with the smallest difference with the grayscale correction value within the grayscale mapping range is used as the grayscale update value.
[0084] In this embodiment, a unified grayscale mapping range is used to limit the grayscale changes of all areas to be enhanced in each feature group. When the grayscale value of each pixel is updated, if the preliminary grayscale correction value is not within the grayscale mapping range, the grayscale value with the smallest difference within the grayscale mapping range is selected as the grayscale update value.
[0085] In the third step, the grayscale values of at least some pixels in the area to be enhanced in each feature group are updated according to the grayscale update value to obtain an enhanced echocardiogram.
[0086] In this embodiment, the grayscale correction value initially obtained is replaced by the grayscale update value, and then the grayscale value of at least part of the pixels in the area to be enhanced is updated using the grayscale update value to achieve enhancement processing of each area to be enhanced, thereby obtaining each frame sub-image of the ultrasound cardiogram after enhancement processing.
[0087] In some embodiments, the enhanced echocardiogram is input into a pre-established intelligent detection and segmentation model to obtain an echocardiogram segmentation result output by the intelligent detection and segmentation model. The intelligent detection and segmentation model can adopt a Mask R-CNN (Mask Region-based Convolutional Neural Network) architecture. In the model training stage, labeled enhanced echocardiogram samples can be used as training data sets, wherein the sample data in the training sample set adopts a single-channel semantic label, and the pixels belonging to the edge tissue area are labeled as 0, and the pixels belonging to the heart structure area are labeled as 1. The loss function used in the training process is a cross-entropy loss function. After training, the intelligent detection and segmentation model can segment the input enhanced echocardiogram to obtain an echocardiogram segmentation result including the heart structure area and the edge tissue area.
[0088] In summary, the intelligent detection and segmentation method of the echocardiogram provided in the embodiment of the present invention quantifies the necessity of enhancement of each target area through the specific feature performance of different target areas in the echocardiogram, and uses an adaptive histogram equalization algorithm to enhance the echocardiogram to avoid over-enhancement and distortion problems, thereby achieving the purpose of accurately segmenting the echocardiogram.
[0089] Based on the same general inventive concept, the present invention also protects an intelligent detection and segmentation device for echocardiography. The intelligent detection and segmentation device for echocardiography provided by the present invention is described below. The intelligent detection and segmentation device for echocardiography described below and the intelligent detection and segmentation method for echocardiography described above can be referenced to each other.
[0090] See also Figure 4 , which shows a structural diagram of an intelligent detection and segmentation device for echocardiography provided by an embodiment of the present invention, such as Figure 4 As shown, the intelligent detection and segmentation device for echocardiography provided by the embodiment of the present invention specifically includes: An acquisition module 210, for acquiring an echocardiogram to be segmented; The processing module 220 is used to divide each sub-image frame in the echocardiogram into a plurality of target regions; A division module 230 is used to divide all target areas belonging to the same feature area in adjacent frame sub-images into the same feature group to obtain multiple feature groups; An extraction module 240 is used to determine the enhancement necessity correction value of each target area, and extract the area to be enhanced in each feature group according to the enhancement necessity correction value of each target area; An enhancement module 250 is used to determine the grayscale mapping range corresponding to each feature group, and perform image enhancement processing on the to-be-enhanced region in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram; The segmentation module 260 is used to input the enhanced echocardiogram into a pre-established intelligent detection segmentation model to obtain an echocardiogram segmentation result output by the intelligent detection segmentation model.
[0091] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0092] See also Figure 5 , which shows a structural diagram of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the intelligent detection and segmentation method of the echocardiogram provided in the above-mentioned embodiments.
[0093] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0094] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the intelligent detection and segmentation method of echocardiography provided in the above-mentioned embodiments.
[0095] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the intelligent detection and segmentation method of echocardiography provided in the above-mentioned embodiments.
[0096] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0098] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0099] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An intelligent detection and segmentation method for echocardiography, characterized in that: The method comprises: acquiring an echocardiogram to be segmented; Segmenting each sub-image frame in the echocardiogram into a plurality of target regions respectively; Divide all target regions belonging to the same feature region in adjacent frame sub-images into the same feature group to obtain multiple feature groups; Determining a correction value of the necessity of enhancement of each target area, and extracting a region to be enhanced in each feature group according to the correction value of the necessity of enhancement of each target area; Determine the grayscale mapping range corresponding to each feature group, and perform image enhancement processing on the area to be enhanced in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram; Inputting the enhanced echocardiogram into a pre-established intelligent detection segmentation model to obtain an echocardiogram segmentation result output by the intelligent detection segmentation model; The determining of the enhancement necessity correction value of each target area includes: Obtaining the grayscale value of each pixel in each target area, the grayscale value of each pixel in an adjacent area of the target area, and the area of the target area; Calculate the characteristic expression degree of each target area according to the grayscale value of each pixel point in each target area and the grayscale value of each pixel point in the adjacent area of the target area; According to the characteristic expression degree of each target area, an initial value of the enhancement necessity of each target area is calculated; The enhancement necessity correction value of each target area is calculated based on the enhancement necessity initial value, the characteristic expression degree and the area of each target area.
2. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: The step of dividing each sub-image frame in the echocardiogram into a plurality of target regions comprises: Extracting a sector-shaped region in each sub-image frame in the echocardiogram; Performing clustering processing on the pixel points in each of the fan-shaped areas to obtain a plurality of clusters; A connected region composed of continuous adjacent pixel points in each of the clusters is taken as a target region, and a plurality of target regions corresponding to each frame sub-image are obtained.
3. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: The step of dividing all target regions belonging to the same feature region in adjacent frame sub-images into the same feature group includes: Obtain the overlap area, the absolute value of the difference between the edge chain codes and the grayscale intersection size of any two target areas in adjacent frame sub-images; According to the overlapped area of any two target regions in the adjacent frame sub-images, the absolute value of the difference of the edge chain codes and the grayscale intersection size, the possibility evaluation value that any two target regions in the adjacent frame sub-images belong to the same feature region is calculated; All target areas whose likelihood evaluation values are greater than a preset evaluation threshold are divided into the same feature group.
4. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: The step of calculating the characteristic expression degree of each target area according to the grayscale value of each pixel in each target area and the grayscale value of each pixel in an adjacent area of the target area comprises: According to the grayscale value of each pixel in each target area, the grayscale mean and grayscale variance of all the pixels in each target area are calculated; The grayscale difference between each target area and each adjacent area is calculated based on the grayscale mean of all pixels in each target area and the grayscale mean of all pixels in the adjacent area of the target area. Calculating the grayscale representation value of each target area according to the grayscale mean and grayscale variance of all pixels in each target area; The grayscale difference value is divided by the grayscale expression value to obtain the characteristic expression level of each target area.
5. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: The step of calculating the initial value of the enhancement necessity of each target area according to the characteristic expression degree of each target area includes: For each of the target regions, according to the degree of feature expression of each of the target regions, respectively determine a first feature expression mean of all target regions in the cluster to which the target region belongs, and a second feature expression mean of all target regions in the sub-image to which the target region belongs; Determine the number of first gray levels of all pixels in the target area, and determine the number of second gray levels of all pixels in each target area in the cluster to which the target area belongs; Calculating a feature expression saliency value of the target area in the corresponding sub-image according to the feature expression degree, the first feature expression mean value, and the second feature expression mean value; Taking the first gray level quantity as a quotient and the second gray level quantity as a quotient, a gray level quantity ratio is obtained; An initial value of the necessity for enhancement of each of the target regions is calculated based on the feature significance value and the gray level quantity ratio.
6. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: The step of calculating the enhancement necessity correction value of each target area according to the enhancement necessity initial value, the characteristic expression degree and the area of each target area includes: According to the characteristic expression degree and the area of each target area, respectively determine the third characteristic expression mean value and the area mean value of all target areas in the characteristic group to which the target area belongs; Calculate the performance weight of each target area according to the characteristic performance degree, the area, the third characteristic performance mean and the area mean of each target area; According to the initial enhancement necessity value and the performance weight value of each target area, the enhancement necessity correction value of the target area is calculated.
7. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: Determining the grayscale mapping range corresponding to each feature group includes: According to the enhancement necessity correction values of all target areas in each feature group, the enhancement necessity mean of each feature group is calculated; Determine the minimum grayscale value of the pixels in each target area, and calculate the minimum grayscale mean value of all target areas in each feature group based on the minimum grayscale value; Multiplying the enhancement necessity mean of each feature group by the minimum grayscale mean to obtain a range lower limit value; Determine the maximum grayscale value of all pixels in the target area in each feature group, and use the maximum grayscale value as the upper limit of the range; According to the lower limit value of the range and the upper limit value of the range, a grayscale mapping range corresponding to each feature group is obtained.
8. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: Before segmenting each sub-image frame in the echocardiogram into a plurality of target regions, the method further comprises: De-noising is performed on each sub-image frame in the echocardiogram.
9. The intelligent detection and segmentation method of echocardiography according to claim 1, characterized in that: The step of performing image enhancement processing on the area to be enhanced in each feature group according to the grayscale mapping range to obtain an enhanced echocardiogram includes: Determine the grayscale correction value of at least part of the pixels in each area to be enhanced by using a histogram equalization algorithm; If the grayscale correction value is not within the grayscale mapping range corresponding to the feature group to which the to-be-enhanced area belongs, the grayscale mapping value with the smallest difference from the grayscale correction value within the grayscale mapping range is used as the grayscale update value; The grayscale values of at least some of the pixels in the area to be enhanced in each feature group are updated according to the grayscale update value to obtain an enhanced echocardiogram.
Citation Information
Patent Citations
Cluster segmentation method for ancient architecture wall inscription contaminated writing brush character image
CN105069788A
Gas infrared video enhancement method and device and storage medium
CN109727202A
Multifunctional electric power image intelligent analysis device based on AI deep learning
CN113610874A
Ship target detection method based on local saliency feature measurement
CN114373135A
Oral CT abnormal lesion area enhanced segmentation method
CN117455934A
Cited By
Double-ventricle automatic outlining method and system based on echocardiography
CN121904053A
