Image report generation model training method and image report generation method

By training the image report generation model, extracting and structuring abnormal data sets, constructing an asymmetric reward mechanism, and optimizing model parameters, the accuracy problem of the image report generation model in image observation and diagnostic conclusions was solved, achieving higher accuracy and robustness.

CN123182889APending Publication Date: 2026-11-27MIDEA GRP (SHANGHAI) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611348613.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, image report generation models have difficulty guaranteeing the accuracy of content when generating image reports, especially the accuracy and coverage of image findings and diagnostic conclusions.

Method used

By training the initial generative model, abnormal data sets in the predicted image reports are extracted, structured, and matched with datasets in the sample image reports. An asymmetric reward mechanism is constructed, combining disease category rewards and text rewards, and the model parameters are optimized to improve the accuracy of image reports.

Benefits of technology

The model improves the accuracy and robustness of image report generation, ensuring accurate coverage of image findings and diagnostic conclusions, reducing hallucinations and underreporting, and enhancing the model's generalization ability and text standardization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182889A_ABST
    Figure CN123182889A_ABST
Patent Text Reader

Abstract

The application provides a training method of an image report generation model and an image report generation method. The method comprises the following steps: identifying sample image data based on an initial generation model to obtain a predicted image report, wherein the predicted image report comprises predicted image findings; extracting abnormal data in the predicted image findings to obtain a first data set, wherein the first data set comprises abnormal data groups, and each abnormal data group comprises an abnormal part and an abnormal description; matching the first data set and a second data set to obtain a third data set, wherein the third data set comprises the same abnormal data groups in the first data set and the second data set; obtaining a target reward value of the initial generation model based on the first data set, the second data set and the third data set; and adjusting model parameters of the initial generation model based on the target reward value to obtain an image report generation model. The method can train the image report generation model to improve the accuracy of the image report generated by the image report generation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of medical technology, and more specifically, to a training method for an image report generation model and an image report generation method. Background Technology

[0002] With the rapid development of medical imaging technology, medical imaging examinations have become an important basis for clinical diagnosis. For example, imaging reports are generated based on models, and doctors refer to these reports to determine the final diagnostic result.

[0003] In related technologies, supervised fine-tuning is used to optimize lexical prediction, thereby improving the fluency of text generated by image report generation models. However, this model training method cannot guarantee the accuracy of the image report content. Therefore, how to train image report generation models to improve the accuracy of generated image reports has become an urgent problem to be solved. Summary of the Invention

[0004] This application discloses a training method for an image report generation model and an image report generation method. This method can train the image report generation model to improve the accuracy of the image report generation model in generating image reports.

[0005] Firstly, a training method for an image report generation model is provided. This method includes: identifying sample image data based on an initial generation model to obtain a predicted image report, which includes what is seen in the predicted image; annotating the sample image data with a sample image report, which includes what is seen in the sample image; extracting abnormal data from what is seen in the predicted image to obtain a first dataset, which includes abnormal data groups, each including an abnormal location and an abnormal description; matching the first dataset with a second dataset of what is seen in the sample image to obtain a third dataset, which includes the same abnormal data groups in the first and second datasets; obtaining a target reward value for the initial generation model based on the first, second, and third datasets; and adjusting the model parameters of the initial generation model based on the target reward value to obtain the image report generation model.

[0006] The above technical solution identifies sample image data based on an initial generation model to obtain a predicted image report. The predicted image report includes the predicted image view. Abnormal data is extracted from the predicted image view to obtain a first dataset. Structured abnormal data groups (containing abnormal locations and descriptions) are extracted from the predicted image view, and unstructured image views are converted into structured positive abnormal data groups. The first dataset is then matched with a second dataset of sample image views to obtain a third dataset. Fine-grained comparisons are performed between the sample image view and the predicted image view using the abnormal data groups to improve the accuracy of the third dataset. Based on this, the target reward value of the initial generation model is obtained using the first, second, and third datasets. The reliability of the target reward value is improved by the coverage rate (coverage of the third dataset relative to the second dataset) and accuracy rate (coverage of the third dataset relative to the first dataset), ensuring the robustness of the image report generation model and thus improving the accuracy of the generated image reports.

[0007] In some embodiments, matching the first dataset with the second dataset seen in the sample images to obtain a third dataset includes: matching the first dataset and the second dataset for abnormal parts to obtain a first abnormal description and a second abnormal description for the same abnormal part, wherein the first abnormal description is an abnormal description in the first dataset and the second abnormal description is an abnormal description in the second dataset; and determining the same abnormal data group based on the semantic similarity between the first abnormal description and the second abnormal description to obtain the third dataset.

[0008] The above technical solution performs anomaly matching on the first and second datasets to obtain first and second anomaly descriptions for the same anomaly locations. By narrowing down the comparison data of anomaly descriptions in the first and second datasets to the same location, it avoids the time consumption caused by comparing anomaly descriptions of multiple anomaly locations. Then, based on the semantic similarity of the first and second anomaly descriptions, it identifies identical anomaly data groups, ensuring the accuracy of identical anomaly data groups and thus improving the accuracy of the third dataset.

[0009] In some embodiments, the predicted image report further includes a predicted diagnostic conclusion, and the sample image report further includes a sample diagnostic conclusion; the method further includes: determining a disease category reward value based on the predicted diagnostic conclusion and the sample diagnostic conclusion; Based on the first, second, and third datasets, the target reward value of the initial generative model is obtained, including: determining the reward value of image visibility based on the first, second, and third datasets; and obtaining the target reward value of the initial generative model based on the disease category reward value and the reward value of image visibility.

[0010] The above technical solution determines the disease category reward value based on the predicted diagnostic conclusion and the sample diagnostic conclusion. The accuracy of the disease category reward value is ensured by comparing the predicted diagnostic conclusion with the actually labeled sample diagnostic conclusion. Furthermore, based on the first, second, and third datasets, the image-view reward value is determined. By analyzing the coverage and distribution information of abnormal data groups in the sample image-view and predicted image-view, the image-view reward value can be determined from the coverage and accuracy of the model prediction results, ensuring the reliability of the image-view reward value. On this basis, a target reward value is determined from two dimensions: the diagnostic conclusion and the image-view. The model parameters are optimized through the target reward, guiding the image report generation model to improve in both dimensions, ultimately improving the accuracy of the image report.

[0011] In some embodiments, the method further includes: extracting text features from the predicted image report and the sample image report to obtain a first text feature of the predicted image report and a second text feature of the sample image report; and obtaining a text reward value based on the first text feature and the second text feature. Based on the disease category reward value and the image-visible reward value, the target reward value of the initial generation model is obtained, including: based on the disease category reward value, the image-visible reward value, and the text reward value, the target reward value of the initial generation model is obtained.

[0012] The above technical solution extracts text features from the predicted image report and the sample image report, obtaining the first text features of the predicted image report and the second text features of the sample image report. Based on the first and second text features, a text reward value is obtained. By using the first and second text features of the predicted image report and the second text features of the sample image report, the fluency and professionalism of the description in the predicted image report output by the initial generation model can be evaluated. Then, based on the disease category reward value, the image finding reward value, and the text reward value, the target reward value of the initial generation model is obtained. The model is optimized from three dimensions, so that the image finding and diagnostic conclusions output by the model are accurate, while the text of the image report also has high standardization and professionalism, thereby improving the auxiliary effect of the image report on doctors' diagnosis.

[0013] In some embodiments, determining the image visibility reward value based on a first dataset, a second dataset, and a third dataset includes: determining a first proportion of the same dataset in the first dataset and the second dataset in the first dataset based on the first dataset and the third dataset; determining a second proportion of the same dataset in the first dataset and the second dataset in the second dataset based on the second dataset and the third dataset; and determining the image visibility reward value based on the first proportion and the second proportion.

[0014] The above technical solution, based on the first and third datasets, determines the first proportion of identical datasets in the first dataset and the second dataset in the second dataset, and determines the second proportion of identical datasets in the second dataset based on the second and third datasets. The first proportion reflects the accuracy of predicting outlier data groups in the predicted image view, and the second proportion reflects the coverage of outlier data groups in the predicted image view. Determining the image view reward value by using the first and second proportions ensures the accuracy of the image view reward value, thereby improving the generalization ability of the trained image report generation model. Furthermore, when determining the image view reward value solely by the first proportion, it is difficult to effectively suppress the omission of image view anomalies; while when determining the image view reward value solely by the second proportion, it encourages the model to output more outlier data, making it difficult to prevent the model from listing all anomalies. Therefore, combining the first and second proportions can effectively evaluate the accuracy of the model's output image view.

[0015] In some embodiments, determining the first proportion of identical datasets in the first dataset and the second dataset in the first dataset based on the first dataset and the third dataset includes: determining a first value based on the abnormal data groups in the first dataset, and determining a second value based on the abnormal data groups in the third dataset; determining the maximum value between the first value and the lower limit value as a first reference value; and determining the ratio of the second value to the first reference value as the first proportion.

[0016] The above technical solution determines a first value based on the abnormal data group in the first dataset and a second value based on the abnormal data group in the third dataset. By determining the first and second values ​​from the first and third datasets respectively, it can accurately determine the values ​​of the abnormal data groups in the first dataset and their correct values. Furthermore, a first reference value is determined from the first value and a lower limit value to avoid the problem of the first proportion being abnormally amplified when the first value is small, thus ensuring the comparability of the first proportion.

[0017] In some embodiments, determining a second proportion of identical datasets in the second dataset based on the second dataset and the third dataset includes: determining a third value based on outlier data groups in the second dataset, and determining a second value based on outlier data groups in the third dataset; determining the maximum value between the third value and the lower limit value as a second reference value; and determining the ratio of the second value to the second reference value as a second proportion.

[0018] The above technical solution determines a third value and a second value based on the outlier data groups in the second dataset. By determining the third and second values ​​from the second and third datasets respectively, it can accurately determine the values ​​of the outlier data groups in the second dataset and the coverage values ​​of the outlier data groups in the second dataset over the outlier data groups in the first dataset. Furthermore, a second reference value is determined from the third value and the lower limit of the value, avoiding the problem of the second proportion being abnormally amplified when the third value is small, thus ensuring the interpretability of the second proportion.

[0019] In some embodiments, determining a third value based on anomaly data groups in a second dataset includes: matching anomaly descriptions in anomaly data groups in a second dataset with a preset anomaly value relationship to obtain a first sub-value for each anomaly description, wherein the preset anomaly value relationship is used to indicate the correspondence between preset anomaly descriptions and preset values; and determining the sum of the first sub-values ​​of each anomaly description as the third value.

[0020] The above technical solution matches the anomaly descriptions in the anomaly data groups in the second dataset with the preset anomaly values ​​to obtain the first sub-value of each anomaly description. By traversing the anomaly descriptions in the anomaly data groups in the second dataset, the first sub-value of each anomaly description is determined, and the anomaly descriptions are converted into quantifiable values, thus quantifying the impact of missing different anomaly descriptions on the second proportion.

[0021] In some embodiments, determining the image visibility reward value based on the first proportion and the second proportion includes: obtaining the application scenario type of the image report generation model; determining the first weight corresponding to the first proportion and the second weight corresponding to the second proportion based on the application scenario type; and determining the image visibility reward value as the sum of the product of the first proportion and the first weight and the product of the second proportion and the second weight.

[0022] The above technical solution determines the first weight corresponding to the first proportion and the second weight corresponding to the second proportion based on the application scenario type of the image report generation model. It can dynamically determine the first weight and the second weight according to the application scenario type, and express the emphasis of different application scenarios in a differentiated manner, so as to ensure the robustness of the image report generation model trained under different scenarios.

[0023] In some embodiments, the disease category reward value is determined based on the predicted diagnostic conclusion and the sample diagnostic conclusion, including: determining the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion; determining the recall, precision, false negative rate, false positive rate and balance index of the disease category based on the predicted disease category and the sample disease category; and determining the disease category reward value based on the recall, precision, false negative rate, false positive rate and balance index of the disease category.

[0024] The above technical solution determines the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion. Based on the predicted disease category and the sample disease category, it determines the recall rate, precision, false negative rate, false positive rate and balance index of the disease category. It statistically analyzes the performance of the predicted diagnostic conclusion in disease category identification from multiple dimensions, and then determines the disease category reward value based on the recall rate, precision, false negative rate, false positive rate and balance index of the disease category to ensure the accuracy of the disease category reward value.

[0025] In some embodiments, determining the disease category reward value based on the recall, precision, false negative rate, false positive rate, and balance index of the disease category includes: adjusting the numerical distribution of the balance index based on a mapping function to obtain a target balance index; determining a first complement value for the false negative rate and a second complement value for the false positive rate; and weighting the recall, precision, first complement value, second complement value, and target balance index to obtain the disease category reward value.

[0026] The above technical solution adjusts the numerical distribution of balance indicators based on a mapping function to obtain the target balance indicator. Adjusting the numerical distribution of the balance indicator through the mapping function effectively avoids the problem of clustering of balance indicator distributions. Furthermore, the first complement of recall, precision, and false negative rate, the second complement of false positive rate, and the target balance indicator are weighted together to obtain the disease category reward value. This multi-dimensional weighted fusion not only makes the model's output results for positive cases more accurate but also strengthens the penalty and correction for false negatives and false positives, thereby improving the robustness and generalization ability of the image report generation model.

[0027] In some embodiments, the predicted image report includes multiple predicted image reports; adjusting the model parameters of the initial generation model based on the target reward value to obtain the image report generation model includes: obtaining the relative reward value of each predicted image report among the multiple predicted image reports based on the target reward value of the multiple predicted image reports; determining the loss value of the initial generation model based on the relative reward value of each predicted image report among the multiple predicted image reports; and adjusting the model parameters of the initial generation model based on the loss value to obtain the image report generation model.

[0028] The above technical solution obtains the relative reward value of each predicted image report among multiple predicted image reports based on the target reward value of multiple predicted image reports. Based on the relative reward value of each predicted image report among multiple predicted image reports, the loss value of the initial generation model is determined. The relative reward value within the batch is determined by the target reward value of each predicted image report, and the target reward value is converted into a ranking reward value within the batch, so that the model learns the information of the better image reports in the group of image reports and improves the accuracy of the model in generating image reports.

[0029] In some embodiments, extracting abnormal data from the predicted image to obtain a first dataset includes: extracting positive abnormal data from the predicted image based on an abnormal data extraction model to obtain an initial abnormal data group, wherein the abnormal data extraction model does not extract data based on a preset fixed dictionary; and performing deduplication on the initial abnormal data group to obtain the first dataset, wherein the first dataset does not include negative statements, unseen statements, or uncertainty statements.

