Method and system for correcting medical imaging modality classification under uncertain diagnostic reports

By constructing a unified semantic retrieval vector and a lightweight gating network adaptive fusion correction mechanism, the problem of medical image modality classification under uncertain diagnostic reports was solved, achieving stable and reliable classification in cases of missing or inconsistent reports.

CN123142005APending Publication Date: 2026-11-20ZHEJIANG CANCER HOSPITAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611111225.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing medical image modality classification techniques struggle to perform stable and reliable classification when diagnostic reports are uncertain or incomplete. In particular, when reports are missing or inconsistent with the image content, existing methods are easily affected by unreliable information in the reports.

Method used

By constructing a unified semantic retrieval vector, combining image features, report semantic features, and historical similar sample information, and employing a lightweight gating network for adaptive fusion correction, the impact of unreliable report information is reduced, thereby improving classification stability and reliability.

Benefits of technology

When diagnostic reports are uncertain, an adaptive correction mechanism can be used to improve the stability and reliability of medical image modality classification, thereby enhancing its applicability to complex clinical data environments and its ability to identify anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123142005A_ABST
    Figure CN123142005A_ABST
Patent Text Reader

Abstract

The application discloses a medical image modality classification correction method and system under uncertain diagnosis reports, and the method comprises the following steps: obtaining a medical image to be classified and a diagnosis report associated with the medical image; generating a report availability label; generating an image-side modality probability distribution, an image-side modality prediction result and an image-side confidence; when the report is available, generating a report-side modality probability distribution, a report-side modality prediction result and a report-side confidence; when the report is unavailable, adopting a missing representation; generating a cache prior distribution, a cache prior result and a cache prior confidence; obtaining a text-image consistency judgment result; generating an image-side weight, a report-side weight and a cache-side weight, and performing weighted fusion on the image-side modality prediction result, the report-side modality prediction result and the cache prior result to obtain a final medical image modality category, a classification confidence and an abnormality prompt. The application can improve the stability, reliability and abnormality recognition capability of medical image modality classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical image analysis technology, specifically to a method and system for medical image modality classification and correction under uncertain diagnostic reports. Background Technology

[0002] Medical imaging serves as a crucial data foundation for clinical diagnosis, disease screening, treatment planning, efficacy evaluation, and medical research. With the development of hospital information systems, PACS platforms, regional imaging centers, and multi-center medical data platforms, a vast amount of complex and diverse medical imaging data is continuously accumulating in clinical settings. Different medical imaging modalities exhibit significant differences in imaging principles, image structure, grayscale distribution, spatial resolution, tissue contrast methods, and subsequent processing procedures. Therefore, accurately identifying imaging modalities is a critical preliminary step in the medical imaging data processing chain, preceding data entry, archiving, retrieval, quality control, and intelligent analysis.

[0003] In the real-world flow of clinical data, medical imaging modal information is not always complete, standardized, or reliable. During cross-system migration, anonymization, format conversion, and historical archiving, some imaging data may suffer from issues such as missing original labels, non-standard naming, and inconsistent formats. Meanwhile, while diagnostic reports provide semantic information such as examination methods, examination sites, and scan sequences, the report text itself may also have problems such as missing information, anonymization, incomplete descriptions, non-standard expressions, or human annotation errors. In some scenarios, the report text may also be inconsistent with the actual image content, such as incorrect report correspondences, mismatched historical data, reused examination descriptions, or the report content failing to accurately reflect the current image. Therefore, in a real-world clinical data environment, diagnostic reports cannot be simply regarded as reliable labels, but should be considered as auxiliary semantic information that requires usability assessment and image consistency verification.

[0004] For medical image modality classification, image content and report text have complementary value. Images directly reflect imaging patterns and visual structures, while reports provide semantic cues such as examination methods, anatomical locations, and scanning sequences. However, report text should not be simply regarded as a reliable label, but rather as auxiliary information that needs to be verified for consistency with image content. When a report is missing or its semantics are incomplete, the system needs to be able to complete classification without textual assistance; when report judgments are inconsistent with image judgments, the system needs to identify these inconsistencies and reduce the impact of unreliable report information on the final classification results.

[0005] Existing medical image modality classification technologies can be broadly categorized into three types: metadata-driven methods, visual representation-driven methods, and image-text joint modeling methods.

[0006] First, metadata-driven methods primarily rely on structured fields or external identifiers in image files for modality identification, such as Modality, Series Description, and Protocol Name fields in DICOM files, as well as examination names, equipment origins, or manually named information. These methods are simple to implement and have low computational overhead, and can quickly complete modality identification when data fields are complete and named in a standardized manner. However, their reliability is highly dependent on the completeness and consistency of metadata. In actual data transfer processes, medical images often undergo anonymization, export, format conversion, cross-system migration, or research processing, and related fields may be missing, weakened, erroneous, or semantically inconsistent, making these methods difficult to adapt to multi-source, non-standardized clinical data environments.

[0007] Second, visual representation-driven methods learn modality discrimination features directly from medical image content. They typically employ deep models such as convolutional neural networks and visual Transformers to extract image structure, grayscale distribution, and texture patterns, and then predict modality categories accordingly. Compared to metadata-driven methods, these methods reduce reliance on external fields and can capture visual differences between different modalities from the image itself. However, medical images exhibit significant differences across devices, hospitals, scanning protocols, and quality conditions. The same modality may show large distribution shifts under different data sources, while local visual similarities may exist between different modalities. Therefore, classification methods that rely solely on visual features may still be affected by domain shift, insufficient sample coverage, image quality differences, and local visual similarities in complex real-world scenarios. When image-side judgment confidence is insufficient or distribution shifts exist, these methods lack supplementary correction mechanisms from reported semantics or historical similar samples.

