Medical feature database construction method, device, equipment and storage medium

Through the standardized processing and completion of medical data, combined with preset logic processing methods, a standardized medical feature database is constructed, which solves the time-consuming and labor-intensive problem of traditional methods and achieves fast and efficient feature database construction and model training.

CN113641659BActive Publication Date: 2024-10-29SHENZHEN PING AN MEDICAL HEALTH TECHNOLOGY SERVICES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111005644.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-10-29
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

Traditional medical feature database construction methods are scattered and unsystematic, relying mostly on manual business experience and failing to provide standardized construction, resulting in time and effort and the inability to train high-quality machine learning models.

Method used

By obtaining the original medical data, standardizing it and completing the missing values, classifying and storing it into multiple category data tables, using preset logical processing methods to splice the data into a wide data table, and dividing it hierarchically according to the preset feature dimension information. Extract basic features to build a basic medical feature database.

Benefits of technology

It realizes the automated and standardized construction of the medical feature database, saves time and labor costs, is suitable for the rapid construction of various application scenarios, generates a large number of basic features, and improves the training accuracy of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113641659B_ABST
    Figure CN113641659B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of big data, and discloses a method, device, equipment and storage medium for constructing a medical feature database. The method includes: obtaining original medical data, and normalizing the original medical data to obtain normalized original medical data; completing the normalized original medical data to obtain completed original medical data, and classifying and storing the completed original medical data to obtain multiple category data tables; using a preset logic processing method to splice the data in each category data table to obtain multiple data wide tables, and hierarchically dividing the data in each data wide table according to preset feature dimension information; according to preset medical scenarios, extracting basic features from each hierarchically divided data wide table in turn, and using the basic features to construct a basic medical feature database. The present invention realizes the automated construction of a standardized medical feature database, and constructs a derivative feature library according to application scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data, and in particular to a method, device, equipment and storage medium for constructing a medical feature database. Background Art

[0002] Big data risk control is an important area in the field of artificial intelligence. With the rise of big data risk control technology, it can support self-medical big data management and be applied to risk control in the medical field. Billions of data are generated all the time in daily life. Based on massive data, building a feature library can more realistically describe the characteristics of the world. A rich feature library is of great significance to machine learning models and is the key to whether a good model can be trained.

[0003] A complete and high-quality feature construction method can train a more accurate model. After the logic script is solidified and repeatedly executed, it can reduce the manpower for data quality inspection and save a lot of time and manpower. However, traditional feature generation methods are scattered, unsystematic, and mostly rely on manual business experience, which is time-consuming and labor-intensive, that is, they cannot provide a standardized medical feature database. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem of being unable to provide a standardized medical feature database construction.

[0005] The first aspect of the present invention provides a method for constructing a medical feature database, comprising: obtaining original medical data, and normalizing the original medical data to obtain normalized original medical data; completing the normalized original medical data to obtain completed original medical data, and classifying and storing the completed original medical data to obtain a plurality of category data tables; using a preset logic processing method to splice the data in each of the category data tables to obtain a plurality of data wide tables, and hierarchically dividing the data in each of the data wide tables according to preset feature dimension information; according to preset medical scenarios, extracting basic features in turn from each of the hierarchically divided data wide tables, and using the basic features to construct a basic medical feature database.

[0006] Optionally, in a first implementation method of the first aspect of the present invention, after extracting basic features in sequence from each hierarchically divided data wide table according to the preset medical scenario and using the basic features to construct a basic medical feature database, it also includes: obtaining feature derivative demand information, and classifying the basic features in the basic feature library into feature types according to the feature derivative demand information to obtain multiple feature type variables; using a preset feature learning model to perform feature conversion on each of the feature category variables to obtain derived features corresponding to the feature derivative demand information, and using the derived features to update the basic medical feature database.

[0007] Optionally, in a second implementation method of the first aspect of the present invention, the normalization processing of the original medical data to obtain normalized original medical data includes: performing data quality testing on the original medical data, and performing category statistics on the original medical data based on the results of the data quality testing to obtain a data category statistics table; performing data cleaning on the data in the data category statistics table according to the data categories corresponding to the data category statistics table, and using the cleaned data as the normalized original medical data.

[0008] Optionally, in a third implementation method of the first aspect of the present invention, the completing the normalized original medical data to obtain the completed original medical data includes: determining the missing values ​​in the cleaned data category statistical table, and determining the data type of the missing values; according to the data type of the missing values, using a preset business logic formula, using the normalized original medical data to calculate the completed value corresponding to the missing value; writing the completed value into the position corresponding to the missing value, and using the data in the data category statistical table after writing the completed value as the completed original medical data.

[0009] Optionally, in a fourth implementation of the first aspect of the present invention, the use of a preset logic processing method to splice the data in each of the category data tables to obtain a plurality of wide data tables includes: using a preset logic processing method to identify the declaration information and detailed data of the data in each of the category data tables; according to the structural logic in the logic processing method, respectively splicing the declaration information and the detailed data to obtain a declaration data wide table and a detailed data wide table accordingly, wherein the data wide table includes the declaration data wide table and the logic data wide table.

