Physical examination report interpretation method, system, device and medium based on supervised fine-tuning

Through the physical examination report interpretation method based on supervised fine-tuning, using Transformer blocks and dynamic knowledge base, the deficiencies in flexibility and personalization of the physical examination report interpretation method are solved, the accuracy and adaptability of interpretation are improved, and personalized health guidance is realized .

CN118553437BActive Publication Date: 2024-09-20WEST CHINA HOSPITAL SICHUAN UNIV +1
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411016859.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-09-20
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

Existing methods for interpreting physical examination reports are deficient in flexibility, comprehensiveness, personalization, and adaptability, resulting in low interpretation accuracy and inability to effectively deal with atypical data and individual differences.

Method used

Using a physical examination report interpretation method based on supervised fine-tuning, a model containing 32 layers of Transformer blocks and a composite output layer is constructed, and the top layer is fine-tuned, combined with multi-dimensional annotation and dynamic knowledge base, to generate anomaly detection results, detailed interpretation of text and individuals Health Advice.

Benefits of technology

It improves the accuracy and personalization of physical examination report interpretation, enhances the flexibility and adaptability of the model, can more accurately understand complex medical texts, reduces calculation costs and over-fitting risks, and provides customized health guidance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553437B
    Figure CN118553437B
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for interpreting a physical examination report based on supervised fine-tuning, which belongs to the interpretation of physical examination reports in the field of artificial intelligence, and its purpose is to solve the problems of insufficient accuracy, single interpretation and lack of personalized interpretation in the existing physical examination report interpretation methods and interpretation systems. The composite output layer includes three parallel fully connected layers, and the output of the last layer of Transformer blocks is used as the input of the three fully connected layers. Through the innovative design of the model structure and fine-tuning of the top four Transformer blocks, the performance of the model on specific tasks is improved, and the computational cost and overfitting risk are effectively reduced. It can also understand complex medical texts more accurately, improve the accuracy of the model's interpretation of physical examination reports, and achieve efficient use of resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence technology and relates to the interpretation of physical examination reports, and in particular to a method, system, device and medium for interpreting physical examination reports based on supervised fine-tuning. Background Art

[0002] At present, with the improvement of people's health awareness, regular physical examinations have become an important way for people to pay attention to their health. However, physical examination reports contain a lot of professional medical terms and data, which are difficult for ordinary people to understand. In particular, laboratory test results are often presented in the form of experimental data, which require professional doctors to interpret so that patients can correctly understand their clinical significance and health risks.

[0003] In the field of medical health, the interpretation of physical examination reports is a key link between medical data and individual health management. In the existing technology, the interpretation of reports is mostly done by professional doctors. However, with the increase in patients, the task of report interpretation is also heavy, and new report interpretation methods are urgently needed to reduce the heavy workload of doctors.

[0004] In recent years, with the development of artificial intelligence technology, artificial intelligence technology has also been applied to various aspects. In the medical field, artificial intelligence has gradually been applied to the recognition and classification of various medical images, and has also been gradually applied in the interpretation of medical reports.

[0005] The invention patent application with application number 202310472245.3 discloses a method, device, storage medium and electronic device for interpreting a physical examination report, and the method includes: obtaining a physical examination report to be interpreted; using a data extraction method corresponding to the type of the physical examination report for the type of the physical examination report, and obtaining a number of structured physical examination data corresponding to the physical examination report; using a preset algorithm model to process each of the structured physical examination data to obtain each medical analysis data corresponding to the physical examination report; at least based on the target medical analysis data and the preset data level division method corresponding to the target medical analysis data, generate a physical examination report interpretation diagram reflecting health trends. This physical examination report interpretation method can more accurately and intuitively display the user's physical examination results and reflect the user's health status.

[0006] The invention patent application with application number 202310876463.3 also discloses a method and device for interpreting a physical examination report, which includes: in response to a request for interpretation of a physical examination report, obtaining the corresponding physical examination report to be interpreted, identifying the physical examination report to be interpreted, and obtaining no less than one physical examination indicator to be interpreted and the corresponding indicator value; for each physical examination indicator to be interpreted, according to the physical examination indicator to be interpreted and the corresponding indicator value, through a pre-trained physical examination indicator interpretation model, an interpretation text of the physical examination indicator to be interpreted is generated; according to the interpretation text of each physical examination indicator to be interpreted, a physical examination report interpretation page is generated. The interpretation method can generate an interpretation text through a physical examination indicator interpretation model according to the physical examination indicator and the corresponding indicator value, so that the user can obtain the explanation of the physical examination indicator and the indicator value in the physical examination report, reducing the difficulty of the user to interpret the physical examination report.

[0007] In addition, the invention patent application with application number 202410029240.8 also discloses a method, device and all-in-one machine for interpreting a physical examination report, the method comprising: determining the physical examination report to be interpreted; inputting the physical examination report and the prompt text into a large language model for interpreting the physical examination report, and obtaining the question text of the physical examination report output by the large language model; the prompt text is used to describe the problem constraints of the physical examination report; sending the question text to the terminal so that the terminal returns the answer text of the question text; inputting the physical examination report, the question text and the answer text into the large language model, and obtaining the interpretation text of the physical examination report output by the large language model. The method, device and all-in-one machine for interpreting a physical examination report can accurately obtain the interpretation text corresponding to the physical examination report.

[0008] Although the above patent applications can interpret physical examination reports through various technical means, most of them adopt rule-based methods, that is, interpreting physical examination data according to preset medical knowledge and empirical rules. This type of method has certain effects when dealing with standardized and common indicators, but it also has significant limitations:

[0009] First, rule-based interpretation systems often lack flexibility. Due to the diversity of human physiological conditions and the complexity of physical examination data, fixed rules are difficult to adapt to all situations. When encountering atypical data or emerging health problems, such systems may not be able to give accurate interpretations.

[0010] Secondly, existing systems usually only focus on the interpretation of a single indicator, while ignoring the correlation between various indicators in the physical examination data. Human health is a complex system, and various indicators may affect each other. The interpretation of a single indicator is difficult to reflect the overall health status.

[0011] Furthermore, the need for personalized interpretation is becoming increasingly prominent. Everyone's physical condition, living habits and genetic background are different, so the interpretation of physical examination reports also needs to take individual differences into consideration. However, most existing interpretation systems provide general suggestions and lack customized interpretation and health guidance for individuals.