[0008] Third, image-text joint modeling methods further incorporate semantic information such as diagnostic reports, examination descriptions, or category texts. They improve modality classification performance through the concatenation, matching, or cross-modal attention mechanisms of image and text features. These methods can supplement purely visual judgments by utilizing semantic cues such as examination methods, examination sites, and scan sequences within the report text. However, existing image-text fusion methods typically implicitly assume that the report text matches the image content and is semantically reliable. In reality, reports may be missing, anonymized, semantically incomplete, or inconsistent with the image content due to data matching errors, historical migration, or other reasons. In such cases, ordinary image-text fusion models lack explicit judgments on report reliability and tend to over-rely on surface information in the text, thus affecting the final classification results.

[0009] In summary, existing technologies still have the following shortcomings: metadata-driven methods rely on field integrity and naming conventions, making them difficult to adapt to non-standardized data environments; visual representation-driven methods, while reducing reliance on external fields, suffer from insufficient stability under conditions of cross-device, cross-hospital, and complex quality; and combined image and text modeling methods can introduce semantic information into reports, but generally lack mechanisms for handling missing reports, low credibility, and inconsistencies between images and text.

[0010] Therefore, a medical image modality classification correction method is needed under conditions of diagnostic report uncertainty. This method, without relying on metadata as a necessary input, comprehensively utilizes medical image content, diagnostic report semantics, and historical similar sample information to address real-world issues such as missing reports, low report reliability, and inconsistencies between images and text. By constructing a unified semantic retrieval vector, introducing a structured semantic cache with cached reliability levels, and combining it with an image-text consistency correction mechanism, the method can adaptively adjust the contributions of image-side, report-side, and cache-side information to the final classification result when reports are uncertain or there are conflicts between image and text information. This improves the stability, reliability, and anomaly detection capability of medical image modality classification in complex clinical data environments. Summary of the Invention

[0011] To address the issues of incomplete and non-standardized medical image modality information in real-world clinical data environments, as well as missing, low-reliability, or inconsistent diagnostic reports with image content, existing methods struggle to stably and reliably perform medical image modality classification without relying on metadata as a necessary input. Especially when reports are unavailable, report semantics are incomplete, or there are conflicts between image-side and report-side judgments, directly utilizing report information can easily transmit unreliable semantics to the final classification result; relying solely on image content may be affected by device differences, image quality, and sample distribution shifts. Therefore, this invention, to overcome these shortcomings, provides a medical image modality classification correction method and system under uncertain diagnostic reports. This method performs reliability constraints and adaptive correction on image-side information, report-side information, and similar historical sample information under uncertain diagnostic reports, reducing the impact of unreliable report information on the final classification result and improving the stability, reliability, and anomaly detection capability of medical image modality classification.

[0012] Terminology Explanation:

[0013] 1. PACS: Picture Archiving and Communication System. It is a system used in hospital radiology departments. Its main task is to digitally store massive amounts of various medical images generated daily (including images from MRI, CT, ultrasound, various X-ray machines, various infrared instruments, microscopes, etc.) through various interfaces (analog, DICOM, network). When needed, these images can be quickly retrieved and used under certain authorization. It also adds some auxiliary diagnostic and management functions.

[0014] 2. ViT: Vision Transformer, is a model that applies the Transformer model to image classification. Its core idea is to segment image data into small patches and then process them using the Transformer architecture.

[0015] The technical solution adopted by this invention to overcome its technical problems is:

[0016] This invention provides a method for medical image modality classification correction under uncertain diagnostic reports, comprising the following steps:

[0017] Obtain the medical images to be classified and their associated diagnostic reports;

[0018] Determine the availability of the diagnostic report and generate a report availability flag;

[0019] Based on the medical images, image features are extracted to generate image-side modality probability distributions, and image-side modality prediction results and image-side confidence scores are obtained based on the image-side modality probability distributions.

[0020] When the report is available, semantic features of the report are extracted based on the diagnostic report, a report-side modality probability distribution is generated, and the report-side modality prediction result and report-side confidence are obtained based on the report-side modality probability distribution; when the report is unavailable, missing information is used to replace the report-side semantic information.

[0021] The image-side information, report-side information or missing representation, and the report availability tag are combined into a unified semantic retrieval vector; based on the unified semantic retrieval vector, similar historical samples are retrieved in the structured semantic cache, and cache prior distribution, cache prior results, and cache prior confidence are generated according to similarity and cache confidence level;

[0022] Based on the report availability markers and the consistency between the image-side modality prediction results and the report-side modality prediction results, the image-text consistency judgment result is obtained;

[0023] Based on the image-side confidence, the report-side confidence constrained by the report availability tag, the cache prior confidence, the report availability tag, and the image-text consistency judgment result, the image-side weight, report-side weight, and cache-side weight are adaptively generated through a gated fusion correction mechanism.

[0024] Based on image-side weights, report-side weights, and cache-side weights, the image-side modality prediction results, report-side modality prediction results, and cache prior results are weighted and fused to obtain the final medical image modality category, classification confidence, and anomaly alert.

[0025] Furthermore, the step of determining the availability of the diagnostic report and generating a report availability flag specifically includes:

[0026] If a diagnostic report exists, is not empty, and at least one valid field related to modality classification can be extracted from it, then the diagnostic report is marked as available.

[0027] If a diagnostic report is missing, empty, or cannot extract valid fields related to modality classification, the diagnostic report will be marked as unavailable, and the corresponding status of the diagnostic report will be marked as missing or low confidence.

[0028] Further, the step of extracting image features based on the medical image, generating an image-side modality probability distribution, and obtaining image-side modality prediction results and image-side confidence based on the image-side modality probability distribution specifically includes:

[0029] Medical images are divided into multiple image blocks, and after adding position embeddings, they are input into a multi-layer Transformer for encoding. The classification labels output by the last layer of ViT are taken as image features.