[0010] Optionally, in a fifth implementation manner of the first aspect of the present invention, the hierarchical division of the data of each of the data wide tables according to the preset feature dimension information includes: determining multiple feature dimensions in the preset feature dimension information and feature priorities corresponding to each of the feature dimensions; identifying the feature dimensions of the data in the data wide table, and determining, based on the feature priorities, the division levels of the data corresponding to each feature dimension in the data wide table; and dividing the data corresponding to each feature dimension in the data wide table according to the division levels.

[0011] The second aspect of the present invention provides a medical feature database construction device, including: a normalization processing module, used to obtain original medical data, and normalize the original medical data to obtain normalized original medical data; a completion storage module, used to complete the normalized original medical data to obtain completed original medical data, and classify and store the completed original medical data to obtain multiple category data tables; a hierarchical division module, used to use a preset logical processing method to splice the data in each of the category data tables to obtain multiple data wide tables, and hierarchically divide the data in each of the data wide tables according to preset feature dimension information; a first construction module, used to extract basic features from each of the hierarchically divided data wide tables in turn according to preset medical scenarios, and use the basic features to construct a basic medical feature database.

[0012] Optionally, in a first implementation method of the second aspect of the present invention, the medical feature database construction device also includes a second construction module, which is used to: obtain feature derivative demand information, and classify the basic features in the basic feature library into feature types according to the feature derivative demand information to obtain multiple feature type variables; use a preset feature learning model to perform feature conversion on each of the feature category variables to obtain derived features corresponding to the feature derivative demand information, and use the derived features to update the basic medical feature database.

[0013] Optionally, in a second implementation of the second aspect of the present invention, the normalization processing module includes: a detection unit, used to perform data quality detection on the original medical data, and perform category statistics on the original medical data based on the results of the data quality detection to obtain a data category statistics table; a cleaning unit, used to perform data cleaning on the data in the data category statistics table according to the data categories corresponding to the data category statistics table, and use the cleaned data as the normalized original medical data.

[0014] Optionally, in a third implementation method of the second aspect of the present invention, the completion storage module includes: a determination unit, used to determine the missing values ​​in the cleaned data category statistical table, and determine the data type of the missing values; a calculation unit, used to calculate the completion value corresponding to the missing value using the normalized original medical data according to the data type of the missing value through a preset business logic formula; a completion unit, used to write the completion value into the position corresponding to the missing value, and use the data in the data category statistical table after the completion value is written as the completion original medical data.

[0015] Optionally, in a fourth implementation of the second aspect of the present invention, the hierarchical division module includes a splicing unit, which is used to: adopt a preset logic processing method to identify the declaration information and detailed data of the data in each of the category data tables; according to the structural logic in the logic processing method, respectively splice the declaration information and the detailed data to obtain a declaration data wide table and a detailed data wide table accordingly, wherein the data wide table includes the declaration data wide table and the logic data wide table.

[0016] Optionally, in a fifth implementation of the second aspect of the present invention, the hierarchical division module also includes a hierarchical division unit, which is used to: determine multiple feature dimensions in the preset feature dimension information and feature priorities corresponding to each feature dimension; identify the feature dimensions of the data in the data wide table, and determine the division levels of the data corresponding to each feature dimension in the data wide table according to the feature priorities; and divide the data corresponding to each feature dimension in the data wide table according to the division levels.

[0017] The third aspect of the present invention provides a medical feature database construction device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the medical feature database construction device executes the above-mentioned medical feature database construction method.

[0018] A fourth aspect of the present invention provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned medical feature database construction method.

[0019] In the technical solution provided by the present invention, the original medical data is first normalized to improve the quality of the original medical data, and then the missing values ​​of the original medical data are filled and classified and stored as multiple category data tables. Then, through a preset logic processing method, the data in each category data table is spliced ​​into a data wide table and divided into levels. Subsequently, basic features are directly extracted from the data wide table after the hierarchical division to construct a basic medical feature database, which can be expanded from multiple dimensions to generate a large number of basic features. Finally, a basic medical feature database is generated, and it is suitable for the rapid and standardized construction of basic medical feature databases in various application scenarios, saving time and labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a schematic diagram of a first embodiment of a method for constructing a medical feature database in an embodiment of the present invention;

[0021] Figure 2 It is a schematic diagram of a second embodiment of the method for constructing a medical feature database in an embodiment of the present invention;

[0022] Figure 3 It is a schematic diagram of a third embodiment of the method for constructing a medical feature database in an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of an embodiment of a medical feature database construction device in an embodiment of the present invention;

[0024] Figure 5 It is a schematic diagram of another embodiment of the medical feature database construction device in an embodiment of the present invention;

