Manuscript Offprint

arXiv:2610.13637

Model-agnostic Knowledge Augmented Machine Learning for Weakly Annotated Bioimaging Data

Jayanie Bogahawatte, Sachith Seneviratne, Simon Maksour, Dzung Do-Ha, Elizabeth Qian, Samuel Brennan, Matthew Keon, Lezanne Ooi, Saman Halgamuge

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Machine learning (ML) models are increasingly used for automated feature extraction from weakly annotated bioimaging data, such as microscopy and cytomorphology images. Due to the sole dependency of automated feature extraction, existing methods yield inconsistent classification performance across weakly annotated datasets. Here, we propose a model-agnostic knowledge augmentation method that enables ML models to exploit domain knowledge beyond what automated feature extraction can capture. The proposed approach improves classification performance across seven ML architectures. When integrated with masked autoencoder-based self-supervised learning, our method achieves the strongest overall performance, improving precision by 2.9% over the next-best method on three in-house microscopy datasets and by an average of 6.8% across three public cytomorphology benchmarks. We perform nucleus-level classification based on mislocalization of TAR DNA-binding protein 43 (TDP-43) from the nucleus to the cytoplasm, a phenotype linked to Amyotrophic Lateral Sclerosis (ALS), using three independent microscopy datasets of motor neurons derived from human induced pluripotent stem cells. Accurate quantification of this phenotype at scale remains challenging and may contribute to inconsistencies across studies. Application of the best-performing model to these microscopy datasets reveals biological interpretations related to ALS, including dose-dependent effects of the proteasomal stressor, MG132, and the oxidative stressor, sodium arsenite, on TDP-43 mislocalization, variable pathology in motor neurons from sporadic and familial ALS donors, and a lack of protection of the pharmacological compounds, edaravone and niclosamide, against sodium arsenite-induced TDP-43 mislocalization. Together, our pipeline enables in-vitro cellular image analysis to advance understanding of ALS-associated pathology and potential treatments.

Introduction

Motor Neuron Diseases comprise a group of progressive neurodegenerative disorders characterized by the degeneration of motor neurons, leading to the gradual loss of voluntary muscle control. Among them, Amyotrophic Lateral Sclerosis (ALS) is a prevalent disease, involving both upper and lower motor neurons and resulting in progressive muscle weakness, paralysis, and ultimately respiratory failure [1]. ALS can be broadly classified into sporadic (sALS) and familial (fALS) forms, with sALS accounting for approximately 90-95% of all cases and fALS representing the remaining 5-10% [2]. While the genetic causes of fALS have been extensively characterized, the underlying genetic and molecular drivers of sALS are less well established. Moreover, disease characteristics often exhibit substantial inter-individual variability, adding further complexity to modelling disease mechanisms [3]. Cytoplasmic mislocalization and aggregation of TAR DNA-binding protein 43 (TDP-43) within motor neurons is a defining disease characteristic observed in approximately 97% of all ALS cases [4]. The depletion of nuclear TDP-43 and its cytoplasmic accumulation has been linked to widespread molecular dysfunction, including aberrant mRNA splicing and stability, retention of cryptic exons, impaired DNA damage repair, cytoskeletal disorganization, and mitochondrial defects [5,6].

Recent advances in human induced pluripotent stem cell (iPSC) technology have enabled robust in vitro modelling of ALS pathology [7]. The iPSCs can be differentiated into motor neurons, enabling the investigation of disease mechanisms under controlled conditions. These iPSC-derived motor neurons have been used to investigate TDP-43 mislocalization induced by exogenous stressors, such as proteasome inhibition, oxidative stress, and heat stress [8–11], and to understand the differential patterns of TDP-43 mislocalization between donors as a critical step toward clarifying ALS heterogeneity [12]. Additionally, the comprehensive characterization of how drug compounds influence the localization of TDP-43 is essential for delineating disease mechanisms and to enable personalized medicine [12–14]. Therefore, analysis of immunofluorescence microscopy imaging obtained using iPSC-derived motor neurons serves as a crucial approach to quantify and compare TDP-43 mislocalization dynamics.

