Bone mineral density prediction method and device, storage medium and electronic equipment
By using the pre-trained vertebral body segmentation model and bone density prediction model, the vertebral body type in the medical image is determined and bone density prediction is performed, which solves the accuracy problem of bone density detection in the existing technology and improves the accuracy of bone density prediction. degree and efficiency.
Patent Information
- Application Number
- CN202410791153.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-03
AI Technical Summary
Existing technology is difficult to accurately determine human bone density quickly and efficiently, affecting the accuracy of osteoporosis detection.
By acquiring medical images and using pre-trained vertebral body segmentation models and bone density prediction models, the vertebral body type is determined and bone density prediction is performed, thereby improving the accuracy of bone density prediction.
The bone density prediction of different types of vertebral bodies is realized, and the accuracy and efficiency of bone density prediction are improved.
Smart Images

Figure CN118587197A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for predicting bone density. Background Art
[0002] With the development of science and technology, artificial intelligence technology has developed rapidly. In the medical field, artificial intelligence is widely used and plays a huge role.
[0003] Osteoporosis means that the human body has reduced bone mass, damaged bone tissue microstructure, increased bone brittleness, etc., which seriously threatens human health. Generally, bone density is one of the auxiliary information for osteoporosis detection. Therefore, the determination of bone density is very important, and how to quickly, efficiently and accurately determine the user's bone density is a key issue.
[0004] Based on this, the present application specification provides a method for predicting bone density. Summary of the invention
[0005] The present specification provides a bone density prediction method, device, storage medium and electronic device to at least partially solve the above-mentioned problems existing in the prior art.
[0006] This manual adopts the following technical solutions:
[0007] This specification provides a method for predicting bone density, the method comprising:
[0008] Acquire a medical image to be detected that includes a vertebral body;
[0009] Determining a vertebral segmentation result of the medical image to be detected;
[0010] Based on the vertebral segmentation result, determine the vertebral type and use it as the target vertebral type;
[0011] Determine a bone density prediction model corresponding to the target vertebral type from among the pre-trained bone density prediction models corresponding to different vertebral types;
[0012] The vertebral segmentation result is input into a bone density prediction model corresponding to the target vertebral type to obtain the bone density of the vertebra corresponding to the vertebral segmentation result output by the bone density prediction model.
[0013] Optionally, inputting the vertebral segmentation result into a bone density prediction model corresponding to the target vertebral type specifically includes:
[0014] Based on the vertebral body segmentation result, determining the cancellous bone part in the vertebral body segmentation result;
[0015] The cancellous bone portion is input into a bone density prediction model corresponding to the target vertebral type.
[0016] Optionally, the vertebral body types include: thoracic vertebrae and lumbar vertebrae;
[0017] The bone density prediction models corresponding to the different vertebral types include: a thoracic vertebrae bone density prediction model corresponding to the thoracic vertebrae and a lumbar vertebrae bone density prediction model corresponding to the lumbar vertebrae.
[0018] Optionally, determining a vertebral segmentation result of the medical image to be detected specifically includes:
[0019] Inputting the medical image to be detected into a coarse segmentation network of a pre-trained vertebral segmentation model to obtain a coarse segmentation result;
[0020] The coarse segmentation result is input into the fine segmentation network of the vertebral segmentation model to obtain the vertebral segmentation result output by the fine segmentation network.
[0021] Optionally, the medical image to be detected is input into a coarse segmentation network of a pre-trained vertebral segmentation model to obtain a coarse segmentation result, specifically including:
[0022] Inputting the medical image to be detected into the coarse segmentation network, downsampling the medical image to be detected through the coarse segmentation network, and obtaining a downsampled medical image to be detected;
[0023] Determining the position of the vertebral body in the medical image to be detected according to the downsampled medical image to be detected;
[0024] Segmenting the vertebrae in the medical image to be detected according to the determined positions of the vertebrae in the medical image to be detected to obtain a rough segmentation result;
[0025] Inputting the coarse segmentation result into the fine segmentation network of the vertebral segmentation model to obtain the vertebral segmentation result output by the fine segmentation network specifically includes:
[0026] Inputting the coarse segmentation result into the fine segmentation network, and upsampling the coarse segmentation result through the fine segmentation network to obtain an upsampled coarse segmentation result;
[0027] Determining the contour of the vertebral body in the rough segmentation result according to the rough segmentation result after upsampling;
[0028] The vertebrae in the coarse segmentation result are segmented according to the determined vertebral contour, so as to obtain the vertebral segmentation result output by the fine segmentation network.
[0029] Optionally, the vertebral segmentation model is trained using the following method:
[0030] Obtain a sample medical image containing a vertebral body;
[0031] Inputting the sample medical image into a coarse segmentation network in a vertebral segmentation model to be trained, so that the coarse segmentation network downsamples the sample medical image, and obtaining a coarse segmentation prediction result output by the coarse segmentation network based on the downsampled sample medical image;
[0032] Inputting the coarse segmentation prediction result into the fine segmentation network so that the fine segmentation network upsamples the coarse segmentation prediction result, and obtaining a vertebral segmentation prediction result corresponding to the sample medical image output by the fine segmentation network based on the upsampled coarse segmentation prediction result;
[0033] The vertebral segmentation model to be trained is trained according to the vertebral segmentation prediction result.
[0034] Optionally, the lumbar vertebrae bone density prediction model to be trained is trained using the following method:
[0035] Acquire a sample lumbar medical image, and acquire the bone density of the lumbar spine contained in the sample lumbar medical image as a first label bone density;
[0036] Inputting the sample lumbar medical image into the lumbar bone density prediction model to be trained, obtaining the lumbar bone density in the sample lumbar medical image output by the lumbar bone density prediction model to be trained, and using the obtained bone density as a first prediction result;
[0037] The lumbar vertebrae bone density prediction model to be trained is trained according to the first prediction result and the first label bone density.
[0038] Optionally, the thoracic vertebrae bone density prediction model to be trained is trained using the following method:
[0039] Acquire a sample thoracic vertebra medical image, and acquire the bone density of the lumbar vertebra homologous to the thoracic vertebra contained in the sample thoracic vertebra medical image as a second label bone density;
[0040] Inputting the sample thoracic vertebra medical image into the thoracic vertebra bone density prediction model to be trained, obtaining the thoracic vertebra bone density in the sample thoracic vertebra medical image output by the thoracic vertebra bone density prediction model to be trained, and using the obtained bone density as the second prediction result;
[0041] The thoracic vertebrae bone density prediction model to be trained is trained according to the second prediction result and the second label bone density.
[0042] This specification provides a bone density prediction device, the device comprising:
[0043] An acquisition module, used for acquiring a medical image to be detected containing a vertebral body;
[0044] A segmentation module, used to determine the vertebral segmentation result of the medical image to be detected;
[0045] A type determination module, used to determine the vertebral type based on the vertebral segmentation result and use it as the target vertebral type;
[0046] A model determination module, used to determine a bone density prediction model corresponding to the target vertebral type from among the pre-trained bone density prediction models corresponding to different vertebral types;
[0047] The result acquisition module is used to input the vertebral segmentation result into a bone density prediction model corresponding to the target vertebral type, and obtain the bone density of the vertebra corresponding to the vertebral segmentation result output by the bone density prediction model.
[0048] Optionally, the result acquisition module is specifically used to determine the cancellous bone part in the vertebral segmentation result based on the vertebral segmentation result; and input the cancellous bone part into a bone density prediction model corresponding to the target vertebral type.
[0049] Optionally, the vertebral body types include: thoracic vertebrae and lumbar vertebrae;
[0050] The bone density prediction models corresponding to the different vertebral types include: a thoracic vertebrae bone density prediction model corresponding to the thoracic vertebrae and a lumbar vertebrae bone density prediction model corresponding to the lumbar vertebrae.
[0051] Optionally, the segmentation module is specifically used to input the medical image to be detected into a coarse segmentation network of a pre-trained vertebral segmentation model to obtain a coarse segmentation result; input the coarse segmentation result into a fine segmentation network of the vertebral segmentation model to obtain a vertebral segmentation result output by the fine segmentation network.
[0052] Optionally, the segmentation module is specifically used to input the medical image to be detected into the coarse segmentation network, downsample the medical image to be detected through the coarse segmentation network to obtain a downsampled medical image to be detected; determine the position of the vertebra in the medical image to be detected according to the downsampled medical image to be detected; and segment the vertebra in the medical image to be detected according to the determined position of the vertebra in the medical image to be detected to obtain a coarse segmentation result;
[0053] The segmentation module is specifically used to input the coarse segmentation result into the fine segmentation network, and upsample the coarse segmentation result through the fine segmentation network to obtain the upsampled coarse segmentation result; determine the contour of the vertebra in the coarse segmentation result according to the upsampled coarse segmentation result; and segment the vertebra in the coarse segmentation result according to the determined contour of the vertebra, so as to obtain the vertebra segmentation result output by the fine segmentation network.
[0054] Optionally, the device further comprises a training module;
[0055] The training module is specifically used to obtain sample medical images containing vertebrae; input the sample medical images into the coarse segmentation network in the vertebral segmentation model to be trained so that the coarse segmentation network downsamples the sample medical images, and based on the downsampled sample medical images, obtain the coarse segmentation prediction results output by the coarse segmentation network; input the coarse segmentation prediction results into the fine segmentation network so that the fine segmentation network upsamples the coarse segmentation prediction results, and based on the upsampled coarse segmentation prediction results, obtain the vertebral segmentation prediction results corresponding to the sample medical images output by the fine segmentation network; and train the vertebral segmentation model to be trained according to the vertebral segmentation prediction results.
[0056] Optionally, the training module is specifically used to obtain a sample lumbar medical image, and obtain the bone density of the lumbar vertebra contained in the sample lumbar medical image as a first label bone density; input the sample lumbar medical image into the lumbar bone density prediction model to be trained, obtain the bone density of the lumbar vertebra in the sample lumbar medical image output by the lumbar bone density prediction model to be trained, and use the obtained bone density as a first prediction result; train the lumbar bone density prediction model to be trained according to the first prediction result and the first label bone density.
[0057] Optionally, the training module is specifically used to obtain a sample thoracic spine medical image, and obtain the bone density of the lumbar vertebrae homologous to the thoracic vertebrae contained in the sample thoracic spine medical image as a second label bone density; input the sample thoracic spine medical image into the thoracic vertebrae bone density prediction model to be trained, obtain the bone density of the thoracic vertebrae in the sample thoracic spine medical image output by the thoracic vertebrae bone density prediction model to be trained, and use the obtained bone density as a second prediction result; train the thoracic vertebrae bone density prediction model to be trained based on the second prediction result and the second label bone density.
[0058] The present specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned bone density prediction method is implemented.
[0059] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned bone density prediction method when executing the program.
[0060] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0061] It can be seen from the bone density prediction method provided in this specification that by pre-training the bone density prediction models corresponding to different vertebral types, when determining the bone density of a human body, a bone density prediction model that matches the vertebral type of the vertebral segmentation result of the medical image to be detected can be first determined, and then the vertebral bone density can be predicted by the model. This method not only realizes the prediction of the bone density of different types of vertebrae, but also improves the accuracy of bone density prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The exemplary embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification.
[0063] In the figure:
[0064] Figure 1 A schematic diagram of a method for predicting bone density in this specification;
[0065] Figure 2 A schematic diagram of the structure of a vertebral segmentation model provided in this specification;
[0066] Figure 3 A flowchart of a method for predicting bone density is provided for this specification;
[0067] Figure 4 A schematic diagram of a bone density prediction device provided in this specification;
[0068] Figure 5 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the specification.
[0070] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0071] Figure 1 A flowchart of a method for predicting bone density provided in this specification may include the following steps:
[0072] S100: Acquire a medical image to be detected that includes a vertebral body.
[0073] S102: Determine the vertebral segmentation result of the medical image to be detected.
[0074] A method for predicting bone density is provided in an embodiment of this specification. The execution process of this method can be performed by an electronic device with computing capabilities such as a server and a terminal for predicting the bone density of a human body. In addition, in the process of executing this method, the bone density prediction models corresponding to different vertebral types involved in the pre-training, the electronic device for executing the model training of the aforementioned model and the electronic device for executing this method can be the same or different, and this specification does not limit this. The following takes the example that the execution subject of the bone density prediction method provided in this specification is a server, and describes the specific technical solution of this specification.
[0075] Usually, when performing bone density testing, users can first use medical imaging equipment to take medical images of the human body, such as obtaining a CT image of the human body through electronic computed tomography (CT), or obtaining an MRI image of the human body through magnetic resonance imaging (MRI). In addition, the medical image generally includes the vertebral body of the human body, and then subsequent bone density testing can be performed based on the medical image containing the vertebral body, that is, the bone density of the human body can be determined through the vertebral body of the human body.
[0076] In this specification, the server may first obtain a medical image to be detected that includes a vertebral body. The medical image may be a CT image, an MRI image, etc. as described above, and this specification does not specifically limit this, as long as the medical image to be detected includes a vertebral body.
[0077] Generally, the bone density of the human body can be predicted by predicting the bone density of the vertebral body, so the server can determine the vertebral segmentation result of the medical image to be detected containing the vertebral body. In one or more embodiments of the present specification, when determining the vertebral segmentation result of the medical image to be detected containing the vertebral body, the server can determine the vertebral segmentation result of the medical image to be detected based on a pre-trained vertebral segmentation model.
[0078] like Figure 2 As shown, it is a structural schematic diagram of a vertebral segmentation model provided in this specification. It can be seen that the vertebral segmentation model includes a coarse segmentation network and a fine segmentation network. In one or more embodiments of this specification, the server can input the medical image to be detected into the coarse segmentation network of the vertebral segmentation model to obtain a coarse segmentation result. Then, the coarse segmentation result is input into the fine segmentation network to obtain the vertebral segmentation result output by the fine segmentation network, that is, the vertebral segmentation result of the medical image to be detected is obtained.
[0079] In this specification, the coarse segmentation network can downsample the medical image input to the coarse segmentation network, and the coarse segmentation network is intended to locate the position of the complete vertebra in the medical image to be detected, so as to obtain a coarse segmentation result containing the complete vertebra. The fine segmentation network can then upsample the coarse segmentation result, aiming to accurately locate the position of the vertebra from the coarse segmentation result, so as to further segment the precise vertebra.
[0080] Specifically, the server may input the medical image to be detected into a coarse segmentation network, and downsample the medical image to be detected through the coarse segmentation network to obtain the downsampled medical image to be detected. And according to the downsampled medical image to be detected, the position of the vertebra in the medical image to be detected is determined. Then, according to the determined position of the vertebra in the medical image to be detected, the vertebra in the medical image to be detected is segmented to obtain a coarse segmentation result. Then, the server may input the coarse segmentation result into a fine segmentation network, and upsample the coarse segmentation result through the fine segmentation network to obtain an upsampled coarse segmentation result. And according to the upsampled coarse segmentation result, the contour of the vertebra in the coarse segmentation result is determined. Finally, according to the determined contour of the vertebra, the vertebra in the coarse segmentation result is segmented to obtain the vertebral segmentation result output by the fine segmentation network, that is, the vertebral segmentation result of the medical image to be detected is obtained.
[0081] In this specification, a vertebral segmentation model of the aforementioned structure is used to determine the vertebral segmentation result of the medical image to be detected, thereby improving the accuracy of the determined vertebral segmentation result, and further improving the accuracy of the bone density determined based on the vertebral segmentation result in subsequent steps.
[0082] Of course, when determining the vertebral segmentation result of the medical image to be detected, it is also possible not to use the Figure 2 The vertebral segmentation model including the coarse segmentation network and the fine segmentation network is not specifically limited in this specification.
[0083] S104: Based on the vertebral segmentation result, determine the vertebral type and use it as the target vertebral type.
[0084] S106: Determine a bone density prediction model corresponding to the target vertebral type from among pre-trained bone density prediction models corresponding to different vertebral types.
[0085] Since the vertebrae of the human body include thoracic vertebrae and lumbar vertebrae, in one or more embodiments of the present specification, the vertebrae segmentation results described in the aforementioned steps S100-S102 may include lumbar vertebrae segmentation results and thoracic vertebrae segmentation results. Then in the aforementioned step S102, after determining the vertebrae segmentation results of the medical image to be detected, the vertebrae type may be determined based on the vertebrae segmentation results. In one or more embodiments of the present specification, the aforementioned vertebrae segmentation model may be an instance segmentation model, and the vertebrae segmentation results of the vertebrae segmentation model may include lumbar vertebrae segmentation results and thoracic vertebrae segmentation results. Then based on the obtained vertebrae segmentation results, the vertebrae type may be obtained, and the server may use the obtained vertebrae type as the target vertebrae type.
[0086] Therefore, the server may determine the bone density prediction model corresponding to the target vertebral type from the pre-trained bone density prediction models corresponding to different vertebral types.
[0087] Among them, in this specification, vertebral types include lumbar vertebrae and thoracic vertebrae, vertebral segmentation results include lumbar vertebrae segmentation results and thoracic vertebrae segmentation results, and bone density prediction models corresponding to different vertebral types include: a thoracic vertebrae bone density prediction model corresponding to the thoracic vertebrae and a lumbar vertebrae bone density prediction model corresponding to the lumbar vertebrae.
[0088] That is, in one or more embodiments of the present specification, a pre-trained thoracic vertebrae bone density prediction model and a lumbar vertebrae bone density prediction model are deployed in the server, the thoracic vertebrae bone density prediction model is used to determine the bone density based on the thoracic vertebrae segmentation result, and the lumbar vertebrae bone density prediction model is used to determine the bone density based on the lumbar vertebrae segmentation result. Therefore, after the server obtains the target vertebral type, the bone density prediction model corresponding to the target vertebral type can be determined, so as to use the bone density prediction model consistent with the target vertebral type to predict the bone density in the subsequent steps, thereby improving the accuracy of bone density prediction.
[0089] Since there are great differences in the shape, size, position, etc. between the lumbar vertebrae and the thoracic vertebrae of the human body, in this specification, a lumbar vertebrae bone density prediction model for predicting the bone density of the lumbar vertebrae and a thoracic vertebrae bone density prediction model for predicting the bone density of the thoracic vertebrae can be pre-trained, so that the lumbar vertebrae bone density prediction model can only learn and fully learn the characteristics of the lumbar vertebrae, and the thoracic vertebrae bone density prediction model can only learn and fully learn the characteristics of the thoracic vertebrae, thereby improving the prediction accuracy of the trained lumbar vertebrae bone density prediction model and improving the prediction accuracy of the trained thoracic vertebrae bone density prediction model. Furthermore, when predicting bone density, the bone density of the vertebrae contained in the medical image to be detected can be predicted based on different types of pre-trained bone density prediction models, thereby improving the accuracy of the predicted bone density.
[0090] S108: Inputting the vertebral segmentation result into a bone density prediction model corresponding to the target vertebral type, and obtaining the bone density of the vertebra corresponding to the vertebral segmentation result output by the bone density prediction model.
[0091] In the present specification, after obtaining the bone density prediction model corresponding to the target vertebral type, the server can input the vertebral segmentation result of the medical image to be detected into the bone density prediction model corresponding to the target vertebral type, and obtain the bone density output by the bone density prediction model corresponding to the target vertebral type, that is, obtain the bone density of the vertebra contained in the medical image to be detected.
[0092] like Figure 3 As shown, it is a flowchart of a bone density prediction method provided in this specification. In this specification, the server can obtain a medical image to be detected containing a vertebra, and determine the vertebral segmentation result of the medical image to be detected. Then, based on the vertebral segmentation result, the vertebral type of the vertebra contained in the medical image to be detected is obtained, and used as the target vertebral type. Then, in the pre-trained bone density prediction models corresponding to different vertebral types, the bone density prediction model corresponding to the target vertebral type is determined. Finally, the vertebral segmentation result can be input into the bone density prediction model corresponding to the target vertebral type, and the bone density of the vertebra corresponding to the vertebral segmentation result output by the bone density prediction model can be obtained. As shown Figure 3 As shown, when the target vertebral type is the lumbar vertebra, the lumbar vertebra bone density prediction model corresponding to the lumbar vertebra is determined among the pre-trained bone density prediction models corresponding to different vertebral types, and the lumbar vertebra segmentation result is input into the lumbar vertebra bone density prediction model to obtain the bone density of the lumbar vertebra. When the target vertebral type is the thoracic vertebra, the thoracic vertebra bone density prediction model corresponding to the thoracic vertebra is determined among the pre-trained bone density prediction models corresponding to different vertebral types, and the thoracic vertebra segmentation result is input into the thoracic vertebra bone density prediction model to obtain the bone density of the thoracic vertebra.
[0093] It should be noted that this specification does not limit the number and type of vertebrae contained in the medical image to be detected. In other words, the vertebral segmentation result of the medical image to be detected can be a lumbar segmentation result, a thoracic segmentation result, or a thoracic segmentation result and a lumbar segmentation result. This specification does not impose any specific restrictions. In this specification, when the vertebral segmentation result of the medical image to be detected includes both a thoracic segmentation result and a lumbar segmentation result, the bone density of the lumbar vertebra can be determined based on a pre-trained lumbar bone density prediction model and a lumbar segmentation result, and the bone density of the thoracic vertebra can be determined based on a pre-trained thoracic bone density prediction model and a thoracic segmentation result. Then, based on the bone density of the thoracic vertebra and the bone density of the lumbar vertebra, the bone density of the vertebrae contained in the medical image to be detected is obtained. In one or more embodiments of the present specification, when it is necessary to determine the bone density of the user from whom the acquired medical image to be tested containing the vertebral body comes, and the vertebral segmentation result of the medical image to be tested also includes the thoracic vertebrae segmentation result and the lumbar vertebrae segmentation result, the bone density of the thoracic vertebrae and the bone density of the lumbar vertebrae can be obtained based on the aforementioned method, and then the server can also use the average value of the bone density of the thoracic vertebrae and the bone density of the lumbar vertebrae as the bone density of the human body, or can weight the bone density of the lumbar vertebrae and the bone density of the thoracic vertebrae according to preset weights to obtain the bone density of the human body.
[0094] In addition, in this specification, the aforementioned medical images can be two-dimensional medical images or three-dimensional medical images. Similarly, the aforementioned segmentation results can be three-dimensional segmentation results or two-dimensional segmentation results, and the aforementioned models can be models for processing three-dimensional data or two-dimensional data. This specification does not limit this, and the dimensions of the images, segmentation results, and models can be set according to specific scenarios and specific needs.
[0095] Based on the above, by using the pre-trained bone density prediction models corresponding to different vertebral types, when determining the bone density of the human body, a bone density prediction model that matches the vertebral type of the vertebral segmentation result of the medical image to be detected is first determined, and then the vertebral bone density is predicted by the model. Not only the prediction of the bone density of different types of vertebrae is achieved, but also the accuracy of bone density prediction is improved.
[0096] In one or more embodiments of the present specification, in order to further improve the accuracy of the predicted bone density, in the above-mentioned step S106, when the vertebral segmentation result is input into the bone density prediction model corresponding to the target vertebral type, the server can determine the cancellous bone part in the vertebral segmentation result based on the vertebral segmentation result, and then input the cancellous bone part of the vertebral segmentation result into the bone density prediction model corresponding to the target vertebral type.
[0097] Furthermore, as mentioned above and as Figure 2As shown, in one or more embodiments of the present specification, the vertebral segmentation model includes a coarse segmentation network and a fine segmentation network. Based on this, the present specification also provides a training method for the vertebral segmentation model.
[0098] Specifically, the server may first obtain a sample medical image containing a vertebra, and then input the sample medical image into a coarse segmentation network in a vertebral segmentation model to be trained, so that the coarse segmentation network downsamples the sample medical image, and based on the downsampled sample medical image, obtains a coarse segmentation prediction result output by the coarse segmentation network. That is, the coarse segmentation network may downsample the sample medical image to obtain a downsampled sample medical image, and determine the position of the vertebra in the downsampled sample medical image, and then segment the vertebra in the sample medical image based on the obtained position of the vertebra, thereby obtaining a coarse segmentation prediction result.
[0099] Next, the server may input the coarse segmentation prediction result into the fine segmentation network, so that the fine segmentation network upsamples the coarse segmentation prediction result, and obtains the vertebral segmentation prediction result corresponding to the sample medical image output by the fine segmentation network based on the upsampled coarse segmentation prediction result. That is, the fine segmentation network may upsample the coarse segmentation prediction result to obtain the upsampled coarse segmentation prediction result, and may determine the contour of the vertebra in the upsampled coarse segmentation prediction result, and then segment the vertebra in the coarse segmentation prediction result based on the determined vertebral contour, and obtain the vertebral segmentation prediction result output by the fine segmentation network.
[0100] Finally, the server can train the vertebral segmentation model to be trained according to the vertebral segmentation prediction result. Specifically, in one or more embodiments of the present specification, the server can also obtain the standard segmentation result of the vertebra contained in the sample medical image, so that the server can determine the first loss based on the difference between the vertebral segmentation prediction result and the standard segmentation result, and then train the vertebral segmentation model to be trained according to the first loss, that is, the server can train the coarse segmentation network and the fine segmentation network based on the first loss.
[0101] In addition, this specification also provides a training method for the lumbar vertebrae bone density prediction model to be trained.
[0102] When training the lumbar vertebrae bone density prediction model to be trained, the server may obtain a sample lumbar vertebrae medical image, and obtain the bone density of the lumbar vertebrae contained in the sample lumbar vertebrae medical image as the first label bone density. Then the server may input the sample lumbar vertebrae medical image into the lumbar vertebrae bone density prediction model to be trained, obtain the bone density of the lumbar vertebrae in the sample lumbar vertebrae medical image output by the lumbar vertebrae bone density prediction model to be trained, and use the obtained bone density as the first prediction result. Then, according to the first prediction result and the first label bone density, the lumbar vertebrae bone density prediction model to be trained is trained. Specifically, the server may determine the second loss according to the difference between the first medical result and the first label bone density, and train the lumbar vertebrae bone density prediction model to be trained according to the second loss.
[0103] In addition, this specification also provides a training method for the thoracic vertebrae bone density prediction model to be trained. Moreover, since both the lumbar vertebrae and the thoracic vertebrae can characterize the bone density of the human body, and the bone density of the human body characterized by the lumbar vertebrae is usually more accurate, in this specification, when training a thoracic vertebrae bone density prediction model for predicting the thoracic vertebrae, the bone density of the lumbar vertebrae homologous to the thoracic vertebrae in the training sample can be used as the bone density of the training sample, thereby improving the accuracy of the bone density predicted by the trained thoracic vertebrae bone density prediction model.
[0104] Specifically, in the present specification, the server may first obtain a sample thoracic vertebra medical image, and obtain the bone density of the lumbar vertebrae homologous to the thoracic vertebrae contained in the sample thoracic vertebra medical image as the second label bone density. Then, the sample thoracic vertebra medical image is input into the thoracic vertebra bone density prediction model to be trained, and the bone density of the thoracic vertebrae in the sample thoracic vertebra medical image output by the thoracic vertebra bone density prediction model to be trained is obtained, and the obtained bone density is used as the second prediction result. Finally, the server may train the thoracic vertebra bone density prediction model to be trained according to the second prediction result and the second label bone density, that is, the server may determine the third loss according to the difference between the second prediction result and the second label bone density, and then train the thoracic vertebra bone density prediction model to be trained according to the third loss.
[0105] It should be noted that in one or more embodiments of this specification, the first loss, the second loss and the third loss may be Dice loss, or Focal loss, etc., and this specification does not make specific restrictions. The vertebral segmentation model and the bone density prediction model may be a VB-Net model, or a DenseNet model, etc., and this specification does not make specific restrictions.
[0106] In addition, the method for predicting bone density as described above can also be applied to predicting bone density of other types of human bones, such as pelvis, femur, etc.
[0107] Based on the above-mentioned method for predicting bone density, the present specification also provides a schematic diagram of a device for predicting bone density, as shown in FIG. Figure 4 shown.
[0108] Figure 4 A schematic diagram of a device for predicting bone density provided in an embodiment of this specification, the device comprising:
[0109] An acquisition module 400 is used to acquire a medical image to be detected containing a vertebral body;
[0110] The segmentation module 402 is used to determine the vertebral segmentation result of the medical image to be detected;
[0111] A type determination module 404 is used to determine the vertebral type based on the vertebral segmentation result and use it as the target vertebral type;
[0112] A model determination module 406 is used to determine a bone density prediction model corresponding to the target vertebral type from among the pre-trained bone density prediction models corresponding to different vertebral types;
[0113] The result obtaining module 408 is used to input the vertebral segmentation result into a bone density prediction model corresponding to the target vertebral type, and obtain the bone density of the vertebra corresponding to the vertebral segmentation result output by the bone density prediction model.
[0114] Optionally, the result acquisition module 408 is specifically configured to determine the cancellous bone portion in the vertebral segmentation result based on the vertebral segmentation result; and input the cancellous bone portion into a bone density prediction model corresponding to the target vertebral type.
[0115] Optionally, the vertebral body types include: thoracic vertebrae and lumbar vertebrae;
[0116] The bone density prediction models corresponding to the different vertebral types include: a thoracic vertebrae bone density prediction model corresponding to the thoracic vertebrae and a lumbar vertebrae bone density prediction model corresponding to the lumbar vertebrae.
[0117] Optionally, the segmentation module 402 is specifically used to input the medical image to be detected into a coarse segmentation network of a pre-trained vertebral segmentation model to obtain a coarse segmentation result; input the coarse segmentation result into a fine segmentation network of the vertebral segmentation model to obtain a vertebral segmentation result output by the fine segmentation network.
[0118] Optionally, the segmentation module 402 is specifically used to input the medical image to be detected into the coarse segmentation network, downsample the medical image to be detected through the coarse segmentation network to obtain a downsampled medical image to be detected; determine the position of the vertebra in the medical image to be detected according to the downsampled medical image to be detected; and segment the vertebra in the medical image to be detected according to the determined position of the vertebra in the medical image to be detected to obtain a coarse segmentation result;
[0119] The segmentation module 402 is specifically used to input the coarse segmentation result into the fine segmentation network, and upsample the coarse segmentation result through the fine segmentation network to obtain the upsampled coarse segmentation result; determine the contour of the vertebra in the coarse segmentation result according to the upsampled coarse segmentation result; and segment the vertebra in the coarse segmentation result according to the determined contour of the vertebra, to obtain the vertebra segmentation result output by the fine segmentation network.
[0120] Optionally, the device further includes a training module 410;
[0121] The training module 410 is specifically used to obtain a sample medical image containing a vertebra; input the sample medical image into a coarse segmentation network in a vertebral segmentation model to be trained so that the coarse segmentation network downsamples the sample medical image, and based on the downsampled sample medical image, obtain a coarse segmentation prediction result output by the coarse segmentation network; input the coarse segmentation prediction result into the fine segmentation network so that the fine segmentation network upsamples the coarse segmentation prediction result, and based on the upsampled coarse segmentation prediction result, obtain a vertebral segmentation prediction result corresponding to the sample medical image output by the fine segmentation network; and train the vertebral segmentation model to be trained according to the vertebral segmentation prediction result.
[0122] Optionally, the training module 410 is specifically used to obtain a sample lumbar medical image, and obtain the bone density of the lumbar vertebra contained in the sample lumbar medical image as a first label bone density; input the sample lumbar medical image into the lumbar bone density prediction model to be trained, obtain the bone density of the lumbar vertebra in the sample lumbar medical image output by the lumbar bone density prediction model to be trained, and use the obtained bone density as a first prediction result; train the lumbar bone density prediction model to be trained according to the first prediction result and the first label bone density.
[0123] Optionally, the training module 410 is specifically used to obtain a sample thoracic spine medical image, and obtain the bone density of the lumbar vertebrae homologous to the thoracic vertebrae contained in the sample thoracic spine medical image as a second label bone density; input the sample thoracic spine medical image into the thoracic vertebrae bone density prediction model to be trained, obtain the bone density of the thoracic vertebrae in the sample thoracic spine medical image output by the thoracic vertebrae bone density prediction model to be trained, and use the obtained bone density as a second prediction result; train the thoracic vertebrae bone density prediction model to be trained according to the second prediction result and the second label bone density.
[0124] The embodiments of the present specification also provide a computer-readable storage medium, which stores a computer program. The computer program can be used to execute the bone density prediction method described above.
[0125] Based on the above-mentioned bone density prediction method, the present specification also proposes Figure 5 The schematic structure diagram of the electronic device shown in FIG. Figure 5 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the bone density prediction method described above.
[0126] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0127] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0128] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0129] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0130] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0131] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0132] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0133] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0135] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0136] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0137] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0138] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0139] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0140] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0141] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0142] The above description is only an embodiment of this specification and is not intended to limit this specification. For those skilled in the art, this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification should be included in the scope of the claims of this application.
Claims
1. A method for predicting bone density. It is characterized in that The method comprises: Acquire a medical image to be detected that includes a vertebral body; Determining a vertebral segmentation result of the medical image to be detected; Based on the vertebral segmentation result, determine the vertebral type and use it as the target vertebral type; Determine a bone density prediction model corresponding to the target vertebral type from among the pre-trained bone density prediction models corresponding to different vertebral types; The vertebral segmentation result is input into a bone density prediction model corresponding to the target vertebral type to obtain the bone density of the vertebra corresponding to the vertebral segmentation result output by the bone density prediction model.
2. The method according to claim 1, It is characterized in that Inputting the vertebral segmentation result into a bone density prediction model corresponding to the target vertebral type specifically includes: Based on the vertebral body segmentation result, determining a cancellous bone portion in the vertebral body segmentation result; The cancellous bone portion is input into a bone density prediction model corresponding to the target vertebral type.
3. The method according to claim 1, It is characterized in that The vertebral types include: thoracic vertebrae and lumbar vertebrae; The bone density prediction models corresponding to the different vertebral types include: a thoracic vertebrae bone density prediction model corresponding to the thoracic vertebrae and a lumbar vertebrae bone density prediction model corresponding to the lumbar vertebrae.
4. The method according to claim 1, It is characterized in that Determining the vertebral segmentation result of the medical image to be detected specifically includes: Inputting the medical image to be detected into a coarse segmentation network of a pre-trained vertebral segmentation model to obtain a coarse segmentation result; The coarse segmentation result is input into the fine segmentation network of the vertebral segmentation model to obtain the vertebral segmentation result output by the fine segmentation network.
5. The method according to claim 4, It is characterized in that Inputting the medical image to be detected into a coarse segmentation network of a pre-trained vertebral segmentation model to obtain a coarse segmentation result, specifically comprising: Inputting the medical image to be detected into the coarse segmentation network, downsampling the medical image to be detected through the coarse segmentation network, and obtaining a downsampled medical image to be detected; Determining the position of the vertebral body in the medical image to be detected according to the downsampled medical image to be detected; Segmenting the vertebrae in the medical image to be detected according to the determined positions of the vertebrae in the medical image to be detected to obtain a rough segmentation result; Inputting the coarse segmentation result into the fine segmentation network of the vertebral segmentation model to obtain the vertebral segmentation result output by the fine segmentation network specifically includes: Inputting the coarse segmentation result into the fine segmentation network, and upsampling the coarse segmentation result through the fine segmentation network to obtain an upsampled coarse segmentation result; Determining the contour of the vertebral body in the rough segmentation result according to the rough segmentation result after upsampling; The vertebrae in the coarse segmentation result are segmented according to the determined vertebral contour, so as to obtain the vertebral segmentation result output by the fine segmentation network.
6. The method according to claim 4, It is characterized in that The vertebral segmentation model is trained using the following method: Obtain a sample medical image containing a vertebral body; Inputting the sample medical image into a coarse segmentation network in a vertebral segmentation model to be trained, so that the coarse segmentation network downsamples the sample medical image, and obtaining a coarse segmentation prediction result output by the coarse segmentation network based on the downsampled sample medical image; Inputting the coarse segmentation prediction result into the fine segmentation network so that the fine segmentation network upsamples the coarse segmentation prediction result, and obtaining a vertebral segmentation prediction result corresponding to the sample medical image output by the fine segmentation network based on the upsampled coarse segmentation prediction result; The vertebral segmentation model to be trained is trained according to the vertebral segmentation prediction result.
7. The method according to claim 3, It is characterized in that The lumbar vertebrae bone density prediction model to be trained is trained using the following method: Acquire a sample lumbar medical image, and acquire the bone density of the lumbar spine contained in the sample lumbar medical image as a first label bone density; Inputting the sample lumbar medical image into the lumbar bone density prediction model to be trained, obtaining the lumbar bone density in the sample lumbar medical image output by the lumbar bone density prediction model to be trained, and using the obtained bone density as a first prediction result; The lumbar vertebrae bone density prediction model to be trained is trained according to the first prediction result and the first label bone density.
8. The method according to claim 3, It is characterized in that The thoracic vertebrae bone density prediction model to be trained is trained using the following method: Acquire a sample thoracic vertebra medical image, and acquire the bone density of the lumbar vertebra homologous to the thoracic vertebra contained in the sample thoracic vertebra medical image as a second label bone density; Inputting the sample thoracic vertebra medical image into the thoracic vertebra bone density prediction model to be trained, obtaining the thoracic vertebra bone density in the sample thoracic vertebra medical image output by the thoracic vertebra bone density prediction model to be trained, and using the obtained bone density as the second prediction result; The thoracic vertebrae bone density prediction model to be trained is trained according to the second prediction result and the second label bone density.
9. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 8 is implemented.
10. An electronic device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of claims 1 to 8 is implemented.
