{"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/conpro-learning-severity-representation-for","title":"ConPro: Learning Severity Representation for Medical Images using Contrastive Learning and Preference Optimization","arxiv_id":"2404.18831","date":"2024-04-29","proceeding":null,"authors":["Hong Nguyen","Hoang Nguyen","Melinda Chang","Hieu Pham","Shrikanth Narayanan","Michael Pazzani"],"abstract":"Understanding the severity of conditions shown in images in medical diagnosis is crucial, serving as a key guide for clinical assessment, treatment, as well as evaluating longitudinal progression. This paper proposes Con- PrO: a novel representation learning method for severity assessment in medical images using Contrastive learningintegrated Preference Optimization. Different from conventional contrastive learning methods that maximize the distance between classes, ConPrO injects into the latent vector the distance preference knowledge between various severity classes and the normal class. We systematically examine the key components of our framework to illuminate how contrastive prediction tasks acquire valuable representations. We show that our representation learning framework offers valuable severity ordering in the feature space while outperforming previous state-of-the-art methods on classification tasks. We achieve a 6% and 20% relative improvement compared to a supervised and a self-supervised baseline, respectively. In addition, we derived discussions on severity indicators and related applications of preference comparison in the medical domain.","url_abs":"https://arxiv.org/abs/2404.18831v1","url_pdf":"https://arxiv.org/pdf/2404.18831v1.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":"conpro-learning-severity-representation-for","repo_url":"https://github.com/hong7cong/conpro","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"medical-diagnosis","task_name":"Medical Diagnosis"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2404.18831","atlas_url":"https://app.syntology.ai/?focus=2404.18831","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.18831"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":"deterministic:regex_extraction","url":"https://github.com/Hong7Cong/ConPrO","reach":null}],"summary":{"ran":1,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":4,"ran":2,"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":4,"samples":[{"code_sha256_prefix":"9396d655a88960df","entry":"ResNetSimCLR","repo":"Hong7Cong/ConPrO","repo_kind":"official","path":"model/model.py","file_url":"https://github.com/Hong7Cong/ConPrO/blob/HEAD/model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9396d655a88960df"}},{"code_sha256_prefix":"0dfe32a8c8cd0685","entry":"get_default_fc","repo":"Hong7Cong/ConPrO","repo_kind":"official","path":"model/model.py","file_url":"https://github.com/Hong7Cong/ConPrO/blob/HEAD/model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0dfe32a8c8cd0685"}},{"code_sha256_prefix":"71ff5e94a7790312","entry":"RankNet_wresnet2","repo":"Hong7Cong/ConPrO","repo_kind":"official","path":"model/model.py","file_url":"https://github.com/Hong7Cong/ConPrO/blob/HEAD/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"71ff5e94a7790312"}},{"code_sha256_prefix":"e44222b132005c5c","entry":"get_feature_extractor","repo":"Hong7Cong/ConPrO","repo_kind":"official","path":"model/model.py","file_url":"https://github.com/Hong7Cong/ConPrO/blob/HEAD/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e44222b132005c5c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}