[0030] Based on the image features, a modality probability distribution for each candidate modality category is generated on the image side. The candidate modality category corresponding to the highest probability in the modality probability distribution is taken as the image side modality prediction result, and the highest probability is taken as the image side confidence level.

[0031] Furthermore, when the report is available, extracting semantic features from the diagnostic report, generating a report-side modality probability distribution, and obtaining report-side modality prediction results and report-side confidence based on the report-side modality probability distribution specifically includes:

[0032] Using a pre-trained medical large language model, a medical text information extraction model, or a rule-assisted field extraction method, fields related to modality classification are extracted from the diagnostic report. These fields include imaging method, examination site, scanning sequence, or scanning protocol.

[0033] The extracted fields are organized into normalized short text and input into a pre-trained text encoder in the medical field for encoding to obtain the semantic features of the report.

[0034] Based on the semantic features of the report, a modality probability distribution for each candidate modality category is generated on the reporting side. The candidate modality category corresponding to the highest probability in the modality probability distribution is taken as the modality prediction result on the reporting side, and the highest probability is taken as the confidence level on the reporting side.

[0035] Furthermore, the step of combining image-side information, report-side information or missing representations, and the report availability marker into a unified semantic retrieval vector specifically includes:

[0036] The image features are projected onto a unified retrieval space to obtain the projected image features.

[0037] When a report is available, the report's semantic features are projected onto the unified retrieval space to obtain the projected report semantic features.

[0038] When a report is unavailable, a learnable missing vector is used as the missing representation on the reporting side.

[0039] The projected image features, projected report semantic features or report-side missing representations, and report availability markers are concatenated into vectors, and the concatenated vectors are normalized to obtain a unified semantic retrieval vector.

[0040] Furthermore, the step of retrieving similar historical samples in the structured semantic cache based on the unified semantic retrieval vector, and generating a cache prior distribution, cache prior results, and cache prior confidence based on similarity and cache confidence level, specifically includes:

[0041] A structured semantic cache is constructed using historical samples. Each cache entry in the structured semantic cache includes the confirmed modality category of the historical sample, the unified semantic retrieval vector, and the cache trust level. The cache trust level is used to distinguish whether there are any missing reports or inconsistencies between the text and images in the historical samples.

[0042] An HNSW approximate nearest neighbor index is used to build a vector index for the unified semantic retrieval vector in the cache. The unified semantic retrieval vector of the current sample is used as the query vector to calculate the retrieval score between the unified semantic retrieval vector of the current sample and the cached entry.

[0043] Select the top-K similar cache entries with the highest retrieval scores, perform Softmax normalization on the retrieval scores of the top-K similar cache entries to obtain the weight of each entry, and summarize the weights of each category to obtain the cache prior score of that category, thus forming the cache prior distribution;

[0044] The category corresponding to the maximum score in the cache prior distribution is taken as the cache prior result, and the maximum score is taken as the cache prior confidence.

[0045] Furthermore, the step of obtaining the image-text consistency judgment result based on the report availability tag and the consistency between the image-side modality prediction result and the report-side modality prediction result specifically includes:

[0046] When the report is available, compare the consistency between the image-side modal prediction results and the report-side modal prediction results: if they are consistent, mark it as normal; if they are inconsistent, mark it as inconsistent between image and text.

[0047] When a report is unavailable, no image / text conflict judgment is performed. Instead, the image / text inconsistency mark is set to a conflict-free state, and the abnormal state is recorded as a missing report or low reliability.

[0048] Furthermore, the step of adaptively generating image-side weights, report-side weights, and cache-side weights through a gated fusion correction mechanism based on image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text consistency judgment result specifically includes:

[0049] Construct a gated input vector, which includes image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text inconsistency tag;

[0050] The gated input vector is input into a gated network, which includes two fully connected layers and a ReLU activation function. The output weights are normalized by the Softmax function to include image-side weights, report-side weights, and cache-side weights. When the report availability flag indicates that the report is unavailable, the report-side weights are set to zero. When the image-text consistency judgment result is inconsistent, the report-side weights are reduced.

[0051] Furthermore, the weighted fusion of image-side modality prediction results, report-side modality prediction results, and cache prior results based on image-side weights, report-side weights, and cache-side weights yields the final medical image modality category, classification confidence score, and anomaly alert, specifically including:

[0052] For any candidate modality category, the probability value of the candidate modality category in the image-side modality probability distribution, the probability value of the candidate modality category in the report-side modality probability distribution, and the prior score of the candidate modality category in the cache prior distribution are multiplied by their respective fusion weights and then summed to obtain the comprehensive classification score of the candidate modality category.

[0053] The candidate modality category with the highest comprehensive classification score is selected as the final medical image modality category, and this highest comprehensive score is used as the classification confidence level.

[0054] Anomaly alerts are determined based on the report availability flag and the consistency assessment results: if the report availability flag indicates that the report is unavailable, the anomaly alert is "Report missing or low confidence"; if the report availability flag indicates that the report is available and the consistency assessment result is inconsistent, the anomaly alert is "Inconsistent text and images"; if the report availability flag indicates that the report is available and the consistency assessment result is consistent, the anomaly alert is "Normal".

[0055] The present invention also provides a medical image modality classification and correction system for diagnostic reports with uncertainty, used to implement the above-described method, comprising:

[0056] The image and report input and field extraction module is used to obtain the medical images to be classified and their associated diagnostic reports;

[0057] The report availability assessment module is used to determine the availability of the diagnostic report and generate a report availability flag.

[0058] The image-side modality prediction module is used to extract image features based on the medical image, generate an image-side modality probability distribution, and obtain image-side modality prediction results and image-side confidence based on the image-side modality probability distribution.

[0059] The report-side modality prediction module is used to extract report semantic features based on the diagnostic report when the report is available, generate a report-side modality probability distribution, and obtain the report-side modality prediction result and report-side confidence based on the report-side modality probability distribution; when the report is unavailable, missing information is used to replace the report-side semantic information.