[0030] In some embodiments, the method further includes: determining whether a first dataset is an empty set and whether a second dataset is an empty set; when the first dataset is an empty set and the second dataset is an empty set, determining a target reward value for the initial generation model based on a preset image-seen reward value; The first dataset is matched with the second dataset seen in the sample image to obtain the third dataset. This includes matching the first dataset with the second dataset seen in the sample image when the first dataset is not empty or the second dataset is not empty.

[0031] In the above technical solution, when both the first and second datasets are empty, the predicted image and the sample image are identical, indicating accurate recognition by the representation model. Therefore, based on the preset reward value for the image, the target reward value for the initial generation model is determined without needing to calculate for both datasets, saving computational resources. However, when either the first or second dataset is not empty, the representation model may have biases. In this solution, the first dataset is matched with the second dataset as seen in the sample image to determine the matching degree between them, thereby determining the target reward value and ensuring its accuracy.

[0032] Secondly, an image report generation method is provided, the method comprising: acquiring image data to be processed; identifying the image data to be processed based on an image report generation model to obtain an initial image report of the image data to be processed, wherein the image report generation model is obtained based on the training method of the image report generation model in the first aspect or any possible implementation of the first aspect; and determining a target image report based on the initial image report.

[0033] The above technical solution uses an image report generation model to identify the image data to be processed, obtaining an initial image report. Based on this initial report, a target image report is determined. During model training, the reliability of the target reward value is improved by adjusting the coverage and accuracy of outlier data groups, ensuring the robustness of the image report generation model. Furthermore, using the image report generation model to identify the image data to be processed to obtain the target image report enhances the accuracy of the generated image reports.

[0034] Thirdly, a training device for an image report generation model is provided. This device includes: a model recognition module for recognizing sample image data based on an initial generation model to obtain a predicted image report, which includes what is seen in the predicted image; sample image data labeled with a sample image report, which includes what is seen in the sample image; a data extraction module for extracting abnormal data from what is seen in the predicted image to obtain a first dataset, which includes abnormal data groups, each including an abnormal location and an abnormal description; a data matching module for matching the first dataset with a second dataset of what is seen in the sample image to obtain a third dataset, which includes the same abnormal data groups in the first and second datasets; a data processing module for obtaining a target reward value for the initial generation model based on the first, second, and third datasets; and a parameter adjustment module for adjusting the model parameters of the initial generation model based on the target reward value to obtain the image report generation model.

[0035] In some embodiments, the data matching module is specifically used to perform anomaly location matching on the first dataset and the second dataset to obtain a first anomaly description and a second anomaly description of the same anomaly location. The first anomaly description is an anomaly description in the first dataset, and the second anomaly description is an anomaly description in the second dataset. Based on the semantic similarity between the first anomaly description and the second anomaly description, the same anomaly data group is determined to obtain a third dataset.

[0036] In some embodiments, the predicted image report further includes a predicted diagnostic conclusion, and the sample image report further includes a sample diagnostic conclusion; the data processing module is used to determine the disease category reward value based on the predicted diagnostic conclusion and the sample diagnostic conclusion; determine the image-viewed reward value based on the first dataset, the second dataset, and the third dataset; and obtain the target reward value of the initial generative model based on the disease category reward value and the image-viewed reward value.

[0037] In some embodiments, the data processing module is used to extract text features from the predicted image report and the sample image report to obtain a first text feature of the predicted image report and a second text feature of the sample image report; to obtain a text reward value based on the first text feature and the second text feature; and to obtain a target reward value for the initial generation model based on the disease category reward value, the image appearance reward value, and the text reward value.

[0038] In some embodiments, the data processing module is specifically configured to: determine a first proportion of identical datasets in the first dataset and the second dataset in the first dataset based on the first dataset and the third dataset; determine a second proportion of identical datasets in the first dataset and the second dataset in the second dataset based on the second dataset and the third dataset; and determine the image-visible reward value based on the first proportion and the second proportion.

[0039] In some embodiments, the data processing module is specifically used to determine a first value based on an anomaly group in a first dataset, and to determine a second value based on an anomaly group in a third dataset; to determine the maximum value between the first value and the lower limit value as a first reference value; and to determine the ratio of the second value to the first reference value as a first proportion.

[0040] In some embodiments, the data processing module is specifically used to determine a third value based on an anomaly group in the second dataset, and to determine a second value based on an anomaly group in the third dataset; to determine the maximum value between the third value and the lower limit value as a second reference value; and to determine the ratio between the second value and the second reference value as a second proportion.

[0041] In some embodiments, the data processing module is specifically used to match the abnormal descriptions in the abnormal data groups in the second dataset with a preset abnormal value relationship to obtain the first sub-value of each abnormal description, whereby the preset abnormal value relationship is used to indicate the correspondence between the preset abnormal description and the preset value; and to determine the sum of the first sub-values ​​of each abnormal description as the third value.

[0042] In some embodiments, the data processing module is specifically used to obtain the application scenario type of the image report generation model; based on the application scenario type, determine the first weight corresponding to the first proportion and the second weight corresponding to the second proportion; and determine the sum of the product of the first proportion and the first weight and the product of the second proportion and the second weight as the image visibility reward value.

[0043] In some embodiments, the data processing module is specifically used to determine the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion; based on the predicted disease category and the sample disease category, to determine the recall, precision, false negative rate, false positive rate and balance index of the disease category; and based on the recall, precision, false negative rate, false positive rate and balance index of the disease category, to determine the reward value of the disease category.

[0044] In some embodiments, the data processing module is specifically used to adjust the numerical distribution of the balance index based on the mapping function to obtain the target balance index; determine the first complement of the missed rate and the second complement of the false positive rate; and perform weighted processing on the recall rate, precision rate, first complement, second complement and the target balance index to obtain the disease category reward value.

[0045] In some embodiments, the predicted image report includes multiple predicted image reports; the parameter adjustment module is specifically used to obtain the relative reward value of each predicted image report in the multiple predicted image reports based on the target reward value of the multiple predicted image reports; determine the loss value of the initial generation model based on the relative reward value of each predicted image report in the multiple predicted image reports; and adjust the model parameters of the initial generation model based on the loss value to obtain the image report generation model.

[0046] In some embodiments, the data extraction module is specifically used to extract positive anomaly data from the predicted image based on the anomaly data extraction model to obtain an initial anomaly data group. The anomaly data extraction model does not extract data based on a preset fixed dictionary. The initial anomaly data group is deduplicated to obtain a first dataset. The first dataset does not include negative statements, unseen statements, or uncertainty statements.

[0047] In some embodiments, the data processing module is further configured to determine whether the first dataset is an empty set and whether the second dataset is an empty set; when the first dataset is an empty set and the second dataset is an empty set, the target reward value of the initial generation model is determined based on the preset image-seen reward value. The data matching module is specifically used to match the first dataset with the second dataset seen in the sample image when the first dataset is not empty or the second dataset is not empty, to obtain the third dataset.

[0048] Fourthly, an image report generation apparatus is provided, comprising: a data acquisition module for acquiring image data to be processed; a model recognition module for recognizing the image data to be processed based on an image report generation model to obtain an initial image report of the image data to be processed, wherein the image report generation model is obtained by a training device based on the image report generation model in the third aspect or any possible implementation thereof; and a report generation module for determining a target image report based on the initial image report.

[0049] Fifthly, an electronic device is provided, including a memory and a processor, wherein the memory is used to store executable program code; and the processor is used to call and run the executable program code from the memory, causing the electronic device to perform the method in the first aspect or any possible implementation thereof.

[0050] In a sixth aspect, an electronic device is provided, including a memory and a processor, wherein the memory is used to store executable program code; and the processor is used to call and run the executable program code from the memory, causing the electronic device to perform the method described in the second aspect above.

[0051] In a seventh aspect, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0052] Eighthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the method described in the second aspect.

[0053] Ninthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the method described in the first aspect or any possible implementation thereof.

[0054] In a tenth aspect, a computer program product is provided, comprising: computer program code that, when executed on a computer, causes the computer to perform the method described in the second aspect above.

[0055] Based on this, the initial generation model identifies sample image data to obtain a predicted image report. The predicted image report includes what is seen in the predicted image. Abnormal data is extracted from the predicted image view to obtain the first dataset. Structured abnormal data groups (containing abnormal locations and descriptions) are extracted from the predicted image view, and unstructured image views are converted into structured positive abnormal data groups. The first dataset is then matched with the second dataset of sample image views to obtain the third dataset. Fine-grained comparisons are performed between the sample image view and the predicted image view from the abnormal data groups to improve the accuracy of the third dataset. Based on this, the target reward value of the initial generation model is obtained from the first, second, and third datasets. The reliability of the target reward value is improved by the coverage rate (coverage of the third dataset relative to the second dataset) and precision rate (coverage of the third dataset relative to the first dataset) of the abnormal data groups, ensuring the robustness of the image report generation model and thus improving the accuracy of the generated image reports. Attached Figure Description

[0056] Figure 1 This is a schematic diagram of a scene for generating an image report according to an embodiment of this application; Figure 2 This is a schematic diagram of a report editing interface provided in an embodiment of this application; Figure 3 This is a schematic diagram of a target image report provided in an embodiment of this application; Figure 4This is a schematic diagram of the framework of a training system for an image report generation model provided in an embodiment of this application; Figure 5 This is a schematic diagram of the framework of an image report generation system provided in an embodiment of this application; Figure 6 This is a schematic flowchart illustrating a training method for an image report generation model provided in an embodiment of this application; Figure 7 This is a schematic diagram illustrating how to determine the reward value for a disease category, as provided in an embodiment of this application. Figure 8 This is a schematic diagram of a model training method provided in an embodiment of this application; Figure 9 This is a schematic flowchart illustrating another training method for an image report generation model provided in an embodiment of this application; Figure 10 This is a schematic flowchart of an image report generation method provided in an embodiment of this application; Figure 11 This is a schematic diagram illustrating the generation of image data to be processed, provided in an embodiment of this application. Figure 12 This is a schematic diagram illustrating the generation of a target image report provided in an embodiment of this application; Figure 13 This is a schematic diagram of the structure of a training device for an image report generation model provided in an embodiment of this application; Figure 14 This is a schematic diagram of the structure of an image report generation device provided in an embodiment of this application; Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 16 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application. Detailed Implementation

[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0058] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Furthermore, descriptions involving "first," "second," etc., in this invention are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" can explicitly or implicitly include at least one of those features. In the description of this invention, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0059] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0060] Before introducing the application scenarios of the embodiments of this application, we will first explain the technical terms that may be involved in the embodiments of this application.

[0061] Digital Imaging and Communications in Medicine (DICOM): DICOM is an international standard for medical images and related information. It defines a medical image format that meets clinical needs and can be used for data exchange.

[0062] Portable Network Graphics (PNG): PNG is a bitmap image format that supports lossless compression.

[0063] Artificial Intelligence (AI) refers to the intelligent behaviors exhibited by computer systems, including the ability to learn, reason, perceive, understand natural language, and recognize images, aiming to simulate or extend human cognitive functions.

[0064] Group Relative Policy Optimization (GRPO): GRPO is a reinforcement learning algorithm for aligning large language models. GRPO does not require training an additional value function (Critic) network. Instead, it estimates the baseline by sampling a set of outputs under the same cue word and calculating the relative advantage within the group, thereby reducing memory usage and computational overhead.

[0065] Visual-Language Model (VLM): A VLM is a multimodal artificial intelligence model capable of simultaneously processing and understanding images (visual modality) and text (language modality). For example, a VLM receives a chest X-ray image as visual input and combines it with instructions to generate corresponding medical report text.

[0066] Supervised Fine-Tuning (SFT): Optimizing a model using a small amount of labeled data to adapt it to a specific task. For example, before GRPO reinforcement learning, the model is fine-tuned using a labeled image dataset to ensure it follows the instruction format and medical reporting standards when outputting image reports.

[0067] Imaging findings (Findings): also known as imaging manifestations; imaging findings are the objective description of medical imaging data, which objectively describes the visual features that the medical imaging data can reflect. For example, the imaging findings of chest X-ray data are: "Clear lung textures, normal heart size and shape".

[0068] Diagnostic Impression: Also known as a diagnostic impression; a diagnostic impression is a comprehensive diagnostic opinion based on findings and clinical context.

[0069] With the rapid development of medical imaging technology, medical imaging examinations have become an important basis for clinical diagnosis. For example, imaging reports are generated based on models, and doctors refer to these reports to determine the final diagnosis. Among related technologies, supervised fine-tuning is used to optimize lexical prediction, thereby improving the fluency of the text generated by the imaging report generation model. However, this model training method cannot guarantee the accuracy of the imaging report content.

[0070] Taking chest X-ray image data as an example, a chest X-ray visual language model (i.e., an image report generation model) can generate image reports containing findings and impressions based on chest X-ray images such as anteroposterior and lateral views. However, conventional supervised fine-tuning mainly optimizes the next lexical prediction. Even if the generated text is fluent, it may still miss abnormalities in the image findings, list hallucinations not supported by the images, or omit / falsely report diseases in the diagnostic conclusions. Bilingual Evaluation Understudy (BLEU) and Recall-oriented Summary Evaluation Understudy (Recall) are solutions. Oriented Understudy for Gisting Evaluation (ROUGE), BERT-based semantic similarity scoring (BERT) Word-based similarity evaluations such as the BERTS score are easily influenced by synonyms and reporting templates, and cannot directly constrain whether "image findings are complete or excessive." Coarse-grained diagnostic error counting, such as the GREEN score, is too general and cannot express the quality of specific abnormality coverage. Another type of closed-set supervision (fixed disease / abnormality dictionary multi-label classification, or matching the extracted results with structured disease annotations after normalization by a terminology dictionary) can only constrain the correctness of the descriptions within a predefined set of categories, and has no supervisory ability for descriptions of abnormalities outside the dictionary, rare or new abnormalities. That is, the model can miss these abnormalities in the image findings without being penalized.

[0071] In addition, existing rewards are mostly based on symmetrical indicators (such as F1). The score, or Intersection over Union (IoU), has equal weights for false negatives and false negatives, which fails to reflect the clinical priority of "no omissions in imaging findings" (recall priority, with the business baseline typically being an imaging findings coverage of 90% to 95% and a hallucination findings rate of less than 10%). Simply increasing recall can induce the model to list all possible abnormalities (reward hacking).

