Medical application model training method and device based on BERT model

Through the medical application model training method based on the BERT model, evidence-based medical training samples are used for entity vocabulary masking and MLM training to obtain the PICO-BERT model, which solves the problem of poor applicability of existing pre-trained language models in the medical field and improves the natural Language understanding and ability to handle complex scenarios.

CN112347773BActive Publication Date: 2024-09-20BEIJING NUODAO COGNITIVE MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011159163.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-09-20
Estimated Expiration
2040-10-26

AI Technical Summary

Technical Problem

Existing pre-trained language models have poor applicability in the medical field and cannot effectively solve natural language problems in specific research scenarios in the medical field. Especially because the large-scale corpus they are based on is not targeted at specific fields, resulting in poor performance in the medical field. .

Method used

Using the medical application model training method based on the BERT model, by obtaining evidence-based medicine training samples, performing entity word masking, and obtaining MLM training samples, and using these samples to conduct MLM training on the BERT model, the PICO-BERT model is obtained to enhance the semantics of the model. Representation ability.

Benefits of technology

It improves the natural language understanding ability in specific research scenarios in the medical field, making the model more suitable for handling natural language problems in complex scenarios, and enhancing the applicability in the medical field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112347773B
    Figure CN112347773B
Patent Text Reader

Abstract

The embodiment of the present invention provides a medical application model training method and device based on the BERT model, the method comprising: obtaining evidence-based medicine training samples; performing entity vocabulary shielding on the evidence-based medicine training samples to obtain MLM training samples; performing MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model; wherein the entity vocabulary corresponds to entities with practical significance in evidence-based medicine; performing MLM training on the MLM training samples obtained by shielding the entity vocabulary to obtain the PICO-BERT model, thereby enhancing the overall semantic representation ability of the model, so that the trained PICO-BERT model has stronger semantic understanding ability, stronger ability to process natural language problems in complex scenarios in specific fields, can be better applicable in the medical field, and improves the ability to understand natural language in specific research scenarios in the medical field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of natural language processing technology, and in particular to a medical application model training method and device based on a BERT model. Background Art

[0002] In the field of natural language processing today, pre-trained language models have created a new paradigm for research and have set new records for many natural language processing tasks. Pre-trained language models are first pre-trained based on a large amount of unsupervised corpus, and then fine-tuned using a small amount of annotated corpus to complete downstream NLP tasks such as text classification, sequence labeling, machine translation, and reading comprehension.

[0003] The pre-trained language model BERT introduced two pre-training tasks, MLM (Masked Language Model) and NSP (NextSentence Prediction, NSP), and pre-trained on a larger corpus, setting new best indicators on 11 natural language understanding tasks. In order to ensure the versatility of the BERT model, the large-scale corpus on which BERT is based covers various knowledge fields. The pre-trained language model trained based on such corpus can be used to solve natural language problems in different fields, but it can also lead to the pre-trained language model trained with such corpus performing generally in some professional fields and cannot adaptively solve natural language problems in professional fields.

[0004] Although the current pre-trained language models perform well in general fields, they are not suitable for solving natural language processing problems in professional fields because the large-scale corpus they are based on is not targeted at a specific field. In the medical field, this shortcoming is particularly serious because the medical field is highly professional and the fault tolerance of deep learning models in the medical field is lower. Therefore, the current commonly used pre-trained language models such as BERT are not suitable for the medical field and cannot solve natural language problems in certain specific research scenarios in the medical field.

[0005] Therefore, how to provide a model solution that can be better applied in the medical field and improve the ability to understand natural language in specific research scenarios in the medical field is a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0006] The embodiments of the present invention provide a medical application model training method and device based on the BERT model, which can be better applied in the medical field and improve the ability to understand natural language in specific research scenarios in the medical field.

[0007] The embodiment of the present invention provides a medical application model training method based on the BERT model, comprising:

[0008] Get samples of evidence-based medicine training;

[0009] Performing entity vocabulary shielding on the evidence-based medicine training samples to obtain MLM training samples;

[0010] Performing MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model;

[0011] The entity vocabulary corresponds to entities with practical significance in evidence-based medicine.

[0012] Furthermore, obtaining evidence-based medicine training samples includes:

[0013] Access to medical literature;

[0014] Extracting PICO entities from the medical literature; the PICO entities include: object of the problem, intervention measures, alternative measures, and results;

