Image data processing apparatus and method
By training an image analysis model to identify anatomical regions and apply spatial information to transformer models, the apparatus enhances the accuracy and interpretability of clinical image processing tasks, particularly in medical image captioning.
Patent Information
- Application Number
- JP2024025189
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-19
- Filing Date
- 2024-02-22
- Publication Date
- 2024-09-18
AI Technical Summary
Transformer models applied to images often produce inaccurate and difficult to interpret outputs, particularly in clinical applications like image captioning, due to a lack of spatial correspondence between input and output.
A data processing apparatus and method that includes training an image analysis model to identify anatomical regions within medical images, creating image tokens using a visual information extractor, and applying these tokens to a transformer model to enhance accuracy and interpretability.
Improves the accuracy and interpretability of transformer model outputs by normalizing semantic structure with spatial information, allowing for more precise anatomical feature extraction and generation of accurate clinical reports.
Smart Images

Figure 2024125274000001
Abstract
Description
[Technical field]
[0001] The embodiments described herein generally relate to methods and apparatus for processing image data, for example by using a first model to generate image tokens and inputting the image tokens into a second model to perform an image processing task. [Background technology]
[0002] Transformer models are a family of deep learning models based on the use of a multi-head self-attention mechanism. Transformer models may be used, for example, in image classification, visual question answering, image captioning, and / or automated reporting.
[0003] Inputs to the Transformer often include image tokens from a visual information extractor, a position embedding that gives a vector representation of the index in the input sequence, and a segment embedding that gives a vector representation of the input modality. Input data for a Transformer model for medical image processing may include, for example, a sequence of global features, such as a feature map from an encoder model, or patches, such as a grid of images. Neither of these representations are dependent on the spatial structure of the input.
[0004] Depending on the choice of visual information extractor, different image token representations may be obtained, which may represent the entire image or separate objects within the image. Summary of the Invention [Problem to be solved by the invention]
[0005] In some situations, the output of a Transformer model applied to an image may not be accurate. In some situations, the output of a Transformer model applied to an image may not be easily interpretable. In some situations, the output of a Transformer model may not have the accuracy required for clinical use.
[0006] Specifically, when the subsequent task is image captioning, descriptions of anatomical locations are often inaccurate in the automatically generated reports. Masking out input tokens and observing the effect in the output usually reveals only a weak spatial correspondence between the input and the output. [Means for solving the problem]
[0007] An embodiment provides a data processing apparatus for training an image analysis model to perform a task on input data including at least image data, the data processing apparatus comprising: processing circuitry for receiving the input data, creating image tokens for input to the image analysis model by applying a visual information extractor model trained to identify anatomical regions included in the image data included in the input data and to determine labels for a predetermined subtask related to the anatomical regions, and training the image analysis model by inputting at least the image tokens.
[0008] An embodiment provides a data processing apparatus for applying an image analysis model trained to perform a task on input data including at least image data, the data processing apparatus comprising: processing circuitry for receiving the input data associated with a subject, applying a visual information extractor model trained to identify anatomical regions in the image data included in the input data and determine labels for a predefined subtask for the anatomical regions to create image tokens for input to the image analysis model, and applying the image analysis model to the image tokens, the image analysis model performing the task and generating an output related to the subject.
[0009] An embodiment provides a method for training an image analysis model to perform a task on input data including at least image data, the method including: receiving the input data, creating image tokens for input to the image analysis model by applying a visual information extractor model trained to identify anatomical regions in the image data included in the input data and to determine labels for a predefined subtask related to the anatomical regions, and training the image analysis model by inputting the image tokens.
[0010] An embodiment provides a method of applying an image analysis model trained to perform a task on input data including at least image data, the method comprising: receiving the input data associated with a subject, applying a visual information extractor model trained to identify anatomical regions in the image data included in the input data and determine labels for a predefined subtask for the anatomical regions to create image tokens for input to the image analysis model, and applying the image analysis model to the image tokens, where the image analysis model performs the task and creates an output related to the subject. [Brief description of the drawings]
[0011] Embodiments will now be described, by way of non-limiting example, and illustrated in the following figures: [Figure 1] FIG. 1 is a schematic diagram of an apparatus for processing image data according to an embodiment. [Diagram 2] FIG. 2 is a schematic diagram of a method for processing image data according to an embodiment. [Diagram 3] FIG. 3 is a schematic diagram of an image analysis model according to an embodiment. [Figure 4] FIG. 4 includes three schematic diagrams of image token representations according to an embodiment. [Diagram 5] FIG. 5 is a schematic diagram of a method for processing image data according to an embodiment. [Figure 6] FIG. 6 is a schematic diagram of an automated report generation method according to an embodiment. [Figure 7] FIG. 7 is a schematic diagram of a method for processing image data according to an embodiment. [Figure 8] FIG. 8 contains three medical images with overlaid visual features. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] A data processing device 20 according to an embodiment is shown diagrammatically in Fig. 1. In this embodiment, the data processing device 20 is configured to process medical image data. In other embodiments, the data processing device 20 may be configured to process any other suitable data.
[0013] The data processing device 20 comprises a computing device 22, in this example a personal computer (PC) or workstation, connected to a display screen 26 or other display device, and one or more input devices 28, such as a computer keyboard and a mouse.
[0014] The computing device 22 is configured to retrieve a data set from the data store 30. At least a portion of the data retrieved from the data store includes medical image data, such as, for example, data obtained using the scanner 24. The medical image data may comprise two-dimensional, three-dimensional, or four-dimensional data in any imaging modality. For example, the scanner 24 may comprise a Magnetic Resonance (MR or Magnetic Resonance Imaging (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.
[0015] The medical image data may include or be associated with additional data. The additional data may include, for example, non-image data. The non-image data may include text data. For example, the non-image data may include a patient history. The non-image data may include information about the scan, for example the reason the scan was taken. The non-image data may include a question to be answered. The non-image data may include structured clinical data. The non-image data may include genetic data.
[0016] Computing device 22 may receive data from one or more further data stores (not shown) instead of or in addition to data store 30. For example, computing device 22 may receive medical image data from one or more remote data stores (not shown) that may form part of a Picture Archiving and Communication System (PACS) or other information system.
[0017] Computing device 22 provides processing resources for automatically or semi-automatically processing the data. Computing device 22 includes a processing unit 32. Processing unit 32 includes model training circuitry 34 for training one or more models, data processing circuitry 36 for applying the trained model(s) and performing other processing, such as, for example, image classification, visual question answering, image captioning, and / or automated reporting, and inference circuitry 38 for obtaining user or other input and / or outputting results of data processing.
[0018] In this embodiment, the circuits 34, 36, 38 are each implemented in the computing device 22 by a computer program having computer readable instructions executable to perform the method of the embodiment, however, in other embodiments, the various circuits may be implemented as one or more Application Specific Integrated Circuits (ASICs) or Field Programmable Gate Arrays (FPGAs).
[0019] Computing device 22 also has a hard drive and other components of a PC, including RAM, ROM, a data bus, an operating system including various device drivers, and hardware devices including a graphics card, although such components are not shown in FIG.
[0020] The data processing apparatus 20 of FIG. 1 performs the methods illustrated and / or described below.
[0021] Figure 2 is a flow chart outlining a method 200 for processing data including medical image data according to an embodiment. In Figure 2, the data processing method is shown integrated with a multimodal automated reporting pipeline for Chest X-Ray (CXR) images. The combined method is shown to include two parts: anatomical feature extraction 40 and radiology report generation 42.
[0022] In the anatomical feature extraction 40 part, an input CXR image 44 is provided to a visual information extractor 46 to find anatomical features. The visual information extractor 46 may include a CNN. In this embodiment, the visual information extractor 46 includes a Faster R-CNN. In other embodiments, the input image may be an image of any other format, including MRI and CT scans, and may include text.
[0023] The visual information extractor 46 selects a set of candidate anatomical features 48 based on the input CXR image 44. The visual information extractor 46 is trained to identify one or more of a predefined set of spatial regions associated with particular anatomical features. These may include the upper left lung, the mediastinum, the right apex, the right atrium, and other relevant anatomical features. The set of candidate anatomical features 48 includes one or more anatomical tokens that the visual information extractor 46 identifies in the input image and one or more of a plurality of predefined findings associated with the candidate anatomical features. The acquisition of such findings may be referred to as a subtask(s).
[0024] Extracting tokens from a predefined set of spatial regions normalizes the semantic structure of the input sequence. By implicitly feeding the Transformer model with information about the location of each observation, the method leads to more accurate model predictions.
[0025] Candidate anatomical features 48 are provided as inputs to the radiology reporting part 42 and to a multi-task classifier 50. Both the multi-task classifier 50 and the radiology reporting part 42 include image analysis models.
[0026] The multi-task classifier 50 performs the tasks of anatomical structure localization and finding detection. Anatomical structure localization includes the task of predicting the bounding box coordinates of a particular element of the anatomical structure or anatomical feature. In FIG. 2, two-dimensional bounding boxes depicting the anatomical features are shown in the output CXR image 52. Finding detection is the task of predicting findings in each region. Findings may include any clinically relevant information about the patient identified in the medical image, such as symptoms associated with an anatomical feature or changes in the state of an anatomical feature. Findings may be events or changes related to a radiological examination. Findings may be improvements or deteriorations in the intensity or spatial extent of pathology.
[0027] The multi-task classifier 50 generates an output CXR image 52. The anatomical tokens in the output CXR image 52 may be labeled. The detected anatomical tokens may be visually labeled, such as bounding boxes overlaid on the output CXR image 52 of FIG. 2. Text may also be used to label the features, such as text overlaid on the output image. The output may include text created by the multi-task classifier 50. In the illustrated embodiment, the text includes labels of anatomical tokens with findings associated with the anatomical features. The format of the output CXR image 52 is specific to the embedding. In other embodiments, the detected findings and anatomical tokens may be illustrated in a variety of other ways.
[0028] The multimodal anatomical feature candidates 48 provided as input to the radiology report generation 42 part include one or more anatomical tokens 54 corresponding to the input CXR image 44 and a symptom field 56. The symptom field includes the finding labels identified during the multitask classification 50.
[0029] The information in the anatomical tokens 54 and symptoms column 56 is passed to a triple extractor 58 which generates triples 60. The triples 60 contain information that represents the relationship between two entities. In this embodiment, the entities include anatomical features and their associated properties. In other embodiments, the triples 60 may define relationships between other entities. The output CXR images 52 may include localization / detection predictions for the images resulting from the training task, such as bounding box coordinates for each anatomical region plus the probability of each finding in that region. The intermediate representation from this network (e.g., anatomical feature extraction) may be used as input to a radiology reporting model which then generates an output report 64, which in this embodiment is a text report. For example, the report generator 62 uses the multimodal input 53 and the triples 60 to generate an output report. The output report 64 in this embodiment includes text information. In other embodiments, the output report 64 may include one or more images, or a combination of text and images.
[0030] 3 is a schematic diagram of an image analysis model 66 according to an embodiment. The image analysis model includes a Transformer model that leverages a multi-head attention mechanism. Other implementations of the image analysis model include convolutional neural networks and recurrent neural networks. Transformers are state of the art in Natural Language Processing (NLP) tasks and are showing increasing promise in image processing tasks.
[0031] The input to the transformer may include image tokens, location embeddings, and segment embeddings. In FIG. 3, multimodal input data 68 is provided to a visual information extractor 46 to obtain image tokens. Location and segment embeddings are obtained from the tokenized input. The image tokens may be obtained from the visual information extractor 46, where the visual information extractor may be a residual neural network or similar neural network. The location embeddings include a vector representation of the index of the tokens in the input sequence. This allows the image analysis model to access the order of the token embeddings or the order in which the tokens appear in the input sequence. The segment embeddings include a vector representation of the modality of the input, helping the model to distinguish between different input modes, such as image data and text data. In this embodiment, the multimodal input data 68 includes data in a visually represented format and a textually represented format, although other data formats may be used in other embodiments. The textually represented data includes the input text 69 shown in FIG. 3 apart from the visually represented data. The vector representation of the input data and the format of the input data described above are provided to the Transformer model 70 for anatomical structure location, findings detection, and report generation. Tokenization is performed in the radiology report generator. Each text generation model may have its own corresponding tokenizer.
[0032] Examples of image processing tasks using Transformers include image classification, image captioning, visual question answering, and auto-reporting. The use of the Transformer architecture allows the concatenation of visual and textual inputs and the use of multi-modal inputs. Visual question answering is the task of answering questions, where the questions refer to images, and is an example of multi-modal input to an image analysis model. Auto-reporting is the task of creating a text description for an image, and may include image captioning.
[0033] Faster R-CNN may output a finding probability (a scalar value), and the Transformer may output a text description of the finding and any associated details (e.g., location, severity) to be included in the report.
[0034] 4 shows three different formats of image token representations that are typically provided to image analysis models and the methods for creating them. The format of the resulting tokens depends on the choice of the visual information extractor 46.
[0035] Fig. 4a shows an input image 72, which is divided into rectangular or square or any other suitable array of size MxN, for example, with each section called a raw pixel patch. The patches are then concatenated to form a sequence of length Np in a concatenation stage 74, where Np is an integer. The sequence of patches is processed using a large number of fully connected layers (FCL) to obtain a latent vector representation 76 of length Np of the input image. The fully connected layer generates a representation of a dimension suitable for input to the radiology reporter model. In a variation of the embodiment, this layer may be trained by predicting the class of the image or by end-to-end training with the radiology reporter model. The CNN model aims to extract the best features from each image for high reporting performance. The above representation represents the entire input image 72.
[0036] FIG. 4b shows an input image 72 that is processed using a CNN 78 to obtain feature maps of size K×L. The feature maps are then flattened and processed by FCL into Nr individual image embeddings, where Nr is an integer. The representation represents the full input image 72.
[0037] FIG. 4c shows an input image 72 that is processed using a CNN 78 to obtain one or more anatomical tokens. The image is processed using a CNN 78, a Region Proposal Network (RPN), and a Region of Interest Pooling (ROI Pool) layer 90 to obtain Na anatomical feature embeddings, i.e., anatomical tokens 88, where Na is an integer. The representation contrasts with those in FIG. 4a and 4b, as the representation represents specific objects in an image rather than the complete image. Object detection is the task of identifying instances of semantic objects in an image by detecting the box coordinates that contain them.
[0038] FIG. 5 is a schematic diagram of a method 500 for processing image data according to an embodiment. FIG. 5 shows details of the visual information extractor 46 and image analysis model 66 used to derive anatomical tokens from visual data according to an embodiment. An input image 92 is provided as input to a trained neural network 94. The trained neural network 94 may include Faster R-CNN. In this embodiment, the trained neural network 94 is trained on the "Chest ImaGenome" dataset to detect 36 anatomical features and 71 findings associated with the anatomical features. The neural network 94 derives image features 96 from the input image 92. A region proposal network (RPN) 98 is a neural network that processes the image features to propose one or more candidate bounding box coordinates for each targeted anatomical region. The output from the RPN 98 is combined with the image features 96 in a Region of Interest Pooling (ROI Pool) layer 100. The ROI Pool 100 outputs anatomical tokens 102 that correspond to the anatomical features present in the input image 92. For each candidate bounding box proposed by the RPN, the RoI pooling layer extracts the corresponding region from the image feature representation and flattens this into a vector representation.
[0039] The anatomical tokens 102 are processed by an image analysis model 66, which may include a transformer model 70. In this embodiment, the image analysis model 66 performs anatomical structure classification, bounding box regression, and multi-level classification on the anatomical tokens 102. The anatomical structure classification and multi-level classification have been described in relation to FIG. 2 and will not be repeated here. Typically, a bounding box regressor predicts the location of a target object class as a pair of coordinate locations (e.g., top left, bottom right), and the bounding box regressor is trained on ground truth bounding boxes. In Faster R-CNN, these bounding box predictions are called region proposals. Fixed anchor boxes may be used to initialize the coordinate predictions.
[0040] The image analysis model 66 produces an output 110. The output 110 may be multi-modal, such as a combination of visually represented elements and textually represented elements as shown in FIG.
[0041] In the current embodiment, the output 110 includes the input image 92 overlaid with bounding boxes 110, 112, 114. For illustrative purposes, three bounding boxes 110, 112, 114 are illustrated, although in practice the number of boxes may be greater. However, it is possible to detect three or any other desired number of anatomical regions and not others. The bounding boxes delimit coordinate points in the image that constitute one of a number of predefined anatomical features. They also indicate the classification or label of these anatomical features in text, such as "right lung" in bounding box 114, "spine" in bounding box 110, and "left lung" in bounding box 112. The output 110 further includes an output text 116 that includes the classification / label of the anatomical features and findings associated with the anatomical features. In the output text 116 of FIG. 5, the anatomical features identified in the output 110 are listed in a text format along with the corresponding findings for each anatomical feature. The format of the output 110 is not limited to this embodiment. Any combination of visual and / or textual information may be used to generate the output 110.
[0042] FIG. 6 is a schematic diagram of an automated report generation method according to an embodiment. In this embodiment, the report is a radiology report based on an input chest x-ray image. In other embodiments, the report may be taken from a different image or medical images and may include text. A multimodal input 122 provided to the radiology report generation method 120 includes one or more anatomical tokens 124 obtained by the visual information extractor and one or more symptom fields 129 that are findings associated with the anatomical tokens 124. Consider the encoder-decoder backbone of the transformer at each step. A feature of various embodiments in which a neural network is used at each step of the report generation process is that these steps may be handled by the or a transformer, and the report generator and triple extractor of this embodiment may be separate transformers. In this embodiment, there are two transformers, namely the triple extractor and the report generator, but in other embodiments any suitable other model architecture may be used.
[0043] The first step of the method is triple extraction, performed by triple extractor 128. This step obtains a structured set of information from the CXR. The information is represented as triples 130, following the format of "entity 1", "relationship", "entity 2". In this embodiment, the entities include anatomical features and their associated properties. In other embodiments, the triples 130 may define relationships between other entities. A report creator 132 uses the multimodal input 122 and the triples 130 to generate an output report 134. In this embodiment, the output report 134 includes text information. In other embodiments, the output report 134 may include one or more images or a combination of text and images.
[0044] During the training phase of the report generator 132, this embodiment applies ground truth triple masking, removing a percentage of ground truth triples from the input sequences so that the model focuses on embedding visual information.
[0045] FIG. 7 is a schematic diagram of an apparatus according to an embodiment. This embodiment includes additional elements in addition to those of the embodiment of FIG. 5. The description of this embodiment will focus on the additional elements and will not describe the previously described elements in detail. For purposes of the following discussion, the local features include feature vector representations of regions contained within the entire input image, while the global features include feature vector representations of the entire input image. In this embodiment, the image features 96 are processed using a projection layer 146 to obtain global features 142 that represent the entire input image 92. In some embodiments, local features may be used instead of global features. The image features are processed using the RPN 98 and ROI pool 100 to obtain local features 144 that represent one of a number of predefined anatomical features. The local features 144 are provided to the image analysis model 66 as inputs for the anatomical structure classification 108 and bounding box regression 106 processes. The local features 144 and the global features 142 are concatenated to form global-local tokens 140 that are provided to the image analysis model 66 for multi-label classification of findings. The image analysis model 66 produces output 110 in the format of a radiology report that includes image data and text data. The use of global features 142 in combination with local features 144 is beneficial when a particular finding spans multiple anatomical regions or, similarly, is associated with multiple anatomical tokens.
[0046] In another embodiment that may be given separately, the report generator model is trained with the finding labels obtained by the visual information extractor 46. Then, the clusters of tokens related to the findings in a given output sentence or sentences can be masked. This allows the output sentence or sentences to be included or excluded from the generated report. This is equivalent to providing counterfactual statements during training, which is beneficial for the accuracy and interpretability of the generated report. Masking strengthens the process of supervised learning between input tokens and output sentences, improving accuracy by reducing hallucinations. A closer information flow from spatially corresponding input tokens to output sentences improves the interpretability of the generated report.
[0047] Table 1 shows qualitative results of the partial report generation process performed according to the embodiment. From left to right, the columns in Table 1 show the subset of anatomical regions for which a report is requested, the ground truth partial report, the report generated by the baseline (without pre-scan and no additional sentence-anatomical region training), and finally the report generated by the embodiment method. The third column highlights the hallucinations generated by the baseline method.
[0048] [Table 1]
[0049] Table 1 can also be found in Controllable Chest X-Ray Report Generation from Longitudinal Representations, Dalla Serra et al., arXiv:2310.05881, the entire contents of which are incorporated herein by reference, and Finding-Aware Anatomical Tokens for Chest X-Ray Automated Reporting, Dalla Serra et al., arXiv:2308.15961, the entire contents of which are also incorporated herein by reference.
[0050] In another embodiment, which may be provided separately, a spatial hierarchical relationship between tokens is defined so that different hierarchies can be masked during training. In one embodiment, this involves masking out the left lung but leaving the lower, middle, and upper left lung tokens. This emphasizes that the image analysis model 66 pays attention to all tokens, even when there is overlap in the input tokens, rather than learning from a subset of tokens.
[0051] Masking may be achieved by placing anatomical regions in generational layers of the ontology that correspond to the relationships between regions in each layer. Training the image analysis model in this embodiment includes masking out the generational layers of the ontology.
[0052] 8 illustrates a CXR scan overlaid with a complete set of predefined anatomical tokens and their associated bounding boxes, labeled "All Labels" 150. The labels associated with the anatomical tokens and bounding boxes in "All Labels" 150 include: abdomen, aortic arch, cardiac image, carina, superior vena cava-atrial junction, descending aorta, left apex, left cardiac image, left cardiac angle, left clavicle, left costophrenic angle, left side diaphragm, left hilar structures, left lower lung field, left lung, left middle lung field, left upper abdomen, left upper lung field, mediastinum, right apex, right atrium, right cardiac image, right cardiac angle, right clavicle, right costophrenic angle, right side diaphragm, right hilar structures, right lower lung field, right lung, right middle lung field, right upper abdomen, right upper lung field, spine, superior vena cava, trachea, and superior mediastinum.
[0053] 8 also shows a CXR scan of "Parent Labels" 152, which shows a subset of labels from "All Labels", including left lung, right lung, upper mediastinum, cardiac view, and abdomen. Spatial hierarchical relationships may be defined between labels or tokens in "All Labels" 150 and "Parent Labels" 152 and used for masking out hierarchies during training. Spatial relationships that may be of interest may be between "Parent" and "Child" labels in this example. Each of these groups may be drawn from the "All Labels" pool.
[0054] Similarly, Figure 8 further illustrates a CXR scan of "child labels" 154, which shows a subset of labels from "all labels", including left middle lung field, left lower lung field, right atrium, superior vena cava-atrial junction, right middle lung field, right upper lung field, right lower lung field, left upper lung field, and trachea. Spatial hierarchical relationships may be defined between labels or tokens in "all labels" 150 and "child labels" 154, and used for purposes of masking out hierarchies during training. Similarly, spatial hierarchical relationships may be defined between labels or tokens in "parent labels" 152 and "child labels" 154, and used for purposes of masking out hierarchies during training.
[0055] In another embodiment that may be provided separately, token masking and token rejection may be used during deployment to control the model's predictions. For example, images may be input into the system as normal, and then tokens corresponding to regions for which no report is desired may be masked out to obtain a desired output report (e.g., describing only findings in unmasked regions). This has particular applicability when reports on specific parts of the anatomy are required, such as the heart, lungs, or skeleton in a chest scan. It may also be useful in image captioning, automated report generation, and visual question answering about specific parts of the anatomy.
[0056] In another embodiment that may be provided separately, tokens may be paired for successive scans to aid in comparison. This may aid in comparing one scan to a follow-up scan, and may be accomplished by pairing corresponding anatomical tokens at input. The finding in the case of token-pairing may be a change in an attribute of the finding between the previous scan and the current scan, or no change in that attribute. Obtaining such a finding may be referred to as a subtask. Pairing may include, for example, concatenation. While any other suitable method may be used, concatenation in some instances may have the advantage that image features corresponding to corresponding spatial locations are aligned, allowing the transformer to easily compare the image features during processing (e.g., acting as an inductive bias).
[0057] We describe experimental results obtained with one embodiment of the present invention. Table 2 reports the comparison results of anatomical structure localization and finding detection in three different embodiments of Faster R-CNN. The first of these uses only anatomical structure localization. The second uses anatomical structure localization and finding detection. The third uses anatomical structure localization and finding detection, and concatenates global and local features to obtain input tokens for the image analysis model. In Table 2, "mAP@0.5" means "Average Precision for Positive Detection with Intersection over Union (IoU)>0.5" and AUROC means the macro-average of the area under the receiver operating characteristic per finding in each anatomical region. The results are based on the publicly available Breast ImaGenome dataset. The acquisition of such findings may be referred to as subtask(s).
[0058] [Table 2]
[0059] Further implementation details of the embodiments used to obtain the results are provided.
[0060] For each CXR, anatomical structure localization was framed as a general object detection task, and the Faster R-CNN framework was employed to compute bounding box coordinates and the anatomical labels assigned to each. Specifically, for each bounding box candidate created from the Region Proposal Network (RPN)—corresponding to the top-left and bottom-right coordinates—and for the corresponding fixed-length vector (local feature) extracted from the Region of Interest (RoI) pooling layer, we classify which anatomical region the RoI corresponds to.
[0061] In parallel with predicting bounding box candidates and anatomical labels, an additional multi-label head, sometimes called a subtask, is included to detect a set of findings per anatomical region. In addition to the original Faster R-CNN implementation, we first extract a set of global features. We consider the output of a CNN backbone consisting of a ResNet-50 and a Feature Pyramid Network (FPN) as image features. Specifically, we concatenate four multi-scale feature maps from the FPN along the channel dimension. Global features g=conv2D(m) ER d ,conv2D represents a two-dimensional convolutional layer with input channels equal to Z of kernel size (K × K) and output channels equal to the same dimension d of the local feature vector lk. For each RoI k, we concatenate the corresponding local features lk and CXR global features g to later pass as input to the findings multi-label classifier glk = [g,lk]ER 2d We obtain: The global feature vector is provided as additional image-level context and contributes positively in any case where a particular finding spans multiple anatomical regions (e.g., ductal structures) or where the bounding box is not well localized. For each CXR scan, we refer to the set of concatenated global and local features as gl E RN×2d, which correspond to the input visual sequence of the proposed auto-reporting method.
[0062] During training, for example, a multi-task loss is used that includes three terms related to the subtasks: anatomy classification loss, a finding multi-label classification loss, and a box regression loss. Formally, for each predicted bounding box, we compute
[0063] L = Lanat + Lbox + λLfind
[0064] where Lanat and Lbox correspond to the classification loss and the bounding box regression loss, respectively. The finding multilevel classification loss Lfind is given by the classification weights wj = (1 / νj) 0.25 where νj is the frequency of observation j over the training set, and λ is λ=10 2 is the balancing hyperparameter set to
[0065] Given a set of CXR images I = {Ip}Pp = 1, the goal is to automatically generate a radiology report R = {Rp}Pp = 1. A two-stage approach can be used for automatic reporting on CXR images. The first step is to generate a set of CXR images I p From the structured information triple Trpp={Trppl} Ll=1 The second step, the report generation step, is defined as a triple extraction, which consists of extracting the radiology report in the form of R p It consists of the creation of
[0066] At each step, we employ a multimodal encoder-decoder transformer (fTE and fRG) and treat the two steps as a sequence-to-sequence task. Formally, we use a global-local feature set gl associated with the CXR. p and Symptoms Column I p Given the first step, we train triple extraction: Trpp = fTE(glp,Ind p) where Trpp corresponds to a target set of triples. The second step, report generation, is done using R p =fRG(glp,Ind p ,Trp p ), and gl p ,Ind p and the set of triples extracted in step 1, Trp p Given, the report R p During the training phase in step 2, a ground truth triple masking process is used to remove a percentage of the ground truth triples from the input sequence, allowing the model to focus on embedding visual information.
[0067] The input sequence consists of the concatenation of different input modalities, and the input embedding corresponds to the sum of a token embedding (textual and visual information), a position embedding, and a segment embedding (to distinguish between the two modalities).
[0068] The experiments, the results of which are shown in the table above, are based on two open-source CXR datasets: Chest ImaGenome and MIMIC-CXR. Chest ImaGenome is derived from MIMIC-CXR and introduces an atlas-based pipeline that detects anatomical bounding box regions from 242,072 anterior-posterior (AP) and dorso-ventral (PA) CXRs, and a rule-based natural language processing approach that extracts findings for each region based on the associated radiology report, along with automatically extracted additional annotations. The goal is to localize 36 anatomical regions and detect 71 findings.
[0069] The MIMIC-CXR dataset contains CXR-report pairs, which are used for report generation. Following previous work, we consider only the findings section of each report as the target report. This section contains detailed information about the findings appearing in the CXR. Additionally, we extract the symptoms column from each report and use it as additional context at each step of our report generation pipeline. This section is available during image processing and contains some relevant medical history of the patient and / or the reason the scan was taken.
[0070] Following the semi-automatic pipeline described in [6], we annotate a set of ground truth triples associated with each image-report pair. The ground truth triples serve to supervise the first step of the automated reporting pipeline.
[0071] For the experiments, the same train / val / test split as proposed for the Breast ImaGenome dataset was considered. Images were resized and cropped to a resolution of 512x512, preserving the aspect ratio.
[0072] Faster R-CNN. As described in Section 2.1, the FasterR-CNN resnet50 fpn v2 implementation available in torchvision is employed and trained to localize 36 anatomical regions and detect the presence or absence of 71 features within each region. -3 We train the model with a learning rate set to . During inference, for each CXR, we consider the predicted anatomical region with the highest confidence score and extract a 2048-dimensional local-global feature vector. Whenever no anatomical region is detected, the local feature corresponds to a 1024-dimensional zero vector.
[0073] A two-step pipeline. Each step uses the basic encoder-decoder architecture of a typical transformer. Both the encoder and decoder consist of three attention layers, each with 8 heads and 512 hidden units. All parameters are randomly initialized. Step 1 runs 10 -4 Step 2 is trained for 20 epochs with the same learning rate as step 1. During training, 50% of the ground truth triples are masked out (this percentage was empirically found to be best), while the triples extracted in step 1 are used during inference.
[0074] Faster R-CNN. We compare our proposed Faster R-CNN against two baselines: a standard Faster R-CNN trained only on anatomical structure localization to evaluate whether a feature multi-level classification head degrades localization performance, and a multi-task Faster R-CNN without global feature concatenation to evaluate the benefit of introducing some image-level context for feature detection.
[0075] Automatic reporting.,We compare our two-step approach with a one-step,baseline that does not perform the intermediate triple extraction step.,The effect of employing different visual representations:,We,study bounding boxes (BBoxes) extracted with different,structures of CNN and Faster R-CNN.
[0076] We evaluate the anatomical structure localization performance of Faster R-CNN by computing the mean average precision (mAP@0.5) for positive detection when the Intersection over Union score between the predicted bounding box and the ground truth is above 0.5. We calculate the finding detection performance by computing the average Area Under the Receiver Operating Characteristic (AUROC) for each finding in each anatomical region.
[0077] To assess the quality of the reporting metrics, we compute Natural Language Generation (NLG) metrics - BLEU, ROUGE, and METEOR - along with the Clinical Efficiency (CE) metric, which is generated by applying the CheXpert labeller to the ground truth and the generated report - extracting 14 findings - and computing the F1 precision-recall scores.
[0078] The proposed solution has the advantage of having a rich interpretable representation since each visual token embedding corresponds to a specific anatomical location.
[0079] This allows us more control over the output we generate: in some instances, we can mask out anatomical regions, so that the resulting report does not describe findings that appear in that particular region.
[0080] Dalla Serra, F., Wang, C., Deligianni, F., Dalton, J. and O'Neil,. (2023) Finding-Aware Anatomical Tokens for Chest X-Ray Automated Reporting In: MLMI 2023, Vancouver, Canada, 8 October 2023, the contents of which are incorporated by reference in their entirety. Controllable Chest X-Ray Report Generation from Longitudinal Representations, arXiv:2310.05881, Dalla Serra et al. The contents of Finding-Aware Anatomical Tokens for Chest X-Ray Automated Reporting, arXiv:2308.15961, Dalla Serra et al. are also incorporated by reference in their entirety.
[0081] Although particular circuits are described herein, in alternative embodiments, the functionality of one or more of those circuits may be provided by a single processing resource or other component, or the functionality provided by a single circuit may be provided by a combination of two or more processing resources or other components. Reference to a single circuit encompasses multiple components that provide the functionality of that circuit, whether or not such components are separate from one another. Reference to multiple circuits encompasses single components that provide the functionality of those circuits.
[0082] While certain embodiments have been described, these embodiments are presented for illustrative purposes only and are not intended to limit the scope of the invention. In fact, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions, and changes in the form of the methods and systems described herein may be made without departing from the spirit of the invention. The appended claims and their equivalents are intended to cover such forms and modifications as fall within the scope of the invention.
[0083] Regarding the above embodiment, the following supplementary notes are disclosed as one aspect and optional features of the invention.
[0084] (Appendix 1) In a first aspect, there is provided a data processing apparatus for training an image analysis model to perform a task on input data comprising at least image data, the data processing apparatus comprising processing circuitry for receiving image data, creating at least image tokens for input to the image analysis model by applying a visual information extractor trained to identify anatomical regions in the image data and determine labels for a predetermined subtask related to the anatomical regions, and training the image analysis model by inputting at least the image tokens. (Appendix 2) A token is a unit of the input sequence. It can represent a word or subword (text token), or an image patch or anatomical structure (visual token). (Appendix 3) The tasks for which the image analysis models are trained may include image classification, visual question answering, image captioning, and automated reporting. (Appendix 4) The image analysis model may include a Transformer model, which may include a Bidirectional Encoder Representations from Transformers (BERT) model. (Appendix 5) The image analysis model may include any model that takes inputs including sequences. The image model may include a recurrent model. The image analysis model may include a convolutional neural network (CNN). (Appendix 6) The visual information extractor model may include a convolutional neural network (CNN).The visual information extractor model may include a Faster Region-based convolutional neural network (Faster R-CNN) model. (Appendix 7) The input data may include multimodal data. The visual information extractor may be applied to the multimodal data. The multimodal data may include a first data type including image data and a second, different data type. The second data type may include text data. The second data type may include structured clinical data. The second data type may include genetic data. (Appendix 8) The input data may further include text data. The image analysis model may be applied to the text data. The image tokens may be concatenated. Tokens representing the text data may be concatenated with the image tokens. (Appendix 9) The text data may include patient history data. The text data may include scan information. The text data may include information regarding a question to be answered. The text data may include information regarding the task to be performed. The text data may include at least a portion of a report, such as, for example, a radiology report. The text data may include at least a portion of a previous report, such as, for example, a previous radiology report. (Appendix 10) The predetermined subtask may relate to the task performed by the image analysis model. The predetermined subtask may comprise a part of the task performed by the image analysis model. (Appendix 11) The predetermined subtask may be a task for obtaining a finding regarding the anatomical region. The predetermined subtask may be a task for determining the presence of a finding in the anatomical region. The predetermined subtask may be a task for determining the absence of a finding in the anatomical region. (Appendix 12) The findings may include at least one of a medical condition, a pathology, a state, a change, a deterioration. The findings may include radiological findings. (Appendix 13) Training the image analysis model may include inputting ground truth data comprising the results of the task to be performed. (Appendix 14) The results may include a text output. The text output may include a radiology report. (Appendix 15) The identifying the anatomical region may include determining a bounding box for the anatomical region. The visual information extractor model may identify a plurality of anatomical regions. The identifying the plurality of anatomical regions may include determining a bounding box for each of the plurality of anatomical regions. (Appendix 16) The plurality of anatomical regions may be different generational layers of an ontology. Training the image analysis model may include masking out at least one generational layer of the ontology. (Appendix 17) Creating the image tokens may include concatenating feature representations of the anatomical regions to a global image representation. (Appendix 18) The visual information extractor model may determine a label for the given subtask for each cluster of anatomical regions. (Appendix 19) Training the image analysis model may include masking out clusters of the anatomical regions for that given subtask. (Appendix 20) The visual information extractor model may determine a label for the given subtask for each of a number of anatomical regions. (Appendix 21) Training the image analysis model may further include inputting ground truth data including results of the task to be performed. The results may include text data including a plurality of sentences. Training the image analysis model may include deleting at least one sentence from the plurality of sentences that is related to the given subtask. Training the image analysis method may further include masking out a cluster of anatomical regions that corresponds to the deleted at least one sentence. (Appendix 22) The image data may include data from two scans of a subject. The two scans may include a current scan and a previous scan. Corresponding image tokens from the current scan and the previous scan may be paired when inputting the image tokens into the image analysis model. The predetermined subtask may predict a change in an attribute of a finding between the current scan and the previous scan, or the absence of a change in the attribute. (Appendix 23) In a further aspect, which may be provided independently, there is provided a data processing method for training an image analysis model to perform a task on input data including at least image data, the method including receiving image data, creating image tokens for input to the image analysis model by applying a visual information extractor model trained to identify anatomical regions included in the image data and determine labels for a predetermined subtask related to the anatomical regions, and training the image analysis model by inputting the image tokens. (Appendix 24) In a further aspect, which may be independently provided, a data processing apparatus is provided for applying an image analysis model trained to perform a task on input data including at least image data, the data processing apparatus comprising: processing circuitry for receiving image data associated with a subject, applying a visual information extractor model trained to identify anatomical regions included in the image data included in the input data and determine labels for a predefined subtask for the anatomical regions to create image tokens for input to the image analysis model, and applying the image analysis model to the image tokens, whereby the image analysis model performs the task and creates an output related to the subject. (Appendix 25) The tasks for which the image analysis model is trained may include image classification. The tasks for which the image analysis model is trained may include visual question answering. The tasks for which the image analysis model is trained may include image captioning. The tasks for which the image analysis model is trained may include automated reporting. (Appendix 26) The image analysis model may include a Transformer model, which may include a Bidirectional Encoder Representations from Transformers (BERT) model. (Appendix 27) The image analysis model may include any model that takes inputs including sequences. The image model may include a recurrent model. The image analysis model may include a convolutional neural network (CNN). (Appendix 28) The visual information extractor model may include a convolutional neural network (CNN).The visual information extractor model may include a Faster Region-based convolutional neural network (Faster R-CNN) model. (Appendix 29) The input data may include multimodal data. The visual information extractor model may be applied to the multimodal data. The multimodal data may include a first data type including image data and a second, different data type. The second data type may include text data. The second data type may include structured clinical data. The second data type may include genetic data. (Appendix 30) The input data may further include text data. The image analysis model may be applied to the text data. The image tokens may be concatenated. Tokens representing the text data may be concatenated with the image tokens. (Appendix 31) The text data may include patient history data. The text data may include scan information. The text data may include information regarding a question to be answered. The text data may include information regarding the task to be performed. The text data may include at least a portion of a report, such as, for example, a radiology report. The text data may include at least a portion of a previous report, such as, for example, a previous radiology report. (Appendix 32) The predetermined subtask may relate to the task performed by the image analysis model. The predetermined subtask may comprise a part of the task performed by the image analysis model. (Appendix 33) The predetermined subtask may be a task for detecting a finding in the anatomical region. The predetermined subtask may be a task for determining the presence of a finding in the anatomical region. The predetermined subtask may be a task for determining the absence of a finding in the anatomical region. (Appendix 34) The findings may include at least one of a medical condition, a pathology, a state, a change, a deterioration. The findings may include radiological findings. (Appendix 35) The output may include a text output.The output may include a radiology report. (Appendix 36) The identifying the anatomical region may include determining a bounding box for the anatomical region. The visual information extractor model may identify a plurality of anatomical regions. The identifying the plurality of anatomical regions may include determining a bounding box for each of the plurality of anatomical regions. (Appendix 37) Creating the image tokens may include concatenating feature representations of the anatomical regions to a global image representation. (Appendix 38) The visual information extractor model may determine a label for the given subtask for each cluster of anatomical regions. (Appendix 39) The processing circuitry may further receive an input from a user indicating a selection of a subset of the plurality of anatomical regions, and may further limit the image tokens used by the image analysis model according to the selection. (Appendix 40) The image data may include data from two scans of the subject, the two scans may include a current scan and a previous scan, and corresponding image tokens from the current scan and the previous scan may be paired when inputting the image tokens into the image analysis model. (Appendix 41) The task may include visual question answering. The processing circuitry may further receive a selection of a subset of anatomical regions from a user and perform the task with reference to the subset of anatomical regions. (Appendix 42) In a further aspect, which may be independently provided, there is provided a method of applying an image analysis model trained to perform a task on input data including at least image data, the method including receiving image data associated with a subject, applying a visual information extractor model trained to identify anatomical regions included in the image data included in the input data and determine labels for a predefined subtask for the anatomical regions to create image tokens for input to the image analysis model, and applying the image analysis model to the image tokens, where the image analysis model performs the task and creates an output related to the subject. (Appendix 43) In a further aspect, which may be provided independently, there is provided a method for training a Transformer model to process a task on multimodal data including at least image data, the method including the steps of receiving image data, creating image tokens for input to the Transformer model by training anatomical regions included in the image data and labels for predefined subtasks on the anatomical regions, and training the Transformer model by inputting the image tokens. (Appendix 44) The predetermined subtask may be a task of finding detection in the anatomical region.The multimodal data may further include text data. (Appendix 45) In another aspect, which may be provided independently, a method for task-aware atlas-grounded tokens is provided, the method comprising: a) a set of medical images annotated with anatomical regions and the target task ground truth for those regions; b) A visual information extractor model that can be trained to extract anatomical region features to obtain task-aware atlas-based tokens and perform support tasks for the target task on the same feature representation; c) an image analysis model capable of taking as input a sequence of image feature tokens; Includes. (Appendix 46) Method b) may be a CNN network, such as Faster R-CNN, which introduces a process of supervised learning at the token extraction point. Method c) may be a Transformer network, such as the BERT model. (Appendix 47) The global image feature representation may be concatenated with each local structural feature representation to form the tokens. (Appendix 48) The anatomical regions may be organized as an ontology, and different generations of the ontology may be masked out during training to increase model prediction robustness (anatomical hierarchy dropout). (Appendix 49) The target task may be medical image classification, and presence / absence classification may be set as the assistance task. (Appendix 50) Clusters containing anatomical regions may be defined for each finding, and finding clusters may be randomly masked out during training along with corresponding finding class adjustments (augmentation methods). (Appendix 51) The target task may be medical image captioning, and the assistance task may be set as presence / absence classification of findings. (Appendix 52) Clusters containing anatomical regions may be defined for each set of findings described in each sentence of the target report for an image, and sentence clusters may be randomly masked out during training along with corresponding sentence class adjustments (augmentation methods). (Appendix 53) During testing, the clinical user may be given the option to select which of the predefined anatomical regions should be included as input. (Appendix 54) Task-aware anatomical-grounded tokens may be extracted from two scans of the same patient, including the current scan and the previous scan, and corresponding tokens may be paired (enabling comparison sentences) on input. (Appendix 55) Task-aware anatomical structure-based tokens may be extracted simultaneously from two scans of the same patient, including a current scan and a previous scan, and the assistance task may be to predict changes in the presence / absence of findings or other attributes between the scans. (Appendix 56) The target task may be visual question answering, and the clinical user may be given the option to formulate questions for a given anatomical region. (Appendix 57) Features of one aspect or embodiment may be combined with features of any other aspect or embodiment in any suitable combination, for example apparatus features may be provided as method features and vice versa.
Claims
1. 1. A data processing apparatus for training an image analysis model to perform a task on input data comprising at least image data, the data processing apparatus comprising: receiving said input data; creating image tokens for input to the image analysis model by applying a visual information extractor model trained to identify anatomical regions in the image data included in the input data and to determine labels for a predefined subtask for the anatomical regions; training the image analysis model by inputting at least the image tokens; A data processing device comprising a processing circuit for performing the above.
2. The data processing apparatus of claim 1 , wherein the task for which the image analysis model is trained comprises the generation of a text report.
3. The data processing apparatus of claim 1 , wherein the tasks for which the image analysis models are trained include at least one of image classification, visual question answering, image captioning, and automated reporting.
4. the image analysis model comprises a Transformer model; or The visual information extractor model includes a Faster Region-based convolutional neural network (Faster R-CNN) model; 2. The data processing apparatus of claim 1, wherein the data processing apparatus is at least one of:
5. The data processing apparatus of claim 1 , wherein the input data is multi-modal data, and the visual information extractor model is applied to the multi-modal data.
6. The data processing apparatus of claim 1 , wherein the input data further comprises text data, and the image analysis model is applied to the text data.
7. 7. The data processing apparatus of claim 6, wherein the text data includes at least one of: patient history data, scan information, information regarding a question to be answered, information regarding the task to be performed, a previous report, and a previous radiology report.
8. 2. The data processing apparatus of claim 1, wherein the predetermined subtask is a task for obtaining findings regarding the anatomical region.
9. The data processing apparatus of claim 1 , wherein the visual information extractor model identifies a plurality of anatomical regions.
10. The data processing apparatus of claim 9 , wherein the plurality of anatomical regions are different generational layers of an ontology, and training the image analysis model comprises masking out at least one generational layer of the ontology.
11. The data processing apparatus of claim 1 , wherein creating the image tokens comprises concatenating feature representations of the anatomical regions to a global image representation.
12. the visual information extractor model determines a label for the given subtask for each cluster of anatomical regions; The data processing apparatus of claim 1 , wherein training the image analysis model comprises masking out clusters of the anatomical regions for the given subtask.
13. the visual information extractor model determines a label for the predetermined subtask for each of a plurality of anatomical regions; training the image analysis model further includes inputting ground truth data including results of the task to be performed, the results including text data including a plurality of sentences; 2. The data processing device of claim 1, wherein training the image analysis model further comprises: deleting at least one sentence related to the predetermined subtask from the plurality of sentences; and masking out a cluster of anatomical regions corresponding to the deleted at least one sentence.
14. the image data includes data from two scans of a subject, including a current scan and a previous scan; when inputting the image tokens into the image analysis model, corresponding image tokens from the current scan and previous scans are paired; 2. A data processing apparatus according to claim 1.
15. the image data includes data from two scans of a subject, including a current scan and a previous scan; The predetermined subtask includes predicting a change in an attribute of a finding between the current scan and a previous scan, or predicting no change in the attribute.
2. A data processing apparatus according to claim 1.
16. 1. A method of training an image analysis model to perform a task on input data including at least image data, comprising: receiving said input data; creating image tokens for input to the image analysis model by applying a visual information extractor model trained to identify anatomical regions in the image data included in the input data and to determine labels for a predefined subtask for the anatomical regions; training the image analysis model by inputting the image tokens; The method includes:
17. 1. A data processing apparatus that applies an image analysis model that is trained to perform a task on input data that includes at least image data, said data processing apparatus comprising: receiving the input data associated with a subject; creating image tokens for input to the image analysis model by applying a visual information extractor model trained to identify anatomical regions in the image data included in the input data and to determine labels for a predefined subtask for the anatomical regions; applying said image analysis model to said image tokens; a processing circuit for performing the image analysis model performs the task and generates an output related to the subject; Data processing device.
18. the visual information extractor model determines a label for the predetermined subtask for each of a plurality of anatomical regions; The processing circuitry further receives an input from a user indicating a selection of a subset of the plurality of anatomical regions and limits the image tokens used by the image analysis model according to the selection.
17. A data processing apparatus according to claim 16.
19. the visual information extractor model determines a label for the predetermined subtask for each of a plurality of anatomical regions; the task comprises visual question answering; The processing circuitry further receives a selection of a subset of anatomical regions from a user and performs the task with reference to the subset of anatomical regions.
18. A data processing apparatus according to claim 17.
20. 1. A method of applying an image analysis model that is trained to perform a task on input data that includes at least image data, comprising: receiving the input data associated with a subject; creating image tokens for input to the image analysis model by applying a visual information extractor model trained to identify anatomical regions in the image data included in the input data and to determine labels for a predefined subtask for the anatomical regions; applying said image analysis model to said image tokens; Including, the image analysis model performs the task and generates an output related to the subject; method.
Citation Information
Cited By
Diagnosis support apparatus, diagnosis support method, and diagnosis support program
JP2026101093A
Anatomy-aware representation method for medical ultrasound images, medical ultrasound foundation model, and medical ultrasound analysis device using same
WO2026221409A1