[0072] In view of this, this application proposes a training method, an image report generation method, and related apparatus for an image report generation model. Through the embodiments of this application, a set of positive abnormalities (i.e., a second dataset) is dynamically extracted from the images seen in sample image reports using a non-fixed dictionary approach. This set is matched with the extraction results of images seen in predicted image reports (i.e., a first dataset). An asymmetric reward (i.e., the image report reward value) is constructed, primarily based on coverage (i.e., a second proportion) and secondarily based on the suppression of hallucinations (i.e., a first proportion). Furthermore, a text reward value is calculated based on the disease category reward and lexical or semantic index clusters such as BLEU / ROUGE / BERTScore / RadGraph-F1 / GREEN. The disease category reward, text reward value, and image report reward value are combined to obtain a target reward value, which is then used to train the image report generation model via GRPO.

[0073] It should be emphasized that this application only includes positive anomalies in the dataset when extracting from the open set of sights (negative and unseen class mentions are not included in the positive anomaly set). Compared with the extraction of entities (e.g., extracting "nodule" from "fuzzy nodule shadow" and also extracting "nodule" from "no seen nodule", thus giving a false presence diagnosis signal), the model is closer to the goal of high recall and low illusion.

[0074] The following is combined with Figures 1 to 3 The application scenarios of this application will be introduced.

[0075] Figure 1 This is a schematic diagram of a scene for generating an image report provided in an embodiment of this application.

[0076] For example, such as Figure 1 As shown, a doctor scans the user using an imaging acquisition device to obtain medical image data (such as lung images) containing lesion information. This medical image data is then preprocessed to obtain preprocessed data, which is input into an image report generation model to output an initial image report. To ensure the accuracy of the image report, the doctor can edit (e.g., add, delete, or modify) the initial image report generated by the image report generation model based on the medical image data to generate a target image report. It should be understood that the user sees the target image report.

[0077] Figure 2 This is a schematic diagram of a report editing interface provided in an embodiment of this application.

[0078] For example, after identifying medical image data according to the image report generation model and obtaining the initial image report, the initial image report is transmitted to the doctor's work device. The initial image report and medical image data are displayed on the workstation device, which makes it convenient for the doctor to modify the initial image report.

[0079] Figure 2 The system displays the top status bar, chest X-ray image display area, and AI-generated structured report editing area. The top status bar shows the basic information and report status of the case. The chest X-ray image display area shows the medical image data. The AI-generated structured report editing area displays the image findings, diagnostic conclusions, and editable information in the initial image report generated by the image report generation model.

[0080] The top status bar, located at the very top of the display interface, includes the patient identifier, examination type, data source, and image report status. The patient identifier is the patient's unique identifier, used to link to the hospital's information system. The examination type is a chest X-ray (PA / lateral view) to indicate the expected viewing angle of the image data to the physician. The image data source is the Picture Archiving and Communication System (PACS), and the patient registration information comes from the Radiology Information System (RIS). The image report status is "AI report generated, not yet issued," which informs the physician that an initial image report has been generated by the image report generation model, but is currently awaiting manual review.

[0081] The chest X-ray image display area is located on the left side of the display interface. The AI-generated structured report editing area is located on the right side of the display interface. The AI-generated structured report editing area includes a disease list and an abnormality list. These lists contain the initial image report content. The options in the disease list and abnormality list are fixed during the editing process; doctors can confirm the options by checking the boxes in these lists. The AI-generated structured report editing area also includes a chest X-ray findings editing area (i.e., the Findings area) and a conclusion editing area (i.e., the Impression area). The content in the chest X-ray findings editing area can be added or deleted synchronously based on the doctor's selections in the abnormality list. For example, if the doctor selects "Right lower lung - patchy density increase" in the abnormality list, the chest X-ray findings editing area will simultaneously add "Right lower lung - patchy density increase". Of course, doctors can also input their findings in the chest X-ray findings editing area based on medical imaging data (the doctor's input will not be synchronously updated in the abnormality list). The content in the conclusion editing area can be added or deleted synchronously based on the doctor's selection of the disease list column. Doctors can also enter the disease category in the conclusion editing area based on medical imaging data.

[0082] Furthermore, the following is combined with Figure 3 The initial image report is edited, and the resulting target image report is introduced.

[0083] Figure 3This is a schematic diagram of a target image report provided in an embodiment of this application.

[0084] Figure 3 The system displays the top status bar, chest X-ray image display area, and structured report display area. The top status bar shows basic case information and report status, transitioning from "unissued" to "issued." The chest X-ray image display area shows the medical imaging data. The structured report display area shows the image findings and conclusions from the medical imaging data. The image findings section contains... Figure 2 The content edited by the TCM doctor regarding the chest X-ray findings, while the imaging conclusion is... Figure 2 The content edited by the TCM doctor in the conclusion editing area.

[0085] It should be noted that, Figure 3 The layout of the target image report shown is only one possible approach in actual application and does not limit the layout used in actual application. The specific layout can be determined according to the actual situation and is not limited here.

[0086] After introducing the application scenarios of this application, the following will combine... Figure 4 and Figure 5 The training system and image report generation system of the image report generation model in this application are introduced.

[0087] Figure 4 This is a schematic diagram of the framework of a training system for an image report generation model provided in an embodiment of this application.

[0088] For example, such as Figure 4 As shown, the training system 100 for the image report generation model includes an image reading module 110, a data extraction module 120, a reward calculation module 130, a reinforcement learning module 140, and a model generation module 150.

[0089] The image reading module 110 is used to read sample image data, which is manually annotated with a sample image report. The sample image report includes the appearance of the sample image and the diagnostic conclusion. It also uses an initial generation model to identify the sample image data and obtain a predicted image report, which includes the predicted appearance of the image and the predicted diagnostic conclusion.

[0090] The data extraction module 120 includes a view extraction submodule, a disease extraction submodule, and a text extraction submodule. The view extraction submodule is used to extract positive abnormal data from the predicted image view to obtain a first dataset. The first dataset includes abnormal data groups, each containing an abnormal location and an abnormal description. The view extraction submodule is also used to extract positive abnormal data from the sample image view to obtain a second dataset. The second dataset includes abnormal data groups, each containing an abnormal location and an abnormal description.

[0091] The disease extraction submodule is used to extract disease categories from the predicted diagnosis conclusions based on the disease dictionary to obtain the predicted disease categories; the disease extraction submodule is also used to extract disease categories from the sample diagnosis conclusions based on the disease dictionary to obtain the sample disease categories.

[0092] The text extraction submodule is used to extract text features from the predicted image report to obtain the first text feature; the text extraction submodule is also used to extract text features from the sample image report to obtain the second text feature.

[0093] The reward calculation module 130 includes a visible reward calculation submodule, a disease reward calculation submodule, an auxiliary reward calculation submodule, and a comprehensive calculation submodule. The visible reward calculation submodule is used to match the first dataset and the second dataset to obtain a third dataset. The third dataset includes the same abnormal data groups in the first dataset and the second dataset, thereby obtaining the image visible reward value based on the first dataset, the second dataset, and the third dataset.

[0094] The disease reward calculation submodule determines the recall, precision, false negative rate, false positive rate, and balance index of a disease category based on the predicted disease category and the sample disease category, and determines the disease category reward value based on these metrics. The auxiliary reward calculation submodule obtains the text reward value based on the first text feature and the second text feature.

[0095] The comprehensive calculation submodule is used to obtain the target reward value based on the reward value seen in the image, the reward value of the disease category, and the reward value of the text.

[0096] The reinforcement learning module 140 is used to obtain the relative reward value of each predicted image report among multiple predicted image reports based on the target reward value of each predicted image report among multiple predicted image reports, and to determine the loss value of the initial generation model based on the relative reward value of each predicted image report among multiple predicted image reports. The model generation module 150 is used to adjust the model parameters of the initial generation model based on the loss value to obtain the image report generation model.

[0097] The above technical solution aligns the initial report generation model from "fluent language" to an image report generation model that "covers what is seen in the image and minimizes hallucinations" through model training, thereby ensuring the accuracy of the content generated by the image report generation model.

[0098] Figure 5 This is a schematic diagram of the framework of an image report generation system provided in an embodiment of this application.

[0099] For example, such as Figure 5 As shown, the image report generation system 200 includes an image receiving module 210, a data processing module 220, a model inference module 230, and a report generation module 240.

[0100] The image receiving module 210 receives image data to be processed. The data processing module 220 includes a bit depth conversion submodule and an image processing submodule. The bit depth conversion submodule converts high dynamic range images from hospitals into images with a preset bit depth. For example, since hospital image data is usually stored in 16-bit high dynamic range DICOM, and the visual language model (or image report generation model) usually receives normalized 8-bit images, the 16-bit pixel data needs to be mapped to 0 to 255 according to the DICOM window width and window level or a preset quantile point, and then converted to 8-bit PNG. The image processing submodule preprocesses the bit depth-converted image so that the processed data can be input into the image report generation model. For example, the size of the bit depth-converted image is resized to 516*516 so that the processed data can be input into the image report generation model. It should be understood that the data preprocessing methods on the application side and the training side are the same, and the data preprocessing methods on the training side can be deduced by analogy with those on the application side.

[0101] The model inference module 230 is used to input the preprocessed image data to be processed into the image report generation model and output an initial image report of the image data to be processed. The report generation module 240 is used to generate a target image report based on the initial image report and the doctor's edits.

[0102] After introducing the application scenarios of the embodiments of this application, the training method of the image report generation model provided by the embodiments of this application will be introduced below.

[0103] Figure 6 This is a schematic flowchart illustrating a training method for an image report generation model provided in an embodiment of this application.

[0104] For example, Figure 6 The training method for the image report generation model shown can be executed by an electronic device or a cloud server. The training method 300 for the image report generation model includes steps S310 to S350.

[0105] S310 identifies sample image data based on the initial generation model and obtains a predicted image report.

[0106] For example, the predicted image report includes predicted image findings and predicted diagnostic conclusions; the sample image data is labeled with a sample image report, which includes sample image findings and sample diagnostic conclusions.

[0107] The sample image report includes the doctor's written or confirmed findings on the sample images and the sample diagnosis conclusion. Before model training, the report is standardized into a parsable two-part structure. For example, "Findings: xxx\nImpression: xxx", <findings>xxx\n <impression>The training prompt is "xxx" or another equivalent structure specified beforehand during training. The training prompt is "Generate a clinical report based on the input chest X-ray image, strictly following the format 'Findings: xxx\nImpression:xxx'. Answer the report content and do not output any other irrelevant information. The chest X-ray image is:", followed by a list of tokens converted from the chest X-ray image. It should be understood that during model training, descriptions of anomalies seen in the images are the core supervised object.

[0108] The initial generation model is a visual language model, which is a model fine-tuned by SFT. SFT fine-tuning enables the initial generation model to learn to generate reports according to specific instructions. The SFT training is consistent with the SFT training of regular large models. The total loss value is calculated using cross-entropy loss, and the model parameters are adjusted based on the total loss value.

[0109] For example, the sample image data is preprocessed according to the input format requirements of the initial generation model, and the preprocessed data is input into the initial generation model to output a predicted image report of the sample image data. The two-part structure of the predicted image report is the same as the structure of the sample image report.

[0110] Optionally, preprocessing of the sample image data may include bit depth conversion and / or image resizing. For example, hospital image data is typically stored in high dynamic range (e.g., 16-bit), while visual language models typically receive normalized low-bit images (e.g., 8-bit). Therefore, it is necessary to first convert the high-bit image to a low-bit image and then perform resizing so that the processed data can be input into the initial generation model to obtain a predicted image report.

[0111] S320: Extract abnormal data from the predicted image to obtain the first dataset.

[0112] For example, positive data (i.e. abnormal data) seen in the predicted image are extracted to obtain a first dataset. The first dataset includes abnormal data groups. Each abnormal data group includes an abnormal location and an abnormal description. The abnormal location is determined based on the human body parts in the sample image data, and the abnormal description is an abnormal description of the abnormal location seen in the predicted image, that is, a description of the positive manifestation of the abnormal location.

[0113] For example, extracting abnormal data from the predicted image to obtain a first dataset includes: extracting positive abnormal data from the predicted image based on an abnormal data extraction model to obtain an initial abnormal data group, wherein the abnormal data extraction model does not extract data based on a preset fixed dictionary; and performing deduplication on the initial abnormal data group to obtain the first dataset, wherein the first dataset does not include negative statements, unseen statements, or uncertainty statements.

[0114] It should be understood that the anomaly extraction model is a frozen large model. Positive anomaly data is extracted through the anomaly extraction model, and data extraction is not based on a preset fixed dictionary. Positive anomaly data extraction is determined through semantic parsing to ensure the accuracy of positive anomaly data extraction.

[0115] For example, an anomaly extraction model is used to determine whether the data seen in the predicted image is a positive sight. This positive anomaly data is identified as the initial anomaly data group, and duplicates are removed to obtain the first dataset. The first dataset does not include negative statements, "not seen" statements, or uncertainty statements. Positive anomaly data (i.e., positive sights) are then incorporated into the first dataset, which includes anomaly data groups, each containing anomaly locations and descriptions. Negative, "not seen," or "suspected" data are not included in the first dataset. The anomaly extraction model is then used to determine whether the data seen in the sample image is a positive sight. This positive anomaly data is then incorporated into the second dataset, which also includes anomaly data groups, each containing anomaly locations and descriptions. It should be understood that both the first and second datasets are deduplicated datasets. The anomaly data groups in the first and second datasets may be the same or different.

[0116] For example, an anomaly extraction model is used to extract positive anomalies from both predicted image reports and sample image reports. A JSON array (or JSON list) is output based on deterministic prompts. Each anomaly data group is represented by {anomaly location, anomaly description, and evidence sentence}. The embedding similarity of the anomaly data groups corresponding to the predicted image reports is then calculated. Anomaly data groups with embedding similarities greater than a preset similarity (e.g., 0.85, which can be calibrated) are deduplicated to achieve semantic merging and deduplication of the anomaly data groups corresponding to the predicted image reports, thus obtaining the first dataset of predicted image reports. Similarly, semantic merging and deduplication are performed on the anomaly data groups corresponding to the sample image reports to obtain the second dataset of sample image reports.

