Method and device for determining lung air retention, program product and medical equipment
By acquiring and processing dynamic lung field X-ray image sequences during the respiratory cycle, using preset registration models and convolutional neural networks to determine the air retention area in the lungs, solving the problem that the lung air retention threshold in chest X-ray images is difficult to determine. , improves the accurate determination of lung air retention and promotes the accuracy of medical treatment.
Patent Information
- Application Number
- CN202410761965.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-11-29
AI Technical Summary
The threshold for lung air retention based on chest X-ray (X-ray) images is difficult to determine, which affects the accurate determination of lung air retention and is not conducive to precise medical treatment.
By obtaining dynamic lung field X-ray image sequences at multiple moments during the respiratory cycle, we determine the projected image and the unchanged area of grayscale in the lungs, and then determine the air retention area in the lungs, using preset registration models and convolutional neural networks Perform image registration and segmentation.
It improves the accuracy of determining lung air retention, solves the problem of difficult threshold determination, and promotes the accuracy of medical care.
Smart Images

Figure CN119048413A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of pulmonary air retention detection in X-ray images, and in particular to a method and device for determining pulmonary air retention, a program product and a medical device. Background Art
[0002] Chest X-ray (X-ray) images have become a routine imaging technology for diagnosing lung diseases. With respect to pulmonary air retention in chest X-ray (X-ray) images, our company has proposed a method and device for determining pulmonary ventilation and air retention, an electronic device, and a medium (2023108065978).
[0003] However, due to the different obesity levels among men and women or the same gender, it is difficult to determine the threshold of pulmonary air retention based on chest X-ray images. This greatly affects the determination of pulmonary air retention based on chest X-ray images and is not conducive to precision medicine. Summary of the invention
[0004] The present disclosure proposes a method and device for determining pulmonary air retention, a program product, and a technical solution for medical equipment.
[0005] According to one aspect of the present disclosure, a method for determining pulmonary air trapping is provided, comprising:
[0006] Acquire a dynamic lung field X-ray image sequence to be processed corresponding to multiple moments in at least one respiratory cycle, and determine the projection images corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments; based on the projection images and the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments, determine the grayscale value unchanged region in the lung corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments; based on the grayscale value unchanged region in the lung corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments, determine the air retention region in the lung of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments.
[0007] Preferably, the method for determining the projection image corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments comprises: using a preset registration model to respectively register other dynamic lung field X-ray images to be processed other than a set fixed image corresponding to a certain moment in the sequence of dynamic lung field X-ray images to be processed corresponding to multiple moments within at least one respiratory cycle to the set fixed image to obtain the corresponding multiple first lung field X-ray registered images; performing maximum gray value projection / minimum gray value projection on the set fixed image and the multiple first lung field X-ray registered images to obtain projection images corresponding to areas where air may exist in the lungs; or performing maximum gray value projection / minimum gray value projection on the multiple first lung field X-ray registered images to obtain projection images corresponding to areas where air may exist in the lungs.
[0008] Preferably, if the maximum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung; or, the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung; if the minimum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung; or, the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung.
[0009] Preferably, if the maximum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registered images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung; or, the multiple first lung field X-ray registered images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung; if the minimum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registered images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung; or, the multiple first lung field X-ray registered images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lung.
[0010] Preferably, the method for determining the area in the lung where the grayscale value does not change corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the projection image and the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments, comprises: using the preset registration model to respectively register the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments or other dynamic lung field X-ray images to be processed except the set fixed image with the projection image to obtain multiple second lung field X-ray registered images; performing silhouette processing on the projection image and the multiple second lung field X-ray registered images to obtain corresponding grayscale value change areas; determining the area in the lung where the grayscale value does not change corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the multiple second lung field X-ray registration images and their corresponding grayscale value change areas.
[0011] Preferably, the method for determining the grayscale value unchanged area in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the multiple second lung field X-ray registration images and their corresponding grayscale value change areas, comprises: performing silhouette processing on the grayscale value changed areas of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments and their corresponding to-be-processed dynamic lung field X-ray image sequence, respectively, to determine the grayscale value unchanged area in the lung of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments.
[0012] Preferably, the method of performing silhouette processing on the grayscale value change areas of the to-be-processed dynamic lung field X-ray image sequence and its corresponding to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, and determining the grayscale value unchanged areas in the lungs of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, comprises: performing silhouette processing on the grayscale value change areas of the to-be-processed dynamic lung field X-ray image sequence and its corresponding to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, and obtaining corresponding multiple silhouette images; respectively obtaining multiple mask image sequences corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments; respectively determining multiple lung field boundaries corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the multiple mask image sequences; respectively using the multiple lung field boundaries to limit the lung field areas of the corresponding multiple silhouette images, and determining the grayscale value unchanged areas in the lungs of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments.
[0013] Preferably, the method of performing silhouette processing on the grayscale value change areas of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments and its corresponding dynamic lung field X-ray image sequence to be processed, and determining the grayscale value unchanged areas in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments, also includes: using the preset registration model to respectively register the multiple second lung field X-ray registered images with the corresponding dynamic lung field X-ray image sequence to be processed, and mapping the grayscale value unchanged areas in the lungs corresponding to the multiple second lung field X-ray registered images to the grayscale value unchanged areas in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments.
[0014] Preferably, the area in the lung where the grayscale value does not change corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the area in the lung where the grayscale value does not change corresponding to the maximum lung field area and the minimum lung field area in one respiratory cycle in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments.
[0015] Preferably, the method for determining the intrapulmonary air retention area of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the intrapulmonary grayscale value unchanged area corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments comprises: respectively calculating multiple grayscale average values corresponding to the intrapulmonary grayscale value unchanged area corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments; determining the intrapulmonary air retention area of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale values of the intrapulmonary grayscale value unchanged area corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments and the corresponding grayscale average values.
[0016] Preferably, the method for determining the intrapulmonary air retention area of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale values of the intrapulmonary grayscale value unchanged area corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments and the corresponding grayscale average value, comprises: respectively configuring the area whose grayscale value corresponding to the intrapulmonary grayscale value unchanged area of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is greater than / less than or equal to the corresponding grayscale average value as the corresponding intrapulmonary air retention area.
[0017] Preferably, if the maximum grayscale value in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, then the areas where the grayscale values corresponding to the areas where the grayscale values in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are greater than or equal to the corresponding grayscale means are respectively configured as the corresponding air retention areas in the lungs; if the minimum grayscale value in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, then the areas where the grayscale values corresponding to the areas where the grayscale values in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are less than or equal to the corresponding grayscale means are respectively configured as the corresponding air retention areas in the lungs.
[0018] Preferably, before obtaining the intrapulmonary air area and the pulmonary ventilation area of the dynamic lung field X-ray image sequence to be processed corresponding to multiple moments, the method for determining the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments includes: obtaining a preset lung field segmentation model and the dynamic chest X-ray image sequence to be processed corresponding to the multiple moments; based on the preset lung field segmentation model, performing left lung field / right lung field / double lung field segmentation on the dynamic chest X-ray image sequence to be processed corresponding to the multiple moments to obtain the corresponding dynamic lung field X-ray image sequence to be processed.
[0019] Preferably, the lung field areas in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are the same; the lung field areas are configured as one or more of a left lung field area, a right lung field area, and a double lung field area.
[0020] Preferably, the training method for the preset registration model includes: obtaining multiple dynamic / static X-ray images for training and their corresponding first preset convolutional neural network for lung field area limitation; using the multiple dynamic / static X-ray images and the first preset convolutional neural network to perform initial training on a second preset convolutional neural network for registration; using the multiple dynamic / static X-ray images and multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and their lung field images and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after the initial training, and determining the second preset convolutional neural network after the enhanced training as the preset registration model.
[0021] According to one aspect of the present disclosure, there is provided a device for determining pulmonary air retention, comprising:
[0022] A projection image determination unit, used to obtain a sequence of dynamic lung field X-ray images to be processed corresponding to multiple moments in at least one respiratory cycle, and determine a projection image corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments;
[0023] a grayscale value unchanged region determining unit, configured to determine, based on the projection image and the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, a grayscale value unchanged region in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments;
[0024] The air retention area unit is used to determine the air retention area in the lung of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale value unchanged area in the lung corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments.
[0025] Preferably, the determination device also includes: a training unit for training the preset registration model; wherein the training unit is used to obtain multiple dynamic / static X-ray images for training and their corresponding first preset convolutional neural network for lung field area limitation; using the multiple dynamic / static X-ray images and the first preset convolutional neural network, initially training the second preset convolutional neural network for registration; using the multiple dynamic / static X-ray images and the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and their lung field images and the first preset convolutional neural network, enhancing training is performed on the second preset convolutional neural network after the initial training, and the second preset convolutional neural network after the enhanced training is determined as the preset registration model.
[0026] Preferably, the use of the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and the lung field area images and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after initial training includes: transforming the multiple dynamic / static X-ray images respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; constructing a plurality of first dynamic / static X-ray image pairs based on each dynamic / static X-ray image and its corresponding first transformed X-ray image; based on the multiple first dynamic / static X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after initial training is trained. The neural network performs a first enhancement training; according to the method of transforming the multiple dynamic / static X-ray images respectively, the lung field area images corresponding to the multiple dynamic / static X-ray images are transformed respectively to obtain a second transformed X-ray image corresponding to each lung field area image; based on each lung field area image and its corresponding second transformed X-ray image, a plurality of second dynamic / static X-ray image pairs are constructed respectively; based on the plurality of second dynamic / static X-ray image pairs and the first preset convolutional neural network, a second enhancement training is performed on the second preset convolutional neural network after the first enhancement training; and the second preset convolutional neural network after the second enhancement training is determined as the preset registration model.
[0027] According to one aspect of the present disclosure, a device for determining pulmonary air retention is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned method for determining pulmonary air retention.
[0028] According to one aspect of the present disclosure, a device for determining pulmonary air retention is provided, comprising: a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above-mentioned method for determining pulmonary air retention when executed by a processor.
[0029] According to one aspect of the present disclosure, a computer program product is provided, comprising a computer program / instruction, which implements the above-mentioned method for determining pulmonary air trapping when executed by a processor.
[0030] According to one aspect of the present disclosure, a medical device is provided, which applies the above-mentioned method for determining pulmonary air retention and / or includes the above-mentioned device for determining pulmonary air retention and / or includes the above-mentioned computer program product.
[0031] In the embodiments of the present disclosure, the present disclosure proposes a technical solution of a method and apparatus for determining pulmonary air retention, a program product, and a medical device to solve the problem that it is difficult to determine the threshold of pulmonary air retention based on chest X-ray (X-ray) images, which greatly affects the determination of pulmonary air retention based on chest X-ray (X-ray) images and is not conducive to precision medicine.
[0032] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
[0033] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0035] Figure 1 A flow chart showing a method for determining pulmonary air trapping according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0037] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0038] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0039] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0040] It can be understood that the various embodiments of the method for determining pulmonary air retention mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.
[0041] In addition, the present disclosure also provides a device for determining pulmonary air retention, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any method for determining pulmonary air retention provided by the present disclosure. The corresponding technical solutions and descriptions can be found in the corresponding records in the part on the method for determining pulmonary air retention, and will not be repeated here.
[0042] Figure 1 A flow chart showing a method for determining pulmonary air retention according to an embodiment of the present disclosure is shown. Figure 1 As shown, the method for determining pulmonary air retention includes: step S101: obtaining a dynamic lung field X-ray image sequence corresponding to multiple moments in at least one respiratory cycle, and determining the projection image corresponding to the dynamic lung field X-ray image sequence corresponding to the multiple moments; step S102: based on the projection image and the dynamic lung field X-ray image sequence corresponding to the multiple moments, determining the grayscale value unchanged region in the lung corresponding to the dynamic lung field X-ray image sequence corresponding to the multiple moments; step S103: based on the grayscale value unchanged region in the lung corresponding to the dynamic lung field X-ray image sequence corresponding to the multiple moments, determining the pulmonary air retention region of the dynamic lung field X-ray image sequence corresponding to the multiple moments. This solves the problem that the threshold of pulmonary air retention based on chest X-ray (X-ray) images is difficult to determine, which greatly affects the determination of pulmonary air retention based on chest X-ray (X-ray) images, and is not conducive to precision medicine.
[0043] Step S101: Acquire a sequence of dynamic lung field X-ray images to be processed corresponding to multiple moments in at least one respiratory cycle, and determine projection images corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments.
[0044] In the embodiments of the present disclosure and other possible embodiments, the dynamic lung field X-ray image sequences to be analyzed (to be processed) corresponding to the multiple moments are from the same human body; the same human body in the free breathing process is photographed using a DR device to obtain the dynamic lung field X-ray image sequences to be analyzed (to be processed) corresponding to the multiple moments.
[0045] In an embodiment of the present disclosure, the method for determining the projection image corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments includes: using a preset registration model to respectively register other dynamic lung field X-ray images to be processed other than a set fixed image corresponding to a certain moment in the sequence of dynamic lung field X-ray images to be processed corresponding to multiple moments in at least one respiratory cycle to the set fixed image to obtain the corresponding multiple first lung field X-ray registered images; performing maximum grayscale value projection / minimum grayscale value projection on the set fixed image and the multiple first lung field X-ray registered images to obtain projection images corresponding to areas where air may exist in the lungs; or, performing maximum grayscale value projection / minimum grayscale value projection on the multiple first lung field X-ray registered images to obtain projection images corresponding to areas where air may exist in the lungs.
[0046] Among them, in an embodiment of the present disclosure, if the maximum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; or, the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; if the minimum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; or, the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs.
[0047] In an embodiment of the present disclosure, if the maximum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; or, the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; if the minimum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; or, the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs.
[0048] In an embodiment of the present disclosure, a method for training the preset registration model includes: obtaining multiple dynamic / static X-ray images for training and their corresponding first preset convolutional neural network for lung field area limitation; using the multiple dynamic / static X-ray images and the first preset convolutional neural network to perform initial training on a second preset convolutional neural network for registration; using the multiple dynamic / static X-ray images and multiple dynamic / static X-ray image pairs corresponding to their lung field images and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after the initial training, and determining the second preset convolutional neural network after the enhanced training as the preset registration model.
[0049] In the embodiments of the present disclosure and other possible embodiments, the use of the multiple dynamic / static X-ray images and the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and the lung field area images and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after initial training includes: transforming the multiple dynamic / static X-ray images respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; constructing multiple first dynamic / static X-ray image pairs based on each dynamic / static X-ray image and its corresponding first transformed X-ray image; based on the multiple first dynamic / static X-ray image pairs and the first preset convolutional neural network, the initially trained X-ray image is trained. The second preset convolutional neural network after the first enhancement training is subjected to the first enhancement training; the lung field area images corresponding to the multiple dynamic / static X-ray images are transformed respectively according to the method of transforming the multiple dynamic / static X-ray images respectively, so as to obtain the second transformed X-ray image corresponding to each lung field area image; a plurality of second dynamic / static X-ray image pairs are constructed based on each lung field area image and its corresponding second transformed X-ray image respectively; based on the plurality of second dynamic / static X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after the first enhancement training is subjected to the second enhancement training; and the second preset convolutional neural network after the second enhancement training is determined as the preset registration model.
[0050] In the embodiments of the present disclosure and other possible embodiments, the dynamic X-ray image sequence to be registered (dynamic lung field X-ray image sequence to be analyzed / processed corresponding to multiple moments) and the multiple dynamic / static X-ray images used for training can be configured as two-dimensional X-ray images taken by a DR device; wherein the dynamic X-ray image sequence comes from the same human body; similarly, the multiple dynamic X-ray images used for training come from the same human body; and the multiple dynamic X-ray images used for training come from different human bodies.
[0051] In the embodiments of the present disclosure and other possible embodiments, the dynamic X-ray image sequence to be registered can be configured as dynamic X-ray images corresponding to the same human body at multiple different moments; the multiple dynamic / static X-ray images used for training can be configured as static X-ray images corresponding to different human bodies at a certain moment. For example, the dynamic X-ray image sequence to be registered can be configured as dynamic X-ray images corresponding to multiple different moments during breathing / breath-holding; the multiple dynamic / static X-ray images used for training can be configured as static X-ray images corresponding to a certain moment during breathing / breath-holding. Among them, the lung field or lung field area can be configured as the left lung field, the right lung field, or the entire lung field (bilateral lung field) including the left lung field and the right lung field.
[0052] In the embodiments of the present disclosure and other possible embodiments, the second preset convolutional neural network after the enhanced training is used to register any two lung field area images in the dynamic X-ray image sequence to be registered, and the corresponding two lung field area images are respectively configured as an image pair (a pair of images) corresponding to the maximum lung field area area and the minimum lung field area area in the lung field area image. For example, in the embodiments of the present disclosure and other possible embodiments, the lung field area can be configured as the left lung field, the right lung field, or the entire lung field including the lung field and the right lung field; therefore, based on the second preset convolutional neural network after the enhanced training, the two lung field area images corresponding to the registration of any two lung field area images in the dynamic X-ray image sequence to be registered are respectively configured as an image pair corresponding to the maximum left lung field area / maximum right lung field area / maximum area of the entire lung field including the lung field and the right lung field, and the minimum left lung field area, the minimum area of the right lung field, or the minimum area of the entire lung field including the lung field and the right lung field in the lung field area image.
[0053] In the embodiments of the present disclosure and other possible embodiments, a dynamic X-ray image sequence to be registered, a plurality of dynamic / static X-ray images for training, and a corresponding first preset convolutional neural network for lung field area restriction are obtained. Before obtaining the first preset convolutional neural network for lung field area restriction corresponding to the plurality of dynamic / static X-ray images for training, a third preset convolutional neural network or a preset segmentation model for lung field area segmentation is used to perform lung field area segmentation on the plurality of dynamic / static X-ray images respectively, and a plurality of lung field area mask images corresponding to the plurality of dynamic / static X-ray images are obtained; and the first preset convolutional neural network for lung field area restriction is trained using the plurality of lung field area mask images.
[0054] In the embodiments of the present disclosure and other possible embodiments, the third preset convolutional neural network (preset lung field segmentation model) used for the lung field area segmentation can be configured as one or more of FCN, Unet, Unet++, SegNet, RefineNet, nnUnet or their improved convolutional neural networks.
[0055] For example, in the embodiments of the present disclosure and other possible embodiments, the lung field region can be configured as the left lung field, the right lung field, or the entire lung field (bilateral lung field) including the left lung field and the right lung field. Furthermore, the third preset convolutional neural network or preset segmentation model used for the segmentation of the lung field region can adopt the technical solutions corresponding to the lung area segmentation, lung disease assessment method and device, electronic device and storage medium (2023108100929), lung field image segmentation method, device and storage medium (2023106887446) previously disclosed by our company, or other existing lung field / lung area segmentation models.
[0056] In the embodiments of the present disclosure and other possible embodiments, before obtaining the first preset convolutional neural network for lung field area limitation corresponding to the multiple dynamic / static X-ray images for training, the lung field area segmentation is performed on the multiple dynamic / static X-ray images respectively using the third preset convolutional neural network or preset segmentation model for the lung field area segmentation to obtain the multiple lung field area mask images corresponding to the multiple dynamic / static X-ray images; the first preset convolutional neural network is trained using the multiple lung field area mask images corresponding to the dynamic / static X-ray images.
[0057] Among them, in the embodiments of the present disclosure and other possible embodiments, the first preset convolutional neural network for lung field area limitation can be configured as an autoencoder Autoencoder corresponding to the anatomical constraint registration network AC RegNet or its improvement, or a network structure with Unet or based on improved Unet as the backbone, or a nn Unet network architecture.
[0058] At the same time, in the embodiments of the present disclosure and other possible embodiments, the present disclosure proposes a deep multi-scale attention encoder (first preset convolutional neural network) for lung field area restriction, in which a deep contextual attention block (DCA Block) is configured to better encode and represent the multiple lung field area mask images. Specifically, the deep multi-scale attention encoder (first preset convolutional neural network) includes: multiple parallel first convolution modules corresponding to convolution kernels of different sizes, a second convolution module connected to the output end of one convolution module in the multiple parallel first convolution modules, a splicing module connected to the output ends of other convolution modules in the multiple parallel first convolution modules, a deep contextual attention module connected to the output end of the splicing module, and a pixel-level addition module connected to the output end of the deep contextual attention module and the output end of the second convolution module. Among them, the corresponding convolution kernels of different sizes are cardinality multiples of 1×1.
[0059] Among them, in the embodiments of the present disclosure and other possible embodiments, further, the output end of the pixel-level addition model is also provided with a first normalization module (BN) and a first nonlinear module (ReLu) connected to its output end. At the same time, the output ends of the multiple parallel first convolution modules are respectively configured with multiple second normalization modules (BN) and second nonlinear modules (ReLu) connected to their output ends. Specifically, a second normalization module (BN) and a second nonlinear module (ReLu) connected to its output end are provided between the output ends of the multiple parallel first convolution modules and the second convolution modules; a second normalization module (BN) and a second nonlinear module (ReLu) connected to its output end are respectively provided between the output ends of other convolution modules in the multiple parallel first convolution modules and the splicing module.
[0060] In the embodiments of the present disclosure and other possible embodiments, multiple parallel first convolution modules corresponding to convolution kernels of different sizes are used to perform multi-scale changes on the multiple lung field area mask images respectively to obtain corresponding multiple multi-scale mask images; a second convolution module is used to expand the number of channels of a multi-scale mask image among the multiple multi-scale mask images according to a set number of channels to obtain a corresponding set channel multi-scale mask image; the deep context attention module is used to perform deep text attention processing on the other multiple multi-scale mask images (except the multi-scale mask image corresponding to the channel expansion) to obtain a corresponding deep text attention mask image; the pixel-level addition module is used to superimpose the set channel multi-scale mask image and the deep text attention mask image to obtain a final encoding feature map.
[0061] Among them, in the embodiment of the present disclosure and other possible embodiments, the method for determining the set number of channels includes: obtaining the number corresponding to the multiple parallel first convolution modules; subtracting 1 from the number to obtain the set number of channels.
[0062] In the embodiments of the present disclosure and other possible embodiments, those skilled in the art may configure the number of the plurality of parallel first convolution modules and the corresponding convolution kernels of different sizes, and the convolution kernels corresponding to the second convolution module as needed. For example, the number of the plurality of parallel first convolution modules may be configured as 4, and the corresponding convolution kernels of different sizes are 1×1, 3×3, 5×5, and 7×7 respectively; the convolution kernel corresponding to the second convolution module is configured as 1×1.
[0063] In the embodiment of the present disclosure and other possible embodiments, the plurality of dynamic / static X-ray images and the first preset convolutional neural network are used to perform initial training on the second preset convolutional neural network used for registration.
[0064] In the embodiments of the present disclosure and other possible embodiments, the second preset convolutional neural network used for registration can be configured as one or more of the vector convolutional network VectorCNN corresponding to AC RegNet or its improvement, or the convolutional neural network framework corresponding to the VoxelMorph model or its improvement, or the deep alignment network (DeepAlignmentNetwork) or its improvement, etc.
[0065] In the embodiments of the present disclosure and other possible embodiments, the method of using the multiple dynamic / static X-ray images and the first preset convolutional neural network to initially train the second preset convolutional neural network used for registration includes: using the multiple dynamic / static X-ray images to construct a dynamic / static X-ray image pair set; using the dynamic / static X-ray image pair set and the first preset convolutional neural network to initially train the second preset convolutional neural network used for registration; wherein, the method of using the multiple dynamic / static X-ray images to construct a dynamic / static X-ray image pair set includes: respectively extracting multiple name / ID information corresponding to the multiple dynamic / static X-ray images; respectively pairing the multiple dynamic / static X-ray images with different name / ID information to construct a dynamic / static X-ray image pair set.
[0066] In the embodiments of the present disclosure and other possible embodiments, the method for initially training the second preset convolutional neural network for registration using the dynamic / static X-ray image pair set and the first preset convolutional neural network includes: obtaining a plurality of lung field area mask images corresponding to the dynamic / static X-ray image pair set; determining a corresponding third training deformation field based on the fixed image and floating image of each pair of images in the dynamic / static X-ray image pair set and the second preset convolutional neural network to be initially trained; determining a corresponding fifth deformation image based on the floating image in each pair of images in the dynamic / static X-ray image pair set and the corresponding third training deformation field; determining a corresponding fifth deformation image based on the fifth deformation image corresponding to the floating image of each pair of images and the fixed image of each pair of images ... third training deformation field based on the fixed image of each pair of images; determining a corresponding fifth deformation image based on the fifth deformation image corresponding to the floating image of each pair of images and the fixed image of each pair of images; determining a corresponding third training deformation field based on the fixed image of each pair of images; determining a corresponding third training deformation field based on the fixed image of each pair of images; determining a corresponding third training deformation field based on the fixed image of each pair of images; The seventh loss is calculated based on the image; the corresponding sixth deformed image is determined based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding third training deformation field; the eighth loss is calculated based on the sixth deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; the sixth deformed image and the lung field area mask image corresponding to the fixed image are encoded using the first preset convolutional neural network to obtain a fifth encoded feature map and a sixth encoded feature map; and the eighth loss is calculated based on the fifth encoded feature map and the sixth encoded feature map; based on the sixth loss, the seventh loss and the eighth loss, the parameters of the second preset convolutional neural network of the initial training are adjusted to complete the initial training of the second preset convolutional neural network.
[0067] In the embodiments of the present disclosure and other possible embodiments, the loss function used to calculate the loss can be configured as one or more of the existing loss functions such as the cross entropy loss function, the mean squared voxel differece loss function of the image grayscale, the cross-correlation loss function, the mutual information loss function, and the normalized cross correlation loss function.
[0068] In the embodiments of the present disclosure and other possible embodiments, the second preset convolutional neural network after initial training is enhanced by using the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and their lung field area images and the first preset convolutional neural network.
[0069] In the embodiments of the present disclosure and other possible embodiments, the method of performing enhanced training on the second preset convolutional neural network after initial training using the multiple dynamic / static X-ray images and the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and the lung field area images and the first preset convolutional neural network includes: transforming the multiple dynamic / static X-ray images respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; constructing multiple first dynamic / static X-ray image pairs based on each dynamic / static X-ray image and its corresponding first transformed X-ray image respectively; performing a first enhanced training on the second preset convolutional neural network after initial training based on the multiple first dynamic / static X-ray image pairs and the first preset convolutional neural network; transforming the lung field area images corresponding to the multiple dynamic / static X-ray images respectively according to the method of transforming the multiple dynamic / static X-ray images respectively to obtain a second transformed X-ray image corresponding to each lung field area image. y image; constructing a plurality of second dynamic / static X-ray image pairs based on each lung field area image and its corresponding second transformed X-ray image; performing a second enhanced training on the second preset convolutional neural network after the first enhanced training based on the plurality of second dynamic / static X-ray image pairs and the first preset convolutional neural network; determining the second preset convolutional neural network after the second enhanced training as the preset registration model; further, using the preset registration model, respectively registering the other dynamic lung field X-ray images to be processed except the set fixed image corresponding to a certain moment in the sequence of dynamic lung field X-ray images to be processed corresponding to multiple moments in at least one respiratory cycle to the set fixed image, to obtain the corresponding plurality of first lung field X-ray registered images; using the preset registration model, respectively registering the sequence of dynamic lung field X-ray images to be processed corresponding to the plurality of moments or other dynamic lung field X-ray images to be processed except the set fixed image with the projection image, to obtain a plurality of second lung field X-ray registered images.
[0070] In the embodiments of the present disclosure and other possible embodiments, the dynamic X-ray image sequence to be registered (dynamic lung field X-ray image sequence to be analyzed / processed corresponding to multiple moments) and the multiple dynamic / static X-ray images used for training can be configured as two-dimensional X-ray images taken by a DR device; wherein the dynamic X-ray image sequence comes from the same human body; similarly, the multiple dynamic X-ray images used for training come from the same human body; and the multiple dynamic X-ray images used for training come from different human bodies.
[0071] In the embodiments of the present disclosure and other possible embodiments, the dynamic X-ray image sequence to be registered can be configured as dynamic X-ray images corresponding to the same human body at multiple different moments; the multiple dynamic / static X-ray images used for training can be configured as static X-ray images corresponding to different human bodies at a certain moment. For example, the dynamic X-ray image sequence to be registered can be configured as dynamic X-ray images corresponding to multiple different moments during breathing / breath-holding; the multiple dynamic / static X-ray images used for training can be configured as static X-ray images corresponding to a certain moment during breathing / breath-holding. Among them, the lung field or lung field area can be configured as the left lung field, the right lung field, or the entire lung field (bilateral lung field) including the left lung field and the right lung field.
[0072] In the embodiments of the present disclosure and other possible embodiments, the second preset convolutional neural network after the enhanced training is used to register any two lung field area images in the dynamic X-ray image sequence to be registered, and the corresponding two lung field area images are respectively configured as an image pair (a pair of images) corresponding to the maximum lung field area area and the minimum lung field area area in the lung field area image. For example, in the embodiments of the present disclosure and other possible embodiments, the lung field area can be configured as the left lung field, the right lung field, or the entire lung field including the lung field and the right lung field; therefore, based on the second preset convolutional neural network after the enhanced training, the two lung field area images corresponding to the registration of any two lung field area images in the dynamic X-ray image sequence to be registered are respectively configured as an image pair corresponding to the maximum left lung field area / maximum right lung field area / maximum area of the entire lung field including the lung field and the right lung field, and the minimum left lung field area, the minimum area of the right lung field, or the minimum area of the entire lung field including the lung field and the right lung field in the lung field area image.
[0073] In the embodiments of the present disclosure and other possible embodiments, a dynamic X-ray image sequence to be registered, a plurality of dynamic / static X-ray images for training, and a corresponding first preset convolutional neural network for lung field area restriction are obtained. Before obtaining the first preset convolutional neural network for lung field area restriction corresponding to the plurality of dynamic / static X-ray images for training, a third preset convolutional neural network or a preset segmentation model for lung field area segmentation is used to perform lung field area segmentation on the plurality of dynamic / static X-ray images respectively, and a plurality of lung field area mask images corresponding to the plurality of dynamic / static X-ray images are obtained; and the first preset convolutional neural network for lung field area restriction is trained using the plurality of lung field area mask images.
[0074] In the embodiments of the present disclosure and other possible embodiments, the third preset convolutional neural network used for the lung field area segmentation can be configured as one or more of FCN, Unet, Unet++, SegNet, RefineNet, nn Unet or their improved convolutional neural networks.
[0075] For example, in the embodiments of the present disclosure and other possible embodiments, the lung field region can be configured as the left lung field, the right lung field, or the entire lung field (bilateral lung field) including the left lung field and the right lung field. Furthermore, the third preset convolutional neural network or preset segmentation model used for the segmentation of the lung field region can adopt the technical solutions corresponding to the lung area segmentation, lung disease assessment method and device, electronic device and storage medium (2023108100929), lung field image segmentation method, device and storage medium (2023106887446) previously disclosed by our company, or other existing lung field / lung area segmentation models.
[0076] In the embodiments of the present disclosure and other possible embodiments, before obtaining the first preset convolutional neural network for lung field area limitation corresponding to the multiple dynamic / static X-ray images for training, the lung field area segmentation is performed on the multiple dynamic / static X-ray images respectively using the third preset convolutional neural network or preset segmentation model for the lung field area segmentation to obtain the multiple lung field area mask images corresponding to the multiple dynamic / static X-ray images; the first preset convolutional neural network is trained using the multiple lung field area mask images corresponding to the dynamic / static X-ray images.
[0077] Among them, in the embodiments of the present disclosure and other possible embodiments, the first preset convolutional neural network for lung field area limitation can be configured as an autoencoder Autoencoder corresponding to the anatomical constraint registration network AC RegNet or its improvement, or a network structure with Unet or based on improved Unet as the backbone, or a nn Unet network architecture.
[0078] At the same time, in the embodiments of the present disclosure and other possible embodiments, the present disclosure proposes a deep multi-scale attention encoder (first preset convolutional neural network) for lung field area restriction, in which a deep contextual attention block (DCA Block) is configured to better encode and represent the multiple lung field area mask images. Specifically, the deep multi-scale attention encoder (first preset convolutional neural network) includes: multiple parallel first convolution modules corresponding to convolution kernels of different sizes, a second convolution module connected to the output end of one convolution module in the multiple parallel first convolution modules, a splicing module connected to the output ends of other convolution modules in the multiple parallel first convolution modules, a deep contextual attention module connected to the output end of the splicing module, and a pixel-level addition module connected to the output end of the deep contextual attention module and the output end of the second convolution module. Among them, the corresponding convolution kernels of different sizes are cardinality multiples of 1×1.
[0079] Among them, in the embodiments of the present disclosure and other possible embodiments, further, the output end of the pixel-level addition model is also provided with a first normalization module (BN) and a first nonlinear module (ReLu) connected to its output end. At the same time, the output ends of the multiple parallel first convolution modules are respectively configured with multiple second normalization modules (BN) and second nonlinear modules (ReLu) connected to their output ends. Specifically, a second normalization module (BN) and a second nonlinear module (ReLu) connected to its output end are provided between the output ends of the multiple parallel first convolution modules and the second convolution modules; a second normalization module (BN) and a second nonlinear module (ReLu) connected to its output end are respectively provided between the output ends of other convolution modules in the multiple parallel first convolution modules and the splicing module.
[0080] In the embodiments of the present disclosure and other possible embodiments, multiple parallel first convolution modules corresponding to convolution kernels of different sizes are used to perform multi-scale changes on the multiple lung field area mask images respectively to obtain corresponding multiple multi-scale mask images; a second convolution module is used to expand the number of channels of a multi-scale mask image among the multiple multi-scale mask images according to a set number of channels to obtain a corresponding set channel multi-scale mask image; the deep context attention module is used to perform deep text attention processing on the other multiple multi-scale mask images (except the multi-scale mask image corresponding to the channel expansion) to obtain a corresponding deep text attention mask image; the pixel-level addition module is used to superimpose the set channel multi-scale mask image and the deep text attention mask image to obtain a final encoding feature map.
[0081] Among them, in the embodiment of the present disclosure and other possible embodiments, the method for determining the set number of channels includes: obtaining the number corresponding to the multiple parallel first convolution modules; subtracting 1 from the number to obtain the set number of channels.
[0082] In the embodiments of the present disclosure and other possible embodiments, those skilled in the art may configure the number of the plurality of parallel first convolution modules and the corresponding convolution kernels of different sizes, and the convolution kernels corresponding to the second convolution module as needed. For example, the number of the plurality of parallel first convolution modules may be configured as 4, and the corresponding convolution kernels of different sizes are 1×1, 3×3, 5×5, and 7×7 respectively; the convolution kernel corresponding to the second convolution module is configured as 1×1.
[0083] In the embodiment of the present disclosure and other possible embodiments, the plurality of dynamic / static X-ray images and the first preset convolutional neural network are used to perform initial training on the second preset convolutional neural network used for registration.
[0084] In the embodiments of the present disclosure and other possible embodiments, the second preset convolutional neural network used for registration can be configured as one or more of the vector convolutional network VectorCNN corresponding to AC RegNet or its improvement, or the convolutional neural network framework corresponding to the VoxelMorph model or its improvement, or the deep alignment network (DeepAlignmentNetwork) or its improvement, etc.
[0085] In the embodiments of the present disclosure and other possible embodiments, the method of using the multiple dynamic / static X-ray images and the first preset convolutional neural network to initially train the second preset convolutional neural network used for registration includes: using the multiple dynamic / static X-ray images to construct a dynamic / static X-ray image pair set; using the dynamic / static X-ray image pair set and the first preset convolutional neural network to initially train the second preset convolutional neural network used for registration; wherein, the method of using the multiple dynamic / static X-ray images to construct a dynamic / static X-ray image pair set includes: respectively extracting multiple name / ID information corresponding to the multiple dynamic / static X-ray images; respectively pairing the multiple dynamic / static X-ray images with different name / ID information to construct a dynamic / static X-ray image pair set.
[0086] In the embodiments of the present disclosure and other possible embodiments, the method for initially training the second preset convolutional neural network for registration using the dynamic / static X-ray image pair set and the first preset convolutional neural network includes: obtaining a plurality of lung field area mask images corresponding to the dynamic / static X-ray image pair set; determining a corresponding third training deformation field based on the fixed image and floating image of each pair of images in the dynamic / static X-ray image pair set and the second preset convolutional neural network to be initially trained; determining a corresponding fifth deformation image based on the floating image in each pair of images in the dynamic / static X-ray image pair set and the corresponding third training deformation field; determining a corresponding fifth deformation image based on the fifth deformation image corresponding to the floating image of each pair of images and the fixed image of each pair of images ... third training deformation field based on the fixed image of each pair of images; determining a corresponding fifth deformation image based on the fifth deformation image corresponding to the floating image of each pair of images and the fixed image of each pair of images; determining a corresponding third training deformation field based on the fixed image of each pair of images; determining a corresponding third training deformation field based on the fixed image of each pair of images; determining a corresponding third training deformation field based on the fixed image of each pair of images; The seventh loss is calculated based on the image; the corresponding sixth deformed image is determined based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding third training deformation field; the eighth loss is calculated based on the sixth deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; the sixth deformed image and the lung field area mask image corresponding to the fixed image are encoded using the first preset convolutional neural network to obtain a fifth encoded feature map and a sixth encoded feature map; and the eighth loss is calculated based on the fifth encoded feature map and the sixth encoded feature map; based on the sixth loss, the seventh loss and the eighth loss, the parameters of the second preset convolutional neural network of the initial training are adjusted to complete the initial training of the second preset convolutional neural network.
[0087] In the embodiments of the present disclosure and other possible embodiments, the loss function used to calculate the loss can be configured as one or more of the existing loss functions such as the cross entropy loss function, the mean squared voxel differece loss function of the image grayscale, the cross-correlation loss function, the mutual information loss function, and the normalized cross correlation loss function.
[0088] In the embodiments of the present disclosure and other possible embodiments, the second preset convolutional neural network after initial training is enhanced by using the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and their lung field area images and the first preset convolutional neural network.
[0089] In the embodiments of the present disclosure and other possible embodiments, the method of using the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and the lung field area images and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after initial training includes: transforming the multiple dynamic / static X-ray images respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; constructing multiple first dynamic / static X-ray image pairs based on each dynamic / static X-ray image and its corresponding first transformed X-ray image; based on the multiple first dynamic / static X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after initial training is trained. Perform the first enhanced training; transform the lung field area images corresponding to the multiple dynamic / static X-ray images respectively according to the method of transforming the multiple dynamic / static X-ray images respectively, and obtain the second transformed X-ray image corresponding to each lung field area image; construct multiple second dynamic / static X-ray image pairs based on each lung field area image and its corresponding second transformed X-ray image respectively; perform the second enhanced training on the second preset convolutional neural network after the first enhanced training based on the multiple second dynamic / static X-ray image pairs and the first preset convolutional neural network; and then, based on the second preset convolutional neural network after the second enhanced training, align any two lung field area images in the dynamic X-ray image sequence to be aligned. Specifically, the second preset convolutional neural network after the second enhanced training is determined as the preset alignment model; and then, using the preset alignment model, align the dynamic lung field X-ray images to be analyzed corresponding to adjacent moments or adjacent moments of a set time interval in the dynamic lung field X-ray image sequence to be analyzed corresponding to the multiple moments, and obtain the corresponding multiple lung field X-ray alignment images.
[0090] In the embodiments of the present disclosure and other possible embodiments, the transformation of the multiple dynamic / static X-ray images respectively or the transformation of the lung field area images corresponding to the multiple dynamic / static X-ray images respectively according to the method of transforming the multiple dynamic / static X-ray images respectively or the transformation used by the following registration method or registration device at least includes: affine transformation. The affine transformation may include: one or more of scaling, reflection, shear mapping, etc.; the scaling may include one or more of scale, translation, rotation, etc.
[0091] In the embodiments of the present disclosure and other possible embodiments, the plurality of dynamic / static X-ray images are transformed respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; a plurality of first dynamic / static X-ray image pairs are constructed based on each dynamic / static X-ray image and its corresponding first transformed X-ray image; based on the plurality of first dynamic / static X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after the initial training is subjected to a first enhancement training; according to the method of transforming the plurality of dynamic / static X-ray images respectively, the plurality of first dynamic / static X-ray image pairs are subjected to a first enhancement training; The lung field area images corresponding to the dynamic / static X-ray images are transformed to obtain a second transformed X-ray image corresponding to each lung field area image; a plurality of second dynamic / static X-ray image pairs are constructed based on each lung field area image and its corresponding second transformed X-ray image; based on the plurality of second dynamic / static X-ray image pairs and the first preset convolutional neural network, a second enhanced training is performed on the second preset convolutional neural network after the first enhanced training; and further, based on the second preset convolutional neural network after the second enhanced training, any two lung field area images in the dynamic X-ray image sequence to be registered are registered.
[0092] In the embodiment of the present disclosure and other possible embodiments, the method for performing a first enhanced training on the second preset convolutional neural network after the initial training based on the multiple first dynamic / static X-ray image pairs and the first preset convolutional neural network includes: acquiring the multiple first dynamic / static X-ray image pairs and their corresponding multiple lung field area mask image pairs; determining the corresponding first training deformation field based on the fixed image and the floating image of each pair of images in the multiple first dynamic / static X-ray image pairs and the second preset convolutional neural network after the initial training; determining the corresponding first deformation image based on the floating image in each pair of images and the corresponding first training deformation field; calculating the first loss vector based on the first deformation image corresponding to the floating image of each pair of images and the fixed image. loss; determining the corresponding second deformed image based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding first training deformation field; calculating the second loss based on the second deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; encoding the second deformed image and the lung field area mask image corresponding to the fixed image using the first preset convolutional neural network to obtain a first encoded feature map and a second encoded feature map; and calculating the third loss based on the first encoded feature map and the second encoded feature map; adjusting the parameters of the second preset convolutional neural network after the initial training based on the first loss, the second loss and the third loss, and completing the first enhanced training of the second preset convolutional neural network after the initial training.
[0093] In the embodiments of the present disclosure and other possible embodiments, before transforming the lung field area images corresponding to the multiple dynamic / static X-ray images respectively to obtain the second transformed X-ray image corresponding to each lung field area image, the method of respectively determining the lung field area images corresponding to the multiple dynamic / static X-ray images includes: respectively obtaining the lung field area mask images corresponding to the multiple dynamic / static X-ray images, and configuring the mask value corresponding to the lung field area mask image as a set value; based on the configured lung field area mask image and the corresponding multiple dynamic / static X-ray images, determining the lung field area images corresponding to the multiple dynamic / static X-ray images; wherein the set value can be configured to 1 or other values.
[0094] In the embodiments of the present disclosure and other possible embodiments, the method for determining the lung field area image corresponding to the multiple dynamic / static X-ray images based on the configured lung field area mask image and the multiple dynamic / static X-ray images corresponding to it includes: multiplying (pixel level multiplication) the configured lung field area mask image with the multiple dynamic / static X-ray images corresponding to it to determine the lung field area image corresponding to the multiple dynamic / static X-ray images.
[0095] In an embodiment of the present disclosure, the method for performing a second enhanced training on the second preset convolutional neural network after the first enhanced training based on the multiple second dynamic / static X-ray image pairs and the first preset convolutional neural network includes: acquiring the multiple second dynamic / static X-ray image pairs and their corresponding multiple lung field area mask image pairs; determining the corresponding second training deformation field based on the fixed image and the floating image of each pair of images in the multiple second dynamic / static X-ray image pairs and the second preset convolutional neural network of the first enhanced training; determining the corresponding third deformation image based on the floating image in each pair of images and the corresponding second training deformation field; calculating the fourth loss based on the third deformation image corresponding to the floating image of each pair of images and the fixed image; respectively. Based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding second training deformation field, a corresponding fourth deformed image is determined; based on the fourth deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image, a fifth loss is calculated; the fourth deformed image and the lung field area mask image corresponding to the fixed image are respectively encoded using the first preset convolutional neural network to obtain a third encoded feature map and a fourth encoded feature map; and a sixth loss is calculated based on the third encoded feature map and the fourth encoded feature map; based on the fourth loss, the fifth loss and the sixth loss, the parameters of the second preset convolutional neural network after the first enhanced training are adjusted to complete the second enhanced training of the second preset convolutional neural network after the first training.
[0096] In the embodiments of the present disclosure and other possible embodiments, before acquiring the multiple lung field area mask image pairs corresponding to the multiple first dynamic / static X-ray image pairs, the lung field area segmentation is performed on the multiple first dynamic / static X-ray image pairs respectively using a third preset convolutional neural network or a preset segmentation model for the lung field area segmentation to obtain the multiple lung field area mask image pairs corresponding to the multiple dynamic / static X-ray images.
[0097] In the embodiments of the present disclosure and other possible embodiments, the multiple dynamic / static X-ray images are transformed respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; multiple first dynamic / static X-ray image pairs are constructed based on each dynamic / static X-ray image and its corresponding first transformed X-ray image; based on the multiple first dynamic / static X-ray image pairs and the first preset convolutional neural network, before the first enhanced training of the second preset convolutional neural network after the initial training, it also includes: determining that the multiple dynamic / static X-ray images for training are configured as multiple dynamic X-ray images or as dynamic X-ray images or as multiple dynamic X-ray images and dynamic X-ray images.
[0098] In the embodiments of the present disclosure and other possible embodiments, if the multiple dynamic / static X-ray images used for training are configured as static X-ray images, the multiple static X-ray images are transformed respectively to obtain a first transformed X-ray image corresponding to each static X-ray image; based on each static X-ray image and its corresponding first transformed X-ray image, a plurality of first static X-ray image pairs are constructed; based on the plurality of first static X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after the initial training is subjected to a first enhanced training; and then, according to the plurality of static X-ray images being subjected to the first enhanced training, the plurality of static X-ray images are subjected to the first enhanced training. The invention discloses a method for transforming the lung field area images corresponding to the multiple static X-ray images, respectively, to obtain a second static transformed X-ray image corresponding to each lung field area image; respectively, based on each lung field area image and its corresponding second static transformed X-ray image, construct a plurality of second static X-ray image pairs; based on the plurality of second static X-ray image pairs and the first preset convolutional neural network, perform a second enhancement training on the second preset convolutional neural network after the first enhancement training; and further, based on the second preset convolutional neural network after the second enhancement training, perform registration on any two lung field area images in the dynamic X-ray image sequence to be registered.
[0099] In the embodiments of the present disclosure and other possible embodiments, the method for performing a first enhanced training on the second preset convolutional neural network after the initial training based on the multiple first static X-ray image pairs and the first preset convolutional neural network includes: obtaining the multiple first static X-ray image pairs and their corresponding multiple lung field area mask image pairs; determining the corresponding first training deformation field based on the fixed image and floating image of each pair of images in the multiple first static X-ray image pairs and the second preset convolutional neural network after the initial training; determining the corresponding first deformed image based on the floating image in each pair of images and the corresponding first training deformation field; calculating the first loss based on the first deformed image corresponding to the floating image of each pair of images and the fixed image; and calculating the first loss based on the fixed image and the first training deformation field. Determine the corresponding second deformed image based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding first training deformation field; calculate the second loss based on the second deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; encode the second deformed image and the lung field area mask image corresponding to the fixed image using the first preset convolutional neural network to obtain a first encoding feature map and a second encoding feature map; and calculate the third loss based on the first encoding feature map and the second encoding feature map; adjust the parameters of the second preset convolutional neural network after the initial training based on the first loss, the second loss and the third loss, and complete the first enhanced training of the second preset convolutional neural network after the initial training.
[0100] In the embodiments of the present disclosure and other possible embodiments, if the multiple dynamic / static X-ray images used for training are configured as dynamic X-ray images, the first enhanced training further includes: first enhanced training and second enhanced training; specifically, the multiple dynamic X-ray images are transformed respectively to obtain a first transformed X-ray image corresponding to each dynamic X-ray image; based on each dynamic X-ray image and its corresponding first transformed X-ray image, a plurality of first dynamic X-ray image pairs are constructed; based on the plurality of first dynamic X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after the initial training is subjected to first enhanced training; thereafter, a set of dynamic X-ray image pairs is constructed using the multiple dynamic X-ray images; the second preset convolutional neural network used for the first enhanced training is subjected to second enhanced training using the dynamic X-ray image pair set and the first preset convolutional neural network, thereby completing the first enhanced training of the second preset convolutional neural network. Among them, the method of constructing a dynamic X-ray image pair set using the multiple dynamic X-ray images includes: respectively extracting multiple name / ID information corresponding to the multiple dynamic X-ray images; respectively pairing the multiple dynamic X-ray images with different name / ID information to construct a dynamic X-ray image pair set.
[0101] In the embodiments of the present disclosure and other possible embodiments, the method for performing a first enhanced training on the second preset convolutional neural network after the initial training based on the multiple first dynamic X-ray image pairs and the first preset convolutional neural network includes: acquiring the multiple first dynamic X-ray image pairs and their corresponding multiple lung field area mask image pairs; determining the corresponding first deformation field based on the fixed image and the floating image of each pair of images in the multiple first dynamic X-ray image pairs and the second preset convolutional neural network after the initial training; determining the corresponding first training deformation image based on the floating image in each pair of images and the corresponding first deformation field; calculating the first training loss based on the first training deformation image corresponding to the floating image of each pair of images and the fixed image; and calculating the first training loss based on each pair of images. The invention discloses a method for enhancing the image quality of a lung field region by using a lung field area mask image corresponding to a floating image in the image and a corresponding first training deformation field. The method comprises the following steps: determining a corresponding second training deformation image based on a lung field area mask image corresponding to a floating image in the image and a corresponding first training deformation field; calculating a second training loss based on the second training deformation image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; encoding the second training deformation image and the lung field area mask image corresponding to the fixed image by using the first preset convolutional neural network respectively to obtain a first encoding image and a second encoding image; and calculating a third training loss based on the first encoding image and the second encoding image; adjusting the parameters of the second preset convolutional neural network after the initial training based on the first training loss, the second training loss and the third training loss, and completing the first enhanced training of the second preset convolutional neural network after the initial training.
[0102] In the embodiments of the present disclosure and other possible embodiments, the method of performing second enhanced training on the second preset convolutional neural network used for the first enhanced training using the dynamic X-ray image pair set and the first preset convolutional neural network includes: obtaining the dynamic X-ray image pair set and its corresponding multiple lung field area mask image pairs; determining the corresponding second deformation field based on the fixed image and floating image of each pair of images in the dynamic X-ray image pair set and the second preset convolutional neural network after the first enhanced training; determining the corresponding third training deformed image based on the floating image in each pair of images and the corresponding second deformation field; calculating the fourth training loss based on the third training deformed image corresponding to the floating image of each pair of images and the fixed image; and calculating the fourth training loss based on each pair of images. The invention relates to a method for obtaining a first image of a second image of a lung field region mask image corresponding to a floating image in the image and a corresponding second training deformation field. The method comprises the following steps: determining a corresponding fourth training deformation image based on the lung field area mask image corresponding to the floating image in the image and the corresponding second training deformation field; calculating a fifth training loss based on the fourth training deformation image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; encoding the fourth training deformation image and the lung field area mask image corresponding to the fixed image using the first preset convolutional neural network respectively to obtain a third encoding image and a fourth encoding image; and calculating a sixth training loss based on the third encoding image and the fourth encoding image; adjusting the parameters of the second preset convolutional neural network after the first enhanced training based on the fourth training loss, the fifth training loss and the sixth training loss, and completing the second enhanced training of the second preset convolutional neural network after the first enhanced training.
[0103] In the embodiments of the present disclosure and other possible embodiments, further, the second enhanced training includes: third enhanced training and fourth enhanced training; specifically, according to the method of transforming the multiple dynamic X-ray images respectively, the lung field area images corresponding to the multiple dynamic X-ray images are transformed respectively to obtain the second dynamic transformed X-ray image corresponding to each lung field area image; based on each lung field area image and its corresponding second transformed X-ray image, a plurality of second dynamic X-ray image pairs are constructed respectively; based on the plurality of second dynamic X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after the first enhanced training is subjected to third enhanced training; using the lung field area images corresponding to the multiple dynamic X-ray images, a set of dynamic lung field area image pairs is constructed; using the dynamic lung field area image pair set and the first preset convolutional neural network, the second preset convolutional neural network used for the third enhanced training is subjected to fourth enhanced training to complete the second enhanced training of the second preset convolutional neural network. Among them, the method of constructing a dynamic lung field area image pair set using the lung field area images corresponding to the multiple dynamic X-ray images includes: respectively extracting multiple name / ID information corresponding to the multiple dynamic X-ray images or their corresponding lung field area images; respectively pairing the multiple dynamic lung field area images with different name / ID information to construct a dynamic lung field area image pair set.
[0104] In the embodiments of the present disclosure and other possible embodiments, the method for performing a third enhanced training on the second preset convolutional neural network after the first enhanced training based on the multiple second dynamic X-ray image pairs and the first preset convolutional neural network includes: acquiring the multiple second dynamic X-ray image pairs and their corresponding multiple lung field area mask image pairs; determining the corresponding third deformation field based on the fixed image and the floating image of each pair of images in the multiple second dynamic X-ray image pairs and the second preset convolutional neural network of the first enhanced training; determining the corresponding sixth training deformation image based on the floating image in each pair of images and the corresponding third deformation field; calculating the seventh loss based on the sixth training deformation image corresponding to the floating image of each pair of images and the fixed image; Determine the corresponding seventh training deformed image based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding third deformation field; calculate the eighth loss based on the seventh training deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; encode the seventh training deformed image and the lung field area mask image corresponding to the fixed image using the first preset convolutional neural network to obtain a fifth encoding image and a sixth encoding image; and calculate the ninth loss based on the fifth encoding image and the sixth encoding image; adjust the parameters of the second preset convolutional neural network after the first enhanced training based on the seventh loss, the eighth loss and the ninth loss, and complete the third enhanced training of the second preset convolutional neural network after the first training.
[0105] In the embodiments of the present disclosure and other possible embodiments, the method of using the dynamic lung field area image pair set and the first preset convolutional neural network to perform fourth enhanced training on the second preset convolutional neural network used for the third enhanced training to complete the second enhanced training of the second preset convolutional neural network includes: obtaining the dynamic lung field area image pair set and its corresponding multiple lung field area mask image pairs; determining the corresponding fourth deformation field based on the fixed image and floating image of each pair of images in the dynamic lung field area image pair set and the second preset convolutional neural network of the third enhanced training; determining the corresponding eighth training deformed image based on the floating image in each pair of images and the corresponding fourth deformation field; calculating the eighth training deformed image corresponding to the floating image of each pair of images and the fixed image respectively. The tenth loss; the corresponding ninth training deformed image is determined based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding fourth deformation field; the eleventh loss is calculated based on the ninth training deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; the ninth training deformed image and the lung field area mask image corresponding to the fixed image are encoded using the first preset convolutional neural network to obtain a seventh encoding image and an eighth encoding image; and the twelfth loss is calculated based on the seventh encoding image and the eighth encoding image; based on the tenth loss, the eleventh loss and the twelfth loss, the parameters of the second preset convolutional neural network after the third enhanced training are adjusted to complete the second enhanced training of the second preset convolutional neural network after the first training.
[0106] In the embodiments of the present disclosure and other possible embodiments, when the multiple dynamic / static X-ray images used for training are configured as a first number of multiple dynamic X-ray images and a second number of multiple static X-ray images, the first number of multiple dynamic X-ray images, the second number of multiple static X-ray images and the first preset convolutional neural network are used to perform initial training on the second preset convolutional neural network used for registration; and the second preset convolutional neural network after the initial training is subjected to enhanced training using the first number of multiple dynamic X-ray images, the second number of multiple static X-ray images, multiple dynamic X-ray image pairs (a pair of X-ray images) corresponding to the lung field area images of the first number of multiple dynamic X-ray images and the second number of multiple static X-ray images and the first preset convolutional neural network.
[0107] First, in the embodiment of the present disclosure and other possible embodiments, the method for initially training the second preset convolutional neural network for registration using the first number of multiple dynamic X-ray images, the second number of multiple static X-ray images and the first preset convolutional neural network includes: constructing a dynamic / static X-ray image pair set using the first number of multiple dynamic X-ray images and the second number of multiple static X-ray images; initially training the second preset convolutional neural network for registration using the dynamic / static X-ray image pair set and the first preset convolutional neural network; wherein, the method for constructing a dynamic / static X-ray image pair set using the first number of multiple dynamic X-ray images and the second number of multiple static X-ray images includes: respectively extracting multiple name / ID information corresponding to the first number of multiple dynamic X-ray images and the second number of multiple static X-ray images; respectively pairing the multiple dynamic / static X-ray images with different name / ID information to construct a dynamic / static X-ray image pair set.
[0108] Secondly, in the embodiments of the present disclosure and other possible embodiments, the first number of multiple dynamic X-ray images and the second number of multiple static X-ray images are transformed respectively to obtain a first transformed X-ray image corresponding to each dynamic and static X-ray image; based on each dynamic and static X-ray image and its corresponding first transformed X-ray image, a plurality of first dynamic and static X-ray image pairs are constructed; based on the plurality of first dynamic and static X-ray image pairs and the first preset convolutional neural network, a first enhancement training is performed on the second preset convolutional neural network after the initial training; thereafter, a set of dynamic X-ray image pairs is constructed using the first number of multiple dynamic X-ray images; a second enhancement training is performed on the second preset convolutional neural network used for the first enhancement training using the first number of dynamic X-ray image pair sets and the first preset convolutional neural network, thereby completing the first enhancement training of the second preset convolutional neural network.
[0109] In the embodiments of the present disclosure and other possible embodiments, the method for performing a first enhanced training on the second preset convolutional neural network after the initial training based on the multiple first dynamic and static X-ray image pairs and the first preset convolutional neural network includes: acquiring the multiple first dynamic and static X-ray image pairs and their corresponding multiple lung field area mask image pairs; determining the corresponding first deformation field based on the fixed image and the floating image of each pair of images in the multiple first dynamic and static X-ray image pairs and the second preset convolutional neural network after the initial training; determining the corresponding first training deformation image based on the floating image in each pair of images and the corresponding first deformation field; calculating the first training loss based on the first training deformation image corresponding to the floating image of each pair of images and the fixed image; respectively. Based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding first training deformation field, the corresponding second training deformation image is determined; the second training loss is calculated based on the second training deformation image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; the second training deformation image and the lung field area mask image corresponding to the fixed image are respectively encoded using the first preset convolutional neural network to obtain a first encoding image and a second encoding image; and the third training loss is calculated based on the first encoding image and the second encoding image; based on the first training loss, the second training loss and the third training loss, the parameters of the second preset convolutional neural network after the initial training are adjusted to complete the first enhanced training of the second preset convolutional neural network after the initial training.
[0110] In the embodiments of the present disclosure and other possible embodiments, the method of performing second enhanced training on the second preset convolutional neural network used for the first enhanced training using the first number of dynamic X-ray image pair sets and the first preset convolutional neural network includes: obtaining the dynamic and static X-ray image pair sets and their corresponding multiple lung field area mask image pairs; determining the corresponding second deformation field based on the fixed image and floating image of each pair of images in the dynamic and static X-ray image pair sets and the second preset convolutional neural network after the first enhanced training; determining the corresponding third training deformed image based on the floating image in each pair of images and the corresponding second deformation field; calculating the fourth training loss based on the third training deformed image corresponding to the floating image of each pair of images and the fixed image; respectively. Based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding second training deformation field, a corresponding fourth training deformation image is determined; based on the fourth training deformation image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image, a fifth training loss is calculated; the fourth training deformation image and the lung field area mask image corresponding to the fixed image are respectively encoded using the first preset convolutional neural network to obtain a third encoding image and a fourth encoding image; and a sixth training loss is calculated based on the third encoding image and the fourth encoding image; based on the fourth training loss, the fifth training loss and the sixth training loss, the parameters of the second preset convolutional neural network after the first enhanced training are adjusted to complete the second enhanced training of the second preset convolutional neural network after the first enhanced training.
[0111] Finally, in the embodiments of the present disclosure and other possible embodiments, it also includes: according to the method of transforming the first number of multiple dynamic X-ray images and the second number of multiple static X-ray images respectively, the lung field area images corresponding to the first number of multiple dynamic X-ray images and the second number of multiple static X-ray images are transformed respectively to obtain the second transformed X-ray image corresponding to each lung field area image; based on each lung field area image and its corresponding second transformed X-ray image, a plurality of second dynamic and static X-ray image pairs are constructed respectively; based on the plurality of second dynamic and static X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after the first enhanced training is subjected to third enhanced training; using the lung field area images corresponding to the first number of multiple dynamic X-ray images, a set of dynamic lung field area image pairs is constructed; using the dynamic lung field area image pair set and the first preset convolutional neural network, the second preset convolutional neural network used for the third enhanced training is subjected to fourth enhanced training to complete the second enhanced training of the second preset convolutional neural network.
[0112] In the embodiments of the present disclosure and other possible embodiments, the method for performing a third enhanced training on the second preset convolutional neural network after the first enhanced training based on the multiple second dynamic and static X-ray image pairs and the first preset convolutional neural network includes: acquiring the multiple second dynamic and static X-ray image pairs and their corresponding multiple lung field area mask image pairs; determining the corresponding third deformation field based on the fixed image and the floating image of each pair of images in the multiple second dynamic and static X-ray image pairs and the second preset convolutional neural network of the first enhanced training; determining the corresponding sixth training deformation image based on the floating image in each pair of images and the corresponding third deformation field; calculating the sixth training deformation image based on the sixth training deformation image corresponding to the floating image of each pair of images and the fixed image, respectively. Seven losses; determining the corresponding seventh training deformed image based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding third deformation field; calculating the eighth loss based on the seventh training deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; respectively encoding the seventh training deformed image and the lung field area mask image corresponding to the fixed image using the first preset convolutional neural network to obtain a fifth encoding image and a sixth encoding image; and calculating the ninth loss based on the fifth encoding image and the sixth encoding image; based on the seventh loss, the eighth loss and the ninth loss, adjusting the parameters of the second preset convolutional neural network after the first enhanced training, and completing the third enhanced training of the second preset convolutional neural network after the first training.
[0113] In the embodiments of the present disclosure and other possible embodiments, the method of using the dynamic lung field area image pair set and the first preset convolutional neural network to perform fourth enhanced training on the second preset convolutional neural network used for the third enhanced training to complete the second enhanced training of the second preset convolutional neural network includes: obtaining the dynamic lung field area image pair set and its corresponding multiple lung field area mask image pairs; determining the corresponding fourth deformation field based on the fixed image and floating image of each pair of images in the dynamic lung field area image pair set and the second preset convolutional neural network of the third enhanced training; determining the corresponding eighth training deformed image based on the floating image in each pair of images and the corresponding fourth deformation field; calculating the eighth training deformed image corresponding to the floating image of each pair of images and the fixed image respectively. The tenth loss; the corresponding ninth training deformed image is determined based on the lung field area mask image corresponding to the floating image in each pair of images and the corresponding fourth deformation field; the eleventh loss is calculated based on the ninth training deformed image corresponding to the floating image of each pair of images and the lung field area mask image corresponding to the fixed image; the ninth training deformed image and the lung field area mask image corresponding to the fixed image are encoded using the first preset convolutional neural network to obtain a seventh encoding image and an eighth encoding image; and the twelfth loss is calculated based on the seventh encoding image and the eighth encoding image; based on the tenth loss, the eleventh loss and the twelfth loss, the parameters of the second preset convolutional neural network after the third enhanced training are adjusted to complete the second enhanced training of the second preset convolutional neural network after the first training.
[0114] In the embodiments of the present disclosure and other possible embodiments, the multiple name / ID information corresponding to the multiple dynamic X-ray images and the multiple static X-ray images are different; that is, the image pairs in the dynamic X-ray image pair set, the static X-ray image pair set, the dynamic / static X-ray image pair set, the dynamic lung field area image pair set or other X-ray image pairs or sets (for example, the first dynamic X-ray image pair, the second dynamic X-ray image pair, the first static X-ray image pair and the second static X-ray image pair, etc.) cannot be configured as the same X-ray image.
[0115] For example, in the embodiments of the present disclosure and other possible embodiments, the multiple dynamic / static X-ray images used for training are configured as multiple dynamic X-ray images corresponding to the chest, and the corresponding lung field area can be configured as one or more of the left lung field, the right lung field and the double lung field. Among them, the number corresponding to the multiple dynamic X-ray images is 789. First, 635 dynamic X-ray images are selected from the Chinese collection of the public data set D1 (China Shenzhen Dataset-Chest X-ray (X-ray) Database). Specifically, the 635 dynamic X-ray images include 324 normal cases and 311 cases with tuberculosis manifestations. Since radiologists cannot make judgments on the lung fields, 24 cases with tuberculosis manifestations are excluded from this study. Secondly, 54 dynamic X-ray images are randomly selected from the Montgomery X-ray set in the public data set D2. Specifically, the 54 dynamic X-ray images include 47 normal cases and 7 cases with tuberculosis manifestations. Meanwhile, 72 dynamic X-ray images were selected from public datasets D3 (NIAID-TB portal program dataset [online]) and D4 (kaggle.RSNA pneumonia detection challenge [online]). Specifically, the 72 dynamic X-ray images included 7 cases of tuberculosis manifestations, 60 cases of pneumonia manifestations, and 5 normal cases. Finally, 15 dynamic X-ray images were collected from the Google website (dataset D5). The remaining 13 dynamic X-ray images (dataset D6) from chest X-ray videos (chest radiography) were collected during free breathing. Specifically, the chest X-ray video was collected from a 53-year-old female participant using a digital X-ray imaging system (manufacturer: Lanmage, acquisition mode: sequential point slices, exposure parameters: 78KV, 200mA, 50ms, flat panel detector: IRAY) for chest radiography. Obviously, the multiple dynamic / static X-ray images for training are configured as 789 static X-ray images; the dynamic X-ray image sequence to be registered is configured as 13 dynamic X-ray image sequences.
[0116] In an embodiment of the present disclosure, the method of using the multiple dynamic / static X-ray images and the first preset convolutional neural network to perform initial training on the second preset convolutional neural network used for registration includes: using the 789 static X-ray images to construct a static X-ray image pair set (789*789-789 pairs of images / image pairs); using the static X-ray image pair set and the first preset convolutional neural network to perform initial training on the second preset convolutional neural network used for registration.
[0117] In the embodiments of the present disclosure and other possible embodiments, the method of using the 789 static X-ray images and the multiple static X-ray image pairs corresponding to the lung field area images (789*789-789 pairs of static images and 789*789-789 pairs of lung field area images corresponding to the static images) and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after initial training includes: performing affine transformation on the 789 static X-ray images respectively to obtain a first transformed X-ray image corresponding to each static X-ray image; constructing multiple first static X-ray image pairs based on each static X-ray image and its corresponding first transformed X-ray image; based on the multiple first static X-ray image pairs and the first preset convolutional neural network, performing enhanced training on the second preset convolutional neural network after initial training. The neural network performs the first enhancement training; according to the method of performing affine transformation on the multiple dynamic / static X-ray images respectively, the lung field area images corresponding to the 789 static X-ray images are transformed respectively to obtain the second transformed X-ray image corresponding to each lung field area image; based on each lung field area image and its corresponding second transformed X-ray image, a plurality of second static X-ray image pairs (789*789-789 pairs of lung field area images corresponding to static images) are constructed respectively; based on the plurality of second static X-ray image pairs and the first preset convolutional neural network, the second preset convolutional neural network after the first enhancement training is subjected to the second enhancement training; further, based on the second preset convolutional neural network after the second enhancement training, any two lung field area images in the dynamic X-ray image sequence to be registered are registered.
[0118] In the embodiment of the present disclosure and other possible embodiments, based on the second preset convolutional neural network after the enhanced training, any two lung field area images in the dynamic X-ray image sequence to be registered are registered.
[0119] Based on the above, in the embodiments of the present disclosure and other possible embodiments, based on the second preset convolutional neural network after the enhanced training, any two lung field area images (lung field images / heart images corresponding to the dynamic X-ray images to be registered) in the dynamic X-ray image sequence to be registered (13 dynamic X-ray images to be registered) are registered.
[0120] In the embodiments of the present disclosure and other possible embodiments, the method for registering any two lung field area images in the dynamic X-ray image sequence to be registered based on the second preset convolutional neural network after the enhanced training includes: using the third preset convolutional neural network or preset segmentation model for the lung field area segmentation to perform the lung field area segmentation on the dynamic X-ray image sequence to be registered, respectively, to obtain a plurality of lung field area mask image sequences corresponding to the dynamic X-ray image sequence to be registered; and configuring the mask value corresponding to the lung field area mask image sequence as a set value; based on the configured lung field area mask image sequence and its corresponding dynamic X-ray image sequence to be registered, determining the lung field area image sequence corresponding to the dynamic X-ray image sequence to be registered; based on the second preset convolutional neural network after the enhanced training, registering any two lung field area images in the lung field area image sequence. Wherein, the set value can be configured to 1 or other values.
[0121] In the embodiments of the present disclosure and other possible embodiments, the second preset convolutional neural network after the enhanced training is used to register any two lung field area images in the dynamic X-ray image sequence to be registered, and the corresponding two lung field area images are respectively configured as image pairs corresponding to the maximum lung field area and the minimum lung field area in the lung field area images. Among them, the third preset convolutional neural network (preset lung field segmentation model) used for the lung field area segmentation can be configured as one or more of FCN, Unet, Unet++, SegNet, RefineNet, nn Unet or its improved convolutional neural network.
[0122] Step S102: Based on the projection image and the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, determine the grayscale value unchanged region in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments.
[0123] In an embodiment of the present disclosure, the method for determining the area in the lung where the grayscale value does not change corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the projection image and the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments, comprises: using the preset registration model to respectively register the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments or other dynamic lung field X-ray images to be processed except the set fixed image with the projection image to obtain multiple second lung field X-ray registered images; performing silhouette processing on the projection image and the multiple second lung field X-ray registered images to obtain corresponding grayscale value change areas; determining the area in the lung where the grayscale value does not change corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the multiple second lung field X-ray registration images and their corresponding grayscale value change areas.
[0124] In an embodiment of the present disclosure, the method for determining the grayscale value unchanged area in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the multiple second lung field X-ray registration images and their corresponding grayscale value change areas, comprises: performing silhouette processing on the grayscale value changed areas of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments and their corresponding to-be-processed dynamic lung field X-ray image sequence, respectively, to determine the grayscale value unchanged area in the lung of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments.
[0125] In an embodiment of the present disclosure, the method of performing silhouette processing on the grayscale value change areas of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments and the corresponding to-be-processed dynamic lung field X-ray image sequence, and determining the grayscale value unchanged areas in the lungs of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, comprises: performing silhouette processing on the grayscale value change areas of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments and the corresponding to-be-processed dynamic lung field X-ray image sequence, and obtaining corresponding multiple silhouette images; obtaining multiple mask image sequences corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments; determining multiple lung field boundaries corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the multiple mask image sequences; and using the multiple lung field boundaries to limit the lung field areas of the corresponding multiple silhouette images, and determining the grayscale value unchanged areas in the lungs of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments.
[0126] In an embodiment of the present disclosure, the method of performing silhouette processing on the grayscale value change areas of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments and the corresponding dynamic lung field X-ray image sequence to be processed, and determining the grayscale value unchanged areas in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments, further includes: using the preset registration model, respectively registering the multiple second lung field X-ray registered images with the corresponding dynamic lung field X-ray image sequence to be processed, and mapping the grayscale value unchanged areas in the lungs corresponding to the multiple second lung field X-ray registered images to the grayscale value unchanged areas in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments. Wherein, in an embodiment of the present disclosure, the grayscale value unchanged areas in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are configured as the grayscale value unchanged areas in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the maximum lung field area and the minimum lung field area in one respiratory cycle.
[0127] Step S103: determining the air retention region in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale value unchanged region in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments.
[0128] In an embodiment of the present disclosure, the method for determining the air retention area in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the area in the lungs where the grayscale values in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments comprises: respectively calculating multiple grayscale average values corresponding to the area in the lungs where the grayscale values in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments; determining the air retention area in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale values of the area in the lungs where the grayscale values in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments and the corresponding grayscale average values.
[0129] In an embodiment of the present disclosure, the method for determining the air retention area in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale values of the areas in the lungs where the grayscale values have not changed and the corresponding grayscale average values, includes: respectively configuring the areas where the grayscale values corresponding to the areas in the lungs where the grayscale values have not changed in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are greater than / less than or equal to the corresponding grayscale average values as the corresponding air retention areas in the lungs.
[0130] In an embodiment of the present disclosure, if the maximum grayscale value in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, then the areas where the grayscale values corresponding to the areas in the lungs where the grayscale values have not changed in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are greater than or equal to the corresponding grayscale means and are configured as corresponding air retention areas in the lungs; if the minimum grayscale value in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, then the areas where the grayscale values corresponding to the areas in the lungs where the grayscale values have not changed in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are less than or equal to the corresponding grayscale means and are configured as corresponding air retention areas in the lungs.
[0131] In an embodiment of the present disclosure, before obtaining the intrapulmonary air area and the pulmonary ventilation area of the dynamic lung field X-ray image sequence to be processed corresponding to multiple moments, a method for determining the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments includes: obtaining a preset lung field segmentation model and the dynamic chest X-ray image sequence to be processed corresponding to the multiple moments; based on the preset lung field segmentation model, performing left lung field / right lung field / double lung field segmentation on the dynamic chest X-ray image sequence to be processed corresponding to the multiple moments to obtain the corresponding dynamic lung field X-ray image sequence to be processed.
[0132] Among them, in an embodiment of the present disclosure, the lung field areas in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are the same; the lung field areas are configured as one or more of the left lung field area, the right lung field area, and the double lung field area.
[0133] The execution subject of the method for determining pulmonary air retention may be an image processing device, for example, the method for determining pulmonary air retention may be executed by a terminal device or a server or other processing device, wherein the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method for determining pulmonary air retention may be implemented by a processor calling computer-readable instructions stored in a memory.
[0134] Those skilled in the art will appreciate that, in the above-mentioned method for determining pulmonary air retention in a specific embodiment, the order in which the steps are written does not imply a strict order of execution and does not constitute any limitation on the implementation process, and the specific order of execution of the steps should be determined by their function and possible internal logic.
[0135] The disclosed embodiment also proposes a corresponding device for determining pulmonary air retention, and the device for determining pulmonary air retention includes: a projection image determination unit, used to obtain a sequence of dynamic lung field X-ray images to be processed corresponding to multiple moments in at least one respiratory cycle, and determine the projection image corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments; a grayscale value unchanged area determination unit, used to determine, based on the projection image and the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments, the grayscale value unchanged area in the lung corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments; an air retention area unit, used to determine the air retention area in the lung of the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments based on the grayscale value unchanged area in the lung corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments.
[0136] In an embodiment of the present disclosure, the determination device is characterized in that it also includes: a training unit for training the preset registration model; wherein the training unit is used to obtain multiple dynamic / static X-ray images for training and their corresponding first preset convolutional neural network for lung field area limitation; using the multiple dynamic / static X-ray images and the first preset convolutional neural network, initially training the second preset convolutional neural network for registration; using the multiple dynamic / static X-ray images and the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and their lung field images and the first preset convolutional neural network, enhancing training is performed on the second preset convolutional neural network after the initial training, and the second preset convolutional neural network after the enhanced training is determined as the preset registration model.
[0137] In an embodiment of the present disclosure, the use of the multiple dynamic / static X-ray images and the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and the lung field area images and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after initial training includes: transforming the multiple dynamic / static X-ray images respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; constructing multiple first dynamic / static X-ray image pairs based on each dynamic / static X-ray image and its corresponding first transformed X-ray image; based on the multiple first dynamic / static X-ray image pairs and the first preset convolutional neural network, Assume that the convolutional neural network performs a first enhancement training; according to the method of transforming the multiple dynamic / static X-ray images respectively, the lung field area images corresponding to the multiple dynamic / static X-ray images are transformed respectively to obtain a second transformed X-ray image corresponding to each lung field area image; based on each lung field area image and its corresponding second transformed X-ray image, a plurality of second dynamic / static X-ray image pairs are constructed respectively; based on the plurality of second dynamic / static X-ray image pairs and the first preset convolutional neural network, a second enhancement training is performed on the second preset convolutional neural network after the first enhancement training; and the second preset convolutional neural network after the second enhancement training is determined as the preset registration model.
[0138] The disclosed embodiment also proposes a device for determining pulmonary air retention, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned method for determining pulmonary air retention.
[0139] The disclosed embodiment also provides a device for determining pulmonary air retention, including: a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above-mentioned method for determining pulmonary air retention when executed by a processor.
[0140] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method for determining pulmonary air retention described in the above method embodiment. Its specific implementation can refer to the description of the above method for determining pulmonary air retention embodiment, and for the sake of brevity, it will not be repeated here.
[0141] The disclosed embodiment also provides a computer program product, including a computer program / instruction, which implements the above-mentioned method for determining pulmonary air retention when executed by a processor.
[0142] The disclosed embodiments also provide a medical device that applies the above-mentioned method for determining pulmonary air retention and / or includes the above-mentioned device for determining pulmonary air retention and / or includes the above-mentioned computer program product.
[0143] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for determining pulmonary air trapping, characterized in that: include: Acquire a sequence of dynamic lung field X-ray images to be processed corresponding to a plurality of moments, and determine a projection image corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the plurality of moments; Based on the projection image and the to-be-processed dynamic lung field X-ray image sequences corresponding to the multiple moments, determining the grayscale value unchanged region in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequences corresponding to the multiple moments; Based on the grayscale value unchanged region in the lung corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments, the air retention region in the lung of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is determined.
2. The determination method according to claim 1, characterized in that: The method for determining the projection images corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments comprises: using a preset registration model, respectively registering the other dynamic lung field X-ray images to be processed other than the set fixed image corresponding to a certain moment in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments to the set fixed image, to obtain the corresponding multiple first lung field X-ray registered images; performing maximum gray value projection / minimum gray value projection on the set fixed image and the multiple first lung field X-ray registered images, to obtain projection images corresponding to areas where air may exist in the lungs; or performing maximum gray value projection / minimum gray value projection on the multiple first lung field X-ray registered images, to obtain projection images corresponding to areas where air may exist in the lungs; and / or, Among them, if the maximum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; or, the multiple first lung field X-ray registration images are projected with the maximum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; if the minimum grayscale value in the sequence of dynamic lung field X-ray images to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, the set fixed image and the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs; or, the multiple first lung field X-ray registration images are projected with the minimum grayscale value to obtain a projection image corresponding to the area where air may exist in the lungs.
3. The determination method according to any one of claims 1 to 2, characterized in that: The method for determining the unchanged grayscale value area in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the projection image and the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, comprises: using the preset registration model to respectively register the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments or other to-be-processed dynamic lung field X-ray images except the set fixed image with the projection image to obtain multiple second lung field X-ray registered images; performing silhouette processing on the projection image and the multiple second lung field X-ray registered images to obtain corresponding grayscale value change areas; determining the unchanged grayscale value area in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the multiple second lung field X-ray registered images and their corresponding grayscale value change areas; and / or, The method for determining the grayscale value unchanged region in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the multiple second lung field X-ray registration images and their corresponding grayscale value changed regions, comprises: performing silhouette processing on the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments and the grayscale value changed regions of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, respectively, to determine the grayscale value unchanged region in the lung of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments; and / or, The method of performing silhouette processing on the grayscale value change areas of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments and the corresponding to-be-processed dynamic lung field X-ray image sequence, and determining the grayscale value unchanged areas in the lungs of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, comprises: performing silhouette processing on the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments and the grayscale value change areas of the to-be-processed dynamic lung field X-ray image sequence, and obtaining corresponding multiple silhouette images; obtaining multiple mask image sequences corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments; determining multiple lung field boundaries corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments based on the multiple mask image sequences; performing lung field area limitation on the corresponding multiple silhouette images using the multiple lung field boundaries, and determining the grayscale value unchanged areas in the lungs of the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments; and / or, The method of performing silhouette processing on the grayscale value change areas of the to-be-processed dynamic lung field X-ray image sequences corresponding to the multiple moments and their corresponding to-be-processed dynamic lung field X-ray image sequences, and determining the grayscale value unchanged areas in the lungs of the to-be-processed dynamic lung field X-ray image sequences corresponding to the multiple moments, further includes: using the preset registration model to respectively register the multiple second lung field X-ray registered images with the corresponding to-be-processed dynamic lung field X-ray image sequences, and mapping the grayscale value unchanged areas in the lungs corresponding to the multiple second lung field X-ray registered images to the grayscale value unchanged areas in the lungs corresponding to the to-be-processed dynamic lung field X-ray image sequences corresponding to the multiple moments; and / or, Among them, the area in the lung where the grayscale value does not change corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the area in the lung where the grayscale value does not change corresponding to the maximum lung field area and the minimum lung field area in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments within a respiratory cycle.
4. The determination method according to any one of claims 1 to 3, characterized in that: The method for determining the air retention area in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the unchanged area in the grayscale value in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments comprises: respectively calculating multiple grayscale average values corresponding to the unchanged area in the grayscale value in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments; determining the air retention area in the lungs of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale values of the unchanged area in the lungs corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments and the corresponding grayscale average values; and / or, The method for determining the air retention area in the lung of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale values of the grayscale value unchanged area in the lung corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments and the corresponding grayscale average value, comprises: respectively configuring the area whose grayscale value corresponding to the grayscale value unchanged area in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is greater than / less than or equal to the corresponding grayscale average value as the corresponding air retention area in the lung; and / or, Wherein, if the maximum grayscale value in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, then the areas whose grayscale values corresponding to the areas in the lungs where the grayscale values have not changed in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are greater than or equal to the corresponding grayscale mean values are respectively configured as the corresponding air retention areas in the lungs; if the minimum grayscale value in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments is configured as the grayscale value corresponding to air, then the areas whose grayscale values corresponding to the areas in the lungs where the grayscale values have not changed in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are less than or equal to the corresponding grayscale mean values are respectively configured as the corresponding air retention areas in the lungs; and / or, Before obtaining the intrapulmonary air area and the pulmonary ventilation area of the dynamic lung field X-ray image sequence to be processed corresponding to multiple moments, the method for determining the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments comprises: obtaining a preset lung field segmentation model and the dynamic chest X-ray image sequence to be processed corresponding to the multiple moments; based on the preset lung field segmentation model, performing left lung field / right lung field / double lung field segmentation on the dynamic chest X-ray image sequence to be processed corresponding to the multiple moments to obtain the corresponding dynamic lung field X-ray image sequence to be processed; and / or, Among them, the lung field areas in the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments are the same; the lung field area is configured as one or more of a left lung field area, a right lung field area, and a double lung field area.
5. The determination method according to any one of claims 2 to 4, characterized in that: The training method for the preset registration model includes: Acquire a plurality of dynamic / static X-ray images for training and their corresponding first preset convolutional neural network for lung field area limitation; Using the plurality of dynamic / static X-ray images and the first preset convolutional neural network, initially training a second preset convolutional neural network for registration; Using the multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and their lung field images and the first preset convolutional neural network, the second preset convolutional neural network after the initial training is enhanced trained, and the second preset convolutional neural network after the enhanced training is determined as the preset registration model.
6. A device for determining pulmonary air trapping, characterized in that: include: A projection image determination unit, used to obtain a sequence of dynamic lung field X-ray images to be processed corresponding to a plurality of moments, and determine a projection image corresponding to the sequence of dynamic lung field X-ray images to be processed corresponding to the plurality of moments; a grayscale value unchanged region determining unit, configured to determine, based on the projection image and the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments, a grayscale value unchanged region in the lung corresponding to the to-be-processed dynamic lung field X-ray image sequence corresponding to the multiple moments; The air retention area unit is used to determine the air retention area in the lung of the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments based on the grayscale value unchanged area in the lung corresponding to the dynamic lung field X-ray image sequence to be processed corresponding to the multiple moments.
7. The determination device according to claim 6, characterized in that: Also includes: A training unit for training the preset registration model; Wherein, the training unit is used to obtain multiple dynamic / static X-ray images for training and their corresponding first preset convolutional neural network for lung field area limitation; using the multiple dynamic / static X-ray images and the first preset convolutional neural network, initially training the second preset convolutional neural network for registration; using the multiple dynamic / static X-ray images and multiple dynamic / static X-ray image pairs corresponding to the multiple dynamic / static X-ray images and their lung field images and the first preset convolutional neural network, enhancing training the second preset convolutional neural network after initial training, and determining the second preset convolutional neural network after enhanced training as the preset registration model; and / or, The method of using the plurality of dynamic / static X-ray images and the plurality of dynamic / static X-ray image pairs corresponding to the plurality of dynamic / static X-ray images and the lung field area images thereof and the first preset convolutional neural network to perform enhanced training on the second preset convolutional neural network after initial training includes: transforming the plurality of dynamic / static X-ray images respectively to obtain a first transformed X-ray image corresponding to each dynamic / static X-ray image; constructing a plurality of first dynamic / static X-ray image pairs based on each dynamic / static X-ray image and its corresponding first transformed X-ray image; and enhancing the second preset convolutional neural network after initial training based on the plurality of first dynamic / static X-ray image pairs and the first preset convolutional neural network. The network performs a first enhancement training; according to the method of transforming the multiple dynamic / static X-ray images respectively, the lung field area images corresponding to the multiple dynamic / static X-ray images are transformed respectively to obtain a second transformed X-ray image corresponding to each lung field area image; based on each lung field area image and its corresponding second transformed X-ray image, a plurality of second dynamic / static X-ray image pairs are constructed respectively; based on the plurality of second dynamic / static X-ray image pairs and the first preset convolutional neural network, a second enhancement training is performed on the second preset convolutional neural network after the first enhancement training; and the second preset convolutional neural network after the second enhancement training is determined as the preset registration model.
8. A device for determining pulmonary air trapping, characterized in that: include: processor; A memory for storing processor executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the method for determining pulmonary air trapping according to any one of claims 1 to 5; or, The invention comprises: a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method for determining pulmonary air retention as claimed in any one of claims 1 to 5.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method for determining pulmonary air trapping according to any one of claims 1 to 5 is implemented.
10. A medical device, characterized in that: Apply the method for determining pulmonary air retention as described in any one of claims 1 to 5 and / or include the device for determining pulmonary air retention as described in any one of claims 6 to 8 and / or include the computer program product as described in claim 9.