[0012] Finally, with the continuous advancement of medical technology and the emergence of new health problems, physical examination data and interpretation requirements are also constantly changing. Existing interpretation systems need to be constantly updated and optimized to adapt to these changes, but rule-based methods are unable to cope with such dynamic changes.

[0013] In summary, the existing methods for interpreting physical examination reports are insufficient in flexibility, comprehensiveness, personalization and adaptability, resulting in low accuracy in the interpretation of physical examination reports. Summary of the invention

[0014] The purpose of the present invention is to provide a physical examination report interpretation method, system, device and medium based on supervised fine-tuning in order to solve the problems of insufficient accuracy, single interpretation and lack of personalized interpretation in existing physical examination report interpretation methods and interpretation systems.

[0015] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:

[0016] A method for interpreting a physical examination report based on supervised fine-tuning includes the following steps:

[0017] Step S1, obtaining sample data and labels;

[0018] Obtain sample data of the physical examination report, and label the sample data of the physical examination report to obtain label data;

[0019] Step S2, constructing a physical examination report interpretation model;

[0020] Construct a physical examination report interpretation model, which includes a backbone network and a composite output layer. The backbone network includes 32 layers of Transformer blocks stacked in sequence. The composite output layer includes three parallel fully connected layers. The output of the last layer of Transformer blocks is used as the input of the three fully connected layers.

[0021] Each Transformer block includes a masked multi-head attention mechanism module, a first root mean square normalization module, a group query attention mechanism module, a second root mean square normalization module, a first multi-head attention mechanism module, a third root mean square normalization module, a second multi-head attention mechanism module, a fourth root mean square normalization module, a multi-layer perceptron layer and a fifth root mean square normalization layer, wherein the input and output of the masked multi-head attention mechanism module are residually connected as the input of the first root mean square normalization module, the output of the first root mean square normalization module is residually connected with the output of the group query attention mechanism module as the input of the second root mean square normalization module, the output of the second root mean square normalization module is residually connected with the output of the first multi-head attention mechanism module as the input of the third root mean square normalization module, the output of the third root mean square normalization module is residually connected with the output of the second multi-head attention mechanism module as the input of the fourth root mean square normalization module, and the output of the fourth root mean square normalization module is residually connected with the output of the multi-layer perceptron layer as the input of the fifth root mean square normalization layer;

[0022] Step S3, training a physical examination report interpretation model;

[0023] The sample data and label data obtained in step S1 are used to train the physical examination report interpretation model constructed in step S2 to obtain a mature physical examination report interpretation model;

[0024] Step S4, real-time interpretation of the report;

[0025] Obtain the physical examination report to be interpreted, and input the mature physical examination report interpretation model obtained in step S3, and the physical examination report interpretation model outputs the interpretation result;

[0026] The interpretation results include the anomaly detection results output by the corresponding fully connected layer, detailed interpretation text, and individual health recommendations.

[0027] Furthermore, in step S1, the sample data of the physical examination report is annotated in multiple dimensions, and the annotated content includes interpretation of abnormal examination results, comprehensive interpretation, further medical advice, and health advice and instructions;

[0028] Interpretation of abnormal test results refers to the description of the project introduction and clinical significance of each abnormal indicator;

[0029] Comprehensive interpretation refers to the comprehensive analysis of multiple abnormal results to provide a more comprehensive assessment of health status;

[0030] Further medical treatment means recommending whether further medical examination or treatment is needed based on abnormal results;

[0031] Health advice and instructions refer to providing specific health management advice.

[0032] Further, in step S2, the multi-layer perceptron layer includes a first fully connected layer, a ReLU activation function layer and a second fully connected layer which are arranged in sequence.

[0033] Furthermore, in step S3, when the physical examination report interpretation model is trained, the comprehensive loss function is:

[0034]

[0035]

[0036]

[0037]

[0038] in, represents the cross entropy loss, Indicates the loss of format consistency, represents the loss of personalized interpretation regularization term, , , All represent hyperparameters, represents the true label, represents the predicted probability, represents the size of the vocabulary, , Represent the first The position of the format tag, Indicates the total number of format tags, , Represent the first The location of the personalized feature, Represents the total number of personalized features.

[0039] Furthermore, in step S3, when training the physical examination report interpretation model, only the top four Transformer blocks are fine-tuned, and the parameters of the remaining Transformer blocks remain unchanged.

[0040] Furthermore, when fine-tuning the top four Transformer blocks, the number of training rounds is 15 and the batch size is 32; the initial learning rate is set to 3e-5, and the step learning rate scheduler is used to adjust the learning rate after each round of learning, and the AdamW optimizer is used to automatically adjust the learning rate;

[0041] The step size of the step learning rate scheduler is set to 1 per epoch, and the decay factor is set to 0.5.

[0042] Furthermore, it also includes a knowledge base, and the knowledge base is constructed by: collecting reference intervals, project introductions, clinical significance, and comprehensive interpretation points of all physical examination laboratory items, and organizing them into an initial document; dividing the corpus in the initial document into text blocks, and using an embedding model to convert text data in the text blocks into a vector matrix; using the vector matrix to construct an index, and writing it into a vector database;

[0043] When in use, a question is input into the physical examination report interpretation model, the physical examination report interpretation model inputs the question into the knowledge base and recalls the data most relevant to the question from the vector database of the knowledge base, the knowledge base inputs the recalled data into the physical examination report interpretation model, and the physical examination report interpretation model outputs a detailed interpretation text.

[0044] A physical examination report interpretation system based on supervised fine-tuning, including:

[0045] The sample data and label acquisition module is used to acquire the sample data of the physical examination report, and to label the sample data of the physical examination report to obtain the label data;

[0046] A physical examination report interpretation model construction module is used to construct a physical examination report interpretation model. The physical examination report interpretation model includes a backbone network and a composite output layer. The backbone network includes 32 layers of Transformer blocks stacked in sequence. The composite output layer includes three parallel fully connected layers. The output of the last layer of Transformer blocks is used as the input of the three fully connected layers.

