Abstract
Artificial intelligence-assisted drug design is revolutionizing the pharmaceutical industry. Effective molecular features are crucial for accurate machine learning predictions, and advanced mathematics plays a key role in designing these features. Persistent homology theory, which equips topological invariants with persistence, provides valuable insights into molecular structures. The standard homology theory is based on a differential rule for the boundary operator that satisfies . Our recent work has extended this rule by employing Mayer homology with generalized differentials that satisfy for , leading to the development of persistent Mayer homology (PMH) theory and richer topological information across various scales. In this study, we utilize PMH to create a novel multiscale topological vectorization for molecular representation, offering valuable tools for descriptive and predictive analyses in molecular data and machine learning prediction. Specifically, benchmark tests on established protein-ligand datasets, including PDBbind-v2007, PDBbind-v2013, and PDBbind-v2016, demonstrate the superior performance of our Mayer homology models in predicting protein-ligand binding affinities.
Keywords: Persistent Mayer homology, machine learning, protein-ligand binding affinity
1. INTRODUCTION
Drug design and discovery is a lengthy and costly process, and the process is plagued by a high failure rate.1 Developing a new drug can take a decade and cost billions of dollars before it reaches the market. However, the accumulation of extensive experimental biological data and advancements in machine learning algorithms are rapidly transforming artificial intelligence (AI)-based drug design, offering the potential to revolutionize the field. For instance, determining protein-ligand binding affinity is a critical challenge in drug discovery. Machine learning models excel at capturing complex, nonlinear relationships in data and provide superior accuracy in predicting binding affinity compared to traditional models.2,3
In AI-assisted drug design and discovery, molecular descriptors are crucial to the performance of machine learning models and are integrated to various stages of the drug discovery process.4–7 They play a fundamental role in quantitative structure–activity relationship (QSAR)8 and quantitative structure–property relationship (QSPR) analyses.9 Two-dimensional (2D) and three-dimensional (3D) molecular descriptors are widely used for machine learning predictions. Popular 2D molecular descriptor generation approaches include substructure key-based fingerprints, topological or path-based fingerprints, circular fingerprints, pharmacophore fingerprints,10 and autoencoded fingerprints.11 These molecular descriptors can typically be extracted from molecular simplified molecular-input line-entry system (SMILES) strings without 3D structure information, and they are primarily used to represent small molecules. However, they do not perform well for macromolecules with complex 3D structures. The 3D molecular descriptors consider molecular structures, as well as chemical, physical, and biological properties.12 3D molecular descriptors are superior to 2D ones in scenarios where the three-dimensional structure of a molecule is a key determinant of its biological function, such as protein-ligand interactions, stereochemistry, molecular docking and virtual screening, and conformational analysis.13 Deep learning methods, such as autoencoders,11 transformers,14 graph neural networks (GNNs),15 and convolutional neural networks (CNNs),16–18 have also been employed for molecular feature generation, producing highly competitive molecular features.
The complexity of biomolecular structure, function, and dynamics often renders structural representation inconclusive, inadequate, inefficient, and, at times, intractable. These challenges necessitate innovative design strategies for representing macromolecules. Recently, advanced mathematical tools such as topological data analysis (TDA)19 and topological deep learning (TDL)20 have been employed for biomolecular characterization. These mathematical approaches excel in abstracting and representing intrinsically complex molecular structures, making them particularly suitable for molecular featurization.20,21 Although TDA is a relatively new field, it has rapidly emerged as a powerful methodology in data science. The essence of TDA lies in extracting significant topological invariants and geometric shapes, capturing the nuanced patterns and relationships embedded within the data. Persistent homology theory19,22–24 is the primary workhorse in TDA. It utilizes a filtration process that gradually builds up a family of topological spaces from the data by adding simplices (basic geometric shapes like points, edges, triangles, etc.) one at a time, based on parameters such as distance or density. Multiscale representation is reflected in two key aspects: tracking the lifespan of topological invariants across scales “such as connected components, loops, and voids” and describing these invariants, including Betti numbers, which count the number of topological features at different scales. These two aspects are essentially equivalent but provide quantitative analysis from different perspectives.
Persistent homology is particularly useful for characterizing molecular data and distinguishes itself from traditional molecular descriptors.20 Its integration with machine learning algorithms has led to significant advancements in various stages of drug design such as predicting protein–ligand binding affinity20 and changes in protein stability upon mutation.25 One of the most compelling pieces of evidence for the effectiveness of persistent homology-based molecular descriptors is their significant success in the D3R Grand Challenge,26 a worldwide computer-aided drug discovery competition. The power of TDA is further exemplified in the topological deep learning paradigm,20 where topological molecular featurization is integrated with deep neural networks. The early success of mathematical representations and TDL for biomolecular data was documented in Ref. 27. Recently, TDL has uncovered the mechanisms of SARS-CoV-2 evolution.28
Despite its tremendous success, persistent homology theory still faces some drawbacks. Persistent homology can lead to an oversimplification of geometric information from the given data, resulting in a significant loss of crucial details. For example, while it captures cavities and loops, it lacks the precision to describe their shape, depth, or orientation, potentially treating distinct geometries “such as a shallow, wide pocket and a deep, narrow one” as equivalent. To address these limitations, persistent Laplacian theories29–31 were introduced. While retaining the ability to capture topological invariants like persistent homology, persistent Laplacians also reveal additional geometric information through the non-harmonic spectrum of their matrices. Their value as molecular descriptors is demonstrated by their accurate forecasting of emerging dominant SARS-CoV-2 variants BA.4/BA.5.32 Other valuable topological or geometric data analysis techniques with superb performance include persistent de Rham–Hodge Laplacians,33 and neighborhood path complex.34
In this study, we explore the potential of persistent Mayer homology (PMH) for characterizing molecules. Unlike usual simplicial homology, which uses a boundary operator that satisfies , Mayer Homology defined on simplicial complexes employs a boundary operator where 35 Mayer Homology reduced to simplicial homology when . The boundary operator is essential for constructing algebraic groups used to identify properties related to connected components, rings, or cavities in simplicial homology. Mayer homology theory provides enhanced Betti number information by varying the value of , revealing more detailed topological and geometric features of a space.36 A multiscale topological representation from PMH is obtained through the filtration process, in which a series of nested simplicial complexes is generated. During this process, Betti numbers or the persistence of topological invariants are calculated and used to construct molecular descriptors. These topological features are then combined with a gradient boosting decision tree algorithm to build predictive models. We evaluate the performance of our PMH-based machine learning models on three well-established protein-ligand binding affinity datasets: PDBbind-v2007, PDBbind-v2013, and PDBbind-v2016.37 Our models demonstrate exceptional performance, which can be further enhanced by incorporating molecular sequence-based descriptors generated using natural language processing techniques. Compared to the existing literature, our models achieve state-of-the-art performance.
2. RESULTS
2.1. Overview of PMH
As mentioned earlier, Mayer homology of simplicial complex reduces to simplicial homology when is taken to 2. We will begin with a brief review of simplicial complexes, the classical homology of simplicial complexes, and then generalize the discussion to Mayer homology.
Simplicial complex is a well-known topological model in data science, with notable examples including the Vietoris–Rips (VR) complex, Čech complex, and Alpha complex. A simplicial complex is composed of a collection of simplices following specific combinatorial rules. An -simplex is the convex hull formed by geometrically independent points. For example, a 0-simplex is a vertex, a 1-simplex is an edge, a 2-simplex is a triangle (with a solid interior), and a 3-simplex is a solid tetrahedron, as illustrated in Fig. 1(b).
Fig. 1.