[0117] An anomaly extraction model with 32 billion parameters (32B) can be used. This model does not participate in the gradient update of the image report generation model and does not require separate training for reinforcement learning tasks. Its core function is to read the views in the predicted image and the views in the sample image, and output the first dataset of the views in the predicted image and the second dataset of the views in the sample image, respectively, based on the open-set deterministic prompts and structured output constraints.

[0118] S330, Match the first dataset with the second dataset seen in the sample images to obtain the third dataset.

[0119] For example, the third dataset includes the same abnormal data groups in the first dataset and the second dataset. The abnormal parts in the same abnormal data groups in the first dataset and the second dataset are the same, and the semantic similarity of the abnormal descriptions is greater than the preset similarity.

[0120] For example, anomaly matching is performed on the first dataset and the second dataset to obtain a first anomaly description and a second anomaly description for the same anomaly location. The first anomaly description is an anomaly description in the first dataset, and the second anomaly description is an anomaly description in the second dataset. Based on the semantic similarity between the first anomaly description and the second anomaly description, the same anomaly data group is determined to obtain the third dataset.

[0121] Anomaly matching is performed on the first and second datasets to obtain groups of identical anomaly parts in both datasets. These groups then yield first and second anomaly descriptions for the same anomaly parts, with the first description appearing in the first dataset and the second in the second. Further, the semantic similarity between the first and second anomaly descriptions is determined, and a greedy maximum similarity matching algorithm is used to identify identical anomaly groups, thus obtaining the third dataset.

[0122] Specifically, the first and second anomaly descriptions are sorted in descending order based on semantic similarity. The first and second anomaly descriptions with the highest semantic similarity are selected sequentially. It is then determined whether the semantic similarity is greater than a preset similarity. If the semantic similarity is greater than the preset similarity, the first / second anomaly description and the same anomaly part are identified as the same anomaly data group, and this same anomaly data group is merged into the third dataset. Already paired first and second anomaly descriptions are then removed. When the semantic similarity is less than or equal to the preset similarity, the semantic similarity comparison continues until all first and second anomaly descriptions have been traversed, thus obtaining the third dataset.

[0123] The above technical solution performs anomaly matching on the first and second datasets to obtain first and second anomaly descriptions for the same anomaly locations. By narrowing down the comparison data of anomaly descriptions in the first and second datasets to the same location, it avoids the time consumption caused by comparing anomaly descriptions of multiple anomaly locations. Then, based on the semantic similarity of the first and second anomaly descriptions, it identifies identical anomaly data groups, ensuring the accuracy of identical anomaly data groups and thus improving the accuracy of the third dataset.

[0124] To further improve the accuracy of identifying identical outlier data sets, each outlier data set also includes an evidence sentence. This evidence sentence indicates the description and characterization of the outlier. Therefore, the first dataset includes outlier data sets, each containing an outlier location, an outlier description, and an evidence sentence; the second dataset also includes outlier data sets, each containing an outlier location, an outlier description, and an evidence sentence.

[0125] For example, anomaly matching is performed on the first dataset and the second dataset to obtain a first anomaly description, a second anomaly description, a first evidence sentence, and a second evidence sentence for the same anomaly. The first anomaly description is an anomaly description in the first dataset, and the second anomaly description is an anomaly description in the second dataset; the first evidence sentence is an evidence sentence in the first dataset, and the second evidence sentence is an evidence sentence in the second dataset. The semantic similarity between the first and second anomaly descriptions, and the semantic similarity between the first and second evidence sentences, are then determined. Based on the semantic similarity between the first and second anomaly descriptions and the semantic similarity between the first and second evidence sentences, the same anomaly data groups are identified to obtain the third dataset.

[0126] S340, based on the first dataset, the second dataset, and the third dataset, obtains the target reward value of the initial generative model.

[0127] For example, the target reward value of the initial generative model can be determined based on what is seen in the image, or it can be determined based on a combination of image diagnostic conclusions and image findings. Of course, it can also be determined based on a combination of image diagnostic conclusions, image findings, and textual features of the image report.

[0128] Example 1: Determine the target reward value based on what is seen in the image.

[0129] Based on the first, second, and third datasets, the reward value of image visibility is determined and used as the target reward value for the initial generation model.

[0130] In one example, determining the image-seen reward value based on a first dataset, a second dataset, and a third dataset includes: determining a first proportion of the same datasets in the first and second datasets within the first dataset based on the first and third datasets; determining a second proportion of the same datasets in the first and second datasets within the second dataset based on the second and third datasets; and determining the image-seen reward value based on the first and second proportions.

[0131] In another example, it is determined whether the first dataset is empty and whether the second dataset is empty; when the first dataset is empty and the second dataset is empty, the target reward value of the initial generation model is determined based on the preset reward value seen in the image; the first dataset is matched with the second dataset seen in the sample image to obtain the third dataset, including: when the first dataset is not empty or the second dataset is not empty, the first dataset is matched with the second dataset seen in the sample image to obtain the third dataset.

[0132] It should be noted that an empty first dataset means that it does not contain any outlier data; that is, the predicted imagery does not contain any positive outliers. When the first dataset is empty, the values ​​of the outlier groups in the first dataset are 0. Similarly, an empty second dataset means that it does not contain any outlier groups; that is, the sample imagery does not contain any positive outliers. When the second dataset is empty, the values ​​of the outlier groups in the second dataset are 0.

[0133] When the value of the outlier data group in the first dataset is 0, and the value of the outlier data group in the second dataset is 0, the preset image-seen reward value (e.g., 1, which can be calibrated) is determined as the target reward value for the initial generation model. For example, the preset image-seen reward value is determined as the image-seen reward value, and then the image-seen reward value is determined as the target reward value.

[0134] Specifically, it is determined whether the values ​​of the outlier data groups in the first dataset and the second dataset are both 0. When both the outlier data groups in the first and second datasets are 0, the preset image visibility reward value is determined as the image visibility reward value. When neither the outlier data group in the first nor the second dataset is 0, a first proportion and a second proportion are determined respectively, and the image visibility reward value is determined based on the first and second proportions.

[0135] In the above technical solution, when both the first and second datasets are empty, the predicted image and the sample image are identical, indicating accurate recognition by the representation model. Therefore, based on the preset reward value for the image, the target reward value for the initial generation model is determined without needing to calculate for both datasets, saving computational resources. However, when either the first or second dataset is not empty, the representation model may have biases. In this solution, the first dataset is matched with the second dataset as seen in the sample image to determine the matching degree between them, thereby determining the target reward value and ensuring its accuracy.

[0136] The first percentage represents the proportion of identical datasets in the first dataset compared to the second dataset. This first percentage reflects how many outlier data sets in the first dataset are included in the second dataset, and can help suppress model illusions. The second percentage represents the proportion of identical datasets in the first dataset compared to the second dataset. This second percentage reflects how many outlier data sets in the second dataset are included in the first dataset.

[0137] The above technical solution, based on the first and third datasets, determines the first proportion of identical datasets in the first dataset and the second dataset in the second dataset, and determines the second proportion of identical datasets in the second dataset based on the second and third datasets. The first proportion reflects the accuracy of predicting outlier data groups in the predicted image view, and the second proportion reflects the coverage of outlier data groups in the predicted image view. Determining the image view reward value by using the first and second proportions ensures the accuracy of the image view reward value, thereby improving the generalization ability of the trained image report generation model. Furthermore, when determining the image view reward value solely by the first proportion, it is difficult to effectively suppress the omission of image view anomalies; while when determining the image view reward value solely by the second proportion, it encourages the model to output more outlier data, making it difficult to prevent the model from listing all anomalies. Therefore, combining the first and second proportions can effectively evaluate the accuracy of the model's output image view.

[0138] For example, determining the first proportion of identical datasets in the first dataset and the second dataset in the first dataset based on the first dataset and the third dataset includes: determining a first value based on the abnormal data groups in the first dataset, and determining a second value based on the abnormal data groups in the third dataset; determining the maximum value between the first value and the lower limit value as a first reference value; and determining the ratio of the second value to the first reference value as the first proportion.

[0139] For example, the first dataset is The second dataset is The third dataset is M, and the expression for determining the first proportion can be expressed as follows: ; in, Indicates the first percentage, This represents the second value of the outlier group in the third dataset. This represents the first value of the outlier data group in the first dataset, where 1 is the lower limit of the value (which can be calibrated). This indicates the first reference value.

[0140] The above technical solution determines a first value based on the abnormal data group in the first dataset and a second value based on the abnormal data group in the third dataset. By determining the first and second values ​​from the first and third datasets respectively, it can accurately determine the values ​​of the abnormal data groups in the first dataset and their correct values. Furthermore, a first reference value is determined from the first value and a lower limit value to avoid the problem of the first proportion being abnormally amplified when the first value is small, thus ensuring the comparability of the first proportion.

[0141] For example, determining the second proportion of identical datasets in the second dataset based on the second dataset and the third dataset includes: determining a third value based on the outlier data groups in the second dataset, and determining a second value based on the outlier data groups in the third dataset; determining the maximum value between the third value and the lower limit value as a second reference value; and determining the ratio of the second value to the second reference value as a second proportion.

[0142] For example, the first dataset is The second dataset is The third dataset is M, and the expression for determining the second proportion can be expressed as follows: ; in, This indicates the second percentage. This represents the second value of the outlier group in the third dataset. This represents the third value of the outlier data group in the second dataset, where 1 is the lower limit of the value (which can be calibrated). This indicates the second reference value.

[0143] The above technical solution determines a third value and a second value based on the outlier data groups in the second dataset. By determining the third and second values ​​from the second and third datasets respectively, it can accurately determine the values ​​of the outlier data groups in the second dataset and the coverage values ​​of the outlier data groups in the second dataset over the outlier data groups in the first dataset. Furthermore, a second reference value is determined from the third value and the lower limit of the value, avoiding the problem of the second proportion being abnormally amplified when the third value is small, thus ensuring the interpretability of the second proportion.

[0144] It should be understood that the second proportion reflects how many outlier data groups in the second dataset are included in the first dataset, i.e., the coverage of the correct data groups by the first dataset. To avoid missing important information from the predicted imagery, the weights of missed views are adjusted to increase the coverage penalty.

[0145] Based on the abnormal data groups in the second dataset, a third value is determined, including: matching the abnormal descriptions in the abnormal data groups in the second dataset with a preset abnormal value relationship to obtain the first sub-value of each abnormal description, where the preset abnormal value relationship is used to indicate the correspondence between the preset abnormal descriptions and the preset values; and summing the first sub-values ​​of each abnormal description to determine the third value.

[0146] The preset anomaly value relationship indicates the correspondence between preset anomaly descriptions and preset values. Different preset anomaly descriptions may correspond to the same or different preset values. When matching anomaly descriptions with preset anomaly value relationships, semantic similarity is calculated between the anomaly description and the preset anomaly description. If the semantic similarity is greater than the preset similarity, the preset value corresponding to the maximum semantic similarity is determined as the first sub-value. If the semantic similarity is less than or equal to the preset similarity, a default value (e.g., 1, which can be specified) is determined as the first sub-value.

[0147] Specifically, based on the relationship between the abnormal descriptions in the abnormal data groups of the second dataset and the preset abnormal value relationship, the first sub-value of each abnormal description in each abnormal data group is obtained. The sum of all the first sub-values ​​in the second dataset is determined as the third value. Similarly, based on the relationship between the abnormal descriptions in the abnormal data groups of the third dataset and the preset abnormal value relationship, the second sub-value of each abnormal description in each abnormal data group is obtained. The sum of all the second sub-values ​​in the third dataset is determined as the second value. For example, for clinically unmissable abnormalities such as pneumothorax, pleural effusion, fracture, tuberculosis, and pneumonia, omissions can be multiplied by a key weight (e.g., 1.5-2.0, calibrable) and aggravated in the coverage penalty.

[0148] The above technical solution matches the anomaly descriptions in the anomaly data groups in the second dataset with the preset anomaly values ​​to obtain the first sub-value of each anomaly description. By traversing the anomaly descriptions in the anomaly data groups in the second dataset, the first sub-value of each anomaly description is determined, and the anomaly descriptions are converted into quantifiable values, thus quantifying the impact of missing different anomaly descriptions on the second proportion.

[0149] Furthermore, after determining the first proportion (or precision) of the same dataset in the first dataset and the second proportion (or coverage) of the same dataset in the second dataset, the image-seen reward value is determined based on the first proportion and the second proportion.

[0150] In one example, the sum of the first percentage and the second percentage is determined as the image visibility reward value. Alternatively, the average of the first percentage and the second percentage is determined as the image visibility reward value.

[0151] In another example, the application scenario type of the image report generation model is obtained; based on the application scenario type, the first weight corresponding to the first proportion and the second weight corresponding to the second proportion are determined; the sum of the product of the first proportion and the first weight and the product of the second proportion and the second weight is determined as the image visibility reward value.

[0152] Optionally, the application scenarios for the image report generation model may include, but are not limited to: physical examination scenarios (or screening scenarios), diagnostic assistance scenarios, emergency triage scenarios, special case screening scenarios (such as key screening for disease A), etc., without specific limitations.

[0153] For example, in a physical examination scenario, the first weight could be 0.2 and the second weight 0.8. In a diagnostic assistance scenario, the first weight could be 0.4 and the second weight 0.6. In an emergency triage scenario, the first weight is greater than the second weight, such as a first weight of 0.4 and a second weight of 0.6. In a special case screening scenario, the first weight is greater than the second weight, such as a first weight of 0.3 and a second weight of 0.7. It should be understood that the first and second weights shown above are only one possible weight configuration method in practical applications and do not limit the specific values ​​of the first and second weights.

[0154] The expression for determining the reward value of an image can be represented as follows: ; in, This represents the reward value seen in the image. Indicates the first weight. Indicates the first percentage, Indicates the second weight. This indicates the second percentage.

[0155] The above technical solution determines the first weight corresponding to the first proportion and the second weight corresponding to the second proportion based on the application scenario type of the image report generation model. It can dynamically determine the first weight and the second weight according to the application scenario type, and express the emphasis of different application scenarios in a differentiated manner, so as to ensure the robustness of the image report generation model trained under different scenarios.

[0156] Example 2: Determine the target reward value based on the image findings and image diagnosis conclusions.

[0157] For example, based on the predicted diagnostic conclusion and the sample diagnostic conclusion, the disease category reward value is determined; based on the first dataset, the second dataset, and the third dataset, the image-visible reward value is determined; based on the disease category reward value and the image-visible reward value, the target reward value of the initial generative model is obtained.

