An ultrasound examination system for gynecological and obstetric tumors

By calculating and iteratively updating the grayscale threshold in ultrasound image processing, the problem of insufficient discernible characteristics and adaptability of threshold segmentation in ovarian ultrasound images is solved, and the segmentation effect is improved.

CN118587239BActive Publication Date: 2024-10-01辽宁志圣达生物科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411074356.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-01
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

In existing ultrasound image processing, threshold segmentation has weak discernible characteristics and limited adaptability when segmenting ovarian ultrasound images, resulting in poor segmentation results.

Method used

By obtaining the suspected target pixels with grayscale values ​​in the ovarian ultrasound image, dividing the detection area, calculating the range distribution characteristics and change characteristic indicators, obtaining the target possibility, iteratively updating the initial grayscale threshold until the stopping condition is met, and obtaining the final grayscale threshold for segmentation.

Benefits of technology

It improves the credibility and robustness of the threshold, reduces the impact of interference, enhances the segmentation effect, reduces over-segmentation and under-segmentation, and improves the segmentation effect of the image area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587239B_ABST
    Figure CN118587239B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of regional segmentation, and in particular to a gynecological tumor ultrasound inspection system. The present invention divides an ovarian ultrasound image into detection areas according to suspected target pixel points obtained by grayscale values; obtains the target possibility of each detection area according to the distribution of suspected target pixel points in the regional range of each detection area and the deviation change of the distribution of suspected target pixel points in the regional range, and obtains the initial grayscale threshold value based on the target possibility and the grayscale value according to the different distribution of the target possibility; iterates to obtain new suspected target pixel points and obtains a new initial grayscale threshold value, and stops iteration until the suspected target pixel points and the initial grayscale threshold value change stably, and obtains the final grayscale threshold value to segment the ovarian ultrasound image to obtain the target area. The present invention takes into account the distribution characteristics of cysts in ultrasound images, reduces the over-segmentation and under-segmentation, enhances the adaptability of the threshold value, and improves the segmentation effect of the image area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of region segmentation, and in particular to a gynecological tumor ultrasonic examination system. Background Art

[0002] Ultrasonic imaging has become an important means of detecting tumors due to its low cost, high cost performance and non-invasiveness. One form of gynecological tumor is ovarian cysts. Ovarian ultrasound images contain a large amount of glandular tissue, which has many shadows and strong interference. Therefore, computer-aided systems are particularly important in imaging examinations, and image segmentation is an important image processing link in computer-aided systems.

[0003] In the existing ultrasound image processing process, threshold segmentation is often used to segment ovarian ultrasound images. Threshold segmentation requires a preset threshold based on the grayscale situation. However, due to the complexity of the cyst lesion morphology and the interference of conventional shadows, under-segmentation or over-segmentation is easily caused during segmentation. The threshold's identifiable characteristics are weak and its adaptability is limited, resulting in poor segmentation effect. Summary of the invention

[0004] In order to solve the technical problem that when using threshold segmentation to segment ovarian ultrasound images in the prior art, the threshold has weak identifiable characteristics and limited adaptability, resulting in poor segmentation effect, the purpose of the present invention is to provide a gynecological tumor ultrasound examination system, and the technical solution adopted is as follows:

[0005] The present invention provides a gynecological tumor ultrasound examination system, comprising a memory and a processor, wherein the processor executes a computing program stored in the memory to implement the following method steps:

[0006] Acquire an ovarian ultrasound image; obtain suspected target pixel points according to the grayscale value in the ovarian ultrasound image, and divide the ovarian ultrasound image into detection areas based on preset division conditions;

[0007] Determine the area range of each detection area in different preset directions according to the number of other detection areas in each detection area in different preset directions; obtain the range distribution characteristic index of each detection area in the corresponding preset direction according to the distribution of suspected target pixel points corresponding to all detection areas in the area range in the preset direction; obtain the change characteristic index of each detection area in the corresponding preset direction according to the degree of deviation change of the distribution of suspected target pixel points in the area range of each detection area in each preset direction;

[0008] According to the range distribution characteristic index and change characteristic index of each detection area in different preset directions, the target possibility of each detection area is obtained; based on the size distribution of the target possibility of all detection areas, according to the target possibility and gray value of each detection area, the initial gray threshold of the ovarian ultrasound image is obtained;

[0009] The suspected target pixel points in the ovarian ultrasound image are updated according to the initial grayscale threshold, and a new initial grayscale threshold is obtained by iteration; until the change in the number of suspected target pixel points and the size change of the initial grayscale threshold meet the stopping condition, the iteration is stopped and the final grayscale threshold of the ovarian ultrasound image is obtained; the target area of ​​the ovarian ultrasound image is obtained by segmentation through the final grayscale threshold.

[0010] Furthermore, the method for obtaining the range distribution characteristic index includes:

[0011] Each detection area is used as a reference area in turn, and for the area range in any preset direction of the reference area, the number of suspected target pixels in each detection area within the area is counted as the feature value of each detection area within the area;

[0012] Calculate the eigenvalue mean of all eigenvalues ​​of the reference area within the area; obtain the eigenvalue variance based on the eigenvalue mean and each eigenvalue within the area; obtain the range distribution characteristic index of the reference area in the corresponding preset direction based on the eigenvalue mean and the eigenvalue variance within the area; the eigenvalue mean is positively correlated with the range distribution characteristic index, and the eigenvalue variance is negatively correlated with the range distribution characteristic index.

