A system for obtaining labels corresponding to medical record text
By performing multi-angle processing and model analysis on the medical record text list, the corresponding tags of medical record text are obtained, which solves the problems of low efficiency and low accuracy in the existing technology, and achieves efficient and accurate tag acquisition.
Patent Information
- Application Number
- CN202410558516.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-05-08
AI Technical Summary
The prior art is inefficient and inaccurate when acquiring corresponding tags of medical record text, and fails to analyze medical record text from multiple perspectives.
By obtaining the target medical record text list and processing the list in two different ways, the corresponding first target tag list and second target tag list are obtained. When the two are consistent, the tag is directly obtained; when the tag is inconsistent, the candidate tag is obtained through the sample medical record text set and model processing, and the target tag is determined based on priority.
The efficiency and accuracy of obtaining corresponding tags for medical record text is improved, and the accuracy and consistency of tags are ensured through multi-angle analysis and model processing.
Smart Images

Figure CN118377904B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of text processing, and in particular to a system for obtaining labels corresponding to medical record texts. Background Art
[0002] At present, with the increase in the number of patients, management models such as the development of disease pathways have become a popular research method. By determining the operation pathways corresponding to the diseases, the complexity of monitoring work can be reduced, work efficiency can be improved, and "same disease, same living" can be achieved as much as possible. However, before obtaining the disease pathway, it is necessary to obtain the corresponding operation information from the medical record text. How to efficiently and accurately obtain the corresponding labels from the medical record text has become a hot research direction.
[0003] In the prior art, the method for determining the corresponding label of medical record text is: obtaining medical record text, dividing the medical record text into several texts with the number of characters lower than a preset threshold, clustering the split texts, and annotating each type of medical record text after clustering using a trained model, thereby obtaining the corresponding label of the medical record text. In summary, different methods are not used to obtain the corresponding label of the medical record text, and the medical record text is not analyzed from multiple angles to obtain the corresponding label, which reduces the efficiency of obtaining the corresponding label of the medical record text, resulting in low accuracy of the obtained corresponding label of the medical record text. Summary of the invention
[0004] In view of the above technical problems, the technical solution adopted by the present invention is: a system for obtaining labels corresponding to medical record texts, the system comprising: a processor and a memory storing a computer program, when the computer program is executed by the processor, the following steps are implemented:
[0005] S100, obtaining a target medical record text list L = {L1, ..., L g , ..., L h}, L g is the g-th target medical record text, g=1…h, h is the number of target medical record texts.
[0006] S200, processing L in a first manner to obtain a first target tag list L corresponding to L 1 ={L 1 1, ..., L 1 g , ..., L 1 h}, L 1 g For L g The corresponding first target label.
[0007] S300, processing L in a second manner to obtain a second target tag list L corresponding to L 2 ={L2 1, ..., L 2 g , ..., L 2 h}, L 2 g For L g The corresponding second target label.
[0008] S400, when L 1 g With L 2 g When consistent, obtain L 1 g For L g The corresponding target label.
[0009] S500, when L 1 g With L 2 g If inconsistent, obtain L g The corresponding target tag, wherein L is obtained in S500 through the following steps g The corresponding target label:
[0010] S501, obtain a sample medical record text set DK = {DK1, ..., DK ε , ..., DK z}, DK ε is the εth sample medical record text, ε=1…z, z is the number of sample medical record texts.
[0011] S502, process DK using the first method to obtain a sample label list set corresponding to DK, wherein the sample label list set includes a plurality of sample label lists, the sample label list includes a plurality of sample labels, and each sample medical record text corresponds to a sample label list.
[0012] S503, obtain L g The corresponding candidate label pair GL g =(L 1 g-1 , L 1 g ), where L 1 g-1 For L g-1 The corresponding first target label.
[0013] S504, obtain GL according to the sample label list set g Corresponding key priority FL g , where FL g Meet the following conditions:
[0014] FLg =GL 0 g / z,GL 0 g Include GL in the sample label list set g The number of sample label lists.
[0015] S505, when FL g ≥FL 0 When L 1 g For L g The corresponding target label, FL 0 is the preset critical priority threshold.
[0016] S506, when FL g <FL 0 When L 2 g For L g The corresponding target label.
[0017] Compared with the prior art, the present invention has obvious beneficial effects. By means of the above technical solution, the system for obtaining the corresponding labels of medical record text provided by the present invention can achieve considerable technical progress and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:
[0018] The present invention is a system for obtaining labels corresponding to medical record texts. The system includes: a processor and a memory storing a computer program. When the computer program is executed by the processor, the following steps are implemented: obtaining a target medical record text list, processing the target medical record text list in a first manner, obtaining a first target label list corresponding to the target medical record text list, processing the target medical record text list in a second manner, obtaining a second target label list corresponding to the target medical record text list, when the first target label and the second target label are consistent, obtaining the first target label as the target label, when the first target label and the second target label are inconsistent, obtaining a sample medical record text set, processing the sample medical record text set in the first manner Processing, obtain a sample label list set corresponding to the sample medical record text set, obtain the candidate label pair corresponding to the target medical record text, obtain the key priority corresponding to the candidate label pair according to the sample label list set, and obtain the target label according to the key priority. This embodiment adopts different methods to obtain the label corresponding to the medical record text, and uses the characteristics of the model and text to process the medical record text to obtain the corresponding label, which improves the efficiency of obtaining the corresponding label of the medical record text. When the obtained labels are inconsistent, the model is used to process the text connected before and after the medical record text to obtain several label pairs. Based on the priority of the label pair, different methods are used to obtain the target label, so that the accuracy of the obtained medical record text corresponding label is higher.
[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of an execution computer program of a system for obtaining labels corresponding to medical record texts provided in Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0023] Embodiment 1
[0024] This embodiment provides a system for obtaining labels corresponding to medical record texts, the system comprising: a processor and a memory storing a computer program, when the computer program is executed by the processor, the following steps are implemented, such as: Figure 1 As shown:
[0025] S100, obtaining a target medical record text list L = {L1, ..., L g , ..., L h}, L g is the g-th target medical record text, g=1…h, h is the number of target medical record texts.
[0026] Specifically, the target medical record text is the medical record text obtained by splitting the medical record text of the to-be-acquired label according to a preset separator.
[0027] S200, processing L in a first manner to obtain a first target tag list L corresponding to L 1 ={L 1 1, ..., L 1 g , ..., L 1 h}, L 1 g For L g The corresponding first target label.
[0028] Specifically, the system also includes a preset tag list, which includes several preset tags. The preset tags are words corresponding to process nodes in the process of treating the user's body that has caused the disease, such as neck examination, blood routine examination, biochemical examination and other preset tags.
[0029] Further, in S200, L is obtained by the following steps: 1 g :
[0030] S201, obtaining a target model according to a preset tag list.
[0031] Specifically, in S201, the target model is obtained through the following steps:
[0032] S2011. Obtain a first sample medical record text set according to a preset label list, wherein the first sample medical record text set includes a plurality of first sample medical record text lists, each preset label corresponds to a first sample medical record text list, the first sample medical record text list includes a plurality of first sample medical record texts, and the first sample medical record text is a medical record text marked with a preset label.
[0033] Specifically, the first sample medical record text is obtained by obtaining the medical record text from a database and marking the obtained medical record text with a corresponding preset label.
[0034] Furthermore, those skilled in the art know that any database in the prior art that can obtain medical record texts falls within the protection scope of the present invention and will not be described in detail here, such as a public medical database.
[0035] S2012, based on the first sample medical record text set, obtain an intermediate model and a target parameter η corresponding to the intermediate model, wherein the intermediate model is a model obtained by inputting the first sample medical record text set as a training set into a preset model for training.
[0036] Specifically, the value range of η is 0.9 to 0.99, wherein those skilled in the art know that η can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.
[0037] Specifically, those skilled in the art know that any method for model training in the prior art falls within the protection scope of the present invention and will not be described in detail here, for example: neural network model, LLM model and other preset models.
[0038] S2013, according to the intermediate model, obtain the first candidate label list C corresponding to the second sample medical record text list = {C1, ..., C j , ..., C m} and the first candidate priority list C corresponding to C 0 ={C 0 1, ..., C 0 j , ..., C 0 m}, C j is the first candidate label corresponding to the jth second sample medical record text, C 0 j C j The corresponding first candidate priority.
[0039] Specifically, the second sample medical record text list includes a plurality of second sample medical record texts, wherein the second sample medical record texts are texts obtained by splitting the medical record texts obtained from the database and excluding preset tags.
[0040] Furthermore, the splitting method is splitting by periods or by verbs, which can be understood as: obtaining a long medical record text from a database, splitting the obtained medical record text into short texts one by one according to periods or verbs, and the second sample medical record text is short texts one by one.
[0041] Specifically, the first candidate label is a preset label corresponding to each second sample medical record text obtained by inputting the second sample medical record text set into the intermediate model.
[0042] Furthermore, the first candidate priority is the degree to which the first candidate label corresponding to each second sample medical record text obtained by inputting the second sample medical record text set into the intermediate model matches the preset label in the preset label list.
[0043] S2014, according to C 0 and η, obtain the first specified priority λ 1 , where the first specified priority λ 1 Meet the following conditions:
[0044] λ 1 =λ 0 / m,λ 0 C 0 The number of first candidate priorities that is not less than η.
[0045] S2015, when λ 1 <F 0 When , η = η - η0, and S2 to S4 are repeatedly executed until the preset cycle cutoff condition is met, wherein the preset cycle cutoff condition is: λ 1 ≥F 0 , η0 is the preset parameter threshold, F 0 is the preset priority threshold.
[0046] Specifically, the value range of η0 is 0.01 to 0.1, wherein those skilled in the art know that η0 can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.
[0047] Specifically, the value range of F0 is 0.8 to 0.9, wherein those skilled in the art know that F0 can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.
[0048] S2016, when λ 1 ≥F 0 , obtain the target model, wherein the target model is an intermediate model with a target parameter of η.
[0049] In the above, based on the first sample medical record text set, the intermediate model is trained, and the model parameters are adjusted using the second sample medical record text set until the preset loop cutoff condition is met. Training and proofreading are performed through different sample data, and the model parameters are continuously adjusted, so that the accuracy of the target model obtained is higher, and thus the accuracy of the target labels obtained subsequently is higher.
[0050] S203, L g Input into the target model to obtain L g The corresponding candidate label list P g = {P g1 , ..., P gd , ..., P gv(g)} and P g The corresponding candidate matching list set Q g = {Q g1 , ..., Q gd , ..., Q gv(g)}, P gd For L g The corresponding d-th candidate label, Q gd Pgd The corresponding candidate matching degree, d = 1...v(g), v(g) is L g The number of candidate tags in the corresponding candidate tag list, wherein the candidate tags are preset tags obtained from the preset tag list based on the target model and matched with the target medical record text, and the candidate matching degree is the degree of matching between the target medical record text obtained based on the target model and the preset tags.
[0051] S205, when Q gd Q g The largest candidate matching degree in L g The corresponding first target label L 1 g P gd .
[0052] S300, processing L in a second manner to obtain a second target tag list L corresponding to L 2 ={L 2 1, ..., L 2 g , ..., L 2 h}, L 2 g For L g The corresponding second target label.
[0053] Specifically, in S300, L is obtained by the following steps: 2 g :
[0054] S301, obtain the target medical record text cluster list H = {H1, ..., H ω , ..., H ψ}, H ω is the ωth target medical record text cluster, ω=1…ψ, ψ is the number of target medical record text clusters.
[0055] Specifically, in S301, H is obtained through the following steps:
[0056] S11, obtain the sample medical record text vector set Y = {Y1, ..., Y ε , ..., Y z},Y ε is the th sample medical record text vector, ε=1…z, z is the number of sample medical record text vectors.
[0057] Specifically, the sample medical record text vector is a text vector obtained by inputting the sample medical record text into a preset natural language processing model. Those skilled in the art know that any method in the prior art for converting text into a vector through a natural language processing model falls within the scope of protection of the present invention and will not be repeated here.
[0058] Furthermore, the sample medical record text is a medical record text obtained from a database.
[0059] S12, obtain the preferred medical record text vector list set G = {G1, ..., G t , ..., G k1}, G t is the tth preferred medical record text vector list, t=1...k1, k1 is the number of preferred medical record text vector lists.
[0060] Specifically, the preferred medical record text vector list includes several preferred medical record text vectors.
[0061] Furthermore, the preferred medical record text vector is a text vector randomly obtained from Y.
[0062] Specifically, the initial preferred medical record text vector list includes only one preferred medical record text vector.
[0063] S13, according to Y and G, obtain the first similarity list set W corresponding to Y 1 = {W 1 1, ..., W 1 ε , ..., W 1 z},W 1 ε = {W 1 ε1 , ..., W 1 εt , ..., W 1 εk1},W 1 εt Y ε With G t A first similarity between them; those skilled in the art know that any method for obtaining the similarity between vectors in the prior art belongs to the protection scope of the present invention and will not be described in detail here, such as a method for obtaining the first similarity such as a cosine similarity method.
[0064] S14, based on W 1 , get the first intermediate medical record text vector cluster list J 1 ={J 1 1, ..., J 1 t , ..., J1 k1}, wherein, in S14, J is obtained by the following steps 1 t :
[0065] S141, when W 1 ε W 1 When the first similarity is the smallest, Y ε Insert to G t middle;
[0066] S143, according to G t , get the first center point vector list G corresponding to G 1 = {G 1 1, ..., G 1 t , ..., G 1 k1}, G 1 t G t The corresponding first center point vector.
[0067] Specifically, those skilled in the art know that any method for obtaining multiple vector center points in the prior art falls within the protection scope of the present invention and will not be described in detail herein, such as a method for obtaining the first center point vector such as obtaining an average vector.
[0068] S145, repeat steps S141 to S143 to obtain J 1 t .
[0069] S15, repeating steps S12 to S14 to obtain the second intermediate medical record text vector cluster J = {J 1 , ..., J α , ..., J β}, J α ={J α 1, ..., J α c , ..., J α kα},J α c is the cth second intermediate medical record text vector cluster in the αth second intermediate medical record text vector cluster list, c=1…kα, kα is the number of second intermediate medical record text vector clusters in the αth second intermediate medical record text vector cluster list, α=1…β, β is the number of second intermediate medical record text vector clusters.
[0070] S16, according to J, obtain H, wherein in step S16, H is obtained by the following steps:
[0071] S161, Get J α c The first specified medical record text vector KJ α c and J α c The corresponding second specified medical record text vector list LJ α c ={LJ α c1 , ..., LJ α cμ , ..., LJ α cζ}, L.J. α cμ For J α c The corresponding μth second designated medical record text vector, μ=1…ζ, ζ is the number of second designated medical record text vectors.
[0072] Specifically, the first specified medical record text vector is J α c Any second intermediate medical record text vector.
[0073] Furthermore, the second specified medical record text vector is J α c Any second intermediate medical record text vector except the first specified medical record text vector.
[0074] S162, Get J α c The corresponding third specified medical record text vector list EJ α ={EJ α c1 , ..., E. J. α cσ , ..., E. J. α cρ}, E.J. α cσ For J α c The corresponding σth third designated medical record text vector, σ=1…ρ, ρ is the number of third designated medical record text vectors.
[0075] Specifically, the third specified medical record text vector is J α J α c Any second intermediate medical record text vector in any other second intermediate medical record text vector cluster.
[0076] S163, according to KJ α c and LJ αc , get the first specified similarity list FJ α c ={FJ α c1 , ..., FJ α cμ , ..., FJ α cζ}, where FJ α cμ For KJ α c and LJ α cμ The similarity between .
[0077] Specifically, the method for obtaining the first specified similarity is consistent with the method for obtaining the first similarity.
[0078] S164, according to KJ α c and E.J. α , get the second specified similarity list BJ α = {BJ α c1 , ..., B.J. α cσ , ..., B.J. α cρ}, where BJ α cσ For KJ α c and E.J. α σ The similarity between .
[0079] Specifically, the method for obtaining the second specified similarity is consistent with the method for obtaining the first specified similarity.
[0080] S165, when FRJ α c is the minimum value and FTJ α c When J is the maximum value, α The corresponding second intermediate medical record text vector cluster list is H, where FRJ α c =(FJ α c1 +……+FJ α cμ +……+FJ α cζ ) / ζ, FTJ α =(BJ α c1 +…+BJ α cσ+…+BJ α cρ ) / ρ.
[0081] Specifically, kα=k1+α.
[0082] In the above, the medical record text is clustered, and different methods are used for the initial clustering to obtain the clustering method with the smallest intra-cluster distance and the largest extra-cluster distance and the clustered medical record text, thereby improving the accuracy of obtaining the medical record text cluster.
[0083] S303, obtain the target keyword list set DH corresponding to H = {DH1, ..., DH ω , ..., DH ψ}, DH ω H ω Corresponding target keyword list.
[0084] Specifically, the target keyword list includes several target keywords, and the target keywords are keywords obtained from the target medical record text cluster. Those skilled in the art know that any method of obtaining keywords from text in the prior art falls within the protection scope of the present invention and will not be repeated here, for example: methods for obtaining keywords such as TF-IDF algorithm.
[0085] S305, according to DH and H, obtain the specified label list SH corresponding to H = {SH1, ..., SH ω ,……,SH ψ}, SH ω H ω The corresponding designated tag, wherein in S305, SH is obtained by the following steps ω :
[0086] S3051, according to H ω and DH ω , get H ω The corresponding target text H 0 ω ={DH ω , H ω}.
[0087] S3053, according to H 0 ω , get SH ω , among which, SH ω To H 0 ω Input the preset labels obtained in the target model.
[0088] S307, according to H, obtain L g The corresponding target similarity list HL g ={HLg1 , ..., HL gω , ..., HL gψ}, HL gω For L g The corresponding vector and H ω The similarity between corresponding vectors.
[0089] S309, when HL gω HL g When the target similarity is the largest, obtain L 2 g SH ω .
[0090] S400, when L 1 g With L 2 g When consistent, obtain L 1 g For L g The corresponding target label.
[0091] S500, when L 1 g With L 2 g If inconsistent, obtain L g The corresponding target tag, wherein L is obtained in S500 through the following steps g The corresponding target label:
[0092] S501, obtain a sample medical record text set DK = {DK1, ..., DK ε , ..., DK z}, DK ε is the εth sample medical record text, ε=1…z, z is the number of sample medical record texts.
[0093] Specifically, the sample medical record text is a medical record text obtained from a database.
[0094] Furthermore, those skilled in the art know that any database in the prior art that can obtain medical record texts falls within the protection scope of the present invention and will not be described in detail here, such as a public medical database.
[0095] S502, process DK using the first method to obtain a sample label list set corresponding to DK, wherein the sample label list set includes a plurality of sample label lists, the sample label list includes a plurality of sample labels, and each sample medical record text corresponds to a sample label list.
[0096] Specifically, the method for acquiring the sample label is consistent with the method for acquiring the first target label.
[0097] S503, obtain L g The corresponding candidate label pair GL g =(L 1 g-1 , L 1 g ), where L 1 g-1 For L g-1 The corresponding first target label.
[0098] S504, obtain GL according to the sample label list set g Corresponding key priority FL g , where FL g Meet the following conditions:
[0099] FL g =GL 0 g / z,GL 0 g Include GL in the sample label list set g The number of sample label lists.
[0100] S505, when FL g ≥FL 0 When L 1 g For L g The corresponding target label, FL 0 is the preset critical priority threshold.
[0101] Specifically, FL 0 The value range of FL is 0.5 to 0.6. Those skilled in the art know that FL can be adjusted according to actual needs. 0 The selection of all falls within the protection scope of the present invention and will not be repeated here.
[0102] S506, when FL g <FL 0 When L 2 g For L g The corresponding target label.
[0103] In the above, different methods are used to obtain the labels corresponding to the medical record text, and the characteristics of the model and the text are used to process the medical record text to obtain the corresponding labels, which improves the efficiency of obtaining the corresponding labels of the medical record text. When the obtained labels are inconsistent, the model is used to process the text connected before and after the medical record text to obtain several label pairs, and different methods are used based on the priority of the label pair to obtain the target label, so that the accuracy of the obtained medical record text corresponding labels is higher.
[0104] The present embodiment provides a system for obtaining labels corresponding to medical record texts, the system comprising: a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented: obtaining a target medical record text list, processing the target medical record text list in a first manner, obtaining a first target label list corresponding to the target medical record text list, processing the target medical record text list in a second manner, obtaining a second target label list corresponding to the target medical record text list, when the first target label and the second target label are consistent, obtaining the first target label as the target label, when the first target label and the second target label are inconsistent, obtaining a sample medical record text set, processing the sample medical record text set in the first manner The sample label list set corresponding to the sample medical record text set is obtained, and the candidate label pair corresponding to the target medical record text is obtained. According to the sample label list set, the key priority corresponding to the candidate label pair is obtained. According to the key priority, the target label is obtained. This embodiment adopts different methods to obtain the label corresponding to the medical record text, and uses the characteristics of the model and the text to process the medical record text to obtain the corresponding label, which improves the efficiency of obtaining the corresponding label of the medical record text. When the obtained labels are inconsistent, the model is used to process the text connected before and after the medical record text to obtain several label pairs. Based on the priority of the label pair, different methods are used to obtain the target label, so that the accuracy of the obtained medical record text corresponding label is higher.
[0105] Embodiment 2
[0106] This embodiment provides a system for obtaining labels corresponding to medical record texts, the system comprising: a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented:
[0107] S100, obtaining a target medical record text list L = {L1, ..., L g , ..., L h}, L g is the g-th target medical record text, g=1…h, h is the number of target medical record texts, wherein the target medical record text is the medical record text obtained by splitting the medical record text of the label to be obtained according to the preset delimiter.
[0108] Specifically, those skilled in the art know that the preset delimiters can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here, such as the preset delimiters such as period, semicolon, verb, etc.
[0109] S200, according to L, obtain the first target tag list L corresponding to L 1 ={L 1 1, ..., L 1 g , ..., L 1h}, L 1 g For L g The corresponding first target label.
[0110] Specifically, the method for acquiring the first target tag is consistent with the method for acquiring the first target tag in the first embodiment, and can refer to steps S201 to S205 in the first embodiment.
[0111] S300, according to L, obtain a second target tag list L corresponding to L 2 ={L 2 1, ..., L 2 g , ..., L 2 h}, L 2 g For L g The corresponding second target label.
[0112] Specifically, the method for acquiring the second target tag is consistent with the method for acquiring the second target tag in the first embodiment, and reference may be made to steps S301 to S309 in the first embodiment.
[0113] S400, when L 1 g With L 2 g When consistent, obtain L 1 g For L g The corresponding target label.
[0114] S500, when L 1 g With L 2 g If inconsistent, obtain L g The corresponding target priority L 0 g .
[0115] Specifically, in S500, L is obtained by the following steps: 0 g :
[0116] S501, obtain L g The corresponding candidate label list P g = {P g1 , ..., P gd , ..., P gv(g)} and P g The corresponding candidate matching list Q g = {Q g1 , ..., Q gd , ..., Q gv(g)}, P gd For L g The corresponding candidate label in the candidate label list is the dth candidate label, Q gdw P gd The corresponding candidate matching degree, d = 1...v(g), v(g) is L g The number of candidate tags in the corresponding candidate tag list, wherein the candidate tags are preset tags that match the target medical record text and are obtained from the preset tag list based on the target model, and the candidate matching degree is the degree of matching between the target medical record text obtained based on the target model and the preset tags.
[0117] S503, according to P g and Q g , get L g The corresponding target priority L 0 g , where L 0 g Meet the following conditions:
[0118]
[0119] S505, when L 0 g ≥E 0 When L 1 g For L g The corresponding target label, where E 0 is the preset target priority threshold.
[0120] S507, when L 0 g <E 0 When L 2 g For L g The corresponding target label.
[0121] As mentioned above, the model is used to obtain the labels corresponding to the medical record text, and the model is continuously adjusted based on the model output results, which reduces the cost of obtaining labels and improves the efficiency of obtaining labels corresponding to the medical record text. At the same time, the target labels are obtained from two perspectives, namely the model and text characteristics, and different methods are used based on the consistency and inconsistency of the labels, so that the accuracy of the obtained labels corresponding to the medical record text is higher.
[0122] The present embodiment provides a system for obtaining labels corresponding to medical record texts, the system comprising: a processor and a memory storing a computer program, when the computer program is executed by the processor, the following steps are implemented: obtaining a target medical record text list, obtaining a first target label list corresponding to the target medical record text list according to the target medical record text list, obtaining a second target label list corresponding to the target medical record text list according to the target medical record text list, and using different methods based on the consistency and inconsistency of the labels to obtain target labels corresponding to the target medical record texts. The present embodiment uses a model to obtain labels corresponding to medical record texts, and continuously adjusts the model based on the output results of the model, thereby reducing the cost of obtaining labels and improving the efficiency of obtaining labels corresponding to medical record texts. At the same time, target labels are obtained from two perspectives, namely, model and text characteristics, and different methods are used based on the consistency and inconsistency of the labels, so that the accuracy of the obtained labels corresponding to the medical record texts is higher.
[0123] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A system for obtaining labels corresponding to medical record texts, characterized in that: The system comprises: a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented: S100, obtain the target medical record text list L={L1, ..., L g , ..., L h }, L g is the g-th target medical record text, g=1…h, h is the number of target medical record texts; S200, processing L in a first manner to obtain a first target tag list L corresponding to L 1 ={L 1 1, ..., L 1 g , ..., L 1 h }, L 1 g For L g The corresponding first target tag, wherein L is obtained in S200 by the following steps 1 g : S201, obtaining a target model according to a preset tag list, wherein the target model is obtained in S201 through the following steps: S2011, obtaining a first sample medical record text set according to a preset label list, wherein the first sample medical record text set includes a plurality of first sample medical record text lists, each preset label corresponds to a first sample medical record text list, the first sample medical record text list includes a plurality of first sample medical record texts, and the first sample medical record texts are medical record texts marked with preset labels; S2012, according to the first sample medical record text set, obtaining an intermediate model and a target parameter η corresponding to the intermediate model, wherein the intermediate model is a model obtained by inputting the first sample medical record text set as a training set into a preset model for training; S2013, according to the intermediate model, obtain the first candidate label list C={C1, ..., C j , ..., C m } and the first candidate priority list C corresponding to C 0 ={C 0 1, ..., C 0 j , ..., C 0 m }, C j is the first candidate label corresponding to the jth second sample medical record text, C 0 j C j The corresponding first candidate priority; S2014, according to C 0 and η, obtain the first specified priority λ 1 , where the first specified priority λ 1 Meet the following conditions: λ 1 =λ 0 / m,λ 0 C 0 The number of first candidate priorities that is not less than η in ; S2015, when λ 1 <F 0 When , η = η - η0, and S2 to S4 are repeatedly executed until the preset cycle cutoff condition is met, wherein the preset cycle cutoff condition is: λ 1 ≥F 0 , η0 is the preset parameter threshold, F 0 is a preset priority threshold; S2016, when λ 1 ≥F 0 , obtaining a target model, wherein the target model is an intermediate model with a target parameter of η; S203, L g Input into the target model to obtain L g The corresponding candidate label list P g ={P g1 , ..., P gd , ..., P gv(g) } and P g The corresponding candidate matching list set Q g ={Q g1 , ..., Q gd , ..., Q gv(g) }, P gd For L g The corresponding d-th candidate label, Q gd P gd The corresponding candidate matching degree, d=1...v(g), v(g) is L g The number of candidate tags in the corresponding candidate tag list, wherein the candidate tags are preset tags obtained from the preset tag list based on the target model and matched with the target medical record text, and the candidate matching degree is the matching degree between the target medical record text obtained based on the target model and the preset tags; S205, when Q gd Q g The largest candidate matching degree in L g The corresponding first target label L 1 g P gd ; S300, processing L in a second manner to obtain a second target tag list L corresponding to L 2 ={L 2 1, ..., L 2 g , ..., L 2 h }, L 2 g For L g The corresponding second target tag, wherein L is obtained in S300 by the following steps 2 g : S301, obtain the target medical record text cluster list H={H1, ..., H ω , ..., H ψ }, H ω is the ωth target medical record text cluster, ω=1…ψ, ψ is the number of target medical record text clusters; S303, obtain the target keyword list DH corresponding to H = {DH1, ..., DH ω , ..., DH ψ }, DH ω H ω Corresponding target keywords; S305, according to DH and H, obtain the specified label list SH corresponding to H = {SH1, ..., SH ω ,……,SH ψ }, SH ω H ω The corresponding designated tag, wherein in S305, SH is obtained by the following steps ω : S3051, according to H ω and DH ω , get H ω The corresponding target text H 0 ω ={DH ω , H ω }; S3053, according to H 0 ω , get SH ω , among which, SH ω To H 0 ω Input the preset labels obtained in the target model; S307, according to H, obtain L g The corresponding target similarity list HL g ={HL g1 , ..., HL gω , ..., HL gψ }, HL gω For L g The corresponding vector and H ω The similarity between corresponding vectors; S309, when HL gω HL g When the target similarity is the largest, obtain L 2 g SH ω ; S400, when L 1 g With L 2 g When consistent, obtain L 1 g For L g The corresponding target label; S500, when L 1 g With L 2 g If inconsistent, obtain L g The corresponding target tag, wherein L is obtained in S500 through the following steps g The corresponding target label: S501, obtain a sample medical record text set DK = {DK1, ..., DK ε , ..., DK z }, DK ε is the εth sample medical record text, ε=1…z, z is the number of sample medical record texts; S502, processing DK in the first manner to obtain a sample label list set corresponding to DK, wherein the sample label list set includes a plurality of sample label lists, the sample label list includes a plurality of sample labels, and each sample medical record text corresponds to a sample label list; S503, obtain L g The corresponding candidate label pair GL g =(L 1 g-1 , L 1 g ), where L 1 g-1 For L g-1 The corresponding first target label; S504, obtain GL according to the sample label list set g Corresponding key priority FL g , where FL g Meet the following conditions: FL g =GL 0 g / z,GL 0 g Include GL in the sample label list set g The number of sample label lists; S505, when FL g ≥FL 0 When L 1 g For L g The corresponding target label, FL 0 is the preset critical priority threshold; S506, when FL g <FL 0 When L 2 g For L g The corresponding target label.
2. The system for obtaining labels corresponding to medical record text according to claim 1, characterized in that: The target medical record text is the medical record text obtained by splitting the medical record text of the label to be obtained according to a preset separator.
3. The system for obtaining labels corresponding to medical record texts according to claim 1, characterized in that: The system also includes a preset tag list, which includes a number of preset tags. The preset tags are words corresponding to process nodes in the process of treating the user's body that has developed a disease.
4. The system for obtaining labels corresponding to medical record texts according to claim 1, characterized in that: The value range of η0 is 0.01~0.1.
Citation Information
Patent Citations
Semantic tag determination model construction method and medical record analysis method
CN113903420A
Data processing system for acquiring APP tag
CN115659226A