[0047] Each Transformer block includes a masked multi-head attention mechanism module, a first root mean square normalization module, a group query attention mechanism module, a second root mean square normalization module, a first multi-head attention mechanism module, a third root mean square normalization module, a second multi-head attention mechanism module, a fourth root mean square normalization module, a multi-layer perceptron layer and a fifth root mean square normalization layer, wherein the input and output of the masked multi-head attention mechanism module are residually connected as the input of the first root mean square normalization module, the output of the first root mean square normalization module is residually connected with the output of the group query attention mechanism module as the input of the second root mean square normalization module, the output of the second root mean square normalization module is residually connected with the output of the first multi-head attention mechanism module as the input of the third root mean square normalization module, the output of the third root mean square normalization module is residually connected with the output of the second multi-head attention mechanism module as the input of the fourth root mean square normalization module, and the output of the fourth root mean square normalization module is residually connected with the output of the multi-layer perceptron layer as the input of the fifth root mean square normalization layer;

[0048] The physical examination report interpretation model training module is used to train the physical examination report interpretation model constructed by the physical examination report interpretation model construction module using the sample data and label data obtained by the sample data and label acquisition module to obtain a mature physical examination report interpretation model;

[0049] The real-time report interpretation module is used to obtain the physical examination report to be interpreted and input the mature physical examination report interpretation model obtained by the physical examination report interpretation model training module, and the physical examination report interpretation model outputs the interpretation result;

[0050] The interpretation results include the anomaly detection results output by the corresponding fully connected layer, detailed interpretation text, and individual health recommendations.

[0051] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0052] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the steps of the above method.

[0053] The beneficial effects of the present invention are as follows:

[0054] 1. In the present invention, when the sample data is annotated, the annotated content includes the interpretation of abnormal examination results, comprehensive interpretation, further medical advice, and health advice and instructions. Therefore, the model not only focuses on the abnormal interpretation of a single indicator, but also covers comprehensive analysis, medical advice and personalized health guidance, which improves the comprehensiveness and practicality of the interpretation; the structure of the physical examination report interpretation model is optimized and adjusted, which mainly includes 32 Transformer blocks and a composite output layer composed of three fully connected layers, and the top 4 Transformer blocks are fine-tuned. Through innovations in parameter freezing strategies, decoder enhancements, and task-oriented output layers, the performance of the model on specific tasks is improved, and the computational cost and overfitting risk are effectively reduced. It can also understand complex medical texts more accurately, improve the accuracy of the model's interpretation of physical examination reports, and achieve efficient use of resources.

[0055] 2. In the present invention, the content of sample data annotation includes interpretation of abnormal test results, comprehensive interpretation, further medical advice, and health advice and instructions. The three fully connected layers in the model can respectively output common test results, detailed interpretation text, and individual health advice. That is, personalized processing is adopted to generate customized advice according to the patient's specific situation, breaking the "one-size-fits-all" model of traditional systems, realizing accurate interpretation and guidance for individual differences, and improving user experience and health management level.

[0056] 3. In the present invention, an integrated dynamic knowledge base is provided, which allows the model to acquire and integrate the latest medical information in real time during the reasoning process, surpassing the limitations of static knowledge embedding, ensuring the timeliness and accuracy of the output, and enhancing the adaptability and continuous learning ability of the model.

[0057] 4. Compared with traditional systems based on fixed rules, the model of the present invention can better adapt to the diversity and complexity of physical examination data and the continuous updating of medical knowledge, improve the flexibility and generalization ability of the model, and especially show higher adaptability and accuracy when dealing with atypical data and new health problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a schematic diagram of the process of the present invention;

[0059] Figure 2 It is a structural schematic diagram of the physical examination report interpretation model in the present invention;

[0060] Figure 3 It is a schematic diagram of the structure of the Transformer block in the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0062] Therefore, based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of the present invention.

[0063] Example 1

[0064] This embodiment provides a method for interpreting a physical examination report based on supervised fine-tuning, which can be used to perform personalized interpretation of a physical examination report, including the following steps:

[0065] Step S1, obtaining sample data and labels;

[0066] Obtain sample data of the physical examination report, and annotate the sample data of the physical examination report to obtain label data.

[0067] The sample data of physical examination reports come from the physical examination centers of multiple hospitals. The physical examination reports obtained by the physical examination centers can ensure data diversity, which includes physical examination data of patients of different ages, genders and health conditions.

[0068] After obtaining the sample data of the physical examination report, it needs to be annotated to obtain the label data. When annotating, medical experts were invited to annotate the sample data of the physical examination report. The annotated content includes interpretation of abnormal examination results, comprehensive interpretation, further medical advice, health advice and instructions. The annotation process is manually annotated by medical experts, which not only ensures the professionalism and accuracy of the annotated content, but also provides high-quality training data for the model through the experience and knowledge of experts. And this multi-dimensional annotation greatly improves the comprehensiveness and practicality of the interpretation.

[0069] Interpretation of abnormal test results refers to the description of the project introduction and clinical significance of each abnormal indicator;

[0070] Comprehensive interpretation refers to the comprehensive analysis of multiple abnormal results to provide a more comprehensive assessment of health status;

[0071] Further medical treatment means recommending whether further medical examination or treatment is needed based on abnormal results;

[0072] Health advice and instructions refer to providing specific health management advice.

[0073] When annotating data, it is also personalized. The specific situation of the patient is taken into account during the annotation process to generate personalized interpretations and suggestions. This personalized processing enables the model to provide more targeted suggestions when facing different patients, rather than a one-size-fits-all standard answer.

[0074] When annotating data, we not only focus on the accuracy of the interpretation content, but also pay special attention to the consistency of the interpretation format when annotating. This dual consistency requires a custom multi-task loss function to be implemented in model training.

[0075] Finally, when annotating data, we also focus on semantically rich content, which is not limited to simple text descriptions, but also includes rich semantic information, such as explanations of medical terms, descriptions of pathological mechanisms, etc., so that the model can be more accurate and professional when generating interpretations.

[0076] After obtaining the above sample data, data cleaning and preprocessing are also performed, including denoising, standardization, and word segmentation and tagging conversion.

[0077] Denoising: Clean the data to remove noise and irrelevant information. Ensure data quality to avoid affecting model performance.

[0078] Standardization: Standardize medical terms and units to ensure consistency, for example, standardize "blood sugar" to "blood sugar concentration".

