{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/brain-imaging-generation-with-latent","title":"Brain Imaging Generation with Latent Diffusion Models","arxiv_id":"2209.07162","date":"2022-09-15","proceeding":null,"authors":["Walter H. L. Pinaya","Petru-Daniel Tudosiu","Jessica Dafflon","Pedro F Da Costa","Virginia Fernandez","Parashkev Nachev","Sebastien Ourselin","M. Jorge Cardoso"],"abstract":"Deep neural networks have brought remarkable breakthroughs in medical image analysis. However, due to their data-hungry nature, the modest dataset sizes in medical imaging projects might be hindering their full potential. Generating synthetic data provides a promising alternative, allowing to complement training datasets and conducting medical image research at a larger scale. Diffusion models recently have caught the attention of the computer vision community by producing photorealistic synthetic images. In this study, we explore using Latent Diffusion Models to generate synthetic images from high-resolution 3D brain images. We used T1w MRI images from the UK Biobank dataset (N=31,740) to train our models to learn about the probabilistic distribution of brain images, conditioned on covariables, such as age, sex, and brain structure volumes. We found that our models created realistic data, and we could use the conditioning variables to control the data generation effectively. Besides that, we created a synthetic dataset with 100,000 brain images and made it openly available to the scientific community.","url_abs":"https://arxiv.org/abs/2209.07162v1","url_pdf":"https://arxiv.org/pdf/2209.07162v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"brain-imaging-generation-with-latent","repo_url":"https://github.com/GabrieleLozupone/LDAE","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"brain-imaging-generation-with-latent","repo_url":"https://github.com/warvito/generative_chestxray","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"medical-image-analysis","task_name":"Medical Image Analysis"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2209.07162","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2209.07162"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/warvito/generative_chestxray","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/GabrieleLozupone/LDAE","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"unverified":6},"by_repo_kind":{"listed":{"samples":6,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"baa589946839c3b4","entry":"create_synthetic_sentences","repo":"warvito/generative_chestxray","repo_kind":"listed","path":"src/python/preprocessing/create_sentences_files_extended.py","file_url":"https://github.com/warvito/generative_chestxray/blob/HEAD/src/python/preprocessing/create_sentences_files_extended.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"baa589946839c3b4"}},{"code_sha256_prefix":"44d7ba7c7d111df5","entry":"get_datalist","repo":"warvito/generative_chestxray","repo_kind":"listed","path":"src/python/testing/util.py","file_url":"https://github.com/warvito/generative_chestxray/blob/HEAD/src/python/testing/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"44d7ba7c7d111df5"}},{"code_sha256_prefix":"d8d949e1d1d36643","entry":"get_test_dataloader","repo":"warvito/generative_chestxray","repo_kind":"listed","path":"src/python/testing/util.py","file_url":"https://github.com/warvito/generative_chestxray/blob/HEAD/src/python/testing/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d8d949e1d1d36643"}},{"code_sha256_prefix":"1a2e685239147d9f","entry":"list_rindex","repo":"warvito/generative_chestxray","repo_kind":"listed","path":"src/python/preprocessing/create_section_files.py","file_url":"https://github.com/warvito/generative_chestxray/blob/HEAD/src/python/preprocessing/create_section_files.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1a2e685239147d9f"}},{"code_sha256_prefix":"49696211667f2162","entry":"normalize_section_names","repo":"warvito/generative_chestxray","repo_kind":"listed","path":"src/python/preprocessing/create_section_files.py","file_url":"https://github.com/warvito/generative_chestxray/blob/HEAD/src/python/preprocessing/create_section_files.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"49696211667f2162"}},{"code_sha256_prefix":"442a00fb6c1d54db","entry":"section_text","repo":"warvito/generative_chestxray","repo_kind":"listed","path":"src/python/preprocessing/create_section_files.py","file_url":"https://github.com/warvito/generative_chestxray/blob/HEAD/src/python/preprocessing/create_section_files.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"442a00fb6c1d54db"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}