Method for automatically generating personalized experimental report comments based on large model and decision tree
By combining large language model and decision tree technology, personalized experimental report comments are generated, which solves the problem of insufficient understanding and feedback of existing tools in experimental report review, achieves more accurate and transparent scoring and feedback, and improves educational resources. Utilization and the student learning experience.
Patent Information
- Application Number
- CN202410704784.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-27
AI Technical Summary
Existing automated tools lack a deep understanding of experimental details and scientific logic when reviewing experimental reports, resulting in insufficient accuracy and pertinence of review and feedback. Especially when dealing with complex experimental data and scientific logic, the decision tree method has inaccuracies. and limitations in depth.
An automatic generation method of personalized experiment report comments based on large language models and decision trees is adopted, and the experimental requirements are converted into experimental evaluation decision trees through the theme-evaluation decision-integrated prompts (T-ED-I), and the large language model and decision-making are combined The tree tool rates experimental topics and generates personalized comments and feedback.
It achieves deeper text understanding and more targeted feedback generation, improves the scoring accuracy of experimental reports and the constructiveness of comments, meets the demand for automated assessment tools in the education field, and improves the overall level of automatic review of experimental reports. .
Smart Images

Figure CN118551035A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing, in particular to the field of natural language large models and decision trees, and more particularly to a Topic-Evaluation Decision-Integrated Prompt Strategy (T-ED-I) suitable for automatic extraction of experimental requirements and code quality requirements, an ATopic Assessment Tool Based on Large Language Models and Decision Trees (LLMTR), and an automatic generation framework of personalized experimental report comments based on a large language model. Background Art
[0002] Research on digital lab reports focuses on how to use information technology to improve the efficiency and quality of lab report writing, submission, evaluation, and feedback. This includes the templating of lab reports, the development of online submission systems, and the use of automated tools for preliminary content review and format checking. This work aims to simplify the management process and improve the accessibility of educational resources, while also exploring the possibility of improving student engagement and learning outcomes. However, existing technologies are still insufficient in some aspects. For example, when processing lab reports, automated tools often lack a deep understanding of experimental details and scientific logic, resulting in insufficient accuracy and pertinence in reviews and feedback.
[0003] At present, automatic scoring and comment generation methods are mainly used in the field of essay review. These methods use natural language processing (NLP) technology, machine learning technology, etc. to automatically evaluate the quality of student essays. These methods usually include machine learning models such as random forests, support vector machines (SVM), etc., as well as the recently emerged large language model technology. These technologies can comprehensively score essays based on their content, structure, grammar, etc., and generate corresponding comments and feedback. This not only improves the efficiency of review, but also ensures a certain degree of fairness and consistency in review. However, when these methods are applied to experimental reports, they face the difficulty of understanding and processing scientific content and experimental logic, and often cannot fully reflect the actual quality of experimental reports.
[0004] Large language models, especially in the field of natural language processing, have shown great potential in understanding and generating text. These models learn the deep structure and meaning of language by pre-training on large-scale text datasets, so that they can perform a variety of tasks including text summarization, intelligent question answering, and text generation. In automatic review systems, large models can be used to understand the content of laboratory reports, evaluate their quality, and even generate instructive comments. However, when dealing with specific scientific experimental content, large language models still face challenges such as lack of professionalism and insufficient contextual understanding.
[0005] Decision trees are a simple but powerful classification method that performs classification by constructing a tree structure of decision rules. In the application of automatic correction of laboratory reports, decision trees can be used to analyze specific features of the report (such as the description of key experimental steps, the accuracy of data analysis, etc.) and use this as the basis for scoring or classification. Because its results are easy to understand, decision trees are very suitable for generating interpretable scoring basis and feedback. However, the decision tree method may have limitations in accuracy and depth when dealing with complex experimental data and scientific logic.
[0006] In summary, the automatic generation of lab report comments based on large language models and decision trees can achieve a deeper level of text understanding and more personalized and targeted feedback generation by integrating the advantages of the above methods. Compared with traditional methods, large language models can better extract complex information in lab reports, understand students' experimental ideas and analysis methods, and provide more accurate scores and more constructive comments based on this. In addition, the application of classification methods such as decision trees can provide a clear logical basis for scoring and feedback, making the evaluation process more transparent and easy to understand. The combination of these two technologies can meet the needs of the education field for automated evaluation tools to a greater extent, especially in improving the utilization rate of educational resources, assisting teachers in digital teaching, and enhancing students' learning experience. At the same time, by further studying and improving these technologies, we can better overcome the shortcomings of existing technologies and improve the overall level of automatic review of lab reports. Summary of the invention
[0007] The purpose of the present invention is to provide a method for automatically generating personalized experimental report comments based on a large model and a decision tree. It includes the generation of an experimental evaluation decision tree and the construction of an experimental evaluation decision tree library. The proposed theme-evaluation decision-integrated prompt (T-ED-I) is used to integrate experimental requirements with different contents and forms and general code quality requirements, and process them into a valid experimental evaluation decision tree in json format, and convert all experimental requirements into corresponding experimental evaluation decision trees, which are stored in the experimental evaluation decision tree library; experimental topic rating based on a large language model and a decision tree: text segmentation of student experimental reports, extraction of experimental tasks completed by students, retrieval of corresponding experimental evaluation decision trees, and automatic rating of each experimental topic; finally, combined with the template of the experimental comment, the large model is called to output the final experimental comment. In order to achieve the above purpose, the present invention provides the following scheme:
[0008] A method for automatically generating personalized experimental report comments based on a large model and a decision tree includes:
[0009] S1: Automatically generate an evaluation decision tree based on a large model: Input the experimental requirements and the subject-evaluation decision-integrated prompt T-ED-I of each experiment into the large model for processing, obtain the corresponding experimental evaluation decision tree, and store the experimental evaluation decision tree in the evaluation decision tree library. The subject-evaluation decision-integrated prompt is used to extract the evaluation indicators and evaluation standards of each subject from the experimental requirements, and integrate the evaluation indicators and evaluation standards of each subject in json format to form an experimental evaluation decision tree;
[0010] S2: Experimental topic rating based on large model and decision tree: Experimental topics are rated using the topic evaluation tool LLMTR. The topic evaluation tool first performs text segmentation on students' experimental reports to obtain the text of each experimental topic, extracts the experimental tasks completed by students from the text of the experimental summary topic, retrieves the evaluation decision tree corresponding to the experiment from the evaluation decision tree library according to the experimental task, and finally rates each experimental topic according to the evaluation indicators and evaluation standards of each topic on the evaluation decision tree, obtaining the rating results and rating basis of the experimental topic;
[0011] S3: Automatic generation of personalized lab report comments based on a large language model: Design a lab comment template based on the teacher's lab report correction experience, combine the extracted lab tasks completed by students, the evaluation results and evaluation basis of the lab topic, and call the large model to output the final lab report comments and reference scores;
[0012] Among them, S1 automatically generates an experimental evaluation decision tree based on the big model, inputs the experimental requirements of each experiment, and the big model theme-evaluation decision-integrated prompt T-ED-I processes the experimental requirements into the corresponding experimental evaluation decision tree and puts it into the experimental decision tree library, including:
[0013] S11: From the perspective of problem decomposition and gradual refinement, a topic-evaluation decision-integrated prompt T-ED-I suitable for automatic extraction of experimental requirements and code quality requirements is proposed. The experimental requirements designed by teachers not only have different contents, but also have different styles in form, such as list form, plain text form, etc. After integrating the experimental requirements with different contents and forms into the common code quality requirements input, after being processed by T-ED-I, the experimental evaluation decision tree is output in a valid json form;
[0014] S12: Topic prompt: It includes task setting method and topic output format. The topic prompt is used to input the teacher's experimental requirements when setting the task, automatically extract the first-level title, and output the theme in the form of an array to form an experimental topic array. The task setting is to extract the first-level titles other than the title with similar semantics to "summary" in the experimental requirements, which is used for the subsequent extraction of the evaluation standards and evaluation indicators corresponding to each topic. The topic output format is an array used to standardize the output of the topic, which is convenient for the analysis and processing of each topic; the prompt form is as follows:
[0015] {
[0016] Task setting: "This is the teacher's experimental requirement. You need to extract the first-level headings, except for the headings with similar semantics to "Summary".
[0017] Output form: "Stored in a topic array [",","], single quotes are used in the array, the format is ['element 1', 'element 2',...], only this array is output, no other content is output."
[0018] };
[0019] S13: Evaluation decision prompt: It includes task setting method and evaluation decision output form. The evaluation decision prompt is used to input the teacher's experimental requirements and experimental subject array when setting the task, and extract the evaluation criteria and evaluation indicators of each subject in the experimental subject array from the experimental requirements. The evaluation decision output form is used to convert the extracted experimental subject evaluation criteria into an experimental evaluation decision tree; the prompt form is as follows:
[0020] {
[0021] Task setting: "Please extract the evaluation method content of the topic "+str(title)" according to the experimental requirements.",
[0022] Output form: "Output in json format separately and merge into the same json file."
[0023] }, where title is a topic extracted from the topic array in sequence;
[0024] S14: Integrated prompt: It includes the task setting method and the integrated prompt output form. The integrated prompt is used to input the experimental evaluation decision tree and the set code quality decision branch in the evaluation decision prompt when setting the task, call the large model interface to merge the code quality decision branch into the experimental evaluation decision tree, and generate the final experimental evaluation decision tree; the prompt form is as follows:
[0025] {
[0026] Task setting: "The above json files are the evaluation criteria for each module and code part in the experimental requirements. Please merge them.",
[0027] Output form: ""**Experimental decision tree" is the name of the experiment you need to extract, such as "Automated testing system experimental decision tree", "CRM system experimental decision tree", etc.; please do not explain, just output it in the following format: {"**Experimental decision tree"{"Corresponding subject name":{"Evaluation method":"*****"},"Corresponding subject name":{"Evaluation method":"*****"},"Corresponding subject name":{"Evaluation method":"*****"}......}}"
[0028] };
[0029] S15: Construction of the experimental evaluation decision tree library: The existing course experimental requirements and code quality requirements are gradually input into the experimental report evaluation decision tree generation tool based on the large model to form the corresponding decision tree and store it in the library. As the number of experimental evaluation decision trees accumulates, a data set for evaluating decision trees is constructed, where the decision tree library is represented as:
[0030] T=[T1,T2,.........Tn]
[0031] Among them, Ti represents the evaluation decision tree of the experiment, which is in json format;.
[0032] S2: Rating the experimental requirements topics based on the large language model and decision tree. This method is divided into four modules: experimental topic text segmentation of the experimental report, extraction of experimental tasks completed by students, retrieval of experimental evaluation decision trees, and automatic rating of experimental topics. Specifically, it includes:
[0033] S21: Text segmentation of lab reports: Input the content of the student lab report into the segmentation tool, which segments the text corresponding to each lab topic. The segmentation tool uses complex regular expressions to match the main title, and uses the re.finditer method to locate the position of all titles. By calling the split_text_by_heading(text) function, the input lab text can be effectively segmented by lab topic, and each part is stored in a dictionary, with the experiment as the key and the corresponding content as the value;
[0034] S22: Polishing of experimental summary theme text: Extract the experimental summary theme text from the segmented experimental theme text, input it into the big model together with the prompt, and polish the experimental summary theme text. The prompt includes specifying the big model to play the role of a professional teacher in the computer field, the specific task setting for polishing the experimental summary theme text, and the output form that restricts the big model from outputting other content; the prompt form is as follows:
[0035] {
[0036] Role: "Professional teacher in the computer field.",
[0037] Task setting: "Please polish the experimental summary to make it fluent and concise, without grammatical or logical errors."
[0038] Output form: "Output the polished text directly without explanation."
[0039] };
[0040] S23: Extraction of completed experimental tasks: Input the polished experimental summary theme text and prompts into the big model to extract the completed experimental tasks; the prompts include specifying the big model to play the role of a professional teacher in the computer field, the specific task settings for the extraction of completed experimental tasks, and the output format of the big model for the extracted completed experimental tasks; the prompt format is as follows:
[0041] {
[0042] Role: "Professional teacher in the computer field.",
[0043] Task setting: "Please extract the name of the system made by the students and the key points of completing the task from the input experimental summary.",
[0044] Output form: "Output in list form."
[0045] };
[0046] S24: Retrieval of experimental evaluation decision tree: select any experimental evaluation decision tree from the evaluation decision tree library, the polished experimental summary theme text and the prompt words and input them into the big model to obtain the matching result of the evaluation decision tree and the experimental summary theme text. The prompt words include the specific setting of the matching task and the output form of the standardized matching result; if the matching result is "matching failure", continue to select the next evaluation decision tree and experimental summary theme text from the library for matching; if the matching result is "matching success", output the retrieved evaluation decision tree; the prompt words are in the following form:
[0047] {
[0048] Task setting: "Below is an evaluation decision tree. Please determine whether the experimental task completed by the student belongs to this decision tree. The form of the evaluation decision tree is ...",
[0049] Output form: "If the match is successful, the decision tree is output in json format."
[0050] };
[0051] S25: Automatic quantitative rating of experimental topics: Select an experimental topic text from the segmented experimental topic texts, the retrieved experimental evaluation decision tree and the prompts and input them into the large model, and output the evaluation results and evaluation basis of the experimental topic text. The prompts include the specific task settings for evaluating the experimental topic text and the output form of the standardized evaluation results and evaluation basis. The specific task settings include matching the selected experimental topic text with the experimental topic topic on the topic branch in the experimental evaluation decision tree to obtain the evaluation branch of the experimental topic; extracting the indicators on the experimental topic evaluation branch, and specifically scoring the topic text from the perspectives of quantitative indicators and non-quantifiable indicators, and obtaining the corresponding evaluation basis; comprehensively scoring each indicator and considering the weight of each indicator to obtain the evaluation score of the experimental topic; based on the evaluation score of the experimental topic and the rating criteria, output the evaluation result of the topic and the corresponding evaluation basis; the prompt form is as follows:
[0052] {
[0053] Task setting: "This is the experimental evaluation decision tree for this experiment. Please find which branch of the decision tree the topic belongs to in turn, and score it according to the efficiency and annotation standardization scoring standards of the branch, and rate it according to the given rating standards, and give the basis for the rating.",
[0054] Output form: "Output according to this template: The subject ** is because ***, and the rating is ***;"
[0055] };
[0056] S26: Automatic qualitative rating of experimental topics: Input the code experiment topic text, the retrieved experimental evaluation decision tree and prompts into the big model, and output the evaluation results and evaluation basis of the experimental code quality. The prompts include the evaluation results and evaluation basis of the code experiment topic text based on the corresponding rating rules based on the two indicators of efficiency and annotation standardization, and the specific task settings for obtaining the evaluation results and evaluation basis of each indicator, and the output form of the standardized evaluation results and evaluation basis; the prompt form is as follows:
[0057] {
[0058] Task setting: "This is the experimental evaluation decision tree for this experiment. Please find the code quality branch of the topic and score it according to the scoring criteria of the branch. Rating it according to the given rating criteria and give the basis for the rating.",
[0059] Output form: "Output according to this template: In terms of code quality, efficiency is ***, and the rating is ***; comment standardization is ***, and the rating is ***;"
[0060] };
[0061] S3: Automatic generation of personalized lab report comments based on large language models. This template is based on the experience of teachers in correcting lab reports, including the extracted lab tasks that students have completed, the evaluation results and basis of the automatic quantitative rating of each lab topic, the evaluation results and basis of the automatic qualitative rating of the lab topic, and the final weighted score is calculated to obtain the final lab comment and lab report reference score, including:
[0062] S31: Experimental comment template: The student designed and implemented ***, and the specific task completed was: ***. Topic 1 was rated *** because of ***; Topic 2 was rated *** because of ***, and..., Topic n was rated *** because of ***. In terms of code quality, the grammatical correctness was rated *** because of ***; the test case pass rate was rated *** because of ***; the efficiency was rated *** because of ***; the comment standardization was rated *** because of ***; the reference score of the experimental report was ***.
[0063] S32: Finally, based on the evaluation results and evaluation basis of S25 and S26, combined with the experimental comment template of S31, generate the final experimental comments and experimental reference scores;
[0064] It can be seen from the above technical scheme that the present invention first proposes a theme-evaluation decision-integrated prompt based on a large model, automatically converts the experimental requirements with distinctive content and form in the field of computer software courses and the general code quality requirements into an experimental evaluation decision tree, and constructs an experimental report experimental evaluation decision tree library. Secondly, a method for rating experimental requirements and code quality themes based on a large language model and a decision tree is proposed, and a decision tree matching the student's experimental report is retrieved from the experimental evaluation decision tree library. The rating results and the corresponding interpretability basis are obtained based on the evaluation system of each theme in the decision tree. The scoring basis prompts students to clarify their own problems in writing experimental reports, which is convenient for subsequent improvements. Finally, personalized experimental report comments are automatically generated based on the experimental report template, providing a useful reference for teachers to review experimental reports. Advantages of the automatic generation of personalized experimental report comments based on large models and decision trees constructed by this method: (1) Automation and efficiency: The system can automatically generate experimental report comments, greatly reducing the time and energy required for teachers to review experimental reports and improving the overall review efficiency. (2) Personalized comments: By combining large models and decision tree technology, the generated comments can provide personalized analysis and feedback on students' specific problems, help students understand their shortcomings more clearly, and provide specific suggestions for improvement. (3) Knowledge sharing and reuse: As a knowledge base, the evaluation decision tree library can be continuously expanded and updated. It can not only adapt to changes in different experimental requirements, but also be shared as teaching resources to improve teaching quality and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] After reading the specific embodiments of the present invention with reference to the accompanying drawings, readers will understand the various aspects of the present invention more clearly.
[0066] Figure 1 The overall block diagram of the method for automatically generating personalized experimental report comments based on a large model and a decision tree proposed by the present invention is shown;
[0067] Figure 2 The evaluation decision-integration prompt proposed by the present invention is shown.
[0068] Figure 3 The hierarchical structure of the evaluation decision tree proposed in the present invention is shown.
[0069] Figure 4 The experimental topic rating tool LLMTR based on a large language model and a decision tree proposed by the present invention is shown.
[0070] Figure 5 The effect diagram of the final realization of the present invention is shown. DETAILED DESCRIPTION
[0071] The present invention proposes a method for automatically generating personalized experimental report comments based on a large model and a decision tree, which mainly includes: constructing the experimental requirements of each experiment into a corresponding experimental evaluation decision tree based on a large language model and storing the result; segmenting the student's experimental report by segmentation to form a text with the theme as the core, then polishing the text of the summary part and extracting the corresponding experimental tasks, and selecting a decision tree from an evaluation decision tree library to match the polished student experimental summary text, retrieving the experimental evaluation decision tree of the experiment, and finally evaluating the theme from two aspects of qualitative rating and quantitative rating according to the requirements of the evaluation decision tree, and returning the rating result; combining the designed experimental comment template to generate the final experimental report.
[0072] Step S1, based on the big model, automatically generates an experimental evaluation decision tree. Input the experimental requirements of each experiment. The big model theme-evaluation decision-integrated prompt T-ED-I processes the experimental requirements into the corresponding experimental evaluation decision tree and puts it into the experimental decision tree library, including:
[0073] S11: From the perspective of problem decomposition and gradual refinement, the following is proposed: Figure 2 A theme-evaluation decision-integrated prompt T-ED-I suitable for automatic extraction of experimental requirements and code quality requirements. The experimental requirements designed by teachers not only have different contents, but also have different styles in form, such as list form, plain text form, etc. After integrating the experimental requirements with different contents and forms into the common code quality requirements input, after being processed by T-ED-I, the experimental evaluation decision tree is output in a valid json form;
[0074] S12: Topic prompt: It includes task setting method and topic output format. The topic prompt is used to input the teacher's experimental requirements when setting the task, automatically extract the first-level title, and output the theme in the form of an array to form an experimental topic array. The task setting is to extract the first-level titles other than the title with similar semantics to "summary" in the experimental requirements, which is used for the subsequent extraction of the evaluation standards and evaluation indicators corresponding to each topic. The topic output format is an array used to standardize the output of the topic, which is convenient for the analysis and processing of each topic; the prompt form is as follows:
[0075] {
[0076] Task setting: "This is the teacher's experimental requirement. You need to extract the first-level headings, except for the headings with similar semantics to "Summary".
[0077] Output form: "Stored in a topic array [",","], single quotes are used in the array, the format is ['element 1', 'element 2',...], only this array is output, no other content is output."
[0078] };
[0079] S13: Evaluation decision prompt: It includes task setting method and evaluation decision output form. The evaluation decision prompt is used to input the teacher's experimental requirements and experimental subject array when setting the task, and extract the evaluation criteria and evaluation indicators of each subject in the experimental subject array from the experimental requirements. The evaluation decision output form is used to convert the extracted experimental subject evaluation criteria into an experimental evaluation decision tree; the prompt form is as follows:
[0080] {
[0081] Task setting: "Please extract the evaluation method content of the topic "+str(title)" according to the experimental requirements.",
[0082] Output form: "Output in json format separately and merge into the same json file."
[0083] }, where title is a topic extracted from the topic array in sequence;
[0084] S14: Integrated prompt: It includes the task setting method and the integrated prompt output form. The integrated prompt is used to input the experimental evaluation decision tree and the set code quality decision branch in the evaluation decision prompt when setting the task, call the large model interface to merge the code quality decision branch into the experimental evaluation decision tree, and generate the final experimental evaluation decision tree; the prompt form is as follows:
[0085] {
[0086] Task setting: "The above json files are the evaluation criteria for each module and code part in the experimental requirements. Please merge them.",
[0087] Output form: ""**Experimental decision tree" is the name of the experiment you need to extract, such as "Automated testing system experimental decision tree", "CRM system experimental decision tree", etc.; please do not explain, just output it in the following format: {"**Experimental decision tree"{"Corresponding subject name":{"Evaluation method":"*****"},"Corresponding subject name":{"Evaluation method":"*****"},"Corresponding subject name":{"Evaluation method":"*****"}......}}"
[0088] };
[0089] S15: Construction of the experimental evaluation decision tree library: The existing course experimental requirements and code quality requirements are gradually input into the experimental report evaluation decision tree generation tool based on the large model to form the corresponding decision tree and store it in the library. As the number of experimental evaluation decision trees accumulates, a data set for evaluating decision trees is constructed, where the decision tree library is represented as:
[0090] T=[T1,T2,.........Tn]
[0091] Among them, Ti represents the evaluation decision tree of the experiment, which is in json format;.
[0092] In step S2, based on the large language model and decision tree, Figure 4 The subject evaluation tool LLMTR rates experimental subjects. The tool is divided into four modules: experimental subject text segmentation of experimental reports, extraction of experimental tasks completed by students, retrieval of experimental evaluation decision trees, and automatic rating of experimental subjects. Specifically, it includes:
[0093] S21: Text segmentation of lab reports: Input the content of the student lab report into the segmentation tool, which segments the text corresponding to each lab topic. The segmentation tool uses complex regular expressions to match the main title, and uses the re.finditer method to locate the position of all titles. By calling the split_text_by_heading(text) function, the input lab text can be effectively segmented by lab topic, and each part is stored in a dictionary, with the experiment as the key and the corresponding content as the value;
[0094] S22: Polishing of experimental summary theme text: Extract the experimental summary theme text from the segmented experimental theme text, input it into the big model together with the prompt, and polish the experimental summary theme text. The prompt includes specifying the big model to play the role of a professional teacher in the computer field, the specific task setting for polishing the experimental summary theme text, and the output form that restricts the big model from outputting other content; the prompt form is as follows:
[0095] {
[0096] Role: "Professional teacher in the computer field.",
[0097] Task setting: "Please polish the experimental summary to make it fluent and concise, without grammatical or logical errors."
[0098] Output form: "Output the polished text directly without explanation."
[0099] };
[0100] S23: Extraction of completed experimental tasks: Input the polished experimental summary theme text and prompts into the big model to extract the completed experimental tasks; the prompts include specifying the big model to play the role of a professional teacher in the computer field, the specific task settings for the extraction of completed experimental tasks, and the output format of the big model for the extracted completed experimental tasks; the prompt format is as follows:
[0101] {
[0102] Role: "Professional teacher in the computer field.",
[0103] Task setting: "Please extract the name of the system made by the students and the key points of completing the task from the input experimental summary.",
[0104] Output form: "Output in list form."
[0105] };
[0106] S24: Retrieval of experimental evaluation decision tree: select any experimental evaluation decision tree from the evaluation decision tree library, the polished experimental summary theme text and the prompt words and input them into the big model to obtain the matching result of the evaluation decision tree and the experimental summary theme text. The prompt words include the specific setting of the matching task and the output form of the standardized matching result; if the matching result is "matching failure", continue to select the next evaluation decision tree and experimental summary theme text from the library for matching; if the matching result is "matching success", output the retrieved evaluation decision tree; the prompt words are in the following form:
[0107] {
[0108] Task setting: "Below is an evaluation decision tree. Please determine whether the experimental task completed by the student belongs to this decision tree. The form of the evaluation decision tree is ...",
[0109] Output form: "If the match is successful, the decision tree is output in json format."
[0110] };
[0111] S25: Automatic quantitative rating of experimental topics: Select an experimental topic text from the segmented experimental topic texts, the retrieved experimental evaluation decision tree and the prompts and input them into the large model, and output the evaluation results and evaluation basis of the experimental topic text. The prompts include the specific task settings for evaluating the experimental topic text and the output form of the standardized evaluation results and evaluation basis. The specific task settings include matching the selected experimental topic text with the experimental topic topic on the topic branch in the experimental evaluation decision tree to obtain the evaluation branch of the experimental topic; extracting the indicators on the experimental topic evaluation branch, and specifically scoring the topic text from the perspectives of quantitative indicators and non-quantifiable indicators, and obtaining the corresponding evaluation basis; comprehensively scoring each indicator and considering the weight of each indicator to obtain the evaluation score of the experimental topic; based on the evaluation score of the experimental topic and the rating criteria, output the evaluation result of the topic and the corresponding evaluation basis; the prompt form is as follows:
[0112] {
[0113] Task setting: "This is the experimental evaluation decision tree for this experiment. Please find which branch of the decision tree the topic belongs to in turn, and score it according to the efficiency and annotation standardization scoring standards of the branch, and rate it according to the given rating standards, and give the basis for the rating.",
[0114] Output form: "Output according to this template: The subject ** is because ***, and the rating is ***;"
[0115] };
[0116] S26: Automatic qualitative rating of experimental topics: Input the code experiment topic text, the retrieved experimental evaluation decision tree and prompts into the big model, and output the evaluation results and evaluation basis of the experimental code quality. The prompts include the evaluation results and evaluation basis of the code experiment topic text based on the corresponding rating rules based on the two indicators of efficiency and annotation standardization, and the specific task settings for obtaining the evaluation results and evaluation basis of each indicator, and the output form of the standardized evaluation results and evaluation basis; the prompt form is as follows:
[0117] {
[0118] Task setting: "This is the experimental evaluation decision tree for this experiment. Please find the code quality branch of the topic and score it according to the scoring criteria of the branch. Rating it according to the given rating criteria and give the basis for the rating.",
[0119] Output form: "Output according to this template: In terms of code quality, efficiency is ***, and the rating is ***; comment standardization is ***, and the rating is ***;"
[0120] };
[0121] S3: Automatic generation of personalized lab report comments based on large language models. This template is based on the experience of teachers in correcting lab reports, including the extracted lab tasks that students have completed, the evaluation results and basis of the automatic quantitative rating of each lab topic, the evaluation results and basis of the automatic qualitative rating of the lab topic, and the final weighted score is calculated to obtain the final lab comment and lab report reference score, including:
[0122] S31: Experimental comment template: The student designed and implemented ***, and the specific task completed was: ***. Topic 1 was rated *** because of ***; Topic 2 was rated *** because of ***, and..., Topic n was rated *** because of ***. In terms of code quality, the grammatical correctness was rated *** because of ***; the test case pass rate was rated *** because of ***; the efficiency was rated *** because of ***; the comment standardization was rated *** because of ***; the reference score of the experimental report was ***.
[0123] S32: Finally, based on the evaluation results and evaluation basis of S25 and S26, combined with the experimental comment template of S31, the final experimental comments and experimental reference scores are generated.
Claims
1. A method for automatically generating personalized laboratory report comments based on a large model and a decision tree, characterized in that: The steps include: S1: Automatically generate an evaluation decision tree based on a large model: Input the experimental requirements and the subject-evaluation decision-integrated prompt T-ED-I of each experiment into the large model for processing, obtain the corresponding experimental evaluation decision tree, and store the experimental evaluation decision tree in the evaluation decision tree library. The subject-evaluation decision-integrated prompt is used to extract the evaluation indicators and evaluation standards of each subject from the experimental requirements, and integrate the evaluation indicators and evaluation standards of each subject in json format to form an experimental evaluation decision tree; S2: Experimental topic rating based on large model and decision tree: Experimental topics are rated using the topic evaluation tool LLMTR. The topic evaluation tool first performs text segmentation on students' experimental reports to obtain the text of each experimental topic, extracts the experimental tasks completed by students from the text of the experimental summary topic, retrieves the evaluation decision tree corresponding to the experiment from the evaluation decision tree library according to the experimental task, and finally rates each experimental topic according to the evaluation indicators and evaluation standards of each topic on the evaluation decision tree, obtaining the rating results and rating basis of the experimental topic; S3: Automatic generation of personalized lab report comments based on a large language model: Design a lab comment template based on the teacher's lab report marking experience, combine the extracted lab tasks completed by students, the evaluation results and basis of the lab topics, and call the large model to output the final lab report comments and reference scores.
2. The method for automatically generating personalized laboratory report comments based on a large model and a decision tree according to claim 1, characterized in that: In the subject proposed in step S1, the evaluation decision-integration prompt T-ED-I, the large model automatically generates an evaluation decision tree, which prompt includes: 1) Topic prompt: It includes task setting method and topic output format. The topic prompt is used to input the teacher's experimental requirements when setting the task, automatically extract the first-level title, and output the topic in the form of an array to form an experimental topic array. The task setting is to extract the first-level titles other than the title with similar semantics to "summary" in the experimental requirements, which is used for the subsequent extraction of the evaluation standards and evaluation indicators corresponding to each topic. The topic output format is an array to standardize the output of the topic, which is convenient for the analysis and processing of each topic; 2) Evaluation decision prompt: It includes task setting method and evaluation decision output form. Evaluation decision prompt is used to input the teacher's experimental requirements and experimental subject array when setting the task, and extract the evaluation criteria and evaluation indicators of each subject in the experimental subject array from the experimental requirements. The evaluation decision output form is used to convert the extracted experimental subject evaluation criteria into an experimental evaluation decision tree; 3) Integrated prompts: They include task setting methods and integrated prompt output forms. Integrated prompts are used to input the experimental evaluation decision tree and the set code quality decision branches in the evaluation decision prompts when setting tasks, and call the large model interface to merge the code quality decision branches into the experimental evaluation decision tree to generate the final experimental evaluation decision tree.
3. The method for automatically generating personalized laboratory report comments based on a large model and a decision tree according to claim 1, characterized in that: In step S2, the proposed topic evaluation tool LLMTR is used to rate the experimental requirement topics. The tool includes: 1) Text segmentation of the lab report: Input the content of the student lab report into the segmentation tool, which segments the text corresponding to each lab topic. The segmentation tool uses complex regular expressions to match the main title and uses the re.finditer method to locate the position of all titles. By calling the split_text_by_heading(text) function, the input lab text can be effectively segmented by lab topic and each part is stored in a dictionary, with the experiment as the key and the corresponding content as the value; 2) Polishing of the experimental summary theme text: Extract the experimental summary theme text from the segmented experimental theme text, input it into the big model together with the prompt, and polish the experimental summary theme text. The prompt includes specifying the big model to play the role of a professional teacher in the computer field, setting specific tasks for polishing the experimental summary theme text, and limiting the output form of the big model to not output other content; 3) Extraction of completed experimental tasks: Input the polished experimental summary theme text and prompts into the big model to extract the completed experimental tasks; the prompts include specifying the big model to play the role of a professional teacher in the computer field, setting specific tasks for the extraction of completed experimental tasks, and standardizing the output form of the big model for the extracted completed experimental tasks; 4) Retrieval of evaluation decision tree: select any experimental evaluation decision tree from the evaluation decision tree library, the polished experimental summary theme text and prompt words and input them into the big model to obtain the matching result of the evaluation decision tree and the experimental summary theme text. The prompt words include the specific setting of the matching task and the output form of the standardized matching result; if the matching result is "matching failure", continue to select the next evaluation decision tree and experimental summary theme text from the library for matching; if the matching result is "matching success", output the retrieved evaluation decision tree; 5) Automatic quantitative rating of experimental topics: select an experimental topic text from the segmented experimental topic texts, the retrieved experimental evaluation decision tree and prompts and input them into the large model, and output the evaluation results and evaluation basis of the experimental topic text. The prompts include the specific task settings for evaluating the experimental topic text and the output form of the standardized evaluation results and evaluation basis. The specific task settings include matching the selected experimental topic text with the experimental topic on the topic branch in the experimental evaluation decision tree to obtain the evaluation branch of the experimental topic; extracting the indicators on the experimental topic evaluation branch, and specifically scoring the topic text from the perspectives of quantitative indicators and non-quantifiable indicators, and obtaining the corresponding evaluation basis; comprehensively scoring each indicator and considering the weight of each indicator to obtain the evaluation score of the experimental topic; based on the evaluation score of the experimental topic and the rating criteria, output the evaluation result of the topic and the corresponding evaluation basis; 6) Automatic qualitative rating of experimental topics: Input the code experiment topic text, retrieved experimental evaluation decision tree and prompts into the big model, and output the evaluation results and evaluation basis of the experimental code quality. The prompts include the evaluation results of the code experiment topic text based on the two indicators of efficiency and annotation standardization according to the corresponding rating rules, and obtain the specific task settings of the evaluation results and evaluation basis of each indicator, and standardize the output form of the evaluation results and evaluation basis.
4. The method for automatically generating personalized laboratory report comments based on a large model and a decision tree according to claim 1, characterized in that: The experimental review template in step S3 is derived based on the teacher's experience in marking experimental reports, including the experimental tasks completed by the students extracted above, the evaluation results and evaluation basis of the automatic quantitative rating of each experimental topic, the evaluation results and evaluation basis of the automatic qualitative rating of the experimental topic, and the final weighted score is calculated to obtain the final experimental review and experimental report reference score.
Citation Information
Cited By
AI automatic reviewing system based on personalized learning model
CN119228197A
Physical, chemical and biological experiment report scoring method and system based on multi-modal large model
CN119887470A
