Skip to main content
QUICK REVIEW

[Paper Review] Modern Microscopy with the Web of Things: The OpenFlexure Microscope Software Stack

Joel T. Collins, Joe Knapper|arXiv (Cornell University)|Jan 4, 2021
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology26 references4 citations
TL;DR

This paper presents a Web of Things (WoT)-compliant software stack for the OpenFlexure Microscope, enabling both graphical and script-based control via a standardized HTTP API. By decoupling client and server applications using W3C WoT standards, the system supports multi-language scripting, remote access, simultaneous client connections, and extensibility—resulting in a robust, interoperable, and user-friendly control framework for automated microscopy across diverse research environments.

ABSTRACT

Automated and computerised control of scientific instrumentation is almost ubiquitous in the modern laboratory. Most instrumentation is controlled over decades old communication busses or is accessed via proprietary system libraries. This limits which languages and operating systems can be used to control instruments, and poses a significant problem when interfacing multiple instruments into the same experiment. Here we present the OpenFlexure Microscope software stack as an example of how a scientific instrument can be controlled using existing, cross-platform, language-independent, industry-supported standards. We split the control code into client and server applications interfaced via a web API that conforms to the W3C Web of Things standard. This enables simple control of the microscope from multiple languages, provides a modern graphical control interface, and minimises duplicated code. Network control also makes the software stack more robust, allows multiple microscopes to be controlled by one computer, and facilitates sharing of equipment between local or remote users. Using a Web of Things approach in research laboratories has the potential to solve many of the key challenges of experiment integration, using technology that is already well established.

Motivation & Objective

  • To address the challenge of supporting both novice and expert users in operating open-source, automated microscopes with diverse technical needs.
  • To enable seamless integration of graphical interfaces and programmatic control across multiple programming languages and platforms.
  • To improve instrument interoperability and reduce code duplication by adopting standardized web protocols instead of proprietary or language-specific solutions.
  • To support remote, networked, and multi-device control of microscopes in distributed or collaborative research settings.
  • To create a modular, extensible software architecture that allows for future integration of new hardware and automation workflows.

Proposed method

  • Decomposing the control stack into a standalone server application running on a Raspberry Pi, exposing a standardized HTTP API compliant with the W3C Web of Things (WoT) architecture.
  • Implementing a web-based graphical client using Vue.js, accessible via standard web browsers or packaged as an Electron desktop app for cross-platform use.
  • Developing language-agnostic clients for Python and MATLAB using standard HTTP requests, enabling script-based automation on any system with network access.
  • Using the OpenAPI specification to automatically generate client libraries and documentation, ensuring consistency and reducing implementation errors.
  • Implementing a calibration pipeline using image-based feedback to map stage coordinates to camera coordinates, enabling closed-loop motion control and reducing mechanical error.
  • Designing an extensibility mechanism via plugins to allow users to add new hardware controls or automation routines without modifying core code.

Experimental results

Research questions

  • RQ1How can a unified software stack be designed to support both interactive graphical control and programmatic scripting for open-source microscopes?
  • RQ2To what extent can standardized web protocols improve interoperability and reduce duplication in scientific instrument control software?
  • RQ3Can a networked, API-first architecture enable remote, multi-user, and multi-microscope control without sacrificing performance or usability?
  • RQ4How can mechanical inaccuracies such as backlash and drift be corrected using real-time image feedback in automated microscopy?
  • RQ5What architectural patterns enable extensibility and long-term maintainability in open-source scientific software?

Key findings

  • The WoT-compliant HTTP API enables control of the OpenFlexure Microscope from any programming language that supports HTTP, including Python and MATLAB, without requiring custom libraries or frameworks.
  • Multiple clients—graphical, script-based, and remote—can connect to the same microscope simultaneously, allowing real-time monitoring of experiments while running automated protocols.
  • The use of image-based feedback for stage calibration and closed-loop motion control significantly reduces mechanical error and prevents cumulative drift during large scans.
  • The software stack is fully open-source and available under permissive licenses, with all source code and documentation hosted on GitLab and GitHub, including archived releases.
  • The core software components, such as the LabThings Python library, are reusable beyond the microscope and are designed to support other WoT-compliant scientific instruments.
  • The adoption of OpenAPI and Thing Description standards enables automatic documentation and client code generation, reducing development overhead and improving maintainability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.