eduKateSG · Why Science?
Learn a compact tissue representation from masked expression and a spatial-neighbour graph—then separate useful embeddings from imputation assumptions, cluster choices, batch effects and biological proof
Reading routes
Science learning becomes useful when a familiar object or observation is turned into a system of quantities, mechanisms and claim limits. This guide owns one applied evidence-reading job inside eduKateSG’s wider Science estate. It connects naturally to Why Science Spatial Transcriptomics Tissue Coordinates Gene Expression Evidence; Why Science Stagate Graph Attention Autoencoders Spatial Domain Evidence; Why Science Squidpy Spatial Neighbourhoods Omics Image Analysis Evidence; Why Science Giotto Spatial Omics Workflows Cell Neighbourhood Evidence; Education Hub; Singapore Secondary School Directory; Career Adulthood Hub. It also keeps current school and public claims traceable to visible primary sources: SEDR primary study; SEDR PubMed record; Official SEDR repository; Official SEDR documentation; 2026 Singapore–Cambridge O-Level Biology syllabus; 2026 MOE G2 Computing syllabus. The sources describe the scientific scope; this article translates that scope into a calm route for Primary Science, PSLE Science, Secondary Science, O-Level Science, STEM exploration, school choices and career pathways without inventing admission or employment outcomes.
SEDR is an unsupervised method for learning low-dimensional representations of spatial transcriptomics data. Its peer-reviewed 2024 Genome Medicine paper couples a masked self-supervised deep autoencoder with a variational graph autoencoder so gene expression and spatial neighbourhoods inform the embedding together. The representation can support clustering, visualisation, trajectory analysis, batch integration and imputation. It does not make those downstream answers automatically biological: graph construction, masking, optimisation, cluster selection, specimens and independent validation still decide what the evidence can support.
Inside this guide
1–12 · Foundations and models
- 1. Ask what a useful embedding should preserve
- 2. Mask expression to create a learning task
- 3. Encode gene expression non-linearly
- 4. Build a spatial-neighbour graph
- 5. Use a variational graph autoencoder
- 6. Combine gene and spatial representations
- 7. Keep the published scope specific
- 8. Verify the expression-coordinate join
- 9. Map technical variation first
- 10. Filter and normalise transparently
- 11. Choose graph neighbours in physical context
- 12. Define the masking scheme
13–24 · Evidence, testing and applications
- 13. Track optimisation and seeds
- 14. Separate training from cluster selection
- 15. Practise with an invented audit table
- 16. Visualise embeddings without worshipping UMAP
- 17. Use clustering as a hypothesis
- 18. Treat trajectory as ordering, not time
- 19. Treat imputation as prediction
- 20. Handle batch integration cautiously
- 21. Replicate by donor or animal
- 22. Ablate expression and graph branches
- 23. Audit neighbour sensitivity
- 24. Audit masking and architecture
25–36 · Learning, decisions and pathways
- 25. Validate representative domains
- 26. Compare with a simpler baseline
- 27. Report negative results honestly
- 28. Turn embeddings into falsifiable questions
- 29. Try a transparent classroom model
- 30. Start the habit in Primary Science
- 31. Strengthen PSLE Science reasoning
- 32. Connect Secondary and O-Level Science
- 33. Use Computing as a partner
- 34. Choose schools by fit, not a buzzword
- 35. See the career pathways
- 36. Finish with a bounded claim
Section 1 of 36
1. Ask what a useful embedding should preserve
SEDR seeks a compact representation that retains gene-expression information and spatial neighbourhood structure. The embedding can support later analysis, but it is not an anatomical map by definition. Its meaning comes from the training objectives, input graph and downstream validation.
Section 2 of 36
2. Mask expression to create a learning task
A subset of spot profiles is masked, and the model learns to reconstruct information from the remaining expression and spatial context. This self-supervised task supplies training signals without manual labels. The mask design is still a choice and can favour some patterns over others.
Section 3 of 36
3. Encode gene expression non-linearly
A deep autoencoder maps high-dimensional expression to a lower-dimensional feature space and reconstructs the input. Non-linearity can represent complex variation, yet it can also fit technical structure. Reconstruction quality alone does not show that the latent features are biological.
Section 4 of 36
4. Build a spatial-neighbour graph
SEDR connects locations using coordinate-based nearest neighbours. The graph lets information move between spatially adjacent spots. Its edges encode computational proximity, not observed cell communication, shared lineage or a physical junction.
Section 5 of 36
5. Use a variational graph autoencoder
A variational graph autoencoder aggregates expression features over the spatial graph and learns a probabilistic spatial embedding. The approach regularises the representation, but its distributional and graph assumptions still require diagnostics and sensitivity analysis.
Section 6 of 36
6. Combine gene and spatial representations
The expression and graph-derived embeddings are concatenated into a joint latent representation. This gives both modalities influence. Their relative contribution depends on architecture, losses and scaling, so researchers should report ablations rather than assume balanced integration.
Section 7 of 36
7. Keep the published scope specific
The 2024 Genome Medicine paper evaluated SEDR for clustering, visualisation, trajectory inference, batch integration, imputation and denoising across several spatial technologies. Those demonstrations support possibility under stated datasets; they do not guarantee every follow-up answer.
Section 8 of 36
8. Verify the expression-coordinate join
Confirm spot IDs, row order, coordinate units, orientation, duplicates and tissue masks. Graph methods can propagate a local mismatch to several neighbours. Preserve a checksum or explicit mapping table between raw barcodes and the analysis object.
Section 9 of 36
9. Map technical variation first
Display counts, detected genes, background, tissue edges, batch and exclusions. A spatial graph can smooth a slide gradient or damaged region into a coherent embedding. Quality-control maps belong beside the biological cluster map.
Section 10 of 36
10. Filter and normalise transparently
Record gene filtering, normalisation, scaling and variable-feature selection. Autoencoders learn the supplied representation, not an idealised transcriptome. Repeat key findings with one defensible preprocessing alternative and keep raw counts visible.
Section 11 of 36
11. Choose graph neighbours in physical context
Report neighbour rule, k, distance metric, coordinate units and whether graph edges cross tissue gaps. A fixed k can span very different physical distances in dense and sparse regions. Graph construction should respect tissue masks and platform geometry.
Section 12 of 36
12. Define the masking scheme
State which spots or values are masked, the masking rate, whether it changes by epoch and how random seeds are handled. An easy task may teach identity; an extreme one may force oversmoothing. Masking is part of the scientific method, not merely training code.
Section 13 of 36
13. Track optimisation and seeds
Archive loss curves, early stopping, learning rate, batch handling, hardware and several seeds. Deep representations can rotate or partition differently without obvious errors. Stable downstream conclusions matter more than one low training loss.
Section 14 of 36
14. Separate training from cluster selection
SEDR learns an embedding, while clustering adds another model and resolution choice. Report both stages. If the number of clusters is tuned to match known anatomy, describe the result as label-informed evaluation rather than pure discovery.
Section 15 of 36
15. Practise with an invented audit table
This fictional table teaches checking, not benchmarking.
| Run | Neighbours | Mask rate | Seed stability | Domain agreement | First reading |
|---|---|---|---|---|---|
| A | 6 | 0.10 | high | repeated | stable structure |
| B | 12 | 0.10 | high | boundary shift | scale-sensitive |
| C | 6 | 0.30 | medium | mixed | masking-sensitive |
| D | 24 | 0.30 | low | merged | oversmoothing risk |
Section 16 of 36
16. Visualise embeddings without worshipping UMAP
UMAP or t-SNE provides a two-dimensional view, not the original latent geometry or tissue. Show spatial maps, quantitative neighbourhood preservation and raw expression alongside the embedding plot. Apparent islands can change with plotting settings.
Section 17 of 36
17. Use clustering as a hypothesis
Clusters can propose spatial domains when supported by markers and histology. Their number and boundaries remain algorithmic. Show stability across resolutions and specimens, and keep uncertain border spots visible.
Section 18 of 36
18. Treat trajectory as ordering, not time
Applying trajectory tools to an embedding can reveal gradual transitions. Spatial order does not prove temporal development or lineage. Root choice, graph shape and sampled tissue determine the path, so independent developmental evidence is necessary.
Section 19 of 36
19. Treat imputation as prediction
The decoder can fill or denoise expression values using learned patterns. Imputed values are not measured molecules. Keep raw and reconstructed layers separate, validate held-out observations and avoid using imputed data as independent confirmation of the same model.
Section 20 of 36
20. Handle batch integration cautiously
Combining SEDR embeddings with integration tools can reduce technical differences across sections. The same process may attenuate genuine biology if batch and condition overlap. Show pre- and post-integration maps and protect known positive biological contrasts.
Section 21 of 36
21. Replicate by donor or animal
Many spots within one section do not replace independent specimens. Train or evaluate across donors, animals and processing batches. Use held-out specimens when possible so the representation is tested beyond the data that shaped it.
Section 22 of 36
22. Ablate expression and graph branches
Run expression-only and graph-only variants for selected datasets. The comparison reveals whether the final pattern comes from molecular differences, geometry or their interaction. A biological claim should not hide behind a fused representation.
Section 23 of 36
23. Audit neighbour sensitivity
Vary k or radius over a prespecified range and examine embedding stability, boundaries and marker consistency. Large neighbourhoods can merge small domains; small ones can fragment smooth tissue. Report the scale that supports the claim.
Section 24 of 36
24. Audit masking and architecture
Repeat representative analyses across plausible masking rates and one smaller architecture. If conclusions disappear, describe them as training-sensitive. Model complexity should earn its place through held-out reconstruction or downstream stability.
Section 25 of 36
25. Validate representative domains
Use histology, in-situ RNA, protein staining or known anatomy for stable, weak, boundary and negative examples. Validation must not rely solely on the same expression matrix that trained the embedding.
Section 26 of 36
26. Compare with a simpler baseline
Compare SEDR with PCA, an expression-only autoencoder and a spatial method under aligned preprocessing. A complex model is valuable when it adds reproducible information, not merely because it creates a visually separated plot.
Section 27 of 36
27. Report negative results honestly
A failure to separate domains may reflect weak biology, missing genes, sparse capture, an unsuitable graph or optimisation. Simulations and held-out tests define what the pipeline could detect. Non-separation should not be rewritten as tissue uniformity.
Section 28 of 36
28. Turn embeddings into falsifiable questions
Use SEDR to nominate regions, markers or transitions for a new assay. Ask what result would disprove the inferred domain or trajectory. The embedding becomes more useful when it guides an independent experiment rather than serving as the final authority.
Section 29 of 36
29. Try a transparent classroom model
Mask several values in a coloured spatial grid and ask students to predict them using both the same row of features and neighbouring squares. Then reveal when neighbours mislead across a boundary. Keep the measured values, transformation, model output and interpretation in separate columns. That small audit makes assumptions visible and transfers to practical reports, data-response questions and fair comparisons.
Section 30 of 36
30. Start the habit in Primary Science
Primary Science develops observation, comparison, classification and fair testing. A child need not run SEDR to practise the foundation: record consistently, look for a pattern, change one condition and avoid claiming more than the evidence shows. Those habits support PSLE Science and later quantitative work.
Section 31 of 36
31. Strengthen PSLE Science reasoning
The useful PSLE connection is not memorising software names. It is reading tables and graphs, identifying variables, linking evidence to a conclusion and explaining what the investigation cannot prove. SEDR shows the same discipline at a scale where one attractive picture may summarise thousands of measurements.
Section 32 of 36
32. Connect Secondary and O-Level Science
Secondary Science and O-Level Biology develop cells, organisation, variation, experimental design and evaluation. SEDR provides a modern case where gene expression, tissue position and computation meet. Students can practise controls, alternative explanations and uncertainty while keeping syllabus concepts—not specialist jargon—central.
Section 33 of 36
33. Use Computing as a partner
Computing contributes data structures, algorithms, optimisation, visualisation and reproducibility. Science contributes the specimen, question, controls and biological interpretation. Code can compress or cluster observations efficiently, but it cannot repair a biased sample or convert an assumption into a measured mechanism.
Section 34 of 36
34. Choose schools by fit, not a buzzword
Families comparing Singapore schools should verify current subject combinations, laboratories, Applied Learning Programmes, CCAs, mentoring and timetable fit on official school and MOE pages. A mention of SEDR, AI or genomics is not proof of programme quality. Look for sustained inquiry, sound teaching and opportunities to explain results.
Section 35 of 36
35. See the career pathways
The reasoning behind SEDR appears in bioinformatics, machine learning, spatial biology, pathology, data engineering and scientific computing. Routes may pass through polytechnic, junior college, university and continuing education, with different blends of biology, mathematics, statistics, computing and communication. Check current institutional entry requirements; one school project cannot guarantee a course or career.
Section 36 of 36
36. Finish with a bounded claim
A careful conclusion keeps the limit visible: SEDR learns a joint expression–space representation and can predict or organise data; it does not turn graph edges into cell communication, imputed values into measurements or clusters into proven anatomy. Report inputs, settings, effect or separation, uncertainty, sensitivity, replication and validation together. This measured language is how a computational pattern becomes evidence another person can reproduce, challenge and improve.
A rigorous SEDR project begins with a two-branch data contract: the processed expression matrix entering the deep autoencoder and the coordinate graph entering the variational graph autoencoder. Record how identifiers join, which genes remain, how values are scaled, how neighbours are chosen and which tissue gaps are blocked. Preserve the raw-to-node mapping.
Pre-register masking rate, neighbour setting, latent dimensions, architecture, loss weights, optimiser, stopping rule, seeds and downstream tasks. Deep models offer many degrees of freedom. A fixed plan prevents a series of silent runs from ending with only the embedding that best resembles expected anatomy.
Quality maps should precede training. Display library size, detected genes, background, damaged tissue, section, field, batch and exclusions. Masked reconstruction can learn predictable technical structure, and graph aggregation can spread it. A low loss does not distinguish biology from nuisance.
Run expression-only and graph-only ablations. The expression branch shows what molecular data can organise without space; the graph branch shows the pull of neighbourhood geometry. The full model earns interpretation when it adds stable, validated structure beyond both simpler routes.
Masking sensitivity deserves a held-out experiment. Evaluate reconstruction on entries or spots excluded from training and compare several prespecified rates. Keep the holdout genuinely separate from tuning. Imputed values should be assessed against measured observations rather than against another model-produced layer.
Graph sensitivity should use physical distances as well as k. Map edge lengths and check whether connections cross holes, folds or section boundaries. Large k can make training easier by smoothing, yet erase compact domains. Small k can fragment tissue and isolate sparse regions.
Seeds and optimisation need quantitative stability. Align embeddings where necessary, then compare neighbour preservation, cluster agreement, marker consistency and downstream conclusions. Similar final losses do not guarantee similar tissue partitions. Publish instability at boundaries instead of averaging it away.
If clustering follows SEDR, show the complete second-stage contract: algorithm, distance, resolution, requested cluster count and seed. The embedding does not output anatomical labels by itself. Label assignment requires markers, morphology and independent knowledge.
Trajectory analysis needs separate validation. State root selection and test an alternative. An ordered embedding may describe a spatial transition, not time. Use developmental samples, lineage information or perturbations before naming a biological progression.
Batch integration should preserve positive biology. Compare technical replicates and known conditions before and after alignment. Maximum cross-batch mixing is not the goal when batch overlaps with tissue state or disease. Show which signals were removed and which remained.
Imputation and denoising should never become self-confirmation. Keep reconstructed values visually distinct, report uncertainty or error and validate selected genes with raw measurements or an independent assay. A smooth imputed pattern cannot validate the embedding that generated it.
Reproducibility materials include source matrices, processed layers, coordinates, graph edges, masks, model configuration, seeds, logs, checkpoints, latent vectors, reconstructions, cluster and trajectory settings, hardware, software commit, validation and checksums. Save enough state to reproduce the published figure without retraining a different model.
Did you know? Masking turns missing information into a learning game: the model must use the unmasked expression and spatial graph to recover what was hidden. That can build useful representations, but it also means the hiding rule teaches the model what kind of recovery matters.
For students, use a coloured grid with some squares covered. First predict using only the visible features in the same square; then allow adjacent squares. Introduce a sharp tissue boundary and watch when neighbour information helps or misleads. The exercise makes self-supervision, graphs and oversmoothing tangible without pretending to reproduce the neural network.
A careful final sentence might say: ‘SEDR produced a reproducible joint expression–space embedding across independent sections, with findings stable to prespecified masking, graph and seed choices and supported by held-out reconstruction and orthogonal tissue evidence.’ It should not describe imputed values as measurements, nearest-neighbour edges as communication or clusters as proven anatomy.
Treat the embedding as a reusable measurement object, not a disposable picture. Export spot identifiers beside every latent coordinate, preserve the transformation applied before training and state whether downstream distances were calculated on all latent dimensions or a selected subset. A two-dimensional display may be produced by another algorithm and can distort the geometry used for clustering, so figures should distinguish the learned SEDR representation from any visual projection.
Finally, design a failure-reporting table before analysis. Include sections with weak reconstruction, disconnected graph components, unstable clusters, boundary-sensitive labels and conclusions that did not replicate. These are not embarrassing leftovers: they reveal where expression provides too little information, where the spatial graph is misspecified or where the tissue differs genuinely. Reporting them helps another laboratory decide whether SEDR is suitable for its assay and gives students a realistic model of science as calibrated learning rather than a parade of perfect maps.
Contents · Previous section · Continue to the Science Learning Hub
