Cervical vertebra curvature measurement method, determination model generation method, and determination method
By automatically calculating cervical curvature data and generating a judgment model through a computer program, the problems of time-consuming and low accuracy in existing technologies are solved, and a fast and accurate cervical curvature judgment is achieved.
Patent Information
- Application Number
- CN202310855333.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2025-01-14
AI Technical Summary
Existing methods for measuring cervical curvature are time-consuming and have low accuracy, making it difficult to quickly and accurately determine the type of cervical curvature.
By inputting lateral cervical spine medical images into a computer program, the positional information of the anterior, middle, and posterior edges of each vertebra is extracted using vertebral body segmentation technology. Cervical curvature data is calculated, and a cervical curvature judgment model is generated. The judgment is then made using a support vector machine model.
It improves the accuracy and speed of cervical curvature measurement, saves time, and enables quick and accurate determination of the type of cervical curvature.
Smart Images

Figure CN119313601A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a measurement method, in particular to a measurement method for cervical curvature, and also to a judgment model generation method and a judgment method including the above-mentioned measurement method. Background Art
[0002] The cervical spine is a relatively complex and very important spinal sequence. It transmits axial loads from the skull, maintains horizontal gaze, maintains normal head and neck movement, protects important neurovascular structures, and completes the largest range of motion compared to the rest of the spine. As research continues to progress, more and more physicians are paying attention to the judgment of cervical curvature for cervical spine diseases. Current diagnostic physicians diagnose cervical spine diseases by visually or manually measuring cervical spine curvature data, which is relatively time-consuming and has low accuracy. Summary of the invention
[0003] The purpose of the present invention is to provide a method for measuring cervical curvature, which can improve the measurement accuracy and save time.
[0004] Another object of the present invention is to provide a method for generating a judgment model of cervical curvature, which can improve the accuracy of the judgment model and save time for generating the model.
[0005] Another object of the present invention is to provide a method for determining cervical curvature, which can quickly and accurately determine the type of cervical curvature.
[0006] The present invention provides a method for measuring cervical curvature, comprising the following steps:
[0007] Enter the lateral medical images of the cervical spine into a computer program;
[0008] Use vertebral segmentation technology to process lateral cervical spine medical images and extract the position information of the front edge, middle edge and back edge of each vertebra; and
[0009] The cervical curvature data are calculated based on the position information of the front edge, middle edge and rear edge of each vertebra.
[0010] The method for measuring cervical curvature provided by the present invention inputs a lateral medical image of the cervical spine into a computer program and processes it using vertebral segmentation technology, thereby extracting the position information of the front edge, middle edge and rear edge of each vertebra, and then automatically calculating the cervical curvature data using the above position information through the computer program. In the measurement method of the present invention, various calculations and measurements are automatically completed by the computer program, which can improve the measurement accuracy and save time.
[0011] In an exemplary embodiment of the method for measuring cervical curvature, the step of calculating the cervical curvature data according to the position information of the front edge, the middle edge and the rear edge of each vertebral body comprises the following steps:
[0012] Extracting coordinate information of the midpoint of the front edge, the midpoint of the middle edge, and the midpoint of the rear edge of each vertebra according to the position information of the front edge, the middle edge, and the rear edge of each vertebra; and
[0013] According to the coordinate information of the midpoint of the front edge, the midpoint of the middle edge and the midpoint of the back edge of each vertebra, the fitting cervical front edge curve, the cervical middle edge curve and the cervical back edge curve are calculated.
[0014] In an exemplary embodiment of the method for measuring cervical curvature, the step of calculating and fitting the cervical front edge curve, the cervical middle edge curve and the cervical rear edge curve according to the coordinate information of the front edge midpoint, the middle edge midpoint and the rear edge midpoint of each vertebral body comprises the following steps:
[0015] Substitute the coordinate information of the midpoint of the front edge, the midpoint of the middle edge and the midpoint of the rear edge of each vertebra into the C-type initialization curve to obtain the C-type curve of the front edge, the middle edge and the rear edge of the cervical vertebra. The C-type initialization curve is:
[0016] y=log a (x)+b,
[0017] Among them, a and b are the variables to be fitted;
[0018] Substitute the coordinate information of the midpoint of the front edge, the midpoint of the middle edge and the midpoint of the rear edge of each vertebra into the S-shaped initialization curve to obtain the S-shaped curve of the front edge, the middle edge and the rear edge of the cervical vertebra. The S-shaped initialization curve is:
[0019] y=L / [1+e (M-Nx) ],
[0020] Among them, L, M and N are the variables to be fitted;
[0021] Calculate the loss function of the C-curve and the S-curve; and
[0022] The loss functions of the C-type curve and the S-type curve are compared, and according to the comparison results, the C-type curve and the S-type curve with the smaller loss function are selected as the cervical front edge curve, the cervical middle edge curve and the cervical back edge curve.
[0023] In an exemplary embodiment of the method for measuring cervical curvature, the step of calculating the cervical curvature data according to the position information of the front edge, the middle edge and the rear edge of each vertebral body comprises the following steps:
[0024] Draw the tangent line of the front edge of the second vertebra, the tangent line of the middle edge of the second vertebra, and the tangent line of the rear edge of the second vertebra according to the position information of the front edge, the middle edge, and the rear edge of each vertebra;
[0025] Draw the tangent line of the front edge of the seventh vertebra, the tangent line of the middle edge of the seventh vertebra and the tangent line of the rear edge of the seventh vertebra according to the position information of the front edge, middle edge and rear edge of each vertebra;
[0026] Calculate the angle between the tangent line of the front edge of the second vertebra and the tangent line of the front edge of the seventh vertebra, the angle between the tangent line of the middle edge of the second vertebra and the tangent line of the middle edge of the seventh vertebra, and the angle between the tangent line of the rear edge of the second vertebra and the tangent line of the rear edge of the seventh vertebra; and
[0027] The global curvature of the cervical spine was calculated using the following formula:
[0028]
[0029] in, represents the global curvature of the cervical spine, α F represents the angle between the tangent line of the second vertebral body and the tangent line of the seventh vertebral body, α M represents the angle between the mid-edge tangents of the second vertebra and the seventh vertebra, α B It represents the angle between the tangent lines of the posterior edges of the second and seventh vertebrae.
[0030] In an exemplary embodiment of the method for measuring cervical curvature, the step of calculating the cervical curvature data according to the position information of the front edge, the middle edge and the rear edge of each vertebral body comprises the following steps:
[0031] Draw the posterior edge tangent of each vertebra according to the position information of the front edge, middle edge and posterior edge of each vertebra;
[0032] Calculate the angles of the tangent lines of the posterior edges of adjacent vertebrae to obtain the angles of each segment between the vertebrae; and
[0033] The global curvature of the vertebral body is obtained by adding up the angles of each segment between vertebrae.
[0034] In an exemplary embodiment of the method for measuring cervical curvature, the step of calculating the cervical curvature data according to the position information of the front edge, the middle edge and the rear edge of each vertebral body comprises the following steps:
[0035] According to the position information of the front edge, middle edge and rear edge of each vertebra, the coordinate information of the middle point of the rear edge of the second vertebra and the coordinate information of the middle point of the rear edge of the seventh vertebra are obtained;
[0036] Generate an auxiliary line connecting the midpoint of the posterior edge of the second vertebra and the posterior edge of the seventh vertebra;
[0037] Obtaining the coordinates of the midpoints of the rear edges of other vertebrae according to the position information of the front edge, middle edge and rear edge of each vertebrae, and calculating the distance from the midpoint of the rear edge of each vertebrae to the auxiliary line; and
[0038] The global curvature of the vertebral body was calculated using the following formula:
[0039]
[0040] in, represents the global curvature of the vertebra, x2 represents the horizontal coordinate of the midpoint of the posterior edge of the second vertebra, y2 represents the vertical coordinate of the midpoint of the posterior edge of the second vertebra, x7 represents the horizontal coordinate of the midpoint of the posterior edge of the seventh vertebra, y7 represents the vertical coordinate of the midpoint of the posterior edge of the seventh vertebra, D3 represents the distance from the midpoint of the posterior edge of the third vertebra to the auxiliary line, D4 represents the distance from the midpoint of the posterior edge of the fourth vertebra to the auxiliary line, D5 represents the distance from the midpoint of the posterior edge of the fifth vertebra to the auxiliary line, and D6 represents the distance from the midpoint of the posterior edge of the sixth vertebra to the auxiliary line.
[0041] In an exemplary embodiment of the method for measuring cervical curvature, the step of calculating the cervical curvature data according to the position information of the front edge, the middle edge and the rear edge of each vertebral body comprises the following steps:
[0042] Draw a vertical line perpendicular to the posterior edge of each vertebra and passing through the midpoint of the posterior edge according to the position information of the anterior edge, the middle edge and the posterior edge of each vertebra;
[0043] Calculate the included angles of the perpendicular lines of adjacent vertebrae respectively to obtain the bending angles between the vertebrae; and
[0044] Calculate the estimated radius of the cervical curvature using the following formula:
[0045]
[0046] Among them, R represents the estimated radius of the cervical curvature, N2 represents the distance from the midpoint of the posterior edge of the second vertebra to the intersection of the perpendicular line of the second vertebra and the perpendicular line of the third vertebra, N3 represents the distance from the midpoint of the posterior edge of the third vertebra to the intersection of the perpendicular line of the third vertebra and the perpendicular line of the fourth vertebra, N4 represents the distance from the midpoint of the posterior edge of the fourth vertebra to the intersection of the perpendicular line of the fourth vertebra and the perpendicular line of the fifth vertebra, N5 represents the distance from the midpoint of the posterior edge of the fifth vertebra to the intersection of the perpendicular line of the fifth vertebra and the perpendicular line of the sixth vertebra, and N6 represents the distance from the midpoint of the posterior edge of the sixth vertebra to the intersection of the perpendicular line of the sixth vertebra and the perpendicular line of the seventh vertebra.
[0047] The present invention also provides a method for generating a judgment model of cervical curvature, comprising the following steps:
[0048] Obtain lateral medical images of the cervical spine with known curve type;
[0049] Using the above measurement method, the cervical curvature data of the cervical lateral medical image is calculated; and
[0050] The initial model is trained by combining the cervical curvature data and curvature type of lateral cervical medical images to generate a curvature type judgment model.
[0051] In an exemplary implementation of a method for generating a model for determining cervical curvature, the initial model is a support vector machine model.
[0052] The present invention also provides a method for determining cervical curvature, comprising the following steps:
[0053] Obtain lateral medical images of the cervical spine;
[0054] Using the above measurement method, the cervical curvature data of the cervical lateral medical image is calculated;
[0055] Using the above judgment model generation method, a bending type judgment model is generated; and
[0056] The cervical curvature data of the cervical lateral medical image is input into the curvature type judgment model for judgment, and the curvature type is output. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The following drawings are only used to schematically illustrate and explain the present invention, and do not limit the scope of the present invention.
[0058] Figure 1 The figure is a flowchart diagram for explaining an exemplary embodiment of a method for measuring cervical curvature.
[0059] Figure 2 The figure is an example of an implementation for explaining a method for measuring cervical curvature.
[0060] Figure 3 A schematic diagram of a portion of a flow chart for explaining a method for measuring cervical vertebral curvature.
[0061] Figure 4 FIG. 1 is another exemplary diagram for explaining a method for measuring cervical vertebral curvature.
[0062] Figure 5 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature.
[0063] Figure 6 FIG. 1 is another exemplary diagram for explaining a method for measuring cervical vertebral curvature.
[0064] Figure 7 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature.
[0065] Figure 8 FIG. 1 is another exemplary diagram for explaining a method for measuring cervical curvature.
[0066] Fig. 9 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature.
[0067] Fig.10 FIG. 1 is another exemplary diagram for explaining a method for measuring cervical vertebral curvature.
[0068] Fig.11Another partial flow chart for illustrating the method for measuring cervical vertebra curvature.
[0069] Fig.12 FIG. 1 is another exemplary diagram for explaining a method for measuring cervical vertebral curvature.
[0070] Fig.13 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature.
[0071] Fig.14 FIG. 1 is another exemplary diagram for explaining a method for measuring cervical vertebral curvature.
[0072] Fig.15 The figure is a flowchart diagram for explaining an exemplary implementation of a method for generating a judgment model of cervical curvature.
[0073] Fig.16 The figure is a flowchart diagram for explaining an exemplary implementation of a method for determining cervical curvature.
[0074] Description of symbols
[0075] C2 Second vertebra
[0076] C3 Third vertebra
[0077] C4 Fourth vertebra
[0078] C5 Fifth vertebra
[0079] C6 Sixth vertebra
[0080] C7 seventh vertebra
[0081] LF Frontal curve of cervical spine
[0082] LM midline curve of cervical spine
[0083] LB posterior cervical curve
[0084] FC2 Tangent line of the anterior edge of the second vertebra
[0085] FC7 Anterior edge tangent of the seventh vertebra
[0086] MC2 Tangent line of the middle edge of the second vertebra
[0087] MC7 Midline tangent to the seventh vertebra
[0088] BC2 Tangent line of the posterior edge of the second vertebra
[0089] BC3 Tangent to the posterior edge of the third vertebra
[0090] BC4 Tangent to the posterior edge of the fourth vertebra
[0091] BC5 Tangent to the posterior edge of the fifth vertebra
[0092] BC6 Tangent to the posterior edge of the sixth vertebra
[0093] BC7 Tangent to the posterior edge of the seventh vertebra
[0094] Li auxiliary line
[0095] D3 The distance from the midpoint of the posterior edge of the third vertebra to the auxiliary line
[0096] D4 The distance from the midpoint of the posterior edge of the fourth vertebra to the auxiliary line
[0097] D5 The distance from the midpoint of the posterior edge of the fifth vertebra to the auxiliary line
[0098] D6 The distance from the midpoint of the posterior edge of the sixth vertebra to the auxiliary line
[0099] L2 perpendicular to the second vertebra
[0100] L3 perpendicular to the third vertebra
[0101] L4 Perpendicular to the fourth vertebra
[0102] L5 Perpendicular to the fifth vertebra
[0103] L6 Perpendicular to the sixth vertebra
[0104] L7 The vertical line of the seventh vertebra DETAILED DESCRIPTION
[0105] In order to have a clearer understanding of the technical features, purposes and effects of the invention, the specific embodiments of the present invention are now described with reference to the accompanying drawings. The same reference numerals in the drawings represent components with the same structure or similar structures but the same functions.
[0106] In this document, “exemplary” means “serving as an example, instance or illustration”, and any diagram or implementation described in this document as “exemplary” should not be interpreted as a more preferred or more advantageous technical solution.
[0107] In order to simplify the drawings, each figure only schematically shows the parts related to the present invention, which do not represent the actual structure of the product.
[0108] Figure 1 The figure is a flowchart diagram for explaining an exemplary embodiment of a method for measuring cervical curvature. Figure 2 This is a diagram for explaining an implementation example of a method for measuring cervical curvature. Figure 1 and Figure 2 The cervical spine includes a second vertebra C2, a third vertebra C3, a fourth vertebra C4, a fifth vertebra C5, a sixth vertebra C6 and a seventh vertebra C7 which are connected in sequence. The method for measuring the curvature of the cervical spine includes the following steps:
[0109] Step S100: Input the lateral medical image of the cervical spine into a computer program. Figure 2 The lateral medical image of the cervical spine can be an X-ray image or a magnetic resonance imaging image.
[0110] Step S200: Process the lateral medical image of the cervical spine using vertebral segmentation technology to extract the position information of the front edge, middle edge and rear edge of each vertebra. Figure 2 , the lateral medical image of the cervical spine is processed by vertebral segmentation technology to identify Figure 2 The front edge, middle edge and rear edge of each vertebra shown by the dotted line in the image are obtained, and the coordinate information of the dotted line in the image is obtained.
[0111] Step S300: Calculate the cervical curvature data according to the position information of the front edge, middle edge and rear edge of each vertebral body, wherein the cervical curvature data includes but is not limited to the global curvature of the cervical spine, the angles of each segment between vertebral bodies, the estimated radius of the cervical curvature, and one or more of the cervical front edge curve, the cervical middle edge curve and the cervical rear edge curve.
[0112] The method for measuring cervical curvature provided by the present invention inputs a lateral medical image of the cervical spine into a computer program and processes it using vertebral segmentation technology, thereby extracting the position information of the front edge, middle edge and rear edge of each vertebra, and then automatically calculating the cervical curvature data using the above position information through the computer program. In the measurement method of the present invention, various calculations and measurements are automatically completed by the computer program, which can improve the measurement accuracy and save time.
[0113] Figure 3 A schematic diagram of a portion of a flow chart for explaining a method for measuring cervical vertebral curvature. Figure 4 FIG. 2 is another example diagram for explaining a method for measuring cervical curvature. Figure 3 and Figure 4 , step S300 includes the following steps:
[0114] Step S310: Extract the coordinate information of the midpoint of the front edge, the midpoint of the middle edge and the midpoint of the rear edge of each vertebra according to the position information of the front edge, the middle edge and the rear edge of each vertebra. Figure 4 , the lateral medical image of the cervical spine is processed by vertebral segmentation technology to identify Figure 4 The midpoints of the front edge, middle edge and rear edge of each vertebra are shown as the dots in the figure. When the coordinate information of the front edge, middle edge and rear edge of each vertebra has been obtained, the coordinate information of the midpoints of the front edge, middle edge and rear edge of each vertebra in the image can be further calculated.
[0115] Step S320: Calculate and fit the cervical front edge curve LF, the cervical middle edge curve LM and the cervical back edge curve LB according to the coordinate information of the front edge midpoint, the middle edge midpoint and the back edge midpoint of each vertebral body. Figure 5 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature. Figure 6 FIG. 2 is another example diagram for explaining a method for measuring cervical curvature. Figure 5 and Figure 6 , step S320 specifically includes the following steps:
[0116] Step S321: Substitute the coordinate information of the front edge midpoint, middle edge midpoint and rear edge midpoint of each vertebra into the C-type initialization curve to obtain the C-type curve of the front edge, middle edge and rear edge of the cervical vertebra. The C-type initialization curve is:
[0117] y=log a (x)+b;
[0118] Among them, the C-type initialization curve shows a common shape of the cervical spine, and a and b are variables to be fitted.
[0119] Step S322: Substitute the coordinate information of the front edge midpoint, middle edge midpoint and rear edge midpoint of each vertebra into the S-shaped initialization curve to obtain the S-shaped curve of the front edge, middle edge and rear edge of the cervical vertebra. The S-shaped initialization curve is:
[0120] y=L / [1+e (M-Nx) ];
[0121] Among them, the S-shaped initialization curve shows another common shape of the cervical spine, and L, M and N are variables to be fitted.
[0122] Step S323: Calculate the loss functions of the C-curve and the S-curve.
[0123] Step S324: Compare the loss functions of the C-type curve and the S-type curve, and select the one with the smaller loss function as the cervical front edge curve LF, the cervical middle edge curve LM and the cervical back edge curve LB according to the comparison result.
[0124] Figure 7 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature. Figure 8 FIG. 2 is another exemplary embodiment for illustrating a method for measuring cervical curvature. Figure 7 and Figure 8 , step S300 includes the following steps:
[0125] Step S331: Draw the second vertebral front edge tangent FC2, the second vertebral middle edge tangent MC2 and the second vertebral back edge tangent BC2 according to the position information of the front edge, middle edge and back edge of each vertebral body.
[0126] Step S332: Draw the seventh vertebral front edge tangent line FC7, the seventh vertebral middle edge tangent line MC7 and the seventh vertebral back edge tangent line BC7 according to the position information of the front edge, middle edge and back edge of each vertebra.
[0127] Step S333: Calculate the angle between the second vertebral front edge tangent FC2 and the seventh vertebral front edge tangent FC7, the angle between the second vertebral midline tangent MC2 and the seventh vertebral midline tangent MC7, and the angle between the second vertebral posterior edge tangent FC2 and the seventh vertebral posterior edge tangent FC7.
[0128] Step S334: Calculate the global curvature of the cervical spine using the following formula:
[0129]
[0130] in, represents the global curvature of the cervical spine, α F represents the angle between the second vertebral front edge tangent FC2 and the seventh vertebral front edge tangent FC7, α M represents the angle between the second vertebral midline tangent MC2 and the seventh vertebral midline tangent MC7, α B It represents the included angle between the tangent line FC2 of the posterior edge of the second vertebra and the tangent line FC7 of the posterior edge of the seventh vertebra.
[0131] Fig. 9 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature. Fig.10 FIG. 2 is another exemplary embodiment for illustrating a method for measuring cervical curvature. Fig. 9 and Fig.10 , step S300 includes:
[0132] Step S341: Draw the tangent line of the rear edge of each vertebra according to the position information of the front edge, middle edge and rear edge of each vertebra. Fig.10 The tangent line of the second vertebral posterior edge BC2, the tangent line of the third vertebral posterior edge BC3, the tangent line of the fourth vertebral posterior edge BC4, the tangent line of the fifth vertebral posterior edge BC5, the tangent line of the sixth vertebral posterior edge BC6 and the tangent line of the seventh vertebral posterior edge BC7.
[0133] Step S342: Calculate the angles of the tangent lines of the posterior edges of adjacent vertebrae to obtain the angles of each segment between the vertebrae.
[0134] Step S343: Add the angles of each segment between vertebrae to obtain the global curvature of the vertebrae.
[0135] Fig.11 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature. Fig.12 FIG. 2 is another exemplary embodiment for illustrating a method for measuring cervical curvature. Fig.11and Fig.12 , step S300 includes:
[0136] Step S351: Obtain the coordinate information (x2, y2) of the middle point of the rear edge of the second vertebra and the coordinate information (x7, y7) of the middle point of the rear edge of the seventh vertebra according to the position information of the front edge, middle edge and rear edge of each vertebra.
[0137] Step S352: Generate an auxiliary line Li by connecting the midpoint of the rear edge of the second vertebra and the rear edge of the seventh vertebra.
[0138] Step S353: Obtain the coordinates of the midpoints of the rear edges of other vertebrae according to the position information of the front edge, middle edge and rear edge of each vertebrae, and calculate the distance from the midpoint of the rear edge of each vertebrae to the auxiliary line. Fig.12 The distance from the midpoint of the posterior edge of the third vertebra to the auxiliary line is D3, the distance from the midpoint of the posterior edge of the fourth vertebra to the auxiliary line is D4, the distance from the midpoint of the posterior edge of the fifth vertebra to the auxiliary line is D5, and the distance from the midpoint of the posterior edge of the sixth vertebra to the auxiliary line is D6.
[0139] Step S354: Calculate the global curvature of the vertebral body using the following formula:
[0140]
[0141] in, represents the global curvature of the vertebra, x2 represents the horizontal coordinate of the midpoint of the rear edge of the second vertebra, y2 represents the vertical coordinate of the midpoint of the rear edge of the second vertebra, x7 represents the horizontal coordinate of the midpoint of the rear edge of the seventh vertebra, y7 represents the vertical coordinate of the midpoint of the rear edge of the seventh vertebra, D3 represents the distance from the midpoint of the rear edge of the third vertebra to the auxiliary line, D4 represents the distance from the midpoint of the rear edge of the fourth vertebra to the auxiliary line, D5 represents the distance from the midpoint of the rear edge of the fifth vertebra to the auxiliary line, and D6 represents the distance from the midpoint of the rear edge of the sixth vertebra to the auxiliary line. In the calculation process, D3, D4, D5 and D6 take positive values when the midpoint of the rear edge of the vertebra is located in front of the auxiliary line Li, otherwise they take negative values.
[0142] Fig.13 Another partial flow chart for illustrating the method for measuring cervical vertebra curvature. Fig.14 FIG. 2 is another exemplary embodiment for illustrating a method for measuring cervical curvature. Fig.13 and Fig.14 , step S300 includes:
[0143] Draw a vertical line perpendicular to the rear edge of each vertebra and passing through the midpoint of the rear edge according to the position information of the front edge, middle edge and rear edge of each vertebra. Fig.14The perpendicular line L2 of the second vertebra, the perpendicular line L3 of the third vertebra, the perpendicular line L4 of the fourth vertebra, the perpendicular line L5 of the fifth vertebra, the perpendicular line L6 of the sixth vertebra, and the perpendicular line L7 of the seventh vertebra.
[0144] The angles between the perpendicular lines of the adjacent vertebrae are calculated respectively to obtain the bending angles between the vertebrae. In the calculation process, the bending angles between the vertebrae take positive values when the vertebrae bend toward the dorsal side, and take negative values when the vertebrae bend toward the dorsal side.
[0145] Calculate the estimated radius of the cervical curvature using the following formula:
[0146]
[0147] Among them, R represents the estimated radius of the cervical curvature, N2 represents the distance from the midpoint of the posterior edge of the second vertebra to the intersection of the perpendicular line of the second vertebra and the perpendicular line of the third vertebra, N3 represents the distance from the midpoint of the posterior edge of the third vertebra to the intersection of the perpendicular line of the third vertebra and the perpendicular line of the fourth vertebra, N4 represents the distance from the midpoint of the posterior edge of the fourth vertebra to the intersection of the perpendicular line of the fourth vertebra and the perpendicular line of the fifth vertebra, N5 represents the distance from the midpoint of the posterior edge of the fifth vertebra to the intersection of the perpendicular line of the fifth vertebra and the perpendicular line of the sixth vertebra, and N6 represents the distance from the midpoint of the posterior edge of the sixth vertebra to the intersection of the perpendicular line of the sixth vertebra and the perpendicular line of the seventh vertebra.
[0148] The invention also provides a method for generating a judgment model of cervical curvature. Fig.15 FIG. 1 is a flow chart of an exemplary embodiment of a method for generating a judgment model of cervical curvature. Fig.15 , the judgment model generation method includes the following steps:
[0149] Step S10: Acquire a lateral medical image of the cervical spine of a known curvature type, wherein the lateral medical image of the cervical spine of a known curvature type is a historical lateral medical image of the cervical spine of which the curvature type is determined by a doctor.
[0150] Step S20: using the above-mentioned measurement method, the cervical curvature data of the cervical lateral medical image is calculated.
[0151] Step S30: Combine the cervical curvature data and curvature type of the cervical lateral medical image to train the initial model and generate a curvature type judgment model. The initial model is a support vector machine model generated by a support vector machine model (SVM) algorithm, and the judgment results include normal curvature, straightened curvature or reversed curvature.
[0152] The invention also provides a method for determining cervical curvature. Fig.16 FIG. 1 is a flow chart for explaining an exemplary embodiment of a method for determining cervical curvature. Fig.16, the judgment method includes the following steps:
[0153] Step S1: Acquire a lateral medical image of the cervical spine.
[0154] Step S2: using the above-mentioned measurement method, the cervical curvature data of the cervical lateral medical image is calculated.
[0155] Step S3: Generate a bending type judgment model using the above judgment model generation method.
[0156] Step S4: inputting the cervical curvature data of the cervical lateral medical image into the curvature type judgment model for judgment, and outputting the curvature type.
[0157] It should be understood that although this specification is described according to various embodiments, not every embodiment contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
[0158] The series of detailed descriptions listed above are only specific descriptions of feasible embodiments of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation scheme or changes that do not deviate from the technical spirit of the present invention, such as combination, division or repetition of features, should be included in the scope of protection of the present invention.
Claims
1. A method for measuring cervical curvature, characterized in that: The following steps are involved: Enter the lateral medical images of the cervical spine into a computer program; Processing the lateral medical image of the cervical spine using vertebral segmentation technology to extract the position information of the front edge, middle edge and rear edge of each vertebra; as well as The cervical curvature data are calculated based on the position information of the front edge, middle edge and rear edge of each vertebra.
2. The method for measuring cervical curvature according to claim 1, characterized in that: Steps: According to the position information of the front edge, middle edge and rear edge of each vertebral body, the cervical curvature data is calculated, including the following steps: Extracting coordinate information of the midpoint of the front edge, the midpoint of the middle edge, and the midpoint of the rear edge of each vertebra according to the position information of the front edge, the middle edge, and the rear edge of each vertebra; and According to the coordinate information of the midpoint of the front edge, the midpoint of the middle edge and the midpoint of the back edge of each vertebra, the fitting cervical front edge curve, the cervical middle edge curve and the cervical back edge curve are calculated.
3. The method for measuring cervical curvature according to claim 2, characterized in that: Steps: According to the coordinate information of the front edge midpoint, the middle edge midpoint and the rear edge midpoint of each vertebra, the fitting cervical front edge curve, the cervical middle edge curve and the cervical rear edge curve are calculated, including the following steps: Substitute the coordinate information of the front edge midpoint, middle edge midpoint and rear edge midpoint of each vertebra into the C-type initialization curve to obtain the C-type curve of the front edge, middle edge and rear edge of the cervical vertebra. The C-type initialization curve is: y=log a (x)+b, Among them, a and b are the variables to be fitted; Substitute the coordinate information of the front edge midpoint, middle edge midpoint and rear edge midpoint of each vertebra into the S-shaped initialization curve to obtain the S-shaped curve of the front edge, middle edge and rear edge of the cervical vertebra. The S-shaped initialization curve is: y=L / [1+e (M-Nx) ], Among them, L, M and N are the variables to be fitted; Calculating the loss function of the C-curve and the S-curve; and The loss functions of the C-type curve and the S-type curve are compared, and according to the comparison results, the C-type curve and the S-type curve with the smaller loss function are selected as the cervical front edge curve, the cervical middle edge curve and the cervical back edge curve.
4. The method for measuring cervical curvature according to claim 1, characterized in that: Steps: According to the position information of the front edge, middle edge and rear edge of each vertebral body, the cervical curvature data is calculated, including the following steps: Draw the tangent line of the front edge of the second vertebra, the tangent line of the middle edge of the second vertebra, and the tangent line of the rear edge of the second vertebra according to the position information of the front edge, the middle edge, and the rear edge of each vertebra; Draw the tangent line of the front edge of the seventh vertebra, the tangent line of the middle edge of the seventh vertebra and the tangent line of the rear edge of the seventh vertebra according to the position information of the front edge, middle edge and rear edge of each vertebra; Calculate the angle between the tangent line of the front edge of the second vertebra and the tangent line of the front edge of the seventh vertebra, the angle between the tangent line of the middle edge of the second vertebra and the tangent line of the middle edge of the seventh vertebra, and the angle between the tangent line of the rear edge of the second vertebra and the tangent line of the rear edge of the seventh vertebra; and The global curvature of the cervical spine was calculated using the following formula: in, represents the global curvature of the cervical spine, α F represents the angle between the tangent line of the second vertebral body and the tangent line of the seventh vertebral body, α M represents the angle between the mid-edge tangents of the second vertebra and the seventh vertebra, α B It represents the angle between the tangent lines of the posterior edges of the second and seventh vertebrae.
5. The method for measuring cervical curvature according to claim 1, characterized in that: Steps: According to the position information of the front edge, middle edge and rear edge of each vertebra, the cervical curvature data is calculated, including the following steps: Draw the posterior edge tangent of each vertebra according to the position information of the front edge, middle edge and posterior edge of each vertebra; Calculate the angles of the tangent lines of the posterior edges of adjacent vertebrae to obtain the angles of each segment between the vertebrae; and The global curvature of the vertebral body is obtained by adding up the angles of each segment between vertebrae.
6. The method for measuring cervical curvature according to claim 1, characterized in that: Steps: According to the position information of the front edge, middle edge and rear edge of each vertebra, the cervical curvature data is calculated, including the following steps: According to the position information of the front edge, middle edge and rear edge of each vertebra, the coordinate information of the middle point of the rear edge of the second vertebra and the coordinate information of the middle point of the rear edge of the seventh vertebra are obtained; Generate an auxiliary line connecting the midpoint of the posterior edge of the second vertebra and the posterior edge of the seventh vertebra; According to the position information of the front edge, middle edge and rear edge of each vertebra, the coordinates of the midpoints of the rear edges of other vertebrae are obtained, and the distance from the midpoints of the rear edges of each vertebra to the auxiliary line is calculated; as well as The global curvature of the vertebral body was calculated using the following formula: in, represents the global curvature of the vertebra, x2 represents the horizontal coordinate of the midpoint of the posterior edge of the second vertebra, y2 represents the vertical coordinate of the midpoint of the posterior edge of the second vertebra, x7 represents the horizontal coordinate of the midpoint of the posterior edge of the seventh vertebra, y7 represents the vertical coordinate of the midpoint of the posterior edge of the seventh vertebra, D3 represents the distance from the midpoint of the posterior edge of the third vertebra to the auxiliary line, D4 represents the distance from the midpoint of the posterior edge of the fourth vertebra to the auxiliary line, D5 represents the distance from the midpoint of the posterior edge of the fifth vertebra to the auxiliary line, and D6 represents the distance from the midpoint of the posterior edge of the sixth vertebra to the auxiliary line.
7. The method for measuring cervical curvature according to claim 1, characterized in that: Steps: According to the position information of the front edge, middle edge and rear edge of each vertebra, the cervical curvature data is calculated, including the following steps: Draw a vertical line perpendicular to the posterior edge of each vertebra and passing through the midpoint of the posterior edge according to the position information of the anterior edge, the middle edge and the posterior edge of each vertebra; Calculate the angles between the vertical lines of adjacent vertebrae to obtain the angles of each segment between vertebrae; as well as Calculate the estimated radius of the cervical curvature using the following formula: Among them, R represents the estimated radius of the cervical curvature, N2 represents the distance from the midpoint of the posterior edge of the second vertebra to the intersection of the perpendicular line of the second vertebra and the perpendicular line of the third vertebra, N3 represents the distance from the midpoint of the posterior edge of the third vertebra to the intersection of the perpendicular line of the third vertebra and the perpendicular line of the fourth vertebra, N4 represents the distance from the midpoint of the posterior edge of the fourth vertebra to the intersection of the perpendicular line of the fourth vertebra and the perpendicular line of the fifth vertebra, N5 represents the distance from the midpoint of the posterior edge of the fifth vertebra to the intersection of the perpendicular line of the fifth vertebra and the perpendicular line of the sixth vertebra, and N6 represents the distance from the midpoint of the posterior edge of the sixth vertebra to the intersection of the perpendicular line of the sixth vertebra and the perpendicular line of the seventh vertebra.
8. A method for generating a judgment model of cervical curvature, characterized in that: The following steps are involved: Obtain lateral medical images of the cervical spine with known curve type; Utilizing the measurement method according to any one of claims 1 to 7, calculating the cervical curvature data of the cervical lateral medical image; as well as The initial model is trained by combining the cervical curvature data and curvature type of the cervical lateral medical image to generate a curvature type judgment model.
9. The method for generating a model for determining cervical curvature according to claim 8, wherein: The initial model is a support vector machine model.
10. A method for determining cervical curvature, characterized in that: The following steps are involved: Obtain lateral medical images of the cervical spine; Utilizing the measurement method according to any one of claims 1 to 7, calculating the cervical curvature data of the cervical lateral medical image; Generate a bending type judgment model using the judgment model generation method according to any one of claims 8 or 9; and The cervical curvature data of the cervical lateral medical image is input into the curvature type judgment model for judgment, and the curvature type is output.