[0013] Furthermore, the method for obtaining the change characteristic index includes:

[0014] The difference between the characteristic value of the reference area and the maximum characteristic value within the area is used as the first deviation value of the reference area; the difference between the characteristic value of the reference area and the maximum characteristic value within the area is used as the second deviation value of the reference area; the maximum value of the first deviation value and the second deviation value is used as the deviation change value of the reference area within the area;

[0015] According to the characteristic value of the reference area, the deviation change value of the reference area within the area, and the range of the characteristic value within the area, the change characteristic index of the reference area in the corresponding preset direction is obtained; the characteristic value of the reference area is positively correlated with the change characteristic index, and the deviation change value and the range are both negatively correlated with the change characteristic index.

[0016] Furthermore, the method for obtaining the target possibility includes:

[0017] For any preset direction of each detection area, the product of the range distribution characteristic index and the change characteristic index of each detection area in the preset direction is used as the direction possibility of each detection area in the preset direction;

[0018] The target possibility of each detection area is obtained by weighted averaging all directional possibilities in each detection area; the weighted weight is positively correlated with the size of the directional possibility.

[0019] Furthermore, the method for obtaining the initial grayscale threshold includes:

[0020] The target possibility of each detection area is normalized to obtain the possibility weight of each detection area; the detection area is classified into two categories according to the size of the target possibility of each detection area to obtain the category corresponding to the detection area;

[0021] For any category, calculate the cumulative value of the pixel values ​​corresponding to all pixels in each detection area of ​​the category as the cumulative pixel value of each detection area; multiply the cumulative pixel value of each detection area by the possibility weight as the adjusted pixel sum value of each detection area; take the ratio of the cumulative value of the adjusted pixel sum values ​​of all detection intervals in the category to the total number of all pixels in the category as the adjusted grayscale value of the category;

[0022] The adjusted grayscale values ​​of all categories were weighted and averaged to obtain the initial grayscale threshold of the ovarian ultrasound image.

[0023] Furthermore, the iteration is stopped and the final grayscale threshold of the ovarian ultrasound image is obtained until the change in the number of suspected target pixels and the change in the size of the initial grayscale threshold meet the stopping condition, including:

[0024] Obtain the number of suspected target pixels and the initial grayscale threshold of each iteration; calculate the difference in number between the suspected target pixels of each iteration and the suspected target pixels of the previous iteration, and use the ratio of the difference in number to the number of suspected target pixels of the previous iteration as the pixel number change value of each iteration; use the difference between the initial grayscale threshold of each iteration and the initial grayscale threshold of the previous iteration as the threshold change value of each iteration;

[0025] When the pixel quantity change values ​​of consecutive preset number of iterations are all less than the preset quantity change threshold, and the threshold change value of the current iteration is less than the preset grayscale change threshold, the iteration is stopped and the initial grayscale threshold corresponding to the current iteration is used as the final grayscale threshold of the ovarian ultrasound image.

[0026] Furthermore, the target area of ​​the ovarian ultrasound image is obtained by final grayscale threshold segmentation, including:

[0027] Binary segmentation is performed according to the final grayscale threshold, and the target range obtained by segmentation is used as the target area of ​​the ovarian ultrasound image.

[0028] Furthermore, the method for acquiring the suspected target pixel point includes:

[0029] Pixels in the ovarian ultrasound image whose grayscale values ​​are less than or equal to a preset target threshold are regarded as suspected target pixels in the ovarian ultrasound image.

[0030] Furthermore, dividing the ovarian ultrasound image into detection areas based on preset division conditions includes:

[0031] The intersection of the extension lines of the straight line boundary of the corresponding sector of the ovarian ultrasound image is taken as the pole; with the pole as the center, the isoangular lines and isodiameter lines in the ovarian ultrasound image are obtained according to the preset division conditions, and the adjacent isoangular lines and isodiameter lines constitute the detection area;

[0032] The preset division conditions are: making equal angle lines in the ovarian ultrasound image according to the preset polar angle value, and making equal diameter lines in the ovarian ultrasound image according to the preset polar diameter value.

[0033] Furthermore, the method for obtaining the area range includes:

[0034] For any detection area, when there are a preset number of other detection areas in the preset direction of the detection area, the detection area and the corresponding preset number of other detection areas in the corresponding preset direction are used as the area range of the detection area in the preset direction; when there are other detection areas in the preset direction of the detection area but the number is less than the preset number, the detection area and all other detection areas in the corresponding preset direction are used as the area range of the detection area in the preset direction; the preset number is a positive number;

[0035] When there is no other detection area in the detection area under the preset direction, the direction possibility of the detection area in the corresponding preset direction is set as the preset direction possibility.

[0036] The present invention has the following beneficial effects:

[0037] The present invention obtains the distribution of suspected target pixels in advance based on the grayscale value, and divides the detection area based on the ovarian ultrasound image, so as to facilitate the analysis of the local distribution of pixels. Considering that the intensity of the ultrasonic echo of the corresponding cyst area is relatively uniform and continuously distributed, the range distribution characteristic index is obtained according to the distribution of the suspected target pixels in the regional range of each detection area, and the continuous distribution characteristics are analyzed through the range distribution characteristic index. Further, the variation characteristic index is obtained according to the deviation change of the suspected target pixel distribution in the regional range, and the uniformity characteristic analysis is performed through the variation characteristic index. Combining the two features, the target possibility of each detection area can be obtained more comprehensively and accurately. Through the target possibility, the target area that may be required can be preliminarily screened. According to the different distribution of the target possibility size, different areas can be distinguished based on different target possibility sizes and the initial threshold can be constructed, so as to minimize the influence of the interference part on the initial grayscale threshold. Further, the suspected target pixel points can be iteratively segmented through the initial grayscale threshold, and a new initial grayscale threshold can be obtained to improve the credibility and robustness of the threshold. Finally, when the segmentation situation gradually stabilizes, that is, according to the change in the number of suspected target pixels and the change in the size of the initial grayscale threshold, the iterative process can be stopped to obtain the final grayscale threshold. The final grayscale threshold can segment the ovarian ultrasound image to obtain a target area with a better segmentation effect. The present invention considers the distribution characteristics of the lesion part of the cyst in the ultrasound image, adjusts the adaptive threshold selection and segmentation, reduces the over-segmentation and under-segmentation, improves the identifiable characteristics of the threshold, enhances the adaptability of the threshold, and improves the segmentation effect of the image area. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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.

[0039] Figure 1 The present invention provides a flowchart of a method for implementing an ultrasonic examination system for gynecological tumors according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation, structure, features and effects of a gynecological tumor ultrasound examination system proposed by the present invention 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.

[0041] 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.

[0042] The specific scheme of the gynecological tumor ultrasound examination system provided by the present invention is described in detail below with reference to the accompanying drawings.

[0043] See also Figure 1 , which shows a flow chart of a method for implementing a gynecological tumor ultrasound examination system provided by an embodiment of the present invention, the method comprising the following steps:

[0044] S1: Acquire an ovarian ultrasound image; obtain suspected target pixel points according to the grayscale value in the ovarian ultrasound image, and divide the ovarian ultrasound image into detection areas based on preset division conditions.

[0045] In an embodiment of the present invention, an ultrasonic diagnostic instrument can be used to obtain an ovarian ultrasonic image. It should be noted that the ovarian ultrasonic image is a grayscale image after being generated. Since the ovarian region coexists with the gland and fibrous tissue, it is difficult to directly distinguish the cyst part in the ovary based on the ovarian ultrasonic image. Therefore, it is necessary to reduce the interference of the shadow part caused by other tissue parts to achieve a better segmentation effect on the target cyst area in the ovary. The acquisition of ultrasonic images is a technical means well known to those skilled in the art and will not be elaborated here.

[0046] Since the cyst area is composed of uniform liquid, it is obviously different from the surrounding tissue during the ultrasonic detection process, and the echo generated by the ultrasound in the whole area is not obvious, so the gray value in the ultrasound image is small and distributed continuously and evenly. Therefore, the pixel points of the cyst area can be determined by the gray value, but because there are blood vessels and other fibrous tissues in the ovarian ultrasound image, the bright spots are generated due to the strong echo signal, and the local weak echo of the tissue will also produce partial shadow areas, which will cause errors in direct segmentation.

[0047] In the embodiment of the present invention, the suspected target pixel points are first obtained according to the size of the grayscale value in the ovarian ultrasound image, that is, after preliminary screening according to the grayscale characteristics, the error degree is analyzed. Preferably, the pixel points in the ovarian ultrasound image whose grayscale value is less than or equal to the preset target threshold are used as the suspected target pixel points in the ovarian ultrasound image. The suspected target pixel points are the cyst part pixel points and the interference part pixel points that meet the condition of small grayscale value. In the embodiment of the present invention, the preset target threshold is 20, and the specific value can be adjusted by the implementer according to the specific implementation situation.

[0048] Since the cyst area is evenly distributed and has strong continuous distribution in the ovarian ultrasound image, the detection area is divided for subsequent analysis of the distribution. Therefore, the ovarian ultrasound image is divided into detection areas based on preset division conditions. Preferably, the intersection of the extension lines of the straight line boundary of the ovarian ultrasound image corresponding to the sector is taken as the pole, and the isogonic lines and isodiameter lines in the ovarian ultrasound image are obtained according to the preset division conditions with the pole as the center. In the embodiment of the present invention, the preset division conditions are: the isogonic lines in the ovarian ultrasound image are made according to the preset polar angle value, and the isodiameter lines in the ovarian ultrasound image are made according to the preset polar diameter value. The preset polar angle value is 3, that is, starting from the straight line boundary on one side of the sector, a ray is made in the ovarian ultrasound image with the pole as the starting point every 3 degrees of polar angle, and each ray is an isogonic line. The preset polar diameter value is 3, that is, starting from the smaller curved boundary of the sector, a curve parallel to the curved boundary is made every 3 polar diameter lengths as the isodiameter lines of the ovarian ultrasound image. It should be noted that since the ultrasound probe is arc-shaped, the radiated ultrasound is also arc-shaped, so the presented ultrasound image is also fan-shaped.

[0049] Finally, the adjacent equiangular lines and equidiameter lines form the detection area, that is, the boundary of each detection area is composed of a group of adjacent equiangular lines and a group of adjacent equidiameter lines. The distribution of the suspected target pixels is further analyzed through the obtained detection area.