[0025] Figure 6 A schematic diagram of an embodiment of a medical feature database construction device in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The embodiment of the present invention provides a method, device, equipment and storage medium for constructing a medical feature database, which obtains original medical data, and performs normalization processing on the original medical data to obtain normalized original medical data; the normalized original medical data is supplemented to obtain supplemented original medical data, and the supplemented original medical data is classified and stored to obtain multiple category data tables; a preset logic processing method is used to splice the data in each category data table to obtain multiple data wide tables, and the data of each data wide table is hierarchically divided according to preset feature dimension information; according to preset medical scenarios, basic features are sequentially extracted from each hierarchically divided data wide table, and a basic medical feature database is constructed using the basic features. The present invention realizes the automated construction of a standardized medical feature database and constructs a derivative feature library according to application scenarios.

[0027] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "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 necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first embodiment of the method for constructing a medical feature database in the embodiment of the present invention includes:

[0029] 101. Obtaining original medical data, and performing normalization processing on the original medical data to obtain normalized original medical data;

[0030] It is understandable that the execution subject of the present invention may be a medical feature database construction device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.

[0031] Medical cloud refers to the use of cloud computing to create a cloud platform for medical and health services based on new technologies such as cloud computing, mobile technology, multimedia, 4G communications, big data, and the Internet of Things, combined with medical technology, to achieve the sharing of medical resources and the expansion of medical scope. Because of the application of cloud computing technology, medical cloud improves the efficiency of medical institutions and facilitates residents to seek medical treatment. For example, hospital appointment registration, electronic medical records, and medical insurance are all products of the combination of cloud computing and the medical field. Medical cloud also has the advantages of data security, information sharing, dynamic expansion, and overall layout.

[0032] In this embodiment, the original medical data here refers to the original data of clinical visits in major hospitals, which may include text, tables, pictures and other formats, which are not specifically limited here. The acquired original medical data is first normalized, and the duplicate data, erroneous data and missing data in the original medical data are normalized according to pre-set rules, so that the original medical data used for the subsequent construction of the medical feature database is more regular, and the quality of the original medical data is improved.

[0033] Specifically, data quality inspection specifications can be formulated: statistical descriptive analysis based on general business data, data quality control from the perspectives of completeness, consistency, accuracy, timeliness, etc., to form data quality inspection specifications. According to the "Data Quality Inspection Specifications", statistics are collected on missing values ​​and abnormal values ​​in the fields, and the lists are filled for output.

[0034] 102. Complete the normalized original medical data to obtain completed original medical data, and classify and store the completed original medical data to obtain multiple category data tables;

[0035] In this embodiment, the normalized original medical data may be missing some original medical data, and the missing original medical data needs to be supplemented here for the subsequent construction of a complete medical feature database. First, the normalized original medical data needs to be checked to determine the missing content in the normalized original medical data, and then the missing content is filled or deleted according to the preset rules according to the determined missing content, and finally the data is classified and written according to the categories of different original medical data to obtain multiple category data tables.

[0036] Specifically, when performing missing value checks, there are three situations in which missing values ​​may occur. The first is that the resolution rate is low when obtaining the original medical data. The second is that some data is missing from the original medical data. The third is that problems occur in the development of the data preparation script. There are three processing methods. The first is to filter the missing values, that is, to delete the records containing missing values. The second is to fill in the missing values, that is, to calculate and complete the missing values ​​according to a certain relationship function based on the same record of the original medical data. The third is to treat the missing values ​​as an independent group and fill them with preset values.

[0037] 103. Use a preset logic processing method to splice the data in each category data table to obtain multiple data wide tables, and hierarchically divide the data in each data wide table according to preset feature dimension information;

[0038] In this embodiment, the category data table includes original medical data of different categories, and the detailed information in the original medical data is counted through multiple category data tables of detail dimension, and the declaration information corresponding to each detail information is counted through a category data table of claim dimension. Multiple category data tables of detail dimension are sequentially spliced ​​into each column in the blank table, and one column in the blank table is spliced ​​with the data in a category data table of detail dimension to obtain a wide data table of detail dimension, and then a category data table of claim dimension is spliced ​​into another blank table to obtain a wide data table of claim dimension, that is, the wide data table in this embodiment includes at least one wide data table of detail dimension and one wide data table of claim dimension.

[0039] In this embodiment, feature dimension information is pre-set according to actual business needs, and based on multiple data wide tables, the data stored in the data wide tables are expanded from multiple dimensions to perform hierarchical division. Among them, the feature dimension information may include feature dimensions such as the medical number dimension, the personnel number ID dimension, the hospital dimension, the insured unit dimension, the department dimension, the physician dimension, the project dimension, and the city dimension. At the same time, it is necessary to set the priority of each feature dimension in the feature dimension information for the hierarchical division of the corresponding data in the data wide table. When the medical data wide table is subsequently constructed, the data subject corresponding to the corresponding feature dimension is selected according to the priority.