[0015] The PICO entity in each medical document is identified as an evidence-based medicine training sample.

[0016] Furthermore, the entity vocabulary shielding is performed on the evidence-based medicine training sample to obtain the MLM training sample, including:

[0017] Performing word segmentation on the evidence-based medicine training sample to obtain a word segmentation result;

[0018] Aligning the word segmentation result with the PICO entity to obtain an alignment result;

[0019] Using the entity vocabulary in the alignment result to shield the evidence-based medicine training sample to obtain the MLM training sample;

[0020] Among them, the PICO entity is an entity with practical natural significance in evidence-based medicine.

[0021] Furthermore, the entity vocabulary includes at least one of the following: disease category vocabulary, drug vocabulary, biological enzyme vocabulary, and pathological reaction vocabulary.

[0022] Furthermore, the using the MLM training sample to perform MLM training on the BERT model to obtain the PICO-BERT model includes:

[0023] Put the BERT model into training mode;

[0024] Inputting the MLM training sample into the BERT model to obtain a trained BERT model;

[0025] The trained BERT model is identified as the PICO-BERT model.

[0026] Furthermore, the NSP training task in the PICO-BERT model is deleted.

[0027] In a second aspect, an embodiment of the present invention provides a medical application model training device based on a BERT model, comprising:

[0028] A sample acquisition module is used to obtain samples for evidence-based medicine training;

[0029] A sample processing module, used for performing entity vocabulary shielding on the evidence-based medicine training sample to obtain an MLM training sample;

[0030] A model training module, used to perform MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model;

[0031] The entity vocabulary corresponds to entities with practical significance in evidence-based medicine.

[0032] Furthermore, the sample processing module includes:

[0033] A word segmentation unit, used for performing word segmentation on the evidence-based medicine training sample to obtain a word segmentation result;

[0034] An alignment unit, used to align the word segmentation result with the PICO entity to obtain an alignment result;

[0035] A shielding unit, used for shielding the evidence-based medicine training sample using the entity vocabulary in the alignment result to obtain an MLM training sample;

[0036] Among them, the PICO entity is an entity with practical natural significance in evidence-based medicine.

[0037] An embodiment of the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described medical application model training methods based on the BERT model are implemented.

[0038] An embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the medical application model training method based on the BERT model as described above are implemented.

[0039] The embodiment of the present invention provides a medical application model training method and device based on the BERT model. The BERT model is trained with MLM using evidence-based medicine training samples. During the training, the evidence-based medicine training samples are shielded with entity vocabulary to obtain MLM training samples. The MLM training samples obtained by shielding entity vocabulary are used to perform MLM training to obtain a PICO-BERT model, thereby enhancing the overall semantic representation ability of the model, so that the trained PICO-BERT model has stronger semantic understanding ability, stronger ability to process natural language problems in complex scenarios in specific fields, can be better applied in the medical field, and improve the ability to understand natural language in specific research scenarios in the medical field. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A flowchart of a medical application model training method based on the BERT model provided in an embodiment of the present invention;

[0042] Figure 2 A sample acquisition flow chart of a medical application model training method based on a BERT model provided in an embodiment of the present invention;

[0043] Figure 3 A sample processing flow chart of a medical application model training method based on a BERT model provided in an embodiment of the present invention;

[0044] Figure 4 A model training flow chart of a medical application model training method based on a BERT model provided in an embodiment of the present invention;

[0045] Figure 5 A schematic diagram of the composition of a medical application model training device based on a BERT model is provided for an embodiment of the present invention;

[0046] Figure 6 A schematic diagram of the composition of a sample processing module of a medical application model training device based on a BERT model is provided for an embodiment of the present invention;

[0047] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] Combine the following Figure 1-Figure 4 A medical application model training method based on the BERT model according to an embodiment of the present invention is described.

[0050] Figure 1 A flowchart of a medical application model training method based on the BERT model provided in an embodiment of the present invention; Figure 2 A sample acquisition flow chart of a medical application model training method based on a BERT model provided in an embodiment of the present invention; Figure 3 A sample processing flow chart of a medical application model training method based on a BERT model provided in an embodiment of the present invention; Figure 4 A model training flowchart of a medical application model training method based on the BERT model provided in an embodiment of the present invention.

[0051] In a specific embodiment of the present invention, an embodiment of the present invention provides a medical application model training method based on a BERT model, comprising:

[0052] Step S11: Obtain evidence-based medicine training samples;

[0053] In the embodiment of the present invention, it is first necessary to obtain evidence-based medicine training samples. Evidence-based medicine refers to the three major elements of best clinical evidence, skilled clinical experience and the specific conditions of patients. Evidence-based medicine closely combines the best clinical evidence, skilled clinical experience and the specific conditions of patients to find and collect the best clinical evidence, aiming to obtain more sensitive and reliable diagnostic methods, more effective and safer treatment plans, and strive to enable patients to obtain the best treatment results. It can be seen that the research of evidence-based medicine covers the entire process of diagnosis and treatment, and can fully reflect the actual value of medical knowledge. PICO is a retrieval method that formats information based on the theory of evidence-based medicine (EBM). It is the abbreviation of participants, interventions, comparisons, and outcomes. P is the object of the problem (patientrpopulation, patients or population), I is intervention measures (intervention, such as diagnostic and therapeutic methods), C is other alternative measures (comparison, i.e., comparison factors), and O is the result (outcome, i.e., the diagnostic and therapeutic effect of intervention measures). There will be PICO in every medical document.

[0054] Step S12: performing entity vocabulary shielding on the evidence-based medicine training samples to obtain MLM training samples;

[0055] The evidence-based medicine training samples are further subjected to specialized processing in the embodiment of the present invention. Specifically, a knowledge graph in the field of evidence-based medicine can be constructed based on the evidence-based medicine knowledge, and then the PICO entities contained in the evidence-based medicine knowledge graph can be extracted through the entity extraction method. These entities are medical entities with evidence-based medicine significance.

[0056] The existing BERT pre-training process includes two different pre-training tasks, namely the Masked Language Model task and the Next Sentence Prediction task. The Masked Language Model (MLM) trains a bidirectional language model by randomly masking some words and then predicting these masked words, and makes the representation of each word refer to the context information. However, when the original BERT masks, it masks one word for English and one character for Chinese. This modeling strategy that focuses on single words only learns the co-occurrence relationship between single words within an entity, but does not learn the overall semantic representation of the entity.

[0057] Step S13: Perform MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model; wherein the entity vocabulary corresponds to entities with practical significance in evidence-based medicine.

[0058] In addition, in the Masked Language Model (MLM) task, when randomly "masking", we no longer choose to mask a single word, but choose the word corresponding to the "masked" entity. This requires us to segment the corpus before pre-training, and align the segmentation results with the PICO entities extracted from the evidence-based medicine atlas. For example: the correlation study between the methylenetetrahydrofolate reductase (I) gene polymorphism and the adverse reactions of methotrexate (P) chemotherapy drugs in patients with acute lymphoblastic leukemia (P), PICO-BERT needs to accurately predict "methylenetetrahydrofolate reductase", "leukemia", and "methotrexate" based on information such as "gene polymorphism", "chemotherapeutic drugs", and "adverse reactions". Through the "entity masking" method, entity knowledge is integrated into the pre-training process of the PICO-BERT model. PICO-BERT can learn the semantic representation of entities such as "methylenetetrahydrofolate reductase", "leukemia", and "methotrexate", as well as its association with other entities in the context, which enhances the semantic representation ability of the model.

[0059] In addition, the BERT model has a Next Sentence Prediction task, and Next Sentence Prediction (NSP) introduces a next sentence prediction task in order to train a model that understands the relationship between sentences. However, after removing the NSP task, the model effect will not be affected in the embodiment of the present invention. Therefore, the NSP training task in the PICO-BERT model can be deleted to simplify the model.

[0060] Specifically, the following steps can be performed to obtain evidence-based medicine training samples:

[0061] Step S21: Obtain medical literature;

[0062] Step S22: extracting PICO entities from the medical literature; the PICO entities include: object of the problem, intervention measures, alternative measures, and results;

[0063] Step S23: Determine the PICO entity in each medical document as an evidence-based medicine training sample.

[0064] That is to say, there is a large amount of available data in existing medical literature and cases, but these data are not in a form that can be directly used by the BERT model. Therefore, in the embodiment of the present invention, valuable data in these medical literatures are extracted according to the PICO format, thereby obtaining a series of evidence-based medicine training samples. Of course, it does not have to be medical literature, but can also be training samples in PICO format obtained by other means such as case practice in the hospital.