[0050] S2: Determine the area range of each detection area in different preset directions according to the number of other detection areas in each detection area in different preset directions; obtain the range distribution characteristic index of each detection area in the corresponding preset direction according to the distribution of suspected target pixel points corresponding to all detection areas in the area range in the preset direction; obtain the change characteristic index of each detection area in the corresponding preset direction according to the degree of deviation change of the distribution of suspected target pixel points in the area range of each detection area in each preset direction.

[0051] Ovarian cysts have a cystic structure, that is, they are continuous in multiple directions. Therefore, in order to improve the accuracy of the continuity analysis of each detection area, analysis is performed from multiple directions. The area range of each detection area in different preset directions is determined according to the number of other detection areas in each detection area in different preset directions, and each detection area is analyzed based on the area range.

[0052] In one embodiment of the present invention, for any detection area, all detection areas are subjected to the same analysis, and the preset directions are the horizontal right direction and the vertical downward direction. The specific direction setting implementer can adjust according to the specific implementation situation. When there are a preset number of other detection areas in the detection area under the preset direction, it means that the desirable area range meets the analysis, and the detection area and the corresponding preset number of other detection areas in the corresponding preset direction are used as the area range of the detection area in the preset direction. In the embodiment of the present invention, the preset number is a positive number, and the preset number is set to 5. The specific value implementer can adjust according to the specific implementation situation, that is, 5 other detection areas are taken in the horizontal right direction of the detection area, and together with the detection area, they constitute the area range of the detection area in the horizontal right direction, and 5 other detection areas are taken in the vertical downward direction of the detection area, and together with the detection area, they constitute the area range of the detection area in the vertical downward direction.

[0053] Furthermore, when there are other detection areas in the detection area under the preset direction but the number is less than the preset number, that is, when the number of other detection areas in the preset direction is small, the detection area and all other detection areas in the corresponding preset direction will be used as the area range of the detection area in the preset direction, that is, the detection area and the other detection areas will be used as the range of the detection area according to the remaining other detection areas.

[0054] Furthermore, when there are no other detection areas in the detection area under the preset direction, it means that the detection is the last detection area in the corresponding preset direction. Therefore, the direction possibility of the detection area in the corresponding preset direction is set to the preset direction possibility. The direction possibility represents the possibility that the detection area is the target area in the corresponding direction. The calculation method of the direction possibility is shown in the subsequent steps. In an embodiment of the present invention, the preset direction possibility is set to 0.1, and the specific value can be adjusted by the implementer according to the specific implementation situation.

[0055] The distribution of suspected target pixels is analyzed through the area range of each detection area. First, based on the continuity of the regional distribution in the cyst area, the analysis is performed. According to the distribution of suspected target pixels corresponding to all detection areas within the area range under the preset direction, the range distribution characteristic index of each detection area under the corresponding preset direction is obtained.

[0056] Preferably, each detection area is taken as a reference area in turn. For the area range in any preset direction of the reference area, the number of suspected target pixels in each detection area within the area is counted as the feature value of each detection area within the area. The number of suspected target pixels is used for analysis. When there is continuity, the distribution quantity between areas is similar.

[0057] Furthermore, the mean of the eigenvalues ​​of all eigenvalues ​​in the reference area within the area is calculated, and the corresponding calculation formula is:

[0058]

[0059] In the formula, Expressed as The detection area is The mean of the eigenvalues ​​of all eigenvalues ​​in the region under the preset direction, Expressed as The detection area is The total number of detection areas in the area range under the preset direction, Represented as the first The feature value of the detection area.

[0060] According to the eigenvalue mean and each eigenvalue within the region, the eigenvalue variance is obtained, and the corresponding calculation formula is:

[0061]

[0062] In the formula, Expressed as The detection area is The eigenvalue variance within the region under the preset direction, Expressed as The detection area is The mean of the eigenvalues ​​of all eigenvalues ​​in the region under the preset direction, Expressed as The detection area is The total number of detection areas in the area range under the preset direction, Represented as the first The feature value of the detection area.

[0063] According to the eigenvalue mean and eigenvalue variance within the region, the range distribution characteristic index of the reference region in the corresponding preset direction is obtained. The eigenvalue mean is positively correlated with the range distribution characteristic index, and the eigenvalue variance is negatively correlated with the range distribution characteristic index. In the embodiment of the present invention, the expression of the range distribution characteristic index is:

[0064]

[0065] In the formula, Expressed as The detection area is Range distribution characteristic indicators under a preset direction, Expressed as The detection area is The eigenvalue variance within the region under the preset direction, Expressed as The detection area is The mean of the eigenvalues ​​of all eigenvalues ​​in the region under the preset direction, It is represented as a preset adjustment parameter, the purpose of which is to prevent the denominator from being zero, which makes the formula meaningless. In the embodiment of the present invention, it is set to 0.01, and the specific value can be adjusted by the implementer.

[0066] Among them, The detection area is the reference area. When the eigenvalue variance is smaller, it means that the quantity distribution of the reference area in the local area range under the corresponding preset direction is more uniform, the distribution is continuous, and the corresponding reference area is more likely to be the target part corresponding to the cyst. At this time, the range distribution characteristic index is larger. When the eigenvalue mean is larger, it means that the quantity distribution of the reference area in the local area range under the corresponding preset direction is larger. The more suspected target pixels, the more likely it is the target part corresponding to the cyst. At this time, the range distribution characteristic index is larger. Therefore, in the form of ratio, it can be reflected that the eigenvalue mean is positively correlated with the range distribution characteristic index, and the eigenvalue variance is negatively correlated with the range distribution characteristic index. In other embodiments of the present invention, other basic mathematical operations can be used to reflect that the eigenvalue mean is positively correlated with the range distribution characteristic index, such as addition, and the eigenvalue variance is negatively correlated with the range distribution characteristic index, such as subtraction, etc., which are not limited here.