[0040] 104. According to the preset medical scenarios, basic features are extracted from each hierarchically divided data wide table in turn, and the basic features are used to build a basic medical feature database.

[0041] In this embodiment, in different medical scenarios, different structures of basic medical feature databases can be standardized. For example, in a preset medical scenario, the hierarchical structure of the corresponding basic medical database is: {1 data domain: 1.1 modification type, 1.11 modifier, 1.111 derived indicator; 1.2 business process, 1.21 atomic indicator and 1.22 measurement; 1.3 dimension, 1.31 dimension attribute}, where the data domain is oriented to business analysis, abstracting the business process, modification type or dimension, and summarizing it as multiple behavioral events, which can be defined by declaring a data wide table. Under the business process, atomic indicators and measurement indicators can be defined. According to the hierarchical structure of the basic medical feature database, the basic features of the corresponding diagnosis number dimension, personnel number ID dimension, hospital dimension, insurance unit dimension, department dimension, physician dimension, project dimension, city dimension and other types in the data wide table are stored in the basic medical feature database.

[0042] In a possible implementation, the data is medical data, such as personal health records, prescriptions, examination reports, and the like.

[0043] In a possible implementation, the natural language text is a medical text, and the medical text may be an electronic healthcare record, an electronic personal health record, including a series of electronic records with preservation value such as medical records, electrocardiograms, and medical images.

[0044] Information query has become a channel for users to quickly obtain the information they need in many scenarios. For example, in the medical field, the medical record information required by users can be queried from massive electronic medical records based on artificial intelligence models, which helps to provide users with medical record references.

[0045] In a possible implementation, the data is medical data, such as personal health records, prescriptions, examination reports, and the like.

[0046] In a possible implementation, the natural language text is a medical text, and the medical text may be an electronic healthcare record, an electronic personal health record, including a series of electronic records with preservation value such as medical records, electrocardiograms, and medical images.

[0047] Information query has become a channel for users to quickly obtain the information they need in many scenarios. For example, in the medical field, the medical record information required by users can be queried from massive electronic medical records based on artificial intelligence models, which helps to provide users with medical record references.

[0048] In an embodiment of the present invention, the original medical data is first normalized to improve its quality, and then missing values ​​are filled in for the original medical data, and the data is classified and stored as multiple category data tables. Then, through a preset logic processing method, the data in each category data table is spliced ​​into a data wide table and divided into levels. Subsequently, basic features are directly extracted from the data wide table after the hierarchical division to construct a basic medical feature database, so as to expand from multiple dimensions and generate a large number of basic features. Finally, a basic medical feature database is generated, which is suitable for the rapid and standardized construction of basic medical feature databases in various application scenarios, saving time and labor costs.

[0049] See also Figure 2 The second embodiment of the method for constructing a medical feature database in the embodiment of the present invention includes:

[0050] 201. Obtaining original medical data, and performing normalization processing on the original medical data to obtain normalized original medical data;

[0051] 202. Determine the missing values ​​in the cleaned data category statistics table and determine the data type of the missing values;

[0052] 203. According to the data type of the missing value, the normalized original medical data is used to calculate the corresponding complement value of the missing value through the preset business logic formula;

[0053] 204. Write the completed value into the position corresponding to the missing value, and use the data in the data category statistics table after the completed value is written as the completed original medical data;

[0054] In this embodiment, the blank positions in the data category statistics table are missing values. According to the data type to which it belongs, other categories of data of the same original medical data are used to complete the missing values ​​through business logic formulas, wherein the missing value field is used as the dependent variable, and the field without missing values ​​is used as the independent variable. Decision trees, random forests, KNN (K-NearestNeighbor, K nearest neighbor algorithm), regression and other prediction algorithms are used to predict the missing values ​​and fill them with the prediction results. For example: number of days of diagnosis and treatment = discharge date - hospitalization date. Personal out-of-pocket amount within the scope of basic medical insurance = total medical expenses - amount paid by the basic medical insurance pooling fund - personal out-of-pocket cash within the scope of this visit policy - amount paid by the supplementary medical fund, etc.

[0055] Specifically, when the completed original medical data is classified and written, that is, the completed original medical data is processed, two dimensional category data tables are obtained after processing, the category data table of the claim dimension (declaration table) and the category data table of the detail dimension (detailed table), wherein the category data table of the claim dimension may include a category data table named etl_fwa_claim_gui, and the category data table of the detail dimension may include category data tables named etl_fwa_insured_population_gui, fwa_hosp_info, gui_hosp_category, etl_fwa_diagnose_gui, fwa_kc40k2, fwa_kc40k4, fwa_os_diag_rn, and ftl_fwa_claim_detail_gui.

[0056] 205. Classify and store the completed original medical data to obtain multiple category data tables;

[0057] 206. Use preset logic processing methods to identify the declaration information and detailed data of the data in each category of data table;

[0058] 207. According to the structural logic in the logic processing method, the declaration information and the detailed data are spliced ​​respectively to obtain a declaration data wide table and a detailed data wide table, wherein the data wide table includes a declaration data wide table and a logic data wide table;

