Abstract
Deep learning methods have shown extraordinary potential for analyzing very diverse biomedical data, but their dissemination beyond developers is hindered by important computational hurdles. We introduce ImJoy (https://imjoy.io/), a flexible and open-source browser-based platform designed to facilitate widespread reuse of deep learning solutions in biomedical research. We highlight ImJoy's main features and illustrate its functionalities with deep learning plugins for mobile and interactive image analysis and genomics.
Introduction
Deep learning (DL) has revolutionized biomedical data analysis, offering unprecedented accuracy in tasks ranging from cellular segmentation to clinical diagnosis. However, a significant "dissemination gap" persists between the developers who engineer these models and the biologists who apply them. This gap is primarily driven by technical barriers: the complexity of managing Python environments with specific dependencies (e.g., TensorFlow, PyTorch) is often prohibitive for non-programmers. Furthermore, cloud-based solutions frequently require the upload of sensitive patient data, raising critical privacy and regulatory concerns under frameworks like GDPR. Finally, most accessible tools are limited to inference, preventing researchers from retraining models on their specific datasets to avoid "model mismatch."
To address these challenges, we present ImJoy, a browser-based platform that simplifies the deployment, sharing, and reuse of DL tools. By combining a flexible plugin system with hybrid computing, ImJoy enables researchers to execute and retrain complex AI models using only a web browser or smartphone.
System Architecture and Methods
ImJoy is a "server-less" web application built using modern web standards, including HTML5, JavaScript, and WebAssembly. Its architecture is composed of three primary layers:
- The ImJoy Core: A centralized browser interface that manages user workspaces, workflows, and the lifecycle of various plugins.
- Web Computational Backend: For lightweight processing, ImJoy executes code directly within the browser environment using TensorFlow.js or WebAssembly, ensuring zero-latency interaction.
- Plugin Engine: For computationally intensive tasks such as model training, ImJoy connects to a "Plugin Engine" hosted on a local workstation, a high-performance cluster, or a cloud server.
A key innovation of ImJoy is its automated environment management. By leveraging Conda, the platform transparently handles software dependencies in the background. When a user accesses a plugin via a URL, ImJoy automatically configures the necessary libraries. The platform supports bidirectional communication between plugins written in JavaScript, HTML, and Python, allowing for seamless integration of diverse tools regardless of their native language.
Applications and Results
The versatility of ImJoy was demonstrated through several high-profile biomedical use cases and datasets:
- Interactive Data Exploration: Using the Human Protein Atlas (HPA) dataset, an ImJoy plugin enables interactive UMAP visualizations of over 67,000 images. Users can explore protein localization patterns in a scatter plot and click individual data points to instantly view the underlying raw microscopy images.
- Mobile Diagnostics: A skin lesion classifier was developed using the HAM10000 dataset. This plugin runs entirely within a smartphone browser, allowing for local, private analysis of camera-captured images without data leaving the device.
- End-to-End Deep Learning Workflows: Utilizing the 2018 Kaggle Data Science Bowl dataset, the DPNUnet plugin provides a comprehensive lifecycle for nuclei segmentation—from data loading and manual annotation to model retraining and final prediction.
- Genomics: Integration with the Kipoi repository allows researchers to run DNA/RNA sequence binding predictions directly within the platform.
Key Insights
The Browser as a Computational Hub
ImJoy redefines the web browser as a legitimate platform for high-performance computation rather than a mere document viewer. By utilizing WebAssembly and remote plugin engines, it provides a powerful environment for data-intensive research.
Privacy-First AI
By performing inference and pre-processing locally on the user's device, ImJoy ensures that sensitive medical data remains within the local network. This decentralized approach significantly mitigates the risks associated with data breaches and simplifies compliance with privacy regulations.
Human-in-the-Loop Interactivity
The platform emphasizes a "human-in-the-loop" philosophy. Researchers can provide real-time feedback—such as manually annotating a few cells on a touch-screen—which is immediately used to fine-tune a model. This interactivity ensures that models remain accurate and relevant to the specific biological context of the user.
Limitations and Future Work
While the Plugin Engine allows ImJoy to scale to intensive tasks, the platform still requires access to Python-capable hardware for heavy training. Future development aims to deepen integration with established bio-imaging software like ImageJ/Fiji, effectively providing these legacy tools with modern web-interface and cloud-deployment capabilities. The authors also envision more sophisticated hybrid plugins that offer increasingly seamless real-time feedback, further bridging the gap between advanced computational methods and biological discovery.
Summary updated