[0060] The unified semantic retrieval and cache prior generation module is used to combine image-side information, report-side semantic information or missing representation and the report availability tag into a unified semantic retrieval vector, and based on the unified semantic retrieval vector, retrieve similar historical samples in the structured semantic cache, and generate cache prior distribution, cache prior results and cache prior confidence based on similarity and cache confidence level.

[0061] The structured semantic caching module is used to store the confirmed modality categories, unified semantic retrieval vectors, and cache trust levels of historical samples;

[0062] The image-text consistency judgment module is used to obtain the image-text consistency judgment result based on the report availability marker and the consistency between the image-side modality prediction result and the report-side modality prediction result.

[0063] The gated fusion correction module is used to adaptively generate image-side weights, report-side weights, and cache-side weights based on image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text consistency judgment results through a gated fusion correction mechanism.

[0064] The classification output and anomaly alert module is used to perform weighted fusion of image-side modality prediction results, report-side modality prediction results and cache prior results based on image-side weights, report-side weights and cache-side weights to obtain the final medical image modality category, classification confidence and anomaly alert.

[0065] The beneficial effects of this invention are:

[0066] (1) Reduce reliance on metadata and manual rules to improve the applicability of the method. This invention uses medical images and diagnostic report text as the main inputs and does not require DICOM fields, device labels or manual naming rules as necessary conditions. It can be applied to real scenarios such as missing metadata, non-standard fields, image anonymization, format conversion or multi-center data integration, thus improving the universality of the medical image modality classification method.

[0067] (2) Enhance classification stability by introducing prior knowledge of similar historical samples through structured semantic caching. This invention constructs a structured semantic cache for medical image modality classification, which associates and stores the confirmed modality category, unified semantic retrieval vector, and cache credibility level of historical samples. During inference, the system retrieves similar historical samples through the HNSW approximate nearest neighbor index, forming a cache prior distribution, providing additional modality judgment basis for the current sample. This mechanism can play a compensatory role when image judgment is unstable, reports are missing, or there is inconsistency between images and text.

[0068] (3) Achieving adaptive fusion of image, report, and cached information to improve robustness. This invention uses a lightweight gating network to adaptively generate fusion weights for different information sources based on image-side confidence, report-side confidence, cache prior confidence, report availability, and inconsistency between images and text. Compared to fixed-weight fusion or simple feature concatenation, this mechanism can dynamically adjust the classification criteria according to the actual information quality of a single sample, thereby improving the robustness of the model under complex clinical data conditions. Attached Figure Description

[0069] Figure 1 This is a schematic diagram illustrating the principle of the medical image modality classification correction method under uncertain diagnostic reports as described in an embodiment of the present invention. Detailed Implementation

[0070] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in detail below with reference to the accompanying drawings. These are merely exemplary embodiments of the present invention; however, it should be understood that the present invention can be implemented in various forms and is not limited to the embodiments described herein. These embodiments are provided to enable those skilled in the art to understand the present invention more clearly and thoroughly.

[0071] Example 1:

[0072] This embodiment provides a method for medical image modality classification correction when diagnostic reports are uncertain, such as... Figure 1 As shown, the steps include:

[0073] S1. Obtain the medical images to be classified and their associated diagnostic reports.

[0074] In this embodiment, the medical images to be classified and their associated diagnostic reports are represented as follows:

[0075]

[0076] in, This indicates medical images to be classified. This represents the diagnostic report text associated with the medical image to be classified. When the diagnostic report is missing, empty, or cannot extract relevant modality information, It is treated as empty text and identified by the report availability tag.

[0077] S2. Determine the availability of the diagnostic report and generate a report availability flag.

[0078] In this embodiment, step S2 specifically includes:

[0079] If a diagnostic report exists, is not empty, and at least one valid field related to modality classification can be extracted from it, then the diagnostic report is marked as available.

[0080] If a diagnostic report is missing, empty, or cannot extract valid fields related to modality classification, the diagnostic report will be marked as unavailable, and the corresponding status of the diagnostic report will be marked as missing or low confidence.

[0081] Specifically, whether the diagnostic report is usable by marking express:

[0082]

[0083] S3. Based on the medical images, extract image features, generate image-side modality probability distribution, and obtain image-side modality prediction results and image-side confidence based on the image-side modality probability distribution.

[0084] In this embodiment, step S3 specifically includes:

[0085] S31. Regarding medical imaging In this embodiment, ViT is used as the image encoder. The medical image is divided into multiple image blocks, and after adding position embedding, it is input into a multi-layer Transformer for encoding. The classification label output by the last layer of ViT is taken as the image feature as follows:

[0086]

[0087] in, Image features representing medical images; This refers to the ViT image encoder.

[0088] S32. Based on the image features The method generates a modality probability distribution for each candidate modality category on the image side, takes the candidate modality category with the highest probability in the modality probability distribution as the image-side modality prediction result, and uses the highest probability as the image-side confidence score. In an optional implementation, the modality probability distribution for each candidate modality category on the image side can be expressed as follows:

[0089]

[0090] in, This represents the predicted probability of each candidate modality category from the image side; and These represent the weight matrix and bias term of the image classification head, respectively.

[0091] S4. When the report is available, extract the semantic features of the report based on the diagnostic report, generate the report-side modality probability distribution, and obtain the report-side modality prediction result and the report-side confidence based on the report-side modality probability distribution; when the report is unavailable, use missing representation to replace the report-side semantic information.

[0092] The first scenario: When the report is available, a pre-trained medical large language model, a medical text information extraction model, or a rule-assisted field extraction method is used. That is, any one of these three methods is selected to extract fields related to modality classification from the diagnostic report. These fields include imaging mode, examination site, scanning sequence, or scanning protocol. In an optional implementation, the fields related to modality classification can be represented as follows:

[0093]

[0094] in, This field represents the imaging method. Indicates the inspection site field; This indicates the scan sequence or scan protocol field.

[0095] In this embodiment, instead of directly classifying the complete original report, the extracted fields are organized into normalized short texts and input into a pre-trained text encoder for encoding to obtain the report's semantic features. The pre-trained text encoder for the medical domain employs Clinical_BERT. In this embodiment, the report's semantic features can be represented as follows:

[0096]

[0097] in, Indicates the semantic features of the report; This refers to Clinical_BERT, a pre-trained text encoder used in the medical field.

[0098] When the report is available, i.e. At that time, based on the semantic features of the report, a modality probability distribution for each candidate modality category is generated on the reporting side. The candidate modality category corresponding to the highest probability in the modality probability distribution is taken as the modality prediction result on the reporting side, and the highest probability is taken as the confidence level on the reporting side.

[0099] In one alternative implementation, the modality probability distribution for each candidate modality category on the reporting side can be expressed as follows:

[0100]

[0101] in, This indicates the predicted probability of each candidate modality category from the reporting side; and These represent the weight matrix and bias term of the report category header, respectively.

[0102] The second scenario: when the report is unavailable, i.e. In this case, the results from the reporting side do not participate in the final classification. Missing information can be used to replace the semantic information from the reporting side for the construction of the subsequent unified semantic retrieval vector.

[0103] S5. Combine the image-side information, report-side information or missing representation, and the report availability tag into a unified semantic retrieval vector; based on the unified semantic retrieval vector, retrieve similar historical samples in the structured semantic cache, and generate cache prior distribution, cache prior results, and cache prior confidence based on similarity and cache confidence level.

[0104] The purpose of this step is to combine image-side information, report-side information or missing representation, and the report availability tag to form a unified semantic retrieval vector, and to use this unified semantic retrieval vector to retrieve similar historical samples in the structured semantic cache. This allows the same cache retrieval process to be entered in both cases where the report is available and cases where the report is not available.

[0105] In this embodiment, step S5 specifically includes:

[0106] S51. Project the image features onto a unified retrieval space to obtain the projected image features.

[0107] In one alternative implementation, the projected image features can be represented as follows:

[0108]

[0109] in, Represents the features of the projected image. This represents the image feature projection matrix.

[0110] S52. For report semantic features, process them according to report availability.

[0111] In one alternative implementation, the semantic features of the projected report can be represented as follows:

[0112]

[0113] in, This represents the semantic features of the projected report; Represents the projection matrix of the semantic features of the report; This represents the learnable missing vector used when reporting missing data.

[0114] When a report is available, the semantic features of the actual report are used to project the semantic features of the report onto the unified retrieval space to obtain the projected semantic features of the report.

[0115] When a report is unavailable, a learnable missing vector is used as a missing representation on the report side to fill in the gaps, thereby ensuring that the dimensions of the subsequent retrieval vectors are consistent.

[0116] S53. The projected image features, projected report semantic features or report-side missing representations, and report availability markers are concatenated into vectors, and the concatenated vectors are normalized to obtain a unified semantic retrieval vector.

[0117] In one alternative implementation, the unified semantic retrieval vector can be represented as follows:

[0118]

[0119] in, The unified semantic retrieval vector representing the current sample; This represents the L2 normalization operation; This indicates vector concatenation.

[0120] S54. Construct a structured semantic cache using historical samples. Each cache entry in the structured semantic cache includes the confirmed modality category of the historical sample, the unified semantic retrieval vector, and the cache trust level. The cache trust level is used to distinguish whether there are any missing reports or inconsistencies between the text and images in the historical samples.

[0121] In one alternative implementation, each cache entry can be defined as follows:

[0122]

[0123] in, Indicates the first One cache entry; Indicates the first The confirmed modality category of each cache entry; Indicates the first A unified semantic retrieval vector for each cached entry; Indicates the first The cache trust level of each cached entry is used to distinguish whether there are missing reports or inconsistencies between images and text in historical samples. If the historical sample report is available and the image judgment is consistent with the report judgment, then... If historical sample reports are missing or the images and text are inconsistent, then... .

[0124] S55. Use HNSW approximate nearest neighbor index to retrieve unified semantic retrieval vectors in the cache. A vector index is built, and during inference, the vector is retrieved using the unified semantics of the current sample. Given the query vector, calculate the unified semantic retrieval vector of the current sample and the retrieval score of the cached entries.

[0125] In one alternative implementation, the unified semantic retrieval vector of the current sample and the retrieval score of the cached entry can be defined as follows:

[0126]

[0127] in, The unified semantic retrieval vector of the current sample and the first... Retrieval score for each cached entry; This represents the inner product similarity between normalized vectors; This represents the cache trust level adjustment coefficient; This represents a cache trust level adjustment item, used to improve the impact of high-trust historical samples in cache retrieval.

[0128] S56. Sort all cached entries according to the retrieval scores obtained in step S55, and then select the Top-K similar cached entries with the highest retrieval scores to form a Top-K similar cached entry set. The retrieval scores of the Top-K similar cached entries are Softmax normalized to obtain the weight of each entry. The weights of each category are then summarized to obtain the cache prior score for that category, forming the cache prior distribution.

[0129] In one alternative implementation, the cache prior distribution can be represented as follows:

[0130]

[0131] in, Indicates the cache prior distribution for candidate modality categories The probability of support; Indicates the first Normalized weights of each cache entry; Indicates an indicator function, when equal to candidate category The cached prior is set to 1 if the report is missing or inconsistent with the images and text. It can provide modality judgments from similar historical samples to supplement the report when the report is missing or inconsistent with the images and text.