[0059] In this embodiment, the category data table of the claim dimension stores declaration information, and the multiple category data tables of the detail dimension store detailed data, and the declaration information in the category data table of the claim dimension corresponds to the detailed data in the multiple category data tables of the detail dimension one by one. After the declaration information and detailed data are identified, the declaration information and detailed data of each row of data in the blank table are determined according to the structural logic of the pre-set logical processing method. Among them, the declaration information in the category data table of the claim dimension is spliced ​​to obtain a wide table of declaration data, and the detailed data in the multiple category data tables of the detail dimension are spliced ​​to obtain a wide table of detailed data. According to the corresponding relationship between the declaration information and the detailed data, the data corresponding to the wide table of declaration data and the wide table of detailed data also share the corresponding relationship.

[0060] Specifically, for example, the category data table of the detail dimension includes category data tables such as insured population, hospital information, hospital category, and disease diagnosis, which record index fields and detailed information. The category data table of the claim dimension can include a category data table that records the index fields in each detail dimension category data table, and the category data table of the claim dimension is associated with the category data table of the detail dimension. After the category data table is spliced ​​into the data wide table, the data in the claim data wide table and the detail data wide table still correspond one to one through the index fields.

[0061] 208. Determine multiple feature dimensions in the preset feature dimension information and feature priorities corresponding to each feature dimension;

[0062] 209. Identify the characteristic dimensions of data in the wide data table, and determine the division level of data corresponding to each characteristic dimension in the wide data table according to the characteristic priority;

[0063] 210. Divide the data corresponding to each characteristic dimension in the data wide table according to the division level;

[0064] In this embodiment, dimensional modeling is used as a theoretical basis to standardize the feature priority of each feature dimension in the feature dimension information, and the data in the data wide table is hierarchically divided according to the priority of the feature dimension.

[0065] Specifically, for example, the constructed basic medical feature database is based on two wide tables and expanded from eight dimensions, including the consultation number dimension, personnel number ID dimension, hospital dimension, insured unit dimension, department dimension, physician dimension, project dimension, and city dimension; if the priorities of the feature dimensions in the dimensional feature information are from high to low: consultation number dimension > personnel number ID dimension > hospital dimension > insured unit dimension > department dimension > physician dimension > project dimension > city dimension, then the corresponding data is divided according to the priority, and is successively used as data domain, business process, atomic indicator, derived indicator, measurement and other levels.

[0066] 211. According to the preset medical scenarios, basic features are extracted from each hierarchically divided data wide table in turn, and the basic features are used to build a basic medical feature database.

[0067] In the embodiment of the present invention, according to the pre-established data quality inspection specification, data normalization processing can be performed from the four perspectives of completeness, consistency, accuracy, and timeliness to improve the quality of the initial medical data and store the initial medical data in a standardized manner. At the same time, the missing values ​​and abnormal values ​​of the fields can be counted, supplemented, and corrected through the "Data Quality Inspection Specification" to further improve the quality of the initial medical data, clean the category data such as hospital grade, medical category, and fee item grade, and output the category data table of the corresponding category. Through the early processing of the initial medical data, the accuracy and standardization of the subsequent automatic construction of the basic medical feature database can be improved.

[0068] See also Figure 3 The third embodiment of the method for constructing a medical feature database in the embodiment of the present invention includes:

[0069] 301. Obtaining original medical data;

[0070] 302. Perform data quality testing on the original medical data, and perform category statistics on the original medical data according to the results of the data quality testing to obtain a data category statistics table;

[0071] 303. According to the data categories corresponding to the data category statistical table, respectively clean the data in the data category statistical table, and use the cleaned data as the normalized original medical data;

[0072] In this embodiment, when performing data quality detection on the original medical data, the main detection is repeated values, data skew and abnormal values, and the detection results are compiled into a data category statistical table. Finally, the original medical data in the data category statistical table is cleaned for hospital grade, medical category, fee item grade and other category data to obtain the corresponding category. The data quality detection is specifically as follows:

[0073] When checking for duplicate values, there are two situations in which duplicate values ​​may appear. The first is when identical records appear in key fields, such as duplicate primary index fields. In a table, a user should only have one record. If a user has more than one record, it is a duplicate value. The second is when identical records appear in all fields, such as duplicate detailed content. In a table, a record of the same dimension corresponds to multiple users, which is a duplicate value. The solution for this is to directly delete the duplicate values.

[0074] When performing data skew checks, there are two situations in which data skew may occur. The first is that the distribution of the original medical data itself is skewed, and the second is a problem with the data preparation script. The frequency flattening method can be used for inspection. For continuous fields, first use equal-width binning to discretize, and then calculate the distribution of the number of records in each bin; for discrete fields, directly calculate the distribution of the number of records in each category. Generally speaking, if more than 90% of the records in a field are mainly concentrated in a specific category or a specific interval, then this field has a serious data skew problem.

