All work

Research

Foursight

Finding chemical marks on RNA with graph learning

A model that predicts where a common chemical mark, m6A, sits on RNA, by letting nearby spots share evidence. It placed 1st in the DSA4262 competition.

Result

1st place, DSA4262 cohort-wide competition

Role

Team lead (team of 4)

Period

Sep 2026 – Nov 2026

Stack

Python, PyTorch, NumPy, Pandas, Scikit-Learn, LightGBM, AWS, Weights & Biases, React, Vite

In short

Cells put a small chemical mark called m6A on some of their RNA, and when it goes wrong it's linked to cancer. Finding these marks in the lab is slow, so we built a model that predicts where they are from sequencing data. It placed 1st in the DSA4262 cohort.

The problem

A newer kind of sequencing, called nanopore, reads RNA directly as a tiny electrical current, and an m6A mark changes that current slightly. However, the signal is noisy, and only about 1 in 22 possible spots actually carries a mark.

The best-known existing tool, m6Anet, looks at each spot on its own.

Our approach

Marks tend to appear close together. Two spots near each other on the same RNA are about twice as likely to both be marked as chance would suggest. So instead of judging each spot separately, our model also uses information from nearby spots.

What I did

I led a team of four, and worked on the model, the engineering around it and the results website.

  • Reading the signal. Part of the model learns what each spot looks like from all of its readings.
  • Connecting nearby spots. Spots on the same RNA are connected like a network, so information can pass between them.
  • A first attempt that didn't work. The standard way of doing this made results worse, because mixing in the neighbours' information drowned out each spot's own. Keeping the two separate fixed this.
  • Checking the neighbours mattered. When we replaced each spot's neighbours with random spots, most of the improvement went away, which showed the model was using its neighbours.

Results

We scored each model on how well it ranks the truly marked spots at the top of its list. The fairest comparison is on a cell line the published tool was never trained on, using genes our model never saw in training:

ModelScore (higher is better)
Foursight (ours)0.460
A strong standard model (LightGBM)0.392
The published tool (m6Anet)0.356
Random guessing0.072

Real samples often have only 3 to 5 readings per spot, far fewer than the 20 or more we trained on. With the readings cut down to one per spot, our model still scored 0.333, against 0.140 for the standard model.

We also checked it against an independent lab method on three cell lines it had never seen. It beat the published tool on two of them (liver cancer and stem cells) and was level with it on the third (lung cancer).

Using the model

The model installs in one step and doesn't need any deep learning software to run. It scores all 1.3 million candidate spots in about 5 minutes on a laptop.

I also built a website where researchers can look up a gene and get a shortlist of the spots most worth testing in the lab.

The Foursight results website showing the MYC gene in liver cancer cells: a table of the three top-ranked candidate spots, and a map of the gene with every candidate spot marked by its rank.
Looking up the MYC gene in liver cancer cells: its 50 candidate spots ranked, with the top three picked out.

For the technically minded

The full method, the statistics behind every number and the model's results are on the results website, under How it works and Model stats. The code is on GitHub.

Limits

  • Scores rank spots against each other. They aren't the chance that a spot is marked.
  • The few-readings test was simulated, by removing readings from well-covered spots.
  • The independent lab data misses some marks, so it isn't a perfect answer key.