Analysis of Microscopic Images: New Open-Source Software Makes AI Models Lighter & Greener

No special knowledge required

26-Jan-2024
Prof. Dr. Anika Grüneboom, ISAS

Semantic 3D segmentation of osteocytes in mouse bones (images via light sheet fluorescence microscope)

artificial intelligence (AI) has become an indispensable component in the analysis of microscopic data. However, while AI models are becoming better and more complex, the computing power and associated energy consumption are also increasing. Researchers at the Leibniz-Institut für Analytische Wissenschaften (ISAS) and Peking University have therefore created a free compression software that allows scientists to run existing bioimaging AI models faster and with significantly lower energy consumption. The researchers have now presented their user-friendly toolbox called EfficientBioAI (open source) in Nature Methods.

Modern microscopy techniques produce a large number of high-resolution images, and individual data sets can comprise thousands of them. Scientists often use AI-supported software to reliably analyse these data sets. However, as AI models become more complex, the latency (processing time) for images can significantly increase. “High network latency, for example with particularly large images, leads to higher computing power and ultimately to increased energy consumption”, says Dr Jianxu Chen, head of the AMBIOM - Analysis of Microscopic BIOMedical Images junior research group at ISAS.

A well-known technique finds new applications

To avoid high latency in image analysis, especially on devices with restricted computing power, researchers use sophisticated algorithms to compress the AI models. This means they reduce the amount of computations in the models while retaining comparable prediction accuracy. “Model compression is a technique that is widely used in the field of digital image processing, known as computer vision, and AI to make models lighter and greener,” explains Chen. Researchers combine various strategies to reduce memory consumption, speed up model inference, the ‘thought process’ of the model - and thus save energy. Pruning, for example, is used to remove excess nodes from the neural network. “These techniques are often still unknown in the bioimaging community. Therefore, we wanted to develop a ready-to-use and simple solution to apply them to common AI tools in bioimaging”, says Yu Zhou, the paper's first author and PhD student at AMBIOM.

Energy savings of up to roughly 81 per cent

To put their new toolbox to the test, the researchers led by Chen tested their software on several real-life applications. With different hardware and various bioimaging analysis tasks, the compression techniques were able to significantly reduce latency and cut energy consumption by between 12.5 and 80.6 per cent. “Our tests show that EfficientBioAI can significantly increase the efficiency of neural networks in bioimaging without limiting the accuracy of the models”, summarises Chen. He illustrates the energy savings using the commonly used CellPose model as an example: if a thousand users were to use the toolbox to compress the model and apply it to the Jump Target ORF dataset (around one million microscope images of cells) they could save energy equivalent to the emissions of a car journey of around 7,300 miles (approx. 11,750 kilometres).

No special knowledge required

The authors are keen to make EfficientBioAI accessible to as many scientists in biomedical research as possible. Researchers can install the software and seamlessly integrate it into existing PyTorch libraries (open-source programme library for the Python programming language). For some widely used models, such as Cellpose, researchers can therefore use the software without having to make any changes to the code themselves. To support specific change requests, the group also provides several demos and tutorials. With just a few changed lines of code, the toolbox can then also be applied to customised AI models.

Original publication

Other news from the department science

Most read news

More news from our other portals

Fighting cancer: latest developments and advances