[0075] When performing outlier checks, there are two situations in which outliers may occur. The first is errors that occur during data collection, generation or transmission, and the second is special situations that occur during business operations. The extreme value detection method can be used to check for outliers to check whether the detail field exceeds a reasonable preset value range, specifically through the maximum value + minimum value method, or through the normal distribution method or through box plot analysis. There are two main ways to handle outliers: elimination or replacement, where elimination refers to directly deleting outlier records from the data set, and replacement refers to replacing the outlier with a non-outlier value, such as a boundary value.

[0076] 304. Completing the normalized original medical data to obtain the completed original medical data, and classifying and storing the completed original medical data to obtain a plurality of category data tables;

[0077] 305. Use a preset logic processing method to splice the data in each category data table to obtain multiple data wide tables, and hierarchically divide the data in each data wide table according to preset feature dimension information;

[0078] 306. According to the preset medical scenarios, basic features are extracted from each hierarchically divided data wide table in turn, and a basic medical feature database is constructed using the basic features;

[0079] 307. Obtain feature derivation requirement information, and classify the basic features in the basic feature library into feature types according to the feature derivation requirement information to obtain multiple feature type variables;

[0080] 308. Using a preset feature learning model, perform feature conversion on each feature category variable to obtain a derived feature corresponding to the feature derivative demand information, and use the derived feature to update the basic medical feature database;

[0081] In this embodiment, according to the feature derivation demand information, the basic medical feature database is further sorted, and based on the feature derivation demand information, the basic features in the basic medical feature database are classified into feature types, which can be divided into categories such as numerical variables, categorical variables, time variables, nominal variables, and hierarchical variables. Numerical calculations, logical operations, evidence weights and other operations are performed on the above data types respectively to update the basic medical feature database and obtain a derived basic medical feature database.

[0082] Specifically, the time range or time point of medical data statistics can be clarified according to the time period, such as the last 30 days, natural week, as of the current day, etc.; Measurement (atomic indicator): It can also be an atomic indicator and a measurement with the same meaning, such as payment amount, medical number, item, etc.; it can also be a geographical dimension (city, hospital), time dimension, etc.; it can also be a derived indicator, which contains a combination of multiple items including time period, atomic indicator, geographical latitude, time dimension, etc. For example, a derived indicator specifies the relevant data of a patient (medical number) in hospital B in city A and physician D in department C.

[0083] In this embodiment, after generating the basic medical feature database and the derived medical feature database, a corresponding database script may be further generated. When there is new original medical data storage, the corresponding database script may be directly used to complete the construction of the new basic medical feature database and the derived medical feature database, or the new original medical data may be directly stored in the corresponding basic medical feature database and the derived medical feature database. Specifically, the database script may be developed using Python, SQL or Spark language.

[0084] In the embodiment of the present invention, the basic feature medical database is based on two wide data tables, expanded from multiple dimensions, and arranged according to the dimensional priority; in addition, feature classification can be further performed based on the basic medical feature database, and numerical calculations, logical operations, weight calculations and other operations can be performed on different data types to construct a derivative feature library under different business scenarios; finally, based on different medical business scenarios, an automated construction script for the basic medical feature database and the derivative medical feature database is constructed.

[0085] The above describes the method for constructing a medical feature database in an embodiment of the present invention. The following describes the device for constructing a medical feature database in an embodiment of the present invention. Figure 4 In one embodiment of the present invention, a device for constructing a medical feature database includes:

[0086] The normalization processing module 401 is used to obtain original medical data and perform normalization processing on the original medical data to obtain normalized original medical data;

[0087] A completion storage module 402 is used to complete the normalized original medical data to obtain completed original medical data, and to classify and store the completed original medical data to obtain a plurality of category data tables;

[0088] The hierarchical division module 403 is used to use a preset logic processing method to splice the data in each of the category data tables to obtain multiple data wide tables, and hierarchically divide the data in each of the data wide tables according to preset feature dimension information;

[0089] The first construction module 404 is used to extract basic features from each hierarchically divided data wide table in turn according to the preset medical scenario, and use the basic features to construct a basic medical feature database.

[0090] In an embodiment of the present invention, the original medical data is first normalized to improve its quality, and then missing values ​​are filled in for the original medical data, and the data is classified and stored as multiple category data tables. Then, through a preset logic processing method, the data in each category data table is spliced ​​into a data wide table and divided into levels. Subsequently, basic features are directly extracted from the data wide table after the hierarchical division to construct a basic medical feature database, so as to expand from multiple dimensions and generate a large number of basic features. Finally, a basic medical feature database is generated, which is suitable for the rapid and standardized construction of basic medical feature databases in various application scenarios, saving time and labor costs.

[0091] See also Figure 5 Another embodiment of the medical feature database construction device in the embodiment of the present invention includes:

[0092] The normalization processing module 401 is used to obtain original medical data and perform normalization processing on the original medical data to obtain normalized original medical data;

