Image detection method, device, computer equipment and storage medium
Through key point detection and area division of the spinal segmentation image, the detection results of the posterior longitudinal ligament area are determined, which solves the problem of inaccurate detection of the posterior longitudinal ligament of the spine in traditional technology and achieves higher detection accuracy and precision.
Patent Information
- Application Number
- CN202110188716.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-02-19
AI Technical Summary
The detection results of the posterior longitudinal ligament of the spine in traditional techniques are inaccurate, which affects the assessment and diagnosis of spinal health.
By obtaining the spinal segmentation image, key point detection is performed to determine the position information of the vertebral body, and based on this information, the posterior longitudinal ligament area is detected, the area is divided and the target pixels are determined, a vector matrix is constructed for discrimination, and then the posterior longitudinal ligament area is determined. test results.
It improves the accuracy of posterior longitudinal ligament detection, reduces dependence on doctor's experience, and enhances the precision and accuracy of detection results.
Smart Images

Figure CN112967235B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image detection method, apparatus, computer equipment and storage medium. Background Art
[0002] As people's physical labor continues to decrease, the corresponding sitting time gradually increases, and people's spinal health issues have also attracted much attention. The spine includes the posterior longitudinal ligament of the spine, which plays a very important role in the health of the human spine. Therefore, when patients go to the hospital for spinal examination, it is very necessary to check the posterior longitudinal ligament in the patient's spine.
[0003] In traditional technology, when a patient goes to the hospital to check the posterior longitudinal ligament of the spine, the patient usually takes a medical image of the spine first, and then the doctor observes and analyzes the medical image and obtains the test result of the patient's posterior longitudinal ligament based on experience.
[0004] However, the above-mentioned technology for detecting the posterior longitudinal ligament of the spine has the problem of inaccurate detection results. Summary of the invention
[0005] Based on this, it is necessary to provide an image detection method, device, computer equipment and storage medium that can improve the accuracy of the detection results obtained when detecting the posterior longitudinal ligament of the spine in order to address the above technical problems.
[0006] An image detection method, the method comprising:
[0007] Acquire a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region;
[0008] Perform key point detection on the above-mentioned spinal segmentation image to determine the key point corresponding to each of the above-mentioned vertebrae;
[0009] The posterior longitudinal ligament region in the spinal column segmentation image is detected according to the position information of the key point of each vertebral body, and the detection result of the posterior longitudinal ligament region is determined.
[0010] In one embodiment, each of the vertebrae corresponds to a plurality of key points; and the posterior longitudinal ligament region in the spinal column segmentation image is detected based on the position information of the key points of each of the vertebrae to determine the detection result of the posterior longitudinal ligament region, including:
[0011] Dividing the rear edge region of the vertebral body into adjacent first and second regions according to the position information of each key point of the vertebral body;
[0012] According to the first and second regions of the vertebral body and the spinal column segmentation image, determining target pixel points in the spinal column segmentation image that are located in the first region and the second region;
[0013] The detection result of the posterior longitudinal ligament area is determined according to the target pixel points located in the first area and the second area.
[0014] In one embodiment, the spinal segmentation image includes a plurality of sagittal images, and the determining of target pixel points located in the first region and the second region in the spinal segmentation image based on the first region and the second region of the vertebral body and the spinal segmentation image includes:
[0015] Determining a target sagittal image from the multiple sagittal images, and obtaining a vertebral segmentation result corresponding to the target sagittal image;
[0016] According to the first and second regions of the vertebral body, each segmentation pixel point in the vertebral body segmentation result corresponding to the vertebral body is detected to determine the target pixel points in the vertebral body segmentation result located in the first and second regions.
[0017] In one embodiment, the detecting of each segmentation pixel point in the vertebral segmentation result corresponding to the vertebral body according to the first area and the second area of the vertebral body to determine the target pixel point in the vertebral segmentation result located in the first area and the second area includes:
[0018] Obtaining position information of segmentation pixel points in the vertebral segmentation result corresponding to the vertebral body; the segmentation pixel points are pixel points whose pixel values in the vertebral segmentation result corresponding to the vertebral body are greater than a pixel threshold;
[0019] Determine a first vector matrix corresponding to the first region and a second vector matrix corresponding to the second region according to the position information of each key point of the vertebral body and the position information of the segmented pixel points;
[0020] According to the first vector matrix and the second vector matrix and the preset vector constraint condition, the segmented pixel points are judged to determine the first target pixel points located in the first area and the second target pixel points located in the second area.
[0021] In one embodiment, determining the detection result of the posterior longitudinal ligament region according to the target pixel points located in the first region and the second region includes:
[0022] The detection result of determining the region formed by the first target pixel points as the posterior longitudinal ligament region located at the posterior edge of the vertebral body;
[0023] The region formed by the second target pixel points is determined as a detection result of a posterior longitudinal ligament region located behind an intervertebral disc; the intervertebral disc is an intervertebral disc between the vertebral body and a next adjacent vertebral body.
[0024] In one embodiment, the method further comprises:
[0025] Acquire the vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs;
[0026] According to the vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs, the vertebral body segment and the intervertebral disc segment corresponding to the detection result of the posterior longitudinal ligament region are determined.
[0027] In one embodiment, the method further comprises:
[0028] The detection result of the posterior longitudinal ligament region is quantized according to the first target pixel point and the second target pixel point to determine a quantization result corresponding to the detection result of the posterior longitudinal ligament region.
[0029] In one embodiment, before detecting each segmentation pixel point in the vertebral segmentation result corresponding to the vertebral body according to the first area and the second area of the vertebral body and determining the target pixel point in the vertebral segmentation result located in the first area and the second area, the method further includes:
[0030] The segmentation results of the attachments in the vertebral segmentation results corresponding to the above target sagittal image are removed.
[0031] In one embodiment, before performing key point detection on the spinal segmentation image to determine the key point corresponding to each vertebra, the method further includes:
[0032] The spinal column segmentation image is rectified to obtain a rectified spinal column segmentation image.
[0033] In one embodiment, the straightening process of the spine segmentation image to obtain the straightened spine segmentation image includes:
[0034] Acquire a target voxel in the spine segmentation image and the three-dimensional coordinates of the target voxel; the target voxel is a voxel in the spine segmentation image whose voxel value is greater than a voxel threshold;
[0035] Constructing a three-dimensional coordinate matrix according to the three-dimensional coordinates of the target voxel;
[0036] Perform principal component analysis on the above three-dimensional coordinate matrix to determine the unit eigenvectors in the three axes;
[0037] The image transformation relationship is determined according to the unit eigenvectors in the three axes, and the spinal segmentation image is transformed by using the image transformation relationship to obtain a straightened spinal segmentation image.
[0038] An image detection device, comprising:
[0039] An acquisition module is used to acquire a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament area;
[0040] A key point detection module is used to perform key point detection on the above-mentioned spinal segmentation image to determine the key point corresponding to each of the above-mentioned vertebrae;
[0041] The region detection module is used to detect the posterior longitudinal ligament region in the spinal column segmentation image according to the position information of the key point of each vertebral body, and determine the detection result of the posterior longitudinal ligament region.
[0042] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0043] Acquire a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region;
[0044] Perform key point detection on the above-mentioned spinal segmentation image to determine the key point corresponding to each of the above-mentioned vertebrae;
[0045] The posterior longitudinal ligament region in the spinal column segmentation image is detected according to the position information of the key point of each vertebral body, and the detection result of the posterior longitudinal ligament region is determined.
[0046] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0047] Acquire a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region;
[0048] Perform key point detection on the above-mentioned spinal segmentation image to determine the key point corresponding to each of the above-mentioned vertebrae;
[0049] The posterior longitudinal ligament region in the spinal column segmentation image is detected according to the position information of the key point of each vertebral body, and the detection result of the posterior longitudinal ligament region is determined.
[0050] The above-mentioned image detection method, device, computer equipment and storage medium obtain a spinal segmentation image of the object to be tested, including the vertebral body and the posterior longitudinal ligament area, perform key point detection on the spinal segmentation image, determine the key points corresponding to each vertebra, and detect the posterior longitudinal ligament area in the spinal segmentation image through the position information of the key points of each vertebra, and determine the detection result of the posterior longitudinal ligament area. In this method, since the posterior longitudinal ligament area can be detected through the position information of the vertebral key points obtained by the key point detection, the detection result of the posterior longitudinal ligament area can be obtained, that is, the process of posterior longitudinal ligament detection can be refined, and the doctor does not need to obtain the detection result of the posterior longitudinal ligament area based on experience. Therefore, the detection result of the posterior longitudinal ligament area obtained by this method is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 is an internal structure diagram of a computer device in one embodiment;
[0052] Figure 2 1 is a schematic diagram of a flow chart of an image detection method in an embodiment;
[0053] Figure 3 is a schematic flow chart of an image detection step in another embodiment;
[0054] Figure 3a An example diagram of area division in another embodiment;
[0055] Figure 3b An example diagram of constructing a vector matrix in another embodiment;
[0056] Figure 4 is a schematic flow chart of an image detection method in another embodiment;
[0057] Figure 5 is a schematic flow chart of an image detection method in another embodiment;
[0058] Figure 5a An exemplary diagram of image correction in another embodiment;
[0059] Figure 6 FIG. 4 is a structural block diagram of an image detection device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] The image detection method provided in the embodiment of the present application can be applied to a computer device or a medical detection system, wherein the medical detection system includes a computer device and a scanning device connected to each other, wherein the scanning device can scan the object to be detected and transmit the obtained scanning data to the computer device for processing. Here, the computer device can be a terminal or a server. Taking the computer device as a terminal as an example, its internal structure diagram can be as follows: Figure 1 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an image detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0062] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0063] It should be noted that the execution subject of the embodiment of the present application can be a medical detection system, or a computer device in the medical detection system, and of course it can also be an image detection device in the computer device. The following will use the computer device as the execution subject to explain the technical solution of the embodiment of the present application.
[0064] In one embodiment, Figure 2 As shown, an image detection method is provided, which may include the following steps:
[0065] S202, obtaining a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region.
[0066] The object to be tested may be a human body or an animal body, and may be a living body or a non-living body. The spinal segmentation image may include each vertebra of the object to be tested, the attachments corresponding to each vertebra, and the posterior longitudinal ligament region between each vertebra and the attachments.
[0067] In this step, the segmentation model can be used to segment the spinal column image of the subject to be tested, so as to obtain a spinal column segmentation image of the subject to be tested. The spinal column image of the subject to be tested can be obtained by scanning the spinal column of the subject to be tested.
[0068] Here, before obtaining the spinal segmentation image of the object to be tested, the segmentation model can be trained by a spinal training image set, wherein each spinal training image in the spinal training image set includes labels of each vertebra and the posterior longitudinal ligament region (the posterior longitudinal ligament region may include a normal region and an abnormal region of the posterior longitudinal ligament, and the abnormal region may be, for example, an ossified region, a lesion region, etc.). During training, each spinal training image in the spinal training image set can be used as an input of the initial segmentation model, and the spinal segmentation image corresponding to each spinal training image can be used as a reference output of the initial segmentation model, and the initial segmentation model is trained to obtain a trained segmentation model. The spinal segmentation image corresponding to each spinal training image includes a vertebra and a posterior longitudinal ligament region.
[0069] In addition, the segmentation model here can be a multi-label segmentation model, and different label values represent different vertebrae. In other words, the multi-label segmentation model can segment vertebrae with different labels, such as vertebrae with different labels such as cervical vertebrae, thoracic vertebrae, and lumbar vertebrae, and they can all be segmented out, and the segmented vertebrae can be labeled. It should be noted that the labels of all vertebrae here should include the above-mentioned posterior longitudinal ligament area.
[0070] Furthermore, since the segmentation model is used for spinal image segmentation, the segmentation result may be under-segmented or over-segmented, resulting in inaccurate segmentation results. Therefore, relevant algorithms can also be used here to optimize the segmentation results, such as graph cut algorithms, deep learning algorithms, etc.
[0071] Specifically, the spinal column image of the object to be tested can be segmented using the trained segmentation model to obtain a spinal column segmentation image of the object to be tested, wherein the spinal column segmentation image includes each vertebral body and the posterior longitudinal ligament region.
[0072] S204: Perform key point detection on the spinal column segmentation image to determine the key point corresponding to each of the vertebrae.
[0073] The key points here refer to key points on the vertebral body, for example, they may be any one or more of the leading edge corner point, trailing edge corner point, center point, or center of gravity point of the vertebral body.
[0074] In this step, key point detection is performed on the spine segmentation image, which can be considered as key point detection for each vertebra in the spine segmentation image. The key point detection model trained in advance can be used to perform key point detection on the spine segmentation image, and the key point detection model here can be trained by the spine segmentation image set, and the vertebra in each spine segmentation image of the spine segmentation image set includes annotated key points (wherein, the annotated key points can be the position information of the annotated key points, the vertebral label information, and / or the key point type information, etc.), and the key point detection model can be trained by the spine segmentation image set to obtain the trained key point detection model. It should be noted that when the key point detection model is trained, the given label, i.e., the key point position information, etc., should be located on the bone cortex of the vertebral body, and cannot be located on the ossified lesion in the posterior longitudinal ligament region, so that it is easy to distinguish the bone cortex and the ossified lesion of the vertebral body.
[0075] After the key point detection model is trained, the trained key point detection model can be used to perform key point detection on the spinal segmentation image of the object to be tested, and the key points on each vertebra in the spinal segmentation image and the position information of each key point can be obtained.
[0076] Here, each output channel of the key point detection model corresponds to the key points of a specific vertebra, such as the corner point C3_PT above the posterior edge of the cervical vertebra C3, the corner point T2_PB below the posterior edge of the thoracic vertebra T2, etc. The number of output channels can be determined according to actual needs. For example, if the key point detection model mainly detects the key points of the cervical spine and detects 4 key points for each vertebra, it can be set to 28 outputs, corresponding to 28 key points of the cervical vertebra C2-7 and the thoracic vertebra T1. Here, a key point of the thoracic vertebra is also output for the cervical vertebra detection, mainly because the intervertebral discs corresponding to each vertebra of the cervical spine can be included in the detection process, so as to facilitate further detection and processing of the posterior longitudinal ligament area.
[0077] Furthermore, since most vertebrae have similar graphic features, the results of some channels of the key point detection model often contain multiple candidate points of adjacent vertebrae, which need to be eliminated by post-processing algorithms to obtain correct key position information. The post-processing algorithms here can be, for example, geometric constraint methods.
[0078] S206, detecting the posterior longitudinal ligament region in the spinal column segmentation image according to the position information of the key point of each vertebral body, and determining the detection result of the posterior longitudinal ligament region.
[0079] In this step, after obtaining the key points of each vertebra and the position information of each key point, mathematical operations such as multiplication, dot multiplication, size comparison, etc., can be performed on the position information of each key point, the position information of the pixel points in the posterior longitudinal ligament region in the spinal segmentation result, and the pixel value information, etc., to obtain the detection result of the pixel points in the posterior longitudinal ligament region, and the detection result of the posterior longitudinal ligament region can be obtained through the detection result of the pixel points. Here, the detection result of the posterior longitudinal ligament region can be, for example, whether the posterior longitudinal ligament region is all normal, or includes an abnormal region, or is all abnormal, or a part is an abnormal region and the other part is a normal region.
[0080] In the above-mentioned image detection method, a spinal segmentation image including a vertebral body and a posterior longitudinal ligament region of the object to be detected is obtained, key point detection is performed on the spinal segmentation image, the key points corresponding to each vertebral body are determined, and the posterior longitudinal ligament region in the spinal segmentation image is detected by the position information of the key points of each vertebral body, and the detection result of the posterior longitudinal ligament region is determined. In this method, since the posterior longitudinal ligament region can be detected by the position information of the vertebral key points obtained by the key point detection, the detection result of the posterior longitudinal ligament region can be obtained, that is, the process of posterior longitudinal ligament detection can be refined, and the doctor does not need to obtain the detection result of the posterior longitudinal ligament region based on experience. Therefore, the detection result of the posterior longitudinal ligament region obtained by this method is more accurate.
[0081] In another embodiment, Figure 3 As shown, another image detection method is provided. Based on the above embodiment, each of the above vertebral bodies corresponds to multiple key points, and the above S206 may include the following steps:
[0082] S302: Divide the rear edge region of the vertebral body into adjacent first and second regions according to the position information of the key points of the vertebral body.
[0083] In this step, after obtaining each key point of each vertebra and the position information of each key point, the posterior edge area of each vertebra can be divided into two areas according to the position information of each key point. One is the posterior edge area of the current vertebra, recorded as the first area; the other is the area behind the gap between the current vertebra and the next vertebra, that is, the posterior area of the intervertebral disc, recorded as the second area.
[0084] See also Figure 3a As shown, taking the C2 vertebra of the cervical spine as an example, the area behind C2 is the area formed by the lines connecting points 1-3, 2-4, and 3-4, and the area behind the C2-3 gap is the area formed by the lines connecting points 2-4, 5-7, and 4-7, and the rest of the areas are similar. It should be noted that here Figure 3a It is just an example and does not affect the essential content of the embodiments of the present application.
[0085] S304: Determine target pixel points in the segmented spinal column image that are located in the first region and the second region according to the first region and the second region of the vertebral body and the segmented spinal column image.
[0086] In this step, pixel detection is generally performed on a sagittal image of the spine segmentation image. Then it is necessary to determine the sagittal image. Optionally, the above-mentioned spine segmentation image includes multiple sagittal images, so this step can include the following steps 1 and 2:
[0087] Step 1: determine a target sagittal image from the multiple sagittal images, and obtain a vertebral segmentation result corresponding to the target sagittal image.
[0088] The target sagittal image here can be a mid-sagittal image. The center or center of gravity of each vertebra can be calculated through the segmentation results of each vertebra in the spinal segmentation result, and the center or center of gravity of each vertebra is summed and averaged to obtain the center or center of gravity of the spine, and the sagittal image where the center or center of gravity of the spine is located is used as the mid-sagittal image, that is, the target sagittal image is obtained.
[0089] When the spinal segmentation image is obtained, the segmentation result of the vertebrae therein can also be obtained, and the segmentation result of the vertebrae can include the pixel value and position information of each pixel point on the vertebrae, the vertebral label to which the label belongs, etc. Similarly, after obtaining the target sagittal image, the segmentation result of the vertebrae corresponding to the target sagittal image can be obtained from the segmentation result of the vertebrae corresponding to the segmented image, that is, the two-dimensional vertebral segmentation result.
[0090] Here, by determining the target sagittal image and subsequently determining the target pixel points, targeted calculations can be performed to avoid blindly calculating all the pixel points on the sagittal image and reducing the calculation efficiency.
[0091] Step 2: According to the first area and the second area of the vertebral body, each segmentation pixel point in the vertebral body segmentation result corresponding to the vertebral body is detected to determine the target pixel point in the vertebral body segmentation result located in the first area and the second area.
[0092] In step 2, the target pixel points determined here include the target pixel points in the first area and the target pixel points in the second area. Optionally, the target pixel points can be determined by following steps 1-3.
[0093] Step 1: obtaining position information of segmentation pixel points in the vertebral segmentation result corresponding to the vertebral body; the segmentation pixel points are pixel points whose pixel values are greater than a pixel threshold in the vertebral segmentation result corresponding to the vertebral body.
[0094] In the above steps, the pixel value of each pixel in the vertebral segmentation result corresponding to the target sagittal image can be obtained, and then the pixel value of each pixel is compared with the pixel threshold, and the pixel whose pixel value is greater than the pixel threshold is obtained from each pixel, and recorded as the segmentation pixel. The pixel threshold here can be set according to the actual situation, for example, it can be 0, 10, 50, etc.
[0095] Step 2: Determine a first vector matrix corresponding to the first region and a second vector matrix corresponding to the second region according to the position information of each key point of the vertebral body and the position information of the segmented pixel points.
[0096] Here, the position information of each pixel point can also be obtained from the vertebral segmentation result corresponding to the target sagittal image. After the segmentation pixel points are determined, the position information of the segmentation pixel points can also be determined. The position information of each key point can be obtained through the above key point detection model.
[0097] After obtaining the position information of each key point and the position information of the segmentation pixel point, it is possible to further determine whether the segmentation pixel point is located in the first area or the second area. When making the judgment, a vector matrix can be constructed using the position information of each key point and the position information of the segmentation pixel point to make the judgment.
[0098] The specific process of constructing the vector matrix is as follows: (see here Figure 3b As shown, the posterior posterior region of the C3 vertebra of the cervical spine is used as an example. This method is applicable to other vertebrae.)
[0099] 1) According to the area demarcation method of S302 above, the C3 trailing edge area is demarcated by vectors V1, V2, and V3;
[0100] 2) Figure 3b The pixel point between vectors V2 and V3 is a segmentation pixel point located in the first region, and it and the upper and lower key points of the posterior edge of the C3 vertebra form vectors V4 and V5 respectively;
[0101] 3) Define the direction pointing out of the screen as positive. According to the right-hand rule, any pixel located in the trailing edge area of C3 satisfies the following four conditions at the same time: ①V4×V1>0, ②V4×V3<0, ③V5×V1>0, ④V5×V2>0, while other pixels in the image cannot satisfy the above four conditions at the same time.
[0102] 4) V4×V1>0, ②V4×V3<0, ③V5×V1>0, ④V5×V2>0 form four vector matrices, and the first vector matrix corresponding to the first area of the trailing edge of C3 can be obtained;
[0103] 5) According to the methods 1) to 4), the second vector matrix corresponding to the second region of the trailing edge of C3 can also be obtained.
[0104] It should be noted that here Figure 3b It is just an example and does not affect the essential content of the embodiments of the present application.
[0105] Step 3: According to the first vector matrix and the second vector matrix and the preset vector constraint conditions, the segmented pixel points are judged to determine the first target pixel points located in the first area and the second target pixel points located in the second area.
[0106] In this step, the vector cross product in the above step 2 is <0 or >0, which can be used as a vector constraint condition. The above 1)-4) methods can be used to distinguish each segmented pixel point located in the first area, and determine the target pixel point in the first area that meets the above vector constraint condition, which is recorded as the first target pixel point. The first target pixel point can be one or more.
[0107] Similarly, each segmentation pixel point located in the second area can also be judged in the above 1)-4) manner to determine the target pixel point in the second area that meets the above vector constraint conditions, which is recorded as the second target pixel point. The second target pixel point can be one or more.
[0108] Here, the target pixel point is determined by constructing a vector matrix. During the calculation process, multiple segmentation pixel points can be calculated in parallel (simultaneously) each time, instead of using a loop to calculate each segmentation pixel point in turn. Therefore, the speed of detecting the posterior longitudinal ligament area can be accelerated, that is, the efficiency of detecting the posterior longitudinal ligament area can be improved.
[0109] S306: Determine the detection result of the posterior longitudinal ligament region according to the target pixel points located in the first region and the second region.
[0110] After obtaining the first target pixel point located in the first area and the second target pixel point located in the second area, optionally, the area composed of the above-mentioned first target pixel points can be determined as the detection result of the posterior longitudinal ligament area located at the posterior edge of the above-mentioned vertebral body; the area composed of the above-mentioned second target pixel points can be determined as the detection result of the posterior longitudinal ligament area located behind the intervertebral disc; the above-mentioned intervertebral disc is the intervertebral disc between the above-mentioned vertebral body and the next adjacent vertebral body.
[0111] Here, the region composed of the first target pixel points is located in the first region of the posterior edge of the vertebral body, so it can be recorded as the detection result of the posterior longitudinal ligament region located at the posterior edge of the vertebral body. The detection result here can be considered to determine an area, and of course, it can also include other content. For example, the region composed of the first target pixel points here can be the ossification or lesion region of the posterior longitudinal ligament region, that is, the detection result of the posterior longitudinal ligament region located at the posterior edge of the vertebral body is to determine the ossification region or lesion region at this position.
[0112] Similarly, the area composed of the second target pixel points is located in the second area of the posterior edge of the vertebral body, so it can be recorded as the detection result of the posterior longitudinal ligament area located behind the intervertebral disc. The detection result here can be considered to determine an area, and of course it can also include other content. For example, the area composed of the second target pixel points here can be the ossification or lesion area of the posterior longitudinal ligament area, that is, the detection result of the posterior longitudinal ligament area located behind the intervertebral disc is to determine the ossification area or lesion area at this position.
[0113] Here, the detection results of the two regions are obtained through the target pixels of the two regions, and the detection range of the posterior longitudinal ligament region is refined, so that the detection result of the posterior longitudinal ligament region can be more refined and more accurate.
[0114] In this embodiment, the posterior edge region of the vertebral body is divided into a first region and a second region by the position information of each key point of the vertebral body, and the target pixel points located in the two regions are determined by the spinal segmentation image and the two regions, so as to determine the detection result of the posterior longitudinal ligament region according to the target pixel points. Here, the detection result of the posterior longitudinal ligament region is obtained by region division and determination of the target pixel points, and the detection process of the posterior longitudinal ligament region is refined step by step, so that the final detection result of the posterior longitudinal ligament region can be more refined and more accurate.
[0115] Based on the above-mentioned detection results of the posterior longitudinal ligament area, optionally, the above-mentioned method also includes: quantizing the detection results of the above-mentioned posterior longitudinal ligament area according to the above-mentioned first target pixel point and the above-mentioned second target pixel point, and determining the quantization result corresponding to the detection result of the above-mentioned posterior longitudinal ligament area.
[0116] After obtaining the first target pixel point and the second target pixel point, the pixel value and position information of the first target pixel point, the pixel value and position information of the second target pixel point, etc. can also be obtained accordingly. Afterwards, quantization processing can be performed on each first target pixel point and each second target pixel point to obtain quantization information, that is, a quantization result.
[0117] For example, the area of the region composed of the first target pixel points can be obtained by adding the pixel values of each first target pixel point; or, by finding the two pixel points with the largest and smallest pixel values from left to right or from right to left according to the vertebral segment or the spine as a whole, and determining the anterior-posterior diameter of the vertebral segment or the spine as a whole by the pixel values of these two pixel points; or, by calculating the proportion of the region composed of the target pixel points of each vertebral segment to the total region from top to bottom in the longitudinal direction of the spine, the ossification range of the posterior longitudinal ligament region can be obtained; or, other quantitative information can be obtained by other calculation methods. The same is true for the second target pixel point, which will not be repeated here.
[0118] In this embodiment, the detection results of the posterior longitudinal ligament area are quantified according to the first target pixel point and the second target pixel point to obtain a quantified result, so that the doctor can subsequently quickly analyze the image of the object to be measured based on the quantified result, thereby improving the efficiency of analyzing the image of the object to be measured.
[0119] In another embodiment, Figure 4 As shown, another image detection method is provided. Based on the above embodiment, the above method may further include the following steps:
[0120] S402, obtaining the vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs.
[0121] In this step, when each vertebral body is divided into the first region and the second region, the segment and the intervertebral disc segment to which each vertebral body belongs can be known.
[0122] For example, assuming that the posterior longitudinal ligament area behind the cervical C3 vertebra is detected, the C3 segment to which it belongs can be obtained, and the segment to which the intervertebral disc belongs is the intervertebral disc between the C3 vertebra and the C4 vertebra.
[0123] S404, determining the vertebral body segment and the intervertebral disc segment corresponding to the detection result of the posterior longitudinal ligament region according to the vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs.
[0124] In this step, similarly, after obtaining the detection result of the posterior longitudinal ligament region of each vertebra, the vertebral segment and intervertebral disc segment to which the detection result belongs can also be known through the vertebral segment and intervertebral disc segment during the above-mentioned area division.
[0125] In this embodiment, by acquiring the vertebral segment to which the subject belongs and the intervertebral disc segment to which the intervertebral disc belongs, the vertebral segment and the intervertebral disc segment corresponding to the detection result of the posterior longitudinal ligament area can be known. The vertebral segment and the intervertebral disc segment here can be considered as the position information of the anatomical structure, that is, the position information based on the anatomical structure of the spine can be obtained, so that the position information can be quickly processed when further analysis and processing of the spine is performed subsequently.
[0126] In another embodiment, another image detection method is provided. Based on the above embodiment, before the above S304, the above method may further include the following steps A:
[0127] Step A: removing the segmentation results of the appendages from the vertebral body segmentation results corresponding to the target sagittal image.
[0128] In this step, the attachments in the vertebral body segmentation result may be, for example, transverse processes, etc., and the attachment connected domain of the vertebral body located behind the object to be detected can be deleted through connected domain detection. Of course, other methods can also be used to remove them.
[0129] In this embodiment, by removing the segmentation results of the accessories in the vertebral segmentation results, when the posterior longitudinal ligament area behind the vertebral body is subsequently detected, it is possible to avoid considering the accessories as the posterior longitudinal ligament area, which affects the detection results of the posterior longitudinal ligament area, that is, the accuracy of the detection of the posterior longitudinal ligament area can be improved.
[0130] In another embodiment, another image detection method is provided. Based on the above embodiment, before the above S204, the above method may further include the following step B:
[0131] Step B: Straighten the above-mentioned spine segmentation image to obtain a straightened spine segmentation image.
[0132] Optional, see Figure 5 As shown, step B may include the following steps:
[0133] S502, obtaining a target voxel in the spine segmentation image and the three-dimensional coordinates of the target voxel; the target voxel is a voxel in the spine segmentation image whose voxel value is greater than a voxel threshold.
[0134] In this step, after the spine segmentation image is obtained through the segmentation model, the spine segmentation image here is a three-dimensional image, which can be considered as a mask image of the spine, so the voxel value and three-dimensional coordinates of each voxel in the spine segmentation image can be obtained. Then the voxel value of each voxel is compared with the voxel threshold, and the voxel with a voxel value greater than the voxel threshold is obtained from each voxel, which is recorded as the target voxel, and the three-dimensional coordinates of the target voxel can be obtained. The voxel threshold here can be set according to the actual situation, for example, it can be 0, 10, 50, etc.
[0135] S504: construct a three-dimensional coordinate matrix according to the three-dimensional coordinates of the target voxel.
[0136] In this step, the three-dimensional coordinates of each target voxel include coordinates in the three coordinate axis directions. Then, an N*3 three-dimensional coordinate matrix can be constructed through the three-dimensional coordinates of each target voxel, where N is the number of target voxels and is generally greater than 3, and the 3 in the matrix refers to the three coordinate axis directions.
[0137] S506, performing principal component analysis on the three-dimensional coordinate matrix to determine unit eigenvectors in three axes.
[0138] After obtaining the three-dimensional coordinate matrix constructed above, principal component analysis (PCA) can be performed on the three variables in the three coordinate axis directions to obtain three unit eigenvectors. The unit eigenvector with the largest variance is the new vertical axis of the spine segmentation image, the unit eigenvector with the second largest variance is the new coronal axis of the spine segmentation image, and the unit vector perpendicular to the above two unit eigenvectors is the new sagittal axis of the spine segmentation image.
[0139] See also Figure 5a As shown, assuming that the original three coordinate axes are x, y, and z, then here we use principal component analysis to obtain new x, y, and z, which are recorded as x', y', and z'.
[0140] It should be noted that here Figure 5a It is just an example and does not affect the essential content of the embodiments of the present application.
[0141] S508, determining an image transformation relationship according to the unit eigenvectors in the three axes, and using the image transformation relationship to transform the spine segmentation image to obtain a straightened spine segmentation image.
[0142] In this step, after obtaining the unit eigenvectors in three axes, that is, obtaining the new vertical axis, the new coronal axis, and the new sagittal axis of the spine segmentation image, the three unit eigenvectors can be combined into a transformation matrix as an image transformation relationship. That is, the spine segmentation image and the spine image can be transformed according to the new x', y', z' axis to obtain the straightened spine segmentation image and the straightened spine image.
[0143] In addition, after the spinal segmentation image is rectified, the target sagittal image can be obtained on the rectified spinal segmentation image.
[0144] In this embodiment, by performing straightening processing on the spinal segmentation image to obtain a straightened spinal segmentation image, the direction of the spine in the spinal segmentation image participating in subsequent calculations can be made parallel to the vertical axis of the object to be measured, thereby improving the accuracy of detecting the posterior longitudinal ligament region of the object to be measured through the spinal segmentation image.
[0145] It should be understood that although Figure 2 , 3 The steps in the flowcharts of , 4, and 5 are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , 3 At least part of the steps in , 4, and 5 may include multiple steps or multiple stages. These steps or stages do not necessarily have to be performed at the same time, but can be performed at different times. The execution order of these steps or stages does not necessarily have to be sequentially, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0146] In one embodiment, Figure 6 As shown, an image detection device is provided, comprising: an acquisition module 10, a key point detection module 11 and a region detection module 12, wherein:
[0147] An acquisition module 10 is used to acquire a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region;
[0148] A key point detection module 11 is used to perform key point detection on the above-mentioned spinal segmentation image to determine the key point corresponding to each of the above-mentioned vertebrae;
[0149] The region detection module 12 is used to detect the posterior longitudinal ligament region in the spinal column segmentation image according to the position information of the key point of each vertebral body, and determine the detection result of the posterior longitudinal ligament region.
[0150] For the specific definition of the image detection device, please refer to the definition of the image detection method above, which will not be repeated here.
[0151] In another embodiment, another image detection device is provided. Based on the above embodiment, each of the above vertebral bodies corresponds to a plurality of key points; the above region detection module 12 may include a region division unit, a target pixel point determination unit and a region detection unit, wherein:
[0152] A region division unit, used for dividing the rear edge region of the vertebral body into adjacent first and second regions according to the position information of each key point of the vertebral body;
[0153] A target pixel point determination unit, configured to determine target pixel points located in the first area and the second area of the spine segmentation image according to the first area and the second area of the vertebral body and the spine segmentation image;
[0154] The area detection unit is used to determine the detection result of the posterior longitudinal ligament area according to the target pixel points located in the first area and the second area.
[0155] Optionally, the spinal segmentation image includes a plurality of sagittal images, and the target pixel point determination unit may include a target sagittal position determination subunit and a target pixel point determination subunit, wherein:
[0156] A target sagittal position determination subunit is used to determine a target sagittal position image from the multiple sagittal position images, and obtain a vertebral body segmentation result corresponding to the target sagittal position image;
[0157] The target pixel point determination subunit is used to detect each segmentation pixel point in the vertebral segmentation result corresponding to the vertebral body according to the first area and the second area of the vertebral body, and determine the target pixel point in the vertebral segmentation result located in the first area and the second area.
[0158] Optionally, the target pixel point determination subunit is specifically used to obtain the position information of the segmentation pixel points in the vertebral segmentation result corresponding to the vertebra; the segmentation pixel points are the pixel points whose pixel values are greater than the pixel threshold in the vertebral segmentation result corresponding to the vertebra; according to the position information of each key point of the vertebra and the position information of the segmentation pixel points, the first vector matrix corresponding to the first area and the second vector matrix corresponding to the second area are determined; according to the first vector matrix and the second vector matrix and the preset vector constraint conditions, the segmentation pixel points are discriminated to determine the first target pixel points located in the first area and the second target pixel points located in the second area.
[0159] Optionally, the above-mentioned region detection unit includes a vertebral region detection subunit and an intervertebral disc region detection subunit, wherein:
[0160] A vertebral region detection subunit, configured to determine the region formed by the first target pixel points as a detection result of the posterior longitudinal ligament region located at the posterior edge of the vertebral body;
[0161] The intervertebral disc region detection subunit is used to determine the region formed by the second target pixel points as a detection result of the posterior longitudinal ligament region located behind the intervertebral disc; the intervertebral disc is the intervertebral disc between the vertebral body and the next adjacent vertebral body.
[0162] In another embodiment, another image detection device is provided. Based on the above embodiment, the above device may further include a segment acquisition module and a segment determination module, wherein:
[0163] A segment acquisition module, used for acquiring the vertebral segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs;
[0164] The segment determination module is used to determine the vertebral segment and intervertebral disc segment corresponding to the detection result of the posterior longitudinal ligament area according to the vertebral segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs.
[0165] In another embodiment, another image detection device is provided. Based on the above embodiment, the above device may further include a quantization module, which is used to quantize the detection result of the posterior longitudinal ligament area based on the above first target pixel point and the above second target pixel point, and determine the quantization result corresponding to the detection result of the posterior longitudinal ligament area.
[0166] In another embodiment, another image detection device is provided. On the basis of the above embodiment, the target pixel point determination subunit detects each segmentation pixel point in the vertebral segmentation result corresponding to the vertebra according to the first area and the second area of the vertebra, and before determining the target pixel point in the vertebral segmentation result located in the first area and the second area, the device may also include: an attachment removal module, which is used to remove the segmentation result of the attachment in the vertebral segmentation result corresponding to the target sagittal image.
[0167] In another embodiment, another image detection device is provided. Based on the above embodiment, before the key point detection module 11 performs key point detection on the spinal segmentation image and determines the key points corresponding to each of the vertebrae, the device may further include a straightening module, which is used to straighten the spinal segmentation image to obtain a straightened spinal segmentation image.
[0168] Optionally, the above-mentioned straightening module includes a voxel and coordinate acquisition unit, a construction unit, an analysis unit and a transformation unit, wherein:
[0169] A voxel and coordinate acquisition unit, used to acquire a target voxel in the above-mentioned spine segmentation image and a three-dimensional coordinate of the above-mentioned target voxel; the above-mentioned target voxel is a voxel in the above-mentioned spine segmentation image whose voxel value is greater than a voxel threshold;
[0170] A construction unit, used for constructing a three-dimensional coordinate matrix according to the three-dimensional coordinates of the target voxel;
[0171] An analysis unit, used for performing principal component analysis on the three-dimensional coordinate matrix to determine unit eigenvectors in three axes;
[0172] The transformation unit is used to determine the image transformation relationship according to the unit feature vectors in the three axes, and use the image transformation relationship to transform the spine segmentation image to obtain a straightened spine segmentation image.
[0173] For the specific definition of the image detection device, please refer to the definition of the image detection method above, which will not be repeated here.
[0174] Each module in the above-mentioned image detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0175] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0176] A spinal segmentation image of the subject to be tested is obtained; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region; key point detection is performed on the above spinal segmentation image to determine the key point corresponding to each of the above vertebral bodies; based on the position information of the key point of each of the above vertebral bodies, the posterior longitudinal ligament region in the above spinal segmentation image is detected to determine the detection result of the above posterior longitudinal ligament region.
[0177] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0178] According to the position information of each key point of the above-mentioned vertebra, the posterior edge area of the above-mentioned vertebra is divided into adjacent first and second areas; according to the first and second areas of the above-mentioned vertebra and the above-mentioned spinal segmentation image, the target pixel points located in the above-mentioned first area and the above-mentioned second area in the above-mentioned spinal segmentation image are determined; according to the above-mentioned target pixel points located in the above-mentioned first area and the above-mentioned second area, the detection result of the above-mentioned posterior longitudinal ligament area is determined.
[0179] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0180] A target sagittal image is determined from the above-mentioned multiple sagittal images, and a vertebral segmentation result corresponding to the above-mentioned target sagittal image is obtained; based on the above-mentioned first area and second area of the vertebral body, each segmentation pixel point in the vertebral segmentation result corresponding to the above-mentioned vertebral body is detected to determine the target pixel points in the above-mentioned vertebral segmentation result located in the above-mentioned first area and the above-mentioned second area.
[0181] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0182] Obtain the position information of the segmentation pixel points in the vertebral segmentation result corresponding to the above-mentioned vertebra; the above-mentioned segmentation pixel points are the pixel points whose pixel values are greater than the pixel threshold in the vertebral segmentation result corresponding to the above-mentioned vertebra; determine the first vector matrix corresponding to the above-mentioned first area and the second vector matrix corresponding to the above-mentioned second area according to the position information of each key point of the above-mentioned vertebra and the position information of the above-mentioned segmentation pixel points; based on the above-mentioned first vector matrix and the second vector matrix and the preset vector constraint conditions, distinguish the above-mentioned segmentation pixel points to determine the first target pixel points located in the above-mentioned first area and the second target pixel points located in the above-mentioned second area.
[0183] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0184] The area composed of the above-mentioned first target pixel points is determined as the detection result of the posterior longitudinal ligament area located at the posterior edge of the above-mentioned vertebral body; the area composed of the above-mentioned second target pixel points is determined as the detection result of the posterior longitudinal ligament area located behind the intervertebral disc; the above-mentioned intervertebral disc is the intervertebral disc between the above-mentioned vertebral body and the next adjacent vertebral body.
[0185] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0186] The vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs are obtained; and the vertebral body segment and the intervertebral disc segment corresponding to the detection result of the posterior longitudinal ligament region are determined according to the vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs.
[0187] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0188] The detection result of the posterior longitudinal ligament region is quantized according to the first target pixel point and the second target pixel point to determine a quantization result corresponding to the detection result of the posterior longitudinal ligament region.
[0189] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0190] The segmentation results of the attachments in the vertebral segmentation results corresponding to the above target sagittal image are removed.
[0191] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0192] The spinal column segmentation image is rectified to obtain a rectified spinal column segmentation image.
[0193] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0194] Obtain the target voxels in the above-mentioned spine segmentation image and the three-dimensional coordinates of the above-mentioned target voxels; the above-mentioned target voxels are voxels in the above-mentioned spine segmentation image whose voxel values are greater than the voxel threshold; construct a three-dimensional coordinate matrix according to the three-dimensional coordinates of the above-mentioned target voxels; perform principal component analysis on the above-mentioned three-dimensional coordinate matrix to determine the unit eigenvectors in the three axes; determine the image transformation relationship according to the unit eigenvectors in the three axes, and use the above-mentioned image transformation relationship to transform the above-mentioned spine segmentation image to obtain a straightened spine segmentation image.
[0195] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0196] A spinal segmentation image of the subject to be tested is obtained; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region; key point detection is performed on the above spinal segmentation image to determine the key point corresponding to each of the above vertebral bodies; based on the position information of the key point of each of the above vertebral bodies, the posterior longitudinal ligament region in the above spinal segmentation image is detected to determine the detection result of the above posterior longitudinal ligament region.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] According to the position information of each key point of the above-mentioned vertebra, the posterior edge area of the above-mentioned vertebra is divided into adjacent first and second areas; according to the first and second areas of the above-mentioned vertebra and the above-mentioned spinal segmentation image, the target pixel points located in the above-mentioned first area and the above-mentioned second area in the above-mentioned spinal segmentation image are determined; according to the above-mentioned target pixel points located in the above-mentioned first area and the above-mentioned second area, the detection result of the above-mentioned posterior longitudinal ligament area is determined.
[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0200] A target sagittal image is determined from the above-mentioned multiple sagittal images, and a vertebral segmentation result corresponding to the above-mentioned target sagittal image is obtained; based on the above-mentioned first area and second area of the vertebral body, each segmentation pixel point in the vertebral segmentation result corresponding to the above-mentioned vertebral body is detected to determine the target pixel points in the above-mentioned vertebral segmentation result located in the above-mentioned first area and the above-mentioned second area.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] Obtain the position information of the segmentation pixel points in the vertebral segmentation result corresponding to the above-mentioned vertebra; the above-mentioned segmentation pixel points are the pixel points whose pixel values are greater than the pixel threshold in the vertebral segmentation result corresponding to the above-mentioned vertebra; determine the first vector matrix corresponding to the above-mentioned first area and the second vector matrix corresponding to the above-mentioned second area according to the position information of each key point of the above-mentioned vertebra and the position information of the above-mentioned segmentation pixel points; based on the above-mentioned first vector matrix and the second vector matrix and the preset vector constraint conditions, distinguish the above-mentioned segmentation pixel points to determine the first target pixel points located in the above-mentioned first area and the second target pixel points located in the above-mentioned second area.
[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0204] The area composed of the above-mentioned first target pixel points is determined as the detection result of the posterior longitudinal ligament area located at the posterior edge of the above-mentioned vertebral body; the area composed of the above-mentioned second target pixel points is determined as the detection result of the posterior longitudinal ligament area located behind the intervertebral disc; the above-mentioned intervertebral disc is the intervertebral disc between the above-mentioned vertebral body and the next adjacent vertebral body.
[0205] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0206] The vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs are obtained; and the vertebral body segment and the intervertebral disc segment corresponding to the detection result of the posterior longitudinal ligament region are determined according to the vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] The detection result of the posterior longitudinal ligament region is quantized according to the first target pixel point and the second target pixel point to determine a quantization result corresponding to the detection result of the posterior longitudinal ligament region.
[0209] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0210] The segmentation results of the attachments in the vertebral segmentation results corresponding to the above target sagittal image are removed.
[0211] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0212] The spinal column segmentation image is rectified to obtain a rectified spinal column segmentation image.
[0213] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0214] Obtain the target voxels in the above-mentioned spine segmentation image and the three-dimensional coordinates of the above-mentioned target voxels; the above-mentioned target voxels are voxels in the above-mentioned spine segmentation image whose voxel values are greater than the voxel threshold; construct a three-dimensional coordinate matrix according to the three-dimensional coordinates of the above-mentioned target voxels; perform principal component analysis on the above-mentioned three-dimensional coordinate matrix to determine the unit eigenvectors in the three axes; determine the image transformation relationship according to the unit eigenvectors in the three axes, and use the above-mentioned image transformation relationship to transform the above-mentioned spine segmentation image to obtain a straightened spine segmentation image.
[0215] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0216] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0217] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. An image detection method, characterized in that: The method comprises: Acquire a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament region; A key point detection model is used to perform key point detection on the spinal segmentation image to determine the key point corresponding to each vertebra; the key point detection model is obtained by training a spinal segmentation image set; each vertebra in the spinal segmentation image of the spinal segmentation image set includes annotated key points; the position information of the annotated key points is located on the bone cortex of the vertebra; According to the position information of the key points of each vertebral body, the rear edge area of each vertebral body is divided into adjacent first and second areas; the first area is the rear edge area of the current vertebral body; the second area is the area behind the gap between the current vertebral body and the next vertebral body; Determine, according to the first region and the second region of each vertebral body and the spinal column segmentation image, target pixel points located in the first region and the second region in the spinal column segmentation image; The detection result of the posterior longitudinal ligament area is determined based on the target pixel points located in the first area and the second area; the detection result of the posterior longitudinal ligament area includes an abnormal area of the posterior longitudinal ligament area located at the posterior edge of the vertebral body and an abnormal area of the posterior longitudinal ligament area located behind the intervertebral disc.
2. The method according to claim 1, characterized in that: The spinal segmentation image includes a plurality of sagittal images, and determining, based on the first region and the second region of each vertebral body and the spinal segmentation image, target pixel points located in the first region and the second region of the spinal segmentation image includes: Determining a target sagittal image from the multiple sagittal images, and obtaining a vertebral segmentation result corresponding to the target sagittal image; According to the first region and the second region of the vertebral body, each segmentation pixel point in the vertebral body segmentation result corresponding to the vertebral body is detected to determine the target pixel point in the vertebral body segmentation result located in the first region and the second region.
3. The method according to claim 2, characterized in that The detecting, according to the first area and the second area of the vertebral body, each segmentation pixel point in the vertebral body segmentation result corresponding to the vertebral body to determine the target pixel point in the vertebral body segmentation result located in the first area and the second area includes: Acquire position information of segmentation pixel points in the vertebral segmentation result corresponding to the vertebral body; the segmentation pixel points are pixel points whose pixel values in the vertebral segmentation result corresponding to the vertebral body are greater than a pixel threshold; Determine a first vector matrix corresponding to the first region and a second vector matrix corresponding to the second region according to the position information of each key point of the vertebral body and the position information of the segmented pixel points; According to the first vector matrix and the second vector matrix and the preset vector constraint condition, the segmentation pixel points are discriminated to determine a first target pixel point located in the first area and a second target pixel point located in the second area; The process of constructing a vector matrix includes: Step 1, obtaining vectors V1, V2 and V3 corresponding to the posterior edge area of the vertebral body; Step 2: The pixel point between the vector V2 and the vector V3 is a segmentation pixel point located in the first area, and forms vectors V4 and V5 with the upper and lower key points of the posterior edge of the vertebral body respectively; Step 3, define the direction pointing out of the screen as positive. According to the right-hand rule, any pixel point located in the rear edge area of the vertebral body satisfies the following four conditions at the same time: ① V4×V1>0, ② V4×V3<0, ③ V5×V1>0, ④ V5×V2>0; Step 4: V4×V1>0, V4×V3<0, V5×V1>0, and V5×V2>0 are used to form four vector matrices to obtain a first vector matrix corresponding to the first region; Step 5: Obtain a second vector matrix corresponding to the second region in the same manner as steps 1 to 4; The process of determining the target pixel includes: Determine V4×V1>0, V4×V3<0, V5×V1>0 or V5×V2>0 as the vector constraint condition, and through steps 1 to 4, distinguish each segmentation pixel point located in the first area, and determine a target pixel point in the first area that satisfies the vector constraint condition as the first target pixel point; Similarly, each segmentation pixel point located in the second area is judged through steps 1 to 4, and a target pixel point in the second area that meets the vector constraint condition is determined as the second target pixel point.
4. The method according to claim 3, characterized in that Determining the detection result of the posterior longitudinal ligament region according to the target pixel points located in the first region and the second region includes: The detection result of determining the area formed by the first target pixel points as the posterior longitudinal ligament area located at the posterior edge of the vertebral body; The region formed by the second target pixel points is determined as a detection result of a posterior longitudinal ligament region located behind an intervertebral disc; the intervertebral disc is an intervertebral disc between the vertebral body and a next adjacent vertebral body.
5. The method according to claim 4, characterized in that The method further comprises: Acquire the vertebral body segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs; According to the vertebral segment to which the vertebral body belongs and the intervertebral disc segment to which the intervertebral disc belongs, the vertebral segment and the intervertebral disc segment corresponding to the detection result of the posterior longitudinal ligament region are determined.
6. The method according to claim 4, characterized in that The method further comprises: The detection result of the posterior longitudinal ligament region is quantized according to the first target pixel point and the second target pixel point to determine a quantization result corresponding to the detection result of the posterior longitudinal ligament region.
7. The method according to any one of claims 1 to 6, characterized in that: Before performing key point detection on the spinal segmentation image using a key point detection model to determine the key point corresponding to each vertebra, the method further includes: The spinal column segmentation image is rectified to obtain a rectified spinal column segmentation image.
8. An image detection device, characterized in that: The device comprises: An acquisition module, used for acquiring a spinal segmentation image of the subject to be tested; the spinal segmentation image includes a vertebral body and a posterior longitudinal ligament area; A key point detection module is used to perform key point detection on the spinal segmentation image using a key point detection model to determine the key points corresponding to each vertebra; the key point detection model is obtained by training a spinal segmentation image set; each vertebra in the spinal segmentation image of the spinal segmentation image set includes annotated key points; the position information of the annotated key points is located on the bone cortex of the vertebra; A region detection module is used to divide the posterior edge region of each vertebra into adjacent first and second regions according to the position information of the key points of each vertebra; the first region is the posterior edge region of the current vertebra; the second region is the region behind the gap between the current vertebra and the next vertebra; according to the first and second regions of each vertebra and the spinal segmentation image, determine the target pixel points located in the first and second regions in the spinal segmentation image; according to the target pixel points located in the first and second regions, determine the detection result of the posterior longitudinal ligament region; the detection result of the posterior longitudinal ligament region includes the abnormal region of the posterior longitudinal ligament region located at the posterior edge of the vertebra, and the abnormal region of the posterior longitudinal ligament region located behind the intervertebral disc.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
