Machine learning techniques for discovering keys in relational datasets
Abstract
Techniques for discovering primary, unique, and/or foreign keys for relational datasets are described. The techniques include profiling the relational datasets to obtain respective data profiles; identifying one or more primary key candidates for a first relational dataset using a first data profile of the first relational dataset and a first trained machine learning model; identifying one or more foreign key proposals for a second relational dataset using the one or more primary key candidates by performing a subset analysis of the second relational dataset with respect to the first relational dataset; identifying one or more foreign key candidates for the second relational dataset using the first data profile, a second data profile of the second relational dataset, and a second trained machine learning model different from the first trained machine learning model; and outputting the at primary key candidate(s) and the foreign key candidate(s).
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method for identifying labels for keys discovered for multiple relational datasets managed by a data processing system, the method comprising: using at least one computer hardware processor to perform: identifying primary key candidates for a first relational dataset using a first data profile generated using values of entries in fields of the first relational dataset and a first trained machine learning (ML) model trained to score primary key proposals for a relational dataset using feature values obtained using a data profile generated from the relational dataset, wherein identifying the primary key candidates comprises: generating, from the first data profile, sets of primary key feature values for respective primary key proposals, each of the primary key proposals corresponding to one or more fields of the first relational dataset; and processing the sets of primary key feature values using parameter values of the first trained ML model to obtain outputs indicating an extent to w
- Claim 2Depends on #1
The method of claim 1, further comprising generating data profiles for the multiple relational datasets, the generating comprising: analyzing data stored in each of the multiple relational datasets to generate respective data profiles including the first and second data profiles for the respective first and second relational datasets, the analyzing comprising determining statistical attributes for the fields of the first and second relational datasets from values of entries in the fields.
- Claim 3Depends on #1
The method of claim 1, wherein identifying the primary key candidates comprises: determining scores for the respective primary key proposals by processing the sets of primary key feature values using the parameter values of the first trained ML model, wherein the scores for the primary key proposals are indicative of the extent to which the primary key proposals can serve as primary keys for the first relational dataset.
- Claim 4Depends on #1
The method of claim 1, further comprising: identifying the foreign key proposals for the second relational dataset using the primary key candidates for the first relational dataset by performing a subset analysis of the second relational dataset with respect to the first relational dataset.
- Claim 5Depends on #4
The method of claim 4, wherein performing the subset analysis comprises: determining whether values of data stored in a field of the second relational dataset are a subset of values of data stored in a primary key candidate for the first relational dataset; and identifying the field of the second relational dataset as a foreign key proposal for the second relational dataset when the values of data stored in the field of the second relational dataset are a subset of the values of data stored in the primary key candidate for the first relational dataset.
- Claim 6Depends on #1
The method of claim 1, wherein identifying the foreign key candidates for the second relational dataset comprises: determining scores for respective foreign key proposals by processing the sets of foreign key feature values using the parameter values of the second trained ML model, wherein the scores for the foreign key proposals are indicative of the extent to which the foreign key proposals can serve as foreign keys for the second relational dataset that references a particular primary key candidate for the first relational dataset.
- Claim 7Depends on #1
The method of claim 1, further comprising: outputting the primary key candidates and the foreign key candidates.
- Claim 8Depends on #3
The method of claim 3, wherein outputting the primary key candidates and the foreign key candidates comprises: generating a graphical user interface displaying the primary key candidates and a quality rating of each of the primary key candidates that is determined based on the scores; and generating a graphical user interface displaying the foreign key candidates, one or more primary key targets for each foreign key candidate of the foreign key candidates, and a quality rating of each of the one or more primary key targets.
Technical Overview & Description
RELATED APPLICATIONS This application claims the benefit of priority under 35 U.S.C. 119 (e) to U.S. Provisional Patent Application Ser. No. 63/516,447, filed on Jul. 28, 2023, titled “ Machine Learning Techniques for Discovering Keys in Relational Datasets, ” which is hereby incorporated by reference herein in its entirety. BACKGROUND In a wide variety of databases and other data store solutions, data is stored in relational datasets. A relational dataset includes records and records include fields storing respective values. A table is an example of a relational dataset. Rows of a table may represent records and columns may represent fields (or vice versa). A relational dataset may have a primary key, one or more unique keys, and one or more foreign keys. One or more fields (e.g., one or more columns) that uniquely identify each row of a relational dataset and do not contain null or blank values may serve as a primary key for that relational dataset. A relational dataset can have only one primary key. A field of a relational dataset which does not contain duplicate values, but can contain one null or blank value, may serve as a unique key for the relational dataset. A relational dataset can have multiple unique keys. A foreign key is a field in a first relational dataset that refers to a field in a second relational dataset. The foreign key values typically refer to primary key or unique key values in the second relational dataset. A foreign key can refer to fields in different relational datasets. Therefore, a relational dataset can have multiple foreign keys. SUMMARY Some embodiments are directed to a method for discovering keys in relational datasets. The method comprises using at least one computer hardware processor to perform: profiling the relational datasets to obtain respective data profiles, each of the data profiles corresponding to a respective one of the relational datasets, the data profiles including a first data profile of a first relational dataset
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (27)
Non-Patent Literature (10)
- Artificial Intelligence and Machine Learning for Lead-to-Candidate Decision-Making and Beyond (Year: 2023).
- Prediction of Candidate Primary Immunodeficiency Disease Genes Using a Support Vector Machine Learning Approach (Year: 2009).
- International Search Report and Written Opinion for International Application No. PCT/US2024/039543 mailed Nov. 13, 2024.
- Flach et al., Database dependency discovery: a machine learning approach. AI communications. Jan. 1, 1999;12(3). 22 pages.
- Hofmann, Tracer: a machine learning approach to data lineage (Doctoral dissertation, Massachusetts Institute of Technology). May 20, 2020. 79 pages.
- Huhtala et al., TANE: An efficient algorithm for discovering functional and approximate dependencies. The computer journal. Jan. 1999;42(2):100-11.
- Papenbrock et al., A hybrid approach to functional dependency discovery. Proceedings of the 2016 International Conference on Management of Data Jun. 14, 2016:821-33.
- Papenbrock et al., A hybrid approach for efficient unique col. combination discovery. Datenbanksysteme fur Business, Technologie und Web (BTW 2017). 10 pages.
- Rostin et al., A machine learning approach to foreign key discovery. WebDB Jun. 28, 2009. 7 pages.
- International Preliminary Report on Patentability mailed Feb. 12, 2026 in connection with International Application No. PCT/US2024/039543.