Genome-to-Image Translation: Reconstructing Escherichia coli Morphology from Genomic Sequences
Authors: Son T. Huynh, Thuy T. Le, Thu H. A. Huynh, Binh T. Nguyen
Organizations: AISIA Research Lab, Ho Chi Minh City, Vietnam. · Faculty of Mathematics and Computer Science, University of Science, Ho Chi Minh City, Vietnam. · Vietnam National University, Ho Chi Minh City, Vietnam.
Antimicrobial resistance in Escherichia coli is established in routine practice by culture-based susceptibility testing, which is slow relative to the clinical need for an early treatment decision. Resistance status also leaves a measurable trace in cell morphology, and whole-genome sequencing of clinical isolates is increasingly available, which raises the question of whether colony appearance can be predicted directly from an isolate's genome. We formulate this as a conditional image-generation problem. The assembled contigs of each isolate are encoded into a single 768-dimensional vector by a frozen genomic language model through a segment-contig-isolate aggregation hierarchy, and a conditional Wasserstein GAN with gradient penalty synthesizes colony images from this embedding together with the applied antibiotic and the resistance label. We train on 167,356 single-cell images from 22 clinical blood isolates imaged under azithromycin, ciprofloxacin, tetracycline, and a no-drug control, compare seven pretrained convolutional backbones inside the generator, and select ConvNeXt-Tiny on distributional image-quality metrics. The synthetic images are then assessed extrinsically: added to a reduced real training set, they improve per-antibiotic resistance classification, with a significant gain in resistant-class recall.
Figures & tables
Disk
Date
Isolates
Images
Cells
1
22/12/2021
9
213
74,359
2
30/12/2021
9
211
37,502
3
01/01/2022
9
125
61,220
Total
549
173,081
Table 1: Statistics on the number of Isolates, Images, and Cells per Disk
Antibiotic
Split
Total
R Label
% R
Images
Cells
Images
Cells
Images
Cells
AZI
Train
78
26,967
57
19,002
73%
70%
Val
22
4,935
14
3,191
64%
65%
Test
38
6,561
29
4,873
76%
74%
TE
Train
68
31,220
45
21,022
66%
67%
Val
22
6,795
16
4,779
73%
70%
Table 2: Number of images and cells per split under the isolate-agnostic splitting strategy.
Antibiotic
Split
Total
R Label
% R
Images
Cells
Images
Cells
Images
Cells
AZI
Train
82
22,218
59
15,610
72%
70%
Val
29
8,785
21
5,918
72%
67%
Test
27
7,460
20
5,538
74%
74%
TE
Train
77
29,265
51
18,480
66%
63%
Val
21
3,459
13
1,789
62%
52%
Table 3: Number of images and cells per split under the isolate-aware splitting strategy.
Figure 1: Overview of the proposed cWGAN-GP framework
Figure 2: Genomic encoding pipeline.
Figure 3: Overview of the Generator architecture
Figure 4: Overview of the Critic architecture
Backbone type
FID
KID
SSIM Avg
ConvNeXt-Tiny
80.88
0.026
0.803 ± 0.058
DenseNet121
82.18
0.027
0.808 ± 0.052
MobileNet-V2
84.73
0.029
0.805 ± 0.056
ResNet101
89.47
0.035
0.787 ± 0.062
EfficientNet-B0
90.42
0.028
0.809 ± 0.055
VGG-16
102.79
0.030
0.782 ± 0.071
Table 4: Quantitative comparison of different backbones within cWGAN-GP framework on the test set. For the FID and KID, lower is better. For the SSIM, higher is better.
Figure 5: Examples of bacterial cells generated by the proposed cWGAN-GP with a ConvNeXt-Tiny backbone. Each synthetic image (right) was generated under the same genomic and phenotypic condition as the corresponding real image (left). Results are shown for (a) AZI, (b) TE, and (c) CIP.
Antibiotic
Metric
Baseline
GAN-Augmented
p -value
AZI
Precision (R)
0.990 ± 0.021
0.967 ± 0.019
–
Recall (R)
0.717 ± 0.066
0.800 ± 0.038
0.0120*
F1-Score (R)
0.831 ± 0.046
0.875 ± 0.027
0.0304*
Precision (S)
0.523 ± 0.071
0.588 ± 0.051
0.0389*
Recall (S)
0.978 ± 0.050
0.911 ± 0.050
–
F1-Score (S)
0.680 ± 0.064
0.714 ± 0.049
0.1410
Table 5: (Isolate-Agnostic Splitting) Per-antibiotic comparison between Baseline and GAN-Augmented training. Image-level hard voting, mean ± std over 5 seeds. Bold : numerically higher score within each metric for the same antibiotic. ∗=p<0.05 (paired one-sided t -test, H1 : Baseline < GAN-Augmented).
Figure 6: (Isolate-Agnostic Splitting) Performance comparison between Baseline and GAN-Augmented training for (a) AZI, (b) TE, and (c) CIP.
Antibiotic
Metric
Baseline
GAN-Augmented
p -value
AZI
Precision (R)
0.904 ± 0.064
0.879 ± 0.042
–
Recall (R)
0.450 ± 0.000
0.550 ± 0.094
0.038*
F1-Score (R)
0.600 ± 0.014
0.671 ± 0.058
0.045*
Precision (S)
0.352 ± 0.027
0.377 ± 0.023
0.147
Recall (S)
0.857 ± 0.101
0.771 ± 0.128
–
F1-Score (S)
0.499 ± 0.044
0.503 ± 0.031
0.428
Table 6: (Isolate-Aware Splitting) Per-antibiotic comparison between Baseline and GAN-Augmented training. Image-level hard voting, mean ± std over 5 seeds. Bold : numerically higher score within each metric for the same antibiotic. ∗=p<0.05 (paired one-sided t -test, H1 : Baseline < GAN-Augmented).
Figure 7: (Isolate-Aware Splitting) Performance comparison between Baseline and GAN-Augmented training for (a) AZI, (b) TE, and (c) CIP.
The detection and classification of bacterial colonies in images of agar-plates is important in microbiology, but is hindered by the lack of labeled datasets. Therefore, we propose Colony Grounded SAM2, a zero-shot inference pipeline to detect and segment bacterial colonies in multiple settings without any further training. By utilizing the pre-trained foundation models Grounding DINO and Segment Anything Model 2, fine-tuned to the microbiological domain, we developed a model that is robust to data changes. Results showed a mean Average Precision of 93.1% and a Dice@detection score of 0.85, showing excellent detection and segmentation capabilities on out-of-distribution datasets. The entire pipeline with model weights are shared open access to aid with annotation- and classification purposes in microbiology.
Daan Korporaal, Patrick de Kruijf, Ralph H. G. M. Litjens +1
Wageningen Food Safety Research, Wageningen, The Netherlands
When a bacterial sample is exposed to several antibiotics, not every applied drug necessarily acts: if the organism is resistant to one of them, that drug leaves no morphological trace. The clinically meaningful quantity is therefore not which antibiotics were applied, but which ones were active. We show that these two are sharply decoupled in real E. coli microscopy - naively assuming the applied combination equals the active one is correct only about 37% of the time - yet existing computational tools are ill-suited to recovering the active set. Forward perturbation models such as scGen, CPA, and IMPA are designed to predict appearance from treatment, not the reverse, and inverting them degrades sharply; discriminative image classifiers tend to memorise strain- and batch-specific texture and fail to transfer across experimental replicates. We introduce AURA, which reframes the task as constrained, energy-based inverse attribution. Its central inductive bias is that the active set must be a subset of the applied set; this collapses the candidate space and lets AURA infer the active subset of applied antibiotics by decomposing residual morphology into antibiotic response atoms and selecting the subset with the lowest reconstruction energy, using no strain label at test time. AURA-E adds evidence-aware abstention, withholding a prediction when candidate explanations remain near-equally plausible. On cross-replicate transfer in an E. coli cytological profiling dataset, AURA recovers the active antibiotic combination with 95.47% exact-match accuracy.
Institute for Digital Molecular Analytics and Science, Nanyang Technological University, Singapore 636921 · School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore 639798 · Institute for Functional Intelligent Materials, National University of Singapore, Singapore 117544
Generative augmentation is often proposed as a remedy for small medical-image datasets, but synthetic images are only useful when they improve downstream task performance. "Augmentation" here means synthetic supplementation: GAN-generated samples added to the real training pool, not geometric or photometric transforms of existing images. Twelve class-plane StyleGAN2-ADA generators were trained on constrained BRISC 2025 partitions to test whether their output, with or without InceptionV3 feature-space filtering, improves held-out tumour classification across three classifier families: a random forest (RF) on InceptionV3 features, a compact two-headed convolutional neural network (CNN), and MobileViTV2, a mobile hybrid convolutional-transformer. Each was evaluated at 1:1 and 1:2 real-to-synthetic ratios. An independent GPT-5.5 blind test placed gated real-versus-synthetic discrimination at 57.73% (95% CI: 54.48--60.92%) on the model-legible subset -- modestly above chance. The RF classifier did not benefit from the synthetic MRIs. The CNN showed consistent mean gains that did not survive Holm correction. MobileViTV2 showed the clearest benefit: filtered 1:1 augmentation improved tumour classification accuracy by 1.02% absolute (95% CI: 0.54--1.54%; Holm-corrected p = 0.0104). A secondary efficiency analysis found that every augmented CNN condition selected its checkpoint 42--64% earlier than baseline, while compute-matched MobileViTV2 runs reached selection after 50--67% fewer real-data epochs. Overall, augmentation utility was found to be architecture- and ratio-dependent, not guaranteed by visual fidelity alone.