[0067] Secondly, based on the characteristics of uniform distribution of regional distribution in the cyst area, an analysis is performed. According to the degree of deviation of the distribution of suspected target pixel points in the regional range of each detection area in each preset direction, the change characteristic index of each detection area in the corresponding preset direction is obtained.

[0068] Preferably, the difference between the characteristic value of the reference area and the maximum characteristic value within the area is used as the first deviation value of the reference area, the difference between the characteristic value of the reference area and the maximum characteristic value within the area is used as the second deviation value of the reference area, and the maximum value of the first deviation value and the second deviation value is used as the deviation change value of the reference area within the area. By calculating the degree of deviation between the characteristic value of the reference area and the extreme value, the stability of the reference area within the area is reflected. In the embodiment of the present invention, the specific expression of the deviation change value is:

[0069]

[0070] In the formula, Expressed as The detection area is The deviation change value of the area range under the preset direction, Expressed as The characteristic value of the detection area, Expressed as The detection area is The maximum eigenvalue within the area under the preset direction, Expressed as The detection area is The minimum eigenvalue within the area under the preset direction, Expressed as an absolute value extraction function, Expressed as a maximum extraction function.

[0071] in, Expressed as The detection area is The first deviation value in a preset direction, Expressed as The detection area is The second deviation value in a preset direction reflects the degree of deviation of the reference area in the corresponding preset direction by selecting the maximum deviation value. That is, the larger the deviation change value, the greater the deviation of the number of suspected target pixels in the reference area in the corresponding preset direction.

[0072] According to the characteristic value of the reference area, the deviation change value of the reference area within the area, and the range of the characteristic value within the area, the change characteristic index of the reference area in the corresponding preset direction is obtained, and the characteristic value of the reference area is positively correlated with the change characteristic index, and the deviation change value and the range are negatively correlated with the change characteristic index. In the embodiment of the present invention, the expression of the change characteristic index is:

[0073]

[0074] In the formula, Expressed as The detection area is The characteristic indicators of changes in a preset direction, Expressed as The detection area is The deviation change value of the area range under the preset direction, Expressed as The characteristic value of the detection area, Expressed as The detection area is The maximum eigenvalue within the area under the preset direction, Expressed as The detection area is The minimum eigenvalue within the area under the preset direction, It is represented as a preset adjustment parameter, the purpose of which is to prevent the denominator from being zero, which makes the formula meaningless. In the embodiment of the present invention, it is set to 0.01, and the specific value can be adjusted by the implementer.

[0075] in, Expressed as The detection area is The range within the regional range under a preset direction, when the range is smaller, it means that the overall change difference in the distribution of the suspected target pixel points within the regional range is smaller, the regional range tends to be stable, and the corresponding reference area is more likely to be the target part corresponding to the cyst. When the deviation change value is smaller, it means that the deviation degree of the reference area in the corresponding regional range is smaller, the local change of the reference area is more stable, and the reference area is more likely to be the target part corresponding to the cyst. And when the characteristic value of the reference area is larger, it means that the number of suspected target pixels is larger, and the corresponding area is more likely to be the target part corresponding to the cyst. Therefore, the relationship between the characteristic value, the deviation change value and the range and the change characteristic index is reflected by the ratio. When the change characteristic index is larger, the reference area is more likely to be the target part in the corresponding direction. In other embodiments of the present invention, other basic mathematical operations can also be used to reflect that the characteristic value of the reference area is positively correlated with the change characteristic index, and the deviation change value and the range are negatively correlated with the change characteristic index. There is no limitation here.

[0076] At this point, based on the distribution characteristics of the cyst area in the ultrasound image, the feature analysis of each detection area in each preset direction is completed, and the grayscale threshold of the ovarian ultrasound image is further analyzed in combination with the obtained features.

[0077] S3: According to the range distribution characteristic index and change characteristic index of each detection area in different preset directions, the target possibility of each detection area is obtained; based on the size distribution of the target possibility of all detection areas, according to the target possibility and grayscale value of each detection area, the initial grayscale threshold of the ovarian ultrasound image is obtained.

[0078] For each detection area, the target possibility of each detection area is obtained by combining the distribution characteristics under different preset directions, and the target possibility reflects the distribution similarity between each detection area and the target part corresponding to the cyst. Preferably, for any preset direction of each detection area, the product of the range distribution characteristic index and the change characteristic index of each detection area under the preset direction is used as the direction possibility of each detection area under the preset direction. In the embodiment of the present invention, the calculation formula of the direction possibility is:

[0079]

[0080] In the formula, Expressed as The detection area is Possible directions under a preset direction, Expressed as The detection area is The characteristic indicators of changes in a preset direction, Expressed as The detection area is Range distribution characteristic indicators under a preset direction.

[0081] Since part of the detection area is at the edge position, according to the preset direction in the embodiment of the present invention, part of the direction cannot satisfy the calculation of the direction possibility. Therefore, according to step S2, it can be known that the direction possibility of the part of the detection area in the preset direction is the preset direction possibility.