The PMH representation for a point cloud based on VR complex. (a) A 2D point cloud. (b) The representation of simplices in dimension . (c) A filtration of simplicial complexes obtained from the point cloud. (d) The barcode of dimension 0 and 1 corresponding to the filtration process in (c). The filtration parameter is defined to be the diameter of circles around given points. (e) The Betti numbers and calculated from PMH for . (f) The Betti numbers and calculated from PMH for . (g) The Betti numbers and calculated from PMH for . The curves for and coincide. The curves for and coincide.
Let be a simplicial complex, where is the set of -simplices. For a given field , we denote by the -vector space generated by the -simplices in . The collection of such groups gives rise to a chain complex, with the differential defined by
where is an -simplex, and denotes the omission of the th vertex. It can be verified that . Thus, we obtain a chain complex
| (1) |
We denote ker and im . Since , it follows that im . The homology of the simplicial complex is then defined by
| (2) |
The rank of is the Betti number . Betti numbers are widely used topological invariants of simplicial complexes. The geometric interpretation of , and corresponds to the number of connected components, loops, and cavities, respectively.
The key idea of persistent homology is to introduce multi-scale information, which is provided by the filtration of simplicial complexes. For a given point cloud dataset, the most common filtration of simplicial complexes is the VR complex, as illustrated in Fig. 1(c). Topological features at different scales exhibit a certain kind of persistence, meaning that homology generators at smaller scales may persist as homology generators at larger scales, thereby giving rise to persistent homology generators. The scale at which a generator is born is referred to as its birth time, while the scale at which it disappears is known as its death time. The topological features of persistent homology are represented by bars that record the birth and death times of homology generators, as shown in Fig. 1(d), corresponding to the barcode of the filtration of simplicial complexes in Fig. 1(d).
Unlike classical homology theories, the Mayer homology theory explored in this study has a generalized differential with an integer on the -chain complex (see Sec. 4). This approach allows us to obtain a family of homology groups for a simplicial complex, where is the dimension and corresponds to the Mayer degree. The homology groups are referred to as Mayer homology. The Betti numbers associated with Mayer homology are termed the Mayer Betti numbers of the simplicial complex, denoted by . For , the Mayer degree can only be , which means that for a fixed dimension , there is only one homology group, which is consistent with the usual homology groups of a simplicial complex. For general , Mayer homology reveals more information than classical homology, offering potentially valuable geometric and topological features for applications. Beyond contributing to a unified mathematical framework for homology theory, Mayer homology and the associated Betti numbers provide valuable tools for analyzing the topological space of a given data set.
The Betti numbers for each simplicial complex are recorded in the barcode diagram as shown in Fig. 1(d). For example, the number of red lines in Fig. 1(d) at a filtration parameter of 2 corresponds to . The Betti number can be regarded as a function with the filtration parameter as its variable. Such a function is referred to as a Betti curve. Figure 1(e) shows the Betti curves for , with the red line representing the Betti curve and the blue line representing the Betti curve . Additionally, Figs. 1(f)–1 (g) present the Betti curves for Mayer homology with and , respectively. Each plot contains multiple curves because, in the case of Mayer homology, forms a curve for each . It is worth noting that when , the and align with each other and the and align with each other as shown in Fig. 1(g). The comparison of these figures highlights the richer topological and geometric features of Mayer Betti numbers. More detailed concepts and theorems associated with Mayer homology can be found in Sec. 4.
2.2. PMH-based element interactive molecular representation
Atomic coordinates in molecules can be viewed as point cloud data. PMH is well-suited for characterizing molecular structures, and a multiscale topological representation can be obtained through a filtration process. The resulting persistent features effectively capture the hierarchical and multiscale properties of biomolecular structures and interactions. Various intramolecular and intermolecular interactions exist within molecular structures, characterized by different forces such as covalent bonds, van der Waals forces, electrostatic interactions, hydrophobic interactions, and hydrophilic interactions. To this end, we follow the element interaction characterization for pairwise atom groups38 and use PMH to analyze these element-specific topological data structures. A cutoff distance of 12 Å is applied to extract the protein atoms around the ligand, considering that intermolecular interactions predominantly occur in the binding pocket region.
Figure 2(b) displays the PMH barcodes for C–C and O–C atom groups in the protein-ligand complex (PDBID: 1A94), with the simplicial complex constructed using the alpha complex. The persistence and variance of the , and information are revealed. The ligand has more carbon atoms than oxygen atoms, leading to the faster decay of the value during filtration for C–C atom groups. Persistent attributes associated with and are also distinguishable in the characterization of C–C and O–C atom groups. The Betti curves of different dimensions are for these two atom groups as shown in Figs. 2(c) and 2(d), respectively. The changes in values from PMH with and for C–C groups are shown in Figs. 2(e) and 2(g). The changes for O–C groups are exhibited in Figs. 2(f) and 2(h). Unlike the PMH characterization for 2D point clouds, which shows overlapping curves, there are distinct or curves in Figs. 2(g) and 2(h) for . These PMH ( or ) Betti changes for these atom groups tend to plateau when the filtration parameter reaches 10 Å, or even as early as 5 Å. Therefore, it is sufficient to collect the Betti information with the filtration parameter ranging from 0 Å to 10 Å. For PMH or traditional persistent homology characterization of the protein-ligand complex, persistent attribute analysis extends to an upper filtration parameter of 12 Å.
Fig. 2.

