Data correlation analysis method, device, electronic terminal and storage medium
By generating a vector library through the data steering vector model, the problem of inaccurate determination of disease and drug correlation in drug claim applications is solved, and a higher determination accuracy is achieved.
Patent Information
- Application Number
- CN202110702825.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-06-24
AI Technical Summary
When processing drug claim applications, the existing technology results in inaccurate determination of the correlation between diseases and drugs due to the large variety of drugs and difficulty in fully covering historical medical treatment information.
Use the data steering vector model to generate a vector library, and use the vector library to reversely deduce the correlation between drug data and disease data to improve the accuracy of judgment.
It improves the accuracy of correlation judgment between disease data and drug data, can handle drug data not covered in historical medical treatment information, and enhances the accuracy of judgment.
Smart Images

Figure CN113420118B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to computer technology, and in particular, to a method, device, electronic terminal and storage medium for analyzing data correlation. Background Art
[0002] When processing medical insurance claims, one of the major categories is the claim processing for drugs, that is, the claim for the insured's drug expenses. In the process of processing drug claims, the claims adjuster needs to confirm whether the drug applied for is suitable for the disease covered by the insurance product, and eliminate unreasonable drug application items. Therefore, it is very important to determine whether there is compatibility between the disease and the drug (that is, to determine whether the drug can be used to treat the disease).
[0003] Commonly used methods in the prior art include: collecting statistics on historical medical information in each hospital database, where each piece of historical medical information may include disease data and drug data for treating the disease; and determining whether there is compatibility between the disease and the drug based on the statistical results.
[0004] The defects of the existing technology include at least the following: due to the wide variety of drugs and the launch of many new drugs every year, it is difficult to fully cover all drugs for treating a certain disease in historical medical information, which will lead to inaccurate judgment results. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a data correlation analysis method, device, electronic terminal and storage medium, which can improve the accuracy of determining the correlation between disease data and drug data.
[0006] In a first aspect, an embodiment of the present invention provides a method for analyzing data correlation, comprising:
[0007] Acquire first data and second data related to the first data;
[0008] Based on a preset data turning volume model, encoding is performed according to the first data and the second data to generate a vector library; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and a distance between the first vector and the second vector is less than a preset threshold;
[0009] Acquire first target data and second target data, and determine a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to the vector library;
[0010] Whether the first target data and the second target data are correlated is determined according to the distance between the first target vector and the second target vector.
[0011] In a second aspect, an embodiment of the present invention further provides a data correlation analysis device, comprising:
[0012] A data acquisition module, used for acquiring first data and second data related to the first data;
[0013] A vector library generation module, configured to generate a vector library by encoding the first data and the second data based on a preset data turning volume model; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and a distance between the first vector and the second vector is less than a preset threshold;
[0014] a target vector determination module, used for acquiring first target data and second target data, and determining a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to the vector library;
[0015] The correlation determination module is used to determine whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector.
[0016] In a third aspect, an embodiment of the present invention further provides an electronic terminal, 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, a method for analyzing data correlation as provided in any embodiment of the present invention is implemented.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a method for analyzing data correlation as provided in any embodiment of the present invention.
[0018] An embodiment of the present invention provides a method, device, electronic terminal and storage medium for analyzing data correlation, wherein the method for analyzing data correlation obtains first data and second data related to the first data; based on a preset data conversion model, encodes the first data and the second data to generate a vector library; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and the distance between the first vector and the second vector is less than a preset threshold; obtains first target data and second target data, and determines a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to the vector library; and determines whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector.
[0019] By using the data steering model to learn the correlation between the first data and the second data, the first vector and the second vector with a small distance can be encoded based on the model to generate a vector library. Furthermore, based on the vector library, the first target vector and the second target vector corresponding to the first target data and the second target data can be generated respectively, and the correlation between the first target data and the second target data can be reversely derived through the distance between the first target vector and the second target vector.
[0020] This method can be applied to determine the correlation between disease data and drug data, so that when drug data is not covered in historical medical information, the vector corresponding to the drug data can still be reversely deduced based on the vector library, and then the correlation between the disease data and the drug data can be determined based on the distance between the vector corresponding to the disease data and the vector corresponding to the drug data. Compared with traditional methods, the accuracy of determining the correlation between disease data and drug data is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flowchart of a method for analyzing data correlation provided by the first embodiment of the present invention;
[0022] Figure 2 It is a schematic diagram of a knowledge graph in a method for analyzing data correlation provided in Embodiment 2 of the present invention;
[0023] Figure 3 It is a flow chart of determining the correlation between disease data and drug data in a data correlation analysis method provided in the second embodiment of the present invention;
[0024] Figure 4 It is a structural schematic diagram of a data correlation analysis device provided in Embodiment 3 of the present invention;
[0025] Figure 5 It is a structural schematic diagram of an electronic terminal provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through implementation methods with reference to 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 in 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. In the following embodiments, each embodiment provides optional features and examples at the same time. The various features recorded in the embodiments can be combined to form multiple optional solutions. Each numbered embodiment should not be regarded as only one technical solution.
[0027] Embodiment 1
[0028] Figure 1 This is a flow chart of a data correlation analysis method provided in the first embodiment of the present invention. This embodiment can be applied to situations where data correlation is to be judged, for example, situations where the correlation between disease data and drug data is to be judged. The method can be executed by a data correlation analysis device provided in an embodiment of the present invention, which can be implemented in software and / or hardware, and the management device can be configured in an electronic terminal provided in an embodiment of the present invention, for example, it can be configured in a server.
[0029] See also Figure 1 The data correlation analysis method provided in this embodiment may include the following steps:
[0030] S110: Acquire first data and second data related to the first data.
[0031] In an embodiment of the present invention, the first data may include data that can represent the first object, such as the name text of the first object; the second data may include data that can represent the second object, such as the name text of the second object. The first data and the second data may be correlated, and the correlation between the first data and the second data may represent that the first object is correlated with the second object. One first data may be correlated with multiple second data, and the second data correlated with different first data may overlap.
[0032] Exemplarily, assuming that the first object is a disease and the second object is a drug, the first data can be a disease name text, and the second object can be a drug name text. The disease name text is related to the drug name text, which can characterize the correlation between the disease and the drug (also referred to as the adaptability of the disease and the drug). Among them, the disease name text can be related to multiple drug name texts to characterize that multiple drugs can be used to treat the disease. Moreover, there may be overlaps between drug name texts related to different disease name texts. In addition, other first data and second data that meet the above-mentioned related characteristics can also be applied to the analysis method provided in this embodiment, and are not exhaustively listed here.
[0033] The first data and the second data related to the first data may be obtained in the form of a data pair. For example, the first data and the second data may be obtained in the form of a one-to-many data pair of "first data-second data, second data...second data". By obtaining the first data and the second data in the form of a data pair, the second data related to the first data may be determined more conveniently.
[0034] S120. Based on a preset data steering model, encoding is performed according to the first data and the second data to generate a vector library; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and a distance between the first vector and the second vector is less than a preset threshold.
[0035] In this embodiment, the preset data conversion model can be a model for converting data into vectors. Among them, the data conversion module can include, but is not limited to, pre-trained models (Pre-trained Models, PTMs) such as models based on shallow word embedding (such as word2vec and GloVe), models based on pre-trained encoders (such as BERT and ELMo), and models based on supervised learning (such as CoVe). In addition, other models that can realize the conversion of data into vectors can also be applied here, which are not exhaustive here.
[0036] Since the correlation between the first data and the second data can be determined simultaneously when the first data and the second data are acquired, the correlation logic between the first data and the second data can be learned and mined through the preset data conversion model, and the related first data and the second data can be encoded into the first vector and the second vector with close distance.
[0037] The distance between the first vector and the second vector may include at least one of the following: Euclidean distance, Manhattan distance, Chebyshev distance, Mahalanobis distance, and cosine distance. The preset threshold may be a threshold pre-set based on empirical values and experimental values. If the distance between the first vector and the second vector is less than the preset threshold, it may indicate that the distance between the first vector and the second vector is close.
[0038] When the data is turned into a quantity model and all the first data and the second data are encoded, all the encoded first vectors and second vectors can be summarized to generate a vector library. In an optional manner, when the first data and the second data are vocabulary texts, the vector library can include a vector corresponding to each vocabulary text; it can also include a vector corresponding to each character text in each vocabulary text. The vector of the vocabulary text can be determined based on the vectors of the character texts that constitute the vocabulary.
[0039] S130, acquiring first target data and second target data, and determining a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to a vector library.
[0040] In this embodiment, the first target data and the second target data can be understood as a data pair that needs to be determined whether they have correlation. The first target data and the second target data can be considered to have the same representation objects and formats as the first data and the second data of the generated vector library.
[0041] Among them, determining the first target vector and the second target vector corresponding to the first target data and the second target data respectively according to the vector library can include: judging whether the first data and the second data generating the vector library contain the first target data and the second target data; if so, directly searching the first vector and the second vector corresponding to the first target data and the second target data from the vector library as the first target vector and the second target vector; if not, encoding the first target data and the second target data respectively according to the data turning volume model which has learned the correlation logic between the first data and the second data, and determining the first target vector and the second target vector.
[0042] In an optional manner, when the first target data and the second target data are vocabulary texts, it is also possible to determine whether the first data and the second data used to generate the vector library contain character texts in the first target data and the second target data; if so, the first target vector and the second target vector can also be determined based on the vectors of the found character texts.
[0043] S140. Determine whether the first target data and the second target data are correlated based on the distance between the first target vector and the second target vector.
[0044] After determining the distance between the first target vector and the second target vector, when the distance is less than the above-mentioned preset threshold, it can be considered that there is a correlation between the first target data and the second target data; when the distance is greater than or equal to the above-mentioned preset threshold, it can be considered that there is no correlation between the first target data and the second target data.
[0045] An analysis method for data correlation provided by an embodiment of the present invention uses a data steering model to learn the correlation between first data and second data, and can encode a first vector and a second vector with a small distance based on the model to generate a vector library. Furthermore, based on the vector library, a first target vector and a second target vector corresponding to the first target data and the second target data can be generated respectively, and the correlation between the first target data and the second target data can be reversely derived through the distance between the first target vector and the second target vector.
[0046] This method can be applied to determine the correlation between disease data and drug data, so that when drug data is not covered in historical medical information, the vector corresponding to the drug data can still be reversely deduced based on the vector library, and then the correlation between the disease data and the drug data can be determined based on the distance between the vector corresponding to the disease data and the vector corresponding to the drug data. Compared with traditional methods, the accuracy of determining the correlation between disease data and drug data is improved.
[0047] Embodiment 2
[0048] Based on the above embodiment, this embodiment describes in detail the steps of generating a vector library. The vector library can be generated by at least one of the following encoding methods: encoding according to a data sequence, encoding according to a knowledge graph, and encoding according to a data dictionary. Furthermore, based on the generated multiple vector libraries, multiple pairs of vectors corresponding to the first target data and the second target data can be determined, and the distances of the multiple pairs of vectors can be combined to determine the correlation between the first target data and the second target data, thereby improving the judgment accuracy.
[0049] In an optional implementation provided in this embodiment, encoding according to the first data and the second data may include: generating a knowledge graph according to the first data and the second data; loopingly selecting a starting node from the knowledge graph, and starting from the starting node, randomly walking with a preset step length to obtain a data sequence, and stopping the loop when the current condition meets the preset condition; encoding according to each data sequence.
[0050] In which, an open source or custom-written tool script can be used to draw a knowledge graph based on obtaining the first data and the second data, and determining the correlation between the first data and the second data. In which, the graph can be composed of nodes and lines, each node can represent the first data or the second data, and each connection can connect two nodes to represent that there is a correlation between the two nodes.
[0051] The current condition satisfies the preset condition, which may include but is not limited to: the current number of cycles reaches the preset number; and / or each node has been wandered, etc. The preset step size may be set according to an empirical value or an experimental value. The data sequence may include a sequence in which the first data and the second data are arranged at intervals.
[0052] For example, Figure 2 Schematic diagram of a knowledge graph in a data correlation analysis method provided in Embodiment 2 of the present invention. Figure 2 , the large circle nodes in the graph can represent the first data, and the small circle nodes can represent the second data; wherein the first data can be the disease name text, such as "Disease 1" and "Disease 2", and the second data can be the drug name text, such as "Drug 1" and "Drug 2", etc. There can be a connection line between the large circle nodes and the small circle nodes in the graph to represent that the disease name text and the drug name text are related.
[0053] For example, the "Disease 1" node can be selected from the graph as the starting node, and a random walk with a preset step size can be performed from the node to obtain a data sequence. Exemplarily, the data sequence can be [Disease 1, Drug 3, Disease 2, Drug 5...]. Multiple starting nodes can be selected for random walk to obtain multiple data sequences.
[0054] The data to be encoded is in different forms, and the preset data conversion model used may be different. When the data to be encoded is in the form of a data sequence, a shallow word embedding model (such as word2vec and GloVe) can be used to encode multiple data sequences to obtain a vector library.
[0055] In another optional implementation method provided in this embodiment, encoding is performed according to the first data and the second data, and may also include: generating a knowledge graph according to the first data and the second data; and encoding according to the knowledge graph.
[0056] Among them, the above-disclosed technical features can be used to generate a knowledge graph using the first data and the second data. In addition, encoding can be performed directly based on the graph. When the data to be encoded is in the form of a graph, the graph neural network node2vec or LINE can be used to encode the graph to obtain a vector library.
[0057] In another optional implementation provided by this embodiment, encoding according to the first data and the second data may also include: deduplicating the first data and the second data to obtain a data dictionary; and encoding according to the data dictionary.
[0058] After obtaining a data pair including the first data and the second data, when the content of the data pair is completely consistent, the data pair can be deduplicated to generate a data dictionary including the first data, the second data and the correlation between the two. Through the deduplication operation, data dictionary redundancy can be avoided, which is conducive to improving subsequent encoding efficiency. When the data to be encoded is in the form of a data dictionary, it can be encoded using appropriate PTMs to obtain a vector library.
[0059] Among them, based on at least one of the above encoding methods, the first data and the second data can be encoded to generate at least one vector library.
[0060] In an optional implementation, if the vector library includes at least two, then based on the distance between the first target vector and the second target vector, it is determined whether there is a correlation between the first target data and the second target data, including: for the same vector library, determining the distance between the first target vector and the second target vector; and based on each distance, determining whether there is a correlation between the first target data and the second target data.
[0061] A first target vector and a second target vector corresponding to a group of first target data and second target data can be determined through each vector library. Furthermore, a distance can be determined based on the first target vector and the second target vector in each group. Based on each determined distance, it is determined whether there is a correlation between the first target data and the second target data.
[0062] In these optional implementations, the first target vector and the second target vector corresponding to the first target data and the second target data can be determined by using a vector library obtained based on different encoding methods. By using multiple groups of first target vectors and second target vectors to determine the distance, it is beneficial to improve the accuracy of determining the correlation between the first target data and the second target data.
[0063] In some further implementations, whether there is a correlation between the first target data and the second target data is determined based on each distance, including: determining a first score based on each distance; weighting each first score based on a weight coefficient corresponding to each first score to obtain a comprehensive score; determining whether there is a correlation between the first target data and the second target data based on the comprehensive score; wherein each weight coefficient is obtained by performing grid parameter adjustment based on a set of sample pairs of the first sample data and the second sample data that are correlated.
[0064] Determining the first score based on each distance may be to normalize the distance to a preset range, such as (0-1), so that the data correlation degree can be more uniformly and intuitively compared. By weighting each first score, a comprehensive score can be obtained to realize the judgment of correlation using each vector library.
[0065] Among them, the comprehensive scores of each pair of first sample data and second sample data in the labeled sample set pairs with correlation can be determined in advance according to the generated vector library, and a set of optimal weight coefficients can be determined by grid adjustment of the weight coefficients corresponding to each first score. Furthermore, the determined weight coefficients can be applied to obtain the comprehensive scores corresponding to the first target data and the second target data.
[0066] In these further implementations, the distances of multiple vector pairs may be integrated to determine the correlation between the first target data and the second target data, thereby improving the accuracy of the determination.
[0067] For example, Figure 3 FIG. 1 is a flow chart of determining the correlation between disease data and drug data in a data correlation analysis method provided in Embodiment 2 of the present invention. Figure 3 , the first data is the disease name text; the second data is the drug name text; the first target data is the target disease name text; the second target data is the target drug name text.
[0068] Figure 3 The process provided for determining the relevance of disease data and drug data may include:
[0069] First, the disease name text in the historical medical information and the drug name text corresponding to the disease name text can be extracted from the hospital database. For example, the disease name text and the drug name text corresponding to the disease name text can be obtained in the format of "[disease 1, [drug 1, drug 2, ..., drug n]]".
[0070] Secondly, the vector library V1 can be generated based on the following steps:
[0071] First, a knowledge graph can be generated based on the disease name text and the drug name text corresponding to the disease name text; then, a starting node can be selected from the knowledge graph in a loop, and starting from the starting node, a random walk with a preset step length can be performed to obtain a data sequence, and the loop is stopped when the current condition meets the preset condition; finally, each data sequence can be encoded based on word2vec or GloVe to generate a vector library V1.
[0072] At the same time, you can also generate vector library V2 based on the following steps:
[0073] Based on node2vec or LINE, you can encode the graph and generate the vector library V2.
[0074] In addition, vector library V3 can be generated based on the following steps:
[0075] First, the first data and the second data may be deduplicated to obtain a data dictionary; then, based on PTMs, encoding may be performed according to the data dictionary to generate a vector library V3.
[0076] After generating V1, V2 and V3, the data pair of the target disease name text and the target drug name text (disease, drug) can be passed through V1, V2 and V3 to obtain the vector pairs of the first target vector and the second target vector (disease_vec1, drug_vec1), (disease_vec2, drug_vec2) and (disease_vec3, drug_vec3), respectively.
[0077] Again, the distance between two vectors in the vector pairs (disease_vec1, drug_vec1), (disease_vec2, drug_vec2) and (disease_vec3, drug_vec3) can be determined, and the corresponding first scores score(disease_vec1, drug_vec1), score(disease_vec2, drug_vec2) and score(disease_vec3, drug_vec3) can be calculated based on the distance.
[0078] Finally, weight parameters α, β, and γ are assigned to each first score, and the three first scores are combined to obtain a comprehensive score Score_match. Specifically, it can be:
[0079] Score_match=α*score(disease_vec1, drug_vec1)+β*score(disease_vec2, drug_vec2)+γ*score(disease_vec3, drug_vec3).
[0080] In the embodiment of the present invention, the steps of generating the vector library are described in detail. The vector library can be generated by at least one of the following encoding methods: encoding according to a data sequence, encoding according to a knowledge graph, and encoding according to a data dictionary. Furthermore, based on the generated multiple vector libraries, multiple pairs of vector pairs corresponding to the first target data and the second target data can be determined, and the distances of the multiple pairs of vector pairs can be combined to determine the correlation between the first target data and the second target data, thereby improving the accuracy of the judgment. In addition, the data correlation analysis method provided in the embodiment of the present invention and the above-mentioned embodiment belongs to the same inventive concept, and the technical details not described in detail can be referred to the above-mentioned embodiment, and have the same technical effects.
[0081] Embodiment 3
[0082] Figure 4 1 is a schematic diagram of a data correlation analysis device provided in Embodiment 3 of the present invention. This embodiment is applicable to situations where data correlation is to be determined, for example, situations where correlation between disease data and drug data is to be determined.
[0083] See also Figure 4 The data correlation analysis device provided in this embodiment may include:
[0084] A data acquisition module 410, used to acquire first data and second data related to the first data;
[0085] A vector library generation module 420 is used to generate a vector library by encoding the first data and the second data based on a preset data turning volume model; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and the distance between the first vector and the second vector is less than a preset threshold;
[0086] A target vector determination module 430 is used to obtain first target data and second target data, and determine a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to a vector library;
[0087] The correlation determination module 440 is used to determine whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector.
[0088] In some optional implementations, the vector library generation module may be used to:
[0089] Generate a knowledge graph based on the first data and the second data;
[0090] The loop selects a starting node from the knowledge graph, and starts from the starting node, randomly walks with a preset step length to obtain a data sequence, and stops the loop when the current condition meets the preset condition;
[0091] Encoding is performed according to each data sequence.
[0092] In some optional implementations, the vector library generation module may also be used to:
[0093] Generate a knowledge graph based on the first data and the second data;
[0094] Encode according to the knowledge graph.
[0095] In some optional implementations, the vector library generation module may also be used to:
[0096] De-duplicate the first data and the second data to obtain a data dictionary;
[0097] Encoding is done according to the data dictionary.
[0098] In some optional implementations, if the vector library includes at least two, the correlation determination module may be used to:
[0099] For the same vector library, determining the distance between the first target vector and the second target vector;
[0100] According to each distance, it is determined whether the first target data and the second target data are correlated.
[0101] In some optional implementations, the relevance determination module may be specifically used to:
[0102] Determine a first score according to each distance;
[0103] Based on the weight coefficients corresponding to the first scores, weighting the first scores to obtain a comprehensive score;
[0104] According to the comprehensive score, determining whether there is a correlation between the first target data and the second target data;
[0105] Among them, each weight coefficient is obtained by performing grid parameter adjustment based on a set of sample pairs of first sample data and second sample data that have correlation.
[0106] In some optional implementations, the distance may include at least one of the following: Euclidean distance, Manhattan distance, Chebyshev distance, Mahalanobis distance, and cosine distance.
[0107] The data correlation analysis device provided in the embodiment of the present invention can execute the data correlation analysis method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail, please refer to the data correlation analysis method provided in any embodiment of the present invention.
[0108] Embodiment 4
[0109] Figure 5 It is a structural schematic diagram of an electronic terminal provided in Embodiment 4 of the present invention. Figure 5 A block diagram of an exemplary terminal 12 suitable for use in implementing any of the embodiments of the present invention is shown. Figure 5 The terminal 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The device 12 is typically a terminal that undertakes the analysis function of data correlation.
[0110] like Figure 5 As shown, the terminal 12 is in the form of a general-purpose computing device. The components of the terminal 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 connecting different components (including the memory 28 and the processing unit 16).
[0111] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0112] Terminal 12 typically includes a variety of computer readable media. These media can be any available media that can be accessed by terminal 12, including volatile and non-volatile media, removable and non-removable media.
[0113] The memory 28 may include computer device readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The terminal 12 may further include other removable / non-removable, volatile / non-volatile computer storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a read-only optical disk (Compact Disc-Read Only Memory, CD-ROM), a digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product 40, which has a set of program modules 42, which are configured to perform the functions of various embodiments of the present invention. The program product 40 may be stored in, for example, the memory 28, and such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment. The program module 42 generally performs the functions and / or methods in the embodiments described in the present invention.
[0114] The terminal 12 may also communicate with one or more external devices 14 (e.g., keyboard, mouse, camera, etc., and display), may also communicate with one or more devices that enable a user end to interact with the terminal 12, and / or communicate with any device that enables the terminal 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the terminal 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the terminal 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (RAID) devices, tape drives, and data backup storage devices.
[0115] The processor 16 executes various functional applications and data processing by running the program stored in the memory 28, for example, implementing the data correlation analysis method provided in the above embodiment of the present invention, the method comprising:
[0116] Acquire first data and second data related to the first data; based on a preset data turning volume model, encode the first data and the second data to generate a vector library; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and the distance between the first vector and the second vector is less than a preset threshold; acquire first target data and second target data, and determine a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to the vector library; and determine whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector.
[0117] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the data correlation analysis method provided in any embodiment of the present invention.
[0118] Embodiment 5
[0119] Embodiment 5 of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, for example, the method for analyzing data correlation provided in the above embodiment of the present invention is implemented. The method includes:
[0120] Acquire first data and second data related to the first data; based on a preset data turning volume model, encode the first data and the second data to generate a vector library; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and the distance between the first vector and the second vector is less than a preset threshold; acquire first target data and second target data, and determine a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to the vector library; and determine whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector.
[0121] Of course, the computer-readable storage medium provided by an embodiment of the present invention stores a computer program which is not limited to the method request as above, and can also execute the data correlation analysis method provided by any embodiment of the present invention.
[0122] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device or component, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by a request execution device, device or device or used in combination with it.
[0123] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a requesting execution device, apparatus, or device.
[0124] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0125] The computer program code for executing the requests of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the client computer, partially on the client computer, as a separate software package, partially on the client computer and partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the client computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, through the Internet using an Internet service provider).
[0126] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for analyzing data correlation, characterized in that: include: Acquire first data and second data related to the first data, wherein the first data is a disease name text and the second data is a drug name text; Based on a preset data turning volume model, encoding is performed according to the first data and the second data to generate a vector library; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and a distance between the first vector and the second vector is less than a preset threshold; Acquire first target data and second target data, and determine a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to the vector library; determining whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector; The determining, according to the vector library, a first target vector corresponding to the first target data and a second target vector corresponding to the second target data comprises: Determining whether the first data and the second data for generating the vector library include the first target data and the second target data; If yes, directly searching the first vector and the second vector corresponding to the first target data and the second target data from the vector library as the first target vector and the second target vector; If not, learning a data steering volume model of the correlation logic between the first data and the second data, encoding the first target data and the second target data respectively, and determining a first target vector and a second target vector; The encoding according to the first data and the second data includes: Generate a knowledge graph according to the first data and the second data; Loopingly selecting a starting node from the knowledge graph, and starting from the starting node, randomly walking with a preset step length to obtain a data sequence, and stopping the loop when the current condition meets the preset condition; wherein the data sequence includes a sequence in which the first data and the second data are arranged at intervals; Encoding is performed according to each of the data sequences.
2. The method according to claim 1, characterized in that The encoding according to the first data and the second data further includes: Generate a knowledge graph according to the first data and the second data; Encoding is performed according to the knowledge graph.
3. The method according to claim 1, characterized in that The encoding according to the first data and the second data further includes: Deduplication of the first data and the second data to obtain a data dictionary; Encoding is performed according to the data dictionary.
4. The method according to claim 1, characterized in that: If the vector library includes at least two vectors, then judging whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector includes: For the same vector library, determining the distance between the first target vector and the second target vector; Whether the first target data and the second target data are correlated is determined according to the distances.
5. The method according to claim 4, characterized in that The determining, based on each of the distances, whether the first target data and the second target data are correlated includes: Determining a first score according to each of the distances; weighting each of the first scores based on a weight coefficient corresponding to each of the first scores to obtain a comprehensive score; According to the comprehensive score, determining whether the first target data and the second target data are correlated; Each of the weight coefficients is obtained by performing grid parameter adjustment based on a set of sample pairs of first sample data and second sample data having correlation.
6. The method according to any one of claims 1 to 5, characterized in that: The distance includes at least one of the following: Euclidean distance, Manhattan distance, Chebyshev distance, Mahalanobis distance and cosine distance.
7. A data correlation analysis device, characterized in that: include: A data acquisition module, used to acquire first data and second data related to the first data, wherein the first data is a disease name text and the second data is a drug name text; A vector library generation module, configured to generate a vector library by encoding the first data and the second data based on a preset data steering model; wherein the vector library includes a first vector corresponding to the first data and a second vector corresponding to the second data, and a distance between the first vector and the second vector is less than a preset threshold; a target vector determination module, used for acquiring first target data and second target data, and determining a first target vector corresponding to the first target data and a second target vector corresponding to the second target data according to the vector library; a correlation determination module, configured to determine whether the first target data and the second target data are correlated according to the distance between the first target vector and the second target vector; The target vector determination module is specifically used to: determine whether the first data and the second data used to generate the vector library contain the first target data and the second target data; if so, directly search the first vector and the second vector corresponding to the first target data and the second target data from the vector library as the first target vector and the second target vector; if not, learn the data turning volume model of the correlation logic between the first data and the second data, encode the first target data and the second target data respectively, and determine the first target vector and the second target vector; The vector library generation module is specifically used to: generate a knowledge graph according to the first data and the second data; cyclically select a starting node from the knowledge graph, and start from the starting node, randomly walk with a preset step length to obtain a data sequence, and stop the loop when the current condition meets the preset condition; wherein the data sequence includes a sequence in which the first data and the second data are arranged at intervals; and encode according to each of the data sequences.
8. An electronic terminal 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 method for analyzing data correlation as described in any one of claims 1-6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for analyzing data correlation as described in any one of claims 1 to 6 is implemented.