[0132] S57. Take the category corresponding to the maximum score in the cache prior distribution as the cache prior result, and take the maximum score as the cache prior confidence.

[0133] S6. Based on the report availability marker and the consistency between the image-side modality prediction result and the report-side modality prediction result, the image-text consistency judgment result is obtained.

[0134] This step aims to enable the system to identify inconsistencies between the report and image content, and to use this consistency status as the basis for subsequent gating fusion correction. Existing image-text fusion methods typically assume a match between the report and the image, lacking explicit judgment on low report confidence or image-text inconsistencies. This embodiment addresses this issue through the report availability tagging described in step S2 and the image-text consistency judgment result described in this step.

[0135] In this embodiment, step S6 specifically includes:

[0136] When the report is available, compare the consistency between the image-side modal prediction results and the report-side modal prediction results: if they are consistent, mark it as normal; if they are inconsistent, mark it as inconsistent between image and text.

[0137] In one alternative implementation, the inconsistency marker is defined as:

[0138]

[0139] in, This indicates a discrepancy between the text and the image.

[0140] Specifically, when the image-side modality prediction category is inconsistent with the report-side modality prediction category, then Otherwise, .

[0141] When a report is unavailable, no image / text conflict check is performed; instead, the image / text inconsistency marker is set to a conflict-free state. And record the abnormal status as a missing or low-confidence report.

[0142] S7. Based on the image-side confidence, the report-side confidence constrained by the report availability tag, the cache prior confidence, the report availability tag, and the image-text consistency judgment result, the image-side weight, report-side weight, and cache-side weight are adaptively generated through a gated fusion correction mechanism.

[0143] In this embodiment, step S7 specifically includes:

[0144] S71. Construct a gated input vector, wherein the gated input vector includes image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text inconsistency tag.

[0145] In one alternative implementation, the gated input vector can be represented as follows:

[0146]

[0147] in, This represents the maximum classification probability on the image side, i.e., the image-side confidence level. This indicates the report-side confidence level after being constrained by the report availability tag. When the value of this item is 0, This item represents the maximum classification probability on the reporting side; This represents the maximum probability in the cache prior distribution, i.e., the cache-side confidence.

[0148] S72. Input the gated input vector into a gated network, which includes two fully connected layers and a ReLU activation function, and outputs image-side weights, report-side weights, and cache-side weights after normalization by the Softmax function; wherein, when the report availability flag indicates that the report is unavailable, the report-side weights are set to zero, and when the image-text consistency judgment result is inconsistent, the report-side weights are reduced.

[0149] In one optional implementation, the gating network employs a lightweight gating network, which generates image-side weights, report-side weights, and cache-side weights, as follows:

[0150]

[0151] in, , , These represent the weights of the image side, the report side, and the cache side in the final classification, respectively. This represents a lightweight gating network comprising two fully connected layers, a ReLU activation function, and Softmax normalization. In this embodiment, a report availability mask and a graph-text inconsistency penalty are added to the lightweight gating network, so that when... At that time, ,when At that time, the weight of the reporting side was reduced.

[0152] S8. Based on image-side weights, report-side weights, and cache-side weights, the image-side modality prediction results, report-side modality prediction results, and cache prior results are weighted and fused to obtain the final medical image modality category, classification confidence, and anomaly alert.

[0153] In this embodiment, step S8 specifically includes:

[0154] S81. For any candidate modality category, the probability value of the candidate modality category in the image-side modality probability distribution, the probability value of the candidate modality category in the report-side modality probability distribution, and the prior score of the candidate modality category in the cache prior distribution are multiplied by their respective fusion weights and then summed to obtain the comprehensive classification score of the candidate modality category.

[0155] In one alternative implementation, any candidate modal category The overall classification score can be expressed as follows:

[0156]

[0157] in, This represents the overall classification score of candidate modality category c; Represents the candidate modality category of the image side. The probability of support; The report indicates the candidate modality category. The probability of support; This represents the cache prior distribution formed by structured semantic cache for candidate modality categories. The probability of support; , , These represent the fusion weights on the image side, the fusion weights on the report side, and the fusion weights on the cache side, respectively.

[0158] S82. Select the candidate modality category with the highest comprehensive classification score as the final medical image modality category, and use the highest comprehensive score as the classification confidence level.

[0159] In one alternative implementation, the final medical imaging modality category can be represented as follows:

[0160]

[0161] The classification confidence scores corresponding to the final medical imaging modality categories are expressed as follows:

[0162]

[0163] in, This indicates the predicted final medical image modality category; Let represent the set of candidate modality categories, denoted as . ,in, This indicates the number of preset medical image modal categories.

[0164] S83. Determine anomaly alerts based on report availability tags and consistency judgment results (using...). Indicates an anomaly: If the report availability flag indicates that the report is unavailable, i.e. When an abnormality is detected, an alert will be issued. The result is "Report missing or low credibility"; if the report availability flag indicates the report is available and the consistency judgment result is inconsistent, then... and When an abnormality is detected, an alert will be issued. For "Inconsistent Images and Text", if the report availability flag indicates the report is available and the image and text consistency assessment result is consistent, then... and When an abnormality is detected, an alert will be issued. It is "normal".

[0165] The medical image modal classification correction method under uncertain diagnostic reports described in this embodiment takes as input the medical image to be classified and its associated diagnostic report, and uses... The output represents the predicted final medical image modality category, the corresponding classification confidence score, and anomaly alerts. The method described in this embodiment enables credibility constraints and adaptive correction of image-side information, report-side information, and similar historical sample information under uncertain diagnostic reports. This reduces the impact of unreliable report information on the final classification results and improves the stability, reliability, and anomaly recognition capabilities of medical image modality classification.

[0166] Example 2:

[0167] This embodiment provides a medical image modality classification and correction system for uncertain diagnostic reports, used to implement the method described in Embodiment 1. The medical image modality classification and correction system for uncertain diagnostic reports can be deployed in medical image data storage, archiving, or quality control systems, and includes the following functional modules:

