AI Science Lab β€Ί Advanced Module 1
πŸ•ΈοΈ Module 09 Β· Advanced

Graph Neural Networks in Chemistry

Traditional computer vision models only understand flat grids of pixels. But the natural world is made of 3D networks: molecules, crystals, and social connections. Discover how Graph Neural Networks (GNNs) operate directly on atoms and bonds!

πŸ“ MATHEMATICAL GRAPH THEORY: A graph consists of Nodes (V) and Edges (E). In chemistry, each atom is a node (Carbon, Nitrogen, Oxygen) and each covalent bond is an edge (single, double, aromatic).
πŸ“–

Why Regular Neural Networks Fail at Chemistry

If you take a picture of a caffeine molecule and rotate it by 45 degrees, a standard image convolutional neural net sees completely different pixel coordinates. But the molecule itself hasn't changed at all! This is called rotational and translational invariance.

Molecules are topological graphs. An atom doesn't care if it's pointing up or down; it only cares about which other atoms it is bonded to and the distance between them.

Graph Neural Networks (GNNs) solve this through Message Passing. Every node aggregates chemical information from its immediate neighbors, updates its state, and sends a new message outward. After 3 to 5 hops, every atom understands its role in the global molecular structure!

πŸ“Ί How Graph Neural Networks (GNNs) Model Molecular Structures and Quantum Mechanics
βš™οΈ

The 3 Phases of Molecular Message Passing

1

Node Feature Vector

Each atom starts with properties: atomic number, formal charge, hybridization (sp, sp2, sp3), and chirality.

2

Message Aggregation

At each iteration, node A gathers messages from all bonded neighbors (B, C, D) weighted by bond strength and 3D Euclidean distance.

3

Global Pooling (Readout)

The network aggregates the final node states across the whole molecule into a single fingerprint to predict solubility, binding affinity, or toxicity.

πŸ’Š Discovering Halicin: The AI Antibiotic

In 2020, MIT researchers used a GNN trained on molecular graphs to screen over 100 million chemical compounds in days. It discovered Halicin β€” a potent new antibiotic that kills deadly drug-resistant superbugs using a chemical mechanism completely unlike any human-designed antibiotic in history!

πŸ•ΈοΈ Quick Lab Check: In a chemical Graph Neural Network, what represents the nodes and edges?

A) Atoms are nodes, and the chemical bonds between them are edges.
B) Pixels are nodes, and screen wires are edges.
C) Glass test tubes are nodes, and water pipes are edges.