PMH characterization for a protein-ligand complex (PDBID: 1A94) on alpha complex. (a) The 3D structure of protein 1A94. (b) The barcodes of different dimensions for a pair of atom sets in protein 1A94 with PMH . The first letter in C–C or O–C stands for atom group from protein and the second one indicates atom group from the ligand. (c) The Betti curves of different dimensions for the C–C atom group in (b). (d) The Betti curves of different dimensions for the O–C atom group in (b). (e) The and curves for the C–C atom groups in (b) using PMH with . (f) The and curves for the O–C atom groups in (b) using PMH with and . (g) and curves for the C–C atom group in (b) using PMH with . (h) The and curves for the O–C atom group in (b) using PMH with .
It is observed that the and curves in Fig. 2(e) resemble the and curves in Fig. 2(g). A similar pattern is seen between Figs. 2(f) and 2(h). However, there are subtle numerical differences along the filtration. The and curves, along with the distinct curves, still differentiate PMH from PMH .
A multiscale molecular representation can be obtained either by directly using PMH Betti numbers or by extracting useful statistical information from barcodes. Persistence bars represent the persistence of topological invariants in nested simplicial complexes, from which PMH Betti numbers can be directly read. Molecular features can be designed by collecting the Betti numbers at a set of filtration parameters. However, the inconsistent number of atoms across atom groups or molecules makes barcodes not directly suitable for scalable representation learning. Various stable learning strategies for topological data analysis have been proposed, such as persistent landscapes39 and persistent images.40 The bin-spaced statistical functions,20 incorporating the maximum, minimum, average, and standard deviation of barcodes, provide a reliable and effective vector representation. This approach offers competitive descriptive capacity and the advantage of scalable modeling. We utilize both the Betti numbers from PMH and barcodes to design molecular features.
To address computational efficiency, simplicial complexes using alpha complexes are primarily considered for PMH with . For PMH with , both VR complexes and alpha complexes can be utilized. When VR complexes are used, we incorporate physical properties in addition to the original molecular structure data to ensure that sufficient molecular interactions are captured. Technically, the filtration process and PMH are induced using either the Euclidean distance metric in space or a kernel function-defined correlation matrix for a group of atomic coordinates. Collectively, these methods enhance our PMH theory-based molecular representation learning. We provide more details about our PMH features in the following section.
2.3. PMH learning models for drug design
2.3.1. PMH-based multiscale molecular vectorization
We utilize element-interactive PMH representation learning for biomolecular data, as discussed above. This strategy captures crucial biological information and enhances characterization capacity, as validated by extensive modeling work.20,30,41 Specifically, for a protein-ligand complex, the types of elements considered for proteins are , and for ligands, they are . Therefore, we can have up to 36 element combinations and design interactive PMH features accordingly. The interactions between all the ligand atoms and protein atoms near the binding pocket can also be characterized by PMH.
We denote as the set of atoms consisting of types of atoms in the protein and types of atoms in the ligand, where the distance between any pair of atoms in these two groups is within a cutoff :
| (3) |
where and denote atoms. We also consider all heavy atoms in the ligand together with all heavy atoms in the protein that are within the cutoff distance from the ligand molecule, and denote this set as . Similarly, we denote the set of all heavy atoms in the protein that are within the cutoff distance from the ligand molecule as .
Both the correlation matrix and the Euclidean distance matrix are used for the VR complex-induced persistent homology (PMH) . We use to indicate the affiliation of an atom with index in a group of atoms from either the protein or the ligand. We define four types of matrices as follows.
(4) (5) (6) (7)
Equation (4) is inspired by the development of the flexibility-rigidity index (FRI) theory,42 which utilizes a decaying radial basis function to effectively quantify atomic interactions. The parameter represents the Euclidean distance between atoms with indices and , and , where and are positive adjustable parameters that control the decay rate of the exponential kernel, allowing us to model interactions with different strengths. Here, is the characteristic distance between the th and th atoms and is typically set as the sum of the van der Waals radii of the two atoms. The exponential kernel function is non-negative and strictly monotonically decreasing with respect to the Euclidean distance between a pair of atoms. When the Euclidean distance between two atoms is close to 0, their correlation distance approaches 1. Conversely, when the atoms are far apart, approaches 0. This ensures that the correlation matrix is well-defined. We use the superscript agst to distinguish correlations between atoms from the same or different affiliations. When both atoms are within the same molecule, their correlation distance is set to infinity. This approach excludes intramolecular interactions and highlights the intermolecular interactions between proteins and ligands, which are then represented in the construction of VR simplices and ultimately aid in characterizing these interactions through PMH.
In contrast, the correlation matrix defined by Eq. (5) captures both physical and chemical information from intramolecular and intermolecular interactions. Furthermore, Eqs. (6) and (7), which are based on the Euclidean distance metric, provide a better characterization of molecular 3D structures. The metric places greater emphasis on the shape derived from intermolecular 3D data and is used in conjunction with alpha complexes for our PMH analysis. We primarily use PMH and PMH to extract molecular features, employing five different feature extraction strategies as shown in Table 1. Consequently, for each protein-ligand complex, we generate five feature vectors: the first four are derived from PMH , while the final vector is based on PMH .
Table 1.
Molecular feature extraction with PMH. PMH2 and PMH5 indicate the PMH on 2-chain and 5-chain complex, respectively. The first argument in PMH2 or PMH5 specifies the group of molecular coordinate data, while the second argument denotes the correlation or Euclidean distance matrix. The third argument indicates the type of complex used to construct simplicial complex.
| I | Length sum of all Betti-0 bars. | |
| II | PMH2 (, FRI, VR) | Length sum and birth sum of Betti-0, Betti-1, and Betti-2 |
| PMH2 (, FRI, VR) | bars for protein, complex, as well as the sum differences between protein and complex. | |
| III | PMH2 | Counts of Betti-0 bars with “death” values within each interval: [0,2.5],[2.5,3],[3,3.5],[3.5,4.5],[4.5,6],[6,12]. |
| IV | PMH2 (, EUC, Alpha) | Length sum of Betti-1 and Betti-2 bars with “birth” values within each interval: [0, 2], [2,3], [3, 4], [4,5],[5,6],[6,9]. |
| PMH2 (, EUC, Alpha) | The sum differences between complex and protein are also considered. | |
| V | PMH5 (, EUC, Alpha) | over filtration parameter range from 0 to 10 with stepsize of 0.2. |
| over filtration parameter range from 0 to 8 with stepsize of 0.5. |
2.3.2. PMH learning models for binding affinity prediction
We demonstrate the learning capacity of the proposed PMH through protein-ligand binding affinity prediction, a critical problem in drug discovery. We consider three well-established PDBbind datasets,37 including PDBbind-v2007, PDBbind-v2013, and PDBbind-v2016. These datasets contain a collection of 3D structures for protein-ligand complexes and their experimental binding affinities and have been widely used to test new methods.43–45 Detailed information about the data size for the three datasets and the related training-test splits can be found in Table 2. Based on the 3D structures, each protein-ligand complex is represented by five sets of molecular vectors according to Table 1. In our implementation, feature sets I–IV are concatenated into a long vector representation, while feature set V is used as a separate vector representation. These two vectors are combined with the gradient boosting decision tree (GBDT) algorithm to build regression models, resulting in model-PMH2 and model-PMH5. The GBDT hyperparameters used for modeling are listed in Table 3. A general workflow of our PMH featurization and the resulting machine learning modeling is provided in Fig. 3.
Table 2.
Details of the datasets utilized for benchmark tests in this study.
Table 3.
Hyperparameters used for build gradient boosting regression models.
| No. of estimators | Max depth | Min. sample split Learning rate | |
|---|---|---|---|
| 20000 | 7 | 5 | 0.002 |
| Max features | Subsample size | Repetition | |
| Square root | 0.8 | 20 times |
Fig. 3.

