Information retrieval and / or visualization method
By using Locality Sensitive Hash Forest Index and Probabilistic Layout Algorithm, the problem of efficient visualization and information retrieval in large databases is solved, achieving fast and low-resource-consumption visualization and information retrieval results.
Patent Information
- Application Number
- CN202080060121.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-08-12
- Filing Date
- 2020-08-12
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2040-08-12
AI Technical Summary
When dealing with large databases, identifying similar molecules is computationally expensive and inefficient. Existing tools struggle to effectively visualize and search high-dimensional data, resulting in high resource consumption and long computation times.
We employ a Local Sensitive Hash (LSH) forest index structure and a probabilistic layout algorithm to build an index tree using a hash function, generate a minimum spanning tree, and use the probabilistic layout algorithm to generate visualized data.
It enables rapid visualization and information retrieval of large, high-dimensional databases, reduces computing resource requirements and time costs, and improves the locality and interpretability of visualization.
Smart Images

Figure CN114287000B_ABST
Abstract
Description
[0001] This invention relates to information retrieval, and more particularly to the retrieval of information for generating data visualizations from an object database.
[0002] In recent years, storing massive amounts of data has become feasible, enabling the collection of data into ever-growing databases. One reason for storing data in large databases is the assumption that data patterns can be found that lead to scientific progress or have economic or other benefits; the larger the database, the better the expected results.
[0003] For example, when a given small target molecule exhibits certain positive biological effects at a given protein site, such as high binding affinity, but is unsuitable as a drug compound due to low solubility, one might hypothesize the existence of other similar molecules closely corresponding to the target molecule, possessing the same positive properties but without the negative ones. Now, if a chemical database contains data on a large number of small molecules related to their biological and physical properties, such as toxicity, binding affinity to specific protein sites, solubility, etc., similar molecules can be searched for in that database for drug discovery. Therefore, such molecules can be searched or "virtually screened" in the database, provided that molecules "similar" to the initial target molecule can be identified.
[0004] However, while it is expected that better results will be obtained with larger databases, the task of identifying similar molecules becomes increasingly computationally challenging as the database grows. Furthermore, assessing whether molecules in the database are similar to a given target molecule is extremely costly. Therefore, it is desirable to enable researchers to control the search results in the database and understand the patterns that lead to molecular “similarity” results.
[0005] Therefore, it is often desirable to visualize data structures in a way that is easy for researchers to understand. Given the computational challenges, this visualization should be implemented in a way that is applicable even with very large datasets. In this context, it should be noted that even if "small" molecules are limited to molecules with fewer than 17 atoms, databases such as PubChem and GDB can contain millions of entries. This fact presents significant technical challenges, as accessing information related to a large number of molecules or generating visualizations related to a large number of molecules requires not only a large amount of main memory, but also high memory bandwidth if results are to be obtained within an acceptable timeframe. Furthermore, even with powerful processors, the necessary computations themselves can take a very long time. It is understood that running powerful processors and accessing high-bandwidth memory for extended periods consumes considerable power.
[0006] Such problems are not only encountered when trying to retrieve information from chemical databases. For example, similar issues can arise when predicting faults based on sensor data from a machine with numerous sensors, when distinguishing between background and “real” signals viewed from detectors with many channels in a particle physics experiment, or when determining the author of a text in an extensive text database (which can be achieved by examining smaller fragments of the text).
[0007] It is understood that in the illustrative scenario, different parameters, such as different biological characteristics of molecules in a chemical database, values measured using different sensors, signal values of different channels in particle physics experiments, and even text fragments, are more or less independent of each other and can therefore be considered to constitute different dimensions.
[0008] From this perspective, information must be retrieved from objects in high-dimensional space, and if visualization is required, the displayed pattern must have a significantly lower dimension. Typically, patterns are displayed on a flat screen, so the pattern's dimension should be two-dimensional. However, it's also possible to display projections of 3D patterns on the screen, such as projections of 3D patterns rotating in three-dimensional space, making the three-dimensional pattern easily perceptible. Note that other dimensions can even be visualized by changing the attributes of the image on the screen (such as hue, color saturation, or line intensity), but even so, the visualized dimension is far lower than the dimension of the underlying database.
[0009] Therefore, this invention can also be considered a computer-implemented method for visualizing high-dimensional datasets.
[0010] According to "UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction" by L. McInnes et al., published on December 6, 2018, a manifold learning technique for dimensionality reduction is known. Dimensionality reduction aims to generate low-dimensional representations of high-dimensional data that preserve relevant structures and is an important problem in data notation for visualization and preprocessing in machine learning. Dimensionality reduction algorithms are said to tend to fall into two categories: those seeking to preserve distance structures in the data and those biased towards preserving local distances rather than global distances. In light of this, the UMAP algorithm is proposed as a combination of theoretical approaches to Riemannian geometry and fuzzy simplicial set geometry. UMAP uses a local manifold approximation, piecing together its local fuzzy simplicial set representations to construct a topological representation of the high-dimensional data. The authors explain that the first stage of the UMAP work can be considered as constructing a weighted k-neighborhood graph. In practice, UMAP reportedly uses a force-directed graph layout algorithm in the low-dimensional space, which utilizes a set of attractive forces applied along each edge and a set of repulsive forces applied between vertices. The authors also note that the k-nearest neighbor calculation can be performed with an empirical complexity of O(N).1.14 The algorithm implementation is described. It is then pointed out that the required optimization effort is proportional to the number of edges in the fuzzy graph, resulting in a complexity of O(kn). The authors also compare the computation with other algorithms, claiming that the UMAP algorithm executes faster than others. However, the algorithm is considered to lack the strong interpretability known from other techniques (such as principal component analysis), therefore, even though the authors recommend other techniques where strong interpretability is crucial.
[0011] According to the paper titled "PDB-Explorer: a web-based interactive map of the protein databank in shape space" by Jin et al. (BMC Bioinformatics (2015) 16:339 DOI 10.1186 / s12859-015-0776-9), one of the co-authors of this application is also an inventor. It is known that options for accessing the global structural diversity of a specific protein database remain limited. This document suggests using web-based database exploration tools, including an efficient color-coded map of the PDB chemical space and a nearest neighbor search tool. The authors recommend using their calculated molecular fingerprints to determine relationships between objects in the database.
[0012] According to the document "GTM: The Generative Topographic Mapping" (Technical Report NCRG / 96 / 015) by CMBishop et al., many datasets are known to exhibit significant correlations between variables, and one way to capture this structure is to model the data distribution based on latent or hidden variables. It is claimed that an important application of latent variable models is data visualization. Among other aspects, the authors also considered the computational cost and performance of different mapping algorithms. They also pointed out that a potential advantage of this algorithm in practical applications stems from the reduction in the number of trial training runs.
[0013] In T. Kohonen's document "The self-organizing map" (Proceedings of the IEEE, volume 68, no. 9, September 1990, pg. 1464 et sec), it is proposed that self-organizing maps create spatially organized "internal representations of various features," and that supervised fine-tuning of the weight vectors used can have the following effect: self-organizing maps are particularly successful in pattern recognition tasks involving very noisy signals. In the example, it is proposed to classify abstract data (non-hierarchical clustering) and compare the self-organizing map of the input data matrix with the minimum spanning tree corresponding to the input data matrix.
[0014] According to L. van der Maaten's paper "Visualizing Data using t-SNE" (Journal of Machine Learning Research 9 (2008) 2579-2605), a technique called t-SNE visualizes high-dimensional data by assigning each data point a known location in two- or three-dimensional space. This technique, known as a variant of random nearest neighbor embedding, explains why visualizing high-dimensional data is a fundamental problem in many different fields. The authors point out that traditional dimensionality reduction techniques (such as PCA and classical multidimensional scaling) focus on keeping the low-dimensional representations of dissimilar data points far apart. Conversely, for high-dimensional data located on or near low-dimensional nonlinear manifolds, it is often more important to keep the low-dimensional representations of similar data points close together, which is impossible when using linear mappings. Random nearest neighbor embedding first converts the high-dimensional or Euclidean distance between data points into conditional probabilities representing similarity. When the selected data point is a Gaussian center, and the selection of a nearest neighbor is proportional to the probability density of neighboring points, the similarity of each pair of data points is expressed as the conditional probability that one data point selects another data point as its nearest neighbor. This conditional probability is higher for nearby data points and almost infinitesimal for data points that are far apart. t-SNE recommends using distributions other than Gaussian. The authors point out that the computational and memory complexity of t-SNE is the square of the number of data points, making it impractical to apply the standard version of t-SNE to datasets containing more than 10,000 points.
[0015] According to the document "ChemTreeMap: an interactive map of biochemical similarity in molecular data sets" by J. Lu et al. (Bioinformatics, 32(23), 2016, 3584-3592), although computational biology often combines various chemical data to explore biological problems, existing chemical data tools are not suitable for the inherently large datasets of bioinformatics. This document attempts to describe an interactive bioinformatics tool designed to explore the chemical space and uncover the relationships between chemical structures, molecular properties, and biological activities. It is claimed that requiring users to select rules and adjust parameters in graphical tools may limit the utility of large, diverse datasets, while allowing users to plot any attribute of interest helps to achieve immediate and customized exploration of the relationships between molecular structures and other properties. The authors point out that the organization and visualization of molecular libraries requires consideration of three factors: how to represent molecules, how to quantify similarity, and how to represent similarity graphically. Regarding the representation of molecules, the use of stereochemically-aware extended connectivity fingerprints, namely ECFP6, is recommended. However, other fingerprints, such as MACCS keys or topological twist keys, can also be added. It is claimed that the similarity of each pair of molecules can be calculated by dividing the number of common chemical features between the two molecules by the union of all features, and a hierarchical tree can be constructed. It should be noted that ChemTreeMap's workflow recommends calculating fingerprints (e.g., ECFP6#S) to build the tree structure, and then calculating 2D coordinates based on the constructed tree structure. The authors suggest using a wide range of color schemes for visualization and adding data via outlines.
[0016] Regarding similarity search, according to "Hashing for Similarity Search: A Survey" by J. Wang et al. (arXiv:1408.2927v1, August 13, 2014), hashing is a general method for transforming data items into a low-dimensional representation or an equivalent short code consisting of bit sequences.
[0017] The authors categorize hashing algorithms into two main types: locality-sensitive hashing (designing hash functions without exploring the data distribution) and learning hashing (learning hash functions based on the data distribution). Several distances are discussed, such as Hamming distance, Jaccard coefficient, normalized Hamming distance, asymmetric Hamming distance, weighted Hamming distance, Manhattan distance, symmetric Euclidean distance, and asymmetric Euclidean distance. For example, the concept of molecular similarity is used in ligand-based virtual screening scenarios to find new molecules for testing using known active substances.
[0018] In particular, in "Open-source platform to benchmark fingerprints for ligand-based virtual screening" (Journal of Cheminformatics 2013, 5:26), S. Riniker et al. used a benchmarking platform to evaluate different fingerprints for many targets from a set of publicly available datasets in the context of searching for molecular similarity. The authors pointed out that various fingerprint recognition algorithms exist, and there are also multiple methods for evaluating the performance of virtual screening, but there is no consensus on which one is best.
[0019] It should be noted that although certain fingerprints are explicitly mentioned in the context of the preferred embodiments of the invention described below, fingerprints other than those explicitly mentioned in the context of the embodiments herein can be used, and different fingerprints can be evaluated when visualizing or using different types of databases with different objects as a database from which information is to be retrieved, and when the type of information to be retrieved or visualized is different. It should be particularly understood that the suggested fingerprints and their derivatives for virtual screening mentioned in the cited documents can all be used in the context of this invention.
[0020] In “A probabilistic molecular offingerprint for big data settings” (J. Cheminform (2018) 10:66), D. Probst and J.-L. Rey-mond noted that extended connectivity fingerprints with up to four bonds (ECFP4) perform best in baseline drug analogue recovery studies for describing small organic molecules because they encode substructures in high detail. However, the authors pointed out that ECFP4 requires high-dimensional representations to perform well, thus nearest neighbor searches in large databases such as GDB, PubChem, or ZINC are slow due to the high dimension. Therefore, the authors report a new fingerprint that uses the extended connectivity principle of ECFP to encode detailed substructures. The authors noted that the key advantage of the fingerprint proposed in this document is the implementation of a specific hashing method, MinHash, which enables specific searches in sparse high-dimensional hash spaces using the LSH forest algorithm, and ANN (approximate nearest neighbor) searches. The authors compared several search algorithms and specifically compared fingerprints indexed by LSH forests. Based on benchmark tests, they concluded that LSH Forest performs better with fewer nearest neighbors than an algorithm called Annoy, noting that performance is significantly improved by increasing the number of nearest neighbors by a factor of kc and then selecting actual nearest neighbors from the expanded set. As with other papers, this paper observes the computational costs associated with different methods and compares the query times of different algorithms. The authors conclude that MHFP6 achieves approximate k-nearest neighbor search in sparse and high-dimensional binary chemical spaces without the need for folding by directly applying ANN algorithms (such as LSH Forest). Therefore, it successfully eliminates the problem associated with high dimensions (known as the "curse of dimensionality") while preserving locality.
[0021] When searching for nearest neighbors, an appropriate search method must be used. In "Efficient K-Nearest Neighbor Graph Construction for Generic Similarity measure" (ACM 978-1-4503-0632-4 / 11 / 03) by W. Dong et al., it is known that k-nearest neighbor graph construction is an important operation in many data-related applications, including similarity search, data mining, and machine learning. The authors point out that some methods for constructing k-nearest neighbor graphs are not scalable or specific to certain similarity metrics. They emphasize that a good construction algorithm should be general, scalable, space-efficient, fast, accurate, and easy to implement. They consider several similarity metrics, such as cosine similarity and Jaccard similarity for textual data. The authors consider empirical complexity as a measure of dataset size. The authors claim that LSH (Locality Sensitive Hash) is difficult to achieve high recall (i.e., good results).
[0022] G. The use of LSH in DNA sequence alignment is discussed in the paper "Locality-Sensitive Hashing for the Edit Distance" (bioRxiv, preprint TTP: / / dx.doi.org / 10.1101 / 534446). They point out that locality-sensitive hashing can reduce the necessary workload when aligning genomic sequences. This process is a dimensionality reduction method where the sequences are first summarized into drafts much smaller than the original sequences, while retaining important information to estimate the similarity between two sequences. These drafts are then directly compared and used as keys to enter a hash table to find potentially similar sequence pairs. Afterward, a more thorough and computationally more expensive alignment process can be used to refine the actual alignment for such candidate pairs. The edit distance is introduced, referring to the number of operations and mismatches, insertions, or deletions required to transform one string into another. This edit distance is also known as the Levenshtein distance. The authors note that the method used may result in false negatives (i.e., lost alignments) or false positives (i.e., reporting potential alignments that do not exist). The authors understand that additional computational work is required in such cases.
[0023] According to A. Andoni's "LSH Forest: Practical Algorithms Made Theoretical" published on November 6, 2016, the LSH forest heuristic can be modified to improve its performance.
[0024] WO 2005 / 031600 discloses a method for determining clustering attractors for multiple documents comprising at least one item. The method includes calculating, for each item, a probability distribution indicating the frequency of occurrence of other items or each other item that appear simultaneously with the item in at least one document of the document. Then, the entropy of the corresponding probability distribution is calculated. Finally, at least one of the probability distributions is selected as a clustering attractor based on the corresponding entropy value. This method facilitates the formation of very small clusters, thereby enabling more precise retrieval during document searching.
[0025] US 2019 / 205325 discloses techniques for automatically discovering and extracting terms or phrases representing topics or concepts conveyed through multiple electronic documents, to help generate language models suitable for interpreting commands used to invoke application-based operations via digital assistant devices.
[0026] Given the above, there remains an urgent need for a resource-efficient method to generate intuitive and interpretable visualizations from datasets, especially large datasets.
[0027] One object of the present invention is to provide a method for retrieving information from a database and / or generating visualized data. This object is achieved through the subject matter of the embodiments provided herein and is characterized by the claims. The dependent claims provide some preferred embodiments.
[0028] Therefore, the present invention relates to the following embodiments:
[0029] 1. A computer-implemented method for visualizing data objects in a database, the method comprising the following steps:
[0030] An index structure is built for the multiple database objects by providing multiple hash functions and descriptors for each database in the multiple database objects, and by specifying multiple index trees by performing locality-sensitive hashing of the descriptors based on the multiple hash functions.
[0031] Search for the nearest neighbor of a database object in the index structure.
[0032] Generate a minimum spanning tree based on the found nearest neighbors, and
[0033] The probabilistic layout algorithm is used to generate visualization data from the minimum spanning tree to visualize data objects in the database.
[0034] 2. The computer-implemented method according to the foregoing embodiments, wherein when establishing the index structure, the database or a portion thereof is retrieved from a non-volatile computer-readable storage device, particularly a local disk, a network server, or the cloud.
[0035] 3. The computer implementation method according to any of the foregoing embodiments, wherein the database includes more than 100,000 objects, particularly more than 250,000 objects, particularly more than 500,000 objects, particularly more than 1,000,000 objects, and / or particularly more than 10,000,000 objects.
[0036] 4. A computer-implemented method according to any of the foregoing embodiments, wherein the database includes objects having more than 20 dimensions, particularly objects having more than 30 dimensions.
[0037] 5. A computer-implemented method according to any of the foregoing embodiments, wherein at least one specified index tree has at least one sequence of linear nodes, and the step of establishing the index structure includes folding the linear nodes.
[0038] 6. A computer-implemented method according to any of the foregoing embodiments, wherein an LSH forest comprising multiple different index trees is specified.
[0039] 7. The computer-implemented method according to the foregoing embodiments, wherein the LSH forest comprises fewer trees than the number of different hash functions, and in particular, less than half the number of different hash functions.
[0040] 8. The computer-implemented method according to the foregoing embodiments, wherein the LSH tree or LSH forest is stored for the next nearest neighbor search, and in particular, is stored in RAM when searching for the next nearest neighbor.
[0041] 9. The computer-implemented method according to any of the foregoing embodiments, wherein,
[0042] The database objects are chemical molecules, and the index structure for multiple database objects includes providing molecular fingerprints as descriptors, specifically, MHFP or ECFP fingerprints; or
[0043] Database objects are text, and an index structure is built for multiple database objects, including providing Minhash encoding as descriptors; or
[0044] Database objects are binary objects, and an index structure is built for multiple database objects, including providing weighted minhash encoding as descriptors.
[0045] 10. A computer-implemented method according to any of the foregoing embodiments, wherein the step of searching for the nearest neighbor of a database object in an index structure includes: using Hamming distance metric, Levenshtein distance metric, cosine similarity metric, and Jaccard similarity metric to identify nearest neighbor objects that are approximately the next nearest neighbor.
[0046] 11. A computer-implemented method according to any of the foregoing embodiments, wherein the step of searching for the nearest neighbor of a database object in an index structure includes: selecting k approximate next nearest neighbor objects, specifically, selecting k next nearest neighbors from kc*k nearest neighbors, where kc>1.
[0047] 12. A computer-implemented method according to any of the foregoing embodiments, wherein the probabilistic layout algorithm includes using force-guided graph drawing techniques.
[0048] 13. The computer-implemented method according to any of the foregoing embodiments, wherein the probabilistic layout algorithm is an effective probabilistic layout algorithm.
[0049] 14. The computer-implemented method according to the foregoing embodiments, wherein the effective probabilistic layout algorithm includes a spring-electrical model layout method utilizing a multi-level, multi-pole force approximation.
[0050] 15. A computer-implemented method according to any of the foregoing embodiments, wherein the visualization data is output in a portable data format, particularly, as portable HTML data.
[0051] 16. A computer-implemented method for visualizing data objects in a database, the method comprising the following steps:
[0052] An index structure is established for the multiple database objects by providing multiple hash functions and descriptors for each database object, and by specifying multiple index trees based on the multiple hash functions performing locality-sensitive hashing on the descriptors.
[0053] Search for the nearest neighbor of a database object in the index structure.
[0054] Generate a minimum spanning tree based on the found nearest neighbors.
[0055] Visualization data is generated from the minimum spanning tree using optimization methods and layout algorithms to visualize data objects in the database.
[0056] 17. A computer-implemented method for visualizing data objects in a database, the method comprising the following steps:
[0057] An index structure is established for multiple database objects, including more than 100,000 objects, specifically more than 250,000 objects, specifically more than 500,000 objects, specifically more than 1,000,000 objects, and / or specifically more than 10,000,000 objects.
[0058] Search for the nearest neighbor of a database object in the index structure.
[0059] Generate a minimum spanning tree based on the found nearest neighbors.
[0060] The probabilistic layout algorithm is used to generate visualization data from the minimum spanning tree to visualize data objects in the database.
[0061] 18. A computer-implemented information retrieval method for retrieving information from an object database, the method comprising the following steps:
[0062] An index structure is established for multiple database objects, including more than 100,000 objects, specifically more than 250,000 objects, specifically more than 500,000 objects, specifically more than 1,000,000 objects, and / or specifically more than 10,000,000 objects.
[0063] Search for the nearest neighbor of a database object in the index structure.
[0064] Generate a minimum spanning tree based on the found nearest neighbors, and retrieve information from the minimum spanning tree.
[0065] 19. A computer-implemented information retrieval method for retrieving information from an object database, the method comprising the following steps:
[0066] An index structure is built for multiple database objects by providing multiple hash functions and descriptors for each database object, and by specifying multiple index trees by performing locality-sensitive hashing of the descriptors based on the multiple hash functions, wherein an LSH forest comprising multiple different index trees is specified.
[0067] Search for the nearest neighbor of a database object in the index structure.
[0068] Generate a minimum spanning tree based on the found nearest neighbors, and retrieve information from the minimum spanning tree.
[0069] According to a first general aspect of the present invention, a computer-implemented information retrieval method for retrieving information from an object database and / or generating visualization data is proposed. The method includes the following steps: establishing an index structure for multiple database objects, searching for the nearest neighbors of the database objects in the index structure, generating a minimum spanning tree based on the found nearest neighbors, and generating visualization data from the minimum spanning tree.
[0070] In particular, in some embodiments of the present invention, a computer implementation method for visualizing data objects in a database is proposed, the method comprising the following steps: establishing an index structure for multiple database objects by providing multiple hash functions and descriptors for each database object in a plurality of database objects, and specifying multiple index trees by performing locality-sensitive hashing of the descriptors based on the multiple hash functions; searching for the nearest neighbors of the database objects in the index structure; generating a minimum spanning tree based on the found nearest neighbors; and generating visualization data from the minimum spanning tree using a probabilistic layout algorithm to achieve visualization of data objects in the database.
[0071] As used herein, the term "data object" refers to a conceptual entity that typically corresponds to a contiguous block of a specific size at a particular location in memory, having one or more attributes that define the entity. In some embodiments of the invention, the data object is an image, SMILES (Simplified Molecular Input Line Input Specification), atomic coordinates, text, gene expression, signal intensity, or particle ID, co-regulation fraction (e.g., for proteins).
[0072] As used herein, the term "descriptor" is an entity that indicates at least one data object and can be used as an index structure. In some embodiments of the invention, a descriptor is a fingerprint (e.g., a molecular fingerprint), an identifier (e.g., a unique identifier), or a data descriptor (e.g., an array descriptor).
[0073] The term "hash function" is an irreversible function that can be used to map items of arbitrary size (e.g., data objects) to values of a fixed size.
[0074] As used in this paper, the term "locality-sensitive hash" refers to a hash function that allows high-dimensional input items to be reduced to a low-dimensional version while preserving the relative distances between items. Such an exemplary hash function is found in G. It is described in "Localitysensitive hashing for the edit distance" (bioRxiv, preprint TTP: / / dx.doi.org / 10.1101 / 534446) by et al.
[0075] As used in this paper, the term "tree" refers to an undirected graph in which any two nodes are connected by only one path, or equivalently, an acyclic, undirected, connected graph. In this context, the graph consists of nodes connected by edges.
[0076] As used herein, the phrase "search for nearest neighbors" refers to using a nearest neighbor search algorithm. Preferably, the nearest neighbor search algorithm used in this invention is the k-nearest neighbor search algorithm. An example of the k-nearest neighbor algorithm is described in "Efficient K-Nearest Neighbor Graph Construction for Generic Similarity Measures" (ACM 978-1-4503-0632-4 / 11 / 03) by W. Dong et al.
[0077] The term “minimum spanning tree” as used in this paper refers to a subset of edges in an edge-weighted, undirected, acyclic, connected graph that connects all nodes in the graph and has the smallest possible sum of edge weights.
[0078] As used in this article, the term "visualization" generally refers to a visual representation of a given dataset presented to a user (e.g., on a display screen).
[0079] As used herein, the term "probabilistic layout algorithm" refers to a layout algorithm with probabilistic optimization, which, compared to a standalone layout algorithm, can generate visualization data from a minimum spanning tree faster and / or require fewer computational resources. The term "layout algorithm" as used herein refers to a class of algorithms that can be used to draw graphs. In some embodiments of the invention, the layout algorithm is a force-based layout method, a spectral layout method, an orthogonal layout method, a tree layout algorithm, or a hierarchical graph drawing method. In some embodiments of the invention, the probabilistic optimization algorithm is a simulated annealing algorithm, a genetic algorithm, or a multilevel algorithm.
[0080] Numerous disconnected and / or low-resolution components in visualizations can make the data difficult for users to identify, use, and / or interpret. Compared to previous methods such as UMAP, the method of this invention allows for the plotting of graphs with more connected components (e.g., linked branches or linked subclusters) and a more even distribution of components across the canvas, achieving better visual resolution than existing methods and thus facilitating user interpretation of the visualizations (see [link to UMAP]). Figure 1 (a through d). The method of the present invention achieves higher resolution of intra-cluster variances and errors by visually presenting how sub-clusters and / or branches within a cluster are linked and which true positives are associated with false positives. Therefore, the effectiveness of the present invention is partly based on the visibility and interpretability of the visualization data generated by the method.
[0081] Furthermore, compared to existing methods, the visualizations generated by the method of this invention exhibit better locality preservation performance (e.g., preservation of embedded nearest neighbor relationships based on topology or Euclidean distance) (see [link]). Figure 1 (e to f). Therefore, the effectiveness of the present invention is partly based on the locality preservation performance of the visualization data generated by the method.
[0082] By using the combination of steps in the method of the present invention, resource-intensive steps can be avoided. In this way, even for very large databases that include objects with various different parameters and thus can be considered high-dimensional objects, the computational effort required to determine the visualization data remains quite low, although the generation of the visualization data allows for further evaluation. In particular, the computational workload is reduced in terms of the frequency of access to database objects, the storage of intermediate results involving the size of intermediate storage space, the frequency of access to objects and intermediate results, and the total number of computational steps required to generate the visualization data.
[0083] Therefore, even for very large databases, visualizations can be generated quickly with very little power consumption, making traditional computers and laptops sufficient to provide an accessible user experience when generating visualizations.
[0084] Regarding the establishment of the index structure, the entire database or a portion thereof can be retrieved from non-volatile memory, such as non-volatile computer-readable storage, particularly USB thumb drives, read-only memory (ROM), ferroelectric RAM, magnetic computer storage devices (e.g., local disk drives, floppy disks, and magnetic tapes), optical discs, flash memory (e.g., SSDs), network servers, or the cloud. As used herein, the term "non-volatile computer-readable storage" refers to a class of computer-readable storage that allows the retrieved information even after power is restored. The term "non-volatile computer-readable storage" also refers to various types of non-volatile storage that can be accessed by computer devices via a network or communication link, such as a network server or the cloud. For example, data can be retrieved via a modem, the Internet, or a local area network. Given that only access to the database is required to establish the index structure and that this can be accomplished in a simple manner, database access is generally unlikely to constitute a limiting step; therefore, even slow local non-volatile computer-readable storage arrangements (e.g., hard drives) can be used.
[0085] In a typical use case, the database will include more than 100,000 objects, specifically more than 250,000 objects, specifically more than 500,000 objects, specifically more than 1,000,000 objects, and / or specifically more than 10,000,000 objects. In other words, this computer-implemented method is well-suited for handling very large databases, which is highly advantageous for mining chemical databases during drug discovery or similar applications.
[0086] Therefore, the method of the present invention can be used to retrieve information from specific large datasets to generate visualized data and / or to visualize data objects in a database, with surprisingly low computational cost and / or surprisingly high locality preservation performance.
[0087] Given the low computational workload, standard computers, laptops, etc., can be used, without the need for dedicated high-performance servers.
[0088] The information retrieval method implemented by this computer is particularly suitable for high-dimensional objects.
[0089] As used herein, the term "dimension" refers to at least one parameter of a data object and / or at least one descriptor affecting the visualization data of the data object. In some embodiments, a dimension is a biological characteristic, chemical characteristic, physical characteristic, metadata, and / or parameter of a data object obtained in some way (e.g., at a point in time, through an experiment, by an instrument, or a part of an instrument).
[0090] Given that visualization methods are typically used to generate two-dimensional visualizations, this computer-implemented information retrieval method can also be understood as a computer-implemented dimensionality reduction method.
[0091] In a preferred embodiment, building an index structure for multiple database objects includes: providing multiple hash functions and descriptors for each of the multiple database objects, and specifying at least one index tree by performing locality-sensitive hashing of the descriptors based on the multiple hash functions. Although a descriptor is required for each of the multiple database objects, the overall computational workload of this step is low because the hash functions can be easily determined and subsequently processed. In particular, performing locality-sensitive hashing allows for the rapid generation of intermediate results, thereby allowing for a reduction in memory access and computation steps during the execution of this computer-implemented method.
[0092] In a preferred embodiment, the specified index tree may consist of one or more linear sequences of nodes. In this case, the index structure can be collapsed to further reduce computational overhead while maintaining high accuracy without deleting relevant information.
[0093] Typically, more than one index tree is computed, so the entire forest is specified.
[0094] The term "forest" as used in this article refers to a disjoint union of at least two trees.
[0095] It is important to note that in order to determine the complete "locality-sensitive hash forest", each database object only needs to be retrieved once from the hard drive, the cloud, or any computer-readable non-volatile storage, thus generating a favorable database object access pattern.
[0096] When providing an LSH forest, the number of trees is typically less than the number of different hash functions, specifically less than half the number of different hash functions. A large number of different hash functions can better distinguish different molecules, while providing more trees helps to generate a useful minimum spanning tree.
[0097] In some embodiments, the method of the present invention can be used in any compound database, any MoleculeNet benchmark dataset, any dataset in which objects indicate text, and / or any other database in which the method can be used, such as database objects being image text, gene expression, co-regulation scores, signal strength, and / or particle IDs. While there are various different methods for providing or building index structures for multiple database objects, a typical use case is that the database objects are chemical molecules or combinations of molecules, and that an index structure is built for such multiple database objects in a manner that relies on molecular fingerprints as descriptors, where molecular fingerprints are particularly MHFP or ECFP fingerprints.
[0098] As used in this paper, the term "molecular fingerprint" is a descriptor (e.g., an n-dimensional vector) that indicates molecular properties. Typically, a molecular fingerprint is the molecular structure of a molecule encoded in a string (e.g., a bit string, such as a 512-bit bit string). Examples of molecular fingerprints include, but are not limited to, MHFP (e.g., MHFP4 or MHFP6), ECFP (e.g., ECFP4 or ECFP6), MAP (e.g., MAP4), SECFP6, MHECFP, and MACCS.
[0099] It should be understood that these descriptors and their derivations are well known in the art, and those skilled in the art will be able to access the relevant literature, such as the article by D. Probst and J.L. Reymond in the Journal of Cheminformatics (2018, 10: 66) cited above.
[0100] Furthermore, especially when database objects are encoded as text strings, the index structure can be MinHash encoded.
[0101] The term “Minhash” used in this article refers to a technique used to approximate the Jaccard distance between two different sets.
[0102] When the database object is a binary object, in a preferred embodiment, a weighted minHash encoding can be used to build the index structure. Note that there are multiple methods for building index structures, and the method suggested herein for a specific database has proven particularly effective; however, it should be understood that other methods for building index structures will exist even for those specifically mentioned types of database objects.
[0103] These indexing steps can be particularly resource-efficient and are suitable for large datasets and / or for a variety of database objects, especially for databases where the database objects represent chemical compounds, with very low requirements for computer resources.
[0104] Furthermore, in the case of finding the nearest neighbor, it will be understood that evaluating the distance between two nearest neighbors enhances methods for identifying nearest neighbors using any of the various distance metrics, such as Hamming distance, Levenshtein distance, cosine similarity, and Jaccard similarity. These different metrics are believed to be well-known to those skilled in the art and do not require detailed explanation here. However, it should be understood that these different distances and the ways in which distances can be determined according to each method are explained in the cited literature above. Therefore, regarding the determination of distance metrics, the cited literature is incorporated herein by reference in its entirety.
[0105] When generating a minimum spanning tree from the found nearest neighbors, a situation may arise where the actual next nearest neighbor cannot be identified using the computer-implemented information retrieval method of this invention. Furthermore, the distance metric suggested above, or any other distance metric used, may provide multiple claimed nearest neighbors, or may not provide any actual nearest neighbors at all. However, to produce useful results, it is suggested to determine k approximate next nearest neighbors and then generate a minimum spanning tree based on these identified next nearest neighbors. Again, it is emphasized that in this way, the overall computational workload remains at a level that is easily manageable, while the visualization still provides very good and useful results.
[0106] Typically, generating visualization data involves mapping the nodes of the generated minimum spanning tree onto a two-dimensional surface, such as a screen surface. However, it is also possible to project its nodes onto a two-dimensional (non-planar) surface in three-dimensional space. This mapping can be achieved by calculating a mutually exclusive arrangement of nodes in which the minimum spanning tree nodes reside. This repulsion can be calculated based on a spring-elastic model, which provides an excellent visual representation.
[0107] In some embodiments, the method of the present invention includes using force guidance map drawing techniques.
[0108] As used in this paper, the term "force-directed graph drawing technique" refers to a class of algorithms used to draw graphs in which forces are distributed between a set of edges and a set of nodes based on the relative positions of nodes and edges. These forces are then used to simulate the motion of edges and nodes or to minimize their energy to locate nodes in two- or three-dimensional space, such that all edges have similar lengths and the number of intersecting edges is small. Examples of force-directed graph drawing techniques include undirected graph drawing techniques (e.g., spring model, springelectrical model), directed graph drawing algorithms (e.g., layered graph layout), and other techniques described in Kobourov and Stephen G's "Force-directed drawing algorithms" (2004).
[0109] The use of force-guided graphing technology allows for the generation of visual data, which is particularly beneficial for users in terms of identification, use, and / or interpretation. Because force-guided graphing relies on the physical analogy of forces in ordinary objects—comparable to the mutual repulsion of mechanical springs and electricity—the generated visual data is particularly easy to predict and understand. Furthermore, force-guided graphing performs well in terms of uniform side lengths, uniform node distribution, and display symmetry. Force-guided graphing can also be easily adapted and extended to meet other functional and / or aesthetic standards (e.g., 3D graphing or dynamic graphing).
[0110] In some embodiments, the method of the present invention uses an effective probabilistic layout algorithm.
[0111] The term "efficient probabilistic layout algorithm" as used in this paper refers to a layout algorithm that utilizes a probabilistic global optimization algorithm, which allows the generation of visualization data from a minimum spanning tree with a sub-quadratic runtime.
[0112] The computational complexity of the probabilistic layout algorithm is a key factor in the computational complexity of the method of this invention. Therefore, by using an efficient probabilistic layout algorithm, the computational complexity of the method of this invention can be extremely low.
[0113] In some embodiments, the method of the present invention utilizes a spring-electrical model layout method based on a multi-level, multi-pole force approximation.
[0114] The term "spring-electric model" as used in this paper refers to an algorithm that models edges as springs and vertices as charged particles, and runs iterative physical simulations to calculate vertex positions. An example of the spring-electric model is described in "Aheuristic for graph drawing" by Peter Eades (Congressusnumerantium 42 (1984): 149-160).
[0115] The term "multi-level, multi-pole-based force approximation" used in this paper refers to a force guidance method based on a combination of a multi-level scheme and a strategy for approximating the repulsive forces in a system by evaluating the potential field. An example of a multi-level, multi-pole-based force approximation is described in "Drawing large graphs with a potential-field-based multilevel algorithm" by Hachul, Stefan, and Michael Jünger (International Symposium on GraphDrawing, Springer, Berlin, Heidelberg, 2004).
[0116] Since some layout algorithms, such as the spring-electric model, require multiple iterations to convert the initial graph of the minimum spanning tree into visual data, some embodiments of the present invention reduce the constant factor of the layout algorithm by using a multi-level, multi-pole force approximation algorithm.
[0117] By combining these steps, the method exhibits unexpected resource efficiency and is applicable to large datasets, while maintaining locality of performance and / or having extremely low requirements for computer resources used for information retrieval, generating visual data, and / or data visualization.
[0118] The data output of this computer-implemented information retrieval method can be a combination of portable web browser-readable files, such as HTML files and their linked files, or dynamically loaded from a web server as a combination of browser-readable file types. Visualized data can also be used to generate images directly on a monitor or to provide print output.
[0119] The invention will now be described with reference to the accompanying drawings.
[0120] Figure 1 Visual representation of the biological entities and properties related to ChEMBL molecules.
[0121] Figure 2 Visualization of ChEMBL and FDB17.
[0122] Figure 3 Visualization of linguistics, RNA sequencing, and particle physics datasets.
[0123] Figure 4 Comparison of the method of this invention with UMAP on benchmark datasets.
[0124] Figure 5 The impact of LSH forest parameters d and l on MNIST visualization.
[0125] Example
[0126] The method of the present invention is described below using an example of a TMAP (tree graph)-based approach that utilizes Locality Sensitive Hash, MinHash, and LSH forest, employing the k-nearest neighbor search algorithm, Kruskal's minimum spanning tree algorithm, and a multi-level, multi-pole graph layout algorithm to represent large and high-dimensional datasets as tree structures that are easy to understand and explore.
[0127] In the first example, TMAP, using the field of cheminformatics as an example, has interactive mappings of 1.16 million drug-like molecules from ChEMBL, 10.1 million small molecule fragments from FDB17, and 131,000 biomolecule 3D structures from the PDB database.
[0128] Then, a computer-implemented information retrieval method for retrieving information from an object database is described, wherein data from literature (GUTENBERG dataset), cancer biology (PANSCAN dataset), and particle physics (Mini-BooNE dataset) are visualized by steps of building an index structure for multiple database objects, searching for the nearest neighbors of the database objects in the index structure, generating a minimum spanning tree from the found nearest neighbors, and generating visualization data from the minimum spanning tree.
[0129] As can be seen, compared with other methods for generating visualization data (such as t-SNE or UMAP), the method of this invention significantly reduces memory requirements and running time, thus increasing the size of the dataset that can be visualized using TMAP, making it widely applicable in the era of big data.
[0130] Database used in the example
[0131] Recent developments in new and often readily accessible frameworks and powerful hardware have enabled the implementation of computational methods to generate and collect large, high-dimensional datasets, creating a growing need to explore and understand these data. Large, high-dimensional datasets can be thought of as large matrices where rows are samples and columns are variables being measured or computed, each column defining the dimension of the space containing the data. Visualizing such datasets is challenging because dimensionality reduction is necessary to make the data visually interpretable to humans, which incurs losses and high computational costs.
[0132] Databases of millions of molecules used in the field of drug discovery, such as the ChEMBL database of bioactive molecules from scientific literature and its associated bioassay data (n = 1,159,881), (cmp. Gaulton, A. et al. The ChEMBL database, 2017. Nucleic Acids Research 45, D945-D954 (2017)), from which mathematical representations of chemical structures in the form of molecular fingerprints (high-dimensional binary or integer vectors, encoding structures or compositions) are calculated, representing typical demand cases (cmp. Riniker, S. & Landrum, GA Open-source platform to benchmark fingerprints for ligand-based virtual screening. Journal of Cheminformatics 5, 26 (2013)). This problem extends to larger molecular databases, such as FDB17, exemplified here, which contains 10.1 million theoretically possible fragment-like molecules with up to 17 atoms (cmp. Visini, R., Awale, M. & Reymond, J.-L. Fragment Database FDB-17. J. Chem. Inf. Model. 57, 700-709 (2017)) and biomolecular databases such as the RSCB protein database (cmp. Berman, H. Met al. The Protein Data Bank. Nucleic Acids Res 28, 235-242 (2000)).
[0133] General problems of dimensionality reduction
[0134] For the aforementioned databases, simple linear dimensionality reduction methods (such as principal component analysis and similarity mapping) can easily produce 2D or 3D representations of global features (cmp. Oprea, TI and Gottfries, J., Chemography: the art of navigating in chemical space, in J Comb Chem 3, 157–166 (2001); Awale, M. and Reymond, J.-L., Similarity Mapplet: Interactive Visualization of the Directory of Useful Decoys and ChEMBL in High Dimensional Chemical Spaces, in J. Chem. Inf. Model 55, 1509–1516 (2015); Jin, X. et al., PDB-Explorer: a web-based interactive map of the protein data bank in shape space, in BMC Bioinformatics 16, 339 (2015); Probst, D. and Reymond, J.-L., FUn: a framework for interactive visualizations of large, high-dimensional datasets on the web. Included in Bioinformatics 34, 1433–1435 (2018)).
[0135] However, most of the local features that define the relationships between nearest neighbor (NN) molecules, which are very important in drug research, are lost, which limits the applicability of linear dimensionality reduction methods in visualization.
[0136] It is understandable that neural network relationships are important, and that nonlinear manifold learning algorithms can better preserve these relationships, assuming that the data resides on a low-dimensional manifold embedded in a high-dimensional space. Manifold learning algorithms such as nonlinear principal component analysis (NLPCA, or autoencoder), t-distributed stochastic neighbor embedding (t-SNE), and the more recent unified manifold approximation and projection (UMAP) are all based on this assumption (CMP. UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction, by McInnes, L., Healy, J. and Melville, J., arXiv:1802.03426[cs,stat](2018); Maaten, L. van der and Hinton, G. Visualizing Data using t-SNE, Journal of Machine Learning Research 9, 2579–2605(2008)).
[0137] Other techniques used in the prior art include probabilistic generative topographic mapping (GTM) and self-organizing map (SOM), which are based on artificial neural networks (CMP. Bishop, CM, Svensén, M. and Williams, CKI, GTM: The Generative Topographic Mapping. Neural Computation 10, 215–234 (1998); Kohonen, T. Exploration of very large databases by self-organizing maps. In Proceedings of International Conference on Neural Networks (ICNN'97) 1, PL1-PL6 vol.1 (1997)).
[0138] However, the time complexity of these algorithms is at least between O(n^1.14) and O(n^5), limiting the size of the visualization dataset. (cmp. Dong, W., Moses, C. and Li, K., Efficient k-nearest neighbor graph construction for generic similarity measures. In Proceedings of the 20th international conference on World wide web-WWW'11577 (ACM Press, 2011). doi:10.1145 / 1963405.1963487)). The same limitation on dataset size applies when distributing data in a tree using a nearest-neighbor joining algorithm for creating phylogenetic trees (cmp. Saitou, N. and Nei, M., The neighbor-joining method: a new method for reconstructing phylogenetic trees. In Mol Biol Evol 4, 406–42). The ChemTreeMap tool documents this limiting behavior, as it can only visualize up to approximately 10,000 data points (molecules or molecular clusters) (ChemTreeMap: an interactive map of biochemical similarity in molecular datasets, by Lu, J. and Carlson, HA, Bioinformatics 32, 3584–3592 (2016)).
[0139] In contrast, as will be shown below, an intuitive visualization method for generating and distributing large datasets of arbitrary dimensions up to (10)^7 order is disclosed, using a combination of locality-sensitive hashing and graph theory, and is applicable to modern network technology environments. In terms of time and space complexity, the proposed method outperforms methods based on approaches known as t-SNE and UMAP.
[0140] Furthermore, this method provides visualization data for the exploration and interpretation of large datasets. Due to the tree-like nature and transparency of the method, it provides better, more intuitive, and more interpretable visualizations than those based on t-SNE or UMAP.
[0141] Method Overview
[0142] Given arbitrary data as input, the disclosed method comprises four phases:
[0143] (I) Establishing LSH forest indexes (cmp. LSH Forest: Practical Algorithms Made Theoretical, by Andoni, A., Razenshteyn, I. and Nosatzki, NS., included in Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms 67–78 (Society for Industrial and Applied Mathematics, 2017). doi:10.1137 / 1.9781611974782.5; LSH forest: self-tuning indexes for similaritysearch, by Bawa, M., Condie, T. and Ganesan, P., included in Proceedings of the 14th international conference on World Wide Web-WWW'05 651 (ACM Press, 2005). doi:10.1145 / 1060745.1060840).
[0144] (II) Construct a c approximate k nearest neighbor graph.
[0145] (III) Calculate the minimum spanning tree (MST) of the c approximate k nearest neighbor graph (cmp. Kruskal, JB, On the shortest spanning subtree of a graph and the traveling salesman problem. In Proc. Amer. Math. Soc. 7, 48–48 (1956)).
[0146] (IV) The layout of the generated MST (CMP. The Open Graph Drawing Framework (OGDF) by Chimani, M. et al., in Handbook of Graph Drawing and Visualization 2011, 543–569 (2013)).
[0147] In Phase I, the input data is indexed in the LSH forest data structure, enabling c-approximate k-nearest neighbor search with a time complexity of n-fold linear. The MinHash algorithm is used to encode text and binary data, while a weighted variant of the method is used to encode integer and floating-point data. More specifically, MHFP6, a chemical fingerprint proven to outperform the well-known ECFP4 for virtual screening tasks, is used to decode chemical structures, producing a MinHash representation of the input molecule (cmp. Rogers, D. and Hahn, M., Extended-Connectivity Fingerprints, J. Chem. Inf. Model 50, 742–754 (2010); Probst, D. and Reymond, J.-L., A probabilisticmolecular fingerprint for big data settings, Journal of Cheminformatics 10, 66 (2018)).
[0148] The LSH forest data structure used for MinHash and weighted MinHash data is initialized with the number of hash functions 'd' used to encode the data and the number of prefix trees 'l'. Increasing the values of these two parameters leads to increased main memory usage; however, a higher value of 'l' also improves query speed. The impact of parameters 'd' and 'l' on the final visualization is as follows: Figure 5 As shown. In Figure 5 Note that while the first stage of the algorithm primarily affects the preservation of locality, the extrema of d≈l can lead to a degradation in visualization quality. A combination of (weighted) MinHash and LSH forests (which supports fast estimation of the Jaccard distance between two binary sets) has proven to perform well for molecules; other data structures and methods implementing various distance metrics may show better performance on other data and can be used as alternatives to the first stage.
[0149] In the second stage, an undirected weighted c-approximate k-nearest neighbor graph (ck-NNG) is constructed based on the indexed data points in the LSH forest. An enhanced variant of the LSH forest query method previously introduced for the virtual screening task is used to improve efficiency. This ck-NNG construction stage has two variables: the number of nearest neighbors k to search, and the factor k used in the enhanced query method. c This variation of the query method increases the time complexity of a single query from O(log n) to O(k·k). c +logn), therefore the overall time complexity is O(n(k·k)). c +logn), where k·k c>logn, to implement ck-NNG construction. Assign the Jaccard distance of its incident vertex as the weight to the edges of ck-NNG. Depending on the distribution and hashing of the data, ck-NNG may be disconnected in the following cases: (1) there are outliers with a Jaccard distance of 1.0 from all other data points, and they are therefore not connected to any other nodes; or (2) connected components are created due to clusters of size ≥k in the Jaccard space. However, subsequent stages are unaware whether this stage produces a disconnected graph. Parameters k and k c The impact on the final visualization of MNIST can be the LSH forest parameters k and k c The impact on MNIST visualization, thus the parameter k directly affects the average degree of the k-nearest neighbor graph, k c Improve the quality of the returned k nearest neighbors. These two parameters have only a slight impact on the aesthetics and quality of the visualization.
[0150] Alternatively, any graph can be provided to this method as a weighted list of edges.
[0151] In Phase III, a minimum spanning tree (MST) is constructed on the weighted ck-NNG using Kruskal's algorithm. This algorithm achieves the global optimum by applying a greedy approach at each stage to select a local optimum (whose characteristics are also desirable in data visualization). Kruskal's algorithm has a time complexity of O(E+logV), which is negligible compared to Phase II. A minimum spanning forest is created in the case of disconnected ck-NNGs. In alternative embodiments, other algorithms for MST construction can be used instead of Kruskal's algorithm for this step.
[0152] The fourth stage involves arranging the tree on the Euclidean plane. Since the MST is rootless and to maintain a compact drawing, a graph layout method is used instead of applying a tree structure. To draw the relatively large MST (millions of vertices), a spring-electric model layout method utilizing a multi-level, multi-pole force approximation is applied. This layout method is provided by the modular C++ library Open Graph Drawing Framework (OGDF). Furthermore, the use of OGDF allows for easy tuning of the graph layout method in terms of aesthetics and computational time requirements. Although multiple parameters can be configured for the layout stage, only parameter p must be adjusted according to the size of the input dataset. It can be seen that the vertex size parameter p has a significant impact on the aesthetics of the visualization, as it controls the sparsity of the drawn tree. Reducing the vertex size and thus the repulsive force between two vertices allows the layout algorithm to draw vertices closer to their respective (sub)branches. This stage constitutes the bottleneck of computational complexity.
[0153] A key stage of the described method is the construction of a minimum spanning tree (MST) on a weighted c-approximate k-nearest neighbor graph (ck-NNG). While comparable methods such as UMAP or t-SNE essentially attempt to embed a pruned graph, the method of this invention uses the MST method to remove all loops from the initial graph, significantly reducing the computational complexity of low-dimensional embeddings. Furthermore, the tree-based layout enables high-resolution, intuitive data visualization through explicit visualization of nearest distances between clusters, the detailed structure of clusters via branches and sub-branches, and the connection points between false positives and true positives. The quality of the proposed method is qualitatively evaluated by visualizing common benchmark datasets such as MNIST, FMNIST, and COIL20, and the method is compared with UMAP. Figure 4 ).
[0154] Notice, Figure 4 A comparison of the present invention's method with UMAP on benchmark datasets is shown. To evaluate the overall performance of the present invention, it is applied to three computer vision benchmark datasets and compared with UMAP. Compared to UMAP, which represents clusters as tightly packed blocks and attempts to achieve maximum separation between blocks, the present invention visualizes relationships between and within clusters as branches and sub-branches. While UMAP is able to represent the circular nature of COIL20 subsets, the present invention cuts circular clusters at the edges of maximum difference and connects subsets by one or more edges of minimum difference. However, the figure shows that this removal of local connections leads to the unraveling of highly similar data. For the MNIST and FMNIST datasets, the tree structure results in higher resolution of differences and errors within clusters because how sub-clusters (branches within a cluster) are linked and which true positives are connected to false positives becomes apparent.
[0155] Evaluation and comparison of the visualization of CheEMBL with UMAP
[0156] To illustrate the method of this invention, it is used to visualize data in ChEMBL and its performance is compared with that of the state-of-the-art visualization method UMAP. For this analysis, the molecular structure is encoded using ECFP4 (an extended linkage fingerprint of up to 4 bonds, a 512-D binary vector), a molecular fingerprint that encodes circular substructures and performs well in virtual screening and target prediction. (A probabilistic molecular fingerprint for big data settings, by CMP, Probst, D. and Reymond, J.-L., Journal of Cheminformatics, 10, 66 (2018)).
[0157] To compare the visualization performance of the two methods, consider a subset S containing the first 10,000 CheEMBL compounds obtained through interpolation. t Date, and a random subset S containing 10,000 CheMBL molecules. r The method of this invention was used to calculate 2D coordinates for visualization (runtime 4.685 seconds, peak memory usage 0.223 GB) for comparison with UMAP (runtime 20.985 seconds, peak memory usage 0.383 GB). A more uniform set S... t As input, 2D maps generated by each representation, plotted using the Python library matplotlib, illustrate that the method of the present invention (which distributes clusters across branches and sub-branches of the MST) produces a more uniform distribution of compounds on the canvas compared to UMAP, thus achieving better visual resolution. Figure 1 (a, b). Note that in Figure 1 In the middle, the first n compounds S t (a,b,e) and random sample S r (c, d, f) are visualized, each with a size of n = 10,000, based on the 512-dimensional ECFP-coded ChEMBL dataset, to visualize the distribution of biological entity classes and k nearest neighbors, respectively. More specifically, (a) shows the method of the present invention arranging the data as a single connected tree, while (b) shows a UMAP plot that appears to be a highly disconnected graph, where connections between components become indeterminate. The method of the present invention keeps intra-cluster and inter-cluster distances on the same order of magnitude, improving the visual resolution of the plot. (c, d) show the 20 nearest neighbors of a compound randomly selected from a random sample. (c) shows that the method of the present invention directly connects the query compound to three of the 20 nearest neighbors (1, 2, 15); nearest neighbors 1 through 7 are all within a topological distance of 3 around the query compound. (d) shows that the nearest neighbors of the same query compound in the UMAP visualization are the true nearest neighbors 2, 3, 18, 9, and 1, where 1 is the furthest of the five. (e, f) show the distribution of biological entity classes and k nearest neighbors, respectively, based on dataset S. t and S r The topological and Euclidean distance projections are used to rank the distances to the true nearest neighbors from the original high-dimensional space. (g) shows the computation of coordinates for random samples (n = 1,000,000), highlighting the runtime behavior of the method of the present invention and allowing examination of the time and space requirements of different stages of the method. Four random sample sizes of increasing sizes (n = 10,000, n = 100,000, n = 500,000, and n = 1,000,000) detail the differences between the method of the present invention and UMAP in terms of memory usage (h) and runtime (i). (t) TMAP =4.865s,a TMAP=0.223GB; t UMAP =20.985s,a UMAP =0.383GB and t TMAP =33.485s,a TMAP =1.12GB; t UMAP =115.661s,a UMAP =2.488GB)(t TMAP =175.89s,a TMAP = 4.521GB; t UMAP =3,577.768s,a UMAP =18.854GB and t TMAP =354.682s,a TMAP =8.553GB; t UMAP =41,325.944s,a UMAP =48.507 GB), of which the molecular expression activity was highest in bioassays.
[0158] Furthermore, compared to UMAP, the method of this invention better preserves nearest neighbor relationships (locality), such as heterogeneous sets S. r The visualization results show the localization of the 20 structural nearest neighbors of compound CHEMBL370160222, which is claimed to be an effective inhibitor of human tyrosine protein kinase SYK. These 20 structural nearest neighbors are defined as the 20 nearest neighbors in the original 512-dimensional fingerprint space. The method of this invention directly connects the query compound to three of these 20 nearest neighbors, namely CHEMBL3701630, CHEMBL3701611, and CHEMBL38911457, which are its nearest, second nearest, and 15th nearest neighbors, respectively. Nearest neighbors 1 to 7 are all within a topological distance of 3 around the query compound. Figure 1 c). In contrast, UMAP locates the nearest neighbors 2, 3, 9, and 18 in several more distant data points, closer to the query than the nearest neighbors in the original space. Figure 1 d). In fact, in terms of preserving the 1 nearest neighbor relationship, the method of the present invention preserves locality better than UMAP, while applying both topological and Euclidean metrics. Figure 1 (e, f). This invention ranks the distances to true nearest neighbors in the original high-dimensional space after projection onto the MNIST dataset based on topological and Euclidean distances. While UMAP retains less than 10% of the true 1 nearest neighbors, this invention retains over 80% based on topological distance and over 35% based on Euclidean distance.
[0159] In terms of computational performance, it can be seen that for small random subsets of the 512-dimensional ECFP-encoded ChEMBL dataset with sizes n = 10,000 and n = 100,000, the running time t and memory usage a of the method of this invention are comparable to UMAP. However, for larger random subsets (n = 500,000 and n = 1,000,000), the method of this invention significantly outperforms UMAP. Figure 1 h, i). Through the CheEMBL dataset based on ECFP4 encoding ( Figure 1 A larger subset (n = 1,000,000) of the method (g) was analyzed to understand the runtime of different stages and further understand the computational behavior of the method. During the first stage of the method (accounting for 180 seconds of execution time and approximately 5GB of main memory usage), data was loaded and indexed in 100,000-block units within the LSH forest data structure, represented by 10 distinct jumps in memory consumption. The second stage, building the ck-NNG, required a negligible amount of main memory and took approximately 110 seconds. Within a 10-second execution time, MST creation (stage III) consumed another 2GB of memory, of which approximately 1GB was reserved for storing the tree data structure. The graph layout method (stage IV) required 2GB and 55 seconds, after which the method completed, for a total clock time of 355 seconds and a peak main memory usage of 8.553GB.
[0160] It should be understood that, all other things being equal, operating the system in a way that requires less time will result in lower energy consumption. The same applies to memory usage. Therefore, the method of this invention significantly reduces energy consumption during processing.
[0161] Visualize ChemBL and FDB17
[0162] The high performance and relatively low memory usage of the method of this invention, along with the ability to generate highly detailed and interpretable representations of high-dimensional datasets, allow for unprecedented interactive visualization of chemical space. To illustrate this, the coordinates of ChEMBL compounds (n = 1,159,881) were calculated using the method according to the invention. MHFP6 (512 MinHash permutations), a molecular fingerprint associated with ECFP4 but with better virtual screening performance and the ability to be used with LSH (Cmp. Probst, D. and eymond, J.-L., A probabilistic molecular fingerprint for big data settings, Journal of Cheminformatics 10, 66 (2018)).
[0163] The method of this invention was successfully completed in 613 seconds, with a peak memory usage of 20.562 GB.
[0164] To illustrate the application to a larger dataset, ChEMBL (n = 1,159,881) was merged with fragment database (FDB17) compounds (n = 10,101,204). The coordinates calculated using the method of this invention were ultimately derived into a set using Faerun ( Figure 2 Interactive, portable web browser-readable (HTML and JavaScript) files are visually inspected. Figure 2 In a, the combination of ChEMBL and FDB17 is visualized. Figure 2 b is Figure 2 A magnified view of the framework outline in figure a. FDB17 molecules are shown in light gray, while CheEMBL molecules are shown as larger black dots. The resulting figure reflects the strong correlation of most CheEMBL molecules embedded in the larger FDB17 space.
[0165] Applied to other scientific datasets
[0166] To test the general applicability of the method of this invention, it was used to visualize datasets from the fields of linguistics, biology, and particle physics. The GUTENBERG dataset is an anthology of n = 3,036 books written in English by 142 authors (cmp. Complexity of Word Collocation Networks: A Preliminary Structural Analysis by Lahiri, S., available at arXiv:1310.5111[physics](2013)).
[0167] Book fingerprints are defined as dense binary vectors indicating which words in the entire set of all words extracted from all books appear at least once in a given book (generating dimension d = 1,217,078). Book fingerprints are indexed using an LSH forest data structure and MinHash. The PANCAN dataset (n = 801, d = 20,531) contains gene expression data from patients with different types of tumors (PRAD, KIRC, LUAD, COAD, and BRCA) randomly extracted from the Cancer Genome Atlas database (cmp. The Cancer Genome Atlas Pan-Cancer analysis project, The Cancer Genome Atlas Research Network et al., published in Nature Genetics 45, 1113–1120 (2013)).
[0168] PANCAN is indexed using an LSH forest data structure and weighted MinHash. The MiniBooNE dataset (n = 130,065, d = 50) includes measurements extracted from the MiniBooNE experiment at Fermilab and contains detections of signal (electron neutrino) and background (muon neutrino) events (CMP. Roe, BP et al., Boosted Decision Trees as an Alternative to Artificial Neural Networks for Particle Identification, in Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment 543, 577–584 (2005)).
[0169] Since the properties in MiniBooNE are real numbers, and to demonstrate the modularity of the proposed method, the data used for k-NNG construction is indexed in the first stage of the method using the Annoy index library that supports cosine metrics.
[0170] Note that in Figure 3 The invention is illustrated in its application to different databases. More detailed, Figure 3 The following are shown respectively: ( Figure 3 a) For the GUTENBERG dataset, which is a selection of books by 142 authors (n = 3,036, d = 1,217,078), the mapping divides the works of different authors into different branches, as shown in the work of HG Wells; Figure 3 b) For the PANCAN dataset (n=801, d=20,531), which consists of gene expression data for five tumor types (PRAD, KIRC, LUAD, COAD, and BRCA), an index was added using a weighted variant of the MinHash algorithm. The mapping divides different tumor types into different branches; PRAD (black dots) is shown here. Figure 3 c) The MiniBooNE dataset (n = 130,065, d = 50) consists of measurements extracted from the MiniBooNE experiments at Fermilab. The method of this invention visualizes the distribution of signal data (black dots) against the background.
[0171] In summary, a method for generating visualized data is disclosed, applicable to very large high-dimensional datasets, such as datasets containing molecular information. Compared to other currently available methods such as t-SNE or UMAP, the advantages of this invention lie in its low memory usage and runtime. When processing real-world chemical and / or non-chemical data (e.g., image data, omics data, journal citation data, Gutenberg data, data extracted from scientific articles, flow cytometry data), the method of this invention has been shown to achieve an empirical sublinear time complexity of O(n^2). 0.931 This generates visualized data. This allows for processing larger databases and / or achieving better results within a given, acceptable timeframe, such as in drug discovery. Furthermore, it facilitates highly interpretable visualizations, preserves and visualizes both global and local features, and has proven applicable to arbitrary datasets such as images, text, or RNA sequence data, suggesting its usefulness in a wide range of fields, including computational linguistics and biology.
[0172] Because the available parameters can be easily adjusted and through the leverage of the output quality and memory usage of this invention, this method does not require dedicated hardware for high-quality visualization, even when the dataset contains millions of data points.
[0173] Furthermore, the method of this invention has been shown to support Jaccard similarity estimation for binary or text and integer or floating-point sets, for example, by using MinHash and weighted MinHash respectively. This is helpful in situations where large numbers of different database objects need to be processed in various applications. While the Jaccard metric has proven suitable for the challenges posed by chemical fingerprint similarity calculations, it may not be the optimal choice for solving problems presented by other datasets. However, due to the existence of numerous distance and similarity metrics (such as Hamming distance, l... pThe LSH series (e.g., Hashing for Similarity Search: A Survey by Wang, J., Shen, HT, Song, J., and Ji, J., indexed in arXiv:1408.2927[cs](2014); or Localitysensitive hashing for the edit distance by Marcais, G., DeBlasio, D., Pandey, P., and Kingsford, C., indexed in (Bioinformatics, 2019). doi:10.1101 / 534446)) can be used for various database objects, as these distances have been found to be compatible with the present invention. Furthermore, it should be understood that the modularity of the present invention allows for the insertion or use of nearest neighbor graph creation, MST creation, and graph layout techniques other than those described in the examples.
[0174] Although the examples involve specific databases, those skilled in the art will understand that the present invention can be used to retrieve information and / or generate visualizations from large databases containing diverse objects with correspondingly different attributes and relationships. Therefore, these examples should not be construed as limiting the scope of this disclosure to the databases of the specific examples given.
[0175] This paper discloses a method for generating and distributing arbitrary-dimensional data up to 10^60 dimensionality distributions based on a combination of locality-sensitive hashing, graph theory, and modern network techniques. 7 A method for intuitive visualization of large datasets of order 1. In terms of time and space complexity, the proposed method outperforms methods based on so-called t-SNE and UMAP approaches.
[0176] Furthermore, this method provides visualization data for the exploration and interpretation of large datasets. Due to the tree-like nature and transparency of the method, it provides better visualization than t-SNE or UMAP-based visualization data.
Claims
1. A computer-based method for visualizing data objects in a database, the method comprising the following steps: Multiple index trees are specified by providing multiple hash functions and descriptors for each database object in multiple database objects, and by performing Locality Sensitive Hashing (LSH) on the descriptors based on the multiple hash functions, and specifying an LSH forest as the index structure, wherein... The LSH forest contains multiple different index trees, thereby establishing an index structure for the multiple database objects. This index structure is an LSH forest, in which input data is indexed. The nearest neighbor search algorithm is used to search for the nearest neighbors of database objects in the index structure. A minimum spanning tree is generated based on the nearest neighbors found using the nearest neighbor search algorithm, and A probabilistic layout algorithm is used to generate visualization data from the minimum spanning tree to visualize data objects in the database. The database objects are chemical molecules, and an index structure is built for multiple database objects, including providing molecular fingerprints as descriptors.
2. The computer implementation method according to claim 1, wherein, When creating an index structure, the database or a portion of the database is retrieved from non-volatile computer-readable storage.
3. The computer implementation method according to claim 2, wherein, The non-volatile computer-readable storage is a local disk, a network server, or the cloud.
4. The computer implementation method according to any one of claims 1-3, wherein, The database contains more than 100,000 objects.
5. The computer implementation method according to any one of claims 1-3, wherein, The database includes objects with more than 20 dimensions.
6. The computer implementation method according to any one of claims 1-3, wherein, At least one specified index tree has at least one sequence of linear nodes, and the step of building the index structure includes folding the linear nodes.
7. The computer implementation method according to any one of claims 1-3, wherein, The LSH forest consists of many trees, fewer than the number of different hash functions.
8. The computer implementation method according to claim 7, wherein, The number of trees is less than half the number of different hash functions.
9. The computer implementation method according to any one of claims 1-3, wherein, The LSH tree, or LSH forest, is stored for use in the next nearest neighbor search.
10. The computer implementation method according to claim 9, wherein, The LSH tree or LSH forest is stored for the next nearest neighbor search, and is stored in RAM when searching for the next nearest neighbor.
11. The computer implementation method according to any one of claims 1-3, wherein, The molecular fingerprint is an MHFP or ECFP fingerprint.
12. The computer implementation method according to any one of claims 1-3, wherein, The step of searching for the nearest neighbors of database objects in the index structure includes: considering Hamming distance, Levenstein distance, cosine similarity, and Jaccard similarity to identify nearest neighbor objects that are approximately the next nearest neighbor.
13. The computer implementation method according to any one of claims 1-3, wherein, The step of searching for the nearest neighbor of a database object in the index structure includes: Select k approximate next nearest neighbor objects.
14. The computer implementation method according to claim 13, wherein, From kc Choose k next nearest neighbors from k nearest neighbors, where kc>
1.
15. The computer implementation method according to any one of claims 1-3, wherein, The probabilistic layout algorithm includes the use of force-guided graph drawing techniques.
16. The computer implementation method according to any one of claims 1-3, wherein, The probabilistic layout algorithm is an effective probabilistic layout algorithm.
17. The computer implementation method according to claim 16, wherein, The effective probabilistic layout algorithm includes a spring-electric model layout method that utilizes a multi-level, multi-pole force approximation.
18. The computer implementation method according to any one of claims 1-3, wherein, The visualized data is output in a portable data format.
19. The computer implementation method according to claim 18, wherein, The portable data format is portable HTML.
Citation Information
Patent Citations
Automated Discourse Phrase Discovery for Generating an Improved Language Model of a Digital Assistant
US20190205325A1
Computer aided document retrieval
WO2005031600A2
Structural interaction fingerprint
US20070020642A1
Methods, Systems, and Products for Graphing Data
US20100134497A1
Cyber vaccine and predictive-malware-defense methods and systems
US20190199736A1