[0093] A completion storage module 402 is used to complete the normalized original medical data to obtain completed original medical data, and to classify and store the completed original medical data to obtain a plurality of category data tables;

[0094] The hierarchical division module 403 is used to use a preset logic processing method to splice the data in each of the category data tables to obtain multiple data wide tables, and hierarchically divide the data in each of the data wide tables according to preset feature dimension information;

[0095] The first construction module 404 is used to extract basic features from each hierarchically divided data wide table in turn according to the preset medical scenario, and use the basic features to construct a basic medical feature database.

[0096] Specifically, the medical feature database construction device further includes a second construction module 405, which is used to:

[0097] Acquire feature derivation requirement information, and classify the basic features in the basic feature library into feature types according to the feature derivation requirement information to obtain a plurality of feature type variables;

[0098] A preset feature learning model is used to perform feature conversion on each of the feature category variables to obtain derived features corresponding to feature derived demand information, and the derived features are used to update the basic medical feature database.

[0099] Specifically, the normalization processing module 401 includes:

[0100] The detection unit 4011 is used to perform data quality detection on the original medical data, and perform category statistics on the original medical data according to the result of the data quality detection to obtain a data category statistics table;

[0101] The cleaning unit 4012 is used to clean the data in the data category statistical table according to the data categories corresponding to the data category statistical table, and use the cleaned data as the normalized original medical data.

[0102] Specifically, the completion storage module 402 includes:

[0103] A determination unit 4021 is used to determine missing values ​​in the cleaned data category statistical table and determine the data type of the missing values;

[0104] A calculation unit 4022 is used to calculate the complementary value corresponding to the missing value using the normalized original medical data according to the data type of the missing value and by using a preset business logic formula;

[0105] The completion unit 4023 is used to write the completion value into the position corresponding to the missing value, and use the data in the data category statistical table after the completion value is written as the completed original medical data.

[0106] Specifically, the hierarchical division module 403 includes a splicing unit 4031, which is used to:

[0107] Using a preset logic processing method, identifying the declaration information and detailed data of the data in each of the categories of data tables;

[0108] According to the structural logic in the logic processing method, the declaration information and the detailed data are spliced ​​respectively to obtain a declaration data wide table and a detailed data wide table correspondingly, wherein the data wide table includes the declaration data wide table and the logic data wide table.

[0109] Specifically, the hierarchical division module 403 further includes a hierarchical division unit 4032, which is used to:

[0110] Determine multiple feature dimensions in the preset feature dimension information and feature priorities corresponding to each of the feature dimensions;

[0111] Identifying characteristic dimensions of data in the wide data table, and determining, according to the characteristic priority, a division level of data corresponding to each characteristic dimension in the wide data table;

[0112] According to the division level, the data corresponding to each characteristic dimension in the data wide table is divided.

[0113] In the embodiment of the present invention, according to the pre-established data quality inspection specification, data normalization processing can be performed from the four perspectives of completeness, consistency, accuracy, and timeliness to improve the quality of the initial medical data and store the initial medical data in a standardized manner. At the same time, the missing values ​​and abnormal values ​​of the fields can be counted, supplemented, and corrected through the "Data Quality Inspection Specification", so as to further improve the quality of the initial medical data, clean the category data such as hospital grade, medical category, and fee item grade, and output the category data table of the corresponding category. Through the early processing of the initial medical data, the accuracy and standardization of the subsequent automatic construction of the basic medical feature database are improved; in addition, the basic feature medical database is based on two data wide tables, expanded from multiple dimensions, and arranged according to the priority of the dimensions; in addition, feature classification can be further performed based on the basic medical feature database, and numerical calculations, logical operations, weight calculations, and other operations can be performed on different data types to construct derivative feature libraries under different business scenarios; finally, based on different medical business scenarios, the automatic construction scripts of the basic medical feature database and the derivative medical feature database are constructed.

[0114] above Figure 4 and Figure 5 The medical feature database construction device in the embodiment of the present invention is described in detail from the perspective of modular functional entities, and the medical feature database construction device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0115] Figure 6: is a schematic diagram of the structure of a medical feature database construction device provided by an embodiment of the present invention. The medical feature database construction device 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the medical feature database construction device 600. Furthermore, the processor 610 can be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the medical feature database construction device 600.

[0116] The medical feature database construction device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 6 The structure of the medical feature database construction device shown does not constitute a limitation on the medical feature database construction device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0117] The present invention also provides a medical feature database construction device, the computer device includes a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the medical feature database construction method in the above-mentioned embodiments.

[0118] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the medical feature database construction method.