The illustration of PMH feature extraction for a protein-ligand complex (PDBID: 1A94) and the subsequent machine learning model development.
The final PMH modeling prediction is determined by the consensus of the predictions from the two models. We build models 20 times with different random seeds and use two evaluation metrics: Pearson correlation coefficient and root mean square error (RMSE). The average values of the PMH machine learning models for the three datasets are 0.824,0.787, and 0.834, respectively, as shown in Table 4. These high values validate the effectiveness and reliability of our PMH molecular representation. We also obtain low RMSE values (in units of kcal/mol), which compare the predicted binding energies with the experimental values. The binding energy is calculated from the given in the original data by multiplying it by a constant of 1.3633.
Table 4.
Modeling performance of different strategies on the test sets of PDBbind-v2007, PDBbind-v2013 and PDBbind-v2016. Pearson correlation coefficient and root mean square error (unit, kcal/mol) are the two evaluation metrics.
| Dataset | PMH | Transformer | PMH + Transformer |
|---|---|---|---|
| PDBbind-v2007 | 0.824 (1.95) | 0.795 (2.006) | 0.837 (1.907) |
| PDBbind-v2013 | 0.787 (2.036) | 0.791 (1.977) | 0.807 (1.982) |
| PDBbind-v2016 | 0.834 (1.755) | 0.836 (1.716) | 0.851 (1.701) |
| Average | 0.815 (1.914) | 0.807 (1.9) | 0.832 (1.863) |
To enhance the predictive performance of our PMH machine learning models, we incorporate natural language processing (NLP)-based molecular features and develop an additional set of machine learning models. The pretrained NLP models generate molecular features using molecular sequences as input. Specifically, we utilize molecular features from transformer-based pretrained models for proteins46 and small molecules.11 These features are then integrated with the GBDT algorithm to create a new predictive model, referred to as model-seq. The modeling performance of this approach is presented in the third column of Table 4. The average value of the PMH model exceeds that of the transformer-based machine learning model. Additionally, we create a consensus model by combining the strengths of the three models “model-PMH2, model-PMH5, and model-seq” by averaging their predictions to determine the final predicted binding affinity. The last column of Table 4 shows the performance of the consensus model. The consensus model significantly boosts the performance of the PMH model, with an average R value of 0.832.
A series of advanced mathematical theories from algebraic topology and graph theory were employed to design molecular descriptors,20,30,41,47 leading to reliable machine learning models. Their success significantly relies on molecular characterization through topological invariants. Our machine learning model is comparable to these competitive models and demonstrates superior performance compared to a wide range of other published models. The Betti numbers from PMH include crucial topological invariants and provide additional mathematical analysis of molecular data. This significantly enhances the descriptive and predictive power of our molecular features.
We compare the performance of our consensus model with various models from the literature. Figure 4 depicts these comparisons across the three PDBbind datasets. Our model outperforms a wide range of models and represents the state of the art. The second column in Fig. 4 shows the comparison between experimental energy and predictions from our final consensus model. The high consistency between the two sets of binding energies validates the accuracy and reliability of our machine learning model. Deep neural networks have advanced the development of the scientific community. Integrating our PMH molecular descriptors with deep neural networks has the potential to offer even more accurate predictive models.
Fig. 4.