[0158] It is determined whether the values ​​of the abnormal data groups in the first dataset and the second dataset are both 0. When the values ​​of the abnormal data groups in both the first and second datasets are 0, the preset image visibility reward value is determined as the image visibility reward value. When the values ​​of the abnormal data groups in either the first or second dataset are not 0, a first proportion and a second proportion are determined respectively, and the image visibility reward value is determined based on the first and second proportions. Optionally, the method for determining the first and second proportions can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0159] The sample diagnostic conclusion is determined based on the findings in the sample image, while the predicted diagnostic conclusion is determined based on the findings in the predicted image. It should be understood that image findings do not necessarily include positive abnormal descriptions, and the diagnostic conclusion does not necessarily include a disease category. Therefore, by comparing the predicted diagnostic conclusion with the sample diagnostic conclusion, the accuracy of the predicted diagnostic conclusion output by the initial generation model can be determined, and thus the disease category reward value can be determined.

[0160] After determining the disease category reward value and the image visibility reward value, a weighted average is applied to obtain the target reward value for the initial generative model. For example, the expression for determining the target reward value can be represented as follows: ; in, Indicates the target reward value. The weights representing the reward values ​​seen in the image. This represents the reward value seen in the image. This indicates the weight of the reward value for each disease category. This represents the reward value for the disease category. The weight of the reward value for image visualization is greater than the weight of the reward value for the disease category. The weights of the reward value for image visualization and the reward value for the disease category can be determined based on the actual situation.

[0161] The above technical solution determines the disease category reward value based on the predicted diagnostic conclusion and the sample diagnostic conclusion. The accuracy of the disease category reward value is ensured by comparing the predicted diagnostic conclusion with the actually labeled sample diagnostic conclusion. Furthermore, based on the first, second, and third datasets, the image-view reward value is determined. By analyzing the coverage and distribution information of abnormal data groups in the sample image-view and predicted image-view, the image-view reward value can be determined from the coverage and accuracy of the model prediction results, ensuring the reliability of the image-view reward value. On this basis, a target reward value is determined from two dimensions: the diagnostic conclusion and the image-view. The model parameters are optimized through the target reward, guiding the image report generation model to improve in both dimensions, ultimately improving the accuracy of the image report.

[0162] For example, determining the disease category reward value based on the predicted diagnostic conclusion and the sample diagnostic conclusion includes: determining the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion; determining the recall, precision, false negative rate, false positive rate and balance index of the disease category based on the predicted disease category and the sample disease category; and determining the disease category reward value based on the recall, precision, false negative rate, false positive rate and balance index of the disease category.

[0163] The predicted disease category for the predicted diagnosis is extracted from the disease dictionary, along with the sample disease category corresponding to the sample diagnosis (i.e., disease categories are extracted from the disease dictionary to generate a set of disease labels). The disease dictionary constrains the range of disease categories output by the reward model. Each disease label can include a standard name, synonym, negative expression, suspected expression, and normalized category. The disease dictionary is determined by doctors or personnel with professional knowledge through multiple rounds of revision based on the expected results of imaging reports and disease recognition performance (e.g., a disease dictionary for chest X-rays). Expressions such as negative or no abnormality found in the diagnosis are mapped to the "normal" category, while diseases or abnormal expressions not in the disease dictionary are mapped to the "other abnormalities" category.

[0164] It should be understood that when determining the dataset based on image observations, only positive anomalies are included; expressions indicating negation, uncertainty, or exclusion from the conclusion are not included in the set of positive anomalies. The processing of diagnostic conclusions is similar; only disease states identified as positive or requiring inclusion in the diagnostic conclusion are included in the disease category. Based on this, the open-set observation path and the closed-set diagnostic path are made independent: the open-set observation path is not normalized to a fixed category by a terminology dictionary, thus avoiding the inclusion or neglect of out-of-dictionary anomalies. The closed-set diagnostic path is normalized to a fixed category by a terminology dictionary and can be used for consistency supervision of disease categories.

[0165] For example, a disease extraction model with 32 billion parameters (32B) can be used. This model does not participate in the gradient update of the image report generation model, nor does it require separate training for reinforcement learning tasks. Its core function is to read the predicted diagnostic conclusion and the sample diagnostic conclusion, and output the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion based on the disease dictionary and diagnostic prompts. During disease category extraction, the model version, prompt version, optional disease dictionary version, inference parameters, and output format are fixed. Optionally, the output format can be JSON, key-value pairs, tables, or other structured formats; no specific limitations are imposed here.

[0166] The above technical solution determines the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion. Based on the predicted disease category and the sample disease category, it determines the recall rate, precision, false negative rate, false positive rate and balance index of the disease category. It statistically analyzes the performance of the predicted diagnostic conclusion in disease category identification from multiple dimensions, and then determines the disease category reward value based on the recall rate, precision, false negative rate, false positive rate and balance index of the disease category to ensure the accuracy of the disease category reward value.

[0167] Specifically, based on the predicted disease category and the sample disease category, the recall, precision, false negative rate, false positive rate and balance index of the disease category are determined. The balance index is adjusted in numerical distribution based on the mapping function to obtain the target balance index. The first complement value of the false negative rate and the second complement value of the false positive rate are determined. The recall, precision, first complement value, second complement value and target balance index are weighted to obtain the reward value of the disease category.

[0168] First, we will explain the statistical values ​​for calculating the recall, precision, false negative rate, false positive rate, and balance index for each disease category.

[0169] A true positive (TP) is a disease category present in both the predicted and sample disease categories, reflecting a disease type correctly identified by the model. A false positive (FP) is a disease category present in the predicted but absent in the sample, reflecting a disease type incorrectly identified by the model. A false negative (FN) is a disease category present in the sample but absent in the predicted, reflecting a disease category not identified by the model. A true negative (TN) is a disease category absent in both the predicted and sample disease categories, reflecting a disease category correctly identified as absent by the model.

[0170] Based on the predicted disease category and the sample disease category, TP, FP, FN, and TN are determined respectively. Then, based on TP, FP, FN, and TN, recall, precision, false negative rate, false positive rate, and balance metric are determined. The following explains recall, precision, false negative rate, false positive rate, and balance metric.

[0171] The recall rate of a disease category reflects the proportion of true disease categories correctly identified by the model. A higher recall rate indicates that fewer true disease categories are missed. The expression for determining recall can be represented as follows: ; in, The numbers represent recall rate, TP represents true positives, and FN represents false negatives.

[0172] Disease category precision reflects the proportion of truly existing disease categories in the model's output disease categories. Higher precision indicates more accurate model conclusions. The expression for determining precision can be represented as follows: ; in, The precision rate is indicated by TP for true positives and FP for false positives.

[0173] The false negative rate (FNR) for a disease category reflects the proportion of disease categories that the model does not output. A higher FNR indicates a greater likelihood of missing lesions / diseases. The expression for determining the FNR can be represented as follows: ; in, The false negative rate is indicated by TP, which represents true positives and FN, which represents false negatives.

[0174] The false positive rate (FPR) for a disease category reflects the proportion of disease categories incorrectly output by the model. A higher FPR indicates that the model generates more non-existent disease labels. The expression for determining the FPR can be represented as follows: ; in, The false alarm rate is indicated by FP, which stands for false positive and TN for true negative.

[0175] The F1 score for disease categories is the harmonic sum of precision and recall, balancing the issues of missed reports and false positives. The expression for the F1 score can be represented as follows:

[0176] Among them, F1 represents the balance index, TP represents true positive, FN represents false negative, and FP represents false negative.

[0177] Furthermore, in order to change the relative advantage space of the reward scale, the numerical distribution of the balance index is adjusted based on the mapping function to obtain the target balance index. The expression for the mapping function that determines the target balance index can be expressed as follows: ; in, Indicates the target balance index, Let p and q represent the balance index, with p and q being calibrated values. The mapping function follows the original scale mapping concept, only changing the source of the values. The mapping function converts the original balance index into relative scores for comparison within the reinforcement learning group; the first term differentiates scores close to p (e.g., 0.5 or 0.6), and the second term provides additional distinction for high-consistency values ​​exceeding q (e.g., 0.7). It should be understood that the mapping function only alters the relative advantage space between the reward scale and the candidate predicted image reports.

[0178] After determining the recall, precision, false negative rate, false positive rate, and target balance metric, the disease category reward value is determined based on these metrics. The expression for determining the disease category reward value can be expressed as follows: ; in, Indicates the target balance index, This indicates the weight of the target balance index. This indicates the target balance index. The weight representing the accuracy (e.g., 0.5). Indicates accuracy. The weight representing recall (e.g., 0.8). This indicates the recall rate. The weight representing the false negative rate (e.g., 0.5). Indicates the first complement value. This indicates the underreporting rate. The weight representing the false alarm rate (e.g., 0.5). Indicates the second complement value. This indicates the false alarm rate.

[0179] Figure 7 This is a schematic diagram illustrating how to determine the reward value for a disease category, as provided in an embodiment of this application.

[0180] For example, such as Figure 7 As shown, a disease extraction model is used to extract diseases from predicted diagnostic conclusions to obtain predicted disease categories, and the same model is used to extract diseases from sample diagnostic conclusions to obtain sample disease categories. Based on the predicted and sample disease categories, TP, FP, FN, and TN are determined, respectively. Recall, precision, false negative rate, false positive rate, and balance index are then determined based on TP, FP, FN, and TN. Finally, the disease category reward value is determined by combining recall, precision, false negative rate, false positive rate, and balance index.

[0181] It should be understood that during the disease category determination process, the weight of key disease categories can be increased based on false positives. For example, in the calculation of false positive and / or false negative rates, the weights can be adjusted according to the disease category to mitigate the cost of diagnostic false negatives and / or false positives. For instance, the weights of pneumothorax, pleural effusion, pneumonia, tuberculosis, and fractures can be adjusted according to medical application goals, thereby guiding the model to improve its corresponding capabilities in reinforcement learning. Optionally, the method of adjusting weights according to disease categories can refer to the method of adjusting the weights of anomaly descriptions based on preset anomaly numerical relationships, which will not be elaborated here.

[0182] The above technical solution adjusts the numerical distribution of balance indicators based on a mapping function to obtain the target balance indicator. Adjusting the numerical distribution of the balance indicator through the mapping function effectively avoids the problem of clustering of balance indicator distributions. Furthermore, the first complement of recall, precision, and false negative rate, the second complement of false positive rate, and the target balance indicator are weighted together to obtain the disease category reward value. This multi-dimensional weighted fusion not only makes the model's output results for positive cases more accurate but also strengthens the penalty and correction for false negatives and false positives, thereby improving the robustness and generalization ability of the image report generation model.

[0183] Example 3: Determine the target reward value based on the image findings, image diagnosis conclusions, and textual features of the image report.

[0184] For example, text features are extracted from the predicted image report and the sample image report to obtain the first text feature of the predicted image report and the second text feature of the sample image report; based on the first text feature and the second text feature, a text reward value is obtained; based on the disease category reward value, the image appearance reward value and the text reward value, the target reward value of the initial generation model is obtained.

[0185] It is determined whether the values ​​of the abnormal data groups in the first dataset and the second dataset are both 0. When the values ​​of the abnormal data groups in both the first and second datasets are 0, the preset image visibility reward value is determined as the image visibility reward value. When the values ​​of the abnormal data groups in either the first or second dataset are not 0, a first proportion and a second proportion are determined respectively, and the image visibility reward value is determined based on the first and second proportions. Optionally, the method for determining the first and second proportions can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0186] The predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion are determined. Based on the predicted disease category and the sample disease category, the recall, precision, false negative rate, false positive rate, and balance index of the disease category are determined respectively. Then, based on the recall, precision, false negative rate, false positive rate, and balance index of the disease category, the reward value of the disease category is determined. Optionally, the method for determining the reward value of the disease category can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0187] After determining the text reward value, disease category reward value, and image visibility reward value, a weighted average is applied to these values ​​to obtain the target reward value for the initial generative model. For example, the expression for determining the target reward value can be represented as follows: ; in, Indicates the target reward value. The weights representing the reward values ​​seen in the image. This represents the reward value seen in the image. This indicates the weight of the reward value for each disease category. This indicates the reward value for the disease category. The weights representing the text reward values This represents the text reward value. The weight of the image-visible reward value is greater than the weight of the disease category reward value, and the weight of the image-visible reward value is greater than the weight of the text reward value. The weights of the text reward value, the image-visible reward value, and the disease category reward value can be determined based on the actual situation.

[0188] The above technical solution extracts text features from the predicted image report and the sample image report, obtaining the first text features of the predicted image report and the second text features of the sample image report. Based on the first and second text features, a text reward value is obtained. By using the first and second text features of the predicted image report and the second text features of the sample image report, the fluency and professionalism of the description in the predicted image report output by the initial generation model can be evaluated. Then, based on the disease category reward value, the image finding reward value, and the text reward value, the target reward value of the initial generation model is obtained. The model is optimized from three dimensions, so that the image finding and diagnostic conclusions output by the model are accurate, while the text of the image report also has high standardization and professionalism, thereby improving the auxiliary effect of the image report on doctors' diagnosis.

[0189] Optionally, based on the first and second text features, one or more sub-reward values ​​can be determined, including but not limited to BLEU-1, BLEU-2, ROUGE-1, ROUGE-L, BERTScore, SembScore, RadGraph-F1, Generative Radiology Report Evaluation and Error Notation (GREEN), and ChexPrompt. Then, based on one or more sub-reward values, the text reward value is determined. For example, the expression for determining the text reward value can be expressed as follows: ; in, Indicates the text reward value. This represents the weight of the i-th sub-reward value. This represents the i-th sub-reward value.

[0190] Optionally, the first text features include, but are not limited to, word feature vectors, token embedding vectors, entity vectors, sentence embedding vectors, etc., and the second text features include, but are not limited to, word feature vectors, token embedding vectors, entity vectors, sentence embedding vectors, etc.

[0191] For example, by using the word feature vectors in the first text feature and the word feature vectors in the second text feature, the n consecutive words (n...) in the image report are statistically predicted. The number of times a word appears in the sample image report is used to determine the sub-reward value based on the word overlap ratio, and then the sub-reward value is determined by BLEU. The longest common subsequence length of the predicted image report in the sample image report is calculated by combining the word feature vectors from the first text feature and the word feature vectors from the second text feature. The sub-reward value is determined by the longest common subsequence length, and then the sub-reward value is determined by ROUGE.