[0079] Word segmentation and tagging conversion: The text data is segmented and converted into the input format required by the model.

[0080] After cleaning and preprocessing the sample data, data segmentation (dividing the data set) is performed, that is, dividing the sample data and its labels into a training set (70%), a validation set (20%), and a test set (10%), and ensuring that each data set contains diverse data so that the model can generalize.

[0081] Step S2, constructing a physical examination report interpretation model;

[0082] A physical examination report interpretation model was constructed. The physical examination report interpretation model included a backbone network and a composite output layer. The backbone network included 32 layers of Transformer blocks stacked in sequence. The composite output layer included three parallel fully connected layers. The output of the last layer of Transformer blocks served as the input of the three fully connected layers.

[0083] Two additional layers of multi-head self-attention (MHSA) are added to the decoder part in each Transformer block, namely: each Transformer block includes a masked multi-head attention module, a first RMS normalization module, a group query attention module, a second RMS normalization module, a first multi-head attention module, a third RMS normalization module, a second multi-head attention module, a fourth RMS normalization module, a multi-layer perceptron layer and a fifth RMS normalization layer, and the input and output of the masked multi-head attention module are sequentially arranged. After residual connection, the output of the first root mean square normalization module is used as the input of the first root mean square normalization module. The output of the first root mean square normalization module is residually connected with the output of the group query attention mechanism module and then used as the input of the second root mean square normalization module. The output of the second root mean square normalization module is residually connected with the output of the first multi-head attention mechanism module and then used as the input of the third root mean square normalization module. The output of the third root mean square normalization module is residually connected with the output of the second multi-head attention mechanism module and then used as the input of the fourth root mean square normalization module. The output of the fourth root mean square normalization module is residually connected with the output of the multi-layer perceptron layer and then used as the input of the fifth root mean square normalization layer.

[0084] In the Transformer block, two additional layers of Multi-Head Self-Attention (MHSA) are added to the decoder part to enhance the model's ability to capture complex medical concepts and relationships between terms.

[0085] In the Transformer block, the multi-layer perceptron layer includes a first fully connected layer, a ReLU activation function layer, and a second fully connected layer arranged in sequence.

[0086] In the medical examination report interpretation model, a composite output layer is designed, which is communicated by three parallel fully connected layers, responsible for abnormal detection results, detailed interpretation text, and individual health advice. The output layer of each task has been specially optimized to ensure that the model can accurately execute diverse output requirements.

[0087] Among them, the physical examination report interpretation model has the ability to output abnormal detection results, which is mainly learned through physical examination reports and the interpretation of abnormal examination results in physical examination reports. The physical examination report interpretation model has the ability to output detailed interpretation text, which is mainly learned through physical examination reports and the comprehensive interpretation and further medical advice in physical examination reports. The physical examination report interpretation model has the ability to output individual health advice, which is mainly learned through physical examination reports and individual health advice in physical examination reports. Of course, on this basis, it can also cooperate with the constructed knowledge base, allowing the model to obtain and integrate the latest medical information in real time during the reasoning process, surpassing the limitations of static knowledge embedding, ensuring the timeliness and accuracy of the output, and enhancing the adaptability and continuous learning ability of the model.

[0088] The physical examination report interpretation model adopts a mixed task output layer, which integrates multiple tasks of interpretation of abnormal test results, comprehensive interpretation, further medical advice, health advice and instructions in the same model. This architecture not only optimizes resource utilization, but also ensures that the model can provide comprehensive and personalized feedback when processing physical examination reports, thereby improving the user experience.

[0089] Step S3, training a physical examination report interpretation model;

[0090] The sample data and label data obtained in step S1 are used to train the physical examination report interpretation model constructed in step S2 to obtain a mature physical examination report interpretation model.

[0091] During training, only the top 4 Transformer blocks are fine-tuned, and the parameters of the other Transformer blocks remain unchanged to fully utilize the generalization ability of the pre-trained model while reducing training time and resource consumption; this fine-tuning method not only retains the basic capabilities of the pre-trained model, but also focuses on enhancing the performance of the model in specific domain tasks, significantly reducing the computational cost and overfitting risk. When fine-tuning the top 4 Transformer blocks, the number of training rounds is 15 and the batch size is 32; the initial learning rate is set to 3e-5, and the step learning rate scheduler is used to adjust the learning rate after each round of learning, and the AdamW optimizer is used to automatically adjust the learning rate; the step learning rate scheduler is set to each epoch, and the decay coefficient is set to 0.5. After each training round, the validation set is used to evaluate the model performance. If the validation loss no longer decreases or there are signs of overfitting, the early stopping mechanism is triggered.

[0092] When training the physical examination report interpretation model, the loss function designed not only takes into account the traditional cross entropy loss, but also adds format consistency loss and personalized interpretation regularization term loss, aiming to ensure the accuracy, consistency and personalization of the model output. Specifically:

[0093] ①Cross entropy loss :

[0094] Cross Entropy Loss , which is used to measure the difference between the text generated by the model and the real text. Its formula is expressed as:

[0095] .

[0096] Through cross entropy loss, the model can be effectively guided to generate text that conforms to the distribution of training data.

[0097] ② Loss of format consistency :

[0098] In order to ensure that the interpretation reports generated by the model are consistent in format, a format consistency loss is added. This loss term focuses on the structure of the output text, including paragraphs, items, and format tags. Its formula is expressed as:

[0099]

[0100] By minimizing the format consistency loss, we can ensure that the structure of the model output matches the expected format.

[0101] ③Personalized interpretation of regularization loss :

[0102] The personalized interpretation regularization term is designed to encourage the model to generate personalized health recommendations based on the patient's specific situation. Its design idea is to guide the model to generate personalized interpretations by introducing feature vectors related to patient-specific information (such as age, gender, etc.). Its formula is expressed as:

[0103]

[0104] By minimizing the personalized interpretation regularization term, we can ensure that the recommendations generated by the model are highly relevant to the patient's specific situation.

[0105] ④ Comprehensive loss function :

[0106] The final comprehensive loss function combines the above three loss terms and balances the impact of each part in a weighted manner. Its formula is expressed as:

[0107]

