
XeonLLM: LLM Inference Engine and Agentic AI Platform
XeonLLM is the LLM inference and agentic AI platform I build and own end to end at Digimat SPA, from architecture through production handover; its open-source face is a native...
Read More

Published on May 26, 2017 by Samer Kharboush on ML Bioinformatics

Machine-learning models to predict antibiotic resistance in Neisseria gonorrhoeae from genomic data, aiming to identify multidrug-resistant strains early.
Gonorrhoea, caused by Neisseria gonorrhoeae, is the second most common sexually transmitted infection in Europe after chlamydia, and rates are rising (a 26% increase was reported from 2017–2018 in the UK). Many infected people, especially women, have no symptoms, and untreated infection can lead to infertility and can spread to joints, heart valves, brain or spinal cord. Resistance to antibiotics is rising over time, making infections hard to treat: ciprofloxacin was abandoned because resistance became too common, azithromycin was removed from recommendations over resistance concerns, and in February 2018 the first reported case of resistance to ceftriaxone and azithromycin treatment, as well as to the last-resort treatment spectinomycin, was reported. Currently in the UK patients are treated only with ceftriaxone. This project builds machine-learning models to predict resistance to three drugs — azithromycin, cefixime and ciprofloxacin — from genomic data.
The goal is early identification of multidrug-resistant strains: predict, from genome sequence, whether a strain is resistant to each of the three antibiotics, using the same process for each drug so models can be compared, and check that what the models learn matches existing knowledge of resistance mechanisms.
I built the data preparation, model training, evaluation and interpretation workflow end to end.
The data are genome sequences with antibiotic-resistance phenotypes from public sources (microreact, project N_gonorrhoeae). DNA variation is represented with unitigs — short stretches of DNA shared by a subset of strains — filtered by the DBGWAS project to unitigs statistically associated with resistance; the full set is 584,362 unitigs, so a filtered set is used. A reusable function takes the phenotype (the resistance pattern for one antibiotic) as input and returns the presence/absence matrix (X) and resistance labels (pheno), dropping samples without a value. Models are trained with K-fold cross-validation (5 folds) and grid search for hyper-parameters; a predicted value ≤ 0.5 is called sensitive and > 0.5 resistant. Four model families are fitted: elastic-net logistic regression, support vector machine, XGBoost and random forest. Accuracy and training time are compared with curves and plots; SVM and random-forest feature importances are inspected and the top unitigs are checked against known resistance mechanisms via BLASTN; a learning curve shows whether collecting more samples would help.
scikit-learn, pandas, NumPy, Matplotlib, seaborn. Public data from microreact and NCBI; unitigs from the DBGWAS project.
No final accuracy figures are stated in the source, so results are stated as delivered capabilities. The delivered workflow predicts resistance to azithromycin, cefixime and ciprofloxacin with four model families, compares their accuracy and training time, interprets feature importance against known resistance mechanisms, and uses a learning curve to judge whether more samples would help. The analysis is reproducible from the published notebook and repository.
Source code: github.com/SamerKharboush/Antibiotic-DNA-resistant-sequence. Background paper: Epidemiological Trends of Antibiotic Resistant Gonorrhoea in the United Kingdom. Unitigs and DBGWAS: DBGWAS paper. Interactive data: microreact, N_gonorrhoeae. Project website: samerkharboush.tk.

XeonLLM is the LLM inference and agentic AI platform I build and own end to end at Digimat SPA, from architecture through production handover; its open-source face is a native...
Read More
AIPL is my open-source, auditable ADMET screening platform for early drug-discovery decisions, in active development. ADMET — absorption, distribution, metabolism, excretion and toxicity — screening decides which molecules move forward,...
Read More
Space2Sea is a EUR 1.04M PR FESR project with CNR that I contribute to at Digimat: a multi-sensor Earth Observation platform for protecting coastal marine environments, built on Digital Twin...
Read More