A quality detection method and related device for medical record data
By performing vectorization and feature vector operations on medical record data, and using a generator and a discriminator to generate quality detection results, the problem of low efficiency in quality detection of medical record data in the existing technology is solved, and efficient and timely quality detection is achieved.
Patent Information
- Application Number
- CN202010416797.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-05-15
AI Technical Summary
In the existing technology, the quality inspection of medical record data relies on manual inspection, which is inefficient and cannot reflect the data quality in a timely manner.
By vectorizing the medical record data to be detected, the anchor sample feature vector set is obtained, and the generator and discriminator are used to perform feature vector operations to generate quality detection results and improve detection efficiency and accuracy.
It achieves efficient and timely quality inspection of medical record data, avoids the inefficiency of manual inspection, and can reflect the quality of medical record data in a timely manner.
Smart Images

Figure CN111696637B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and related device for quality detection of medical record data. Background Art
[0002] With the rapid development of information technology, the medical industry has also entered a new stage of development. Nowadays, electronic medical record systems have been popularized in most hospitals, and filling out electronic medical records on computers has gradually replaced manual medical records.
[0003] Generally speaking, whether medical records are written manually or filled out using an electronic medical record system, doctors are required to check the medical record data to control the quality of the medical record data in real time. That is, in the prior art, the quality control of medical record data is completed manually, which is inefficient and cannot reflect the quality of medical record data in a timely manner. Summary of the invention
[0004] The embodiments of the present application provide a method and related devices for quality detection of medical record data. The implementation of the embodiments of the present application improves the efficiency of quality detection of medical record data and can timely reflect the quality status of medical record data.
[0005] The first aspect of the present application provides a method for quality detection of medical record data, comprising:
[0006] Obtain medical record data for quality inspection;
[0007] Vectorizing the medical record data to be quality-checked to obtain a first feature vector;
[0008] Obtain a first anchor sample feature vector set corresponding one-to-one to the anchor sample medical record data set;
[0009] Inputting each first anchor sample feature vector in the first anchor sample feature vector set into the trained generator to obtain a plurality of second anchor sample feature vectors;
[0010] Determine a first anchor sample average feature vector according to the plurality of second anchor sample feature vectors;
[0011] Performing a vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector;
[0012] The second feature vector is input into the trained discriminator to obtain a quality detection result.
[0013] A second aspect of the present application provides a medical record data quality detection device, comprising:
[0014] An acquisition module, used to acquire medical record data to be quality tested;
[0015] A processing module, used for vectorizing the medical record data to be quality-checked to obtain a first feature vector;
[0016] The acquisition module is further used to acquire a first anchor sample feature vector set corresponding to the anchor sample medical record data set one by one;
[0017] The processing module is further used to input each first anchor sample feature vector in the first anchor sample feature vector set into the trained generator to obtain a plurality of second anchor sample feature vectors;
[0018] The processing module is further used to determine an average feature vector of the first anchor sample based on the plurality of second anchor sample feature vectors;
[0019] The processing module is further used to perform a vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector;
[0020] The processing module is further used to input the second feature vector into a trained discriminator to obtain a quality detection result.
[0021] A third aspect of the present application provides an electronic device for quality detection of medical record data, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are generated to be executed by the processor to execute instructions for the steps of any one of the methods for quality detection of medical record data.
[0022] A fourth aspect of the present application provides a computer-readable storage medium, which is used to store a computer program. The stored computer program is executed by the processor to implement any method described in a method for quality detection of medical record data.
[0023] It can be seen that in the above technical solution, the medical record data to be quality tested is obtained; the medical record data to be quality tested is vectorized to obtain a first feature vector; a first anchor sample feature vector set corresponding to the anchor sample medical record data set is obtained; each first anchor sample feature vector in the first anchor sample feature vector set is input into a trained generator to obtain multiple second anchor sample feature vectors; the first anchor sample average feature vector is determined according to the multiple second anchor sample feature vectors; the first feature vector and the first anchor sample average feature vector are vectorized to obtain a second feature vector; the second feature vector is input into a trained discriminator to obtain a quality test result. By inputting the second feature vector after the vector operation of the first feature vector corresponding to the medical record data to be quality tested and the first anchor sample average feature vector into the trained discriminator and obtaining the quality test result, the problem of inaccurate quality test results obtained by directly using the trained discriminator to process the first feature vector corresponding to the medical record data to be quality tested is avoided. At the same time, by using the discriminator to determine the quality test results of the medical record data to be quality tested, the quality test efficiency of the medical record data is improved, and the quality of the medical record data can be reflected in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] in:
[0026] Figure 1 is a schematic diagram of a medical record data quality detection system provided in an embodiment of the present application;
[0027] Figure 2A A flowchart of a method for quality detection of medical record data provided in an embodiment of the present application;
[0028] Figure 2B A schematic diagram of an encoder provided in an embodiment of the present application;
[0029] Figure 3 A flowchart of another method for quality detection of medical record data provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of a medical record data quality detection device provided in an embodiment of the present application;
[0031] Figure 5A schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiments of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] The following are detailed descriptions of each.
[0034] The terms "first" and "second" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. 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 device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0035] First, see Figure 1 , Figure 1 1 is a schematic diagram of a quality inspection system for medical record data provided in an embodiment of the present application. The quality inspection system 100 includes a quality inspection processing device 110. The quality inspection processing device 110 is used to process the medical record data to be quality inspected. The quality inspection system 100 may include an integrated single device or multiple devices. For the convenience of description, the present application refers to the quality inspection system 100 as an electronic device. Obviously, the electronic device may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc.
[0036] Generally speaking, whether medical records are written manually or filled out using an electronic medical record system, doctors are required to check the medical record data to control the quality of the medical record data in real time. That is, in the prior art, the quality control of medical record data is completed manually, which is inefficient and cannot reflect the quality of medical record data in a timely manner.
[0037] Based on this, an embodiment of the present application proposes a quality detection method for medical record data to solve the above-mentioned problem. The embodiment of the present application is introduced in detail below.
[0038] See also Figure 2A , Figure 2A A flow chart of a method for quality detection of medical record data provided in an embodiment of the present application. Figure 2A As shown, the method includes:
[0039] 201. Obtain medical record data to be tested for quality;
[0040] The medical record data to be tested for quality may include text, symbols, charts, graphs, data, images, etc. Specifically, the medical record data to be tested for quality may include gender, age, date of birth, name, drug name, etc.
[0041] In addition, medical record data for quality inspection can be obtained from the blockchain.
[0042] Among them, blockchain is a chain data structure that connects data blocks in chronological order and is a distributed ledger that cannot be tampered with or forged using cryptography. The blockchain can include the blockchain underlying platform, platform product service layer, and application service layer.
[0043] Furthermore, the characteristics of blockchain include openness, consensus, decentralization, trustlessness, transparency, anonymity of both parties, non-tamperability and traceability. Among them, openness and transparency mean that anyone can participate in the blockchain network, each device can be used as a node, and each node is allowed to obtain a complete copy of the database. Based on a consensus mechanism, the nodes jointly maintain the entire blockchain through competitive calculations. If any node fails, the remaining nodes can still work normally. Among them, decentralization and trustlessness mean that the blockchain is composed of many nodes to form an end-to-end network, and there is no centralized equipment and management agency. The data exchange between nodes is verified by digital signature technology, without the need to trust each other. As long as it is carried out according to the established rules of the system, nodes cannot and cannot deceive other nodes. Among them, transparency and anonymity of both parties mean that the operating rules of the blockchain are public, and all data information is also public, so every transaction is visible to all nodes. Since there is no trust between nodes, there is no need to disclose the identity between nodes, and each participating node is anonymous. Among them, immutability and traceability mean that the modification of the database by each or even multiple nodes cannot affect the database of other nodes, unless more than 51% of the nodes in the entire network can be controlled to modify at the same time, which is almost impossible. In the blockchain, each transaction is connected in series with two adjacent blocks through cryptographic methods, so any transaction record can be traced back.
[0044] Specifically, blockchain can use block chain data structure to verify and store data, use distributed node consensus algorithm to generate and update data, use cryptography to ensure the security of data transmission and access, and use smart contracts composed of automated script code to program and operate data. Therefore, the tamper-proof nature of blockchain technology fundamentally changes the centralized credit creation method and effectively improves the immutability and security of data. Among them, since smart contracts make all clauses written as programs, these clauses can be automatically executed on the blockchain, ensuring that when there are conditions that trigger smart contracts, the blockchain can enforce the execution according to the content of the smart contract without any external force. This ensures the validity and execution of the contract, which can not only greatly reduce costs but also improve efficiency. Each node on the blockchain has the same ledger, which can ensure that the ledger recording process is open and transparent. Blockchain technology can realize a point-to-point, open and transparent direct interaction, making efficient, large-scale, decentralized agent-free information interaction a reality.
[0045] 202. Vectorize the medical record data to be quality-checked to obtain a first feature vector;
[0046] It should be noted that the data type corresponding to the medical record data to be quality tested includes a continuous type or a categorical type. Before vectorizing the medical record data to be quality tested to obtain the first eigenvector, the method further includes: encoding the data of the categorical type in the medical record data to be quality tested to obtain the encoded medical record data to be quality tested. Among them, the data of the categorical type in the medical record data to be quality tested can be encoded by using unique hot encoding to obtain the encoded medical record data to be quality tested. It can be understood that there is no need to encode the data of the continuous type in the medical record data to be quality tested.
[0047] For example, if the data type corresponding to gender in the medical record data to be tested is categorical, then gender needs to be coded. If the data type corresponding to age in the medical record data to be tested is continuous, then age does not need to be coded.
[0048] Furthermore, vectorizing the medical record data to be quality-checked to obtain a first feature vector includes: vectorizing the encoded medical record data to be quality-checked and the data of the medical record data to be quality-checked whose data type is continuous to obtain the first feature vector. It is understandable that the encoded medical record data to be quality-checked and the data of the medical record data to be quality-checked whose data type is continuous can be input into an encoder to obtain the first feature vector.
[0049] Among them, see Figure 2B , Figure 2B Schematic diagram of an encoder provided in an embodiment of the present application. Figure 2B As shown, it can be seen that the encoder includes an input layer, at least one hidden layer and an output layer. It should be noted that the input layer is an n-dimensional input layer, the hidden layer is an m-dimensional hidden layer, and the output layer is an n-dimensional output layer. Wherein, n and m are both integers greater than 1, and m is much smaller than n. Further, the mapping of the hidden layer is used as an encoder, the mapping of the output layer is used as a decoder, and the network structure of the encoder is a multi-layer self-encoding network structure.
[0050] It should be noted that the encoded medical record data to be quality tested and the data of continuous type in the medical record data to be quality tested are high-dimensional vectors of n dimensions. The first eigenvector is a low-dimensional vector of m dimensions, that is, the first eigenvector is the output data of the last hidden layer.
[0051] 203. Obtain a first anchor sample feature vector set corresponding to the anchor sample medical record data set one by one;
[0052] Optionally, in a possible implementation, obtaining a first anchor sample feature vector set that corresponds one-to-one to the anchor sample medical record data set includes: obtaining a to-be-trained sample medical record data set and a quality score corresponding to each to-be-trained sample medical record data in the to-be-trained sample medical record data set; determining, based on the quality score corresponding to each to-be-trained sample medical record data in the to-be-trained sample medical record data set, the to-be-trained sample medical record data whose quality score is in a first preset score range to obtain the anchor sample medical record data set; and vectorizing each anchor sample medical record data in the anchor sample medical record data set to obtain the first anchor sample feature vector set.
[0053] Among them, the training sample medical record data with a quality score in the second preset score interval can be determined according to the quality score corresponding to each training sample medical record data in the training sample medical record data set, and the positive sample medical record data set can be obtained; the training sample medical record data with a quality score in the third preset score interval can be determined according to the quality score corresponding to each training sample medical record data in the training sample medical record data set, and the negative sample medical record data set can be obtained. It can be understood that the first preset score interval is higher than the second preset score interval, and the second preset score interval is higher than the third preset score interval. That is, the quality score corresponding to each anchor sample medical record data in the anchor sample medical record data set is higher than the quality score corresponding to each positive sample medical record data in the positive sample medical record data set, and the quality score corresponding to each positive sample medical record data in the positive sample medical record data set is higher than the quality score corresponding to each negative sample medical record data in the negative sample medical record data set. In addition, each negative sample medical record data in the negative sample medical record data set has quality problems. However, each positive sample medical record data in the positive sample medical record data set and each anchor sample medical record data in the anchor sample medical record data set have no quality problems.
[0054] For example, the sample medical record data to be trained whose quality score is in the first preset scoring range, its completion time, writing format paragraph, medical terminology, three-level ward rounds, informed consent, anesthesia visits, diagnosis and treatment, auxiliary examinations, nosocomial infections and / or use of antibiotics all comply with regulations; the sample medical record data to be trained whose quality score is in the second preset scoring range, its medical terminology, three-level ward rounds, informed consent, anesthesia visits, diagnosis and treatment, auxiliary examinations, nosocomial infections and / or use of antibiotics all comply with regulations; the sample medical record data to be trained whose quality score is in the third preset scoring range, its medical terminology, three-level ward rounds, anesthesia visits, diagnosis and treatment, nosocomial infections and / or use of antibiotics all comply with regulations.
[0055] It should be noted that the data type corresponding to each piece of the to-be-trained sample medical record data in the to-be-trained sample medical record data set includes a continuous type or a categorical type. That is, the data type corresponding to each piece of the anchor sample medical record data in the anchor sample medical record data set includes a continuous type or a categorical type, the data type corresponding to each piece of the positive sample medical record data in the positive sample medical record data set includes a continuous type or a categorical type, and the data type corresponding to each piece of the negative sample medical record data in the negative sample medical record data set includes a continuous type or a categorical type. Further, the anchor sample medical record data P is any piece of data in the anchor sample medical record data set. Before vectorizing each piece of the anchor sample medical record data in the anchor sample medical record data set to obtain the first anchor sample feature vector set, the method further includes: encoding the data of the categorical type in the anchor sample medical record data P to obtain the encoded anchor sample medical record data P. Among them, the data of the categorical type in the anchor sample medical record data P can be encoded by using a single hot encoding to obtain the encoded anchor sample medical record data P. It can be understood that it is not necessary to encode the data of the continuous type in the anchor sample medical record data P.
[0056] Further, each anchor sample medical record data in the anchor sample medical record data set is vectorized to obtain the first anchor sample feature vector set, including: vectorizing the encoded anchor sample medical record data P and the data of the anchor sample medical record data P whose data type is continuous to obtain the first anchor sample feature vector corresponding to the anchor sample medical record data P. It can be understood that the encoded anchor sample medical record data P and the data of the anchor sample medical record data P whose data type is continuous can be input into the encoder to obtain the first anchor sample feature vector corresponding to the anchor sample medical record data P. It can be understood that the anchor sample medical record data set corresponds to the first anchor sample feature vector set one by one.
[0057] In addition, the encoded anchor sample medical record data P and the data of the continuous type in the anchor sample medical record data P are high-dimensional vectors of n dimensions. The first anchor sample feature vector corresponding to the anchor sample medical record data P is a low-dimensional vector of m dimensions, that is, the first anchor sample feature vector corresponding to the anchor sample medical record data P is the output data of the last hidden layer.
[0058] It can be seen that in the above technical solution, the medical record data set of the sample to be trained and the quality score corresponding to each medical record data to be trained in the medical record data set of the sample to be trained are obtained; according to the quality score corresponding to each medical record data to be trained in the medical record data set of the sample to be trained, the medical record data to be trained with a quality score in the first preset score interval is determined to obtain the anchor sample medical record data set; each anchor sample medical record data in the anchor sample medical record data set is vectorized to obtain the first anchor sample feature vector set. By determining the medical record data to be trained with a quality score in the first preset score interval, the classification of the medical record data set of the sample to be trained is realized, and the anchor sample medical record data set with a quality score in the first preset score interval is also obtained. At the same time, by vectorizing each anchor sample medical record data in the anchor sample medical record data set, the anchor sample feature vector set is obtained, which prepares for the subsequent determination of the average feature vector of the anchor sample. In addition, by vectorization, the high-dimensional vector is converted into a low-dimensional vector, which simplifies the difficulty of the trained generator to learn the distribution of the anchor sample medical record data and improves the learning efficiency.
[0059] 204. Input each first anchor sample feature vector in the first anchor sample feature vector set into a trained generator to obtain a plurality of second anchor sample feature vectors;
[0060] 205. Determine an average feature vector of the first anchor sample according to the plurality of second anchor sample feature vectors;
[0061] The first anchor sample average feature vector is a low-dimensional vector of m dimensions. The value of the i-th row and j-th column in the first anchor sample average feature vector is the average value of the i-th row and j-th column in each of the multiple second anchor sample feature vectors. Where i and j are integers greater than 0, and the values of i and j are related to the first anchor sample average feature vector.
[0062] For example, the plurality of second anchor sample feature vectors include a second anchor sample feature vector N1 and a second anchor sample feature vector N2. The second anchor sample feature vector N1 is The second anchor sample feature vector N2 is Then, the average feature vector of the first anchor sample is
[0063] 206. Perform a vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector;
[0064] The vector operation may be, for example, vector addition, vector subtraction, vector product, etc., which is not limited here.
[0065] 207. Input the second feature vector into the trained discriminator to obtain a quality detection result.
[0066] It can be seen that in the above technical solution, the medical record data to be quality tested is obtained; the medical record data to be quality tested is vectorized to obtain a first feature vector; a first anchor sample feature vector set corresponding to the anchor sample medical record data set is obtained; each first anchor sample feature vector in the first anchor sample feature vector set is input into a trained generator to obtain multiple second anchor sample feature vectors; the first anchor sample average feature vector is determined according to the multiple second anchor sample feature vectors; the first feature vector and the first anchor sample average feature vector are vectorized to obtain a second feature vector; the second feature vector is input into a trained discriminator to obtain a quality test result. By inputting the second feature vector after the vector operation of the first feature vector corresponding to the medical record data to be quality tested and the first anchor sample average feature vector into the trained discriminator and obtaining the quality test result, the problem of inaccurate quality test results obtained by directly using the trained discriminator to process the first feature vector corresponding to the medical record data to be quality tested is avoided. At the same time, by using the discriminator to determine the quality test results of the medical record data to be quality tested, the quality test efficiency of the medical record data is improved, and the quality of the medical record data can be reflected in a timely manner.
[0067] Among them, in a possible implementation, the inputting the second feature vector into the trained discriminator to obtain the quality detection result includes: inputting the second feature vector into the trained discriminator to obtain a quality detection value; when the quality detection value is higher than a threshold, determining that the quality detection result is that the medical record data to be quality tested has no quality problems; when the quality detection value is lower than a threshold, determining that the quality detection result is that the medical record data to be quality tested has quality problems.
[0068] The quality detection value is a floating point number within a preset interval, and the preset interval is [0,1]. Furthermore, when the quality detection value is higher than the threshold, the label is 1, that is, the quality detection result is that the medical record data to be quality-checked has no quality problems; when the quality detection value is lower than the threshold, the label is 0, and the quality detection result is that the medical record data to be quality-checked has quality problems.
[0069] A threshold adjustment interface may also be displayed, the threshold adjustment interface including a threshold input box and a confirmation button. The user may input a threshold in the threshold input box and operate the confirmation button to achieve dynamic adjustment of the threshold.
[0070] It can be seen that in the above technical solution, the second feature vector is input into the trained discriminator to obtain a quality detection value; when the quality detection value is higher than the threshold, the quality detection result is determined to be that the medical record data to be quality-detected has no quality problems; when the quality detection value is lower than the threshold, the quality detection result is determined to be that the medical record data to be quality-detected has quality problems. By using the discriminator to determine the quality detection result of the medical record data to be quality-detected, the quality detection efficiency of the medical record data is improved, and the quality of the medical record data can be reflected in a timely manner. At the same time, combined with the threshold, dynamic control of the quality detection results of the medical record data is achieved.
[0071] See also Figure 3 , Figure 3 A flowchart of another method for quality detection of medical record data provided in an embodiment of the present application is shown below. Figure 3 As shown, the method also includes:
[0072] 301. Input each first anchor sample feature vector in the first anchor sample feature vector set into a generator to be trained to obtain a plurality of third anchor sample feature vectors;
[0073] The generator to be trained includes an input layer, multiple hidden layers and an output layer. It should be noted that the input layer is an m-dimensional input layer, the hidden layer is a k-dimensional hidden layer, and the output layer is an m-dimensional output layer. Wherein, k is an integer greater than 1 and less than m. Furthermore, the network structure of the generator to be trained is a deep neural network.
[0074] In addition, each first anchor sample feature vector in the first anchor sample feature vector set is an m-dimensional low-dimensional vector. Each third anchor sample feature vector in the plurality of third anchor sample feature vectors is an m-dimensional low-dimensional vector, that is, each third anchor sample feature vector in the plurality of third anchor sample feature vectors is output data of the output layer of the generator to be trained.
[0075] It is understandable that the generator to be trained and the trained generator have great differences in internal parameters. Therefore, when each first anchor sample feature vector in the first anchor sample feature vector set is input into the generator to be trained and the trained generator respectively, the output data output by the generator to be trained is very different from the output data output by the trained generator.
[0076] In addition, by inputting each first anchor sample feature vector in the first anchor sample feature vector set into the generator to be trained, the training of the generator can be completed to obtain a trained generator.
[0077] 302. Determine a second anchor sample average feature vector according to the plurality of third anchor sample feature vectors;
[0078] The second anchor sample average feature vector is a low-dimensional vector of dimension m. The value of the ath row and bth column in the second anchor sample average feature vector is the average value of the ath row and bth column in each of the third anchor sample feature vectors in multiple third anchor sample feature vectors. Where a and b are integers greater than 0, and the values of a and b are related to the second anchor sample average feature vector.
[0079] For example, the plurality of third anchor sample feature vectors include a third anchor sample feature vector M1 and a third anchor sample feature vector M2. The third anchor sample feature vector M1 is The third anchor sample feature vector M2 is Then, the average feature vector of the second anchor sample is
[0080] 303. Obtain a positive sample feature vector set corresponding to the positive sample medical record data set and a negative sample feature vector set corresponding to the negative sample medical record data set;
[0081] Optionally, in a possible implementation, the positive sample medical record data X is any piece of data in the positive sample medical record data set, and obtaining a positive sample feature vector set that corresponds one-to-one to the positive sample medical record data set includes: encoding the data whose data type is a categorical type in the positive sample medical record data X to obtain the encoded positive sample medical record data X; vectorizing the encoded positive sample medical record data X and the data whose data type is a continuous type in the positive sample medical record data X to obtain the positive sample feature vector corresponding to the positive sample medical record data X.
[0082] Among them, one-hot encoding can be used to encode the data of the categorical type in the positive sample medical record data X to obtain the encoded positive sample medical record data X. It can be understood that there is no need to encode the data of the continuous type in the positive sample medical record data X.
[0083] In addition, the encoded positive sample medical record data X and the data of the continuous type in the positive sample medical record data X are high-dimensional vectors of n dimensions. The positive sample feature vector corresponding to the positive sample medical record data X is a low-dimensional vector of m dimensions, that is, the positive sample feature vector corresponding to the positive sample medical record data X is the output data of the last hidden layer.
[0084] Similarly, the negative sample medical record data Y is any piece of data in the negative sample medical record data set, and the method of obtaining a negative sample feature vector set that corresponds one to one to the negative sample medical record data set includes: encoding the data of the categorical type in the negative sample medical record data Y to obtain the encoded negative sample medical record data Y; vectorizing the encoded negative sample medical record data Y and the data of the continuous type in the negative sample medical record data Y to obtain the negative sample feature vector corresponding to the negative sample medical record data Y.
[0085] Among them, one-hot encoding can be used to encode the data of the categorical type in the negative sample medical record data Y to obtain the encoded negative sample medical record data Y. It can be understood that there is no need to encode the data of the continuous type in the negative sample medical record data Y.
[0086] In addition, the encoded negative sample medical record data Y and the data of the continuous type in the negative sample medical record data Y are high-dimensional vectors of n dimensions. The negative sample feature vector corresponding to the negative sample medical record data Y is a low-dimensional vector of m dimensions, that is, the negative sample feature vector corresponding to the negative sample medical record data Y is the output data of the last hidden layer.
[0087] 304. Perform a vector operation on the second anchor sample average feature vector and each positive sample feature vector in the positive sample feature vector set to obtain a first sample feature vector set;
[0088] Among them, the first sample feature vector A is any vector in the first sample feature vector set, and the value of the first sample feature vector A is used to represent the distance between the positive sample feature vector corresponding to the first sample feature vector A and the second anchor sample average feature vector. When the value of the first sample feature vector A is larger, the positive sample feature vector corresponding to the first sample feature vector A is closer to the second anchor sample average feature vector, and when the value of the first sample feature vector A is smaller, the positive sample feature vector corresponding to the first sample feature vector A is farther away from the second anchor sample average feature vector.
[0089] 305. Perform a vector operation on the second anchor sample average feature vector and each negative sample feature vector in the negative sample feature vector set to obtain a second sample feature vector set;
[0090] Among them, the second sample feature vector B is any vector in the second sample feature vector set, and the value of the second sample feature vector B is used to represent the distance between the negative sample feature vector corresponding to the second sample feature vector B and the second anchor sample average feature vector. When the value of the second sample feature vector B is larger, the negative sample feature vector corresponding to the second sample feature vector B is closer to the second anchor sample average feature vector, and when the value of the second sample feature vector B is smaller, the negative sample feature vector corresponding to the second sample feature vector B is farther away from the second anchor sample average feature vector.
[0091] 306. Input the first sample feature vector set and the second sample feature vector set into the discriminator to be trained respectively to obtain the trained discriminator.
[0092] It can be seen that in the above technical solution, each first anchor sample feature vector in the first anchor sample feature vector set is input into the generator to be trained to obtain multiple third anchor sample feature vectors; the second anchor sample average feature vector is determined according to the multiple third anchor sample feature vectors; a positive sample feature vector set corresponding to the positive sample medical record data set and a negative sample feature vector set corresponding to the negative sample medical record data set are obtained; a vector operation is performed on the second anchor sample average feature vector and each positive sample feature vector in the positive sample feature vector set to obtain a first sample feature vector set; the second anchor sample average feature vector and each positive sample feature vector in the negative sample feature vector set are obtained. The first sample feature vector set and the second sample feature vector set are respectively input into the discriminator to be trained to obtain the trained discriminator, and the anchor sample feature vector generated by the generator to be trained is used to obtain the average anchor sample feature vector, and the vector obtained by performing vector operations on the average anchor sample feature vector and the positive sample feature vector and the negative sample feature vector is used to train the discriminator to be trained, so as to make the negative sample farther away from the anchor sample and the positive sample closer to the anchor sample, so as to make the trained discriminator better classify the medical record data with quality problems and the medical record data without quality problems. At the same time, this solution can be applied to the field of smart medical care, and by allowing the trained discriminator to better classify the medical record data with quality problems and the medical record data without quality problems, it can better promote the construction of smart cities.
[0093] See also Figure 4 , Figure 4 A schematic diagram of a medical record data quality detection device provided in an embodiment of the present application. Figure 4 As shown, a medical record data quality detection device 400 provided in an embodiment of the present application may include:
[0094] An acquisition module 401 is used to acquire medical record data to be quality tested;
[0095] A processing module 402 is used to vectorize the medical record data to be quality-checked to obtain a first feature vector;
[0096] The acquisition module 401 is further used to acquire a first anchor sample feature vector set corresponding to the anchor sample medical record data set one by one;
[0097] Optionally, in a possible implementation, when obtaining the first anchor sample feature vector set that corresponds one-to-one to the anchor sample medical record data set, the acquisition module 401 is specifically used to obtain the sample medical record data set to be trained and the quality score corresponding to each sample medical record data to be trained in the sample medical record data set to be trained; the processing module 402 is specifically used to determine the sample medical record data to be trained whose quality score is in a first preset score range based on the quality score corresponding to each sample medical record data to be trained in the sample medical record data set to be trained, and obtain the anchor sample medical record data set; each anchor sample medical record data in the anchor sample medical record data set is vectorized to obtain the first anchor sample feature vector set.
[0098] The processing module 402 is further configured to input each first anchor sample feature vector in the first anchor sample feature vector set into a trained generator to obtain a plurality of second anchor sample feature vectors;
[0099] The processing module 402 is further configured to determine an average feature vector of the first anchor sample according to the plurality of second anchor sample feature vectors;
[0100] The processing module 402 is further configured to perform a vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector;
[0101] The processing module 402 is further configured to input the second feature vector into a trained discriminator to obtain a quality detection result.
[0102] Optionally, in a possible implementation, the processing module 402 is further used to input each first anchor sample feature vector in the first anchor sample feature vector set into the generator to be trained to obtain multiple third anchor sample feature vectors; the processing module 402 is further used to determine the second anchor sample average feature vector based on the multiple third anchor sample feature vectors; the acquisition module 401 is further used to obtain a positive sample feature vector set corresponding one-to-one to the positive sample medical record data set and a negative sample feature vector set corresponding one-to-one to the negative sample medical record data set; the processing module 402 is further used to perform vector operations on the second anchor sample average feature vector and each positive sample feature vector in the positive sample feature vector set to obtain a first sample feature vector set; the processing module 402 is further used to perform vector operations on the second anchor sample average feature vector and each negative sample feature vector in the negative sample feature vector set to obtain a second sample feature vector set; the processing module 402 is further used to input the first sample feature vector set and the second sample feature vector set into the discriminator to be trained respectively to obtain the trained discriminator.
[0103] Among them, the first sample feature vector A is any vector in the first sample feature vector set, and the value of the first sample feature vector A is used to represent the distance between the positive sample feature vector corresponding to the first sample feature vector A and the second anchor sample average feature vector. When the value of the first sample feature vector A is larger, the positive sample feature vector corresponding to the first sample feature vector A is closer to the second anchor sample average feature vector, and when the value of the first sample feature vector A is smaller, the positive sample feature vector corresponding to the first sample feature vector A is farther away from the second anchor sample average feature vector.
[0104] Among them, the second sample feature vector B is any vector in the second sample feature vector set, and the value of the second sample feature vector B is used to represent the distance between the negative sample feature vector corresponding to the second sample feature vector B and the second anchor sample average feature vector. When the value of the second sample feature vector B is larger, the negative sample feature vector corresponding to the second sample feature vector B is closer to the second anchor sample average feature vector, and when the value of the second sample feature vector B is smaller, the negative sample feature vector corresponding to the second sample feature vector B is farther away from the second anchor sample average feature vector.
[0105] Optionally, in a possible implementation, when the second feature vector is input into a trained discriminator to obtain a quality detection result, the processing module 402 is specifically used to input the second feature vector into the trained discriminator to obtain a quality detection value; when the quality detection value is higher than a threshold, it is determined that the quality detection result is that the medical record data to be quality tested has no quality problems; when the quality detection value is lower than a threshold, it is determined that the quality detection result is that the medical record data to be quality tested has quality problems.
[0106] See also Figure 5 , Figure 5 A schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiments of the present application.
[0107] The embodiment of the present application provides an electronic device for quality detection of medical record data, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the processor to execute instructions including the steps in any one of the methods for quality detection of medical record data. Figure 5 As shown, the electronic device of the hardware operating environment involved in the embodiment of the present application may include:
[0108] Processor 501, such as CPU.
[0109] Memory 502, optionally, the memory may be a high-speed RAM memory, or a stable memory, such as a disk memory.
[0110] The communication interface 503 is used to realize the connection and communication between the processor 501 and the memory 502 .
[0111] Those skilled in the art will understand that Figure 5 The structure of the electronic device shown in the figure does not constitute a limitation thereto, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0112] like Figure 5 As shown, the memory 502 may include an operating system, a network communication module, and a program for verifying grayscale release. The operating system is a program that manages and controls server hardware and software resources and supports the operation of one or more programs. The network communication module is used to realize communication between components inside the memory 502, as well as communication with other hardware and software inside the electronic device.
[0113] exist Figure 5In the electronic device shown, the processor 501 is used to execute the personnel management program stored in the memory 502 to implement the following steps: obtain medical record data to be quality tested; vectorize the medical record data to be quality tested to obtain a first feature vector; obtain a first anchor sample feature vector set that corresponds one-to-one to the anchor sample medical record data set; input each first anchor sample feature vector in the first anchor sample feature vector set into a trained generator to obtain multiple second anchor sample feature vectors; determine the first anchor sample average feature vector based on the multiple second anchor sample feature vectors; perform vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector; input the second feature vector into a trained discriminator to obtain a quality detection result.
[0114] The specific implementation of the electronic device involved in this application can be found in the various embodiments of the above-mentioned medical record data quality detection method, which will not be described in detail here.
[0115] The present application also provides a computer-readable storage medium, which is used to store a computer program. The stored computer program is executed by the processor to implement the following steps: obtaining medical record data to be quality tested; vectorizing the medical record data to be quality tested to obtain a first feature vector; obtaining a first anchor sample feature vector set that corresponds one-to-one to the anchor sample medical record data set; inputting each first anchor sample feature vector in the first anchor sample feature vector set into a trained generator to obtain multiple second anchor sample feature vectors; determining a first anchor sample average feature vector based on the multiple second anchor sample feature vectors; performing a vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector; inputting the second feature vector into a trained discriminator to obtain a quality test result.
[0116] The specific implementation of the computer-readable storage medium involved in this application can be found in the various embodiments of the above-mentioned medical record data quality detection method, which will not be described in detail here.
[0117] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0118] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for quality detection of medical record data, characterized in that: include: Obtain medical record data for quality inspection; Vectorizing the medical record data to be quality-checked to obtain a first feature vector; Obtain a first anchor sample feature vector set corresponding one-to-one to the anchor sample medical record data set; Inputting each first anchor sample feature vector in the first anchor sample feature vector set into the trained generator to obtain a plurality of second anchor sample feature vectors; Determine a first anchor sample average feature vector according to the plurality of second anchor sample feature vectors; Performing a vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector; Inputting the second feature vector into the trained discriminator to obtain a quality detection result; The step of obtaining a first anchor sample feature vector set that corresponds one-to-one to the anchor sample medical record data set includes: obtaining a to-be-trained sample medical record data set and a quality score corresponding to each to-be-trained sample medical record data in the to-be-trained sample medical record data set, determining, based on the quality score corresponding to each to-be-trained sample medical record data in the to-be-trained sample medical record data set, the to-be-trained sample medical record data in a first preset score range of quality scores to obtain the anchor sample medical record data set, and vectorizing each anchor sample medical record data in the anchor sample medical record data set to obtain the first anchor sample feature vector set; The method further comprises: Inputting each first anchor sample feature vector in the first anchor sample feature vector set into the generator to be trained to obtain a plurality of third anchor sample feature vectors; Determine a second anchor sample average feature vector according to the plurality of third anchor sample feature vectors; Obtain a positive sample feature vector set corresponding to the positive sample medical record data set and a negative sample feature vector set corresponding to the negative sample medical record data set; Performing a vector operation on the second anchor sample average feature vector and each positive sample feature vector in the positive sample feature vector set to obtain a first sample feature vector set; Performing a vector operation on the second anchor sample average feature vector and each negative sample feature vector in the negative sample feature vector set to obtain a second sample feature vector set; The first sample feature vector set and the second sample feature vector set are respectively input into the discriminator to be trained to obtain the trained discriminator.
2. The method according to claim 1, characterized in that The first sample feature vector A is any vector in the first sample feature vector set. The value of the first sample feature vector A is used to represent the distance between the positive sample feature vector corresponding to the first sample feature vector A and the second anchor sample average feature vector. When the value of the first sample feature vector A is larger, the positive sample feature vector corresponding to the first sample feature vector A is closer to the second anchor sample average feature vector. When the value of the first sample feature vector A is smaller, the positive sample feature vector corresponding to the first sample feature vector A is farther away from the second anchor sample average feature vector.
3. The method according to claim 1, characterized in that: The second sample feature vector B is any vector in the second sample feature vector set. The value of the second sample feature vector B is used to represent the distance between the negative sample feature vector corresponding to the second sample feature vector B and the second anchor sample average feature vector. When the value of the second sample feature vector B is larger, the negative sample feature vector corresponding to the second sample feature vector B is closer to the second anchor sample average feature vector. When the value of the second sample feature vector B is smaller, the negative sample feature vector corresponding to the second sample feature vector B is farther away from the second anchor sample average feature vector.
4. The method according to claim 1, characterized in that: The step of inputting the second feature vector into a trained discriminator to obtain a quality detection result includes: Inputting the second feature vector into the trained discriminator to obtain a quality detection value; When the quality detection value is higher than a threshold value, determining that the quality detection result is that the medical record data to be quality-checked has no quality problem; When the quality detection value is lower than a threshold value, it is determined that the quality detection result is that the medical record data to be quality-checked has quality problems.
5. A quality detection device for medical record data, characterized in that: include: An acquisition module, used to acquire medical record data to be quality tested; A processing module, used for vectorizing the medical record data to be quality-checked to obtain a first feature vector; The acquisition module is further used to acquire a first anchor sample feature vector set corresponding to the anchor sample medical record data set one by one; The processing module is further used to input each first anchor sample feature vector in the first anchor sample feature vector set into the trained generator to obtain a plurality of second anchor sample feature vectors; The processing module is further used to determine an average feature vector of the first anchor sample based on the plurality of second anchor sample feature vectors; The processing module is further used to perform a vector operation on the first feature vector and the first anchor sample average feature vector to obtain a second feature vector; The processing module is further used to input the second feature vector into the trained discriminator to obtain a quality detection result; When obtaining a first anchor sample feature vector set that corresponds one to one with the anchor sample medical record data set, the acquisition module is specifically used to obtain the to-be-trained sample medical record data set and the quality score corresponding to each to-be-trained sample medical record data in the to-be-trained sample medical record data set; the processing module is specifically used to determine the to-be-trained sample medical record data in the first preset score range according to the quality score corresponding to each to-be-trained sample medical record data in the to-be-trained sample medical record data set, obtain the anchor sample medical record data set, and vectorize each anchor sample medical record data in the anchor sample medical record data set to obtain the first anchor sample feature vector set; The processing module is further used to input each first anchor sample feature vector in the first anchor sample feature vector set into the generator to be trained to obtain multiple third anchor sample feature vectors; the processing module is further used to determine the second anchor sample average feature vector based on the multiple third anchor sample feature vectors; the acquisition module is further used to obtain a positive sample feature vector set that corresponds one-to-one to the positive sample medical record data set and a negative sample feature vector set that corresponds one-to-one to the negative sample medical record data set; the processing module is further used to perform vector operations on the second anchor sample average feature vector and each positive sample feature vector in the positive sample feature vector set to obtain a first sample feature vector set; the processing module is further used to perform vector operations on the second anchor sample average feature vector and each negative sample feature vector in the negative sample feature vector set to obtain a second sample feature vector set; the processing module is further used to input the first sample feature vector set and the second sample feature vector set into the discriminator to be trained respectively to obtain the trained discriminator.
6. An electronic device for quality inspection of medical record data, characterized in that: The system comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and are generated as instructions for the processor to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Simulation text medical record generation method and system
CN109003678A
Medical quality evaluating and treating recommending method
CN109411082A
Health record data generation method and device
CN109656878A
Medical record quality assessment method, device and equipment
CN110162779A
Non-standard medical record analysis method based on openEHR medical record format
CN110335653A
