Auxiliary method for bone lesion identification in orthopedic imaging diagnosis
In the imaging diagnosis of bone tumors, gradient histogram and clustering technology are used to screen cluster center points, and combined with the SIFT algorithm for super-pixel segmentation, the problem of misclassification of small areas with contrast differences is solved and the accuracy of identification of bone lesions is improved. .
Patent Information
- Application Number
- CN202410948091.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the imaging diagnosis of bone tumors with the existing technology, the lesion areas with small contrast differences are prone to regional misclassification, which affects the lesion identification results.
By collecting X-ray images, performing grayscale processing and constructing gradient histograms, dividing gradient levels, clustering to obtain the initial clustering center point, screening the final clustering center point, combining the SIFT algorithm to obtain key points of bone lesions, and assigning weights. Superpixel segmentation to identify lesion areas.
The amount of calculation is reduced, over-segmentation is avoided, and the accuracy of identification of bone lesions is improved. In particular, the accurate division of pixels on weak edges enhances the possibility of identifying lesions.
Smart Images

Figure CN118485852B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a bone lesion identification auxiliary method for orthopedic imaging diagnosis. Background Art
[0002] Bone tumors are tumors that occur in bones or their appendages. Imaging diagnostic technology has made great progress in recent decades, including the increasing popularity of CT, MRI, ECT, PET, etc. X-rays are still very important basic examinations in the diagnosis and identification of bone tumors and should not be neglected. X-rays can show the location, morphology, margins and matrix of lesions, especially the type of bone destruction, calcification, consolidation and periosteal reaction, and other very useful information.
[0003] In the prior art, the method for lesion image recognition is mainly to first segment the lesion image, and then perform lesion recognition based on the segmented lesion image. Conventional methods for image segmentation include threshold segmentation, region growing, etc., but these two methods have good segmentation effects for different segmented areas with large contrast differences in lesion images, but are prone to regional misclassification for different segmented areas with small contrast differences, which in turn affects the lesion recognition results and thus affects the auxiliary diagnosis of lesions. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a bone lesion identification auxiliary method for orthopedic imaging diagnosis, and the technical solution adopted is as follows:
[0005] An embodiment of the present invention provides a bone lesion identification auxiliary method for orthopedic imaging diagnosis, the method comprising:
[0006] Collect an X-ray image of a patient's body part, perform grayscale processing on the X-ray image to obtain a corresponding grayscale image; obtain the gradient of each pixel in the grayscale image, and construct a gradient histogram with the gradient as the horizontal coordinate and the number of corresponding pixels as the vertical coordinate; perform gradient level division based on the number of pixels corresponding to each gradient in the gradient histogram to obtain at least two gradient levels;
[0007] Based on the gradient level, the pixels in the grayscale image are divided into clusters of equal number; based on the distance between the pixels, each cluster is clustered to obtain at least two initial cluster center points in the corresponding cluster; the gradients of other pixels in the neighborhood of each initial cluster center point are obtained to form a gradient sequence and a gray value sequence formed by gray values, and the similarity between each other pixel in the corresponding neighborhood and the corresponding initial cluster center point is calculated by combining the gradient sequence and the gray value sequence, and the similarity variance is calculated according to the similarity corresponding to each other pixel in the neighborhood to confirm the final cluster center point;
[0008] The final cluster center point is used as the seed point, and a weight is assigned to the corresponding seed point according to the gradient of the pixel points around each seed point; the SIFT algorithm is used to obtain the key points on the bone lesions in the grayscale image, and the characteristic distance between each key point and the seed point is calculated based on the color and spatial distance in combination with the weight, and the characteristic distance between the non-key point and the seed point is calculated based on the color and spatial distance. The X-ray image is superpixel segmented based on the characteristic distance, and the lesion area is identified using the X-ray image after superpixel segmentation.
[0009] Furthermore, the method of performing gradient level division based on the number of pixels corresponding to each gradient in the gradient histogram to obtain at least two gradient levels includes:
[0010] The average gradient is calculated based on the gradient of each pixel point, and each gradient in the gradient histogram that is greater than the average gradient is taken as a gradient level separately; for each gradient in the gradient histogram that is less than or equal to the average gradient, the number ratio is calculated based on the number of pixels corresponding to each gradient, and two consecutive gradients whose number ratio is greater than or equal to a preset ratio threshold are merged into the same gradient level, and each gradient whose number ratio is less than the preset ratio threshold is taken as a gradient level separately, thereby obtaining at least two gradient levels.
[0011] Furthermore, the method of clustering each cluster based on the distance between pixel points to obtain at least two initial cluster center points in the corresponding cluster includes:
[0012] Cluster all the pixels in the current cluster to obtain at least two cluster blocks, select the central pixel of each cluster block, calculate the distance between any two central pixels, merge the cluster blocks based on the minimum distance principle, and use the central pixel of the merged cluster block as the initial cluster center.
[0013] Furthermore, the method for acquiring the gradient sequence includes:
[0014] According to the gradient of each other pixel point in the neighborhood of the current initial cluster center point, the types of gradients are counted, and the gradients corresponding to each type form a gradient sequence.
[0015] Furthermore, the method of combining the gradient sequence and the gray value sequence to calculate the similarity between each other pixel point in the corresponding neighborhood and the corresponding initial cluster center point includes:
[0016] The gradient standard deviation and the grayscale standard deviation are calculated according to the gradient sequence and the grayscale standard deviation respectively; the first product between the gradient standard deviation and the grayscale standard deviation is obtained, and the absolute value of the difference in grayscale values between the initial cluster center point and any other pixel point in the neighborhood is calculated; the opposite of the sum of the first product and the absolute value of the difference is substituted into an exponential function with a constant e as the base to obtain the similarity between the corresponding other pixel points and the initial cluster center point.
[0017] Furthermore, the method for confirming the final cluster center point includes:
[0018] Set the similarity variance threshold. When the similarity variance is less than the similarity variance threshold, the corresponding initial cluster center point is confirmed as the final cluster center point. Conversely, when the similarity variance is greater than or equal to the similarity variance threshold, the corresponding initial cluster center point is confirmed not to be the final cluster center point.
[0019] Furthermore, the method of assigning weights to corresponding seed points according to the gradients of the pixels around each seed point includes:
[0020] Calculate the average gradient value between the corresponding pixels in the eight-neighborhood range of the seed point, and substitute the average gradient value into the exponential function with the constant e as the base to obtain the result as the weight of the corresponding seed point.
[0021] Furthermore, the method for calculating the feature distance between each key point and the seed point based on color and spatial distance in combination with weights includes:
[0022] The total distance between each key point and the seed point is obtained based on the color and spatial distance. The inverse of the weight of the seed point is substituted into the exponential function with the constant e as the base and multiplied by the total distance. The multiplication result is used as the characteristic distance between the corresponding key point and the seed point.
[0023] The present invention has the following beneficial effects: the present invention acquires a corresponding grayscale image by collecting an X-ray image, calculates the gradient of each pixel point based on the grayscale image to construct a gradient histogram, divides the gradient histogram into gradient levels, clusters the pixels according to the gradient levels to obtain a plurality of initial cluster center points, so that the pixels in a flat area are merged as irrelevant pixels to reduce the amount of calculation, and makes the clustering result faster and more accurate; to avoid the phenomenon of over-segmentation, the initial cluster center points are screened based on the similarity between each initial cluster center point and the neighboring pixel points to obtain an effective final cluster center point; in order to enable the pixel points on the weak edge corresponding to the bone lesion to be accurately divided into the super-pixel block corresponding to the lesion, a weight is assigned to each seed point, the pixel points on the weak edge corresponding to the bone lesion are also the key points on the bone lesion in the grayscale image, and the weight is used to reduce the distance between the pixel points on the weak edge corresponding to the bone lesion and the seed point, thereby enhancing the possibility that the pixel points on the weak edge corresponding to the bone lesion are accurately divided into the super-pixel block corresponding to the lesion, thereby making the super-pixel segmentation result more accurate and more convenient for identifying the bone lesion. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] 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.
[0025] Figure 1 A flowchart of the steps of a bone lesion identification auxiliary method for orthopedic imaging diagnosis provided by one embodiment of the present invention;
[0026] Figure 2 A schematic diagram of the gradients of pixel points in the four neighborhoods of the initial cluster center point provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] 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 method, structure, features and effects of a bone lesion identification auxiliary method for orthopedic imaging diagnosis 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.
[0028] 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.
[0029] The scenario targeted by the present invention is: after the patient takes an X-ray of the corresponding part at the initial diagnosis, the human body tissue on the X-ray is segmented to obtain different segmented areas to facilitate the doctor's diagnosis.
[0030] The following is a detailed description of a specific scheme of a bone lesion identification auxiliary method for orthopedic imaging diagnosis provided by the present invention in conjunction with the accompanying drawings.
[0031] See also Figure 1 , which shows a flowchart of a method for assisting bone lesion identification for orthopedic imaging diagnosis provided by an embodiment of the present invention, the method comprising the following specific steps:
[0032] Step S001, collect an X-ray image of the patient's body part, grayscale the X-ray image to obtain a corresponding grayscale image; obtain the gradient of each pixel in the grayscale image, and construct a gradient histogram with the gradient as the horizontal coordinate and the number of corresponding pixels as the vertical coordinate; divide the gradient level based on the number of pixels corresponding to each gradient in the gradient histogram to obtain at least two gradient levels.
[0033] Specifically, the purpose of the present invention is to automatically segment the X-ray image of the bone to obtain an accurate segmentation area. Therefore, it is necessary to obtain an X-ray image of the corresponding part of the patient, wherein the X-ray image is a qualified X-ray taken by the hospital's radiology department, and the obtained X-ray image is grayscaled to obtain a corresponding grayscale image. The grayscale processing is a well-known technology and will not be repeated in this solution.
[0034] Superpixel segmentation refers to irregular pixel blocks with certain visual significance composed of adjacent pixels with similar texture, color, brightness and other characteristics. It groups pixels by using the similarity of features between pixels, and uses a small number of superpixels instead of a large number of pixels to express image features, which greatly reduces the complexity of image post-processing. The selection of seed points in the superpixel segmentation process is very important for the segmentation results. In order to obtain the best seed points, analysis is performed based on grayscale images.
[0035] Since the segmentation area corresponding to the superpixel segmentation result of the image is determined based on the edge, the edge is usually where the grayscale changes greatly. The greater the grayscale change, the greater the gradient. The intensity of the gradient change reflects the magnitude of the grayscale change at the edge. Therefore, the gradient of each pixel of the grayscale image is first calculated. The present invention adopts the Sobel operator to calculate the gradient of the pixel point. This technology is a prior art and will not be described in detail in this scheme. Then, a gradient histogram is constructed according to the gradient of each pixel point, wherein the horizontal axis of the gradient histogram represents the size of the gradient and the vertical axis represents the number of pixels.
[0036] The gradient level is divided based on the number of pixels corresponding to each gradient in the gradient histogram to obtain at least two gradient levels. The specific method is as follows: since the pixel with a larger gradient is more likely to be a similar point on the edge, the average gradient is calculated based on the gradient of each pixel, and each gradient in the gradient histogram that is greater than the average gradient is taken as a gradient level separately; since the grayscale difference between certain edges of the lesion area and the normal area is relatively small, in order to avoid misclassifying areas with small grayscale changes, for each gradient in the gradient histogram that is less than or equal to the average gradient, the number ratio is calculated based on the number of pixels corresponding to each gradient, and two consecutive gradients whose number ratio is greater than or equal to a preset ratio threshold are merged into the same gradient level, and each gradient whose number ratio is less than the preset ratio threshold is taken as a gradient level separately, and then the gradient of the gradient histogram is re-divided to obtain at least two gradient levels.
[0037] Preferably, the preset percentage threshold in this solution takes an empirical value of 0.12.
[0038] Step S002, based on the gradient level, the pixels in the grayscale image are divided into an equal number of clusters; based on the distance between the pixels, each cluster is clustered to obtain at least two initial cluster center points in the corresponding cluster; the gradients of other pixels in the neighborhood of each initial cluster center point are obtained to form a gradient sequence and a gray value sequence formed by gray values, and the similarity between each other pixel in the corresponding neighborhood and the corresponding initial cluster center point is calculated by combining the gradient sequence and the gray value sequence, and the similarity variance is calculated according to the similarity corresponding to each other pixel in the neighborhood to confirm the final cluster center point.
[0039] Specifically, the pixel points in the grayscale image are divided using the gradient levels of the gradient histogram obtained in step S001, that is, the pixel points in the same gradient level are divided into a cluster, and then the same number of clusters as the gradient levels are obtained. The pixel points of each gradient level are a cluster. The purpose is to minimize the misclassification of important pixels and reduce the influence of irrelevant pixels, thereby reducing the amount of calculation.
[0040] Get the initial cluster center point in each cluster based on the obtained cluster: take a cluster as an example, first cluster all the pixels in the current cluster based on the density clustering method to get at least two cluster blocks, select the central pixel point of each cluster block, calculate the distance between any two central pixel points, merge the cluster blocks based on the minimum distance principle, and use the central pixel point of the merged cluster block as the initial cluster center point.
[0041] It should be noted that the density clustering method is a well-known technology, including DBSCAN clustering and K-mean clustering, which can be selected by the implementer; the minimum distance principle is also a well-known technology and will not be described in detail in this solution.
[0042] Based on the method of obtaining the initial cluster center point, all the initial cluster center points in each cluster are obtained, and the first The cluster The initial cluster centers are .
[0043] It should be noted that the clustering blocks are divided according to the gradient histogram because pixels with greater similarity can be classified into one clustering block. At the same time, the division is performed according to the number of pixels, and the pixels in the flat area are merged as irrelevant pixels. This can reduce the amount of calculation when clustering and make the clustering results more accurate.
[0044] Because the present invention divides the gradient level according to the gradient histogram of the grayscale image, and then obtains the initial cluster center point according to the positional relationship between the pixel points under the same gradient, but the pixel points obtained by clustering according to the gradient are discontinuous and cannot directly constitute an area, so that the representativeness of the obtained initial cluster center point is relatively limited. Therefore, when the obtained initial cluster center point is used as a seed point for superpixel segmentation, due to too many initial cluster center points, it will lead to over-segmentation during superpixel segmentation, and the area without lesions will be segmented into the lesion area, resulting in inaccurate segmentation results. Therefore, in order to obtain an accurate segmentation area, it is necessary to obtain an appropriate number of cluster center points according to the position of the pixel points and the similarity between the pixel points, that is, the final cluster center points. The process of obtaining the final cluster center points is as follows:
[0045] First, obtain the neighborhood pixels of the initial cluster center, that is, the pixels within the four neighborhoods, as follows Figure 2 As shown in the figure, this figure shows the possible arrangement of pixel points in the four neighborhoods of the initial cluster center point. The four neighborhoods are used for calculation here because when the gradient of the pixel point is obtained above, it is calculated through the Sobel operator, and the Sobel operator calculates the grayscale difference of the pixel points in the vertical and horizontal directions. Therefore, the pixels of the four neighborhoods are also calculated when calculating the correlation.
[0046] according to Figure 2It can be seen that, assuming that the gradient of the initial cluster center is 1, a means that only one of the gradients of the four surrounding neighborhood pixels is the same as the gradient of the initial cluster center, b means that two of the gradients of the four surrounding neighborhood pixels are the same as the gradients of the initial cluster center, c means that three of the gradients of the four surrounding neighborhood pixels are the same as the gradients of the initial cluster center, d means that the gradients of the four surrounding neighborhood pixels are the same as the gradients of the initial cluster center. There is also a case where the gradients of the four surrounding neighborhood pixels are different from the gradients of the initial cluster center. At this time, the correlation between the initial cluster center and the pixels in its neighborhood is small. Therefore, it can be seen that the more the gradients of the surrounding pixels are the same as the gradient of the initial cluster center, the greater the correlation, and the greater the correlation, the more likely it is to be the final cluster center.
[0047] Based on the above characteristics, taking an initial cluster center point as an example, the gradient of each pixel point in its four neighborhoods is obtained, the types of gradients are counted, and the gradients corresponding to each type constitute a gradient sequence. At the same time, the grayscale values of each pixel point in its four neighborhoods constitute a grayscale value sequence; the gradient standard deviation is calculated according to the gradient sequence and the grayscale value standard deviation is calculated according to the grayscale value sequence; the first product between the gradient standard deviation and the grayscale value standard deviation is obtained, and the absolute value of the difference in grayscale values between the initial cluster center point and any other pixel point in the neighborhood is calculated. The opposite of the sum of the first product and the absolute value of the difference is substituted into the exponential function with the constant e as the base to obtain the similarity between the corresponding other pixel points and the initial cluster center point.
[0048] As an example, the similarity is calculated as:
[0049]
[0050] in, is the similarity between the i-th pixel point and the corresponding initial cluster center point within the four neighborhoods; is the gray value of the initial cluster center point; is the gray value of the i-th pixel within the four neighborhoods; is the standard deviation of gray value; is the standard deviation of the gradient; is a natural number; is the absolute value function.
[0051] It should be noted that the greater the grayscale difference between the pixels in the surrounding four neighborhoods and the corresponding initial cluster center point, the greater the difference between the pixels; and the gradient standard deviation of the gradient sequence represents the discreteness of the gradient of the pixels in the four neighborhoods. The greater the gradient difference, the greater the corresponding gradient standard deviation, indicating that the similarity between the initial cluster center point and the surrounding pixels is lower, and the corresponding similarity is smaller.
[0052] The similarity variance is calculated according to the similarity corresponding to each other pixel point in the neighborhood to confirm the final cluster center point, that is, the similarity between each pixel point in the four neighborhoods and the corresponding initial cluster center point is calculated, the similarity variance is calculated, and the similarity variance threshold is set. When the similarity variance is less than the similarity variance threshold, the corresponding initial cluster center point is confirmed as the final cluster center point; conversely, when the similarity variance is greater than or equal to the similarity variance threshold, it is confirmed that the corresponding initial cluster center point is not the final cluster center point.
[0053] Preferably, the similarity variance threshold takes an empirical value of 0.07.
[0054] Step S003, taking the final cluster center point as the seed point, assigning weights to the corresponding seed points according to the gradients of the pixels around each seed point; using the SIFT algorithm to obtain the key points on the bone lesions in the grayscale image, calculating the characteristic distance between each key point and the seed point based on the color and spatial distance combined with the weight, calculating the characteristic distance between the non-key point and the seed point based on the color and spatial distance, performing superpixel segmentation on the X-ray image based on the characteristic distance, and identifying the lesion area using the X-ray image after superpixel segmentation.
[0055] Specifically, the method of step S002 is used to obtain all the final cluster center points, and the final cluster center points are used as seed points. Because the edge grayscale values of the bone lesions are not much different, the edge is equivalent to a weak edge when segmenting, while the edge grayscale value of the normal tissue is stronger, which is equivalent to a strong edge. The blurring degree of the strong edge is different from that of the weak edge. The blurring degree of the strong edge is smaller, and the blurring degree of the weak edge is larger. Therefore, when matching based on the obtained seed points, a weight is first assigned to each seed point, so that the edge of the bone lesion can obtain a larger segmentation weight during the segmentation process, and the edge obtained by segmentation is more accurate. Then, a weight is assigned to the corresponding seed point according to the gradient of the pixel points around each seed point: the average gradient value between the corresponding pixel points within the eight neighborhoods of the seed point is calculated, and the average gradient value is substituted into the exponential function with the constant e as the base to obtain the result as the weight of the corresponding seed point.
[0056] As an example, the weights are calculated as:
[0057]
[0058] in, represents the weight of the seed point, represents the gradient of the seed point z, represents the gradient of the i-th pixel in the eight-neighborhood centered on the seed point, Represents the average gradient value between the seed point and all pixels in the eight neighborhoods. Represents a constant.
[0059] It should be noted that the smaller the gradient difference between the seed point and the surrounding eight neighborhood pixels, the greater the blur within the seed point, and the more likely it is a seed point on a bone lesion. Therefore, an exponential function is used to calculate its weight. The smaller the average gradient value, the greater the weight.
[0060] Superpixel segmentation is performed according to the weights set for the seed points, because the key points on the weak edge need to be segmented into the lesion area when performing image segmentation. Therefore, when performing superpixel segmentation, the characteristic distance from the key points on the weak edge to the seed points in the lesion area is the smallest, so that they can be segmented into one area. Therefore, the SIFT algorithm is first used to obtain the key points on the bone lesions in the grayscale image. The SIFT algorithm is a well-known technology and will not be described in detail in this solution; then the X-ray image is converted to the Lab color space, and the conversion method is a well-known technology and will not be described in detail in this solution; the total distance between each key point and the seed point is obtained based on the color and spatial distance; the opposite number of the weight of the seed point is substituted into the result of the exponential function with the constant e as the base and multiplied by the total distance, and the multiplication result is used as the characteristic distance between the corresponding key point and the seed point.
[0061] As an example, the characteristic distance between the keypoint and the seed point The calculation formula is:
[0062]
[0063]
[0064]
[0065] in, is the color distance; Indicates key points exist On the channel value, Indicates the seed point exist On the channel value, Indicates key points exist On the channel value, Indicates the seed point exist On the channel value, Indicates key points exist On the channel value, Indicates the seed point exist On the channel value; represents the Euclidean distance; Indicates key points The horizontal axis of Indicates the seed point The horizontal axis of Indicates key points The vertical coordinate of Indicates the seed point The vertical coordinate of Represents the characteristic distance between the key point and the seed point during superpixel segmentation; Indicates the maximum value of the color distance in Lab space; Indicates the length value of the super pixel block; is the weight of the seed point; is a constant.
[0066] When the weight is multiplied by the feature distance of the key point, the larger the weight and the smaller the feature distance, the greater the possibility of segmenting it into a lesion area.
[0067] For non-key points in grayscale images, the characteristic distance between non-key points and seed points is calculated based on color and spatial distance, and the calculation formula is:
[0068]
[0069]
[0070]
[0071] The X-ray image is segmented into superpixels based on the characteristic distance between each pixel point and the seed point to obtain superpixel blocks of the X-ray image. One superpixel block corresponds to one area, and the lesion area is identified using the X-ray image after superpixel segmentation.
[0072] In summary, the embodiment of the present invention collects an X-ray image to obtain a corresponding grayscale image, calculates the gradient of each pixel based on the grayscale image to construct a gradient histogram; divides the gradient histogram into gradient levels, clusters the pixels according to the gradient levels to obtain multiple initial cluster center points; confirms the final cluster center point based on the gradient of other pixels within the neighborhood of each initial cluster center point; uses the final cluster center point as a seed point, assigns a weight to the corresponding seed point according to the gradient of the pixels around each seed point, obtains the characteristic distance between the key point on the bone lesion in the grayscale image and the seed point, performs superpixel segmentation on the X-ray image based on the characteristic distance of all pixels, and uses the X-ray image after superpixel segmentation to identify the lesion area. The present invention makes the superpixel segmentation result more accurate and more convenient for the identification of bone lesions.
[0073] 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. In addition, 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.
[0074] 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.
[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. Auxiliary methods for bone lesion identification in orthopedic imaging diagnosis, It is characterized in that The method comprises the following steps: Collect an X-ray image of a patient's body part, perform grayscale processing on the X-ray image to obtain a corresponding grayscale image; obtain the gradient of each pixel in the grayscale image, and construct a gradient histogram with the gradient as the horizontal coordinate and the number of corresponding pixels as the vertical coordinate; perform gradient level division based on the number of pixels corresponding to each gradient in the gradient histogram to obtain at least two gradient levels; Based on the gradient level, the pixels in the grayscale image are divided into clusters of equal number; based on the distance between the pixels, each cluster is clustered to obtain at least two initial cluster center points in the corresponding cluster; the gradients of other pixels in the neighborhood of each initial cluster center point are obtained to form a gradient sequence and a gray value sequence formed by gray values, and the similarity between each other pixel in the corresponding neighborhood and the corresponding initial cluster center point is calculated by combining the gradient sequence and the gray value sequence, and the similarity variance is calculated according to the similarity corresponding to each other pixel in the neighborhood to confirm the final cluster center point; The final cluster center point is used as the seed point, and a weight is assigned to the corresponding seed point according to the gradient of the pixel points around each seed point; the key points on the bone lesion in the grayscale image are obtained by using the SIFT algorithm, and the characteristic distance between each key point and the seed point is calculated based on the color and spatial distance in combination with the weight, and the characteristic distance between the non-key point and the seed point is calculated based on the color and spatial distance, and the X-ray image is superpixel segmented based on the characteristic distance, and the lesion area is identified using the X-ray image after superpixel segmentation; The method of combining the gradient sequence and the gray value sequence to calculate the similarity between each other pixel point in the corresponding neighborhood and the corresponding initial cluster center point includes: The gradient standard deviation and the gray value standard deviation are calculated according to the gradient sequence and the gray value sequence respectively; the first product between the gradient standard deviation and the gray value standard deviation is obtained, and the absolute value of the difference in gray values between the initial cluster center point and any other pixel point in its neighborhood is calculated, and the opposite number of the sum of the first product and the absolute value of the difference is substituted into an exponential function with a constant e as the base to obtain the similarity between the corresponding other pixel points and the initial cluster center point; The method of assigning weights to corresponding seed points according to the gradients of the pixels around each seed point includes: Calculate the average gradient value between the corresponding pixels in the eight neighborhoods of the seed point, and substitute the average gradient value into the exponential function with the constant e as the base to obtain the result as the weight of the corresponding seed point; The method for calculating the feature distance between each key point and the seed point based on color and spatial distance in combination with weights includes: The total distance between each key point and the seed point is obtained based on the color and spatial distance. The inverse of the weight of the seed point is substituted into the exponential function with the constant e as the base and multiplied by the total distance. The multiplication result is used as the characteristic distance between the corresponding key point and the seed point.
2. The bone lesion identification auxiliary method for orthopedic imaging diagnosis according to claim 1, It is characterized in that The method of performing gradient level division based on the number of pixel points corresponding to each gradient in the gradient histogram to obtain at least two gradient levels includes: The average gradient is calculated based on the gradient of each pixel point, and each gradient in the gradient histogram that is greater than the average gradient is taken as a gradient level separately; for each gradient in the gradient histogram that is less than or equal to the average gradient, the number ratio is calculated based on the number of pixels corresponding to each gradient, and two consecutive gradients whose number ratio is greater than or equal to a preset ratio threshold are merged into the same gradient level, and each gradient whose number ratio is less than the preset ratio threshold is taken as a gradient level separately, thereby obtaining at least two gradient levels.
3. The bone lesion identification auxiliary method for orthopedic imaging diagnosis according to claim 1, It is characterized in that The method of clustering each cluster based on the distance between pixel points to obtain at least two initial cluster center points in the corresponding cluster includes: Cluster all the pixels in the current cluster to obtain at least two cluster blocks, select the central pixel of each cluster block, calculate the distance between any two central pixels, merge the cluster blocks based on the minimum distance principle, and use the central pixel of the merged cluster block as the initial cluster center.
4. The bone lesion identification auxiliary method for orthopedic imaging diagnosis according to claim 1, It is characterized in that The method for acquiring the gradient sequence comprises: According to the gradient of each other pixel point in the neighborhood of the current initial cluster center point, the types of gradients are counted, and the gradients corresponding to each type form a gradient sequence.
5. The bone lesion identification auxiliary method for orthopedic imaging diagnosis according to claim 1, It is characterized in that The method for confirming the final cluster center point includes: Set the similarity variance threshold. When the similarity variance is less than the similarity variance threshold, the corresponding initial cluster center point is confirmed as the final cluster center point. Conversely, when the similarity variance is greater than or equal to the similarity variance threshold, the corresponding initial cluster center point is confirmed not to be the final cluster center point.
Citation Information
Cited By
Focus auxiliary identification method and device based on deep learning
CN121121211A
