Create an automated metadata harmonization/curation tool
Background: Though many omics data repositories host large volumes of datasets from diverse studies, cross-study analysis within these repositories is still somewhat limited due to the heterogeneity in their metadata structures. This lack of metadata harmonization especially impedes the application and development of machine learning tools around high-throughput biological data, which is in high demand due to the complexity and high dimensionality of multi-omics datasets. To facilitate comparable analysis across data sources through machine learning, we initiated OmicsMLRepo projects harmonizing metadata from diverse omics data repositories. Under this project, we manually reviewed metadata schema, consolidated similar or identical information spread across schema, and incorporated ontologies where possible. One of our target data repositories is cBioPortal and we have harmonized cBioPortal’s key clinical metadata across the whole data repository, not just at the study level, and incorporated ontology terms to improve the AI/ML-readiness of the cBioPortal data.
We performed a manual inspection of clinical metadata from 375 studies in cBioPortal (available on 5/13/2023) and harmonized major attributes, such as treatment, demographic information (e.g., age, sex, etc.), and disease. For example, 24 different values (e.g., RADIO_THERAPY, Rad, XRT, etc.) categorized as ‘treatment_type’ were harmonized into a single ontology term, “Radiation Therapy” (NCIT:C15313). While the comparability of the 375 datasets has been improved a lot, cBioPortal is continuously growing and we want to harmonize/digest new data to follow the data dictionary established under the OmicsMLRepo project. To reduce this maintenance effort, we would like to create an automated data harmonization tool.
The main approach we are currently considering is using semantic similarity. Understanding the meaning of a set of terms is often not straightforward because words might be different but meanings might be the same (e.g., leukemia and blood cancer). “Semantic similarity search” is searching by meaning rather than by word through “encoding”. Encoding is a way of transforming words or sentences into vectors of numbers, such that the points in N-dimensional space (usually 700~2,000), where points near each other have similar meanings. We want to encode both curated terms (from our data dictionary) and uncurated terms (from new incoming data), compare them, and map uncurated terms into curated terms.
Goal:
- Create an automated data harmonization/digestion tool based on semantic similarity search.
- Create an interactive dashboard showing (and potentially allowing edits on) the automated harmonization results.
Approach:
- We will use sentence transformers, a type of natural language processing (NLP) model designed specifically for transforming sentences or text snippets into fixed-dimensional vectors to capture the semantic similarity (e.g., txt2onto).
- Commonly used architectures for sentence transformers include BERT (Bidirectional Encoder Representations from Transformers), RoBERTa (Robustly optimized BERT approach), and DistilBERT, among others. Pre-trained transformer models can be fine-tuned on specific tasks or datasets to create sentence embeddings tailored to a particular application.
- Semantic similarity search can be done at two stages - column/attribute names and actual values for a given column/attribute.
Need skills: Python R
Possible mentors: Sehyun Oh (@shbrief), Sean Davis (@seandavi)
If you are interested: Anyone interested in this project, please try the EDA below and email your EDA work to [email protected] and submit it to the GSoC official site. Looking forward to hearing your idea. Thanks!
- [Required] How can you harmonize new_meta to follow the curated_meta schema with minimum manual curation? You can sketch the overall process or select a specific attribute to demonstrate your idea. (metadata_samples.zip)
- [Optional] Design the curator supporting tool that shows which attribute a new value belongs to.
- [Optional] automated_metadata_curation.ipynb (curated_bodysite.csv)
Hello @shbrief, I am interested in contributing to the OmicsMLRepo project on automated metadata harmonization. The approach of using semantic similarity for ontology mapping aligns well with my experience in AI and data science. I will complete the EDA task and share my findings soon.
Looking forward to collaborating.
Dear @shbrief ,
My name is Shiva ([email protected]), and I hold a degree in Electrical Engineering with Honours Highest Distinction from the National University of Singapore (NUS). Currently, I’m co-authoring a paper on novel compression algorithms for electrocardiogram data for IEEE CASS with my professor in Singapore. While my background is rooted in engineering, I have always been passionate about applying computational techniques to solve complex biomedical challenges. This passion has led me to pivot my career towards bioinformatics and machine learning in healthcare.
I’m excited about your project’s innovative approach to harmonizing metadata using semantic similarity search. The idea of encoding and mapping diverse clinical data into a unified schema resonates with my experience in handling complex datasets and optimizing algorithms.
I’m confident that my skills in Python and my analytical background can contribute meaningfully to the development of an automated data harmonization tool and its interactive dashboard.
I look forward to the opportunity to collaborate, share my ideas, and further discuss how I can contribute to advancing this project.
Thank you for considering my interest.
Warm regards, Shiva
Hello @shbrief, @seandavi, and team,
I’m Samar, a BCA student and software developer with experience in Python, REST APIs, and data processing. I’m excited about this project and would love to contribute to automating metadata harmonization in cBioPortal!
I’ve reviewed the project details and started exploring sentence transformers for semantic similarity search. I’d love to attempt the EDA task and share my approach. Could you clarify if there’s any specific dataset format or guidelines I should follow?
Looking forward to your guidance! 😊
Thanks, Samar
Hello @shbrief
My name is Mohammad Azam, and I am currently pursuing a Master’s in Applied Computing at the University of Windsor, Canada. As part of my studies, I am focusing on AI-related subjects, which aligns closely with your project to create an automated metadata harmonization/curation tool.
I hold a Bachelor of Technology in Computer Science Engineering, and I have accumulated over three years of experience as a Data Analyst. During this time, I developed a strong foundation in data management, data cleaning, and analytical techniques, which I believe will be highly beneficial for this project.
My academic and professional background has provided me with the technical skills necessary to contribute effectively to the development of the metadata harmonization tool. I am particularly interested in how AI can be applied to improve data curation processes, and I am excited about the potential to contribute to this initiative.
I would love to discuss how my skills and experience could align with the goals of the project and explore potential collaboration opportunities.
Thank you for considering my interest. I look forward to the possibility of contributing to this exciting project under your guidance.
Regard, Mohammad Azam Email - [email protected]
Subject: Follow-up: Metadata Harmonization Implementation
Dear @shbrief,
I hope you're doing well. I wanted to follow up regarding my recent email (Feedback Request: Automated Metadata Harmonization for cBioPortal ) where I shared my implementation of the metadata harmonization tool.
As a quick recap, I:
- Used
all-MiniLM-L6-v2for semantic column matching (17/37 columns aligned) - Implemented schema restructuring with
NaNgap-filling - Shared the Jupyter notebook (
[df-harmonization.ipynb]) for review
The email included specific questions about:
- Optimizing similarity thresholds
- Scaling to value-level harmonization
For convenience, I'm happy to:
🔹 Schedule a quick call to walk through the code
🔹 Share additional test cases if helpful
🔹 Adapt the approach based on your feedback
Please let me know if you'd prefer to discuss this via:
✉️ Email
🐙 GitHub issues
💬 Another channel
Looking forward to your thoughts when time permits!
Best regards,
Avinash Kumar Dubey
Hi,
I am very interested in working on the automated metadata harmonization tool described here.
From my understanding, the main challenge is mapping heterogeneous metadata terms (both attribute names and values) to a curated schema using semantic similarity. I am currently exploring an approach using sentence-transformers to generate embeddings for both curated_meta and new_meta, and then computing cosine similarity to identify the best candidate mappings.
I am also considering a two-stage pipeline:
- Attribute-level harmonization (column name matching)
- Value-level harmonization within matched attributes
For ambiguous cases, a confidence threshold could be applied and uncertain mappings flagged for manual review through a lightweight curator dashboard.
I am currently performing EDA on the provided metadata samples and will share my preliminary approach soon.
Please let me know if there are specific constraints or preferred transformer models that you would recommend for this use case.
Thanks!
Hi @sahithiroy, thanks for your interest. This is the GSoC 2025 project posting. For this year, check this: https://github.com/cBioPortal/GSoC/issues/136. - Sehyun
@shbrief Thanks for reminding me .Now I am focusing on the #136