[0065] Furthermore, in order to perform entity vocabulary shielding on the evidence-based medicine training samples, the MLM training samples obtained include:

[0066] Step S31: performing word segmentation on the evidence-based medicine training sample to obtain a word segmentation result;

[0067] Step S32: aligning the word segmentation result with the PICO entity to obtain an alignment result;

[0068] Step S33: shielding the evidence-based medicine training samples using the entity vocabulary in the alignment result to obtain MLM training samples; wherein the PICO entities are entities with actual natural meanings in evidence-based medicine.

[0069] That is, the evidence-based medicine training samples can be segmented, but not aligned with PICO entities. Specifically, the PICO dictionary can be established using the PICO entities extracted from the evidence-based medicine atlas. When performing segmentation alignment of the evidence-based medicine samples, the PICO entries in the PICO dictionary can be used for alignment, so that when performing random masking of the MLM training samples, the entries of the PICO entities in the PICO dictionary are used for masking, thereby obtaining the MLM training samples. Specifically, the entity vocabulary includes at least one of the following: disease category vocabulary, drug vocabulary, biological enzyme vocabulary, and pathological reaction vocabulary.

[0070] Based on any of the above embodiments, in this embodiment, in order to use the MLM training samples to perform MLM training on the BERT model and obtain the PICO-BERT model, the following steps can be specifically performed:

[0071] Step S41: putting the BERT model into training mode;

[0072] Step S42: inputting the MLM training sample into the BERT model to obtain a trained BERT model;

[0073] Step S43: Determine the trained BERT model as the PICO-BERT model.

[0074] There are many pre-trained BERT models available, for different languages ​​and different model sizes. For the Chinese model, [Bert-Base, Chinese] can be used in the embodiment of the present invention, and of course other versions can also be selected. Then, the BERT model is placed in training mode, and the prepared MLM training samples are input. After the training is completed, the PICO-BERT model is obtained.

[0075] This embodiment integrates evidence-based medicine research knowledge into the pre-trained language model, and trains a PICO-BERT model that is more suitable for evidence-based medicine business scenarios, so that it can adapt to specific scenario requirements in the medical field. And through fine-tuning, PICO-BERT is implemented in multiple business scenarios to achieve better business results.

[0076] The embodiment of the present invention gives full play to the advantages of domain data, adds domain data to the trained PICO-BERT model to continue training for medical field adaptation, completes domain migration, and makes the model more suitable for solving natural language problems in the medical field. The embodiment of the present invention resets the pre-training tasks of the BERT model, not only simplifies the model and removes the NSP task, but also changes the single-word masking method in the MLM task to the entity masking method, thereby integrating the PICO entity information in the evidence-based medical knowledge graph during the pre-training process, further enhancing the overall semantic representation ability of the model, making the trained PICO-BERT model more capable of semantic understanding and more capable of processing natural language problems in complex scenarios in specific fields.

[0077] Please refer to Figure 5 , Figure 6 , Figure 5 A schematic diagram of the composition of a medical application model training device based on a BERT model is provided for an embodiment of the present invention; Figure 6 A schematic diagram of the composition of a sample processing module of a medical application model training device based on a BERT model is provided for an embodiment of the present invention.

[0078] The following describes a medical application model training device based on a BERT model provided in an embodiment of the present invention. The medical application model training device based on a BERT model described below and the medical application model training method based on a BERT model described above can refer to each other.

[0079] In another specific embodiment of the present invention, an embodiment of the present invention provides a medical application model training device 500 based on a BERT model, comprising:

[0080] A sample acquisition module 510 is used to acquire evidence-based medicine training samples;

[0081] A sample processing module 520 is used to perform entity vocabulary shielding on the evidence-based medicine training sample to obtain an MLM training sample;

[0082] A model training module 530 is used to perform MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model;

[0083] The entity vocabulary corresponds to entities with practical significance in evidence-based medicine.

[0084] Furthermore, the sample processing module 520 includes:

[0085] A word segmentation unit 521 is used to perform word segmentation on the evidence-based medicine training sample to obtain a word segmentation result;

[0086] An alignment unit 522, configured to align the word segmentation result with the PICO entity to obtain an alignment result;

[0087] A shielding unit 523 is used to shield the evidence-based medicine training sample using the entity vocabulary in the alignment result to obtain an MLM training sample;

[0088] Among them, the PICO entity is an entity with practical natural significance in evidence-based medicine.

[0089] The embodiment of the present invention provides a medical application model training method and device based on the BERT model. The BERT model is trained with MLM using evidence-based medicine training samples. During the training, the evidence-based medicine training samples are shielded with entity vocabulary to obtain MLM training samples. The MLM training samples obtained by shielding entity vocabulary are used to perform MLM training to obtain a PICO-BERT model, thereby enhancing the overall semantic representation ability of the model, so that the trained PICO-BERT model has stronger semantic understanding ability, stronger ability to process natural language problems in complex scenarios in specific fields, can be better applied in the medical field, and improve the ability to understand natural language in specific research scenarios in the medical field.

[0090] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute a medical application model training method based on a BERT model, the method comprising: obtaining evidence-based medicine training samples; performing entity vocabulary shielding on the evidence-based medicine training samples to obtain MLM training samples; performing MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model; wherein the entity vocabulary corresponds to entities with practical significance in evidence-based medicine.

[0091] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0092] On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the medical application model training method based on the BERT model provided in the above-mentioned embodiments, the method comprising: obtaining evidence-based medicine training samples; performing entity vocabulary shielding on the evidence-based medicine training samples to obtain MLM training samples; using the MLM training samples to perform MLM training on the BERT model to obtain a PICO-BERT model; wherein the entity vocabulary corresponds to entities with practical significance in evidence-based medicine.

[0093] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A medical application model training method based on the BERT model, characterized in that: include: Get samples of evidence-based medicine training; Performing entity vocabulary shielding on the evidence-based medicine training samples to obtain MLM training samples; Performing MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model; Wherein, the entity vocabulary corresponds to entities with practical significance in evidence-based medicine; The entity vocabulary shielding of the evidence-based medicine training samples to obtain the MLM training samples includes: Performing word segmentation on the evidence-based medicine training sample to obtain a word segmentation result; Aligning the word segmentation result with the PICO entity to obtain an alignment result; Using the entity vocabulary in the alignment result to shield the evidence-based medicine training sample to obtain the MLM training sample; The PICO entity is an entity with actual natural meaning in evidence-based medicine, and the PICO entity includes: object of the problem, intervention measures, alternative measures, and results.

2. The medical application model training method based on the BERT model according to claim 1, characterized in that: The acquisition of evidence-based medicine training samples includes: Access to medical literature; Extracting PICO entities from the medical literature; The PICO entity in each medical document is identified as an evidence-based medicine training sample.

3. The medical application model training method based on the BERT model according to claim 1, characterized in that: The entity vocabulary includes at least one of the following: disease category vocabulary, drug vocabulary, biological enzyme vocabulary, and pathological reaction vocabulary.

4. The medical application model training method based on the BERT model according to claim 1, characterized in that: The method of performing MLM training on the BERT model using the MLM training sample to obtain the PICO-BERT model includes: Put the BERT model into training mode; Inputting the MLM training sample into the BERT model to obtain a trained BERT model; The trained BERT model is identified as the PICO-BERT model.

5. The medical application model training method based on the BERT model according to any one of claims 1 to 4, characterized in that: Delete the NSP training task in the PICO-BERT model.

6. A medical application model training device based on the BERT model, characterized in that: include: A sample acquisition module is used to obtain samples for evidence-based medicine training; A sample processing module, used for performing entity vocabulary shielding on the evidence-based medicine training sample to obtain an MLM training sample; A model training module, used to perform MLM training on the BERT model using the MLM training samples to obtain a PICO-BERT model; Wherein, the entity vocabulary corresponds to entities with practical significance in evidence-based medicine; The sample processing module comprises: A word segmentation unit, used for performing word segmentation on the evidence-based medicine training sample to obtain a word segmentation result; An alignment unit, used to align the word segmentation result with the PICO entity to obtain an alignment result; A shielding unit, used for shielding the evidence-based medicine training sample using the entity vocabulary in the alignment result to obtain an MLM training sample; The PICO entity is an entity with actual natural meaning in evidence-based medicine, and the PICO entity includes: object of the problem, intervention measures, alternative measures, and results.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the medical application model training method based on the BERT model as described in any one of claims 1 to 5 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the medical application model training method based on the BERT model as described in any one of claims 1 to 5 are implemented.