Medical image processing apparatus and method
The medical image processing device integrates clinical information through a processing circuit and neural networks to enhance image segmentation accuracy by focusing attention on specific areas within medical images, addressing the challenge of multiple differential diagnoses in radiographic scans.
Patent Information
- Application Number
- JP2024025596
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-09
- Filing Date
- 2024-02-22
- Publication Date
- 2024-10-23
AI Technical Summary
Existing medical imaging technologies struggle to accurately segment anatomical features and lesions in radiographic scans, especially when multiple differential diagnoses are possible and cannot be distinguished from images alone, due to insufficient integration of clinical information.
A medical image processing device that integrates a processing circuit to receive and process medical image data along with text data containing clinical information, using a primary trained machine learning model and an auxiliary trained neural network to condition the output, applying spatial attention mechanisms influenced by text encoder networks and conditioning processes to enhance image segmentation.
Improves the accuracy of image segmentation by focusing attention on specific areas within medical images based on clinical information, enhancing the ability to identify anatomical features and lesions, even in cases with multiple differential diagnoses.
Smart Images

Figure 2024150400000001_ABST
Abstract
Description
REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 486,404, filed February 22, 2023, the entire contents of which are incorporated herein by reference. [Technical field]
[0002] FIELD OF THE DISCLOSURE Embodiments disclosed herein relate generally to data processing methods and apparatus, such as methods and apparatus for learning models and using the models to provide image segmentation. [Background technology]
[0003] In medical imaging, a scan request may contain clinical information about the patient, including the patient's symptom history. When viewing radiology scan images in a clinical setting, radiologists rely on this information to make a possible diagnosis. This information is especially important when there are multiple differential diagnoses that cannot be distinguished from the image alone.
[0004] It is known to train convolutional neural networks (CNNs) and other machine learning models to process data, such as medical data.
[0005] Machine learning models can be trained using supervised, unsupervised, or a combination of supervised and unsupervised learning methods.
[0006] It is also known to spatially condition predictions of convolutional neural networks (CNNs) on clinical non-image inputs.
[0007] The entire contents of U.S. Patent Application Serial No. 16 / 992,466 are incorporated herein by reference. In this application, a medical image data processing device includes a processing circuit. The processing circuit receives medical image data of at least one subject, receives non-image data, generates a filter based on the received non-image data, and applies the filter to the medical image data. The filter limits a region of the medical image data. Image segmentation, as applied in this example, is a process of labeling different objects in an image on a pixel-by-pixel basis. Image segmentation is performed in two or three dimensions to spatially identify objects, such as lesions, in a medical image. Generally, a CNN-based method is used for image segmentation.
[0008] "Instance modulation with spatial dependency (INSIDE)" is a mechanism that imposes spatial constraints on the assumptions of a convolutional neural network about the clinical information input, allowing the network's attention to be focused on specific parts of the image derived from the clinical information input. INSIDE layers are sandwiched between the convolutional layers of the neural network to create a Gaussian attention spatial filter that is applied to intermediate feature maps. Summary of the Invention
[0009] In a first aspect, a medical image processing apparatus includes a processing circuit for receiving and processing medical image data, receiving text data including clinical information related to the medical image data, identifying a target processing region of the medical image data or a target processing region in a space derived from the medical image data based on the text data, and processing the identified target processing region of the medical image data.
[0010] The processing may include processing the medical image data to increase attention to the identified processing regions of interest.
[0011] The space derived from the medical image data may include, for example, a latent space, such as a latent space or an image segmentation model. The processing region of interest may not correspond directly to a region in the image, but may correspond to a characteristic of a feature of the image.
[0012] The processing may include performing a segmentation process, which may include segmenting identified anatomical features and / or lesions.
[0013] The process may also include applying a master trained machine learning model, such as, for example, a master trained neural network, to the medical image data. The master trained machine learning model may include or receive conditioning information to condition an output of the master machine learning model such that the output depends on both the medical image data and the conditioning information. The conditioning information may include non-image data.
[0014] The processing circuitry may apply an auxiliary trained machine learning model, such as an auxiliary trained neural network, to the text data. Identifying the target process region may include identifying the target process region by applying the auxiliary trained machine learning model to the text data.
[0015] The auxiliary trained machine learning model may comprise a text encoder network.
[0016] An auxiliary trained machine learning model, such as a text encoder network, may combine the separate token representations of the text data into a single latent representation of the text data (e.g., by concatenation or via a neural network).
[0017] The text encoder network may generate embeddings of tokens representing text in the text data and combine (e.g., concatenate) the embeddings into vectors that are, or form part of, the conditioning information input to the main machine learning model.
[0018] The auxiliary trained machine learning model may train parameters that are used as conditioning information input to the primary machine learning model, e.g., such that a combination of the text encoding of the conditioning information and the primary input to the neural network affects the output of the primary machine learning model.
[0019] The processing circuitry may, for example, apply additional conditioning processes to the output of a text encoder or other auxiliary machine learning model during training or use, such as to ensure that spatial information in the text data, determined according to ground truth, is represented or taken into account by the input and / or output of the primary machine learning model.
[0020] The additional conditioning process may, for example, modify an attention vector representing spatial attention that is input to or included in the main machine learning model.
[0021] The additional conditioning process may also represent the shape or other properties of the lesion or other feature of interest. The additional conditioning process may include or represent a signed distance field or other loss function. The additional conditioning process may also provide attention, such as one or more attention vectors represented by or generated using a signed distance field or other loss function. The function used to represent or generate attention in the conditioning process may be selected based on the output of the text encoder.
[0022] Multiple attention shapes may be learned using multiple signed distance fields or other loss functions, where the correct attention shape can be selected (e.g., by a switch function or other mechanism or process), for example, depending on the input conditions.
[0023] Training a text encoder network or other auxiliary trained machine learning model may involve applying a penalty to the loss function for training without following the structured data.
[0024] Training the primary machine learning model may include applying a penalty to the loss function for learning without following the structured data.
[0025] Training the master machine learning model may include using at least counterfactual training data and / or counterfactual training methods. The training data may include at least training data that represents counterexamples or other properties to encourage the neural network or other trained model to use or be more influenced by conditioning information and / or the output of the auxiliary trained machine learning model.
[0026] The text data may include at least one radiology report and / or a clinician's note or a user's note. The output of the master trained machine learning model may include, for example, lesion segmentation that is used to monitor lesion evolution over time.
[0027] Further, the processing circuitry may receive a user input and modify at least one of the spatial attention mechanisms of the primary machine learning model in response to the user input and / or enhance or modify the text input based on the user input. The processing circuitry may also use the user input in a feedback loop that includes modifying at least one of the input to the auxiliary model, the output of the auxiliary model, and / or the input to the primary model based on the user input and recalculating the output of the primary model.
[0028] The auxiliary model may be trained or pre-trained on conversational data, for example, so that it can respond to prompts.
[0029] The processing circuitry may input user input to other trained machine learning models that are trained to generate outputs that are input to the primary and / or auxiliary machine learning models and / or used to modify conditioning information. The user input may include or represent prompts that provide improved or alternative segmentations or other outputs.
[0030] The text encoder or other auxiliary model may be equipped with an attention mechanism that derives attention parameters that are input to the main model.
[0031] The processing circuitry may apply other trained machine learning models (e.g., at least one attention layer) to the output of the text encoder to extract named entities and other features from the text data, to extract codes from the output of the text encoder that correspond to the named entities and other features, and to condition other attention processes based on the extracted codes.
[0032] In another aspect that may be provided independently, a method of an image processing device includes receiving medical image data, receiving text data including clinical information related to the medical image data, identifying a target processing region of the medical image data based on the text data, and processing at least the identified target processing region of the medical image data.
[0033] In other aspects that may be provided independently, the processing device trains a primary machine learning model and / or an auxiliary machine learning model based on the training image dataset and the corresponding text data. Training the primary machine learning model includes training the primary machine learning model to perform segmentation based on the medical image data and conditioning information received from the auxiliary machine learning model. Training the auxiliary machine learning model includes training the auxiliary machine learning model on at least the text data and providing conditioning information to the primary machine learning model to identify the target processing region.
[0034] In another aspect that may be provided independently, a method for training a primary machine learning model and / or an auxiliary machine learning model based on a training image dataset and corresponding text data comprises training the primary machine learning model to perform segmentation based on conditioning information received from the medical image data and the auxiliary machine learning model, and / or training the auxiliary machine learning model on at least the text data, providing conditioning information to the primary machine learning model to identify target processing regions.
[0035] In other embodiments that may be provided independently, a system for integrating semantic information from text includes a neural network, a conditioned information integration mechanism (e.g., FiLM, INSIDE), a set of inputs, conditioning data in the form of text, and an auxiliary text encoder network that learns parameters of the conditioning mechanism, e.g., by integrating individual token representations into a latent representation of the text (e.g., via concatenation or a neural network) such that the combination of the text encoding of the conditioning data and the primary input to the neural network affects the output.
[0036] A penalty in the loss function may be applied to the text encoder for learning that does not conform to structured data (e.g., using synthetic data).
[0037] A penalty in the loss function may be applied to the conditioning mechanism for learning that does not follow structured data (e.g., with synthetic data).
[0038] The network may be trained according to counterfactual learning methods: by augmenting the data through manipulations (e.g., copy, mirror, paste), counterexamples may be created that prompt the neural network to use its conditioning mechanisms.
[0039] Additional text inputs may include past radiology reports and / or the output of the network may include lesion segmentations, for example, to monitor changes.
[0040] The system may include a feedback loop or may be utilized in a feedback loop by a clinician who may influence the spatial attention of the network.
[0041] The attention parameters may be derived from and / or combined with the attention mechanism of the text encoder network.
[0042] The textual data may include or represent spatial information, such as information related to or dependent on or determining the location of a lesion or other feature of interest. The textual data may also include or represent the type of lesion, the type of symptom, the shape and / or location and / or type of past lesions, and / or the location of symptoms.
[0043] A medical imaging procedure may be initiated by a scan request written by a clinician. The scan request includes information about the patient's medical history, such as the patient's symptoms. A radiologist, upon review of the radiology scan in clinical practice, determines a possible diagnosis based on the scan request. This information may be important, especially when there are multiple differential diagnoses that cannot be identified from the image alone.
[0044] In other aspects that may be provided independently, the text of the scan request is input to the image segmentation algorithm by extending existing spatially dependent models (e.g., INSIDE) to improve image segmentation. The free text input may be processed by a natural language processing (NLP) model to guide the image segmentation model to certain locations and shapes in the input data via a trained attention mechanism. A text encoder may be used to extract semantic information related to different types of symptoms and pathologies. Based on structured data error, latent representations may be supervised to improve the learning of the conditioning layer. Furthermore, in situations where the amount of available training data is limited, counterfactual data augmentation methods may be used to improve the model's extraction of salient information from the text conditioning input.
[0045] Features of one aspect or embodiment may be combined with features of other aspects or embodiments as appropriate. For example, device features may be provided as method features, or method features may be provided as device features. [Brief description of the drawings]
[0046] The embodiments illustrated in the following figures will now be described by way of non-limiting examples. [Figure 1] FIG. 1 is a schematic diagram of a medical image processing apparatus according to an embodiment. [Diagram 2] FIG. 2 is a schematic diagram of the medical image processing method according to the embodiment. [Diagram 3] FIG. 3 is a schematic diagram of a text encoding method according to an embodiment. [Figure 4] FIG. 4 is a schematic diagram of a medical image processing method according to an embodiment. [Diagram 5] FIG. 5 is a schematic diagram of a medical image processing method according to an embodiment. [Figure 6] FIG. 6 shows three images of a two-dimensional medical scan according to an embodiment. [Figure 7A]FIG. 7A is a diagram showing a graph of signed distance in three-dimensional space. [Figure 7B] FIG. 7B is a diagram showing a graph of signed distance in three-dimensional space. [Figure 7C] FIG. 7C is a diagram illustrating a graph of signed distance in three-dimensional space. [Figure 8] FIG. 8 is a schematic diagram of a medical image processing method according to an embodiment. [Figure 9] FIG. 9 is a schematic diagram of a medical image processing method according to an embodiment. [Figure 10] FIG. 10 is a schematic diagram of a medical image processing method according to an embodiment. [Figure 11] FIG. 11 shows three images used in an experiment to compare the performance of different embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0047] An overview of a data processing device 1 according to an embodiment is shown in Fig. 1. In this embodiment, the data processing device 1 processes medical data. In other embodiments, the data processing device 1 may process other data as appropriate.
[0048] The data processing device 1 comprises a computing device 2, which in this example is a personal computer (PC) or a workstation. The computing device 2 is connected to a display screen 6 or other display device, and to one or more input devices 8, such as a computer keyboard and mouse.
[0049] The computing device 2 retrieves the data set from the data store 10. The data set may be generated or retrieved using any suitable device or from any source.
[0050] In one embodiment, at least a portion of the data may include or be determined from medical imaging data, e.g., acquired by the scanner 4. The scanner 4 generates medical imaging data including two-dimensional, three-dimensional, or four-dimensional data of any imaging modality. For example, the scanner 4 may include a magnetic resonance (MR or MRI) scanner, a computed tomography (CT) scanner, a cone-beam CT scanner, an X-ray scanner, an ultrasound scanner, a positron emission tomography (PET) scanner, or a single photon emission computed tomography (SPECT) scanner. The medical imaging data may include or be associated with additional conditioning data, e.g., including non-imaging data.
[0051] Computing device 2 may, for example, receive data from one or more other data stores (not shown) instead of or in addition to data store 10. For example, computing device 2 may receive data from one or more remote data stores (not shown) that are part of a Picture Archiving and Communication System (PACS) or other information system.
[0052] Computing device 2 provides processing resources for automatically or semi-automatically processing data. Computing device 2 includes a processing unit 12. Processing unit 12 includes a model training circuit 14, a data processing circuit 16, and an interface circuit 18. Model training circuit 14 trains one or more models. Data processing circuit 16 applies one or more trained models to perform other processing. Interface circuit 18 obtains user input or other input and / or outputs results of data processing.
[0053] In this embodiment, each of the circuits 14, 16, 18 in computing device 2 is implemented by a computer program that includes computer readable instructions for performing a method according to the embodiment, although in other embodiments, the various circuits may be implemented as one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs).
[0054] The computing device 2 also includes a hard drive and other components of a PC, i.e. RAM, ROM, a data bus, an operating system including various device drivers, and hardware devices including a graphics card, etc. For clarity, Figure 1 does not show these components.
[0055] The data processing apparatus 1 of FIG. 1 executes a number of methods as illustrated and / or described below.
[0056] Fig. 2 is a schematic diagram illustrating a medical image processing method according to an embodiment. Fig. 2 shows a scan request 22 including text data with a clinical history of a patient's symptoms. A scan image 24 is obtained by imaging techniques such as X-ray, MRI, CT scan, etc. The scan request 22 is fed to a text encoder 26 in the form of a text encoder network. In this embodiment, the text encoder network may include a transformer. The text encoder is also referred to as an auxiliary trained machine learning model. The text encoder 26 generates embeddings for tokens representing the text of the scan request 22.
[0057] The text may include, for example, any relevant clinical information. By way of example, the clinical information may relate to clinical findings, the patient's condition, medical or family history, or may relate to the nature of the scan, the measurement parameters of the scan, other findings, findings from a physical exam, current medications or other treatments, potential diagnostic risk factors, or other information related to the presence and nature of lesions seen in the images. For example, a scan request often includes information (e.g., clinical history) regarding the measurement, distribution, and type of symptoms, which correspond to the measurement and distribution of the lesions (e.g., stroke lesions). Purely for illustrative purposes, the following examples are given: "Right side upper limb weakness, -tPA candidate", "Idiopathic dizziness and vertigo, -POCS, -cerebellar stroke", "Left face ptosis, thrombolysis candidate, exclude hemorrhage". The text of the scan request may include location information regarding the measurements, as well as the parts of the body (e.g., face, arm, etc.) where the symptoms are located, which correspond to specific areas of the brain or other areas. It is a feature of embodiments that such text can be input as conditioning information to lesion segmentation networks and other segmentation models to improve segmentation performance.
[0058] The encoded text is provided to a conditioning mechanism 28, and the scanned image 24 is provided to an image segmentation model 30. The conditioning mechanism 28 directs the image segmentation model 30 to one or more specific locations in the scanned image 24 according to the text of the scan request 22. The locations are also referred to as regions of interest. The conditioning mechanism 28 may comprise an INSIDE mechanism, a FiLM mechanism, or other suitable conditioning mechanism. The FiLM mechanism used is disclosed in "FiLM: Visual Reasoning with a General Conditioning layer, Perez et. al, arXiv:1709.07871, 2017". The INSIDE mechanism is described in U.S. Patent Application Serial No. 16 / 992,466, the entire contents of which are incorporated herein by reference. The image segmentation model 30 processes the image and the received text information to generate an output image 32 and an output text 34. The image segmentation model is also referred to as a primary machine learning model.
[0059] Although the present embodiment describes the use of text from a scan request 22 , text from any relevant source can be used as input to the text encoder 26 .
[0060] In another embodiment, the method works in the latent space of the image segmentation model. The method uses text data to identify selected features or characteristics in the latent space, e.g., with high attention, in which a conditioning mechanism identifies selected features or characteristics. The selected features or characteristics may also be referred to as the attentioned selection space. For example, in one example, symptoms on the right side of the body (e.g., a patient exhibiting right-sided weakness) may indicate a lesion on the opposite (left) side of the brain, so if the text describes the symptoms and their laterality, the laterality information is extracted from the text encoder and sent to the image segmentation network to map the symptoms to a higher attention on the opposite (left) side. Alternatively, the symptoms themselves can be mapped to specific brain regions. For example, mapping "dizziness" to the cerebellum ("patient complains of being dizzy for the past 4 hours").
[0061] In the embodiment of FIG. 2, the image segmentation model 30 is a trained convolutional neural network (CNN), for example trained using the model training circuitry 14 or based on other remote or local learning processes. In one embodiment, the pre-trained model may be provided on the device 1 or may be stored remotely and the device 1 may access the model via a network or other communication link. In this embodiment, the training is performed using annotated training medical image data sets including medical image data. The medical image data may be, for example, two-dimensional or three-dimensional data representing the anatomical region under consideration. Each data set is provided with annotations to identify specific anatomical features or lesions of interest as the subject of the model training process. The model training process has the purpose of training the model so that, for example, the data processing circuitry 16 can later apply the trained model to new data sets to obtain annotations of anatomical features or lesions of interest for each new data set or to perform other desired processing. Such new data sets are, for example, acquired by a scanner 4.
[0062] The annotations included in the annotated training dataset may include, for example, labels that represent segmentations of the image data (e.g., pixels or voxels, or regions of pixels or voxels, that correspond to anatomical features or lesions of interest).
[0063] The received annotated training medical image data set is sent from the interface circuitry 18 to the model training circuitry 14. In the embodiment of Figure 1, the model training circuitry 14 comprises a convolutional neural network (CNN) and trains the CNN on the annotated training medical image set.
[0064] The CNN of the embodiment of Figure 2 generally has a structure or architecture based on known CNNs and includes multiple layers, including a convolutional layer, a fully connected layer, a pooling layer, and an input-output layer, and may include other layers as appropriate depending on known CNN methods.
[0065] According to known techniques, for a particular layer, a feature map is generated as the output of the processing performed in the previous layer, and the feature map is provided as input to the particular layer. For example, the output of the layer in the form of a feature map is provided as input to the next layer of the CNN. Each layer has an appropriate number of input and output channels. Any desired processing is performed in each layer, such as filtering / convolution, pooling, ReLU processing, or other desired processing. In an embodiment, the number of layers is arbitrary, and the number and arrangement of each type of layer is only constrained by, for example, the requirements of the particular CNN method and the architecture used.
[0066] A feature of the embodiment is the inclusion of a conditioning mechanism, such as the INSIDE mechanism or the FiLM mechanism, in the form of an auxiliary network, other model or algorithm, etc., in addition to the main CNN. The auxiliary network may be another CNN, another type of neural network, a deep learning algorithm, another trainable or other model, etc.
[0067] The auxiliary network provides conditioning data that is used to constrain or influence the space of plausible outputs of the main CNN (e.g., plausible outputs for the task of identifying particular anatomical features of interest within each image dataset).
[0068] It should be noted that such conditioning data may relate to the size, location, or other characteristics of the anatomical features of the subject.
[0069] The output of the conditioning mechanism are scale (γ) and shift (β) parameters, which are used as inputs for processing at each layer of the model. The scale / shift parameters are used to transform the image Fc (e.g., a training image dataset or a feature map derived from a previous layer of a CNN) according to a batch normalization process. For example, a batch normalization process such as those described in “Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift, Ioffe et al, 2015, arXiv.1502.03167 or US2016217368” can be applied to CNNs as appropriate.
[0070] As part of the process, different scale (γ) and shift (β) factors are applied to each channel of the corresponding layer of the CNN, boosting or suppressing the resulting individual feature maps, thereby influencing the final prediction of the CNN. However, batch normalization processes generally do not have the flexibility to adjust channels according to spatial location, so the scale / shift factors modify the entire feature map.
[0071] Spatially dependent conditioning based on non-image data is also performed at each layer of the CNN. In particular, in an embodiment, a spatially dependent filter is generated with an attention mechanism based on a differentiable function (e.g., Gaussian) that is performed before the transformation of the feature units.
[0072] The filter has the effect of constraining the regions of the medical image data so that spatial regions of the image data receive more attention (e.g., greater weight or importance) during model training. For example, if for a subject having a particular value of a non-image parameter, an anatomical feature of interest is more likely to be found in a particular spatial region of an image (e.g., a registered and / or normalized image), the filter as an attention function ensures that the particular spatial region of the image receives more attention when training a CNN or other model to label (e.g., segment) anatomical features in an image dataset.
[0073] In an embodiment, the filter is generated as a product of two Gaussian vectors (Equation 1 below) and integrated into the conditional instance normalization layer. In another embodiment, it may be three vectors of 3D scan data, such as CT or MRI scan data, which can be integrated by multiplication as well.
[0074]
number
[0075] In this embodiment, parameter values that define the shape and location of the Gaussian functions, for example the peak location and variance values of each Gaussian function, are determined as the output of a conditioning mechanism.
[0076] The filters generated by the auxiliary network acting as attention functions can be shared across feature maps or applied per channel during CNN training. For example, Gaussian or other filters with different parameter values (e.g., peak location, variance) can be used for different feature maps and / or channels of one or more layers during CNN training. The conditioning mechanism can learn the parameter values of the filters applied as attention functions to the different feature maps and / or channels in question separately. Alternatively, in one embodiment, the same filter with the same parameter values can be used as the attention function for all channels and / or more than one feature map involved.
[0077] Although a Gaussian filter acting as an attention function can be applied to one layer of a CNN, in other embodiments, filters that are attention functions can be applied to two or more different layers of a CNN, or different filters resulting from different conditioning, each acting as an attention function, can be applied to different layers of a CNN.
[0078] FIG. 3 shows a detailed embodiment of the text encoder 38. The scan request 36 containing text data is fed to the text encoder 38. The text encoder 38 outputs embeddings for tokens representing the text of the scan request 36. Word embedding in natural language processing (NLP) is a technique for representing individual words as real-valued vectors in a low-dimensional space to capture the meaning between words. A linguistic representation can be subdivided into tokens. A token can represent a paragraph, a sentence, a word, or even an element within a word. Each token is represented by a multi-dimensional real-valued vector. In this embodiment, each word in the scan request 36 is considered as a token. The text encoder 38 can use various text encoding models, including a bag-of-words tokenizer followed by a simple embedding mechanism and a pre-trained transformer model such as PubMedBert. FIG. 3 shows an embedding 40 for one token obtained by the text encoder 38.
[0079] The embeddings 40 are aggregated, for example by concatenation, into a vector Z that includes conditioning data 42. The conditioning data 42 is provided to a conditioning mechanism 44. Based on the conditioning data 42, the spatial attention of the conditioning mechanism 44 is controlled.
[0080] An example of a segmentation guided by the text encoder 38 is a laterality segmentation as specified in the scan request 36. In this embodiment, the scan request 36 includes the text "right side." It is anticipated that the text encoder 38 will extract this text and use it to guide the conditioning mechanism 44 and ultimately the image segmentation model. The text encoder 38 is also useful in applications where the scan request 36 or other available text contains implicit information that influences the selection of a region of interest for processing. In one embodiment, the text encoder 38 can learn to identify and address types of pathology, such as using "hollow sphere attention" when a fracture is located within the skull. The text encoder 38 can also identify and address types of symptoms, such as focusing on Broca's area when the input text indicates a speech disorder. The text encoder 38 can also identify and address locations of symptoms, such as focusing on the abdomen when the input text indicates abdominal pain. The text encoder 38 may be provided with a report that describes the patient's medical history and lesions. The text encoder 38 can also use the shape and location of lesions in previous scans to derive an image segmentation model for a new scan.
[0081] In another embodiment, which may be provided separately, data supervision may be added to the output of the text encoder 50 based on known structured ground truth data. Figure 4 shows input data 46, which includes image and text information. There are two main features in the input image, one seen in the right half of the scan and one seen in the left half. The accompanying text represents the patient's clinical history and reads "Right-sided weakness."
[0082] The text in the input data 46 is fed to a text encoder 50 that comprises a transformer. The text encoder 50 generates embeddings for tokens that represent the text in the input data 46. The output of the text encoder is monitored based on information from the ground truth 48. This monitoring mechanism may comprise, for example, a standard classification task or a cross-entropy error-based mechanism. Other monitoring mechanisms are suitable for use in different embodiments.
[0083] The ground truth 48 in this embodiment represents "Laterality: Right". The text encoded by the supervised encoding process is provided to a conditioning mechanism 44. The scanned image from the input data 46 is provided to an image segmentation model 52. The conditioning mechanism 44 directs the image segmentation model 52 to a particular location or locations within the scanned image in response to the text of the input data 46 and the text encoding based on the data of the ground truth 48. The conditioning mechanism 44 may comprise an INSIDE mechanism or a FiLM mechanism. The image segmentation model 52 processes the received image and text information and generates an output image 54. It can be seen from FIG. 4 that the image segmentation model 52 has segmented image features in the right half of the scan.
[0084] In another embodiment, the output of the text encoder can be supervised based on the corresponding synthesized image-text pairs. The relationship between text and attention should be similar to the real data, but the images may look very different. For example, even if the synthetic images are not very similar to the human anatomy, the laterality relationship can be accurately reproduced in the attention modeling. Note that adding supervision to a particular dimension does not preclude useful additional information being extracted by the network. Supervision of structured data is considered an auxiliary task to the output of the text encoder, but extensive training of the text encoder together with an image segmentation model allows for more information extraction than just laterality (e.g., information about the location of lesions, appearance).
[0085] The ground truth used for data monitoring in this embodiment is the laterality of the symptom, although in other embodiments various other structured ground truths can be used such as the location or type of symptom, the type of lesion, the shape, location or type of lesion included in the clinical history, etc.
[0086] In another embodiment, which may be provided separately, the attention mechanism may be directly supervised based on known ground truth data. The attention vectors can be fed into an image segmentation model, or the attention vectors may be subsumed into the image segmentation model. FIG. 5 shows input data 56, which includes image and text information. The input image has two main features, one seen in the right half of the scan and one seen in the left half. The accompanying text represents the patient's clinical history and reads "Right-sided weakness."
[0087] The text in the input data 56 is fed to a text encoder 58 that comprises a transformer. The text encoder 58 generates embeddings for tokens that represent the text of the input data 56 and feeds them to a conditioning mechanism 62. The ground truth 60 in this embodiment represents "lateralization: "right". By feeding the ground truth 60 to the conditioning mechanism 62, it is possible to modulate the attention vector of the image segmentation model 64. The attention modulation mechanism may comprise applying a penalty term to the attention vector based on the ground truth.
[0088] Training the text encoder network or other auxiliary trained machine learning model includes applying a penalty to the loss function for training without following the structured data. Training the primary machine learning model in one embodiment also includes applying a penalty to the loss function for training without following the structured data.
[0089] The scanned image from the input data 56 is provided to an image segmentation model 64. A conditioning mechanism 62 directs the image segmentation model 64 to one or more specific locations within the scanned image in response to an attention mechanism modulated based on the text of the input data 56 and the ground truth 60 data. The conditioning mechanism 62 may comprise an INSIDE mechanism or a FiLM mechanism. The image segmentation model 64 processes the received image and text information and generates an output image 68. It can be seen from FIG. 5 that the image segmentation model 64 has segmented image features in the right half of the scan.
[0090] The ground truth used for data monitoring in this embodiment is the laterality of the symptom, although in other embodiments various other structured ground truths can be used such as the location or type of symptom, the type of lesion, the shape, location or type of lesion included in the clinical history, etc.
[0091] FIG. 6 shows three images from a medical scan. The three images are overlaid with visual markings of the applied attention vector. The attention vector in this embodiment is modulated by the mechanism described in the embodiment corresponding to FIG. 5, where a penalty term is applied to the attention vector based on the ground truth. FIG. 6a shows the scan 600 and the right half of an image 602 penalized for attention vector generation. On the right side of the image, low attention values are rewarded and high attention values are penalized. The vector exists regardless of the loss function placed on the value. This encourages the attention vector to look at the left half of the image. FIG. 6b shows the scan 600 and the left half of an image 604 penalized for attention vector generation. This encourages the attention vector to look at the right half of the image. FIG. 6c shows the scan 600 with no penalty applied to the attention mechanism. In this case, the attention vector is not biased towards a particular lateral direction. Although this embodiment relates to a two-dimensional scan, the above technique can also be applied to three-dimensional scan.
[0092] In another embodiment, which may be provided separately, the conditioning mechanism uses a signed distance function (SDF) or other loss function for custom shapes, instead of controlling the parameters of a distribution such as a Gaussian distribution. It is known that lesions of a certain appearance or shape tend to have certain shapes. For example, in a head CT image, fractures tend to be found on the surface of the skull rather than in the center of the brain. The SDF can, for example, create a smoothly descending gradient around a hollow sphere of a 3D skull, or slice the 3D scan to create and process a 2D annular shape.
[0093] Figure 7A shows a graph 74 of signed distances between a fixed disk 70 and points on a plane 72 that contains the fixed disk 70. Figure 7B shows a graph 78 of signed distances between a more complex shape 76 and points on a plane 72 that contains the shape 76. In Figure 7C the signed distance field 701 is shown as a raster image representing the shape. The signed distance field 701 is saved in this format and used to condition an image analysis model.
[0094] The text encoder can influence the choice of function used for the attention of the conditioning mechanism.
[0095] In another embodiment, which may be provided separately, the model learns on real data with augmentation. Augmentation provides the network with direct counterexamples (e.g., counterfactual data) during training to encourage learning the meaning of conditioning information by inverting, transforming, or modifying the attributes of the lesion. Conditional inputs are adjusted according to the attribute inversion. As an example, in the case of laterality described above, there are three possible values (left, right, both sides), so a switch from left to right is considered an inversion. However, in another example, the type of symptom is modified (e.g., from "weakness" to "dizziness") and the anatomical location of interest is changed accordingly from the cerebrum to the cerebellum. In a third example, the onset of a lesion (e.g., stroke) is changed from hours to years and the appearance of the lesion in the image is changed accordingly from a faintly dark area to a black area (dead brain, i.e., infarction).
[0096] FIG. 8 illustrates a method 800 for processing image and text data using counterfactual augmentation. Input data 80 including text is provided to a text encoder 82, which generates word embeddings and provides them to a conditioning mechanism 84. A scanned image 86 is augmented, such as by inverting the attributes of the lesions, to obtain an augmented scanned image 88. Any augmentation process may be used, as appropriate, for example introducing lesions in different locations (e.g., parts of the brain or other anatomy) or lesions with different appearances (e.g., brightness, texture). These patterns can be achieved by simply copying, pasting, and transforming the original lesions. Optionally, a registration atlas can be combined to ensure that the locations are correctly mapped to the input text. The augmented scanned image 88 is provided to an image segmentation model 90, which generates an output image 94 and output text 92.
[0097] For example, a “copy-paste” technique is used to copy the lesion of interest from the original image (using the ground truth segmentation) and insert it into a new location. The copy / paste technique involves “copying” a portion of the image that corresponds to the ground truth lesion label (segmentation) and “pasting” it into another portion of the image after transforming its appearance, e.g., increasing or decreasing its luminosity (brightness). This results in more than one segmentation candidate lesion in the image, and the network relies on text supervision to know which lesion to segment. In this way, the network is encouraged to utilize the text input rather than ignoring it. The new location is identified based on the type of structured data used. In method 800, the inverted attribute is laterality, so the lesion is copied or mirrored and pasted. Laterality is then randomly assigned and the correct ground truth segmentation is selected. For example, the “ground truth segmentation label” may be modified rather than the mask. The augmented images are intentionally identical, with two possible lesions (left and right). The ground truth mask can be changed to a) left, b) right, or c) both. The corresponding condition text is also modified accordingly. In this way, the network learns to encode the laterality information in order to segment the correct lesion.
[0098] The training data of various embodiments includes at least training data that represents counterexamples or other properties that prompt the primary machine learning model to use or be influenced by conditioning information and / or the output of auxiliary trained machine learning models.
[0099] In another embodiment, which may be provided separately, a clinician may use the model in a feedback loop, where the clinician uses conversational language to instruct the model to improve segmentation, which requires additional training data consisting of user input and prompts.
[0100] In yet another embodiment, other user inputs are obtained accordingly, and the spatial attention mechanism of the main machine learning model is modified according to the user input, and / or the text data is augmented or modified based on the user input. For example, a clinician may be dissatisfied with the segmentation results (perhaps due to a lack of clinical history or a clinical history that focuses too much attention on one part of the image and ignores the rest, etc.) and would like to insert additional text. In one embodiment, the text encoder is augmented or extended with a large language model (LLM) or other trained model, or the text encoder is augmented or extended to interact with an LLM or the like. Examples include clinical instructions regarding the location and appearance of lesions that are desired to be segmented. For example, "Please segment chronic lesions", "Please segment age-related changes", "Please segment left subdural hematoma", etc.
[0101] FIG. 9 shows two stages of the process. In the first stage, input data 80 is fed to text encoder 82, conditioning mechanism 84, and image segmentation model 90. Image segmentation model 90 generates output image 94 and output text 92. The user may then provide another text input to the text encoder as input prompt 96. In this embodiment, input data 80 includes information about a lesion on the right side of the image. Input prompt 96 reads "Is there anything on the left side?" Input prompt 96 is processed by text encoder 82, conditioning mechanism 84, and image segmentation model 90. Image segmentation model 90 generates a second output image 98 and a second output text 100 based on input prompt 96.
[0102] In another embodiment, which may be provided separately, a Named Entity Recognition (NER) mechanism is applied to extract proper names and the like from the text. The NER mechanism is an attention layer attached to the text encoder. The encodings of these named entities from the text encoder are extracted and used to condition a separate attention mechanism.
[0103] FIG. 10 shows input data 80 provided to the text encoder 82. The vector representation of the text obtained by the text encoder 82 is provided to the NER model 102 as well as the INSIDE module 104. The NER model 102 can be a known text classification model (e.g., BERT) or a linguistic rule-based algorithm for detecting named entities. The output can be a prediction of the lesions of the subjects and their attributes. This can supervise the attention mechanism to better localize the lesions of each subject based on the attribute information. In other embodiments, the named entities can be used as condition inputs. This is somewhat similar to the structured data loss prevention approach, but the goal is to extract useful structured data not only as an auxiliary supervision but also as the actual output to be input to the imaging model instead of the text.
[0104] We next describe the results of an experiment in which we extended the INSIDE mechanism to 3D scanning, and tested whether laterality could be used as conditioning information for INSIDE. We conducted the experiment using structured data only.
[0105] We can see that the model successfully learned attention for the left, right, and both sides of the input. The example on the right is Gaussian attention. Gaussian attention can be replaced by a signed distance function to learn arbitrary shapes. For example, the text "?Fracture" trains hollow sphere attention to focus the model on the skull.
[0106] Table 1 shows the conditioning data vector "Z" and the segmentation tasks for three different laterality.
[0107] [Table 1]
[0108] FIG. 11 shows the input image 110, Gaussian attention 112, and prediction 114 of the image segmentation model 90 in the experiment.
[0109] In the first experiment, we trained the model only on real data to check whether adding laterality information could improve the segmentation accuracy. The results of the first experiment are shown in Table 2. It can be seen that adding conditioning information and adding laterality to conditioning information improved the total Dice score of the process.
[0110] [Table 2]
[0111] In the second experiment, we extended the real dataset with a laterality-related "copy, mirror, paste" operation as a sanity check to ensure that the model was using INSIDE correctly. We made the segmentation rely on conditioning information (since there are two lesions and conditioning information determines which one should be segmented). We extended both the training and validation data. As a result, we expected the performance of the UNet3D model to degrade compared to the results of the first experiment.
[0112] Table 3 shows the results of the second experiment.
[0113] [Table 3]
[0114] The data on which the results in Tables 2 and 3 were based included a dataset containing 188 head CT scans with ground truth segmentations of hemorrhages and surrounding edema. The volumes were preprocessed by windowing, normalization, and resampling to a resolution of 2 mm. The dataset was split into 85 training volumes (73 containing hemorrhages), 20 validation volumes (18 containing hemorrhages), and 83 test volumes (69 containing hemorrhages). The models were trained on real data only. One of the trained models included only UNet3D. Another model was trained that included the INSIDE conditioning module, but no ablation sensing and conditioning information was input. Finally, another model was trained using laterality as input to the conditioning model.
[0115] In various embodiments, any trained model can be used as appropriate. In the embodiment that obtained the results in Tables 2 and 3, a 3D UNet encoder / decoder architecture was used with a three-stage downsampling / upsampling process. Such an architecture is described, for example, in “Ronneberger, Olaf, Philipp Fischer, and Thomas Brox, “U-net: Convolutional Networks for biomedical image segmentation”, Medical Image Computing and Computer-Assisted Intervention-MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18, Springer International Publishing, 2015”. Each stage of the encoder consists of two weight-normalized convolution layers (for example, as described in “Qiao, Siyuan, et al., “Micro-batch training with batch-channel normalization and weight standardization” arXiv preprint arXiv:1903.10520 (2019)”). The kernel sizes are 3, 32, and 64, respectively, and the number of output channels of the three stages is 128. The three stages are followed by a Swish activation layer (see, for example, Ramachandran, Prajit, Barret Zoph, and Quoc V. Le, "Searching for activation functions", arXiv preprint arXiv: 1710.05941 (2017)) and a group normalization layer (see, for example, Wu, Yuxin, and Kaiming He., "Group normalization", Proceedings of the European conference on computer vision (ECCV), 2018)).An average 2 x 2 x 2 pooling layer is used for downsampling. The decoder architecture is the inverse of the encoder, and a transposed convolutional layer is used for upsampling. The model is trained for 400 iterations with a batch size of 2 using a combination of Dice and binary cross entropy error for the 3D UNet model. We use the Adam algorithm (e.g., as described in “Reddi, Sashank J., Satyen Kale, and Sanjiv Kumar, “On the convergence of adam and beyond”, arXiv preprint arXiv:1904.09237 (2019)”) with a OneCycleLR learning rate schedule (e.g., as described in “Smith, Leslie N., and Nicholay Topin, “Super-convergence: Very fast training of neural networks using large learning rates”, Artificial intelligence and machine learning for multi-domain operations applications”, Vol. 11006, SPIE, 2019”) with a maximum learning rate of 0.0001. Early stopping is applied to the validation dataset Dice (patience with 20 epochs).
[0116] In the third experiment, a synthetic imaging dataset was used as input to the model with real text data. A text encoder model (PubMedBERT
[17] ) was added to the same setup as in the previous experiment. The output of the text encoder model was input to the conditioning module. The setup was trained using a batch size of 8 for 50 epochs. Early stopping was applied on the Dice score of the validation dataset (patience 20). Different learning rates were used for the image and text parts of the model (5e for text). -6 , 5e for imaging -4). A real text dataset from radiology reports was used, aligned to the actual head CT scans used in the first and second experiments. The clinical history / display field from each report was extracted and mapped to laterality. A matching real clinical history was selected for each synthetic image based on the laterality of the corresponding ground truth segmentation. The results show that the text encoder model successfully processes text input and improves segmentation predictions on this data.
[0117] Table 4 shows the results of the third experiment.
[0118] [Table 4]
[0119] Although particular circuits are described herein, in other embodiments, the functionality of one or more of these circuits may be implemented by a single processing resource or other component. Or, the functionality implemented by a single circuit may be implemented by a combination of two or more processing resources or other components. A single circuit includes multiple components, whether separate from one another, that implement the functionality of the circuit. Multiple circuits includes a single component that implements the functionality of the circuits.
[0120] Although some embodiments have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. The novel method and system can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are within the scope of the invention and its equivalents as defined in the claims, as well as the scope and spirit of the invention.
Claims
1. receiving and processing medical image data; receiving text data including clinical information related to the medical image data; identifying a target processing region of the medical image data or a target processing region within a space derived from the medical image data based on the text data; a processing circuit for processing at least the identified processing region of interest in the medical image data or in a space derived from the medical image data; Medical imaging equipment.
2. and processing the identified processing region of interest includes performing a segmentation process to segment the identified anatomical features and / or lesions.
2. The apparatus of claim 1.
3. The processing includes applying a master trained machine learning model to the medical image data; the master trained machine learning model includes or receives conditioning information to condition an output of the master machine learning model such that the output depends on both the medical image data and the conditioning information; 2. The apparatus of claim 1.
4. the processing circuitry identifies the target processing region by applying an auxiliary trained machine learning model to the text data.
4. The apparatus of claim 3.
5. the auxiliary trained machine learning model comprises a text encoder network; the text encoder network generates embeddings of tokens representing text of the text data and integrates the embeddings into vectors that are, or form part of, conditioning information for the master machine learning model; 5. The apparatus of claim 4.
6. the processing circuitry applies additional conditioning processes to ensure or encourage the master machine learning model to take into account spatial information in the text data.
5. The apparatus of claim 4.
7. The additional conditioning process is a process of modifying an attention vector representing spatial attention input or included in the main machine learning model.
7. The apparatus of claim 6.
8. The additional conditioning process represents the shape or other properties of a lesion or other feature of interest and conditions the main machine learning model.
7. The apparatus of claim 6.
9. The additional conditioning process is a process of conditioning the main machine learning model using a signed distance field or other loss function.
9. The apparatus of claim 8.
10. training the auxiliary trained machine learning model includes applying a penalty to a loss function for training without following the structured data; 5. The apparatus of claim 4.
11. Training the master trained machine learning model includes applying a penalty to a loss function for training without following the structured data.
4. The apparatus of claim 3.
12. The master trained machine learning model is trained using at least counterfactual training data and / or counterfactual training methods.
4. The apparatus of claim 3.
13. the training data includes at least training data representing counterexamples or other properties for encouraging the master machine learning model to use or be influenced by the conditioning information and / or the output of the auxiliary trained machine learning model; 13. The apparatus of claim 12.
14. The processing circuitry includes: Receive user input; modifying at least one of the spatial attention mechanisms of the primary machine learning model in response to user input; and / or enhancing or modifying the text data based on the user input; 4. The apparatus of claim 3.
15. The processing circuitry includes: Receive user input; using said user input in a feedback loop; the feedback loop includes modifying at least one of the input to the auxiliary machine learning model, the output of the auxiliary machine learning model, and / or the input to the main machine learning model based on the user input, and recalculating the output of the main machine learning model.
6. The apparatus of claim 5.
16. the text data includes at least one radiology report and / or a clinician's note or a user's note; 2. The apparatus of claim 1.
17. the medical image data comprises at least one of magnetic resonance imaging (MRI) data, computed tomography (CT) data, cone-beam CT data, x-ray data, ultrasound data, positron emission tomography (PET) data, and single photon emission computed tomography (SPECT) data; 2. The apparatus of claim 1.
18. Receiving medical image data; receiving text data including clinical information related to the medical image data; identifying a target processing region of the medical image data based on the text data; and processing at least an identified processing region of interest within the medical image data. Image processing device method.
19. 1. A processing device for training at least one of a primary machine learning model and an auxiliary machine learning model based on a training image dataset and corresponding text data, the processing device comprising: training the master machine learning model includes training the master machine learning model to perform segmentation based on the medical image data and conditioning information received from the auxiliary machine learning model; training the auxiliary machine learning model includes training the auxiliary machine learning model on at least the text data and providing conditioning information to the primary machine learning model to identify a target processing region; Processing unit.
20. 1. A method for training at least one of a primary machine learning model and an auxiliary machine learning model based on a training image dataset and corresponding text data, the method comprising: training the primary machine learning model to perform a segmentation based on medical image data and conditioning information received from the secondary machine learning model; and / or training the auxiliary machine learning model on at least text data; and providing conditioning information to the primary machine learning model to identify processing regions of interest. method.
Citation Information
Cited By
Information processing method, computer program, and information processing device
WO2026164230A1
