At a glance
- Who
- Oscar Bastidas, Ph.D., a drug discovery researcher and Java developer in Minnesota – and, for the second project, Zoran Ševarac of Deep Netts.
- The task
- Find, among thousands of tested compounds, the few that change a protein the way a medicine should.
- The problem
- Screening produces tens of thousands of data points per session; common tools need native libraries or structural data many compounds lack.
- The solution
- Deep Netts feed-forward networks that learn from properties already in the compound library – in pure Java.
See it in motion
Both projects in one scene – the screening analysis with Deep Netts and the spike protein study. Play it, pause it, or click a step.
- 0
- Frames
- 0
- Top frequency
- 0
- Screened
- 0
- Hits
The study simulated the SARS-CoV-2 spike protein (PDB 6VSB) in water for 200 ns, one frame per nanosecond. From every frame the backbone angles φ and ψ of each residue are read – here φ of one residue.
- Protein dynamics
- Screening with Deep Netts
Sources: O. H. Bastidas & Z. Sevarac, Time dependent dihedral angle oscillations of the spike protein of SARS-CoV-2, Scientific Reports (2024); O. Bastidas, Ph.D., Deep Learning in Drug Discovery (2021). The protein fragment, compounds and values drawn are illustrative.
Thousands of measurements, a few good compounds
Proteins do almost all the work in a living cell. Each one is a chain of amino acids folded into a 3D shape, and the shape decides what it does. Many medicines are small molecules that bind to a protein and change that shape.
Finding such molecules is slow and expensive: bringing a candidate to patients can take up to a decade, and up to 95% of candidates fail on the way. Lab work is one of the main bottlenecks – but it also produces a lot of data, and that is where machine learning helps.
High-throughput screening
Robots test a whole compound library – thousands of small molecules – against one protein. Each tiny well on a plate gets the protein, one compound and a readout that gives a signal.
In this screen, a signal inside a certain range means the compound changed the protein's shape in the desired way: it is a hit. One session produces tens of thousands of data points.
- Good for machine learning: the data are already curated – controls and conditions are part of the design – and come in one consistent format.
- Hard for people: labs with a purely experimental focus can feel overwhelmed by so much data.
negative control positive control darker = stronger signal in the target range = a hit (26 here)
Where Deep Netts fits in
The goal is to find which properties of a compound lead to a good signal – and point the lab to the molecules most likely to work. Deep Netts is the engine of that analysis.
- Compound libraryEach compound comes with physical and chemical properties.
- ScreeningThe lab measures a signal for every compound.
- Deep NettsTrainA Deep Netts network learns: properties → signal.
- Deep NettsTuneHyperparameters fitted to the data for the best accuracy.
- HitsWhich compounds land in the target range, and which properties drive it.
The data, as the network sees it
| Compound | Mol. weight | logP | H-bond donors | Polar surface | Signal | Hit |
|---|---|---|---|---|---|---|
| C-0412 | 312.4 | 2.8 | 1 | 64.1 | 0.71 | ✓ |
| C-0413 | 198.2 | 0.9 | 3 | 88.5 | 0.12 | – |
| C-0414 | 451.6 | 4.3 | 0 | 41.7 | 0.33 | – |
| C-0415 | 287.3 | 2.1 | 2 | 72.9 | 0.66 | ✓ |
| … | … | … | … | … | … | … |
Each row is one example: the properties are the inputs, the measured signal is the answer the network learns to predict. Once trained, it can estimate the signal of compounds it has never seen – and show which properties matter.
TabularDataSet<MLDataItem> data = DataSets.readCsv("screen.csv", 4, 1, true, ","); // 4 properties → 1 signalTrainTestSplit split = data.trainTestSplit(0.8); FeedForwardNetwork model = FeedForwardNetwork.builder() .addInputLayer(4) .addFullyConnectedLayer(16, ActivationType.TANH) .addFullyConnectedLayer(8, ActivationType.TANH) .addOutputLayer(1, ActivationType.LINEAR) // predicted signal .lossFunction(LossType.MEAN_SQUARED_ERROR) .build(); model.getTrainer() // hyperparameters, tuned to the data .setLearningRate(0.001f) .setStopEpochs(1000);model.train(split.getTrainingSet()); float signal = model.predict(properties)[0];boolean hit = signal >= LOW && signal <= HIGH;Written like the regression examples in the Deep Netts cookbook – not the researcher's code, which is not published.
No structural data needed
The usual computational approach, QSAR, predicts a molecule's activity from its chemical structure. That needs the structure, usually as a SMILES code – a line of text spelling out atoms and bonds. Aspirin, for example:
CC(=O)OC1=CC=CC=C1C(=O)OFor thousands of compounds in a real library, getting that structure can be very hard: many are not in public databases such as ChEMBL, or the lab lists them under in-house names.
He also points to an idea of his own: recording which hyperparameters work best for a given experimental method could itself say something about that method – for example, whether the best values change when the measurement physics changes but the protein and the compounds stay the same.
Why pure Java
- No native libraries. Many deep learning tools rely on native code built for specific hardware and operating systems; on unusual machines they can be next to impossible to run. Deep Netts runs purely on the JVM, so the question disappears.
- His own language. As a Java developer he could use it right away, instead of spending weeks or months learning another language just for a different toolkit.
- Control over the model. Hyperparameters can be tuned to the nature of the data for the best prediction accuracy.
- Tools and help. Models can be built and analysed in the Deep Netts visual development environment, and he points to prompt, knowledgeable support from the Deep Netts team – especially with the enterprise edition. A free community edition also exists.
A second project: how the spike protein moves
The spike protein sits on the surface of the SARS-CoV-2 virus and grabs human cells, which makes it one of the most important drug targets. Its structure is well known; how its backbone moves over time was not.
Wobbling angles
A protein's backbone repeats the same three atoms – N, Cα, C – for every amino acid. The chain can twist around two bonds per residue: the angle φ (phi) around N–Cα and ψ (psi) around Cα–C. Together they decide the local shape.
The motion came from the authors' earlier simulation (PLoS ONE, 2020): the full spike protein in water, starting from structure 6VSB, run for 200 nanoseconds with one snapshot per nanosecond – about 200 values for every angle.
From wobble to frequencies
A Fourier transform splits a wobbling line into the simple rhythms it is made of. The authors ran the fast Fourier transform of the JDSP library, in Java, on every φ and ψ series and counted how often each frequency appeared – per amino acid, per chain and for the whole protein.
One angle (φ) over 200 ns, one value per ns
transform →
The rhythms it is made of (MHz)
What they found
- Favoured frequencies: the oscillations cluster between 23 and 63 MHz. The most common is 42.969 MHz, then 62.500 and 27.344 MHz – for both φ and ψ.
- A pattern like music: the counts alternate high and low along the spectrum, like a harmonic series – the protein is more “in tune” with some frequencies than others.
- Gaps: for rarer amino acids (histidine, methionine, tryptophan) some frequencies never appear in a chain, and the gaps differ between chains.
- Known sites differ in time, not frequency: residues known as allosteric sites or druggable pockets show distinctive patterns over time – brief excursions, sudden shifts – but no special frequencies.
| Residue | Known for | Source in the paper |
|---|---|---|
| Lys369, Phe377 | Allosteric site (luteolin binding) | Alvarado et al. |
| Glu406, Asn439, Lys417, Asn501 | Allosteric communication centres | Verkhivker et al. |
| Phe329, Phe515 | Motion of the receptor-binding domain when binding ACE2 | Xue et al. |
From similar time profiles the authors propose further residues to study – for example Asn211, Tyr421 and Thr124 (φ) or Leu858, Lys444 and Gln493 (ψ) – as possible starting points for vaccine or drug design, and stress that they need confirmation.
Limits
- One 200 ns simulation of the unmutated protein, with one chain of 6VSB in the “up” position.
- What frequencies in the MHz range mean physically is not yet established.
- The proposed residues need dedicated work to confirm a link to allostery or pockets, and proteins of other sizes must be studied.
The authors present the work as a reference for future studies, not a replacement for existing methods. The data are public on the Open Science Framework.
Sources
- O. Bastidas, Deep Learning in Drug Discovery – A New Frontier (2021) – the screening work and why Deep Netts.
- O. H. Bastidas & Z. Ševarac, Time dependent dihedral angle oscillations of the spike protein of SARS-CoV-2 reveal favored frequencies of dihedral angle rotations, Scientific Reports 14:3323 (2024) – the spike protein study.
- M. H. Peters, O. Bastidas, D. S. Kokron, C. E. Henze, PLoS ONE (2020) – the earlier simulation.
- Data of the 2024 paper: osf.io/n7tyg
Glossary (18 terms)
- Protein, residue
- A protein is a chain of amino acids; one amino acid in the chain is a residue.
- Conformational change
- A change in a protein's 3D shape – what a medicine often aims to cause.
- Compound library
- A lab's collection of small molecules to test, each with listed properties.
- High-throughput screening (HTS)
- Robots testing thousands of compounds against a protein in one session.
- Signal, hit
- The measured readout per compound; a hit is a compound whose signal falls in the target range.
- Controls
- Wells with known outcomes (nothing / full effect) that calibrate a plate.
- QSAR
- Quantitative structure–activity relationship: predicting activity from chemical structure.
- SMILES
- A text code for a molecule's structure, e.g. aspirin = CC(=O)OC1=CC=CC=C1C(=O)O.
- ChEMBL
- A large public database of bioactive molecules.
- Hyperparameters
- Settings chosen before training: layer sizes, learning rate, number of epochs…
- Native libraries
- Machine code built for one operating system and processor – what pure Java avoids.
- Spike (S) protein, 6VSB
- The SARS-CoV-2 surface protein that binds human cells; 6VSB is its structure in the Protein Data Bank.
- Backbone, φ and ψ
- The repeating N–Cα–C chain; φ and ψ are its two twist angles per residue.
- Molecular dynamics (MD)
- A simulation that moves every atom step by step under physical forces.
- ns, MHz
- A nanosecond is a billionth of a second; 1 MHz is a million oscillations per second.
- Fourier transform (FFT)
- Maths that splits a signal into the frequencies it is made of; FFT is the fast algorithm.
- Allosteric site
- A place on a protein, away from its active site, where binding still changes how it works.
- Druggable pocket
- A cavity on a protein's surface where a small molecule can bind.
