Genome-to-Image Translation: Reconstructing Escherichia coli Morphology from Genomic Sequences
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.
Abstract
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 |
| 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% | |
| 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% | |
| 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 |
| Antibiotic | Metric | Baseline | GAN-Augmented | -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 |
| Antibiotic | Metric | Baseline | GAN-Augmented | -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 |
Conditional Image Generation
Conditional image generation creates images guided by inputs such as text, sketches, layouts, masks, reference images, or physical measurements.
See all 176 papers