JYJunyu Yan

Junyu Yan

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Junyu Yan has a total of 26 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Explainable AI to Guide the Design of Interpretable Prediction Models From High-Dimensional Data, Applied to Falls and Related Injuries in Adults Aged 50 Years or Older: Algorithm Development and Validation

    by Junyu Yan, Damian Machlanski, Kurt Butler, Panagiotis Dimitrakopoulos, Ewen M Harrison, Bruce Guthrie, Sotirios A Tsaftaris

    Background: Transparent prediction models, such as Cox regression, remain the standard for clinical risk prediction. However, they are challenging to design optimally by hand when tens or even hundreds of features require selection, transformation, or interaction modeling. While complex machine learning models offer high performance, their “black-box” nature limits the clinical trust, transparency, and interpretability required for decision-making. Objective: This study aimed to develop an explainable AI-based recommender that provides data-driven feature-related recommendations that, when incorporated, improve the predictive performance of existing interpretable statistical models on high-dimensional data, and to demonstrate it by developing and internally validating a Cox model for the 1-year risk of falls or related injuries (FRIs). Methods: We used linked primary and secondary care records from DataLoch (Lothian, Scotland) for adults aged 50 years or older registered with a contributing general practice between January 2015 and February 2020. The outcome was the first FRI within 1 year of the index date. A random survival forest was explained with Shapley Additive Explanations (SHAP), and its feature attributions were translated into recommendations for a Cox model: feature exclusions, nonlinear terms, and interactions. Data were split 80/20 into training and test sets. We compared the recommendations-augmented Cox model with the baseline Cox model, a Cox model with restricted cubic splines, and a penalized Cox model with all pairwise interactions. The metrics were Harrell concordance index (C-index), Uno C, calibration slope, and integrated Brier score. We repeated the analysis with all 409 available features and in 3 public datasets (German Breast Cancer Study Group 2 [GBSG2], AIDS Clinical Trial [ACT], and PeakVO2). Results: Of 220,341 patients (mean age 64, SD 12 years), 8489 (3.85%) had an FRI within 1 year. From 59 candidate features, the recommender excluded 15 (8 medication classes and 7 comorbidities). The final model retained 44 predictors (demographic and lifestyle factors, frailty, 21 comorbidities, and 15 medication classes), with nonlinear terms for age, frailty, BMI, and area deprivation, and interactions of age with stroke, osteoporosis, loop diuretics, and frailty. The augmented model had a C-index of 0.719 (95% CI 0.708-0.731) compared with 0.715 (95% CI 0.702-0.727) for the baseline model (difference 0.004, 95% CI 0.001-0.007), with 70 vs 73 parameters, and similar calibration (slope 0.962 vs 0.961). With all 409 features, the recommender recommended 304 exclusions, 4 nonlinear terms, and 2 interactions. The augmented model had a C-index of 0.722 compared with 0.713, with 129 vs 423 parameters, and better calibration (slope 0.952 vs 0.846). The method also proved effective on 3 additional public datasets, demonstrating wider applicability. Conclusions: The proposed exploratory AI recommender demonstrates the potential of explainable AI to guide the design of transparent predictive models.

  • Open Access

    Explainable AI to Guide the Design of Interpretable Prediction Models From High-Dimensional Data, Applied to Falls and Related Injuries in Adults Aged 50 Years or Older: Algorithm Development and Validation (Preprint)

    by Junyu Yan, Damian Machlanski, Kurt Butler, Panagiotis Dimitrakopoulos, Ewen M Harrison, Bruce Guthrie, Sotirios A Tsaftaris

    BACKGROUND Transparent prediction models, such as Cox regression, remain the standard for clinical risk prediction. However, they are challenging to design optimally by hand when tens or even hundreds of features require selection, transformation, or interaction modeling. While complex machine learning models offer high performance, their “black-box” nature limits the clinical trust, transparency, and interpretability required for decision-making. OBJECTIVE This study aimed to develop an explainable AI-based recommender that provides data-driven feature-related recommendations that, when incorporated, improve the predictive performance of existing interpretable statistical models on high-dimensional data, and to demonstrate it by developing and internally validating a Cox model for the 1-year risk of falls or related injuries (FRIs). METHODS We used linked primary and secondary care records from DataLoch (Lothian, Scotland) for adults aged 50 years or older registered with a contributing general practice between January 2015 and February 2020. The outcome was the first FRI within 1 year of the index date. A random survival forest was explained with Shapley Additive Explanations (SHAP), and its feature attributions were translated into recommendations for a Cox model: feature exclusions, nonlinear terms, and interactions. Data were split 80/20 into training and test sets. We compared the recommendations-augmented Cox model with the baseline Cox model, a Cox model with restricted cubic splines, and a penalized Cox model with all pairwise interactions. The metrics were Harrell concordance index (C-index), Uno C, calibration slope, and integrated Brier score. We repeated the analysis with all 409 available features and in 3 public datasets (German Breast Cancer Study Group 2 [GBSG2], AIDS Clinical Trial [ACT], and PeakVO2). RESULTS Of 220,341 patients (mean age 64, SD 12 years), 8489 (3.85%) had an FRI within 1 year. From 59 candidate features, the recommender excluded 15 (8 medication classes and 7 comorbidities). The final model retained 44 predictors (demographic and lifestyle factors, frailty, 21 comorbidities, and 15 medication classes), with nonlinear terms for age, frailty, BMI, and area deprivation, and interactions of age with stroke, osteoporosis, loop diuretics, and frailty. The augmented model had a C-index of 0.719 (95% CI 0.708-0.731) compared with 0.715 (95% CI 0.702-0.727) for the baseline model (difference 0.004, 95% CI 0.001-0.007), with 70 vs 73 parameters, and similar calibration (slope 0.962 vs 0.961). With all 409 features, the recommender recommended 304 exclusions, 4 nonlinear terms, and 2 interactions. The augmented model had a C-index of 0.722 compared with 0.713, with 129 vs 423 parameters, and better calibration (slope 0.952 vs 0.846). The method also proved effective on 3 additional public datasets, demonstrating wider applicability. CONCLUSIONS The proposed exploratory AI recommender demonstrates the potential of explainable AI to guide the design of transparent predictive models.

  • Open Access

    Explainable AI for Data-Driven Design of High-Dimensional Predictive Studies

    by Junyu Yan, Damian Machlanski, Kurt Butler, Panagiotis Dimitrakopoulos, Ewen M Harrison, Bruce M Guthrie, Sotirios A Tsaftaris

    Predictive modelling is important for health data analysis and data-driven clinical decision-making. However, predictive studies are challenging to design optimally by hand when tens or even hundreds of features require selection, transformation, or interaction modelling. While complex machine learning models offer high performance, their “black-box” nature limits the clinical trust, transparency, and interpretability required for decision-making. We developed and evaluated an Exploratory AI Recommender that provides data-driven recommendations to improve predictive performance of existing interpretable statistical models. The developed framework uses flexible AI modelling to capture complex data patterns and explainable AI techniques to translate the patterns into three recommendation types: feature exclusion, non-linear terms, and feature interactions. We evaluated the framework by comparing predictive performance of a baseline (i.e., no interactions or non-linear terms) Cox Proportional Hazards (CPH) model against an augmented CPH incorporating recommendations suggested by our method. The primary analysis predicts the time to the first occurrence of a fall or related injury in 245,614 patients. Our method recommended excluding 23 features, including non-linear terms for two features, and including 221 suggested feature interactions. The C-index improved from 0.805 (95% CI 0.798-0.812) to 0.815 (95% CI 0.809-0.822), and so did calibration (intercept: - 0.006 to 0.003; slope: 1.063 to 0.950). All recommendations were supported by existing literature. The method also proved effective on two additional public datasets, demonstrating wider applicability. The proposed Exploratory AI Recommender demonstrates the potential of explainable AI and data-driven study design to improve the process of developing, and the performance of high-dimensional transparent predictive models.

  • Open Access

    SWiFT: Soft-Mask Weight Fine-tuning for Bias Mitigation

    by Junyu Yan, Feng Chen, Yuyang Xue, Yuning Du, Konstantinos Vilouras, Sotirios A. Tsaftaris, Steven McDonagh

    Recent studies have shown that Machine Learning (ML) models can exhibit bias in real-world scenarios, posing significant challenges in ethically sensitive domains such as healthcare. Such bias can negatively affect model fairness, model generalization abilities and further risks amplifying social discrimination. There is a need to remove biases from trained models. Existing debiasing approaches often necessitate access to original training data and need extensive model retraining; they also typically exhibit trade-offs between model fairness and discriminative performance. To address these challenges, we propose Soft-Mask Weight Fine-Tuning (SWiFT), a debiasing framework that efficiently improves fairness while preserving discriminative performance with much less debiasing costs. Notably, SWiFT requires only a small external dataset and only a few epochs of model fine-tuning. The idea behind SWiFT is to first find the relative, and yet distinct, contributions of model parameters to both bias and predictive performance. Then, a two-step fine-tuning process updates each parameter with different gradient flows defined by its contribution. Extensive experiments with three bias sensitive attributes (gender, skin tone, and age) across four dermatological and two chest X-ray datasets demonstrate that SWiFT can consistently reduce model bias while achieving competitive or even superior diagnostic accuracy under common fairness and accuracy metrics, compared to the state-of-the-art. Specifically, we demonstrate improved model generalization ability as evidenced by superior performance on several out-of-distribution (OOD) datasets. Our code will be made public upon acceptance.

  • Interpretable Harmonic-Aware Dual-Branch Neural Network for Trustworthy Diagnosis of OCFs in DTP-PMSMs With Enhanced Disturbance Robustness

    by Boyuan Zheng, Bingtao Liu, Junyu Yan, Mi Tang, Pericle Zanchetta, Hao Yu

    Data-driven fault diagnosis models for power-electronic systems have gained significant attention in industrial applications, particularly for dual-three-phase permanent magnet synchronous motor (DTP-PMSM) systems with numerous switching devices. However, robustness, reliability, and interpretability remain key challenges for neural network-based methods. This study first analyzes the impact of open-circuit faults on DTP-PMSM phase currents. Based on this analysis, a harmonic-aware dual-branch neural network is proposed, combining time-domain and frequency-domain (harmonic) features via an attention-based feature-level fusion strategy. The proposed method achieves 99.90% overall accuracy, a 99.91% F1 score, and a LogLoss of 0.0077 with 271 frames per second under disturbance conditions, outperforming existing methods. Moreover, by leveraging fast-Fourier transform-extracted harmonics, the model effectively filters out white noise and outliers, improving robustness and interpretability, as supported by shapley additive explanations (SHAP) analysis. In addition, the proposed approach significantly reduces epistemic uncertainty in fault diagnosis, thereby enhancing diagnostic reliability.


  • Open Access

    Anatomy-Grounded Weakly Supervised Prompt Tuning for Chest X-ray Latent Diffusion Models

    by Konstantinos Vilouras, Ilias Stogiannidis, Junyu Yan, Alison Q. O'Neil, Sotirios A. Tsaftaris

    Latent Diffusion Models have shown remarkable results in text-guided image synthesis in recent years. In the domain of natural (RGB) images, recent works have shown that such models can be adapted to various vision-language downstream tasks with little to no supervision involved. On the contrary, text-to-image Latent Diffusion Models remain relatively underexplored in the field of medical imaging, primarily due to limited data availability (e.g., due to privacy concerns). In this work, focusing on the chest X-ray modality, we first demonstrate that a standard text-conditioned Latent Diffusion Model has not learned to align clinically relevant information in free-text radiology reports with the corresponding areas of the given scan. Then, to alleviate this issue, we propose a fine-tuning framework to improve multi-modal alignment in a pre-trained model such that it can be efficiently repurposed for downstream tasks such as phrase grounding. Our method sets a new state-of-the-art on a standard benchmark dataset (MS-CXR), while also exhibiting robust performance on out-of-distribution data (VinDr-CXR). Our code will be made publicly available.

  • BMFT: Achieving Fairness via Bias-Based Weight Masking Fine-Tuning

    by Yuyang Xue, Junyu Yan, Raman Dutt, Fasih Haider, Jingshuai Liu, Steven McDonagh, Sotirios A. Tsaftaris