[0192] The token embedding vector in the first text feature is matched with the token embedding vector in the second text feature by token-by-token cosine similarity. The sub-reward value is determined based on the cosine similarity, and then the sub-reward value is determined by BERTScore.

[0193] The sentence embedding vectors in the first text feature are matched sentence by sentence with the sentence embedding vectors in the second text feature. The sub-reward value is determined based on the cosine similarity, and then the sub-reward value is determined by SembScore.

[0194] The matching degree of entity relationship between the predicted image report and the sample and the image report is calculated by using the entity vector in the first text feature and the entity vector in the second text feature, and the sub-reward value is determined based on the entity relationship matching degree.

[0195] It should be understood that the text reward value between the predicted image report and the sample image report can be determined based on the text similarity, semantic similarity, entity relationship consistency, and number of coarse-grained clinical errors, etc., which will not be elaborated here.

[0196] Since the open-set coverage bonus (image coverage bonus value) is independent of most literal similarity bonuses, it can complement the text bonus value and the image coverage bonus value. To ensure image coverage and reduce hallucinations, the literal similarity bonus is used to make the wording of the image report closer to the sample image report. By integrating the text bonus value, the image coverage bonus value, and the disease category bonus value, the method of determining the target bonus value can ensure that the image report is more accurate.

[0197] Example 4: Determine the target reward value based on what is seen in the image, the diagnostic conclusion of the image, the textual features of the image report, and the format of the image report.

[0198] For example, the output format of the predicted image report is evaluated to determine the format reward value. Furthermore, text features are extracted from the predicted image report and the sample image report to obtain the first text features of the predicted image report and the second text features of the sample image report; based on the first and second text features, a text reward value is obtained; and based on the disease category reward value, the image visibility reward value, and the text reward value, the target reward value of the initial generative model is obtained.

[0199] It is determined whether the values ​​of the abnormal data groups in the first dataset and the second dataset are both 0. When the values ​​of the abnormal data groups in both the first and second datasets are 0, the preset image visibility reward value is determined as the image visibility reward value. When the values ​​of the abnormal data groups in either the first or second dataset are not 0, a first proportion and a second proportion are determined respectively, and the image visibility reward value is determined based on the first and second proportions. Optionally, the method for determining the first and second proportions can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0200] The predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion are determined. Based on the predicted disease category and the sample disease category, the recall, precision, false negative rate, false positive rate, and balance index of the disease category are determined respectively. Then, based on the recall, precision, false negative rate, false positive rate, and balance index of the disease category, the reward value of the disease category is determined. Optionally, the method for determining the reward value of the disease category can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0201] Text features are extracted from the predicted image report and the sample image report to obtain the first text features of the predicted image report and the second text features of the sample image report. Based on the first text features and the second text features, a text reward value is obtained. Optionally, the method for determining the text reward value can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0202] For example, it is determined whether the predicted image report divides the predicted image view and the predicted diagnosis conclusion according to the preset separation mark. When the predicted image report divides the predicted image view according to the preset separation mark, the first preset reward value is determined as the format reward value; when the predicted image report does not divide the predicted image view according to the preset separation mark, the second preset reward value is determined as the format reward value. The second preset reward value is less than the first preset reward value, such as the first preset reward value being 1 and the second preset reward value being 0.

[0203] After determining the format reward value, text reward value, disease category reward value, and image visibility reward value, a weighted average is applied to these values ​​to obtain the target reward value for the initial generative model. For example, the expression for determining the target reward value can be represented as follows: ; in, Indicates the target reward value. The weights representing the reward values ​​seen in the image. This represents the reward value seen in the image. This indicates the weight of the reward value for each disease category. This indicates the reward value for the disease category. The weights representing the text reward values This represents the text reward value. The weights representing the text reward values This represents the text reward value. The weight of the image-visible reward value is greater than the weight of the disease category reward value, the weight of the image-visible reward value is greater than the weight of the text reward value, and the weight of the image-visible reward value is greater than the weight of the format reward value. The weights of the format reward value, text reward value, image-visible reward value, and disease category reward value can be determined according to the actual situation.

[0204] S350, based on the target reward value, adjusts the model parameters of the initial generated model to obtain the image report generation model.

[0205] For example, the predicted image report includes multiple predicted image reports; based on the target reward value of the multiple predicted image reports, the relative reward value of each predicted image report in the multiple predicted image reports is obtained; based on the relative reward value of each predicted image report in the multiple predicted image reports, the loss value of the initial generation model is determined; based on the loss value, the model parameters of the initial generation model are adjusted to obtain the image report generation model.

[0206] It should be understood that a predicted image report includes multiple predicted image reports, which means that multiple predicted image reports are generated through the initial generation model, and all of these predicted image reports are image reports of sample image data.

[0207] The above technical solution obtains the relative reward value of each predicted image report among multiple predicted image reports based on the target reward value of multiple predicted image reports. Based on the relative reward value of each predicted image report among multiple predicted image reports, the loss value of the initial generation model is determined. The relative reward value within the batch is determined by the target reward value of each predicted image report, and the target reward value is converted into a ranking reward value within the batch, so that the model learns the information of the better image reports in the group of image reports and improves the accuracy of the model in generating image reports.

[0208] Figure 8 This is a schematic diagram of a model training method provided in an embodiment of this application.

[0209] For example, such as Figure 8 As shown, taking chest X-ray report generation as an example, during model training, an initial generation model (such as a chest X-ray report generation model) is first obtained after supervised fine-tuning. The initial generation model receives chest X-ray images and reporting task instructions, and outputs multiple predicted image reports with image findings and diagnostic conclusions. Then, in the GRPO reinforcement learning process, the corresponding target reward value is calculated for each predicted image report. Through GRPO training, the relative advantage within the group, i.e., the relative reward value, is obtained based on the reward differences among multiple candidate reports under the same chest X-ray. The loss value is then determined based on the relative reward value to update the initial generation model, making the model more inclined to generate reports that cover abnormalities and have fewer hallucinations in the sample reports.

[0210] A preferred implementation may insert an RL stage with traditional Natural Language Processing (NLP) / semantic metrics as rewards between SFT and clinical reward reinforcement learning (RL). That is, the initial generative model is trained with semantic metrics as rewards, and then trained again with image findings, diagnostic conclusions, and semantic information.

[0211] After training, export the model weights, visual preprocessing configuration, word segmenter or text processing configuration, report output template, version of open set extraction prompts and matching threshold, version of optional disease dictionary, and configuration of optional disease list generation module. If trained according to an application scenario, also determine the scenario identifier and weight version. The exported model is used for inference on the hospital diagnostic server.

[0212] Additionally, it should be noted that the image report output template requires the model to output at least two parts: image findings and a diagnostic conclusion. The template is a pre-specified two-part structure specified during training. When a disease list (or disease category) is enabled, the disease list is determined by the diagnostic conclusion.

[0213] The above technical solution identifies sample image data based on an initial generation model to obtain a predicted image report. The predicted image report includes the predicted image view. Abnormal data is extracted from the predicted image view to obtain a first dataset. Structured abnormal data groups (containing abnormal locations and descriptions) are extracted from the predicted image view, and unstructured image views are converted into structured positive abnormal data groups. The first dataset is then matched with a second dataset of sample image views to obtain a third dataset. Fine-grained comparisons are performed between the sample image view and the predicted image view using the abnormal data groups to improve the accuracy of the third dataset. Based on this, the target reward value of the initial generation model is obtained using the first, second, and third datasets. The reliability of the target reward value is improved by the coverage rate (coverage of the third dataset relative to the second dataset) and accuracy rate (coverage of the third dataset relative to the first dataset), ensuring the robustness of the image report generation model and thus improving the accuracy of the generated image reports.

[0214] Figure 9 This is a schematic flowchart illustrating another training method for an image report generation model provided in this application embodiment.

[0215] Exemplary, exemplary Figure 9 The training method for the image report generation model shown can be executed by an electronic device or a cloud server. The training method 400 for the image report generation model includes steps S401 to S413.

[0216] S401, based on the initial generation model, identifies the sample image data and obtains a predicted image report.

[0217] For example, the predicted image report includes predicted image findings and predicted diagnostic conclusions; the sample image data is labeled with a sample image report, which includes sample image findings and sample diagnostic conclusions.

[0218] The initial generative model is a visual language model, fine-tuned using SFT (Simultaneous Transformation of the Image). SFT tuning enables the initial generative model to learn to follow specific instructions for report generation. Based on this initial generative model, predicted image reports are generated from sample image data.

[0219] S402, extract abnormal data from the predicted image to obtain the first dataset, and extract abnormal data from the sample image to obtain the second dataset.

[0220] For example, positive data (i.e., abnormal data) seen in the predicted image are extracted to obtain a first dataset. The first dataset includes abnormal data groups, each of which includes an abnormal location and an abnormal description. The abnormal location is determined based on the human body parts in the sample image data, and the abnormal description is an abnormal description of the abnormal location seen in the predicted image, i.e., a description of the positive manifestation of the abnormal location. Furthermore, abnormal data seen in the sample image are extracted to obtain a second dataset. The second dataset includes abnormal data groups, each of which includes an abnormal location and an abnormal description.

[0221] An anomaly extraction model is used to identify anomalies in the data seen in the predicted images. This determines whether the data in the predicted images are positive findings. Positive anomaly data (i.e., positive findings) is incorporated into the first dataset, which includes anomaly data groups, each containing anomaly locations and descriptions. Data that is negative, not seen, or considered suspected are not incorporated into the first dataset. Similarly, the anomaly extraction model is used to identify anomalies in the data seen in the sample images. This determines whether the data in the sample images are positive findings. Positive anomaly data is incorporated into the second dataset, which also includes anomaly data groups, each containing anomaly locations and descriptions. It should be understood that both the first and second datasets are deduplicated. The anomaly data groups in the first and second datasets may be the same or different.

[0222] S403, perform anomaly location matching on the first dataset and the second dataset to obtain the first anomaly description and the second anomaly description for the same anomaly location.

[0223] For example, by performing anomaly matching on the first dataset and the second dataset, the same anomaly group in the first dataset and the second dataset are obtained. Then, the first anomaly description and the second anomaly description of the same anomaly are obtained. The first anomaly description is the anomaly description in the first dataset, and the second anomaly description is the anomaly description in the second dataset.

[0224] S404. Based on the semantic similarity between the first and second anomaly descriptions, identify the same anomaly data groups to obtain the third dataset.

[0225] For example, the semantic similarity between the first and second anomaly descriptions is determined, and a greedy maximum similarity matching algorithm is used to identify identical anomaly data groups, thus obtaining the third dataset. Specifically, the first and second anomaly descriptions are sorted in descending order based on semantic similarity. The first and second anomaly descriptions with the highest semantic similarity are selected sequentially, and their semantic similarity is checked against a preset similarity. If the semantic similarity is greater than the preset similarity, the first / second anomaly description and the same anomaly part are identified as identical anomaly data groups, and these identical anomaly data groups are added to the third dataset. Already paired first and second anomaly descriptions are removed. When the semantic similarity is less than or equal to the preset similarity, the semantic similarity comparison continues until all first and second anomaly descriptions have been traversed, thus obtaining the third dataset.

[0226] S405, based on the first dataset and the third dataset, determine the first proportion, and based on the second dataset and the third dataset, determine the second proportion.

[0227] The first percentage represents the proportion of identical datasets in the first dataset compared to the second dataset. This first percentage reflects how many outlier data sets in the first dataset are included in the second dataset, and can help suppress model illusions. The second percentage represents the proportion of identical datasets in the first dataset compared to the second dataset. This second percentage reflects how many outlier data sets in the second dataset are included in the first dataset.

[0228] For example, a first value is determined based on the abnormal data group in the first dataset, and a second value is determined based on the abnormal data group in the third dataset; the maximum value between the first value and the lower limit value is determined as a first reference value; and the ratio of the second value to the first reference value is determined as a first proportion.

[0229] For example, a third value is determined based on the abnormal data groups in the second dataset, and a second value is determined based on the abnormal data groups in the third dataset; the maximum value between the third value and the lower limit value is determined as a second reference value; and the ratio of the second value to the second reference value is determined as a second proportion. Optionally, the method for determining the third value and the second value can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0230] S406, based on the first proportion and the second proportion, determine the image view reward value.

[0231] For example, the sum of the first proportion and the second proportion can be determined as the image visibility reward value. Alternatively, the average of the first proportion and the second proportion can be determined as the image visibility reward value. Of course, the image visibility reward value can also be determined comprehensively based on the application scenario of the image report generation model.

[0232] For example, the application scenario type of the image report generation model is obtained; based on the application scenario type, the first weight corresponding to the first proportion and the second weight corresponding to the second proportion are determined; the sum of the product of the first proportion and the first weight and the product of the second proportion and the second weight is determined as the image visibility reward value.

[0233] Optionally, the application scenarios for the image report generation model may include, but are not limited to: physical examination scenarios (or screening scenarios), diagnostic assistance scenarios, emergency triage scenarios, special case screening scenarios (such as key screening for disease A), etc., without specific limitations.

[0234] S407 determines the recall, precision, false negative rate, false positive rate, and balance index for disease categories based on predicted diagnostic conclusions and sample diagnostic conclusions.

[0235] For example, the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion are determined; based on the predicted disease category and the sample disease category, the recall, precision, false negative rate, false positive rate and balance index of the disease category are determined.

[0236] The predicted disease category for the predicted diagnosis is extracted from the disease dictionary, along with the sample disease category corresponding to the sample diagnosis (i.e., disease categories are extracted from the disease dictionary to generate a set of disease labels). The disease dictionary constrains the range of disease categories output by the reward model. Each disease label can include a standard name, synonym, negative expression, suspected expression, and normalized category. The disease dictionary is determined by doctors or personnel with professional knowledge through multiple rounds of revision based on the expected results of imaging reports and disease recognition performance (e.g., a disease dictionary for chest X-rays). Expressions such as negative or no abnormality found in the diagnosis are mapped to the "normal" category, while diseases or abnormal expressions not in the disease dictionary are mapped to the "other abnormalities" category.

[0237] Furthermore, after determining the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion, TP, FP, FN, and TN are determined according to the predicted disease category and the sample disease category, respectively. Then, recall, precision, false negative rate, false positive rate, and balance index are determined according to TP, FP, FN, and TN. Optionally, the determination method of recall, precision, false negative rate, false positive rate, and balance index can refer to the aforementioned disclosed embodiments, and will not be repeated here.

