Mohamed Harmanani
· 3 previous affiliations
- Queen's UniversityCurrent
- Current
- Queens UniversitySince 2022
- PhD student · Since 2024
- MS student · 2022–2024
- University of Toronto2016–2021
- Undergrad student · 2016–2021
Research Overview
Mohamed Harmanani focuses on computer vision, deep learning, and trustworthy artificial intelligence in healthcare. His research develops interpretable and uncertainty-aware models for medical image analysis, particularly in computer-assisted interventions and ultrasound-based diagnostics. Recently, his work emphasizes integrating clinical guidelines with vision-language models and improving model robustness against subpopulation shifts to ensure reliable clinical decision-making.
Research Trajectory
Mohamed Harmanani’s early research explored the application of deep learning to diverse domains, beginning with educational technology. In 2022, he contributed to Using Deep Learning to Localize Errors in Student Code Submissions, which evaluated RNN and CodeBERT models for highlighting errors in Python programming assignments. This work demonstrated that standard automatic metrics often fail to align with human evaluation in code analysis tasks. The following year, his focus shifted to epidemiological modeling with Modelling the Spread of COVID-19 in Indoor Spaces using Automated Probabilistic Planning. By framing viral transmission in small-scale indoor environments as an automated probabilistic planning task using the RDDL language, this research successfully predicted infection rates in real-world school settings. This project contributed to the broader research direction of Modeling Epidemics Beyond the Homogeneous Mixing Assumption and intersected with methodologies used in areas like Realistic Human Mobility for Network Performance Analysis.
By 2024, Harmanani’s trajectory firmly centered on medical image analysis, specifically targeting the detection of prostate cancer using high-resolution micro-ultrasound data. He led an extensive evaluation in Benchmarking Image Transformers for Prostate Cancer Detection from Ultrasound Data, which revealed that standard Vision Transformers (ViTs) lagged behind traditional Convolutional Neural Networks (CNNs) in this specialized domain. To bridge this gap, the research introduced a hybrid architecture combining a CNN feature extractor with a BERT-based sequence model, achieving strong multi-scale detection performance. This work touches upon broader methodological challenges found in research areas such as Predicting Occult Metastasis with Radiomics and Machine Learning and Overcoming Spatial Context Loss in Tissue Architecture.
Concurrently, Harmanani and his collaborators explored the integration of large-scale pre-trained models into specialized medical workflows. In ProstNFound: Integrating Foundation Models with Ultrasound Domain Knowledge and Clinical Context for Robust Prostate Cancer Detection, the team addressed the limitations of medical foundation models when applied to micro-ultrasound data, noting that a lack of specialized domain knowledge can hinder performance even after extensive fine-tuning. Recognizing that clinical deployment requires systems to handle biological heterogeneity and imaging artifacts, he also contributed to Toward confident prostate cancer detection using ultrasound: a multi-center study. This study emphasized the necessity of uncertainty-aware models capable of identifying out-of-distribution inputs to ensure safe diagnostic practices.
In 2025, his research advanced into the spatio-temporal analysis of ultrasound video sequences, addressing the noisy and weak labels typical of histopathological reports. He introduced CINEPRO: Robust Training of Foundation Models for Cancer Detection in Prostate Ultrasound Cineloops, a framework that incorporates pathology-reported cancer proportions directly into the loss function and utilizes a novel weak-strong data augmentation strategy across video frames. Building on this temporal approach, he also co-developed ProTeUS: A Spatio-Temporal Enhanced Ultrasound-Based Framework for Prostate Cancer Detection, which integrates clinical metadata with comprehensive spatial and temporal ultrasound features to improve sensitivity to subtle tissue variations.
To validate these diagnostic tools for real-world use, Harmanani participated in ProstNFound+: A Prospective Study using Medical Foundation Models for Prostate Cancer Detection. This prospective study adapted the MedSAM foundation model by integrating non-imaging clinical biomarkers. Tested on data collected from a new clinical site five years after the initial training set, the model demonstrated zero performance degradation, marking a significant step forward in the research direction of Mitigating Inter-Observer Variability in Medical Diagnostics.
Beyond specific imaging modalities, Harmanani’s recent work addresses fundamental challenges in algorithmic fairness and model reliability. In Diverse Prototypical Ensembles Improve Robustness to Subpopulation Shift, he and his co-authors tackled the problem of models relying on spurious correlations that cause failures in minority patient groups. By utilizing an ensemble of distance-based prototypical classifiers, the proposed method improves robustness even when subgroup labels are unknown, advancing the broader area of Group Robustness Without Explicit Subpopulation Labels.
Current Directions
The most recent papers in the evidence highlight a continued focus on the intersection of interpretability, fairness, and clinical reasoning in medical artificial intelligence. A major ongoing theme is the development of concept-based reasoning frameworks that integrate established clinical guidelines with vision-language models. By mapping learned visual features onto meaningful medical concepts, these systems aim to generate structured clinical narratives that explain diagnoses, thereby emulating expert reasoning and enhancing transparency.
Additionally, current work investigates the mitigation of hidden biases and subpopulation shifts in medical classification. By designing fairness-oriented frameworks that combine prototype-based learning with advanced attention mechanisms, the goal is to prevent models from learning harmful shortcuts from biased training data. Together, these directions seek to ensure that medical AI models perform reliably and equitably across diverse patient groups, ultimately bridging the gap between complex image analysis and trustworthy clinical decision-making.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake