Huygens' AI segmentation
Embedded within Huygens Object Analyzer, Huygens’ AI-driven segmentation leverages Meta’s Segment Anything Model 2 (SAM2)1 for high-performance automated object segmentation, including support for manual refinement. It handles both 2D and 3D datasets via an intuitive interface and can be combined with more classical segmentation approaches such as threshold and watershed. The segmented results can be directly used within Huygens' Object Analyzer for downstream quantitative analysis and visualization. Detailed object-based analysis in the Object Analyzer is also quickly performed after uploading segmentation results from tools like Cellpose2 and StarDist3. Curious about Huygens' other AI solutions? See here!
No programming required
Easily adjustable segmentation
Automatic and AI-guided manual segmentation
Built-in 3D visualization
Direct analysis with the Object Analyzer
What can you use it for?
Automatic AI segmentation
The fully automatic segmentation is particularly effective for images where objects like cells or nuclei are densely clustered and do have well-defined boundaries. In such cases, the SAM1 algorithm can accurately distinguish individual structures with minimal errors. If the segmentation contains inconsistencies like slightly irregular borders or small missed areas, they can be easily corrected with minimal manual effort. This combination of efficient automation and easy manual refinement makes the AI segmentation in Huygens accurate and time-saving.
AI-guided manual segmentation
For more complex images, such as those containing numerous structures or background elements that are not relevant to the analysis, Huygens' AI-guided manual segmentation provides a more targeted approach. Instead of relying on traditional manual methods that require time-consuming "painting" or pixel-by-pixel adjustments, users can interact with the image in a much simpler way. By either clicking directly on the object of interest or drawing a bounding box around it, the SAM21 algorithm is able to recognize and segment the object automatically.
Huygens' AI-guided manual segmentation has the ability to distinguish detailed structures such as the cell bodies of Purkinje cells, even when surrounded by other tissue components. One simple click on the object is enough for the AI to segment it. AI-guided manual segmentation on highly pixelated raw image of brain tissue with Purkinje cells. Courtesy of Dr. Zsolt Csaba, Platform DHIM. Inserm, Robert Debre Hospital, Paris, France
3D segmentation
Huygens also offers AI-powered 3D segmentation, designed to accurately identify and separate complex structures within 3D images. Huygens' intuitive and user-friendly interface makes the entire process easy to navigate, with clear controls and visual feedback that guides users at every step. Combined with tools for quick correction and detailed visualization, Huygens offers a powerful, accessible solution for researchers working with 3D datasets.
How does it work?
Step 0: deconvolve and restore your data
AI segmentation performs significantly better on properly Nyquist sampled and deconvolved images. In this case a comparison was made between raw (left) and deconvolved (right) images of plant embryo's.
Raw data
Deconvolved data
Step 1: Thresholds
Huygens offers two intuitive and easily adjustable thresholds that can be set to match the segmentation with the specific requirements of your experiment. By offering direct visual feedback Huygens helps ensure that the thresholds are set correctly, improving both the accuracy and biological relevance of the results.
Threshold on mimimum size
Threshold on intensity
Step 2: Choose your segmentation method, fully automatic or AI-guided manual segmentation
Fully automatic segmentation works well for images with densely clustered but well-defined structures, accurately separating objects with minimal errors. Minor imperfections can be quickly corrected with minimal manual input, making the process efficient and precise.
For more complex images, Huygens' AI-guided manual segmentation offers a targeted alternative. Users can simply click or draw a box around the object, and the AI handles the rest—no tedious pixel-by-pixel editing required.
Automatic segmentation
AI-guided manual segmentation
Step 3: Adjust the segmentation
Minor segmentation errors can be easily corrected, objects can be deleted, merged, made bigger, or smaller. The UI allows you to easily visualize and adjust the segmentation both in 2D and in 3D.
Step 4: Analyse the data in the Object Analyzer
Once the segmentation process is complete, the resulting data can directly be analyzed within the Object Analyzer. This allows immediate access to powerful statistical tools for in-depth analysis of the segmented objects. Users can quickly assess key metrics such as object count, size distribution, shape characteristics, and distances between objects. In addition to the statistical outputs, AI-generated labels associated with each object are also preserved, providing valuable visualisation. Both the statistical data and the AI annotations can be effortlessly exported. Learn more about the Object Analyzer here.
References
1.. Ravi N., Gabeur V., Hu Y., Hu R., Ryali C., Ma T., Khedr H., Rädle R., Rolland C., Gustafson L., Mintun E., Pan J., Vasudev Alwala K., Carion N., Wu C., Girshick R., Dollár P., Feichtenhofer C. SAM 2: Segment Anything in Images and Videos. https://ai.meta.com/research/publications/sam-2-segment-anything-in-images-and-videos/
2. Stringer C, Wang T, Michaelos M, Pachitariu M. Cellpose: a generalist algorithm for cellular segmentation. Nat Methods. 2021 Jan;18(1):100-106. doi: 10.1038/s41592-020-01018-x. Epub 2020 Dec 14. PMID: 33318659.
3. Schmidt, U., Weigert, M., Broaddus, C., Myers, G. (2018). Cell Detection with Star-Convex Polygons. In: Frangi, A., Schnabel, J., Davatzikos, C., Alberola-López, C., Fichtinger, G. (eds) Medical Image Computing and Computer Assisted Intervention – MICCAI 2018. MICCAI 2018. Lecture Notes in Computer Science(), vol 11071. Springer, Cham. https://doi.org/10.1007/978-3-030-00934-2_30