[0238] S408 determines the reward value for a disease category based on the recall, precision, false negative rate, false positive rate, and balance metric of the disease category.

[0239] For example, based on the predicted disease category and the sample disease category, the recall, precision, false negative rate, false positive rate and balance index of the disease category are determined. The balance index is adjusted by numerical distribution based on the mapping function to obtain the target balance index. The first complement value of the false negative rate and the second complement value of the false positive rate are determined. The recall, precision, first complement value, second complement value and target balance index are weighted to obtain the reward value of the disease category.

[0240] S409, extract text features from the predicted image report and the sample image report to obtain the first text feature and the second text feature.

[0241] For example, text features are extracted from the predicted image report and the sample image report to obtain the first text features of the predicted image report and the second text features of the sample image report.

[0242] Optionally, the first text features include, but are not limited to, word feature vectors, token embedding vectors, entity vectors, sentence embedding vectors, etc., and the second text features include, but are not limited to, word feature vectors, token embedding vectors, entity vectors, sentence embedding vectors, etc.

[0243] S410, based on the first text feature and the second text feature, obtain the text reward value.

[0244] For example, based on the first text feature and the second text feature, one or more sub-reward values ​​such as BLEU-1, BLEU-2, ROUGE-1, ROUGE-L, BERTScore, SembScore, RadGraph-F1, GREEN, and ChexPrompt can be determined, and then the text reward value can be determined based on one or more sub-reward values.

[0245] Since the open-set coverage bonus (image coverage bonus value) is independent of most literal similarity bonuses, it can complement the text bonus value and the image coverage bonus value. To ensure image coverage and reduce hallucinations, the literal similarity bonus is used to make the wording of the image report closer to the sample image report. By integrating the text bonus value, the image coverage bonus value, and the disease category bonus value, the method of determining the target bonus value can ensure that the image report is more accurate.

[0246] S411, based on the disease category reward value, the image view reward value, and the text reward value, the target reward value of the initial generative model is obtained.

[0247] For example, the weight of the reward value for image visibility is greater than the weight of the reward value for disease category, and the weight of the reward value for image visibility is greater than the weight of the reward value for text. The weights of the reward value for text, the reward value for image visibility, and the reward value for disease category can be determined according to the actual situation.

[0248] After determining the reward values ​​for disease category, image visibility, and text, the reward values ​​for disease category, image visibility, and text are weighted to obtain the target reward value for the initial generative model.

[0249] S412, based on the target reward value of multiple predicted image reports, obtain the relative reward value of each predicted image report in the multiple predicted image reports.

[0250] It should be understood that a predicted image report includes multiple predicted image reports, which means that multiple predicted image reports are generated through the initial generation model, and all of these predicted image reports are image reports of sample image data.

[0251] During model training, an initial generative model, fine-tuned under supervision, is first obtained. This initial model receives sample image data and reporting task instructions, outputting multiple predicted image reports with image findings and diagnostic conclusions. Then, during GRPO reinforcement learning, the target reward value is calculated for each predicted image report. Through GRPO training, the relative advantage within a group, i.e., the relative reward value, is obtained based on the reward differences among multiple candidate reports from the same chest radiograph.

[0252] S413, determine the loss value of the initial generation model based on the relative reward value, and adjust the model parameters of the initial generation model based on the loss value to obtain the image report generation model.

[0253] For example, by training with GRPO, the relative reward value within a group is obtained based on the reward difference of multiple candidate reports under the same chest X-ray, and the loss value is determined based on the relative reward value. The initial generative model is updated by the loss value, so that the model is more inclined to generate reports that cover the abnormalities in the sample reports and have fewer hallucinations.

[0254] The aforementioned technical solution, centered on open-set supervision based on image findings, overcomes the limitations of a fixed dictionary, achieving both the penalty for abnormalities outside the dictionary and the clinical requirement of "no omissions." It employs asymmetric rewards prioritizing coverage and suppressing hallucinations, along with rewards based on a combined set of diagnosed diseases, effectively suppressing model hallucinations and improving training performance. Furthermore, it allows for dynamic weight adjustment based on the model's business scenario (such as screening or diagnosis) to enable multi-scenario model deployment, and utilizes a frozen large model to replace independent reward model training. This significantly reduces annotation and training costs by requiring only optimization of prompt words and matching thresholds.

[0255] It should be understood that when the image report generation model needs to generate an image report that only includes the image findings or diagnostic conclusions, the model can be trained based on sample image findings or sample diagnostic conclusions. Alternatively, when the image report generation model needs to generate an image report that includes disease categories, the model can be trained based on sample disease categories. Taking a chest X-ray report as an example, the training prompt would be: 'Generate a clinical report based on the chest X-ray image, strictly following the format "Disease:xx, xx,xx", only answering disease information and not outputting other irrelevant information. The chest X-ray would then be: 'Followed by a list of tokens converted from the chest X-ray image.'

[0256] Figure 10 This is a schematic flowchart of an image report generation method provided in an embodiment of this application.

[0257] Exemplary, exemplary Figure 10 The image report generation method shown can be executed by an electronic device or a cloud server. The image report generation method 500 includes steps S510 to S530.

[0258] S510: Acquire image data to be processed.

[0259] For example, the image data to be processed is preprocessed image data. Preprocessing the image data includes bit depth conversion and / or image resizing. For instance, hospital image data is typically stored in high dynamic range (e.g., 16-bit), while visual language models typically receive normalized low-bit images (e.g., 8-bit). Therefore, it is necessary to first convert the high-bit image to a low-bit image and then perform resizing so that the processed data (i.e., the image data to be processed) can be input into the image report generation model to obtain an image report.

[0260] Taking chest X-rays as an example, after a patient completes a chest X-ray examination, the system acquires the data from that examination, as well as other chest X-ray images from the same examination (anteroposterior, lateral, or other views), and reads the pixel data, window width and level, image orientation, and necessary examination information from the DICOM file. Since hospital chest X-rays are typically stored in 16-bit high dynamic range DICOM, while visual language models usually receive normalized 8-bit images, the system maps the 16-bit pixel data to 0 to 255 according to the DICOM window width and level or preset quantile points, and converts it to 8-bit PNG. After conversion, the image is resized to 512x512 to make it usable as model input. It should be understood that this conversion does not change the original DICOM used by doctors for clinical interpretation. AI report generation uses the converted 8-bit PNG as model input; doctors can still view the original chest X-ray images and make final judgments on their workstations.

[0261] It should be noted that the process of processing raw image data into image data to be processed is the same as the process of processing raw sample data into sample image data during model training.

[0262] S520 identifies the image data to be processed based on the image report generation model and obtains the initial image report of the image data to be processed.

[0263] For example, the image data to be processed is input into the image report generation model, and an initial image report of the image data to be processed is output. Optionally, the training method of the image report generation model can refer to the training method in the foregoing disclosed embodiments, and will not be repeated here.

[0264] S530, based on the initial image report, determines the target image report.

[0265] For example, after the image report generation model outputs an initial image report, this initial image report can be used as the target image report, i.e., automatically issued for the user to view. To ensure the accuracy of the image report, it can also be generated and issued after confirmation by a doctor.

[0266] For example, the diagnostic server returns the initial image report (i.e., the initial draft of the AI ​​report) to the doctor's workstation, where the electronic interface of the doctor's workstation can display the editable area (e.g., ...). Figure 2 The editable area shown), the conclusion editable area (such as...) Figure 2 The conclusion editing area shown) and the optional list (such as...) Figure 2 The disease list and abnormality list are shown. Doctors can select items from the available lists to complete the content of the edit area and conclusion edit area. They can also easily add, delete, and modify items in the edit area and conclusion. They can confirm or adjust the disease list, or return to manual writing. After the doctor completes the review, the final report (i.e., the target image report) is written into the hospital reporting system and serves as the official diagnosis report for the patient.

[0267] The above technical solution uses an image report generation model to identify the image data to be processed, obtaining an initial image report. Based on this initial report, a target image report is determined. During model training, the reliability of the target reward value is improved by adjusting the coverage and accuracy of outlier data groups, ensuring the robustness of the image report generation model. Furthermore, using the image report generation model to identify the image data to be processed to obtain the target image report enhances the accuracy of the generated image reports.

[0268] The following is combined with Figure 11 and Figure 12 The process of generating target image reports is introduced.

[0269] Figure 11 This is a schematic diagram illustrating the generation of image data to be processed, provided in an embodiment of this application.

[0270] For example, such as Figure 11 As shown, after a patient completes an examination, the system receives the examination image data, as well as anteroposterior, lateral, or other chest X-ray images from the same examination. Since hospital image data is typically stored in high dynamic range (e.g., 16-bit), while visual language models usually receive normalized low-resolution images (e.g., 8-bit), it is necessary to first convert the high-resolution image to a low-resolution image, perform pixel conversion, and then size conversion. This ensures that the processed image data can be input into the image report generation model to obtain an image report.

[0271] Figure 12 This is a schematic diagram illustrating the generation of a target image report provided in an embodiment of this application.

[0272] For example, such as Figure 12 As shown, after generating the initial image report based on the image report generation model, the initial image report is returned to the doctor's workstation. The electronic interface of the doctor's workstation can display the view editing area, the conclusion editing area, and the optional list. The doctor can select items from the optional list to complete the content of the view editing area and the conclusion editing area. The doctor can also easily add, delete, and modify the view editing area and the conclusion to generate the target image report. It should be understood that the target image includes both the image findings and the diagnostic conclusion.

[0273] It should be understood that the above examples are provided to help those skilled in the art understand the embodiments of this application, and are not intended to limit the embodiments of this application to the specific values ​​or scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of this application.

[0274] The above text combined Figures 1 to 12 The training method or image report generation method of the image report generation model provided in the embodiments of this application are described in detail below; the following will be combined with Figure 13 and Figure 16 The apparatus embodiments of this application are described in detail below. It should be understood that the apparatus in the embodiments of this application can perform the various methods described in the foregoing embodiments of this application, that is, the specific working processes of the various products described below can be referred to the corresponding processes in the foregoing method embodiments.

[0275] Figure 13 This is a schematic diagram of the structure of a training device for an image report generation model provided in an embodiment of this application.

[0276] For example, such as Figure 13 As shown, the training device 600 for the image report generation model includes: Model recognition module 610: used to recognize sample image data based on the initial generated model and obtain a predicted image report, which includes what is seen in the predicted image; the sample image data is labeled with a sample image report, which includes what is seen in the sample image; Data extraction module 620: used to extract abnormal data from the predicted image to obtain a first dataset. The first dataset includes abnormal data groups, and each abnormal data group includes abnormal location and abnormal description. Data matching module 630: used to match the first dataset with the second dataset seen in the sample image to obtain a third dataset, the third dataset including the same abnormal data groups in the first dataset and the second dataset; Data processing module 640: used to obtain the target reward value of the initial generative model based on the first dataset, the second dataset, and the third dataset; Parameter adjustment module 650: used to adjust the model parameters of the initial generated model based on the target reward value to obtain the image report generation model.

[0277] In some embodiments, the data matching module 630 is specifically used to perform anomaly part matching on the first dataset and the second dataset to obtain a first anomaly description and a second anomaly description of the same anomaly part. The first anomaly description is an anomaly description in the first dataset, and the second anomaly description is an anomaly description in the second dataset. Based on the semantic similarity between the first anomaly description and the second anomaly description, the same abnormal data group is determined to obtain a third dataset.

[0278] In some embodiments, the predicted image report further includes a predicted diagnostic conclusion, and the sample image report further includes a sample diagnostic conclusion; the data processing module 640 is used to determine the disease category reward value based on the predicted diagnostic conclusion and the sample diagnostic conclusion; determine the image-viewed reward value based on the first dataset, the second dataset, and the third dataset; and obtain the target reward value of the initial generation model based on the disease category reward value and the image-viewed reward value.

[0279] In some embodiments, the data processing module 640 is used to extract text features from the predicted image report and the sample image report to obtain a first text feature of the predicted image report and a second text feature of the sample image report; to obtain a text reward value based on the first text feature and the second text feature; and to obtain a target reward value for the initial generation model based on the disease category reward value, the image visibility reward value, and the text reward value.

[0280] In some embodiments, the data processing module 640 is specifically configured to: determine a first proportion of identical datasets in the first dataset and the second dataset in the first dataset based on the first dataset and the third dataset; determine a second proportion of identical datasets in the first dataset and the second dataset in the second dataset based on the second dataset and the third dataset; and determine the image-seen reward value based on the first proportion and the second proportion.

[0281] In some embodiments, the data processing module 640 is specifically used to determine a first value based on an anomaly group in a first dataset, and to determine a second value based on an anomaly group in a third dataset; to determine the maximum value between the first value and the lower limit value of the value as a first reference value; and to determine the ratio of the second value to the first reference value as a first proportion.

[0282] In some embodiments, the data processing module 640 is specifically used to determine a third value based on an anomaly group in the second dataset, and to determine a second value based on an anomaly group in the third dataset; to determine the maximum value between the third value and the lower limit value as a second reference value; and to determine the ratio between the second value and the second reference value as a second proportion.

[0283] In some embodiments, the data processing module 640 is specifically used to match the abnormal descriptions in the abnormal data group in the second dataset with a preset abnormal value relationship to obtain the first sub-value of each abnormal description, the preset abnormal value relationship being used to indicate the correspondence between the preset abnormal description and the preset value; and to determine the sum of the first sub-values ​​of each abnormal description as the third value.

[0284] In some embodiments, the data processing module 640 is specifically used to obtain the application scenario type of the image report generation model; based on the application scenario type, determine the first weight corresponding to the first proportion and the second weight corresponding to the second proportion; and determine the sum of the product of the first proportion and the first weight and the product of the second proportion and the second weight as the image visibility reward value.

[0285] In some embodiments, the data processing module 640 is specifically used to determine the predicted disease category corresponding to the predicted diagnostic conclusion and the sample disease category corresponding to the sample diagnostic conclusion; based on the predicted disease category and the sample disease category, determine the recall, precision, false negative rate, false positive rate and balance index of the disease category; and based on the recall, precision, false negative rate, false positive rate and balance index of the disease category, determine the reward value of the disease category.

[0286] In some embodiments, the data processing module 640 is specifically used to adjust the numerical distribution of the balance index based on the mapping function to obtain the target balance index; determine the first complement of the false negative rate and the second complement of the false positive rate; and perform weighted processing on the recall rate, precision rate, first complement, second complement and the target balance index to obtain the disease category reward value.

[0287] In some embodiments, the predicted image report includes multiple predicted image reports; the parameter adjustment module 650 is specifically used to obtain the relative reward value of each predicted image report in the multiple predicted image reports based on the target reward value of the multiple predicted image reports; determine the loss value of the initial generation model based on the relative reward value of each predicted image report in the multiple predicted image reports; and adjust the model parameters of the initial generation model based on the loss value to obtain the image report generation model.

[0288] In some embodiments, the data extraction module 620 is specifically used to extract positive anomaly data from the predicted image based on the anomaly data extraction model to obtain an initial anomaly data group. The anomaly data extraction model does not extract data based on a preset fixed dictionary. The initial anomaly data group is deduplicated to obtain a first dataset. The first dataset does not include negative statements, unseen statements, or uncertainty statements.

[0289] In some embodiments, the data processing module 640 is further configured to determine whether the first dataset is an empty set and whether the second dataset is an empty set; when the first dataset is an empty set and the second dataset is an empty set, the target reward value of the initial generation model is determined based on the preset image-seen reward value. The data matching module 630 is specifically used to match the first dataset with the second dataset seen in the sample image when the first dataset is a non-empty set or the second dataset is a non-empty set, to obtain the third dataset.

[0290] It should be noted that the training device 600 for the aforementioned image report generation model is embodied in the form of functional units. The term "module" here can be implemented in software and / or hardware, without specific limitations.

[0291] Figure 14 This is a schematic diagram of the structure of an image report generation device provided in an embodiment of this application.

[0292] For example, such as Figure 14 As shown, the image report generation device 700 includes: Data acquisition module 710: Used to acquire image data to be processed; Model recognition module 720: used to recognize the image data to be processed based on the image report generation model, and obtain an initial image report of the image data to be processed. The image report generation model is obtained based on the training device of the image report generation model in the aforementioned disclosed embodiment. Report generation module 730: Used to determine the target image report based on the initial image report.

[0293] It should be noted that the aforementioned image report generation device 700 is embodied in the form of a functional unit. The term "module" here can be implemented in software and / or hardware, without specific limitations.

[0294] For example, a "module" can be a software program, a hardware circuit, or a combination of both that implements the above functions. The hardware circuit may include an application-specific integrated circuit (ASIC), electronic circuitry, a processor (e.g., a shared processor, a proprietary processor, or a group processor) and memory for executing one or more software or firmware programs, integrated logic circuitry, and / or other suitable components that support the described functions.

[0295] Therefore, the units of the various examples described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0296] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0297] For example, such as Figure 8 As shown, the electronic device 800 includes a memory 810 and a processor 820, wherein the memory 810 stores executable program code 830, and the processor 820 is used to call and execute the executable program code 830 to perform a training method for an image report generation model.

[0298] For example, the memory 810 can be used to store related programs of the training method for the image report generation model provided in the embodiments of this application; the processor 820 can call the related programs of the training method for the image report generation model stored in the memory 810 to execute the training method of the image report generation model in the embodiments of this application; for example, based on the initial generation model, the sample image data is identified to obtain a predicted image report, which includes what is seen in the predicted image; the sample image data is labeled with a sample image report, which includes what is seen in the sample image; abnormal data in the predicted image is extracted to obtain a first dataset, which includes abnormal data groups, each of which includes an abnormal location and an abnormal description; the first dataset is matched with the second dataset of what is seen in the sample image to obtain a third dataset, which includes the same abnormal data groups in the first and second datasets; based on the first dataset, the second dataset, and the third dataset, the target reward value of the initial generation model is obtained; based on the target reward value, the model parameters of the initial generation model are adjusted to obtain the image report generation model.

[0299] Figure 16 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application.

[0300] For example, such as Figure 9 As shown, the electronic device 900 includes a memory 910 and a processor 920, wherein the memory 910 stores executable program code 930, and the processor 920 is used to call and execute the executable program code 930 to perform an image report generation method.

[0301] For example, the memory 910 can be used to store related programs of the image report generation method provided in the embodiments of this application; the processor 920 can call the related programs of the image report generation method stored in the memory 910 to execute the image report generation method of the embodiments of this application; for example, acquiring image data to be processed; identifying the image data to be processed based on the image report generation model to obtain an initial image report of the image data to be processed, wherein the image report generation model is obtained based on the training method of the image report generation model in the aforementioned disclosed embodiments; and determining the target image report based on the initial image report.

[0302] This embodiment can divide the device into functional modules based on the above method example. For example, each module can correspond to a separate function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0303] When each functional module is divided according to its corresponding function, the device may further include a model recognition module, a data extraction module, a data matching module, a data processing module, a parameter adjustment module, etc. It should be noted that all relevant content regarding each step in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.

[0304] It should be understood that the apparatus provided in this embodiment is used to execute the above-described training method or image report generation method for an image report generation model, and thus can achieve the same effect as the above-described implementation method.

[0305] When using integrated units, the device may include a processing module and a storage module. The processing module may be a processor or a controller that can implement or execute various exemplary logic blocks, modules, and circuits shown in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0306] In addition, the apparatus provided in the embodiments of this application may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a training method or an image report generation method for an image report generation model provided in the above embodiments.

[0307] This application also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement the training method or image report generation method of the image report generation model provided in the above embodiments. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, Digital Video Discs (DVDs), Compact Disc Read-Only Memory (CD-ROMs), microdrives, and magneto-optical disks, read-only memory (ROMs), random access memory (RAMs), erasable programmable read-only memory (EPROMs), electrically erasable programmable read-only memory (EEPROMs), dynamic random access memory (DRAMs), video random access memory (VRAMs), flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0308] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the training method or image report generation method of the image report generation model provided in the above embodiments.

[0309] The computer-readable storage medium, computer program product, or chip provided in this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0310] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0311] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0312] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.< / impression> < / findings>

Claims

1. A training method for an image report generation model, characterized in that, The method includes: Based on the initial generation model, the sample image data is identified to obtain a predicted image report, which includes what is seen in the predicted image; the sample image data is labeled with a sample image report, which includes what is seen in the sample image; Abnormal data are extracted from the predicted image to obtain a first dataset. The first dataset includes abnormal data groups, and each abnormal data group includes an abnormal location and an abnormal description. The first dataset is matched with the second dataset seen in the sample image to obtain a third dataset, which includes the same abnormal data groups in the first dataset and the second dataset; Based on the first dataset, the second dataset, and the third dataset, the target reward value of the initial generation model is obtained; The model parameters of the initial generation model are adjusted based on the target reward value to obtain the image report generation model.

2. The method according to claim 1, characterized in that, The step of matching the first dataset with the second dataset seen in the sample images to obtain the third dataset includes: Anomaly location matching is performed on the first dataset and the second dataset to obtain a first anomaly description and a second anomaly description for the same anomaly location. The first anomaly description is the anomaly description in the first dataset, and the second anomaly description is the anomaly description in the second dataset. Based on the semantic similarity between the first anomaly description and the second anomaly description, the same anomaly data group is identified to obtain the third dataset.

3. The method according to claim 1, characterized in that, The predicted image report also includes predicted diagnostic conclusions, and the sample image report also includes sample diagnostic conclusions; the method further includes: Based on the predicted diagnostic conclusion and the sample diagnostic conclusion, the disease category reward value is determined; The step of obtaining the target reward value of the initial generative model based on the first dataset, the second dataset, and the third dataset includes: Based on the first dataset, the second dataset, and the third dataset, determine the image visibility reward value; Based on the disease category reward value and the image-visible reward value, the target reward value of the initial generation model is obtained.

4. The method according to claim 3, characterized in that, The method further includes: Text features are extracted from the predicted image report and the sample image report to obtain the first text feature of the predicted image report and the second text feature of the sample image report; Based on the first text feature and the second text feature, a text reward value is obtained; The process of obtaining the target reward value of the initial generation model based on the disease category reward value and the image-visible reward value includes: Based on the disease category reward value, the image visibility reward value, and the text reward value, the target reward value of the initial generation model is obtained.

5. The method according to claim 3, characterized in that, The step of determining the image visibility reward value based on the first dataset, the second dataset, and the third dataset includes: Based on the first dataset and the third dataset, determine the first proportion of the same dataset in the first dataset and the second dataset; Based on the second dataset and the third dataset, determine the second proportion of the same dataset in the first dataset and the second dataset in the second dataset; Based on the first proportion and the second proportion, the reward value of the image is determined.

6. The method according to claim 5, characterized in that, The step of determining the first proportion of identical datasets in the first dataset and the second dataset within the first dataset, based on the first dataset and the third dataset, includes: A first value is determined based on the abnormal data groups in the first dataset, and a second value is determined based on the abnormal data groups in the third dataset; The maximum value between the first value and the lower limit value is determined as the first reference value; The ratio of the second value to the first reference value is determined as the first proportion.

7. The method according to claim 5, characterized in that, The step of determining the second proportion of identical datasets in the first and second datasets within the second dataset, based on the second dataset and the third dataset, includes: A third value is determined based on the abnormal data groups in the second dataset, and a second value is determined based on the abnormal data groups in the third dataset; The maximum value between the third value and the lower limit value is determined as the second reference value; The ratio of the second value to the second reference value is determined as the second proportion.

8. The method according to claim 7, characterized in that, The step of determining the third value based on the abnormal data groups in the second dataset includes: Based on the anomaly descriptions in the anomaly data groups in the second dataset and the preset anomaly value relationship, the first sub-value of each anomaly description is obtained. The preset anomaly value relationship is used to indicate the correspondence between the preset anomaly description and the preset value. The sum of the first sub-values ​​of each of the aforementioned anomaly descriptions is determined as the third value.

9. The method according to claim 5, characterized in that, The step of determining the image visibility reward value based on the first proportion and the second proportion includes: Obtain the application scenario type of the image report generation model; Based on the application scenario type, determine the first weight corresponding to the first proportion and the second weight corresponding to the second proportion; The sum of the product of the first proportion and the first weight, and the product of the second proportion and the second weight, is determined as the reward value for the image seen.

10. The method according to claim 3, characterized in that, The process of determining the disease category reward value based on the predicted diagnostic conclusion and the sample diagnostic conclusion includes: Determine the predicted disease category corresponding to the predicted diagnostic conclusion, and the sample disease category corresponding to the sample diagnostic conclusion; Based on the predicted disease category and the sample disease category, the recall, precision, false negative rate, false positive rate and balance index of the disease category are determined; The reward value for the disease category is determined based on the recall rate, precision rate, false negative rate, false positive rate, and balance index of the disease category.

11. The method according to claim 10, characterized in that, The determination of the disease category reward value based on the recall rate, precision rate, false negative rate, false positive rate, and balance metric of the disease category includes: The target balance index is obtained by adjusting the numerical distribution of the balance index based on the mapping function. Determine a first complement value for the false alarm rate and a second complement value for the false alarm rate; The recall rate, precision rate, first complement, second complement, and target balance index are weighted to obtain the disease category reward value.

12. The method according to any one of claims 1 to 11, characterized in that, The predicted image report includes multiple predicted image reports; The step of adjusting the model parameters of the initial generation model based on the target reward value to obtain the image report generation model includes: Based on the target reward values ​​of the multiple predicted image reports, the relative reward value of each predicted image report in the multiple predicted image reports is obtained in the multiple predicted image reports. The loss value of the initial generation model is determined based on the relative reward value of each predicted image report among the multiple predicted image reports. The model parameters of the initial generation model are adjusted based on the loss value to obtain the image report generation model.

13. The method according to any one of claims 1 to 11, characterized in that, The step of extracting abnormal data from the predicted image to obtain a first dataset includes: Based on the anomaly data extraction model, positive anomaly data is extracted from the predicted image to obtain an initial anomaly data group. The anomaly data extraction model does not extract data based on a preset fixed dictionary. The initial abnormal data group is deduplicated to obtain the first dataset, which does not include negative statements, unseen class statements, and uncertain statements.

14. The method according to any one of claims 1 to 11, characterized in that, The method further includes: Determine whether the first dataset is an empty set, and whether the second dataset is an empty set; When the first dataset is an empty set and the second dataset is an empty set, the target reward value of the initial generation model is determined based on the preset image-seen reward value. The step of matching the first dataset with the second dataset seen in the sample images to obtain the third dataset includes: When the first dataset is a non-empty set or the second dataset is a non-empty set, the first dataset is matched with the second dataset seen in the sample image to obtain the third dataset.

15. A method for generating an image report, characterized in that, The method includes: Acquire the image data to be processed; The image data to be processed is identified based on the image report generation model to obtain an initial image report of the image data to be processed. The image report generation model is obtained based on the training method of the image report generation model according to any one of claims 1 to 14. Based on the initial image report, the target image report is determined.

16. A training device for an image report generation model, characterized in that, The device includes: The model recognition module is used to recognize the sample image data based on the initial generated model and obtain a predicted image report, which includes what is seen in the predicted image; the sample image data is labeled with a sample image report, which includes what is seen in the sample image; The data extraction module is used to extract abnormal data from the predicted image to obtain a first dataset. The first dataset includes abnormal data groups, and each abnormal data group includes an abnormal location and an abnormal description. A data matching module is used to match the first dataset with the second dataset seen in the sample image to obtain a third dataset, wherein the third dataset includes the same abnormal data groups in the first dataset and the second dataset; The data processing module is used to obtain the target reward value of the initial generation model based on the first dataset, the second dataset, and the third dataset; The parameter adjustment module is used to adjust the model parameters of the initial generation model based on the target reward value to obtain the image report generation model.

17. An image report generation device, characterized in that, The device includes: The data acquisition module is used to acquire the image data to be processed; The model recognition module is used to recognize the image data to be processed based on the image report generation model to obtain an initial image report of the image data to be processed. The image report generation model is obtained based on the training device of the image report generation model described in claim 16. The report generation module is used to determine the target image report based on the initial image report.

18. An electronic device, characterized in that, include: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the electronic device to perform the training method for the image report generation model as described in any one of claims 1 to 14.

19. An electronic device, characterized in that, include: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the electronic device to perform the image report generation method as described in claim 15.

20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the training method for the image report generation model as described in any one of claims 1 to 14.

21. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the image report generation method as described in claim 15.

22. A computer program product, characterized in that, The computer program product includes: computer program code, which, when run on a computer, causes the computer to perform the training method for the image report generation model as described in any one of claims 1 to 14.

23. A computer program product, characterized in that, The computer program product includes: computer program code, which, when run on a computer, causes the computer to perform the image report generation method as described in claim 15.