The prediction performance of our final machine learning model for three well-established protein-ligand binding affinity datasets including PDBbind-v2007, PDBbind-v2013, and PDBbind-v2016. The comparison of the experimental and predicted binding affinities for the three datasets are exhibited in the right column.
3. DISCUSSION
Molecular feature extraction plays a fundamental role in AI-driven drug design. End-to-end molecular representation learning using deep neural networks, such as CNNs and GNNs,16,17,51 has been developed and has shown impressive capabilities in analyzing biological data and predicting protein-ligand binding affinities. In contrast, molecular featurization or engineering takes a different approach by encoding the structural, physical, chemical, or biological properties of molecules. Among the various molecular featurization methods, those based on advanced mathematics have emerged as a highly promising strategy for significantly enhancing molecular featurization capabilities.
Geometric, topological, and combinatorial invariants from differential geometry, algebraic topology, and algebraic graph theory have proven to be valuable mathematical techniques in this regard.20,27,30,41,47 These mathematical molecular representations are characterized by a higher level of abstraction and transferability. Persistent homology has demonstrated high effectiveness for molecular featurization by employing topological invariants and their persistence along a filtration process. The proposed PMH theory extends persistent homology while preserving its power. Specifically, the Betti number information derived from Mayer homology theory across different -chain complexes includes the Betti number information of the usual simplicial homology when is reduced to 2. The utilization of filtration induces multiscale representations by collecting sufficient Betti number information from PMH. The molecular features induced by PMH can further enhance the descriptive and predictive capacity of the original persistent homology theory and lead to learning models with boosted performance.
We primarily focus on PMH5 for simplicial complexes derived from Alpha complexes due to concerns about computation time and cost. We also tested PMH3, but its modeling performance was not as strong as PMH5. VR complex involves more simplices than Alpha complex. As the dimension increases, the number of simplices grows dramatically. Since Mayer homology involves calculations across higher-dimensional simplices, the computational costs rise steeply, making higher dimensions computationally prohibitive. To enhance efficiency, particularly when dealing with VR complexes, more efficient computer programs can be developed. Recently, a series of topological persistent Laplacian theories have been proposed29,30,47 and applied to the design of molecular features. The harmonic spectral information of these Laplacians recovers the Betti numbers of persistent homology, while the non-harmonic spectral information provides additional geometric insights into the data. Additionally, a Persistent Mayer Laplacian based on simplicial complexes was developed in our recent study.36 We will further explore the potential of Persistent Mayer Laplacian for molecular representation learning in our future work. Other significant advancements in molecular featurization include the application of persistent de Rham-Hodge Laplacians.33 These methods demonstrate competitive performance and high potential. One key difference between these approaches and persistent homology or PMH is that they utilize continuum manifolds, whereas persistent homology and PMH focus on point cloud data. Our work in PMH advances the development of persistent homology and maintains its competitiveness.
4. METHODS
4.1. PMH theory
In this section, we introduce the mathematical theory of PMH. PMH builds on several key mathematical concepts, including -chain complexes, Mayer homology, and Mayer Betti numbers. Persistent homology, a crucial theory in algebraic topology, serves as the foundation for PMH. However, PMH extends persistent homology by providing a broader mathematical framework that includes higher-order analysis.
-chain complex and generalized differential.
Let be the field of complex numbers, an -chain complex is constructed as a graded -linear space , equipped with linear maps of degree −1. A key property of these differentials is that when applied times, they vanish, meaning . This property is fundamental to the structure of the -chain complex and allows for the development of a homological theory based on these complexes.
Suppose is a simplicial complex. The generalized differential of the simplicial complex is defined on the graded space , where is generated by the -simplices of . The differential acts on an -simplex by summing over the contributions of the -simplices obtained by omitting one vertex at a time:
where is the th primitive root of unity, and denotes the omission of the th vertex. This differential satisfies the property , a result stemming from the cyclic nature of the root of unity .
Mayer Homology.
Given a simplicial complex , we can obtain the -chain complex and generalized differential . For an integer such that , we have the following:
Note that , the above is a classical chain complex. In general, we have
![]() |
Thus we could give the th Mayer homology group of simplicial complex :
The rank of is defined to be the Mayer Betti number, denoted as . Specifically, is defined as the dimension of the vector space :
These numbers provide a quantitative measure of the topological and geometric complexity of the complex in the context of Mayer homology.
Persistent Mayer homology.
We will study the persistence of these topological features across different scales based on the filtration of simplicial complexes. For a non-decreasing real-valued function , we can obtain a filtration of simplicial complexes
for Here,
As the filtration parameter increases, the simplicial complex grows, allowing for the analysis of how features of Mayer homology evolve.
PMH is defined by examining the Mayer homology groups at different stages of the filtration. The PMH groups measure the topological and geometric features that persist from the simplicial complex to . Specifically, these groups are defined as
These persistent features can be visualized using persistence diagrams or barcodes, offering insights into the multi-scale topological and geometric structure of the data.
4.2. Natural language processing (NLP) molecular descriptors
We incorporate molecular descriptors derived from natural language processing (NLP) techniques to improve the performance of PMH machine learning models. A protein-ligand complex comprises the 3D structures of both the protein and the ligand. For these structures, sequence representations are utilized: amino acid sequences for the protein and SMILES strings for the ligand. NLP techniques are applied to design molecular features for each component. We then concatenate the molecular features from both parts into a single feature vector, which serves as the molecular descriptor for the entire protein-ligand complex.
4.2.1. ESM transformer protein language model
In recent years, significant progress has been made in modeling protein properties using large-scale protein transformer models trained on extensive datasets of protein sequences. A notable example is the ESM-2 transformer protein language model introduced by Rives et al.,46 which extracts underlying biological properties and relationships by deeply analyzing vast quantities of amino acids protein sequences. This model was trained on a dataset consisting of 250 million sequences using a masked filling procedure and features a sophisticated architecture with 34 layers and an impressive 650 million parameters.
We utilized the ESM transformer model to generate sequence embeddings for the protein part. At each layer of the ESM model, a sequence of length is encoded into a matrix of size , excluding the start and terminal tokens. For our machine learning predictions, we used the sequence representation from the sequence length axis, resulting in a 1280-component vector.
4.2.2. Transformer-based small molecular language model
A transformer-based deep learning model was proposed to extract molecular representations14 and is a valuable tool for small molecule machine learning analysis.52,53 This model was trained on over 700 million SMILES strings sourced from databases such as ChEMBL, PubChem, and ZINC. Three pretrained models were developed: model-C, model-CP, and model-CPZ. For each molecule, the model generates a dimensional matrix, where 256 represents the symbols associated with the molecule, and 512 denotes the vector dimension for each symbol. The molecular features are given by the average of the 256 vectors.
ACKNOWLEDGMENT
This work was supported in part by NIH grants R01GM126189, R01AI164266, and R35GM148196, NSF grants DMS-2052983, DMS-1761320, DMS-2245903, and IIS-1900473, NASA grant 80NSSC21M0023, MSU Foundation, Bristol-Myers Squibb 65109, and Pfizer.
Footnotes
CONFLICT OF INTEREST
The authors declare no conflict of interest.
STATEMENT OF USAGE OF ARTIFICIAL INTELLIGENCE
In the preparation of this paper, we utilized ChatGPT primarily to assist with improving the clarity and grammar of the English text. The AI tool was employed solely for language enhancement and did not contribute to the research content or data analysis.
DATA AVAILABILITY
All data and the code needed to reproduce this paper’s result can be found at https://github.com/WeilabMSU/PMH_Bio.
References
- 1.Fleming N. Computer-calculated Compounds. Nature 2018, 557 (7707), S55–S57. [DOI] [PubMed] [Google Scholar]
- 2.Li H; Leung K-S; Wong M-H; Ballester PJ Improving AutoDock Vina Using Random Forest: The Growing Accuracy of Binding Affinity Prediction by the Effective Exploitation of Larger Data Sets. Mol. Inform 2015, 34 (2–3), 115–126. [DOI] [PubMed] [Google Scholar]
- 3.Feinberg EN; Sur D; Wu Z; Husic BE; Mai H; Li Y; Sun S; Yang J; Ramsundar B; Pande VS PotentialNet for Molecular Property Prediction. ACS Cent. Sci 2018, 4 (11), 1520–1530. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Ballester PJ; Mitchell JBO A Machine Learning Approach to Predicting Protein-Ligand Binding Affinity with Applications to Molecular Docking. Bioinformatics 2010, 26 (9), 1169–1175. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Pan X; Wang H; Zhang Y; Wang X; Li C; Ji C; Zhang JZH Aa-Score: A New Scoring Function Based on Amino Acid-Specific Interaction for Molecular Docking. J. Chem. Inf. Model 2022, 62 (10), 2499–2509. [DOI] [PubMed] [Google Scholar]
- 6.Wang C; Zhang Y Improving Scoring-Docking-Screening Powers of Protein-Ligand Scoring Functions Using Random Forest. J. Comput. Chem 2017, 38 (3), 169–177. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Gu S. et al. Can Molecular Dynamics Simulations Improve Predictions of Protein-Ligand Binding Affinity with Machine Learning? Brief. Bioinform 2023, 24 (2), bbad008. [DOI] [PubMed] [Google Scholar]
- 8.Soares TA; Nunes-Alves A; Mazzolari A; Ruggiu F; Wei G-W; Merz K The (Re)-Evolution of Quantitative Structure-Activity Relationship (QSAR) Studies Propelled by the Surge of Machine Learning Methods. J. Chem. Inf. Model 2022, 62 (22), 5317–5320. [DOI] [PubMed] [Google Scholar]
- 9.Sato A; Miyao T; Jasial S; Funatsu K Comparing Predictive Ability of QSAR/QSPR Models Using 2D and 3D Molecular Representations. J. Comput.-Aided Mol. Des 2021, 35, 179–193. [DOI] [PubMed] [Google Scholar]
- 10.Durant JL; Leland BA; Henry DR; Nourse JG Reoptimization of MDL Keys for Use in Drug Discovery. J. Chem. Inf. Comput. Sci 2002, 42 (6), 1273–1280. [DOI] [PubMed] [Google Scholar]
- 11.Winter R; Montanari F; Noé F; Clevert D-A Learning Continuous and Data-Driven Molecular Descriptors by Translating Equivalent Chemical Representations. Chem. Sci 2019, 10 (6), 1692–1701. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Todeschini R; Consonni V Handbook of Molecular Descriptors; John Wiley & Sons: Hoboken, NJ, 2008. [Google Scholar]
- 13.Gao K; Nguyen DD; Sresht V; Mathiowetz AM; Tu M; Wei G-W Are 2D Fingerprints Still Valuable for Drug Discovery? Phys. Chem. Chem. Phys 2020, 22 (16), 8373–8390. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Chen D; Zheng J; Wei G-W; Pan F Extracting Predictive Representations from Hundreds of Millions of Molecules. J. Phys. Chem. Lett 2021, 12 (44), 10793–10801. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Nguyen T; Le H; Quinn TP; Nguyen T; Le TD; Venkatesh S GraphDTA: Predicting Drug–Target Binding Affinity with Graph Neural Networks. Bioinformatics 2021, 37 (8), 1140–1147. [DOI] [PubMed] [Google Scholar]
- 16.Wallach I; Dzamba M; Heifets A Atomnet: A Deep Convolutional Neural Network for Bioactivity Prediction in Structure-Based Drug Discovery, arXiv:1510.02855. [Google Scholar]
- 17.Ragoza M; Hochuli J; Idrobo E; Sunseri J; Koes DR Protein-Ligand Scoring with Convolutional Neural Networks. J. Chem. Inf. Model 2017, 57 (4), 942–957. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Jiménez J; Skalic M; Martinez-Rosell G; De Fabritiis G K Deep: Protein-Ligand Absolute Binding Affinity Prediction via 3D-Convolutional Neural Networks. J. Chem. Inf. Model 2018, 58 (2), 287–296. [DOI] [PubMed] [Google Scholar]
- 19.Carlsson G; Zomorodian A The Theory of Multidimensional Persistence. In Proceedings of the Twenty-Third Annual Symposium on Computational Geometry; ACM: New York, 2007; pp 184–193. [Google Scholar]
- 20.Cang Z; Wei G-W TopologyNet: Topology Based Deep Convolutional and Multi-Task Neural Networks for Biomolecular Property Predictions. PLoS Comput. Biol 2017, 13 (7), e1005690. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Bi W; Fu X; Li J; Wu J Persistent Magnitude for the Quantitative Analysis of the Structure and Stability of Carboranes. J. Comput. Biophys. Chem 2024, 1 (11), 11. [Google Scholar]
- 22.Edelsbrunner H. et al. Persistent Homology-A Survey. Contemp. Math 2008, 453, 257–282. [Google Scholar]
- 23.Zomorodian A; Carlsson G Computing Persistent Homology. In Proceedings of the Twentieth Annual Symposium on Computational Geometry; ACM: New York, 2004; pp 347–356. [Google Scholar]
- 24.Carlsson G; De Silva V Zigzag Persistence. Found. Comput. Math 2010, 10, 367–405. [Google Scholar]
- 25.Wang M; Cang Z; Wei G-W A Topology-Based Network Tree for the Prediction of Protein–Protein Binding Affinity Changes Following Mutation. Nat. Mach. Intell 2020, 2 (2), 116–123. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Nguyen DD; Cang Z; Wu K; Wang M; Cao Y; Wei G-W Mathematical Deep Learning for Pose and Binding Affinity Prediction and Ranking in D3R Grand Challenges. J. Comput.-Aided Mol. Des 2019, 33, 71–82. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Nguyen DD; Cang Z; Wei G-W A Review of Mathematical Representations of Biomolecular Data. Phys. Chem. Chem. Phys 2020, 22 (8), 4343–4367. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Chen J; Wang R; Wang M; Wei G-W Mutations Strengthened SARS-CoV-2 Infectivity. J. Mol. Biol 2020, 432 (19), 5212–5226. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Wang R; Nguyen DD; Wei G-W Persistent Spectral Graph. Int. J. Numer. Methods Biomed. Eng 2020, 36 (9), e3376. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Meng Z; Xia K Persistent Spectral-Based Machine Learning (PerSpect ML) for Protein-Ligand Binding Affinity Prediction. Sci. Adv 2021, 7 (19), eabc5329. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Wei X; Chen J; Wei G-W Persistent Topological Laplacian Analysis of SARS-CoV-2 Variants. J. Comput. Biophys. Chem 2023, 22 (5), 569. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Chen J; Qiu Y; Wang R; Wei G-W Persistent Laplacian Projected Omicron BA. 4 and BA. 5 to Become New Dominating Variants. Comput. Biol. Med 2022, 151, 106262. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Su Z; Tong Y; Wei G-W Persistent de Rham-Hodge Laplacians in Eulerian Representation for Manifold Topological Learning. AIMS Math. 2024, 9 (10), 27438–27470. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Liu J; Chen D; Pan F; Wu J Neighborhood Path Complex for the Quantitative Analysis of the Structure and Stability of Carboranes. J. Comput. Biophys. Chem 2023, 22 (04), 503–511. [Google Scholar]
- 35.Mayer W. A New Homology Theory. Ann. Math 1942, 370–380. [Google Scholar]
- 36.Shen L; Liu J; Wei G-W Persistent Mayer Homology and Persistent Mayer Laplacian. Found. Data Sci 2024, 6 (4), 584–612. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Liu Z; Li Y; Han L; Li J; Liu J; Zhao Z; Nie W; Liu Y; Wang R PDB-Wide Collection of Binding data: Current Status of the PDBbind Database. Bioinformatics 2015, 31 (3), 405–412. [DOI] [PubMed] [Google Scholar]
- 38.Cang Z; Wei G-W Integration of Element Specific Persistent Homology and Machine Learning for Protein-Ligand Binding Affinity Prediction. Int. J. Numer. Methods Biomed. Eng 2018, 34 (2), e2914. [DOI] [PubMed] [Google Scholar]
- 39.Bubenik P. et al. Statistical Topological Data Analysis Using Persistence Landscapes. J. Mach. Learn. Res 2015, 16 (1), 77–102. [Google Scholar]
- 40.Adams H; Emerson T; Kirby M; Neville R; Peterson C; Shipman P; Chepushtanova S; Hanson E; Motta F; Ziegelmeier L Persistence Images: A Stable Vector Representation of Persistent Homology. J. Mach. Learn. Res 2017, 18 (8), 1–35. [Google Scholar]
- 41.Nguyen DD; Wei G-W AGL-Score: Algebraic Graph Learning Score for Protein-Ligand Binding Scoring, Ranking, Docking, and Screening. J. Chem. Inf. Model 2019, 59 (7), 3291–3304. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Xia K; Opron K; Wei G-W Multiscale Multiphysics and Multidomain Models Flexibility and Rigidity. J. Chem. Phys 2013, 139 (19), 11B614. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Rana MM; Nguyen DD Geometric Graph Learning with Extended Atom-Types Features for Protein-Ligand Binding Affinity Prediction. Comput. Biol. Med 2023, 164, 107250. [DOI] [PubMed] [Google Scholar]
- 44.Rana MM; Nguyen DD EISA-Score: Element Interactive Surface Area Score for Protein-ligand Binding Affinity Prediction. J. Chem. Inf. Model 2022, 62 (18), 4329–4341. [DOI] [PubMed] [Google Scholar]
- 45.Liu X; Feng H; Wu J; Xia K Dowker Complex Based Machine Learning (DCML) Models for Protein-Ligand Binding Affinity Prediction. PLoS Comput. Biol 2022, 18 (4), e1009943. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Rives A. et al. Biological Structure and Function Emerge from Scaling Unsupervised Learning to 250 Million Protein Sequences. Proc. Natl. Acad. Sci. USA 2021, 118 (15), e2016239118. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Liu R; Liu X; Wu J Persistent Path-Spectral (PPS) Based Machine Learning for Protein-ligand Binding Affinity Prediction. J. Chem. Inf. Model 2023, 63 (3), 1066–1075. [DOI] [PubMed] [Google Scholar]
- 48.Cheng T; Li X; Li Y; Liu Z; Wang R Comparative Assessment of Scoring Functions on a Diverse Test Set. J. Chem. Inf. Model 2009, 49 (4), 1079–1093. [DOI] [PubMed] [Google Scholar]
- 49.Li Y; Liu Z; Li J; Han L; Liu J; Zhao Z; Wang R Comparative Assessment of Scoring Functions on an updated Benchmark: 1. Compilation of the Test Set. J. Chem. Inf. Model 2014, 54 (6), 1700–1716. [DOI] [PubMed] [Google Scholar]
- 50.Su M; Yang Q; Du Y; Feng G; Liu Z; Li Y; Wang R Comparative Assessment of Scoring Functions: The CASF-2016 Update. J. Chem. Inf. Model 2018, 59 (2), 895–913. [DOI] [PubMed] [Google Scholar]
- 51.Hassan-Harrirou H; Zhang C; Lemmin T RosENet: Improving Binding Affinity Prediction by Leveraging Molecular Mechanics Energies with an Ensemble of 3D Convolutional Neural Networks. J. Chem. Inf. Model 2020, 60 (6), 2791–2802. [DOI] [PubMed] [Google Scholar]
- 52.Hayes N; Merkurjev E; Wei G-W Graph-Based Bidirectional Transformer Decision Threshold Adjustment Algorithm for Class-Imbalanced Molecular Data. J. Comput. Biophys. Chem 2024. doi: 10.1142/S2737416524500479. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Shen L; Feng H; Qiu Y; Wei G-W SVSBI: Sequence-Based Virtual Screening of Biomolecular Interactions. Commun. Biol 2023, 6 (1), 536. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
All data and the code needed to reproduce this paper’s result can be found at https://github.com/WeilabMSU/PMH_Bio.