[0108] By adjusting these hyperparameters during the training process, the optimal combination of weights can be found so that the model achieves the best balance between accuracy, consistency, and personalization.

[0109] in, represents the cross entropy loss, Indicates the loss of format consistency, express, , , All represent hyperparameters, represents the true label, represents the predicted probability, represents the size of the vocabulary, , Represent the first The position of the format tag, Indicates the total number of format tags, , Represent the first The location of the personalized feature, Represents the total number of personalized features.

[0110] After the physical examination report interpretation model is trained, it can also be evaluated, that is, the fine-tuned physical examination report interpretation model is evaluated using the test set to calculate the accuracy, recall, F1 score and other indicators of each task. According to the evaluation results, the model architecture and training process are adjusted and optimized as necessary to ensure that the model performance meets expectations.

[0111] Step S4, real-time interpretation of the report;

[0112] Obtain the physical examination report to be interpreted, and input the mature physical examination report interpretation model obtained in step S3, and the physical examination report interpretation model outputs the interpretation result;

[0113] The interpretation results include the anomaly detection results output by the corresponding fully connected layer, detailed interpretation text, and individual health recommendations.

[0114] In addition, in order to enable the model to integrate more medical information during the reasoning process and improve the adaptability and learning ability of the model, a knowledge base is also configured and constructed.

[0115] When constructing the knowledge base, the knowledge base covers the reference intervals, project introductions, clinical significance, and comprehensive interpretation points of all physical examination laboratory items, and organizes them into initial documents; the corpus in the initial document is divided into text blocks, and the text data in the text blocks is converted into vector matrices using an embedding model; the vector matrix is ​​used to build an index and write it into the vector database to complete the construction of the knowledge base. The reference intervals, project introductions, clinical significance, and comprehensive interpretation points of the above items are all written and reviewed by medical experts to ensure the correctness, professionalism, and authority of their content.

[0116] Before use, the constructed knowledge base is associated with the physical examination report interpretation model; when in use (i.e., when the physical examination report interpretation model is trained and interpreted in real time), the patient inputs questions to the physical examination report interpretation model, and the physical examination report interpretation model inputs the questions into the knowledge base, and recalls the data most relevant to the questions from the vector database of the knowledge base, and constructs a prompt with the retrieved most relevant data and the question asked. The knowledge base inputs the recalled data into the physical examination report interpretation model, and the physical examination report interpretation model performs natural language processing and outputs a detailed interpretation text. Throughout the process, the model is allowed to use the information retrieved from the knowledge base to enhance the accuracy and relevance of the generated laboratory test report interpretation. During this process, the interpretation results of the model after the knowledge base retrieval enhancement can be evaluated, specifically:

[0117] 5.1 Define the evaluation criteria;

[0118] Medical accuracy: whether the model correctly interprets various medical indicators;

[0119] Language clarity: whether the language output by the model is fluent and easy to understand;

[0120] Comprehensiveness of information: whether the model misses any important medical information or indicators;

[0121] Professionalism and consistency: Whether the model's interpretation is consistent with medical expertise and standards of practice.

[0122] 5.2 Select reviewers;

[0123] Choose professionals with a medical background, such as physicians, medical researchers, or medical laboratory technicians;

[0124] Select some general users with medical knowledge, such as patients or health managers, to evaluate user-friendliness.

[0125] 5.3 Prepare evaluation materials;

[0126] Collect samples of real medical examination laboratory reports and ensure that the samples are representative;

[0127] Prepare interpretation output generated by the model and pair it with the original report.

[0128] 5.4 Implementation evaluation;

[0129] Independent evaluation: Reviewers independently evaluate model interpretations based on predefined criteria;

[0130] Scoring system: Score each indicator using a predefined scoring system (1-5 points) and record detailed feedback and comments from reviewers.

[0131] 5.5 Collect and analyze evaluation results;

[0132] Statistics and analysis of scoring results, calculation of statistical quantities such as average score and variance;

[0133] Collect qualitative feedback from reviewers to identify common issues and suggestions for improvement.

[0134] 5.6 Improve knowledge base content and retrieval enhancement methods;

[0135] Based on the review results and feedback, the knowledge base content, retrieval enhancement methods and parameters are optimized and improved.

[0136] Example 2

[0137] This embodiment provides a physical examination report interpretation system based on supervised fine-tuning, which can be used to perform personalized interpretation of physical examination reports, including:

[0138] The sample data and label acquisition module is used to obtain the sample data of the physical examination report, and mark the sample data of the physical examination report to obtain the label data.

[0139] The sample data of physical examination reports come from the physical examination centers of multiple hospitals. The physical examination reports obtained by the physical examination centers can ensure data diversity, which includes physical examination data of patients of different ages, genders and health conditions.

[0140] After obtaining the sample data of the physical examination report, it needs to be annotated to obtain the label data. When annotating, medical experts were invited to annotate the sample data of the physical examination report. The annotated content includes interpretation of abnormal examination results, comprehensive interpretation, further medical advice, health advice and instructions. The annotation process is manually annotated by medical experts, which not only ensures the professionalism and accuracy of the annotated content, but also provides high-quality training data for the model through the experience and knowledge of experts. And this multi-dimensional annotation greatly improves the comprehensiveness and practicality of the interpretation.

[0141] Interpretation of abnormal test results refers to the description of the project introduction and clinical significance of each abnormal indicator;

[0142] Comprehensive interpretation refers to the comprehensive analysis of multiple abnormal results to provide a more comprehensive assessment of health status;

[0143] Further medical treatment means recommending whether further medical examination or treatment is needed based on abnormal results;

[0144] Health advice and instructions refer to providing specific health management advice.

[0145] When annotating data, it is also personalized. The specific situation of the patient is taken into account during the annotation process to generate personalized interpretations and suggestions. This personalized processing enables the model to provide more targeted suggestions when facing different patients, rather than a one-size-fits-all standard answer.

[0146] When annotating data, we not only focus on the accuracy of the interpretation content, but also pay special attention to the consistency of the interpretation format when annotating. This dual consistency requires a custom multi-task loss function to be implemented in model training.

[0147] Finally, when annotating data, we also focus on semantically rich content, which is not limited to simple text descriptions, but also includes rich semantic information, such as explanations of medical terms, descriptions of pathological mechanisms, etc., so that the model can be more accurate and professional when generating interpretations.