[0168] The image and report input and field extraction module is used to obtain the medical images to be classified and their associated diagnostic reports.

[0169] The report availability assessment module is used to determine the availability of the diagnostic report and generate a report availability flag.

[0170] The image-side modality prediction module is used to extract image features based on the medical image, generate an image-side modality probability distribution, and obtain image-side modality prediction results and image-side confidence based on the image-side modality probability distribution.

[0171] The report-side modality prediction module is used to extract report semantic features based on the diagnostic report when the report is available, generate a report-side modality probability distribution, and obtain the report-side modality prediction result and report-side confidence based on the report-side modality probability distribution; when the report is unavailable, a missing representation is used to replace the report-side semantic information.

[0172] The unified semantic retrieval and cache prior generation module is used to combine image-side information, report-side semantic information or missing representation and the report availability tag into a unified semantic retrieval vector, and based on the unified semantic retrieval vector, retrieve similar historical samples in the structured semantic cache, and generate cache prior distribution, cache prior results and cache prior confidence based on similarity and cache confidence level.

[0173] The structured semantic caching module is used to store the confirmed modality categories, unified semantic retrieval vectors, and cache trust levels of historical samples.

[0174] The image-text consistency judgment module is used to obtain the image-text consistency judgment result based on the report availability tag and the consistency between the image-side modality prediction result and the report-side modality prediction result.

[0175] The gated fusion correction module is used to adaptively generate image-side weights, report-side weights, and cache-side weights based on image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text consistency judgment results through a gated fusion correction mechanism.

[0176] The classification output and anomaly alert module is used to perform weighted fusion of image-side modality prediction results, report-side modality prediction results and cache prior results based on image-side weights, report-side weights and cache-side weights to obtain the final medical image modality category, classification confidence and anomaly alert.

[0177] For the system implementation, since it basically corresponds to the method implementation, the specific implementation process of the functions and roles of each module in the system can be found in the implementation process of the corresponding steps in the method described in Embodiment 1, and will not be repeated here.

[0178] The above description only outlines the basic principles and preferred embodiments of the present invention. Those skilled in the art can make many changes and modifications based on the above description, and these changes and modifications should fall within the protection scope of the present invention.

Claims

1. A method for medical image modality classification correction under uncertain diagnostic reports, characterized in that, Including the following steps: Obtain the medical images to be classified and their associated diagnostic reports; Determine the availability of the diagnostic report and generate a report availability flag; Based on the medical images, image features are extracted to generate image-side modality probability distributions, and image-side modality prediction results and image-side confidence scores are obtained based on the image-side modality probability distributions. When the report is available, semantic features of the report are extracted based on the diagnostic report, a report-side modality probability distribution is generated, and the report-side modality prediction result and report-side confidence are obtained based on the report-side modality probability distribution; when the report is unavailable, missing information is used to replace the report-side semantic information. The image-side information, report-side information or missing representation, and the report availability tag are combined into a unified semantic retrieval vector; based on the unified semantic retrieval vector, similar historical samples are retrieved in the structured semantic cache, and cache prior distribution, cache prior results, and cache prior confidence are generated according to similarity and cache confidence level; Based on the report availability markers and the consistency between the image-side modality prediction results and the report-side modality prediction results, the image-text consistency judgment result is obtained; Based on the image-side confidence, the report-side confidence constrained by the report availability tag, the cache prior confidence, the report availability tag, and the image-text consistency judgment result, the image-side weight, report-side weight, and cache-side weight are adaptively generated through a gated fusion correction mechanism. Based on image-side weights, report-side weights, and cache-side weights, the image-side modality prediction results, report-side modality prediction results, and cache prior results are weighted and fused to obtain the final medical image modality category, classification confidence, and anomaly alert.

2. The method according to claim 1, characterized in that, The determination of the availability of the diagnostic report and the generation of a report availability flag specifically includes: If a diagnostic report exists, is not empty, and at least one valid field related to modality classification can be extracted from it, then the diagnostic report is marked as available. If a diagnostic report is missing, empty, or cannot extract valid fields related to modality classification, the diagnostic report will be marked as unavailable, and the corresponding status of the diagnostic report will be marked as missing or low confidence.

3. The method according to claim 1, characterized in that, The process of extracting image features based on the medical images, generating image-side modality probability distributions, and obtaining image-side modality prediction results and image-side confidence scores based on these distributions specifically includes: Medical images are divided into multiple image blocks, and after adding position embeddings, they are input into a multi-layer Transformer for encoding. The classification labels output by the last layer of ViT are taken as image features. Based on the image features, a modality probability distribution for each candidate modality category is generated on the image side. The candidate modality category corresponding to the highest probability in the modality probability distribution is taken as the image side modality prediction result, and the highest probability is taken as the image side confidence level.

4. The method according to claim 1, characterized in that, When the report is available, the process involves extracting semantic features from the diagnostic report, generating a report-side modality probability distribution, and obtaining report-side modality prediction results and report-side confidence levels based on the report-side modality probability distribution. Specifically, this includes: Using a pre-trained medical large language model, a medical text information extraction model, or a rule-assisted field extraction method, fields related to modality classification are extracted from the diagnostic report. These fields include imaging method, examination site, scanning sequence, or scanning protocol. The extracted fields are organized into normalized short text and input into a pre-trained text encoder in the medical field for encoding to obtain the semantic features of the report. Based on the semantic features of the report, a modality probability distribution for each candidate modality category is generated on the reporting side. The candidate modality category corresponding to the highest probability in the modality probability distribution is taken as the modality prediction result on the reporting side, and the highest probability is taken as the confidence level on the reporting side.

5. The method according to claim 1, characterized in that, The process of combining image-side information, report-side information or missing representations, and the report availability markers into a unified semantic retrieval vector specifically includes: The image features are projected onto a unified retrieval space to obtain the projected image features. When a report is available, the report's semantic features are projected onto the unified retrieval space to obtain the projected report semantic features. When a report is unavailable, a learnable missing vector is used as the missing representation on the reporting side. The projected image features, projected report semantic features or report-side missing representations, and report availability markers are concatenated into vectors, and the concatenated vectors are normalized to obtain a unified semantic retrieval vector.

6. The method according to claim 1, characterized in that, The process of retrieving similar historical samples from the structured semantic cache based on the unified semantic retrieval vector, and generating cache prior distribution, cache prior results, and cache prior confidence based on similarity and cache confidence level, specifically includes: A structured semantic cache is constructed using historical samples. Each cache entry in the structured semantic cache includes the confirmed modality category of the historical sample, the unified semantic retrieval vector, and the cache trust level. The cache trust level is used to distinguish whether there are any missing reports or inconsistencies between the text and images in the historical samples. An HNSW approximate nearest neighbor index is used to build a vector index for the unified semantic retrieval vector in the cache. The unified semantic retrieval vector of the current sample is used as the query vector to calculate the retrieval score between the unified semantic retrieval vector of the current sample and the cached entry. Select the top-K similar cache entries with the highest retrieval scores, perform Softmax normalization on the retrieval scores of the top-K similar cache entries to obtain the weight of each entry, and summarize the weights of each category to obtain the cache prior score of that category, thus forming the cache prior distribution; The category corresponding to the maximum score in the cache prior distribution is taken as the cache prior result, and the maximum score is taken as the cache prior confidence.

7. The method according to claim 1, characterized in that, The step of obtaining the image-text consistency judgment result based on the report availability marker and the consistency between the image-side modality prediction result and the report-side modality prediction result specifically includes: When the report is available, compare the consistency between the image-side modal prediction results and the report-side modal prediction results: if they are consistent, mark it as normal; if they are inconsistent, mark it as inconsistent between image and text. When a report is unavailable, no image / text conflict judgment is performed. Instead, the image / text inconsistency mark is set to a conflict-free state, and the abnormal state is recorded as a missing report or low reliability.

8. The method according to claim 1, characterized in that, The process of adaptively generating image-side weights, report-side weights, and cache-side weights through a gated fusion correction mechanism based on image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text consistency judgment results specifically includes: Construct a gated input vector, which includes image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text inconsistency tag; The gated input vector is input into a gated network, which includes two fully connected layers and a ReLU activation function. The output weights are normalized by the Softmax function to include image-side weights, report-side weights, and cache-side weights. When the report availability flag indicates that the report is unavailable, the report-side weights are set to zero. When the image-text consistency judgment result is inconsistent, the report-side weights are reduced.

9. The method according to any one of claims 1-8, characterized in that, The process involves weighted fusion of image-side modality prediction results, report-side modality prediction results, and cache prior results based on image-side weights, report-side weights, and cache-side weights to obtain the final medical image modality category, classification confidence score, and anomaly alert. Specifically, this includes: For any candidate modality category, the probability value of the candidate modality category in the image-side modality probability distribution, the probability value of the candidate modality category in the report-side modality probability distribution, and the prior score of the candidate modality category in the cache prior distribution are multiplied by their respective fusion weights and then summed to obtain the comprehensive classification score of the candidate modality category. The candidate modality category with the highest comprehensive classification score is selected as the final medical image modality category, and this highest comprehensive score is used as the classification confidence level. Anomaly alerts are determined based on the report availability flag and the consistency assessment results: if the report availability flag indicates that the report is unavailable, the anomaly alert is "Report missing or low confidence"; if the report availability flag indicates that the report is available and the consistency assessment result is inconsistent, the anomaly alert is "Inconsistent text and images"; if the report availability flag indicates that the report is available and the consistency assessment result is consistent, the anomaly alert is "Normal".

10. A medical image modality classification and correction system for diagnostic report uncertainty, used to implement the method according to any one of claims 1-9, characterized in that, include: The image and report input and field extraction module is used to obtain the medical images to be classified and their associated diagnostic reports; The report availability assessment module is used to determine the availability of the diagnostic report and generate a report availability flag. The image-side modality prediction module is used to extract image features based on the medical image, generate an image-side modality probability distribution, and obtain image-side modality prediction results and image-side confidence based on the image-side modality probability distribution. The report-side modality prediction module is used to extract report semantic features based on the diagnostic report when the report is available, generate a report-side modality probability distribution, and obtain the report-side modality prediction result and report-side confidence based on the report-side modality probability distribution; when the report is unavailable, missing information is used to replace the report-side semantic information. The unified semantic retrieval and cache prior generation module is used to combine image-side information, report-side semantic information or missing representation and the report availability tag into a unified semantic retrieval vector, and based on the unified semantic retrieval vector, retrieve similar historical samples in the structured semantic cache, and generate cache prior distribution, cache prior results and cache prior confidence based on similarity and cache confidence level. The structured semantic caching module is used to store the confirmed modality categories, unified semantic retrieval vectors, and cache trust levels of historical samples; The image-text consistency judgment module is used to obtain the image-text consistency judgment result based on the report availability marker and the consistency between the image-side modality prediction result and the report-side modality prediction result. The gated fusion correction module is used to adaptively generate image-side weights, report-side weights, and cache-side weights based on image-side confidence, report-side confidence constrained by the report availability tag, cache prior confidence, report availability tag, and image-text consistency judgment results through a gated fusion correction mechanism. The classification output and anomaly alert module is used to perform weighted fusion of image-side modality prediction results, report-side modality prediction results and cache prior results based on image-side weights, report-side weights and cache-side weights to obtain the final medical image modality category, classification confidence and anomaly alert.