| Literature DB >> 34375551 |
Devin Clarke1, Hans S Crombag1, Catherine N Hall1.
Abstract
Changes in microglial morphology are powerful indicators of the inflammatory state of the brain. Here, we provide an open-source microglia morphology analysis pipeline that first cleans and registers images of microglia, before extracting 62 parameters describing microglial morphology. It then compares control and 'inflammation' training data and uses dimensionality reduction to generate a single metric of morphological change (an 'inflammation index'). This index can then be calculated for test data to assess inflammation, as we demonstrate by investigating the effect of short-term high-fat diet consumption in heterozygous Cx3CR1-GFP mice, finding no significant effects of diet. Our pipeline represents the first open-source microglia morphology pipeline combining semi-automated image processing and dimensionality reduction. It uses free software (ImageJ and R) and can be applied to a wide variety of experimental paradigms. We anticipate it will enable others to more easily take advantage of the powerful insights microglial morphology analysis provides.Entities:
Keywords: dimensionality reduction; image processing; in vivo; microglia; morphology; two-photon
Mesh:
Substances:
Year: 2021 PMID: 34375551 PMCID: PMC8354754 DOI: 10.1098/rsob.210045
Source DB: PubMed Journal: Open Biol ISSN: 2046-2441 Impact factor: 6.411
Figure 1Experimental design. (a) Inflammation index construction and application schematic. (b) Imaging timeline. Mice were imaged after 56 days of control or HFD feeding. Following this, control mice were injected with LPS and imaged 24 h later. (c) Cx3CR1-GFP two-photon in vivo microglia images. Inset shows magnified view of example cells. (iii, iv): pre- and post-LPS microglia (training dataset). (i, ii): microglia after 56 days of control or HFD (test dataset). Main scale bar represents 50 µm. Inset represents 20 µm.
Figure 2Image processing and extracting morphological descriptors. (a) Image processing schematic. Input stacks were split into substacks containing all frames from a distinct Z level. For each substack, the least blurry frames were registered and averaged to create a reference frame that each frame of the substack was then registered to. The frames least different from the reference were again registered and averaged into a single frame. These single frames were stacked and reordered to represent their true positioning in Z. (b) Morphological feature extraction. After generating cell masks for a user-specified range of target mask sizes, the ImageJ plugin measured 62 different morphological features for each cell. These features were derived from five domains: simple shape descriptors, skeleton analyses, fractal analyses, hull and circularity morphometrics, and Sholl analyses.
The 62 morphological features extracted by the ImageJ plugin.
| descriptor | type | definition |
|---|---|---|
| perimeter | simple | perimeter around the cell mask |
| cell spread | simple | average distance from the centre of mass of the mask to the four extremities |
| eccentricity | simple | ratio of the major and minor axes of an ellipse drawn around the mask |
| roundness | simple | inverse of the eccentricity |
| soma area | simple | area occupied by the microglial soma mask |
| mask area | simple | area of the cell mask |
| branches | skeleton | the number of branches in the mask skeleton |
| junctions | skeleton | the number of junctions in the mask skeleton |
| endpoint voxels | skeleton | the number of endpoints voxels in the mask skeleton |
| junction voxels | skeleton | the number of junction voxels in the mask skeleton |
| slab voxels | skeleton | the number of slab voxels in the mask skeleton |
| average branch length | skeleton | the average length of all branches in the mask skeleton |
| triple points | skeleton | the number of junctions with 3 branches |
| quadruple points | skeleton | the number of junctions with 4 branches |
| maximum branch length | skeleton | the maximum length of a branch in the skeleton |
| longest shortest path | skeleton | the sum of the shortest path between all pairs of vertices |
| skeleton area | skeleton | area occupied by the cell skeleton |
| primary branches | Sholl | number of branches originating directly from the cell soma |
| intersecting radii | Sholl | the number of sampled radii with at least one intersecting process |
| sum of intersections | Sholl | the total number of processes |
| mean of intersections | Sholl | the mean number of processes across all sampled radii |
| median of intersections | Sholl | the median number of processes across all sampled radii |
| skewness (sampled) | Sholl | the skewness of the distribution of the number of branches |
| skewness (fit) | Sholl | the skewness of the distribution of the number of branches derived from the best fit polynomial |
| kurtosis (sampled) | Sholl | the kurtosis of the distribution of the number of branches |
| kurtosis (fit) | Sholl | the kurtosis of the distribution of the number of branches derived from the best fit polynomial |
| maximum number of intersections | Sholl | the highest number of processes at any given radius |
| max intersection radius | Sholl | the radius at which the max intersections occurs |
| ramification index (sampled) | Sholl | the ratio between the max intersections and the number of primary branches |
| ramification index (fit) | Sholl | the ratio between the max intersections and the number of primary branches based on the best fit polynomial |
| centroid radius | Sholl | the abscissa of the geometric centre of a linear plot of number of branches against radius |
| centroid value | Sholl | the ordinate of the geometric centre of a linear plot of number of branches against radius |
| enclosing radius | Sholl | the largest sampled radius |
| critical radius | Sholl | the local maximum of the polynomial fit |
| mean value | Sholl | the mean value of the polynomial fit |
| polynomial degree | Sholl | the degree of the best fit polynomial |
| regression coefficient (semi-log) | Sholl | the slope of the linear regression between the log of branch number plotted against sampled radius |
| regression coefficient (semi-log)[P10-P90] | Sholl | the slope of the linear regression between the log of branch number plotted against sampled radius but only for data between the 10th and 90th percentiles |
| regression coefficient (log–log) | Sholl | the slope of the linear regression between the log of branch number plotted against the log of the radius |
| regression coefficient (log–log)[P10-P90] | Sholl | the slope of the linear regression between the log of branch number plotted against the log of the radius but only for data between the 10th and 90th percentiles |
| regression intercept (semi-log) | Sholl | the intercept of the linear regression between the log of branch number plotted against sampled radius |
| regression intercept (semi-log)[P10-P90] | Sholl | the intercept of the linear regression between the log of branch number plotted against sampled radius but only for data between the 10th and 90th percentiles |
| regression intercept (log–log) | Sholl | the intercept of the linear regression between the log of branch number plotted against the log of the radius |
| regression intercept (log–log)[P10-P90] | Sholl | the intercept of the linear regression between the log of branch number plotted against the log of the radius but only for data between the 10th and 90th percentiles |
| density | HC morph. | mask area divided by the area of the convex hull |
| span ratio | HC morph. | ratio of the major to minor axes of the convex hull |
| maximum span across hull | HC morph. | the maximum distance across the convex hull |
| convex hull area | HC morph. | area of the convex hull |
| convex hull perimeter | HC morph. | perimeter of the convex hull |
| convex hull circularity | HC morph. | circularity of the convex hull |
| maximum radius from hull's centre of mass | HC morph. | mean length from the centre of the convex hull's mass to points on the convex hull |
| max/min radii | HC morph. | the ratio of the largest to smallest radius from the centre of mass of the convex hull to an exterior point |
| CV for all radii | HC morph. | the coefficient of variation in the length of the radii from the centre of mass of the circle to points on the convex hull |
| mean radius | HC morph. | the mean length from the centre of mass to an exterior point on the convex hull |
| diameter of bounding circle | HC morph. | the diameter of the smallest circle enclosing the convex hull |
| maximum radius from circle's centre | HC morph. | mean length from the centre of the minimum bounding circle to points on the convex hull |
| max/min radii from circle's centre | HC morph. | the ratio of the largest to smallest radius from the centre of the minimum bounding circle to an exterior point |
| CV for all radii from circle's centre | HC morph. | the coefficient of variation in the length of the radii from the centre of the minimum bounding circle to points on the convex hull |
| mean radius from circle's centre | HC morph. | the mean length from the centre of the minimum bounding circle to an exterior point on the convex hull |
| fractal dimension | fractal | a measure of complexity of the cell shape, i.e. how a pattern's detail changes with the scale at which it is considered |
| lacunarity | fractal | a quantification of the inhomogeneity in the cell mask, also understood as a measure of ‘gappiness’, visual texture, and translation and rotational invariance |
| branching density | — | skeleton area divided by the convex hull area |
Figure 3Calculating and applying the inflammation index. (a) For each mask size, the morphological descriptors' ability to discriminate between pre- and post-LPS conditions was evaluated using a ROC-AUC analysis (red, regression coefficient; blue, critical radius). A PCA was run on the top five discriminators. The first principal component compared pre- and post-LPS again using a ROC-AUC analysis. The mask size with the largest AUC value was selected. PCAs were then run on a range of the best discriminators at this mask size. The range (e.g. the best four discriminators) with the largest AUC value for the ability to discriminate between pre- and post-LPS was selected as the inflammation index. (b) Two example cells from the LPS dataset displaying values from the seven best discriminators. (c) This inflammation index can then be calculated for experimental data. It was unaffected by 56 days of HFD feeding (control mean ± s.d. of 0.44 ± 1.66; HFD mean ± s.d. of 0.90 ± 1.47). Dots are cells, lines represent the mean ± 1 s.d. Seventy-nine cells from 5 control mice, 77 cells from 5 HFD mice. Statistical tests were conducted using linear mixed models with the animal ID specified as a random intercept to avoid pseudoreplication.
Figure 4Comparison of methods for measuring blur in image frames. (a) Schematic of method comparison approach. A single image frame was blurred using different Gaussian kernel sizes (where larger kernels introduce more blur) before the blurred images were run through an LoG filter and their maximum grey value, and standard deviation of their grey values, were measured. Scale bar indicates 50 µm. (b) Plot of the maximum and standard deviation of different kernel sizes in the example image in (a). For each kernel size, values were divided by their value in the previous kernel size, and this fraction plotted. For every comparison with previous kernel size values, the standard deviation of the grey value was reduced. Conversely, the maximum grey value showed both increases (e.g. a greater value at kernel size 12 compared to 11; indicated by the arrow and the dotted line above which values are greater than at the previous kernel size) and decreases (e.g. a lesser value at kernel size 5 compared to 4). An ideal blur detector should show a consistent relationship with blur, and so the grey value standard deviation is a better tool for this than the maximum grey value.
Figure 5Further validation of the inflammation index. (a) Comparing the inflammation index between cells imaged 18 min apart revealed no significant effect of time on the value of the inflammation index (T+0 min, mean ± s.d. of 0.19 ± 1.32; T + 18 min, mean ± s.d. of 0.01 ± 1.34; p = 0.79; linear mixed model with animal ID specified as a random intercept; n = 8 cells, five animals. Crossbars represent the mean ± 1 s.d. Colour identifies individual cells, shape identifies individual animals. Arrowheads indicate the cell that is shown in (b). (b) Example images that were analysed, corresponding to the cell indicated by the arrowheads in (a). (c) Our analysis of THIK-1 knockout cells revealed a trend level effect on the inflammation index (wild-type mean ± s.d. of 3.66 ± 1.23; knockout mean ± s.d. of 4.58 ± 1.07; p = 0.097; one-way ANOVA, n = 8 cells for wild-type, n = 11 cells for knockout). (d) Example images of a wild-type and THIK-1 knockout cell with their automatically generated cell masks overlaid in red.
Morphological features included in the THIK-1 KO trained inflammation index. Each row indicates a morphological feature that was included in the inflammation index trained to detect differences in morphology between wild-type and THIK-1 knockout cells. Their mean values are displayed for the THIK-1 knockout and wild-type cells.
| parameter | THIK-1 knockout | wild-type |
|---|---|---|
| triple points | 22.25 | 25.73 |
| CV for all radii | 0.13 | 0.18 |
| intersecting radii | 56.50 | 66.82 |
| max/min radii | 1.59 | 1.76 |
| maximum radius from hull's centre of mass (μm) | 22.82 | 26.21 |
| primary branches | 2.19 | 3.73 |
| regression intercept (log–log) [P10-P90] | 2.27 | 3.80 |
| skewness (sampled) | −0.04 | 0.34 |
| soma area (μm2) | 42.87 | 50.26 |