Organizations: DSBU, Axle Research, 6116 Executive Blvd Suite 400, Rockville, 20852, MD, USA. · NGRF, NovaGen Research Fund, 6116 Executive Blvd Suite 400, Rockville, 20852, MD, USA. · NCATS, 9800 Medical Center Dr, Rockville, 20850, MD, USA.
Modern imaging instruments can produce terabytes to petabytes of data for a single experiment. The biggest barrier to processing big image datasets has been computational, where image analysis algorithms often lack the efficiency needed to process such large datasets or make tradeoffs in robustness and accuracy. Deep learning algorithms have vastly improved the accuracy of the first step in an analysis workflow (region segmentation), but the expansion of domain specific feature extraction libraries across scientific disciplines has made it difficult to compare the performance and accuracy of extracted features. To address these needs, we developed a novel feature extraction library called Nyxus. Nyxus is designed from the ground up for scalable out-of-core feature extraction for 2D and 3D image data and rigorously tested against established standards. The comprehensive feature set of Nyxus covers multiple biomedical domains including radiomics and cellular analysis, and is designed for computational scalability across CPUs and GPUs. Nyxus has been packaged to be accessible to users of various skill sets and needs: as a Python package for code developers, a command line tool, as a Napari plugin for low to no-code users or users that want to visualize results, and as an Open Container Initiative (OCI) compliant container that can be used in cloud or super-computing workflows aimed at processing large data sets. Further, Nyxus enables a new methodological approach to feature extraction allowing for programmatic tuning of many features sets for optimal computational efficiency or coverage for use in novel machine learning and deep learning applications.
Figures & tables
Figure 1: Nyxus feature set compared to other common image feature extraction Methods. Each racetrack plot compares features from 9 different feature extraction libraries; NY - Nyxus, WC – WND-CHRM, RJ- RadiomicsJ, PR- PyRadiomics, NF- NIST Java Features, MI- MITK, MT- MatLab, IM- Imea, CP- CellProfiler. McQuin et al. (2018) Each plot compares features classified as shape, intensity, texture, volumetric, and miscellaneous. Complete information on individual features can be found in Supplemental Tables S1 (Intensity), S2 (Shape and Moments), S3 (Texture), S4 (Miscellaneous), and S5 (Volumetric).
Figure 2: Heatmap comparing feature extraction library capabilities across multiple criteria. Color coding is row-specific: green generally indicates full support or optimal capability (e.g., >90% for quantitative metrics, most permissive for licensing), blue indicates partial support or intermediate capability (e.g., 10%−90% for quantitative metrics, some restrictions for qualitative metrics), and red indicates minimal/no support or most restrictive (e.g., <10% for quantitative metrics, proprietary licensing). Supplemental Table S7 provides detailed definitions for how each row’s criteria were classified and what the color coding means in that specific context
Figure 3: Nyxus hardware-specific performance. (a) Tissuenet (Nyxus untargeted), (b) Tissuenet (Nyxus targeted), (c) Decathlon (Nyxus untargeted), (d) Decathlon (Nyxus targeted) - relative Nyxus performance in untargeted and targeted mode versus competition software by feature group on various datasets (Amazon EC2 p5 node). (e) Scalability on different hardware at varying number of CPU threads and various datasets (Notebook hub, EC2, M1). (f) Scalability as a function of region size - CUDA GPU-enabled scalability on synthetic slides having various ROI area and population (Amazon EC2 p5 node using 8 CPU threads). (g) CPU (left) versus GPU (right) execution cost (bigger = slower, sizes are relative to each other) - compute cost structure of featurizing an image of 100x 100K-pixel ROIs on a GPU-disabled and GPU-enabled p5 node. The legend shows color coded broad feature categories, with fold improvement of GPU over CPU in parenthesis.
Figure 4: Heatmap of fully IBSI-compliant feature extraction results by Nyxus correlated with competition software calculated on a segmented slide hosting 32 ROIs. Color coding: dark blue indicates high correlation, red/orange indicate anti-correlation, and tan/teal represents little/no correlation.
Figure 5: Nyxus use cases: high-performance pipeline, Python library, and Napari backend. (a) Nyxus serving multiple workflows. (b) Nyxus architecture related to main use cases. (c) Data analysis session with Python. (d) Napari with Nyxus as data analysis backend.
Figure 6: Representative datasets analyzed. (a) Representative nucleus and cell border images and labeled masks from the TissueNet 1.0 dataset. (b) Representative CT image and labeled masks and MRI image and labeled mask from the Medical Image Decathalon dataset. (c) Representative synthetic data images of labeled masks, and 9, 100, and 1000 binary ROIs overlayed on intensity images.
Figure 7: Hard and soft features, and their tuning with Nyxus. (a) Typical feature set implementing targeted measurements via soft features. The figure shows all the feature classes that are hard (plain text) and soft (light blue box). (b) Tuning a 2D soft feature via varying the grey level co-occurrence matrix size. The figure illustrates tuning the GLCM feature for grey depth and offset on ROIs in 523-images from the Tissuenet dataset. Callouts A-C represent a GLCM cooccurrence matrix of varying size to represent computational complexity as more grey depth is added. (c) Contours of classification accuracy of the tissue type (yellow – high, purple low) from the Tissuenet test dataset using a 50-state random forest model as a function of feature extraction hyperparameters - grey depth and offset.
Figure S1 : Heatmap of feature extraction results by Nyxus default profile correlated with competition software calculated on a segmented slide hosting 32 ROIs. Color coding: dark blue indicates high correlation, red/orange indicate anti-correlation, and tan/teal represents little/no correlation.
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
1 C of var
–
–
–
1
–
–
1
–
–
2 Covered img Inten Range
–
–
–
1
–
–
–
–
–
3 Edge integrated intensity
1
–
–
–
–
–
–
1
1
4 Edge intensity max
1
–
–
–
–
–
–
–
1
5 Edge intensity min
1
–
–
–
–
–
–
–
1
6 Edge intensity mean
1
–
–
–
–
–
–
–
1
Table S1 : 2-dimensional intensity features
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
Shape
Statistical lengths
41 Area
1
1
1
–
–
–
1
1
1
89 Feret ⌀mode
–
1
–
–
–
–
–
–
1
42 Area projection
–
1
–
–
–
–
–
–
–
90 Feret ⌀stddev
–
1
–
–
–
–
–
–
1
43 Aspect Ratio
–
–
–
–
–
–
–
1
1
91 Feret max angle
–
–
1
–
–
–
1
–
–
44 BB Height
–
–
1
–
–
–
1
1
1
92 Feret max coordinates
1
–
1
–
–
–
–
–
1
45 BB Width
–
–
1
–
–
–
1
1
1
93 Feret max ⌀
1
1
1
–
–
–
–
–
1
Table S2 : 2-dimensional shape and geometric moment features
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
GLCM
197 LRE
–
–
–
1
–
1
–
–
1
140 ASM
1
–
–
–
–
1
1
1
1
198 LRHGLE
–
–
–
1
–
1
–
–
1
141 ACOR
–
–
–
–
–
1
1
–
1
199 LRLGLE
–
–
–
1
–
1
–
–
1
142 AVEAMP
–
–
–
–
1
–
–
1
1
200 LGLRE
–
–
–
1
–
1
–
–
1
143 CLUPROM
–
–
–
–
–
1
1
–
1
201 RE
–
–
–
1
–
1
–
–
1
144 CLUSHADE
–
–
–
–
–
1
1
–
1
202 RLNU
–
–
–
1
–
1
–
–
1
Table S3 : 2-dimensional texture features
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
Intensity distribution
265 Gabor
–
–
–
–
–
–
–
1
1
266 FracAtD
1
–
–
–
–
–
–
–
1
267 MeanFrac
1
–
–
–
–
–
–
–
1
268 RadialCV
1
–
–
–
–
–
–
–
1
269 Zernike
1
–
–
–
–
–
–
1
1
Table S4 : Miscellaneous 2-dimensional features
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
Feature
CP
IM
MT
MI
NF
PR
RJ
WC
NY
303 Coef of var
–
–
–
1
–
–
1
–
1
353 length_3d_bb
1
1
–
–
–
–
–
–
1
304 Covered img inten range
–
–
–
1
–
–
–
–
1
354 height_3d_bb
1
1
–
–
–
–
–
–
1
305 Energy
–
–
–
1
–
1
1
1
1
355 feret_3d_max
–
1
–
–
–
–
–
–
1
306 Entropy
–
–
1
1
–
1
–
1
1
356 feret_3d_min
–
1
–
–
–
–
–
–
1
307 Excess kurtosis
–
–
–
1
–
–
–
–
1
357 x_max_3d
–
1
–
–
–
–
–
–
1
308 Hyperflatness
–
–
–
–
–
–
–
–
1
358 y_max_3d
–
1
–
–
–
–
–
–
1
Table S5 : Volume methods
CP 1
IM 2
MT 3
MI 4
NF 5
PR 6
RJ 7
WC 8
NY U9
NY T10
tissuenet
intensity
211
–
110
446726
116
152
418842
82
65
4
shape
1516
5892
612
–
54
–
15613
106
86
35
texture
5334
–
740
450056
96
875
62034
58
153
41
misc.
1267
15409
–
–
–
–
–
63
160
129
decathlon
Table S6 : Benchmarks on Tissuenet and Decathlon datasets by feature group. All values are in seconds. NY U refers to the Nyxus untargeted profile (all features enabled), and NY T refers to the Nyxus targeted profile (optimized feature subset). These raw timing values correspond to the fold-change comparisons shown in Figure 3 .
Category
Remark
Green
Blue
Red
Out of Core Support
Can the Method calculate all (or the majority) of its features if an image or ROI is larger than available RAM?
>90%
10%⩽x⩽90%
<10%
# Of Feature Classes
Count of unique measurements extracted by each Method. Supplemental Tables S1 - S5 display all feature classes, each class is given a unique number in these tables. Of note is that often within a given feature depending on feature hyperparameters, many different measurements can be made. For example, Zernike polynomials measure the intensity distribution from each object’s center to its boundary within a set of bins, across its radial and azimuthal degrees and therefore can have unlimited Zernike polynomial measures for a single feature class. However, for this manuscript Zernike would represent only one feature class
>90%
10%⩽x⩽90%
<10%
Next Gen. Output Format
Method supports both in memory representation and saving to disk of measured feature classes in indexed columnar formats such as Apache Arrow, Feather, and/or Parquet
Supports >1 such format
Supports 1 such format
Does not natively support output of feature values in an indexed columnar format
GPU Support
Method supports calculation of features using a GPU
Supports calculating ¿ 1 feature classes on GPU
Supports calculating 1 feature class on GPU
Does not support calculation of any feature classes on GPU
Soft (Tunable) Features
Method supports users setting hyperparameters for features that have hyperparameters
>90%
10%⩽x⩽90%
<10%
IBSI Compliant
Method can be automatically configured to output feature measurement values that fall within accepted ranges on IBSI benchmark datasets for feature classes within the IBSI standard
The Czech Academy of Sciences, Institute of Information Theory and Automation, Czechia · Czech Technical University in Prague, Faculty of Nuclear Sciences and Physical Engineering, Czechia