Femoral structure and bone mineral density automatic measuring method based on CT (Computed Tomography) image
By combining the dynamic threshold method of CT images with the nnUNet network, the problem of inconsistent and non-universal results in bone density measurement is solved, fully automatic and objective measurement of the femoral structure is achieved, and accurate bone density assessment is provided.
Patent Information
- Application Number
- CN202410600273.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology has problems such as inconsistent results in bone density measurement, lack of automation, the use of fixed empirical values, which results in lack of versatility and objectivity, and the inability to accurately distinguish cancellous bone and cortical bone.
The dynamic threshold method and maximum connected domain algorithm of CT images are used to perform preliminary segmentation of cortical bone and cancellous bone. Combined with the nnUNet network for automatic identification, the corresponding relationship between CT values and bone density is established. Three-dimensional reconstruction and topological parameter calculation are used to achieve Automatic measurement and bone density assessment of femoral structures.
It achieves fully automatic, objective and accurate bone density measurement of the femoral structure, can automatically identify and calculate the topological parameters and bone density of different bone areas, and improves the consistency and versatility of the measurement.
Smart Images

Figure CN118761952A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical technology, and in particular to a method for automatically measuring femoral structure and bone density based on CT images. Background Art
[0002] When using quantitative CT to detect bone density, it is necessary to manually delineate the area on the CT image to distinguish between cancellous bone and cortical bone. Due to the different criteria for the delineated area used by different staff, the consistency of the results is poor, which leads to errors in the final bone density results. This type of method cannot achieve full automated measurement. Some methods use fixed empirical values. Although they can achieve full automated measurement, the bones themselves will change as humans grow, and the differences between people are greater. Therefore, using fixed empirical values is not universal, and the calculated conclusions do not have objective rules and cannot be quantitatively evaluated. In addition, although some methods can perform bone recognition, they cannot distinguish between cancellous bone and cortical bone, let alone perform specific data calculations and quantitative evaluations for two different bone structures (cancellous bone and cortical bone) in the same area.
[0003] Chinese patent application CN202211541888.0 discloses a bone structure recognition method and system, which includes a neural network algorithm to remove lateral ossicles or interfering ossicles and multiple fixed distances and other empirical value parameters to obtain the target bone area and the cortical bone and cancellous bone areas of the target bone. The technical problem solved is to rely on multiple fixed empirical value parameters to obtain the target bone area and the cancellous bone and cortical bone areas of the target bone, that is, to bring multiple subjective empirical values into the method and system to complete automatic recognition calculation, which is not universal, and the calculated conclusions do not have objective rules and cannot be quantitatively evaluated; in addition, the bone density calculation method and formula provided by the method and system are also completely wrong (formula: cancellous bone density = cancellous bone area divided by inner contour area area. First, this calculation result is the ratio of areas; secondly, the two areas are not of the same material density and the bone density is not uniform, so this calculation result has nothing to do with density, let alone bone density). Summary of the invention
[0004] The purpose of the present invention is to provide a method for automatically measuring femoral structure based on CT images in view of the deficiencies of the prior art.
[0005] In view of the above technical problems, the technical solutions adopted by the present invention are as follows: A method for automatically measuring femoral structure based on CT images comprises the following steps: Step 1: Perform CT scanning on a phantom with known bone density to establish a linear correspondence between the phantom CT value and the phantom bone density, and obtain a correspondence between the CT value and the true bone density; perform a preliminary segmentation of cortical bone and cancellous bone using a dynamic threshold method to obtain the outer contour of the femur; Step 2: segment the femoral trochanter according to the obtained femoral outer contour to obtain the three-dimensional outer contour of the femoral trochanter; Step 3: segment the femoral head and obtain the three-dimensional outer contour of the femoral head through the original outer contour of the bone; Step 4: segmenting the femoral neck. According to step 2 and step 3, the area of the femoral neck is the femoral area between the bottom end surface of the femoral head and the top surface of the femoral trochanter, that is, the top surface of the femoral neck has the same coordinates as the bottom end surface of the femoral head, and the bottom end surface of the femoral neck has the same coordinates as the top surface of the femoral trochanter; Step 5: Find the minimum cross section of the femoral neck. According to the top surface of the trochanter obtained in step a, use this surface as the starting surface for finding the minimum cross section of the femoral neck, and the bottom surface of the femoral head as the ending surface. Take the centroid of the top surface of the trochanter as the starting point and search from the foot to the head along the Z axis; Step 6: Perform a union operation on the outer contour of the femoral head and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral head; perform a union operation on the outer contour of the femoral neck and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral neck; perform a union operation on the outer contour of the femoral trochanter and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral trochanter.
[0006] Preferably, the skeletal bone density phantom described in step 1 is a composite material of multiple materials such as hydroxyapatite and polyethylene that are close to the bone mineral in terms of X-ray absorption and attenuation performance, and the density of hydroxyapatite is known. The phantom scanning parameters are consistent with the real human CT shooting parameters, that is, KVP, FOV and other parameters are used when shooting the human body, and the phantom is scanned with the same scanning parameters and the images are calibrated one by one. During calibration, the corresponding relationship between the CT value and the real bone density is calculated based on the linear relationship between the CT value of the phantom ROI and the bone density of the phantom. After calibration, this method saves the corresponding relationship between the CT value and the real bone density according to the main parameters such as the device name and KVP as keywords.
[0007] Preferably, the present invention adopts nnUNet network as the backbone network, and the encoder and decoder network layers used are the same, wherein the encoder adopts multi-layer convolution and downsampling, and the decoder adopts multi-layer deconvolution and upsampling, and different marks are used to mark the left and right femurs when marking the femurs, and training is also performed according to multiple classifications, and after prediction, the outer contours of the left and right femurs in different classifications in the image in the three-dimensional direction can be obtained; If the image contains the outer contours of both the left and right femurs, this method will automatically measure and calculate the left and right femurs separately; if only one femur is identified, then only one femur will be automatically measured and calculated. The measurement and calculation methods for the left and right femurs are the same. The following is a detailed description of the measurement and calculation steps for a single femur: Automatically segment the cortical bone and cancellous bone of the femur according to the obtained outer contour of the femur; The dynamic threshold method is used to perform preliminary segmentation of cortical bone and cancellous bone, and then the cancellous bone area that has been initially segmented is selected and the maximum connected domain algorithm is used in the three-dimensional direction to retain the largest connected area. The outer contour of this area is the boundary between the cortical bone and the cancellous bone, so that the cortical bone and the cancellous bone can be accurately separated. Dynamic threshold method: First, perform automatic threshold analysis, make all discrete points of the image f(x, y, z) into a grayscale histogram, and then use the Levenberg-Marquardt method to perform nonlinear least squares optimization to obtain the optimal fitting function, thereby obtaining the coefficients of the two Gaussian distributions, namely , we can further find the intersection of these two distributions. The CT value corresponding to this intersection is the threshold of the boundary between cortical bone and cancellous bone we want to find; The outer contours of the bone head, femoral neck and femoral trochanter are automatically segmented based on the obtained outer contour of the femur.
[0008] Preferably, the current femoral three-dimensional direction area is first subjected to a coronal maximum density projection operation; then, according to step 2, the image direction and the position information of the human body relative to the CT device are obtained, and the direction order of the human head and foot in the image Z axis can be determined. In the above maximum density projection data volume, along the Z axis from the foot to the head direction, the first Z-axis gradient rises significantly and the position coordinates (this coordinate is the coordinate of the lower edge of the lesser trochanter), the second Z-axis gradient rises significantly and the position coordinates (this coordinate is the coordinate of the lower edge of the greater trochanter), the first Z-axis gradient drops significantly and the position coordinates (this coordinate is the coordinate of the upper edge of the lesser trochanter), and the second Z-axis gradient drops significantly and the position coordinates (this coordinate is the coordinate of the upper edge of the greater trochanter), so that the femoral trochanter is segmented from the bone, that is, the plane passing through the lower edge of the lesser trochanter and the lower edge of the greater trochanter is the bottom end face of the femoral trochanter, and the plane passing through the upper edge of the lesser trochanter and the upper edge of the greater trochanter is the top end face of the femoral trochanter, and the three-dimensional outer contour of the femoral trochanter is obtained.
[0009] Preferably, in the coronal maximum density projection data volume, according to the femoral type (the left and right femoral types can be determined according to step 4), if the current one is the left femur, the X-axis direction is searched from small to large for the minimum coordinate of the gradient rise after the first Z coordinate is minimum (this coordinate is the minimum Z-axis coordinate of the lower edge of the femoral head), and the minimum coordinate of the gradient descent after the maximum Z-axis coordinate is searched (this coordinate is the maximum Z-axis coordinate of the lower edge of the femoral head). In this way, the femoral head is segmented from the bone, that is, the plane passing through the maximum Z-axis coordinate and the minimum Z-axis coordinate of the lower edge of the femoral head is the bottom of the femoral head. The 3D outer contour of the femoral head is obtained through the original outer contour of the bone; if it is the right femur, the X-coordinate value along the X-axis direction is from large to small to find the minimum coordinate after the first Z coordinate is the smallest and the gradient rises (this coordinate is the minimum Z-axis coordinate of the lower edge of the femoral head), and the minimum coordinate after the Z-axis coordinate is the largest and the gradient descends (this coordinate is the maximum Z-axis coordinate of the lower edge of the femoral head). In this way, the femoral head is segmented from the bone, that is, the plane passing through the maximum Z-axis coordinate and the minimum Z-axis coordinate of the lower edge of the femoral head is the bottom end surface of the femoral head, and the 3D outer contour of the femoral head is obtained through the original outer contour of the bone.
[0010] Preferably, the specific searching method in step five is to manually set an initialization starting point, i.e., the centroid X, Y, and Z coordinates of the top surface of the trochanter and the normal vector of the top surface of the trochanter, and use the Powell optimization algorithm to perform a plane search; after finding the plane, establish the plane and calculate the plane cross-sectional area, and determine whether the plane cross-sectional area is the smallest. If it is the smallest cross-sectional area, then record the current plane information, and if it is not the smallest cross-sectional area, continue searching; repeat the above process until the smallest cross-sectional area is found on the bottom surface of the femoral head.
[0011] Another object of the present invention is to provide a method for automatically measuring femoral bone density based on CT images. The technical solutions adopted are as follows: A method for automatically measuring femoral bone density based on CT images comprises the following steps: a. Calculate the current overall topological parameters, bone density and bone mineral content of the femur; b. Calculate the current femoral cortical bone and cancellous bone topological parameters, bone density and bone mineral content respectively; C. Calculate the topological parameters, bone density and bone mineral content of the current cortical bone and cancellous bone of the femoral head, the cortical bone and cancellous bone of the femoral neck, and the cortical bone and cancellous bone of the femoral trochanter; d. Perform three-dimensional reconstruction of the femoral neck and measure topology, bone mechanics, bone density, and bone mineral content for each cross-section.
[0012] Preferably, in step a, the topological parameter volume, maximum height, and maximum width of the X-axis and Y-axis of the current femur are calculated based on the actual length between the obtained X-axis, Y-axis, and Z-axis pixel points and the obtained femoral outer contour area; the average bone density value and bone mineral content of the entire femur are calculated based on the correspondence between the CT value and the true bone density and the obtained femoral outer contour area and the CT value of each pixel in the area.
[0013] Preferably, in step b, the current femoral cortical bone volume and the current femoral cancellous bone volume are calculated based on the actual length between the obtained X-axis, Y-axis and Z-axis pixel points and the obtained femoral cortical bone area and cancellous bone area; the current femoral cortical bone average bone density value and bone mineral content are calculated based on the correspondence between the CT value and the true bone density and the obtained femoral cortical bone area, cancellous bone area and the CT value of each pixel, as well as the current femoral cancellous bone average bone density value and bone mineral content are calculated.
[0014] Preferably, in step c, the femoral head cortical bone volume, the femoral head cancellous bone volume, the femoral neck cortical bone volume, the femoral neck cancellous bone volume, the femoral trochanter cortical bone volume, and the femoral trochanter cancellous bone volume are calculated respectively according to the actual length between the obtained X-axis, Y-axis, and Z-axis pixel points and the obtained femoral head cortical bone and cancellous bone, femoral neck cortical bone and cancellous bone, and femoral trochanter cortical bone and cancellous bone areas; according to the corresponding relationship between the CT value and the true bone density and the obtained femoral head cortical bone and cancellous bone, femoral neck cortical bone and cancellous bone, femoral trochanter cortical bone and The CT values of the cancellous bone area and each pixel were calculated to obtain the average bone density of the cortical bone of the femoral head, the average bone density of the cancellous bone of the femoral head, the average bone density of the cortical bone of the femoral neck, the average bone density of the cancellous bone of the femoral neck, the average bone density of the cortical bone of the femoral trochanter, the average bone density of the cancellous bone of the femoral trochanter, as well as the bone mineral content of the cortical bone of the femoral head, the bone mineral content of the cancellous bone of the femoral head, the bone mineral content of the cortical bone of the femoral neck, the bone mineral content of the cancellous bone of the femoral neck, the bone mineral content of the cortical bone of the femoral trochanter, and the bone mineral content of the cancellous bone of the femoral neck.
[0015] Preferably, in step d, a three-dimensional reconstruction with a layer thickness of 1 mm is performed in the vertical direction perpendicular to the minimum cross-sectional line of the femoral neck; the cortical bone and cancellous bone of the reconstructed femoral neck are re-segmented according to the obtained cortical bone and cancellous bone boundary thresholds, and the cortical bone and cancellous bone area information is saved; according to the actual length between the obtained X-axis and Y-axis pixel points and the cortical bone area and cancellous bone area, the cortical bone circumference, cortical bone volume, cortical bone area, cortical bone maximum width, cortical bone average width, cancellous bone circumference, cancellous bone volume, cancellous bone area, cancellous bone maximum width, cancellous bone average width, curvature, curvature radius, buckling ratio, and eccentricity of each cross-sectional layer are calculated; according to the corresponding relationship between the CT value and the true bone density and the cortical bone area and cancellous bone area, the average bone density value and bone mineral content of the cortical bone of each cross-sectional layer are calculated, and the average bone density value and bone mineral content of the cancellous bone of each cross-sectional layer are calculated. Beneficial Effects
[0016] The present invention uses a three-dimensional segmentation and measurement method based on the original CT image, and can objectively and automatically measure and calculate the topological parameters, bone mechanical parameters, bone density, and bone mineral content of the cortical bone of the skeletal head, cancellous bone of the skeletal head, cortical bone of the femoral neck, cancellous bone of the femoral neck, cortical bone of the femoral trochanter, and cancellous bone of the femoral trochanter. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The present invention will be further described below in conjunction with the accompanying drawings: Figure 1 It is a flowchart of the automatic measurement method of femoral structure and bone density based on CT images. DETAILED DESCRIPTION The technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings. Example 1
[0018] A method for automatically measuring femoral structure based on CT images comprises the following steps: Step 1: Perform CT scanning on a phantom with known bone density to establish a linear correspondence between the phantom CT value and the phantom bone density, and obtain a correspondence between the CT value and the real bone density; use a dynamic threshold method to perform preliminary segmentation of cortical bone and cancellous bone to obtain the outer contour of the femur; the phantom of the bone density is a composite material of multiple materials such as hydroxyapatite and polyethylene that are close to the bone mineral in terms of X-ray absorption and attenuation performance, and the density of hydroxyapatite is known, and the phantom scanning parameters are consistent with the real human CT shooting parameters, that is, KVP, FOV and other parameters are used when shooting the human body, and the phantom is scanned with the same scanning parameters, and the images are calibrated one by one. During calibration, the correspondence between the CT value and the true bone density is calculated according to the linear relationship between the CT value of the phantom ROI and the bone density of the phantom. After calibration, the method saves the correspondence between the CT value and the true bone density according to the device name, KVP and other main parameters as keywords; the nnUNet network is used as the backbone network, and the encoder and decoder network layers are the same, wherein the encoder uses multi-layer convolution and downsampling, and the decoder uses multi-layer deconvolution and upsampling. Different markers are used to mark the left and right femurs when marking the femur, and training is also performed according to multi-classification. After prediction, the outer contours of the left and right femurs of different categories in the image can be obtained in the three-dimensional direction; If the image contains the outer contours of both the left and right femurs, this method will automatically measure and calculate the left and right femurs separately; if only one femur is identified, then only one femur will be automatically measured and calculated. The measurement and calculation methods for the left and right femurs are the same. The following is a detailed description of the measurement and calculation steps for a single femur: Automatically segment the cortical bone and cancellous bone of the femur according to the obtained outer contour of the femur; The dynamic threshold method is used to perform preliminary segmentation of cortical bone and cancellous bone, and then the cancellous bone area that has been initially segmented is selected and the maximum connected domain algorithm is used in the three-dimensional direction to retain the largest connected area. The outer contour of this area is the boundary between the cortical bone and the cancellous bone, so that the cortical bone and the cancellous bone can be accurately separated. Dynamic threshold method: First, perform automatic threshold analysis, make all discrete points of the image f(x, y, z) into a grayscale histogram, and then use the Levenberg-Marquardt method to perform nonlinear least squares optimization to obtain the optimal fitting function, thereby obtaining the coefficients of the two Gaussian distributions, namely , we can further find the intersection of these two distributions. The CT value corresponding to this intersection is the threshold of the boundary between cortical bone and cancellous bone we want to find; The outer contours of the bone head, femoral neck and femoral trochanter are automatically segmented based on the obtained outer contour of the femur.
[0019] Step 2: segment the femoral trochanter according to the obtained femoral outer contour to obtain the three-dimensional outer contour of the femoral trochanter; first, perform the maximum density projection operation on the current three-dimensional direction area of the femur in the coronal position; then obtain the image direction and the position information of the human body relative to the CT device according to step 2, and determine the direction order of the human head and feet in the image Z axis. In the above maximum density projection data volume, along the Z axis from the foot to the head direction, find the first position coordinate where the Z axis gradient rises significantly (this coordinate is the coordinate of the lower edge of the lesser trochanter), the second position coordinate where the Z axis gradient rises significantly (this coordinate is the coordinate of the lower edge of the greater trochanter), the first position coordinate where the Z axis gradient drops significantly (this coordinate is the coordinate of the upper edge of the lesser trochanter), and the second position coordinate where the Z axis gradient drops significantly (this coordinate is the coordinate of the upper edge of the greater trochanter), so that the femoral trochanter is segmented from the bone, that is, the plane passing through the lower edge of the lesser trochanter and the lower edge of the greater trochanter is the bottom end face of the femoral trochanter, and the plane passing through the upper edge of the lesser trochanter and the upper edge of the greater trochanter is the top end face of the femoral trochanter, and the three-dimensional outer contour of the femoral trochanter is obtained.
[0020] Step 3: Segment the femoral head, and obtain the three-dimensional outer contour of the femoral head through the original bone outer contour; in the coronal maximum density projection data volume, according to the femoral type (the left and right femoral types can be determined according to step 4), if the current one is the left femur, search along the X-axis direction from small to large for the minimum coordinate of the gradient rise after the first Z coordinate is minimum (this coordinate is the minimum Z-axis coordinate of the lower edge of the femoral head), and also search for the minimum coordinate of the gradient descent after the maximum Z-axis coordinate (this coordinate is the maximum Z-axis coordinate of the lower edge of the femoral head). In this way, the femoral head is segmented from the bone, that is, the maximum Z-axis coordinate of the lower edge of the femoral head and the maximum Z-axis coordinate are obtained. The plane of small coordinates is the bottom end face of the femoral head, and the three-dimensional outer contour of the femoral head is obtained through the original outer contour of the bone; if it is the right femur, the X-coordinate value along the X-axis direction is from large to small to find the minimum coordinate with the gradient rising after the first minimum Z coordinate (this coordinate is the minimum Z-axis coordinate of the lower edge of the femoral head), and also find the minimum coordinate with the gradient descending after the maximum Z-axis coordinate (this coordinate is the maximum Z-axis coordinate of the lower edge of the femoral head). In this way, the femoral head is segmented from the bone, that is, the plane passing through the maximum Z-axis coordinate and the minimum Z-axis coordinate of the lower edge of the femoral head is the bottom end face of the femoral head, and the three-dimensional outer contour of the femoral head is obtained through the original outer contour of the bone.
[0021] Step 4: segmenting the femoral neck. According to step 2 and step 3, the area of the femoral neck is the femoral area between the bottom end surface of the femoral head and the top surface of the femoral trochanter, that is, the top surface of the femoral neck has the same coordinates as the bottom end surface of the femoral head, and the bottom end surface of the femoral neck has the same coordinates as the top surface of the femoral trochanter; Step 5. Find the minimum cross-section of the femoral neck. According to the top surface of the trochanter obtained in step a, use this surface as the starting surface for finding the minimum cross-section of the femoral neck, and the bottom surface of the femoral head as the ending surface. Take the centroid of the top surface of the trochanter as the starting point and search along the Z axis from the foot to the head. The specific search method is to manually set an initialization starting point, that is, the centroid X, Y, and Z coordinates of the top surface of the trochanter and the normal vector of the top surface of the trochanter, and use the Powell optimization algorithm to perform a plane search. After finding the plane, establish the plane and calculate the plane cross-sectional area to determine whether the plane cross-sectional area is the smallest. If it is the minimum cross-sectional area, record the current plane information. If it is not the minimum cross-sectional area, continue searching. Repeat the above process until the minimum cross-sectional area is found on the bottom surface of the femoral head.
[0022] Step 6: Perform a union operation on the outer contour of the femoral head and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral head; perform a union operation on the outer contour of the femoral neck and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral neck; perform a union operation on the outer contour of the femoral trochanter and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral trochanter. Example 2
[0023] An automatic measurement method of femoral bone density based on CT images. The technical solution adopted is as follows: A method for automatically measuring femoral bone density based on CT images, comprising the following steps: a. Calculate the overall topological parameters, bone density and bone mineral content of the current femur; calculate the topological parameter volume, maximum height, maximum width of the X-axis and Y-axis of the current femur according to the actual length between the pixels of the X-axis, Y-axis and Z-axis and the obtained femoral outer contour area; calculate the average bone density value and bone mineral content of the entire femur according to the corresponding relationship between the CT value and the true bone density and the obtained femoral outer contour area and the CT value of each pixel in the area.
[0024] b. Calculate the current femoral cortical bone and cancellous bone topological parameters, bone density and bone mineral content respectively; calculate the current femoral cortical bone volume and the current femoral cancellous bone volume according to the actual length between the obtained X-axis, Y-axis and Z-axis pixel points and the obtained femoral cortical bone area and cancellous bone area; calculate the current average femoral cortical bone bone density value and bone mineral content according to the correspondence between the CT value and the true bone density and the obtained femoral cortical bone area, cancellous bone area and the CT value of each pixel, and calculate the current average femoral cortical bone density value and bone mineral content, as well as the current average femoral cancellous bone bone density value and bone mineral content.
[0025] C. Calculate the topological parameters, bone density and bone mineral content of the current femoral head cortical bone and cancellous bone, femoral neck cortical bone and cancellous bone, and femoral trochanter cortical bone and cancellous bone respectively; calculate the femoral head cortical bone volume, femoral head cancellous bone volume, femoral neck cortical bone volume, femoral neck cancellous bone volume, femoral trochanter cortical bone volume, and femoral trochanter cancellous bone volume respectively according to the actual length between the obtained X-axis, Y-axis and Z-axis pixel points and the obtained femoral head cortical bone and cancellous bone, femoral neck cortical bone and cancellous bone areas; calculate the femoral head cortical bone volume, femoral head cancellous bone volume, femoral neck cortical bone volume, femoral neck cancellous bone volume, femoral trochanter cortical bone volume, and femoral trochanter cancellous bone volume respectively according to the corresponding relationship between the CT value and the true bone density and the obtained femoral head cortical bone volume The CT values of the femoral head cortical bone and cancellous bone, femoral neck cortical bone and cancellous bone, femoral trochanter cortical bone and cancellous bone areas and each pixel were calculated to obtain the average bone density of the femoral head cortical bone, the average bone density of the femoral neck cortical bone, the average bone density of the femoral neck cancellous bone, the average bone density of the femoral trochanter cortical bone, the average bone density of the femoral trochanter cancellous bone, as well as the bone mineral content of the femoral head cortical bone, the bone mineral content of the femoral head cancellous bone, the bone mineral content of the femoral neck cortical bone, the bone mineral content of the femoral neck cancellous bone, the bone mineral content of the femoral trochanter cortical bone, and the bone mineral content of the femoral trochanter cancellous bone.
[0026] d. Perform three-dimensional reconstruction of the femoral neck, and measure the topology, bone mechanics, bone density, and bone mineral content for each cross-section; perform three-dimensional reconstruction with a layer thickness of 1 mm in the vertical direction perpendicular to the minimum cross-sectional line of the femoral neck; re-segment the cortical bone and cancellous bone of the reconstructed femoral neck according to the obtained cortical bone and cancellous bone boundary thresholds, and save the cortical bone and cancellous bone area information; calculate the cortical bone circumference, cortical bone volume, cortical bone area, maximum cortical bone width, average cortical bone width, cancellous bone circumference, cancellous bone volume, cancellous bone area, maximum cancellous bone width, average cancellous bone width, curvature, curvature radius, flexion ratio, and eccentricity of each cross-section according to the actual length between the obtained X-axis and Y-axis pixel points and the cortical bone area and cancellous bone area; calculate the average bone density value and bone mineral content of the cortical bone of each cross-section, and the average bone density value and bone mineral content of the cancellous bone of each cross-section according to the corresponding relationship between the CT value and the actual bone density and the cortical bone area and cancellous bone area.
[0027] The embodiments of the present invention are described in detail above, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the protection scope of the present invention.
Claims
1. A method for automatically measuring femoral structure based on CT images, characterized in that: The following steps are involved: Step 1: Perform CT scanning on a phantom with known bone density to establish a linear correspondence between the phantom CT value and the phantom bone density, and obtain a correspondence between the CT value and the true bone density; perform preliminary segmentation of cortical bone and cancellous bone using a dynamic threshold method to obtain the outer contour of the femur; Step 2: segmenting the femoral trochanter according to the obtained femoral outer contour to obtain a three-dimensional outer contour of the femoral trochanter; Step 3: Segment the femoral head and obtain the three-dimensional outer contour of the femoral head through the original outer contour of the bone; Step 4: Segment the femoral neck. According to steps 2 and 3, the femoral neck region is the femoral region between the bottom surface of the femoral head and the top surface of the femoral trochanter. That is, the top surface of the femoral neck has the same coordinates as the bottom surface of the femoral head, and the bottom surface of the femoral neck has the same coordinates as the top surface of the femoral trochanter. Step 5: Find the minimum cross-section of the femoral neck. Use the top surface of the trochanter obtained in step a as the starting surface for finding the minimum cross-section of the femoral neck. Use the bottom surface of the femoral head as the ending surface. Starting from the centroid of the top surface of the trochanter, search along the Z axis from the foot to the head. Step 6: Combine the outer contour of the femoral head and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral head; combine the outer contour of the femoral neck and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral neck; combine the outer contour of the femoral trochanter and the cancellous bone of the femur to obtain the outer contour of the cancellous bone of the femoral trochanter.
2. The method for automatic femoral structure measurement based on CT images according to claim 1, characterized in that: The skeletal bone density phantom described in step 1 is made of a composite material of multiple materials, such as hydroxyapatite and polyethylene, which have X-ray absorption and attenuation properties similar to those of bone minerals. The density of hydroxyapatite is known, and the phantom scanning parameters are consistent with the real human CT imaging parameters. That is, parameters such as KVP and FOV are used when imaging the human body. The phantom is scanned with the same scanning parameters and the images are calibrated one by one. During calibration, the correspondence between the CT value and the true bone density is calculated based on the linear relationship between the CT value of the phantom ROI and the bone density of the phantom. After calibration, this method saves the correspondence between the CT value and the true bone density using the device name, KVP and other main parameters as keywords.
3. The method for automatic measurement of femoral structure based on CT images according to claim 1, characterized in that: In step 1, the nnUNet network is used as the backbone network, and the encoder and decoder network layers are the same. The encoder adopts multi-layer convolution and downsampling, and the decoder adopts multi-layer deconvolution and upsampling. Different markers are used to mark the left and right femurs when annotating the femur. The training is also carried out according to multi-classification. After prediction, the three-dimensional outer contours of the left and right femurs of different categories in the image can be obtained.
4. The method for automatic measurement of femoral structure based on CT images according to claim 1, characterized in that: The dynamic threshold method described in step 1: first perform automatic threshold analysis, make all discrete points of the image f(x, y, z) into a grayscale histogram, and then use the Levenberg-Marquardt method to perform nonlinear least squares optimization to obtain the optimal fitting function, thereby obtaining the coefficients of the two Gaussian distributions, namely , we can further obtain the intersection of these two distributions. The CT value corresponding to this intersection is the boundary threshold between cortical bone and cancellous bone.
5. The method for automatic measurement of femoral structure based on CT images according to claim 1, characterized in that: In step 2, the current three-dimensional femoral area is first subjected to a coronal maximum intensity projection operation; then, based on the acquired image direction and the position information of the human body relative to the CT device, the direction order of the human head and feet in the image Z axis is determined; in the above maximum intensity projection data volume, along the Z axis from the foot to the head, the position coordinates of the first position where the Z axis gradient rises significantly, the position coordinates of the second position where the Z axis gradient rises significantly, the position coordinates of the first position where the Z axis gradient drops significantly, and the position coordinates of the second position where the Z axis gradient drops significantly are searched, and the femoral trochanter is segmented from the bone, that is, the plane passing through the lower edge of the lesser trochanter and the lower edge of the greater trochanter is the bottom end surface of the femoral trochanter, and the plane passing through the upper edge of the lesser trochanter and the upper edge of the greater trochanter is the top end surface of the femoral trochanter, thereby obtaining the three-dimensional outer contour of the femoral trochanter.
6. The method for automatic femoral structure measurement based on CT images according to claim 1, characterized in that: In the coronal maximum intensity projection data volume, according to the femoral type, if the current femur is the left femur, the X-axis direction is searched from small to large for the minimum coordinate of the gradient rising after the first Z coordinate minimum, and the minimum coordinate of the gradient descending after the maximum Z coordinate is searched, and the femoral head is segmented from the bone. That is, the plane passing through the maximum Z-axis coordinate and the minimum Z-axis coordinate of the lower edge of the femoral head is the bottom end face of the femoral head, and the three-dimensional outer contour of the femoral head is obtained through the original bone outer contour; if it is the right femur, the X-axis direction is searched from large to small for the minimum coordinate of the gradient rising after the first Z coordinate minimum, and the minimum coordinate of the gradient descending after the maximum Z coordinate is searched, and the femoral head is segmented from the bone. That is, the plane passing through the maximum Z-axis coordinate and the minimum Z-axis coordinate of the lower edge of the femoral head is the bottom end face of the femoral head, and the three-dimensional outer contour of the femoral head is obtained through the original bone outer contour.
7. The method for automatic femoral structure measurement based on CT images according to claim 1, characterized in that: The specific search method in step five is to manually set an initial starting point, that is, the X, Y, and Z coordinates of the centroid of the top surface of the trochanter and the normal vector of the top surface of the trochanter, and use the Powell optimization algorithm to perform a plane search; after finding the plane, establish the plane and calculate the plane cross-sectional area to determine whether the plane cross-sectional area is the smallest. If it is the smallest cross-sectional area, then record the current plane information; if it is not the smallest cross-sectional area, then continue searching; repeat the above process until the smallest cross-sectional area is found on the bottom surface of the femoral head.
8. A method for further measuring femoral bone density based on the automatic femoral structure measurement method based on CT images according to any one of claims 1 to 7, comprising the following steps: a. Calculate the current overall femoral topological parameters, bone density and bone mineral content; b. Calculate the current femoral cortical bone and cancellous bone topological parameters, bone density and bone mineral content respectively; C. Calculate the topological parameters, bone density, and bone mineral content of the current cortical and cancellous bones of the femoral head, femoral neck, and femoral trochanter; d. Perform three-dimensional reconstruction of the femoral neck and measure topology, bone mechanics, bone density, and bone mineral content for each cross-section.
9. The method for automatically measuring spinal bone density based on CT images according to claim 8, characterized in that: In step a, the topological parameters volume, maximum height, and maximum widths of the X and Y axes of the current femur are calculated based on the actual length between the obtained X, Y, and Z axis pixel points and the obtained femoral outer contour area; Based on the correspondence between the CT value and the true bone density and the obtained femoral outer contour area and the CT value of each pixel in the area, the average bone density value and bone mineral content of the entire femur were calculated.
10. The method for automatically measuring spinal bone density based on CT images according to claim 8, characterized in that: In step b, the current femoral cortical bone volume and the current femoral cancellous bone volume are calculated based on the actual length between the obtained X-axis, Y-axis, and Z-axis pixel points and the obtained femoral cortical bone area and cancellous bone area; the current femoral cortical bone average bone density value and bone mineral content are calculated based on the correspondence between the CT value and the true bone density and the obtained femoral cortical bone area, cancellous bone area and CT value of each pixel, as well as the current femoral cancellous bone average bone density value and bone mineral content.
11. The method for automatically measuring spinal bone density based on CT images according to claim 8, characterized in that: In step c, the femoral head cortical bone volume, femoral head cancellous bone volume, femoral neck cortical bone volume, femoral neck cancellous bone volume, femoral trochanter cortical bone volume, and femoral trochanter cancellous bone volume are calculated based on the actual length between the obtained X-axis, Y-axis, and Z-axis pixel points and the obtained femoral head cortical bone and cancellous bone, femoral neck cortical bone and cancellous bone, and femoral trochanter cortical bone and cancellous bone areas; according to the correspondence between the CT value and the true bone density and the obtained femoral head cortical bone and cancellous bone, femoral neck cortical bone and cancellous bone, femoral trochanter cortical bone and cancellous bone areas, The CT values of the bone area and each pixel were used to calculate the average bone density of the femoral head cortical bone, the average bone density of the femoral head cancellous bone, the average bone density of the femoral neck cortical bone, the average bone density of the femoral neck cancellous bone, the average bone density of the femoral trochanter cortical bone, the average bone density of the femoral trochanter cancellous bone, as well as the bone mineral content of the femoral head cortical bone, the bone mineral content of the femoral head cancellous bone, the bone mineral content of the femoral neck cortical bone, the bone mineral content of the femoral neck cancellous bone, the bone mineral content of the femoral trochanter cortical bone, and the bone mineral content of the femoral trochanter cancellous bone.
12. The method for automatically measuring spinal bone density based on CT images according to claim 8, characterized in that: In step d, a three-dimensional reconstruction with a layer thickness of 1 mm is performed in the vertical direction perpendicular to the minimum cross-sectional line of the femoral neck; the cortical bone and cancellous bone of the reconstructed femoral neck are re-segmented according to the obtained cortical bone and cancellous bone boundary thresholds, and the cortical bone and cancellous bone area information is saved; based on the actual length between the obtained X-axis and Y-axis pixel points and the cortical bone area and cancellous bone area, the cortical bone perimeter, cortical bone volume, cortical bone area, cortical bone maximum width, cortical bone average width, cancellous bone perimeter, cancellous bone volume, cancellous bone area, cancellous bone maximum width, cancellous bone average width, curvature, curvature radius, flexion ratio, and eccentricity of each cross-sectional layer are calculated; based on the correspondence between the CT value and the true bone density and the cortical bone area and cancellous bone area, the average bone density value and bone mineral content of the cortical bone of each cross-sectional layer are calculated, and the average bone density value and bone mineral content of the cancellous bone of each cross-sectional layer are calculated.
Citation Information
Patent Citations
Skeletal structure identification method and system
CN116229045A
