Centre-spanning total spine sagittal view centrum segmentation method and device and electronic equipment
Through image amplification and adaptive model training of cross-center data, the problem of subjective factors and cross-center data differences in spinal sagittal X-ray image segmentation is solved, automatic segmentation and cross-center generalization are achieved, and segmentation efficiency is improved. and accuracy.
Patent Information
- Application Number
- CN202410550533.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, the segmentation process of spinal sagittal X-ray images is greatly affected by subjective factors and is time-consuming and labor-intensive. Moreover, cross-center data differences lead to poor generalization of the model, making it difficult to achieve automated segmentation.
A cross-center full spine sagittal vertebral segmentation method is adopted. By acquiring multi-center data, image amplification processing and adaptive image segmentation model training are performed, and the detector and discriminator are used to adjust the model to achieve generalization of cross-center data. Improve and reduce human intervention.
It realizes automatic segmentation of sagittal X-ray images of the whole spine, saves time and manpower, improves the cross-center deployment capability of the model, and reduces the influence of human subjective factors.
Smart Images

Figure CN118570219A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and specifically relates to a vertebral segmentation method, device and electronic equipment across the center of the entire spine sagittal plane. Background Art
[0002] The spine is an important structure that maintains the balance of human posture and coordinates the activities of the trunk and limbs. In recent years, the incidence of spinal diseases has increased year by year, and has become one of the most common problems affecting the lives and health of the people. The treatment goals of spinal diseases are to eliminate or minimize clinical symptoms, improve function and enhance the patient's quality of life and work ability, and reduce the disability rate. Surgery is an important treatment method for saving nerve function in many common spinal diseases (such as lumbar spinal stenosis, cervical spondylotic myelopathy, etc.).
[0003] Due to its fast shooting speed and low radiation dose, sagittal X-rays are currently one of the important means of spinal imaging examination in clinical practice. The detection of vertebral bodies in sagittal X-rays of the entire spine, including 24 cervical, thoracic and lumbar vertebrae, 1 sacrum and 2 femoral heads, usually requires professionals with medical knowledge to perform segmentation operations. However, the segmentation results are greatly affected by subjective factors and are time-consuming and labor-intensive. Summary of the invention
[0004] The purpose of this application is to provide a method, device and electronic equipment for vertebral segmentation across the center of the entire spine sagittal plane to achieve automated segmentation and eliminate the influence of human subjective factors.
[0005] According to a first aspect of an embodiment of the present application, a method for vertebral segmentation in a sagittal plane across the entire spine is provided, and the method may include:
[0006] Obtain sagittal X-ray images of the entire spine;
[0007] Input the X-ray image into the trained image segmentation model to obtain a spinal segmentation image;
[0008] The training data of the trained image segmentation model includes: data from the first medical center and data from the second medical center, wherein the data from the first medical center is labeled, the data from the second medical center is unlabeled, and the X-ray image belongs to the second medical center.
[0009] In some optional embodiments of the present application, the trained image segmentation model is obtained by the following training:
[0010] Acquire a first X-ray training image of the whole spine in sagittal plane of the first medical center and a second X-ray training image of the whole spine in sagittal plane of the second medical center;
[0011] Performing an amplification process on the first X-ray training image and forming a training set with the second X-ray training image;
[0012] The adaptive image segmentation model is trained using the training set to obtain a trained image segmentation model.
[0013] In some optional embodiments of the present application, the first X-ray training image is augmented, including:
[0014] Classifying the first X-ray training image according to data differences of different centers to obtain multiple types of training images;
[0015] Data augmentation is performed for each type of training image.
[0016] In some optional embodiments of the present application, the multiple types of training images include: style difference training images, shooting range difference training images, local blur difference training images, splicing difference training images and human body posture difference training images.
[0017] In some optional embodiments of the present application, data augmentation processing is performed for each type of training image, including at least one of the following:
[0018] Perform image style conversion on the style difference training images, and convert the style difference training images into the style of the second medical center;
[0019] The training images with shooting range differences are randomly cropped to obtain the target area image containing the vertebrae;
[0020] Perform local Gaussian blur processing on the local blur difference training image to obtain a local blur image;
[0021] The stitching difference training image is cropped and re-stitched to obtain a stitching image;
[0022] The training images with different human postures are resampled and rotated to obtain images with different postures.
[0023] In some optional embodiments of the present application, the adaptive image segmentation model includes a detector and a discriminator;
[0024] The adaptive image segmentation model is trained using the training set to obtain a trained image segmentation model, including:
[0025] The detector is trained using the training set to obtain detection results for various types of training images;
[0026] The discriminator is used to adjust the detector according to the detection results so that multiple detection results are brought closer together and a trained image segmentation model is obtained.
[0027] In some optional embodiments of the present application, a detector is adjusted according to the detection results using a discriminator so as to bring multiple detection results closer together, thereby obtaining a trained image segmentation model, including:
[0028] The adaptive image segmentation model is trained using a training strategy with constant pseudo-label quality to obtain a trained image segmentation model.
[0029] According to a second aspect of an embodiment of the present application, a vertebral body segmentation device across the central full spine sagittal plane is provided, and the device may include:
[0030] An acquisition module, used for acquiring a sagittal X-ray image of the entire spine;
[0031] A segmentation module is used to input the X-ray image into the trained image segmentation model to obtain a spinal segmentation image;
[0032] The training data of the trained image segmentation model includes: data from the first medical center and data from the second medical center, wherein the data from the first medical center is labeled, the data from the second medical center is unlabeled, and the X-ray image belongs to the second medical center.
[0033] According to a third aspect of an embodiment of the present application, an electronic device is provided, which may include:
[0034] processor;
[0035] a memory for storing processor-executable instructions;
[0036] The processor is configured to execute instructions to implement the vertebral segmentation method across the central full spine sagittal plane as shown in any one of the embodiments of the first aspect.
[0037] According to the fourth aspect of the embodiments of the present application, a storage medium is provided. When the instructions in the storage medium are executed by a processor of an information processing device or a server, the information processing device or the server implements a vertebral segmentation method across the central full spine sagittal plane as shown in any one of the embodiments of the first aspect.
[0038] The above technical solution of the present application has the following beneficial technical effects:
[0039] The method of the embodiment of the present application utilizes a trained image segmentation model to realize automatic segmentation of sagittal X-ray images of the entire spine, saving time and manpower; and the method utilizes a multi-center highly generalized trained image segmentation model to realize cross-center segmentation of sagittal X-ray images of the entire spine, that is, the data used for training and the actual segmentation data belong to different medical centers, which facilitates the cross-center deployment of the trained image segmentation model. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of a vertebral segmentation method for the sagittal plane of the entire spine across the center in an exemplary embodiment of the present application;
[0041] Figure 2 is a schematic diagram of the classification of differences between different centers in an exemplary embodiment of the present application;
[0042] Figure 3 is a schematic diagram of an unsupervised domain adaptive vertebral image segmentation model in an exemplary embodiment of the present application;
[0043] Figure 4 is a schematic diagram of adjusting the update amplitude of the domain discriminator in an exemplary embodiment of the present application;
[0044] Figure 5 is a schematic diagram of a training strategy for constant pseudo-label quality in an exemplary embodiment of the present application;
[0045] Figure 6 It is a schematic structural diagram of a vertebral body segmentation device across the center of the entire spine sagittal plane in an exemplary embodiment of the present application;
[0046] Figure 7 is a schematic structural diagram of an electronic device in an exemplary embodiment of the present application;
[0047] Figure 8 It is a schematic diagram of the hardware structure of an electronic device in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with specific implementations and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present application. In addition, in the following description, the description of known structures and technologies is omitted to avoid unnecessary confusion of the concepts of the present application.
[0049] The accompanying drawings show schematic diagrams of layer structures according to embodiments of the present application. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clarity. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0050] Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0051] In the description of the present application, it should be noted that the terms "first", "second" and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0052] In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0053] In conjunction with the accompanying drawings, the vertebral segmentation method, device and electronic device for the sagittal plane of the entire spine provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0054] like Figure 1 As shown, in a first aspect of an embodiment of the present application, a method for segmenting vertebrae in a sagittal plane across the entire spine is provided, and the method may include:
[0055] S110: Obtain sagittal X-ray images of the entire spine;
[0056] S120: inputting the X-ray image into the trained image segmentation model to obtain a spinal segmentation image;
[0057] The training data of the trained image segmentation model includes: data from the first medical center and data from the second medical center, wherein the data from the first medical center is labeled, the data from the second medical center is unlabeled, and the X-ray image belongs to the second medical center.
[0058] The method of this embodiment uses a trained image segmentation model to realize automatic segmentation of sagittal X-ray images of the entire spine, saving time and manpower; and the method uses a multi-center highly generalized trained image segmentation model to realize cross-center segmentation of sagittal X-ray images of the entire spine, that is, the labeled data used for training and the actual segmentation data belong to different medical centers, which facilitates the cross-center deployment of the trained image segmentation model.
[0059] In this embodiment, the sagittal plane is a human anatomy term, which refers to the plane after the human body is divided into two symmetrical left and right parts. This plane is parallel to the sagittal plane, and this position is called the sagittal plane.
[0060] In some embodiments, the trained image segmentation model is obtained by the following training:
[0061] Acquire a first X-ray training image of the whole spine in sagittal plane of the first medical center and a second X-ray training image of the whole spine in sagittal plane of the second medical center;
[0062] Performing an amplification process on the first X-ray training image and forming a training set with the second X-ray training image;
[0063] The adaptive image segmentation model is trained using the training set to obtain a trained image segmentation model.
[0064] This embodiment is based on an unsupervised domain adaptation method, which enables the model to perform well in an unlabeled target domain after being trained on a source domain (i.e., labeled X-ray training images of the sagittal position of the whole spine of the First Medical Center).
[0065] Specifically, the first X-ray training image is augmented, including:
[0066] Classifying the first X-ray training image according to data differences of different centers to obtain multiple types of training images;
[0067] Data augmentation is performed for each type of training image.
[0068] This embodiment combines various types of center differences to achieve data amplification specific to the first medical center, greatly improving the cross-center generalization of the model.
[0069] More specifically, Figure 2 As shown, the various types of training images include: style difference training images, shooting range difference training images, local blur difference training images, splicing difference training images and human body posture difference training images.
[0070] In the whole spine image segmentation task, except for the case where the patient lacks spine bones, the cervical, thoracic and lumbar vertebrae of each image are labeled, including 23 C2-C7, T1-T12 and L1-L5, 1 sacrum S1, and 2 femoral heads. When two femoral heads overlap in the image, there is only one label, otherwise there are two labels. The labeling forms of the cervical, thoracic and lumbar vertebrae, sacrum and femoral heads are different, such as Figure 1 As shown, the cervical, thoracic and lumbar vertebrae are marked as quadrilaterals, and each vertex of the quadrilateral falls on the four vertices of the vertebrae in the image; the sacrum is marked as a triangle, and each vertex of the triangle falls on the three corner points of the upper edge and the rear edge of the sacrum; the femoral head is marked as a circle, which fits the edge of the femoral head in the image as closely as possible.
[0071] Based on the causes of multi-center differences in full-spine X-rays, this embodiment roughly divides the multi-center differences in full-spine sagittal X-rays into five categories: style differences, shooting range differences, local blur differences, stitching differences, and body posture differences. Style differences refer to differences in image color, texture, contrast, brightness, artifacts, etc. Image stitching differences refer to differences that occur due to different stitching algorithms when stitching full-spine images, which are mostly reflected in obvious stitching misalignments in the image and differences in the brightness of the gray background in each stitching block. Posture differences refer to differences in the body postures of the subjects. Shooting range differences refer to differences caused by the photographer adjusting the shooting range according to the subject's situation due to different areas of focus when photographing the patient. Local blur differences refer to the situation where a certain part of the image is more likely to be blurred in certain centers.
[0072] In some embodiments, data augmentation processing is performed for each type of training image, including at least one of the following:
[0073] Perform image style conversion on the style difference training images, and convert the style difference training images into the style of the second medical center;
[0074] The training images with shooting range differences are randomly cropped to obtain the target area image containing the vertebrae;
[0075] Perform local Gaussian blur processing on the local blur difference training image to obtain a local blur image;
[0076] The stitching difference training image is cropped and re-stitched to obtain a stitching image;
[0077] The training images with different human postures are resampled and rotated to obtain images with different postures.
[0078] In order to make the data distribution of the training set closer to the data distribution of the target center, this embodiment adopts a data augmentation method. Data augmentation can expand the data distribution of the training set and improve the generalization of the model. In order to enable the full spine vertebra detection model to more fully express the data distribution of the target center, five different data augmentation methods can be selected for style differences, shooting range differences, and local blur differences, respectively, to reduce the negative impact of these five types of center differences.
[0079] (1) Style differences are mostly reflected in differences in color, texture, contrast, brightness, artifacts, etc. The style transfer model can quickly and effectively convert the image of the source center (i.e., the first medical center) into the image style of the target center (i.e., the second medical center). Based on the CycleGAN style transfer model, a part of the source center image is converted into the image style of the target center, bringing the data distribution of the source center and the target center closer.
[0080] (2) The difference in shooting range is reflected in the smaller shooting range that only contains part of the vertebrae in the image and the larger shooting range that also contains the skull and knees. The image is randomly cropped to reduce the negative impact of the shooting range difference on the model performance. In the cropping algorithm, combined with the image annotation, the cropped image is required to contain more than a specified number of vertebrae, so that the model focuses on learning the target vertebrae area.
[0081] (3) In the data sets of different centers, the local blur appears at different locations in the image. A local Gaussian blur is randomly performed near the spine to simulate the local blur of the image in other centers.
[0082] (4) For stitching differences, the cropping and re-stitching data augmentation method is used to simulate the situation of image stitching errors.
[0083] (5) Regarding differences in human body posture, irregular shooting postures are often seen in samples with severe deformities. By repeatedly sampling samples with abnormal sagittal parameters and rotating images, the model’s learning of samples with different postures is enhanced.
[0084] The above method can be used to expand the data distribution of the training set in a targeted manner, making it easier for the model to learn the diverse data distribution of the target center. However, since the center difference includes at least five types, and the degree of each type of center difference is different for different target centers, the center difference between some centers is too complicated.
[0085] In some embodiments, the adaptive image segmentation model includes a detector and a discriminator;
[0086] The adaptive image segmentation model is trained using the training set to obtain a trained image segmentation model, including:
[0087] The detector is trained using the training set to obtain detection results for various types of training images;
[0088] The discriminator is used to adjust the detector according to the detection results so that multiple detection results are brought closer together and a trained image segmentation model is obtained.
[0089] Since the data of the target center is not labeled, the model cannot learn the data distribution of the target center through supervised learning. In order to enable the instance segmentation model to learn the data distribution of the target center, the Mean Teacher structure and Mask R-CNN are combined as the basic domain adaptation model, such as Figure 3As shown in the figure, Mean-Teacher includes the Student model and the Teacher model. The Student model has strong multi-center generalization in both the source center and the target center; the Teacher model focuses more on the target center data. Compared with the Student model, the Teacher model has better performance in the target center.
[0090] In order to improve the generalization of the Student model, this embodiment introduces a domain discriminator, which comprehensively considers five types of central differences, prompting the domain discriminator to pay more attention to the domain differences between samples. For example, when the style difference between samples is small and the other types of domain differences are large, the average domain difference result after quantization is large, so the domain difference will still be updated to a large extent, so as to narrow the feature distance between two different domains. In this way, it can be ensured that when the domain difference between samples is large, the feature distance of samples in the two domains can always be narrowed to a large extent. The update amplitude of the domain discriminator is dynamically adjusted according to the size of multiple types of domain differences. When the degree of difference is large, the domain discriminator should make a larger update (using a larger learning rate), otherwise it should make a smaller update.
[0091] like Figure 4 As shown in the figure, the size of the five types of domain differences between samples in different domains within a batch of samples is calculated and averaged to obtain the average domain difference. Then, according to the size of the average domain difference, the update amplitude of the domain discriminator is adjusted to guide the feature extractor in the detector to map the data of the two centers to the same data distribution, thereby improving the generalization ability of the Student model in the target center. However, for the instance segmentation of the entire spinal vertebra, the center difference of the sagittal X-ray is complex. If the domain discriminator is used directly to align the data distribution of the entire feature map, the domain discriminator may be biased towards a certain type of center difference and fail to take into account each difference.
[0092] This embodiment improves the training strategy of the domain discriminator based on different types of center differences for the sagittal X-ray images of the whole spine. Specifically, for the five types of center differences, namely style difference, shooting range difference, local blur difference, splicing difference and posture difference:
[0093] (1) Style difference: During training, the Gram matrix of the feature map of each sample in a batch of samples is calculated. Then, for each sample, the distance between it and the Gram matrix of all samples in the other center of the batch is calculated, and the cumulative result of all distances is used as the quantitative result of style difference;
[0094] (2) Shooting range difference: The relative size of the spine in the image is calculated based on the relative position of the detection frame in the image and used as the quantitative result of the shooting range;
[0095] (3) Local blur difference: By automatically checking the detection box sequence output by the model, samples with obvious missed detection or overlapping detection boxes are considered as samples with local blur, otherwise they are considered as normal samples;
[0096] (4) Splicing difference: By automatically checking the detection frame sequence, it is determined whether the misalignment degree of adjacent detection frames in the sample exceeds the manually set threshold. If the misalignment degree of the sample is greater than the threshold, it is regarded as a sample with splicing errors, otherwise it is regarded as a normal sample;
[0097] (5) Posture difference: By calculating the vector distance between the detection box sequences of two samples, the quantitative result of the posture difference between the two samples is obtained.
[0098] Based on the above five center difference quantification methods, the average difference between the two center samples in the current batch data is obtained, namely, the average style difference, the average shooting range difference, the average blur difference, the average splicing difference and the average posture difference. Finally, the update amplitude of the domain discriminator is dynamically adjusted according to the size of the difference. When the degree of difference is large, the domain discriminator should make a larger update, and vice versa. Specifically, the learning rate of the domain discriminator is dynamically adjusted according to the value of the difference during training. In this way, the domain discriminator can better align the data distribution of the source center and the target center, and enhance the multi-center generalization of the Student model.
[0099] In some embodiments, the detector is adjusted according to the detection results by using a discriminator so as to bring the multiple detection results closer together, thereby obtaining a trained image segmentation model, including:
[0100] The adaptive image segmentation model is trained using a training strategy with constant pseudo-label quality to obtain a trained image segmentation model.
[0101] The quality of the pseudo-label (the output of the Teacher model) affects the training effect of the model. The higher the quality of the pseudo-label, the better the model learns the target-centric data distribution, and vice versa. After the introduction of the domain classifier, the quality of the pseudo-label provided by the Teacher may drop rapidly during the training process. This makes it difficult for the model to effectively learn the target-centric data distribution.
[0102] To solve the problem of pseudo-label quality degradation during training, this embodiment provides a training strategy with constant pseudo-label quality. The training strategy includes two parts: (1) a warm-up phase and an adaptive phase; (2) a teacher reloading strategy, such as Figure 5 shown.
[0103] Warm-up phase and adaptive phase: To prevent the model from being disturbed and misled by the unlabeled target center data in the early stage of training, only the labeled source center data is used to train the model and only the Student model is updated. This process is called the warm-up phase ( Figure 5 -a). In the adaptive phase ( Figure 5 -b), all modules in the model participate in domain adaptation training. First, when the model training just enters the adaptation stage, the Student model is completely copied to obtain the Teacher model. Then iterative domain adaptation training is performed. In each iteration, in addition to training the Teacher model and the Student model, a domain discriminator is used to narrow the distance between feature maps of different centers in the Student model.
[0104] Teacher reloading strategy: The entire model training process consists of several warm-up phases and adaptive phases. If the teacher reloading strategy is not adopted, after the model training enters the adaptive phase, as the training progresses, the quality of the pseudo labels generated by the Teacher model decreases ( Figure 5 -c). The reason is that poor-quality pseudo labels continue to accumulate and mislead the model to learn the distribution of target center data, which makes the effect of Student model in the target domain decrease. Since Teacher model is obtained by exponential moving average, the effect of Teacher model also decreases. Therefore, this embodiment proposes a teacher reloading strategy ( Figure 5 -d), when the performance of the Student model in the target center decreases (the loss of the pseudo-label suddenly increases significantly), the adaptation phase is interrupted and then switched to the warm-up phase. At the end of the warm-up phase, a new adaptation phase training is started and a new Teacher model is obtained again through exponential moving average. The teacher reloading strategy helps to maintain the constant quality of pseudo-labels. The model can use unlabeled target center data and a stable pseudo-label training strategy to further improve the cross-center generalization of the model.
[0105] It should be noted that the vertebral segmentation method for the sagittal plane of the entire spine across the center provided in the embodiment of the present application can be performed by a vertebral segmentation device for the sagittal plane of the entire spine across the center, or a control module for performing the method for vertebral segmentation for the sagittal plane of the entire spine across the center in the vertebral segmentation device for the sagittal plane of the entire spine across the center. In the embodiment of the present application, the method for performing vertebral segmentation for the sagittal plane of the entire spine across the center is taken as an example to illustrate the device for vertebral segmentation for the sagittal plane of the entire spine across the center provided in the embodiment of the present application.
[0106] like Figure 6 As shown, in a second aspect of the embodiment of the present application, a vertebral body segmentation device across the central full spine sagittal plane is provided, and the device may include:
[0107] An acquisition module 610 is used to acquire a sagittal X-ray image of the entire spine;
[0108] The segmentation module 620 is used to input the X-ray image into the trained image segmentation model to obtain a spinal segmentation image;
[0109] The training data of the trained image segmentation model belongs to the first medical center, and the X-ray images belong to the second medical center.
[0110] The vertebral body segmentation device for the sagittal position of the whole spine across the center in the embodiment of the present application can be a device, or a component, an integrated circuit, or a chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0111] The vertebral body segmentation device for the sagittal position of the whole spine across the center in the embodiment of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0112] The vertebral body segmentation device provided in the embodiment of the present application in the sagittal plane of the whole spine across the center can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0113] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned embodiment of the vertebral segmentation method in the sagittal plane across the center of the entire spine is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0114] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0115] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0116] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810 and other components.
[0117] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0118] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 809 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 810 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.
[0119] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the vertebral segmentation method across the central full spine sagittal plane is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0120] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0121] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned embodiment of the vertebral segmentation method in the sagittal plane across the center of the entire spine, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0122] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0123] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0125] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for segmenting vertebral bodies in the sagittal plane of the entire spine across the center, characterized in that: include: Obtain sagittal X-ray images of the entire spine; Inputting the X-ray image into a trained image segmentation model to obtain a spinal segmentation image; The training data of the trained image segmentation model includes: data from a first medical center and data from a second medical center, wherein the data from the first medical center is labeled, the data from the second medical center is unlabeled, and the X-ray image belongs to the second medical center.
2. The method for segmenting vertebral bodies in the sagittal plane of the entire spine across the center according to claim 1, characterized in that: The trained image segmentation model is obtained by the following training: Acquire a first X-ray training image of the entire spine in sagittal plane of the first medical center and a second X-ray training image of the entire spine in sagittal plane of the second medical center; Performing an amplification process on the first X-ray training image, and forming a training set with the second X-ray training image; The training set is used to train the adaptive image segmentation model to obtain a trained image segmentation model.
3. The method for segmenting vertebral bodies in the sagittal plane of the entire spine across the center according to claim 2, characterized in that: The step of performing amplification processing on the first X-ray training image includes: Classifying the first X-ray training images according to data differences between different centers to obtain multiple types of training images; Data augmentation is performed for each type of training image.
4. The method for segmenting vertebral bodies in the sagittal plane of the entire spine across the center according to claim 3, characterized in that: The multiple types of training images include: style difference training images, shooting range difference training images, local blur difference training images, splicing difference training images and human body posture difference training images.
5. The method for segmenting vertebral bodies in the sagittal plane of the entire spine across the center according to claim 4, characterized in that: The data augmentation process for each type of training image includes at least one of the following: Performing image style conversion on the style difference training image to convert the style difference training image into the style of the second medical center; Performing random image cropping processing on the shooting range difference training image to obtain a target area image containing vertebrae; Performing local Gaussian blur processing on the local blur difference training image to obtain a local blur image; Performing cropping and re-stitching processing on the stitching difference training image to obtain a stitching image; Resampling and rotation processing are performed on the human body posture difference training images to obtain images with different postures.
6. The method for segmenting vertebral bodies in the sagittal plane of the entire spine across the center according to claim 4, characterized in that: The adaptive image segmentation model includes a detector and a discriminator; The step of training the adaptive image segmentation model using the training set to obtain a trained image segmentation model includes: Using the training set to train the detector, and obtaining detection results of multiple types of training images; The detector is adjusted according to the detection result by using the discriminator, so as to bring multiple detection results closer together and obtain a trained image segmentation model.
7. The method for segmenting vertebral bodies in the sagittal plane of the entire spine across the center according to claim 6, characterized in that: The method of using the discriminator to adjust the detector according to the detection results so as to bring the multiple detection results closer together and obtain a trained image segmentation model includes: The adaptive image segmentation model is trained using a training strategy with constant pseudo-label quality to obtain a trained image segmentation model.
8. A vertebral body segmentation device across the entire sagittal spine, characterized in that: include: An acquisition module, used for acquiring a sagittal X-ray image of the entire spine; A segmentation module, used for inputting the X-ray image into a trained image segmentation model to obtain a spinal segmentation image; The training data of the trained image segmentation model includes: data from a first medical center and data from a second medical center, wherein the data from the first medical center is labeled, the data from the second medical center is unlabeled, and the X-ray image belongs to the second medical center.
9. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the vertebral segmentation method for the sagittal plane of the entire spine across the center as described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the vertebral segmentation method across the center of the entire spine sagittal plane are implemented as described in any one of claims 1-7.