[0148] After obtaining the above sample data, data cleaning and preprocessing are also performed, including denoising, standardization, and word segmentation and tagging conversion.

[0149] Denoising: Clean the data to remove noise and irrelevant information. Ensure data quality to avoid affecting model performance.

[0150] Standardization: Standardize medical terms and units to ensure consistency, for example, standardize "blood sugar" to "blood sugar concentration".

[0151] Word segmentation and tagging conversion: The text data is segmented and converted into the input format required by the model.

[0152] After cleaning and preprocessing the sample data, data segmentation (dividing the data set) is performed, that is, dividing the sample data and its labels into a training set (70%), a validation set (20%), and a test set (10%), and ensuring that each data set contains diverse data so that the model can generalize.

[0153] The physical examination report interpretation model construction module is used to construct the physical examination report interpretation model. The physical examination report interpretation model includes a backbone network and a composite output layer. The backbone network includes 32 layers of Transformer blocks stacked in sequence. The composite output layer includes three parallel fully connected layers. The output of the last layer of Transformer blocks is used as the input of the three fully connected layers.

[0154] Two additional layers of multi-head self-attention (MHSA) are added to the decoder part in each Transformer block, namely: each Transformer block includes a masked multi-head attention module, a first RMS normalization module, a group query attention module, a second RMS normalization module, a first multi-head attention module, a third RMS normalization module, a second multi-head attention module, a fourth RMS normalization module, a multi-layer perceptron layer and a fifth RMS normalization layer, and the input and output of the masked multi-head attention module are sequentially arranged. After residual connection, the output of the first root mean square normalization module is used as the input of the first root mean square normalization module. The output of the first root mean square normalization module is residually connected with the output of the group query attention mechanism module and then used as the input of the second root mean square normalization module. The output of the second root mean square normalization module is residually connected with the output of the first multi-head attention mechanism module and then used as the input of the third root mean square normalization module. The output of the third root mean square normalization module is residually connected with the output of the second multi-head attention mechanism module and then used as the input of the fourth root mean square normalization module. The output of the fourth root mean square normalization module is residually connected with the output of the multi-layer perceptron layer and then used as the input of the fifth root mean square normalization layer.

[0155] In the Transformer block, two additional layers of Multi-Head Self-Attention (MHSA) are added to the decoder part to enhance the model's ability to capture complex medical concepts and relationships between terms.

[0156] In the Transformer block, the multi-layer perceptron layer includes a first fully connected layer, a ReLU activation function layer, and a second fully connected layer arranged in sequence.

[0157] In the medical examination report interpretation model, a composite output layer is designed, which is communicated by three parallel fully connected layers, responsible for abnormal detection results, detailed interpretation text, and individual health advice. The output layer of each task has been specially optimized to ensure that the model can accurately execute diverse output requirements.

[0158] Among them, the physical examination report interpretation model has the ability to output abnormal detection results, which is mainly learned through physical examination reports and the interpretation of abnormal examination results in physical examination reports. The physical examination report interpretation model has the ability to output detailed interpretation text, which is mainly learned through physical examination reports and the comprehensive interpretation and further medical advice in physical examination reports. The physical examination report interpretation model has the ability to output individual health advice, which is mainly learned through physical examination reports and individual health advice in physical examination reports. Of course, on this basis, it can also cooperate with the constructed knowledge base, allowing the model to obtain and integrate the latest medical information in real time during the reasoning process, surpassing the limitations of static knowledge embedding, ensuring the timeliness and accuracy of the output, and enhancing the adaptability and continuous learning ability of the model.

[0159] The physical examination report interpretation model adopts a mixed task output layer, which integrates multiple tasks of interpretation of abnormal test results, comprehensive interpretation, further medical advice, health advice and instructions in the same model. This architecture not only optimizes resource utilization, but also ensures that the model can provide comprehensive and personalized feedback when processing physical examination reports, thereby improving the user experience.

[0160] The physical examination report interpretation model training module is used to train the physical examination report interpretation model constructed by the physical examination report interpretation model construction module using the sample data and label data obtained by the sample data and label acquisition module to obtain a mature physical examination report interpretation model.

[0161] During training, only the top 4 Transformer blocks are fine-tuned, and the parameters of the other Transformer blocks remain unchanged to fully utilize the generalization ability of the pre-trained model while reducing training time and resource consumption; this fine-tuning method not only retains the basic capabilities of the pre-trained model, but also focuses on enhancing the performance of the model in specific domain tasks, significantly reducing the computational cost and overfitting risk. When fine-tuning the top 4 Transformer blocks, the number of training rounds is 15 and the batch size is 32; the initial learning rate is set to 3e-5, and the step learning rate scheduler is used to adjust the learning rate after each round of learning, and the AdamW optimizer is used to automatically adjust the learning rate; the step learning rate scheduler is set to each epoch, and the decay coefficient is set to 0.5. After each training round, the validation set is used to evaluate the model performance. If the validation loss no longer decreases or there are signs of overfitting, the early stopping mechanism is triggered.

[0162] When training the physical examination report interpretation model, the loss function designed not only takes into account the traditional cross entropy loss, but also adds format consistency loss and personalized interpretation regularization term loss, aiming to ensure the accuracy, consistency and personalization of the model output. Specifically:

[0163] ①Cross entropy loss :

[0164] Cross Entropy Loss , which is used to measure the difference between the text generated by the model and the real text. Its formula is expressed as:

[0165] .

[0166] Through cross entropy loss, the model can be effectively guided to generate text that conforms to the distribution of training data.

[0167] ② Loss of format consistency :

[0168] In order to ensure that the interpretation reports generated by the model are consistent in format, a format consistency loss is added. This loss term focuses on the structure of the output text, including paragraphs, items, and format tags. Its formula is expressed as:

[0169]

[0170] By minimizing the format consistency loss, we can ensure that the structure of the model output matches the expected format.

[0171] ③Personalized interpretation of regularization loss :

[0172] The personalized interpretation regularization term is designed to encourage the model to generate personalized health recommendations based on the patient's specific situation. Its design idea is to guide the model to generate personalized interpretations by introducing feature vectors related to patient-specific information (such as age, gender, etc.). Its formula is expressed as:

[0173]

[0174] By minimizing the personalized interpretation regularization term, we can ensure that the recommendations generated by the model are highly relevant to the patient's specific situation.

[0175] ④ Comprehensive loss function :

[0176] The final comprehensive loss function combines the above three loss terms and balances the impact of each part in a weighted manner. Its formula is expressed as:

[0177]

[0178] By adjusting these hyperparameters during the training process, the optimal combination of weights can be found so that the model achieves the best balance between accuracy, consistency, and personalization.

[0179] in, represents the cross entropy loss, Indicates the loss of format consistency, express, , , All represent hyperparameters, represents the true label, represents the predicted probability, represents the size of the vocabulary, , Represent the first The position of the format tag, Indicates the total number of format tags, , Represent the first The location of the personalized feature, Represents the total number of personalized features.

[0180] After the physical examination report interpretation model is trained, it can also be evaluated, that is, the fine-tuned physical examination report interpretation model is evaluated using the test set to calculate the accuracy, recall, F1 score and other indicators of each task. According to the evaluation results, the model architecture and training process are adjusted and optimized as necessary to ensure that the model performance meets expectations.

[0181] The real-time report interpretation module is used to obtain the physical examination report to be interpreted and input the mature physical examination report interpretation model obtained by the physical examination report interpretation model training module, and the physical examination report interpretation model outputs the interpretation result;

[0182] The interpretation results include the anomaly detection results output by the corresponding fully connected layer, detailed interpretation text, and individual health recommendations.

[0183] In addition, in order to enable the model to integrate more medical information during the reasoning process and improve the adaptability and learning ability of the model, a knowledge base is also configured and constructed.

[0184] When constructing the knowledge base, the knowledge base covers the reference intervals, project introductions, clinical significance, and comprehensive interpretation points of all physical examination laboratory items, and organizes them into initial documents; the corpus in the initial document is divided into text blocks, and the text data in the text blocks is converted into vector matrices using an embedding model; the vector matrix is ​​used to build an index and write it into the vector database to complete the construction of the knowledge base. The reference intervals, project introductions, clinical significance, and comprehensive interpretation points of the above items are all written and reviewed by medical experts to ensure the correctness, professionalism, and authority of their content.

[0185] When in use (i.e., when training and interpreting the physical examination report interpretation model in real time), the patient inputs questions to the physical examination report interpretation model, which inputs the questions into the knowledge base and recalls the data most relevant to the questions from the vector database of the knowledge base. The most relevant data retrieved is used together with the question to construct a prompt. The knowledge base inputs the recalled data into the physical examination report interpretation model, which performs natural language processing and outputs a detailed interpretation text. The entire process allows the model to use the information retrieved from the knowledge base to enhance the accuracy and relevance of the generated laboratory test report interpretation.

[0186] Example 3

[0187] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of a method for interpreting a physical examination report based on supervised fine-tuning.

[0188] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote control, a touch pad, or a voice control device.

[0189] The memory includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D interface display memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory can be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory is often used to store the operating system and various application software installed on the computer device, such as the program code of the method for interpreting a physical examination report based on supervised fine-tuning, etc. In addition, the memory can also be used to temporarily store various types of data that have been output or are to be output.

[0190] The processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor is generally used to control the overall operation of the computer device. In this embodiment, the processor is used to run the program code stored in the memory or process data, such as running the program code of the medical examination report interpretation method based on supervised fine-tuning.

[0191] Example 4

[0192] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of a method for interpreting a physical examination report based on supervised fine-tuning.

[0193] Among them, the computer-readable storage medium stores an interface display program, and the interface display program can be executed by at least one processor so that the at least one processor performs the steps of the physical examination report interpretation method based on supervised fine-tuning as described above.

[0194] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server or network device, etc.) to execute the method for interpreting a physical examination report based on supervised fine-tuning described in the embodiment of the present application.

Claims

1. A method for interpreting physical examination reports based on supervised fine-tuning, characterized in that: The following steps are involved: Step S1, obtaining sample data and labels; Obtain sample data of the physical examination report, and label the sample data of the physical examination report to obtain label data; Step S2, constructing a physical examination report interpretation model; Construct a physical examination report interpretation model, which includes a backbone network and a composite output layer. The backbone network includes 32 layers of Transformer blocks stacked in sequence. The composite output layer includes three parallel fully connected layers. The output of the last layer of Transformer blocks is used as the input of the three fully connected layers. Each Transformer block includes a masked multi-head attention mechanism module, a first root mean square normalization module, a group query attention mechanism module, a second root mean square normalization module, a first multi-head attention mechanism module, a third root mean square normalization module, a second multi-head attention mechanism module, a fourth root mean square normalization module, a multi-layer perceptron layer and a fifth root mean square normalization layer. The input and output of the masked multi-head attention mechanism module are residually connected as the input of the first root mean square normalization module, and the output of the first root mean square normalization module is used as the input of the first root mean square normalization module. The output of the group query attention mechanism module is residually connected to the output of the second root mean square normalization module as the input of the second root mean square normalization module, the output of the second root mean square normalization module is residually connected to the output of the first multi-head attention mechanism module as the input of the third root mean square normalization module, the output of the third root mean square normalization module is residually connected to the output of the second multi-head attention mechanism module as the input of the fourth root mean square normalization module, and the output of the fourth root mean square normalization module is residually connected to the output of the multi-layer perception machine layer as the input of the fifth root mean square normalization layer; Step S3, training a physical examination report interpretation model; The sample data and label data obtained in step S1 are used to train the physical examination report interpretation model constructed in step S2 to obtain a mature physical examination report interpretation model; Step S4, real-time interpretation of the report; Obtain the physical examination report to be interpreted, and input the mature physical examination report interpretation model obtained in step S3, and the physical examination report interpretation model outputs the interpretation result; The interpretation results include the anomaly detection results output by the corresponding fully connected layer, detailed interpretation text, and individual health advice; In step S3, when the physical examination report interpretation model is trained, the comprehensive loss function is: in, represents the cross entropy loss, Indicates the loss of format consistency, represents the loss of personalized interpretation regularization term, , , All represent hyperparameters, represents the true label, represents the predicted probability, represents the size of the vocabulary, , Represents the first The position of the format tag, Indicates the total number of format tags, , Represents the first The location of the personalized feature, Indicates the total number of personalized features; In step S3, when training the physical examination report interpretation model, only the top four Transformer blocks are fine-tuned, and the parameters of the other Transformer blocks remain unchanged; When fine-tuning the top 4 Transformer blocks, the number of training epochs is 15 and the batch size is 32; the initial learning rate is set to 3e-5, and the learning rate is adjusted after each epoch using the step learning rate scheduler, and the AdamW optimizer is used to automatically adjust the learning rate; The step size of the step learning rate scheduler is set to each epoch, and the decay coefficient is set to 0.5; It also includes a knowledge base. The knowledge base is constructed by: collecting reference intervals, project introductions, clinical significance, and comprehensive interpretation points of all physical examination laboratory items, and organizing them into initial documents; dividing the corpus in the initial document into text blocks, and using an embedding model to convert the text data in the text blocks into a vector matrix; using the vector matrix to build an index and write it into a vector database; When in use, a question is input into the physical examination report interpretation model, the physical examination report interpretation model inputs the question into the knowledge base and recalls the data most relevant to the question from the vector database of the knowledge base, the knowledge base inputs the recalled data into the physical examination report interpretation model, and the physical examination report interpretation model outputs a detailed interpretation text.

2. A method for interpreting a physical examination report based on supervised fine-tuning as claimed in claim 1, characterized in that: In step S1, the sample data of the physical examination report is annotated in multiple dimensions, and the annotation content includes interpretation of abnormal examination results, comprehensive interpretation, further medical advice, and health advice and instructions; Interpretation of abnormal test results refers to the description of the project introduction and clinical significance of each abnormal indicator; Comprehensive interpretation refers to the comprehensive analysis of multiple abnormal results to provide a more comprehensive assessment of health status; Further medical treatment means recommending whether further medical examination or treatment is needed based on abnormal results; Health advice and instructions refer to providing specific health management advice.

3. A method for interpreting a physical examination report based on supervised fine-tuning as claimed in claim 1, characterized in that: In step S2, the multi-layer perceptron layer includes a first fully connected layer, a ReLU activation function layer, and a second fully connected layer which are arranged in sequence.

4. A physical examination report interpretation system based on supervised fine-tuning, characterized in that: include: The sample data and label acquisition module is used to acquire the sample data of the physical examination report, and to label the sample data of the physical examination report to obtain the label data; A physical examination report interpretation model construction module is used to construct a physical examination report interpretation model. The physical examination report interpretation model includes a backbone network and a composite output layer. The backbone network includes 32 layers of Transformer blocks stacked in sequence. The composite output layer includes three parallel fully connected layers. The output of the last layer of Transformer blocks is used as the input of the three fully connected layers. Each Transformer block includes a masked multi-head attention mechanism module, a first root mean square normalization module, a group query attention mechanism module, a second root mean square normalization module, a first multi-head attention mechanism module, a third root mean square normalization module, a second multi-head attention mechanism module, a fourth root mean square normalization module, a multi-layer perceptron layer and a fifth root mean square normalization layer, wherein the input and output of the masked multi-head attention mechanism module are residually connected as the input of the first root mean square normalization module, the output of the first root mean square normalization module is residually connected with the output of the group query attention mechanism module as the input of the second root mean square normalization module, the output of the second root mean square normalization module is residually connected with the output of the first multi-head attention mechanism module as the input of the third root mean square normalization module, the output of the third root mean square normalization module is residually connected with the output of the second multi-head attention mechanism module as the input of the fourth root mean square normalization module, and the output of the fourth root mean square normalization module is residually connected with the output of the multi-layer perceptron layer as the input of the fifth root mean square normalization layer; The physical examination report interpretation model training module is used to train the physical examination report interpretation model constructed by the physical examination report interpretation model construction module using the sample data and label data obtained by the sample data and label acquisition module to obtain a mature physical examination report interpretation model; The real-time report interpretation module is used to obtain the physical examination report to be interpreted and input the mature physical examination report interpretation model obtained by the physical examination report interpretation model training module, and the physical examination report interpretation model outputs the interpretation result; The interpretation results include the anomaly detection results output by the corresponding fully connected layer, detailed interpretation text, and individual health advice; In the physical examination report interpretation model training module, the comprehensive loss function of the physical examination report interpretation model during training is: in, represents the cross entropy loss, Indicates the loss of format consistency, represents the loss of personalized interpretation regularization term, , , All represent hyperparameters, represents the true label, represents the predicted probability, represents the size of the vocabulary, , Represents the first The position of the format tag, Indicates the total number of format tags, , Represents the first The location of the personalized feature, Indicates the total number of personalized features; In the physical examination report interpretation model training module, when training the physical examination report interpretation model, only the top 4 Transformer blocks are fine-tuned, and the parameters of the other Transformer blocks remain unchanged; When fine-tuning the top 4 Transformer blocks, the number of training epochs is 15 and the batch size is 32; the initial learning rate is set to 3e-5, and the learning rate is adjusted after each epoch using the step learning rate scheduler, and the AdamW optimizer is used to automatically adjust the learning rate; The step size of the step learning rate scheduler is set to each epoch, and the decay coefficient is set to 0.5; It also includes a knowledge base. The knowledge base is constructed by: collecting reference intervals, project introductions, clinical significance, and comprehensive interpretation points of all physical examination laboratory items, and organizing them into initial documents; dividing the corpus in the initial document into text blocks, and using an embedding model to convert the text data in the text blocks into a vector matrix; using the vector matrix to build an index and write it into a vector database; When in use, a question is input into the physical examination report interpretation model, the physical examination report interpretation model inputs the question into the knowledge base and recalls the data most relevant to the question from the vector database of the knowledge base, the knowledge base inputs the recalled data into the physical examination report interpretation model, and the physical examination report interpretation model outputs a detailed interpretation text.

5. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Physical examination report interpretation method and device, storage medium and electronic equipment

    CN116665837A

  • Method and device for interpreting physical examination report

    CN116884558A

  • Physical examination report interpretation method and device and all-in-one machine

    CN117954087A

  • Physical examination report interpretation prediction method and system, electronic equipment and storage medium

    CN115346634A

  • Physical examination report generation method, system, device and medium

    CN116913454A