kcat-km-esm2-sub4
Enzyme kinetic parameter prediction
2 min readupdated
This bioinformatics model takes an enzyme's amino acid sequence and a substrate's structure to predict the logarithmic values of the turnover number (log10_kcat) and the Michaelis constant (log10_Km). Built by kevinp0, the solution combines two neural network committee branches (a two-tower network built on the ESM2-35M protein language model and RDKit chemical descriptors) with LightGBM gradient boosting and ExtraTrees. Unlike standalone baseline algorithms, this ensemble blends deep protein embeddings, substrate statistics, and sequence composition features while staying within a strict CPU runtime budget. It is aimed at bioinformaticians, computational biologists, and participants in specialized ML competitions.
Key features
- Hybrid ensemble: The final prediction blends an ESM2-35M neural network committee (0.30 weight), ExtraTrees (0.50), and LightGBM (0.20).
- Two-tower architecture: Separate branches process protein embeddings (ESM2) and RDKit substrate features (Morgan fingerprints, MACCS keys, and 2D descriptors) before fusing them via
[p, l, p*l]. - Strict CPU runtime control: Inference enforces hard timeouts (finishing within 10 minutes), using an int8-quantized ESM2-35M and a fallback ESM2-8M committee for long sequences.
- Expanded training dataset: Alongside 42,524 pairs from the primary dataset, training incorporated 27,863 filtered records from the BRENDA and SABIO-RK databases.
What you can do
- Run batch predictions of
log10_kcatandlog10_kmon enzyme–substrate pairs from a Parquet file and export the results to CSV. - Use the pretrained weights in the
weights/folder to reproduce the solution or fine-tune the ensemble for enzyme kinetics tasks.
Example
python predict.py --input INPUT.parquet --output OUTPUT.csvRead more
DetailsCross-validation (5 folds, grouped by homology with a 3-mer cosine > 0.25 threshold): Mean SCC = 0.573 (kcat SCC = 0.463, Km SCC = 0.682) vs. 0.383 for the starter ridge baseline.
Hardware and speed: Designed for CPU inference within a 10-minute total budget (up to 150 s for descriptors, up to 430 s for int8 ESM2-35M, and up to 520 s for ESM2-8M).
The repository includes
facebook/esm2_t6_8M_UR50D and facebook/esm2_t12_35M_UR50D weights alongside the trained ensemble files.









Comments