Molecular Machine Learning Using Euler Characteristic Transforms Victor Toscano-Duran, Florian Rottach, Bastian Rieck Abstract The shape of a molecule determines its physicochemical and biological properties. However, it is often underrepresented in standard molecular representation learning approaches. Here, we propose using the Euler Characteristic Transform (ECT) as a geometrical-topological descriptor. Computed directly on a molecular graph derived from handcrafted atomic features, the ECT enables the extraction of multiscale structural features, offering a novel way to represent and encode molecular shape in the feature space. We assess the predictive performance of this representation across nine benchmark regression datasets, all centered around predicting the inhibition constant K i K_{i} . In addition, we compare our proposed ECT-based representation against traditional molecular representations and methods, such as molecular fingerprints/descriptors and graph neural networks (GNNs). Our results show that our ECT-based representation achieves competitive performance , ranking among the best-performing methods on several datasets. More importantly, its combination with traditional representations, particularly with the AVALON fingerprint, significantly enhances predictive performance , outperforming other methods on most datasets. These findings highlight the complementary value of multiscale topological information and its potential for being combined with established techniques. Our study suggests that hybrid approaches incorporating explicit shape information can lead to more informative and robust molecular representations, enhancing and opening new avenues in molecular machine learning tasks. To support reproducibility and foster open biomedical research, we provide open access to all experiments and code used in this work. K eywords Euler Characteristic Transform ⋅ \cdot Topological Data Analysis ⋅ \cdot Molecular Machine Learning ⋅ \cdot Molecular Representations 1 Introduction Understanding and predicting the properties of molecules is at the core of modern medicine and healthcare. Almost all pharmaceutical agents, like small-molecule drugs or diagnostic agents, are molecular in nature, and their therapeutic efficacy is critically dependent on their physicochemical and biological properties. From drug discovery to personalized medicine, the ability to predict how a molecule will behave in the body (its solubility, toxicity, bioavailability, and binding affinity), as well as predicting molecule properties, is essential for developing safe and effective treatments. Given the high costs and long timelines associated with traditional drug discovery, predictive modeling has emerged as a vital tool for improving the efficiency of the early stages of drug development, enabling faster screening of potential candidates and reducing the need for extensive experimental testing [ 4 , 9 , 32 ] . However, despite significant advancements, predicting molecular properties remains a challenge due to the complexity of molecular behavior. Traditional molecular representations, such as fingerprints or descriptors, often fail to fully capture the rich structure and shape information that influence a molecule’s function in a biological context [ 8 , 33 ] . This gap is particularly pronounced when trying to predict properties like the inhibition constant ( K_{i} ), a key parameter in drug–target interactions, where even small changes in molecular shape can lead to large differences in binding affinity [ 10 , 30 ] . Recent developments in molecular machine learning have demonstrated the potential of deep learning techniques in general and graph-based models in particular to improve predictive performance [ 2 , 15 ] . However, many of these models still fail to fully capture the topological and geometric aspects of molecular shape, proving detrimental to the learning outcome. For example, methods like Graph Neural Networks (GNNs) [ 13 , 35 ] may capture some of the structural information, but they often overlook the importance of representing the shape in a comprehensive and multiscale manner [ 17 ] . This is where algebraic topology [ 14 , 23 ] and topological data analysis [ 12 , 20 ] provide powerful tools to analyze the shape of molecular data, as shown by recent studies [ 27 ] . The Euler Characteristic Transform (ECT) [ 25 , 22 ] , for example, could be a topological representation of molecules that captures the molecular shape by tracking changes in the Euler characteristic [ 19 ] across different scales and directions of the feature space. By incorporating topological shape information, the ECT allows us to represent and encode the molecular structure in a multiscale and novel way, capturing essential shape details that traditional representations may miss. Recent studies have shown the promise of the ECT in other fields, such as biology and material science, where shape plays a crucial role in determining functional properties [ 1 , 26 ] . In this work, we compare and explore the use of the ECT-based molecular representation, which is computed directly over molecular graphs derived from handcrafted atomic features, to predict K_{i} , a key molecular property, as well as perform a comparison between our approach and traditional methods over a series of nine binding affinity datasets. By using this topological representation, as well as combining it with traditional molecular representations, we aim to enhance predictive performance and provide new insights into the role of molecular shape in molecular learning. Our experiments shows that our ECT-based approach exhibites competitive predictive performance, in some cases even outperforming all alternative methods. In addition, our experiments show that the combination of our ECT-based approach with existing methods, more specifically with the AVALON fingerprint, leads to improved performance, thus highlighting the complementary value of multiscale topological and shape information. Ultimately, our work contributes to the growing body of evidence suggesting that incorporating molecular shape at a fundamental level can lead to more robust and informative models, opening up new avenues for the design of better molecular machine learning and more effective therapies. The remainder of this paper is organized as follows: Firstly, Section 2 introduces the foundational concepts relevant to our study, including molecular structures and their representations, traditional molecular descriptors, and the Euler Characteristic Transform. Section 3 details the datasets employed, the traditional representations included for comparison in the experiments, our proposed ECT-based approach, and the overall experimental setup. The results of our experiments, with a comprehensive discussion, are presented in Section 4 . Finally, conclusions and future work are discussed in Section 5 . 2 Background Molecules [ 6 ] are the fundamental building blocks of chemical and biological systems. In the context of drug discovery [ 11 ] , small molecules are designed or screened for their ability to modulate the activity of specific biological targets, typically proteins. The interaction between a drug and its target is governed by a complex interplay of properties, including molecular shape, electronic distribution, and physicochemical characteristics such as hydrophobicity, polarity, and charge. Accurately modeling and predicting these properties is a central challenge in cheminformatics and molecular machine learning [ 33 ] . In practice, molecules are often represented in formats that facilitate both human readability and algorithmic processing. One of the most widely used textual encodings is the SMILES (Simplified Molecular Input Line Entry System) notation, which encodes a molecule as a string describing the atoms and their connectivity through a series of characters and symbols. For example, the SMILES string CC(O)=O represents acetic acid. This format is compact, easily parsed, and widely supported in cheminformatics toolkits. However, SMILES do not directly convey geometric or spatial information, and small changes in the string can correspond to large structural differences. From molecular structures (e.g. SMILES, although alternative encodings exist), it is common to derive graph-based representations [ 13 ] , where atoms are modeled as nodes and covalent bonds as edges, possibly enriched with additional features such as atomic types, bond orders, or aromaticity indicators. These molecular graphs serve as the foundation for numerous machine learning models, facilitating the use of graph-based algorithms and neural networks [ 9 ] . They also provide the basis for computing molecular representations such as fingerprints, descriptors, and our ECT-based representation. An example of the molecular graph of acetic acid is shown in Fig. 1(a) . Traditionally, computational models for molecular machine learning tasks have relied on handcrafted molecular representations [ 33 ] . Among these are molecular descriptors , which are numerical features derived from molecules, such as atom counts, topological indices, or electronic properties, and molecular fingerprints , which represent the presence of specific substructures or chemical motifs (e.g., AVALON or MACCS) as binary or count vectors. Both types of features are computed directly from the molecular graph structure. These representations have been successfully applied in a variety of tasks such as virtual screening, quantitative structure–activity relationship (QSAR) modeling, molecule classification, and property prediction. However, they often suffer from a lack of expressiveness and poor generalization to out-of-distribution chemical spaces, especially in the presence of subtle variations in molecular geometry [ 3 , 8 , 34 ] . In recent years Graph Neural Networks (GNNs) [ 13 ] , have become a dominant paradigm in molecular property prediction, extending neural networks to graph-based data. The core mechanism of most GNNs is message passing, which iteratively propagates information across the graph elements. While GNNs can capture relational and structural information more flexibly than fixed descriptors, they often lack explicit access to multiscale shape information. Moreover, they may struggle to distinguish between molecules that are topologically or geometrically distinct but share similar local connectivity [ 15 ] . Methods from Topological Data Analysis (TDA) [ 12 ] provide a complementary perspective. Instead of relying on raw atomic positions, handcrafted atomic features or purely local graph structures, TDA extracts global shape features from data, capturing relevant geometric information at multiple scales [ 20 ] , making it thus particularly suitable for applications in the life sciences [ 31 ] . A particularly relevant tool within this framework is the Euler Characteristic Transform (ECT) [ 22 , 25 , 26 , 29 ] , a method that combines ideas from algebraic topology with geometric data analysis. The ECT operates by filtering a shape, such as the molecular graph, along multiple directions in the feature space, and computing the Euler characteristic [ 19 ] , denoted as \chi . This geometrical-topological quantity encodes information about the the number of connected components, holes, and voids at each step of the filtration. Moreover, it is an invariant , i.e., it will remain unchanged under any smooth transformation applied to a shape. Put briefly, the Euler characteristic can be seen as a summary statistic of the shape of a graph or simplicial complex. To fully understand this tool and how molecules are represented as graphs, we next provide a more detailed introduction about graphs and simplicial complexes, serving as the initial points for computing the Euler characteristic and the ECT. Graphs. Graphs enable the modeling of real-world systems by focusing on dyadic relationships between elements. Formally, a graph G=\left(V,E\right) consists of a finite set of vertices V=\{v_{1},v_{2},\dots,v_{n}\} , which represent entities (e.g. atoms in a molecule), and a set of edges E\subseteq\{\{u,v\}\mid u,v\in V\text{ and }u\neq v\} , which represent pairwise relationships (e.g., chemical bonds). In cheminformatics, graphs are the natural way to represent molecules, nodes corresponds to atoms, typically encoded as a feature vector, and edges to chemical bonds. However, to extract richer geometric and topological information, we can generalize graphs into structures called simplicial complexes . The graph of the acetid acid molecule shown in Fig. 1(a) (visualized in 2D ) contains 8 vertices, which corresponds to 2 carbon atoms, 2 oxygen atoms, and 4 hydrogen atoms and 7 edges, with \{H,O\} being an example of an edge between two vertices (representing a chemical bond). Simplicial complexes. An (abstract) simplicial complex K is a data structure for representing topological spaces, which generalizes a graph by permitting more than mere dyadic relations. It is defined as a family of sets ( simplices ) that is closed under taking subsets, meaning that if a set (like a triangle) is part of the complex, then so are all its faces (edges and vertices). More formally, a simplicial complex is obtained by a nested family of simplices, which are the elementary building blocks, for example: a 0 -simplex can be thought of as a point (vertex), a 1 -simplex as an edge, a 2 -simplex as a filled triangle, and a 3 -simplex as a filled tetrahedron. Each k -simplex has k+1 faces obtained by removing one of the vertices. For example, the graph of Fig. 1(a) can also be seen as a 1 -dimensional simplicial complex with 8 0 -simplices and 7 1 -simplices. The Euler characteristic is a key topological invariant of a simplicial complex K , being defined as: \chi(K)=\sum^{n}_{k=0}(-1)^{k}|K^{(k)}|, (1) where |K^{(k)}| denotes the number (cardinality) of k -simplices in the simplicial complex K . Hence, the Euler characteristic is an alternating sum of the number of simplices (elements) in each dimension. In the case of (molecular) graphs, which only consist of 0 -simplices (vertices) and 1 -simplices (edges), this is reduced to: \chi=|V|-|E|. (2) For example, the Euler characteristic of the acetic acid graph presented in Fig. 1(a) is 1 ( 8 vertices, 7 edges). Taken on its own, the Euler characteristic lacks sufficient complexity to fully describe a shape, but if we think of computing it at different scales (thresholds), considering we have a dynamic object, which grows in the number of their components (vertex, edges, etc.) across time, we may observe significant changes on it. This leads to the concept of the Euler Characteristic Curve (ECC), which tracks how the topological complexity of a shape evolves over different scales. To formalize this dynamic view and to compute the Euler characteristic at different scales, we use the notion of a filtration, leading to a filtered simplicial complex . More formally, a filtered simplicial complex is a collection of subcomplexes \{K(t)\mid t\in\mathbf{R}\} of a simplicial complex K such that K(t)\subseteq K(s) for t