[0082] The directional possibility is used to reflect the similarity of each detection area with the target part features in different directions. All directional possibilities of each detection area are further weighted and averaged to obtain the target possibility of each detection area. In order to ensure the accuracy of the weighted calculation, the weighted weight is positively correlated with the size of the directional possibility, that is, the larger the directional possibility, the greater the weight is given, to ensure that for the cyst part with a slightly complex shape, its distribution similarity in a certain direction is not averaged out. In the embodiment of the present invention, the calculation formula corresponding to the weighted weight is:

[0083]

[0084] In the formula, Expressed as The detection area is The weighted weights in the preset directions, Expressed as The detection area is The characteristic indicators of changes in a preset direction, Expressed as The detection area is Range distribution characteristic indicators under a preset direction, It is expressed as a normalization function. It should be noted that normalization is a technical means well known to those skilled in the art. The normalization function can be linear normalization or standard normalization, etc. The specific normalization method is not limited here.

[0085] More credibility is given to directions with greater likelihood. In the embodiment of the present invention, the expression of target likelihood is:

[0086]

[0087] In the formula, Expressed as The target probability of the detection area is Expressed as The detection area is The weighted weights in the preset directions, Expressed as The detection area is Possible directions under a preset direction, Expressed as the total number of preset directions.

[0088] According to the size of the target possibility, the detection area can be divided into different categories, such as cyst target class and interference class. The reliability of the grayscale values ​​of different categories of detection areas is different. The pixel values ​​of the cyst target class have a high degree of credibility, which is more conducive to the screening of the grayscale threshold. Therefore, based on the size distribution of the target possibility of all detection areas, the initial grayscale threshold of the ovarian ultrasound image is obtained according to the target possibility and grayscale value of each detection area.

[0089] Preferably, the target possibility of each detection area is normalized to obtain the possibility weight of each detection area. The greater the target possibility, the higher the credibility of the detection area and the greater the proportion. The detection area is classified into two categories according to the size of the target possibility of each detection area to obtain the category corresponding to the detection area. In an embodiment of the present invention, the detection area is classified into two categories based on the target possibility using a support vector machine to obtain two categories of the detection area. It should be noted that the method of using a support vector machine for binary classification is a technical means well known to those skilled in the art and will not be described in detail here.

[0090] For any category, the analysis methods of the two categories are consistent. The cumulative value of the pixel values ​​corresponding to all pixels in each detection area in the category is calculated as the cumulative pixel value of each detection area. The product of the cumulative pixel value of each detection area and the possibility weight is used as the adjusted pixel sum value of each detection area to complete the weighted adjustment of the grayscale value in each detection area. The ratio of the cumulative value of the adjusted pixel sum value of all detection intervals in the category to the total number of all pixels in the category is used as the adjusted grayscale value of the category. In the embodiment of the present invention, the specific expression of the adjusted grayscale value is:

[0091]

[0092] In the formula, Represented as the adjusted grayscale value of the first category, Expressed as the total number of all pixels in the first category, Expressed as the total number of all detected regions in the first category, Expressed as The target probability of the detection area is Expressed as The accumulated pixel value of the detection area, Expressed as a normalized function.

[0093] in, Expressed as The probability weight of the detection area, Expressed as The possibility weight reflects the importance of each detection area. The adjusted grayscale value of each category is obtained by adjusting the pixel and value. In the embodiment of the present invention, the binary classification obtains different adjusted grayscale values ​​corresponding to the two categories, and the adjusted grayscale values ​​of all categories are further weighted and averaged to obtain the initial grayscale threshold of the ovarian ultrasound image. The calculation formula of the initial grayscale threshold is:

[0094]

[0095] In the formula, Represented as the initial grayscale threshold, Represented as the adjusted grayscale value of the first category, Expressed as the weighted weight of the first category, Represented as the adjusted grayscale value of the second category, is represented as the weighted weight of the second category. In the embodiment of the present invention, and All are set to 0.5. The specific values ​​can be adjusted by implementers according to the specific implementation situation and are not restricted here.

[0096] The initial grayscale threshold can achieve a more reasonable segmentation of the ovarian ultrasound image, but in order to prevent over-segmentation, the initial grayscale threshold is iteratively analyzed.

[0097] S4: Update the suspected target pixel points in the ovarian ultrasound image according to the initial grayscale threshold, and iterate to obtain a new initial grayscale threshold; until the change in the number of suspected target pixel points and the change in the size of the initial grayscale threshold meet the stopping condition, stop the iteration and obtain the final grayscale threshold of the ovarian ultrasound image; obtain the target area of ​​the ovarian ultrasound image through the final grayscale threshold segmentation.

[0098] The ovarian ultrasound image is segmented according to the initial grayscale threshold, and the pixels smaller than the initial grayscale threshold are used as new suspected target pixels in the ovarian ultrasound image to complete the update of the suspected target pixels. The possibility of new targets in each detection area is further analyzed based on the suspected target pixels, and the initial grayscale threshold is obtained. The optimal threshold is continuously iterated.

[0099] Until the change in the number of suspected target pixels and the change in the size of the initial grayscale threshold meet the stopping condition, that is, the optimal situation of threshold selection is judged through the change stability of the two values ​​of the number of suspected target pixels and the threshold size, the iteration is stopped and the final grayscale threshold of the ovarian ultrasound image is obtained.