Many pathological processes are closely associated with the spatial distribution of specific proteins within cells [15]. Accordingly, TDP-43 mislocalization can be formulated as a single-cell subcellular localization problem, where the objective is to classify cells based on the intracellular distribution of TDP-43. Existing computational approaches have primarily employed machine learning models to capture global image-level patterns [16–20], often emphasizing cell segmentation rather than fine-grained single-cell localization [16,21]. While deep neural networks (DNNs) have demonstrated strong performance in cell localization and classification tasks [22–24], their success heavily relies on large-scale annotated datasets. This requirement is particularly challenging in microscopy imaging, where individual images may contain hundreds or thousands of cells and accurate nucleus-level annotation requires labour intensive biological expertise. Even though weakly supervised learning frameworks that use image-level labels to infer cell-level features have been explored [25,26], these approaches are suboptimal for cases like TDP-43 pathology, where varying degrees of mislocalization are observed across hundreds or thousands of cells within each image and across all the images within the datasets. Furthermore, challenges exist in cytomorphology, where cell classification relies on the visual assessment of cellular morphology. In cytomorphological analysis, experts explore features such as nuclear shape and size, chromatin organisation, nucleoli, cytoplasmic appearance, granularity, maturation stage, and the presence of atypical or malignant characteristics [27]. Both protein localization analysis and cytomorphological classification therefore depend on the extraction of biologically meaningful image features at the level of individual cells. Traditionally, such features are manually designed based on domain expertise and prior biological knowledge [28,29], offering interpretability but often failing to capture the full complexity of protein localization at the single-cell level. Deep learning based methods address this limitation by automatically learning feature representations directly from images and have become a dominant approach in biological image analysis [22–24]. However, existing approaches typically rely solely on automatically learned features and cannot explicitly exploit biologically meaningful prior knowledge accumulated through decades of experimental research. Under weak supervision, learned representations alone may also be incomplete, as they are not guaranteed to capture subtle yet task-critical localization cues. These observations suggest that biologically derived descriptors and learned visual representations provide complementary sources of information. However, effective integration of biological prior knowledge with automatically learned representations remains an open challenge in computational bioimaging, particularly in annotation-scarce settings.

Considering these limitations, we propose a model-agnostic knowledge augmentation method for weakly annotated bioimaging data. The proposed framework combines biologically derived prior knowledge with learned visual representations through an adaptive weighting mechanism that automatically determines their relative contributions. Unlike conventional approaches that rely solely on automated feature extraction, the proposed method enables ML models to exploit complementary information from both learned image representations and biologically informed descriptors. We additionally introduce a pipeline that comprises of three main components to analyse the microscopy images. First, a microscopy image pre-processing module extracts images that contain a single nucleus per image, which are later referred to as “Single Nucleus Images (SNIs)” (Refer Figure 1 Module (a)). We demonstrate that this module is adaptable to distinct microscopy image datasets that are acquired in different laboratories under varying experimental settings. Second, a Masked Autoencoder [30] based self-supervised learning module learns feature representations from unlabelled SNIs (Refer Figure 1 Module (b)). Third, the proposed knowledge augmentation module integrates self-supervised representations with biologically derived descriptors through adaptive weighting (Refer Figure 1 Module (c)). Importantly, our knowledge augmentation method is model-agnostic and can be integrated with diverse machine learning architectures. Our key contributions are summarised as follows:

  1. We propose a model-agnostic knowledge augmentation method that explicitly integrates prior knowledge with learned visual representations for weakly annotated bioimaging data.

  2. We evaluate our knowledge augmentation method on three in-house independent microscopy datasets and three publicly available cytomorphology datasets and demonstrate the performance improvements considering seven ML architectures. We also demonstrate that the combination of the proposed knowledge augmentation method with self-supervised learning using MAE model consistently achieves the best performance across the six datasets. In addition, we introduce a microscopy image pre-processing and SNIs generation module for our in house microscopy image datasets.

  3. We demonstrate the applicability of our pipeline across key ALS research contexts, including environmental toxin exposure, disease subtype stratification, and drug screening.

Module (a): Image Pre-processing and Single Nucleus Images (SNIs) Generation Module

Figure

Microscopy Image (1024×1024×3)(1024 \times 1024 \times 3)

Image with only nucleus (blue) channel (1024×1024×1)(1024 \times 1024 \times 1)

Crop the Bounding Boxes

Single Nucleus Images (SNIs)

Module (b): Self-Supervised Feature Representation Learning Module

Figure

Module (c): Knowledge Augmentation based Classification Module

Figure

Patches of SNI

16×16×2×N16 \times 16 \times 2 \times N

Latent Representations

of patches + [CLS]

token

Learnable Weight For

SNI Automated

Feature Embedding

Prior-knowledge based

Manually Extracted

Features

Fully Connected

Layers

Learnable Weight for

SNI Manual Feature

Embedding

Softmax Classifier

(MLP)

of

SNI

Figure 1: Overview of the proposed pipeline. The three modules in the proposed pipeline corresponding to the three main steps described in the Introduction section. Module (a): Microscopy image pre-processing and SNIs generation module. Module (b): Self-Supervised feature representation learning module. Masked Autoencoder (MAE) model [30] is leveraged as the underlying architecture of this module. Module (c): Model-agnostic Knowledge augmentation method-based classification module. This module integrates automated features obtained from any ML model with prior knowledge based features. Here, the pre-trained encoder of the self-supervised feature representation learning module is used for the automated feature extraction.

References (28)