[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0121] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing a medical feature database. It is characterized in that The medical feature database construction method comprises: Acquiring original medical data, and performing normalization processing on the original medical data to obtain normalized original medical data; Completing the normalized original medical data to obtain completed original medical data, and classifying and storing the completed original medical data to obtain a plurality of category data tables; A preset logic processing method is used to splice the data in each of the category data tables to obtain multiple data wide tables, and the data in each of the data wide tables is hierarchically divided according to the preset feature dimension information, wherein the declaration information and detailed data of each row of data spliced ​​in the blank table are determined according to the structural logic of the preset logic processing method, a declaration data wide table is obtained according to the declaration information, and a detailed data wide table is obtained according to the detailed data, and the data wide table includes a declaration data wide table and a detailed data wide table; According to the preset medical scenarios, basic features are extracted from each hierarchically divided data wide table in turn, and a basic medical feature database is constructed using the basic features; Acquire feature derivative demand information, and classify the basic features in the basic feature library into feature types according to the feature derivative demand information to obtain a plurality of feature type variables; adopt a preset feature learning model to perform feature conversion on each of the feature category variables to obtain derived features corresponding to the feature derivative demand information, and adopt the derived features to update the basic medical feature database.

2. The method for constructing a medical feature database according to claim 1, It is characterized in that The normalizing the original medical data to obtain normalized original medical data comprises: Performing data quality detection on the original medical data, and performing category statistics on the original medical data according to the result of the data quality detection to obtain a data category statistics table; According to the data categories corresponding to the data category statistical table, data cleaning is performed on the data in the data category statistical table respectively, and the cleaned data is used as the normalized original medical data.

3. The method for constructing a medical feature database according to claim 2, It is characterized in that The completing the normalized original medical data to obtain the completed original medical data comprises: Determine the missing values ​​in the cleaned data category statistics table, and determine the data type of the missing values; According to the data type of the missing value, the normalized original medical data is used to calculate the complementary value corresponding to the missing value through a preset business logic formula; The completion value is written into the position corresponding to the missing value, and the data in the data category statistics table after the completion value is written is used as the completion of the original medical data.

4. The method for constructing a medical feature database according to claim 1, It is characterized in that The preset logic processing method is used to splice the data in each category data table to obtain multiple data wide tables including: Using a preset logic processing method, identifying the declaration information and detailed data of the data in each of the categories of data tables; According to the structural logic in the logic processing method, the declaration information and the detailed data are spliced ​​respectively to obtain a declaration data wide table and a detailed data wide table correspondingly, wherein the data wide table includes the declaration data wide table and the detailed data wide table.

5. The method for constructing a medical feature database according to any one of claims 1 to 4, It is characterized in that The step of dividing the data of each of the data wide tables into different levels according to the preset characteristic dimension information comprises: Determine multiple feature dimensions in the preset feature dimension information and feature priorities corresponding to each of the feature dimensions; Identifying characteristic dimensions of data in the wide data table, and determining, according to the characteristic priority, a division level of data corresponding to each characteristic dimension in the wide data table; According to the division level, the data corresponding to each characteristic dimension in the data wide table is divided.

6. A medical feature database construction device, It is characterized in that The medical feature database construction device comprises: A normalization processing module, used for acquiring original medical data and performing normalization processing on the original medical data to obtain normalized original medical data; A completion storage module, used for completing the normalized original medical data to obtain completed original medical data, and classifying and storing the completed original medical data to obtain a plurality of category data tables; A hierarchical division module is used to use a preset logic processing method to splice the data in each of the category data tables to obtain multiple data wide tables, and hierarchically divide the data in each of the data wide tables according to preset feature dimension information, wherein the declaration information and detailed data of each row of data spliced ​​in the blank table are determined according to the structural logic of the preset logic processing method, a declaration data wide table is obtained according to the declaration information, and a detailed data wide table is obtained according to the detailed data, and the data wide table includes a declaration data wide table and a detailed data wide table; The first construction module is used to extract basic features from each hierarchically divided data wide table in turn according to the preset medical scenario, and use the basic features to build a basic medical feature database; obtain feature derivative demand information, and classify the basic features in the basic feature library according to the feature derivative demand information to obtain a plurality of feature type variables; use a preset feature learning model to perform feature conversion on each of the feature category variables to obtain derived features corresponding to the feature derivative demand information, and use the derived features to update the basic medical feature database.

7. The medical feature database construction device according to claim 6, It is characterized in that The medical feature database construction device further includes a second construction module, which is used to: Acquire feature derivation requirement information, and classify the basic features in the basic feature library into feature types according to the feature derivation requirement information to obtain a plurality of feature type variables; A preset feature learning model is used to perform feature conversion on each of the feature category variables to obtain derived features corresponding to feature derived demand information, and the derived features are used to update the basic medical feature database.

8. A medical feature database construction device, It is characterized in that The medical feature database construction device includes: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the medical feature database construction device to execute the medical feature database construction method as described in any one of claims 1-5.

9. A computer-readable storage medium having instructions stored thereon, It is characterized in that When the instructions are executed by the processor, the medical feature database construction method as described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Data wide table construction method and device, equipment and storage medium

    CN111858600A

  • Data processing method and system based on medical health big data

    CN112365939A