[0100] Preferably, the number of suspected target pixels and the initial grayscale threshold of each iteration are obtained, the difference in number between the suspected target pixels of each iteration and the suspected target pixels of the previous iteration is calculated, and the ratio of the number difference to the number of suspected target pixels of the previous iteration is used as the pixel number change value of each iteration. The number change value reflects the difference in the number of pixels belonging to the target part obtained when the threshold is segmented. The smaller the number change value is, the smaller the difference between the two iterations is, and the more stable the segmentation is.

[0101] The difference between the initial gray threshold of each iteration and the initial gray threshold of the previous iteration is used as the threshold change value of each iteration. The threshold change value reflects the numerical difference of the initial gray threshold between two iterations. The smaller the threshold change value, the more stable the segmentation.

[0102] In one embodiment of the present invention, the preset continuous number is set to 3, the preset number change threshold is 0.005, and the preset grayscale change threshold is 0.5. The specific values ​​can be adjusted by the implementer according to the specific implementation situation. When the pixel number change values ​​of the consecutive preset number of iterations are all less than the preset number change threshold, and the threshold change value of the current iteration is less than the preset grayscale change threshold, that is, the number change values ​​of the three iterations before the current iteration are all less than 0.005, and the threshold change value of the current iteration is also less than 0.5, it means that the iterative threshold segmentation has stabilized, the iteration is stopped, and the initial grayscale threshold corresponding to the current iteration is used as the final grayscale threshold of the ovarian ultrasound image to obtain the optimal segmentation threshold.

[0103] Finally, the target area of ​​the ovarian ultrasound image can be obtained through the final grayscale threshold segmentation, and binary segmentation is performed according to the final grayscale threshold. The target range obtained by segmentation is used as the target area of ​​the ovarian ultrasound image. The target area corresponds to the cyst part. Based on the distribution characteristics of the cyst area in the ovarian ultrasound image, the influence of the interference area on the segmentation is reduced, and the segmentation effect is improved. It should be noted that the method of obtaining the target area by binary segmentation is a technical means well known to technicians in this field and will not be elaborated here.

[0104] In the embodiment of the present invention, the circularity of the target area and the ratio of the major diameter to the minor diameter may be calculated as inspection indicators for subsequent inspection of the target area, which is not limited here.

[0105] The present invention obtains the distribution of suspected target pixels in advance based on the grayscale value and divides the detection area based on the ovarian ultrasound image, so as to facilitate the analysis of the local distribution of pixels. Considering that the intensity of the ultrasonic echo of the corresponding cyst area is relatively uniform and continuously distributed, the range distribution characteristic index is obtained according to the distribution of the suspected target pixels in the regional range of each detection area, and the continuous distribution characteristics are analyzed through the range distribution characteristic index. The change characteristic index is further obtained according to the deviation change of the suspected target pixel distribution in the regional range, and the uniformity characteristic analysis is performed through the change characteristic index. Combining the two features can more comprehensively and accurately obtain the target possibility of each detection area. Through the target possibility, the target area that may be required can be preliminarily screened. According to the different distribution of the target possibility size, the interference part and the target part can be preliminarily determined. The initial threshold is constructed through the two parts to obtain the initial gray threshold that can minimize the interference area. Further, the suspected target pixel points can be iteratively segmented through the initial grayscale threshold, and a new initial grayscale threshold can be obtained to improve the credibility and robustness of the threshold. Finally, when the segmentation situation gradually stabilizes, that is, according to the change in the number of suspected target pixels and the change in the size of the initial grayscale threshold, the iterative process can be stopped to obtain the final grayscale threshold. The final grayscale threshold can segment the ovarian ultrasound image to obtain a target area with a better segmentation effect. The present invention considers the characteristics of the lesion part of the cyst in the ultrasound image, adjusts the adaptive threshold selection and segmentation, reduces the over-segmentation and under-segmentation, improves the identifiable characteristics of the threshold, enhances the adaptability of the threshold, and improves the segmentation effect of the image area.

[0106] 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.

[0107] 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. A gynecological tumor ultrasound examination system, comprising a memory and a processor, characterized in that: The processor executes the computing program stored in the memory to implement the following method steps: Acquire an ovarian ultrasound image; obtain suspected target pixel points according to the grayscale value in the ovarian ultrasound image, and divide the ovarian ultrasound image into detection areas based on preset division conditions; Determine the area range of each detection area in different preset directions according to the number of other detection areas of each detection area in different preset directions; obtain the range distribution characteristic index of each detection area in the corresponding preset direction according to the distribution of suspected target pixel points corresponding to all detection areas within the area range in the preset direction; According to the degree of deviation change of the distribution of the suspected target pixel points in the area range of each detection area in each preset direction, a change characteristic index of each detection area in the corresponding preset direction is obtained; According to the range distribution characteristic index and change characteristic index of each detection area in different preset directions, the target possibility of each detection area is obtained; based on the size distribution of the target possibility of all detection areas, according to the target possibility and gray value of each detection area, the initial gray threshold of the ovarian ultrasound image is obtained; The suspected target pixel points in the ovarian ultrasound image are updated according to the initial grayscale threshold, and a new initial grayscale threshold is obtained by iteration; until the change in the number of the suspected target pixel points and the change in the size of the initial grayscale threshold meet the stopping condition, the iteration is stopped and the final grayscale threshold of the ovarian ultrasound image is obtained; The target area of ​​the ovarian ultrasound image is obtained by final grayscale threshold segmentation; The method for obtaining the range distribution characteristic index includes: Each detection area is used as a reference area in turn, and for the area range in any preset direction of the reference area, the number of suspected target pixels in each detection area within the area is counted as the feature value of each detection area within the area; Calculate the eigenvalue mean of all eigenvalues ​​of the reference area within the area; obtain the eigenvalue variance according to the eigenvalue mean and each eigenvalue within the area; obtain the range distribution characteristic index of the reference area in the corresponding preset direction according to the eigenvalue mean and the eigenvalue variance within the area; the eigenvalue mean is positively correlated with the range distribution characteristic index, and the eigenvalue variance is negatively correlated with the range distribution characteristic index; The method for obtaining the change characteristic index includes: The difference between the characteristic value of the reference area and the maximum characteristic value within the area is used as the first deviation value of the reference area; the difference between the characteristic value of the reference area and the maximum characteristic value within the area is used as the second deviation value of the reference area; the maximum value of the first deviation value and the second deviation value is used as the deviation change value of the reference area within the area; According to the characteristic value of the reference area, the deviation change value of the reference area within the area, and the range of the characteristic value within the area, the change characteristic index of the reference area in the corresponding preset direction is obtained; the characteristic value of the reference area is positively correlated with the change characteristic index, and the deviation change value and the range are both negatively correlated with the change characteristic index.

