{"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/topocellgen-generating-histopathology-cell","title":"TopoCellGen: Generating Histopathology Cell Topology with a Diffusion Model","arxiv_id":"2412.06011","date":"2024-12-08","proceeding":"CVPR 2025 1","authors":["Meilong Xu","Saumya Gupta","Xiaoling Hu","Chen Li","Shahira Abousamra","Dimitris Samaras","Prateek Prasanna","Chao Chen"],"abstract":"Accurately modeling multi-class cell topology is crucial in digital pathology, as it provides critical insights into tissue structure and pathology. The synthetic generation of cell topology enables realistic simulations of complex tissue environments, enhances downstream tasks by augmenting training data, aligns more closely with pathologists' domain knowledge, and offers new opportunities for controlling and generalizing the tumor microenvironment. In this paper, we propose a novel approach that integrates topological constraints into a diffusion model to improve the generation of realistic, contextually accurate cell topologies. Our method refines the simulation of cell distributions and interactions, increasing the precision and interpretability of results in downstream tasks such as cell detection and classification. To assess the topological fidelity of generated layouts, we introduce a new metric, Topological Frechet Distance (TopoFD), which overcomes the limitations of traditional metrics like FID in evaluating topological structure. Experimental results demonstrate the effectiveness of our approach in generating multi-class cell layouts that capture intricate topological relationships. Code is available at https://github.com/Melon-Xu/TopoCellGen.","url_abs":"https://arxiv.org/abs/2412.06011v2","url_pdf":"https://arxiv.org/pdf/2412.06011v2.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":"topocellgen-generating-histopathology-cell","repo_url":"https://github.com/melon-xu/topocellgen","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"cell-detection","task_name":"Cell Detection"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2412.06011","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2412.06011"}},"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/melon-xu/topocellgen","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":2,"ran_honours":3,"ran_draft_wrong":1},"by_repo_kind":{"official":{"samples":6,"ran":6,"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":"e92b1099d580a9fc","entry":"calculate_frechet_distance","repo":"melon-xu/topocellgen","repo_kind":"official","path":"evaluate/evaluate_BRCA.py","file_url":"https://github.com/melon-xu/topocellgen/blob/HEAD/evaluate/evaluate_BRCA.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e92b1099d580a9fc"}},{"code_sha256_prefix":"b56f8afd68ad3538","entry":"count_cells_3c","repo":"melon-xu/topocellgen","repo_kind":"official","path":"generate_layout_brca.py","file_url":"https://github.com/melon-xu/topocellgen/blob/HEAD/generate_layout_brca.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b56f8afd68ad3538"}},{"code_sha256_prefix":"71839f6a7bda7b00","entry":"count_dots","repo":"melon-xu/topocellgen","repo_kind":"official","path":"generate_layout_brca.py","file_url":"https://github.com/melon-xu/topocellgen/blob/HEAD/generate_layout_brca.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"71839f6a7bda7b00"}},{"code_sha256_prefix":"aafbe1d7364af29c","entry":"extract_center_coordinates","repo":"melon-xu/topocellgen","repo_kind":"official","path":"evaluate/eval_TopoFD.py","file_url":"https://github.com/melon-xu/topocellgen/blob/HEAD/evaluate/eval_TopoFD.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aafbe1d7364af29c"}},{"code_sha256_prefix":"429e36cd2c18c132","entry":"mean_cov_process_no_class","repo":"melon-xu/topocellgen","repo_kind":"official","path":"evaluate/evaluate_BRCA.py","file_url":"https://github.com/melon-xu/topocellgen/blob/HEAD/evaluate/evaluate_BRCA.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"429e36cd2c18c132"}},{"code_sha256_prefix":"b10a7b2e3829afbe","entry":"set_nonzero_to_one","repo":"melon-xu/topocellgen","repo_kind":"official","path":"generate_layout_brca.py","file_url":"https://github.com/melon-xu/topocellgen/blob/HEAD/generate_layout_brca.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b10a7b2e3829afbe"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}