2. The gynecological tumor ultrasound examination system according to claim 1, characterized in that: The method for obtaining the target possibility includes: For any preset direction of each detection area, the product of the range distribution characteristic index and the change characteristic index of each detection area in the preset direction is used as the direction possibility of each detection area in the preset direction; The target possibility of each detection area is obtained by weighted averaging all directional possibilities in each detection area; the weighted weight is positively correlated with the size of the directional possibility.

3. The gynecological tumor ultrasound examination system according to claim 1, characterized in that: The method for obtaining the initial grayscale threshold comprises: The target possibility of each detection area is normalized to obtain the possibility weight of each detection area; the detection area is classified into two categories according to the size of the target possibility of each detection area to obtain the category corresponding to the detection area; For any category, calculate the cumulative value of the pixel values ​​corresponding to all pixels in each detection area of ​​the category as the cumulative pixel value of each detection area; multiply the cumulative pixel value of each detection area by the possibility weight as the adjusted pixel sum value of each detection area; take the ratio of the cumulative value of the adjusted pixel sum values ​​of all detection intervals in the category to the total number of all pixels in the category as the adjusted grayscale value of the category; The adjusted grayscale values ​​of all categories were weighted and averaged to obtain the initial grayscale threshold of the ovarian ultrasound image.

4. The gynecological tumor ultrasound examination system according to claim 1, characterized in that: The method stops iterating and obtains the final grayscale threshold of the ovarian ultrasound image until the change in the number of suspected target pixels and the change in the size of the initial grayscale threshold meet the stopping condition, including: Obtain the number of suspected target pixels and the initial grayscale threshold of each iteration; calculate the difference in number between the suspected target pixels of each iteration and the suspected target pixels of the previous iteration, and use the ratio of the difference in number to the number of suspected target pixels of the previous iteration as the pixel number change value of each iteration; use the difference between the initial grayscale threshold of each iteration and the initial grayscale threshold of the previous iteration as the threshold change value of each iteration; When the pixel quantity change values ​​of consecutive preset number of iterations are all less than the preset quantity change threshold, and the threshold change value of the current iteration is less than the preset grayscale change threshold, the iteration is stopped and the initial grayscale threshold corresponding to the current iteration is used as the final grayscale threshold of the ovarian ultrasound image.

5. The gynecological tumor ultrasound examination system according to claim 1, characterized in that: The target area of ​​the ovarian ultrasound image is obtained by final grayscale threshold segmentation, including: Binary segmentation is performed according to the final grayscale threshold, and the target range obtained by segmentation is used as the target area of ​​the ovarian ultrasound image.

6. The gynecological tumor ultrasound examination system according to claim 1, characterized in that: The method for acquiring the suspected target pixel point comprises: Pixels in the ovarian ultrasound image whose grayscale values ​​are less than or equal to a preset target threshold are regarded as suspected target pixels in the ovarian ultrasound image.

7. The gynecological tumor ultrasound examination system according to claim 1, characterized in that: The step of dividing the ovarian ultrasound image into detection areas based on a preset division condition includes: The intersection of the extension lines of the straight line boundary of the corresponding sector of the ovarian ultrasound image is taken as the pole; with the pole as the center, the isoangular lines and isodiameter lines in the ovarian ultrasound image are obtained according to the preset division conditions, and the adjacent isoangular lines and isodiameter lines constitute the detection area; The preset division conditions are: making equal angle lines in the ovarian ultrasound image according to the preset polar angle value, and making equal diameter lines in the ovarian ultrasound image according to the preset polar diameter value.

8. The gynecological tumor ultrasound examination system according to claim 2, characterized in that: The method for obtaining the area range includes: For any detection area, when there are a preset number of other detection areas in the preset direction of the detection area, the detection area and the corresponding preset number of other detection areas in the corresponding preset direction are used as the area range of the detection area in the preset direction; when there are other detection areas in the preset direction of the detection area but the number is less than the preset number, the detection area and all other detection areas in the corresponding preset direction are used as the area range of the detection area in the preset direction; the preset number is a positive number; When there is no other detection area in the detection area under the preset direction, the direction possibility of the detection area in the corresponding preset direction is set as the preset direction possibility.