Next Article in Journal
Picolinamides with β-Thiophosphorylated Amine Residues as a Useful Scaffold to Generate Biologically Active Pd(II) Pincer Complexes
Previous Article in Journal
N-p-trans-Coumaroyltyramine Improves Myocardial Ischemia–Reperfusion Injury: From Cellular Protection to Animal Model Validation and the Discovery of the Target Tcap
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Foreign Body Response to Neuroimplantation: Machine Learning-Assisted Quantitative Analysis of Astrogliosis

by
Anastasiia A. Melnikova
1,*,
Anton A. Egorchev
2,
Alexander A. Rosin
2,
Leniz F. Nurullin
3,4,
Nikita S. Lipachev
1,
Daria S. Vedischeva
1,5,
Dmitry V. Derzhavin
2,
Stepan S. Perepechenov
5,
Ekaterina A. Sukhodolova
1,6,
Gleb V. Shabernev
2,
Angelina A. Titova
5,
Ramziya G. Kiyamova
5,
Andrey P. Kiyasov
5,
Dmitry E. Chickrin
7,
Albert V. Aganov
1,
Dmitry V. Samigullin
3,8,
Irina Yu. Popova
6 and
Mikhail Paveliev
1,*
1
Institute of Physics, Kazan Federal University, Kremlyovskaya 16a, Kazan 420008, Russia
2
Institute of Computational Mathematics and Information Technologies, Kazan Federal University, Kremlyovskaya 35, Kazan 420008, Russia
3
Kazan Institute of Biochemistry and Biophysics, FRC Kazan Scientific Center, Russian Academy of Sciences, Lobachevskogo 2/31, Kazan 420111, Russia
4
Department of Medical Biology and Genetics, Kazan State Medical University, Butlerova 49, Kazan 420012, Russia
5
Institute of Fundamental Medicine and Biology, Kazan Federal University, Karl Marx 74, Kazan 420015, Russia
6
Institute of Theoretical and Experimental Biophysics, Russian Academy of Science, Institutskaya 3, Puschino 422290, Russia
7
Institute of Artificial Intelligence, Robotics and Systems Engineering, Kazan Federal University, Kremlyovskaya 18, Kazan 420008, Russia
8
Department of Sports Engineering, Kazan National Research Technical University Named After A.N. Tupolev-KAI, 10 K. Marx St., Kazan 420111, Russia
*
Authors to whom correspondence should be addressed.
Int. J. Mol. Sci. 2026, 27(8), 3524; https://doi.org/10.3390/ijms27083524
Submission received: 1 March 2026 / Revised: 10 April 2026 / Accepted: 10 April 2026 / Published: 15 April 2026
(This article belongs to the Section Molecular Informatics)

Abstract

Neuroimplants represent an emerging medical technology, offering new therapeutic approaches for severe neurological and psychiatric disorders. One of the key limitations to long-term neuroimplant performance is the foreign body response elicited by intracortical implantation. Among the contributing cell types, astrocytes play a central role in glial scar formation around the implant, which can compromise device functionality. Immunofluorescence of glial fibrillary acidic protein (GFAP) provides a well-established marker of astrogliosis (neuroinflammation), yet quantitative and reproducible assessment of astrocyte morphology remains challenging due to the complexity and variability of image analysis approaches. Here, we aimed to quantitatively assess implantation-induced astrogliosis and to determine how classifier training strategy influences segmentation outcomes and morphometric measurements. We present a machine learning-assisted pipeline based on the LabKit plugin in Fiji for segmentation and morphometric analysis of GFAP-positive astrocytes in peri-implant scar versus distant cortical regions. Using this approach, we demonstrate an increase in GFAP expression, cell area, and astrocytic process length as well as the redistribution of GFAP signal along astrocytic processes within scar regions. We show that different classifier training strategies produce systematically distinct segmentation outcomes, with rule-compliant annotation improving agreement with manually defined ground truth. These findings highlight the critical role of annotation strategy in shallow learning-based segmentation and provide a practical framework for improving reproducibility of astrocyte morphometry in studies of neuroinflammation and neuroimplant biocompatibility.

1. Introduction

Brain-computer interfaces represent a rapidly developing branch of medical technology with the potential to transform the treatment of severe neurological and psychiatric disorders [1,2,3]. Invasive interfaces, in particular, provide the spatial and temporal resolution required for neuroprosthetic applications and high-fidelity neural recording [4,5]. However, implantation of cortical electrodes induces a foreign body response (FBR) in the surrounding brain tissue, ultimately compromising device functionality and long-term stability [6,7].
Multiple cell types contribute to the development of the FBR, including microglia, astrocytes, oligodendrocyte progenitor cells, and vascular-associated cells [8,9,10]. Among these, astrocytes play a central role in the formation of the peri-implant glial scar, which can mechanically and electrically isolate the electrode from surrounding neurons [11]. During scar formation, astrocytes undergo astrogliosis characterized by changes in gene expression, cytoskeletal organization, and cellular morphology [12,13]. Upregulation of glial fibrillary acidic protein (GFAP) is widely recognized as a hallmark of reactive astrocytes in both foreign body response and diverse CNS pathologies [14,15]. Furthermore, a limited number of studies have reported that quantitative parameters of GFAP-stained astrocyte morphology can serve as markers of the cell functional state and brain tissue pathology outcomes [16,17]. In contrast to purely qualitative assessments, quantitative analysis of astrocyte morphology and GFAP signal provides a set of measurable parameters that reflect astrocyte functional states and tissue pathology. Therefore, quantification of the astrocytic GFAP expression and cell morphology can be viewed as a promising readout of the severity of the FBR caused by neuroimplantation and, more generally, for neuroimplant biocompatibility studies.
Reliable morphometric analysis requires automated and unbiased image processing pipelines that minimize operator-dependent variability. Machine learning-based image segmentation has become a widely adopted strategy for biomedical microscopy analysis over the past two decades [18,19]. Deep learning approaches demonstrate high performance but typically require large annotated datasets and substantial computational expertise, limiting their accessibility for routine laboratory use [20,21]. With respect to astrocytes in brain sections, deep learning-based segmentation tools have not yet become widely adopted, although several highly promising pioneering studies were reported [22,23].
Shallow learning approaches provide an attractive alternative for applications with limited ground truth data. Several user-friendly implementations enable efficient cell segmentation with minimal training data and rapid classifier generation [24,25]. In supervised and shallow learning-based image segmentation, the quality and structure of training annotations are known to critically influence classifier performance. Recent studies in medical image analysis emphasize that segmentation accuracy and generalization remain strongly dependent on annotation quality, inter-observer variability, and dataset design, particularly in settings with heterogeneous signal intensity and ambiguous boundaries [26,27,28]. However, in the context of GFAP-based astrocyte morphometry, the role of annotation strategy has not been systematically addressed.
In the present study, we took advantage of the LabKit plugin for Fiji, which is based on a random forest classifier and integrates seamlessly into reproducible image analysis pipelines [25,29]. It has been successfully applied to segmentation of diverse microscopy datasets including cultured cells, bacterial images, tissue sections, large light-sheet volumes, and 3D ultrastructural datasets [25,30,31,32]. We demonstrate the peri-implant scar-specific changes in astrocyte morphology, GFAP expression, and subcellular distribution. We further compare several classifiers with various astrocyte segmentation outcomes and propose a procedure for generating robust classifiers applicable to repetitive and independent experiments. We also provide an explicit validation of annotation strategies for shallow learning-based astrocyte segmentation.

2. Results

We first asked whether the recently developed advanced algorithm for shallow learning-based image segmentation, LabKit [25], can be used for the segmentation of GFAP-stained astrocytes in histological sections of mouse brain with implantation-induced scarring. At the 2-month time point after implantation, cortical sections exhibited pronounced GFAP-positive scars at the implantation sites (Figure 1A–D). The GFAP-positive astrocytes were tightly packed within the scar (Figure 1C,D). In addition to that, some sparse GFAP-positive astrocytes could be observed in the cortex areas away from the implantation sites.
We then used the semi-automatic procedure for single-cell perineuronal net analysis [33] and adjusted it for picking single astrocytes in squares of the desired size (Figure 1E–I).

2.1. Creation of Classifiers

We created a few LabKit classifiers on astrocytes within and away from the peri-implantation cites (Figure 2A,B) to check how robustly the algorithm would perform on cells of various sizes, shapes, and GFAP intensity levels (Figure 2C–G). One crucial advantage of the LabKit shallow learning method is that it takes a skilled human researcher less than a minute to create a single classifier that can be then tested on many astrocytes. The classifiers 1 and 2 segmented mostly large GFAP-positive objects corresponding to the astrocytic cells with few or no small peripheral fragments (Figure 2C–E). By contrast, classifier 3 segmented large numbers of small objects in the analyzed area (Figure 2C,F). We performed extensive trials to find an optimal object threshold size to filter away many small noisy fragments without compromising the main tree of astrocyte processes (Figure 2G).

2.2. Fiji Pipelines with Embedded Machine Learning

The Labkit plugin was designed with implicit capacity for integration in Fiji pipelines and automated processing of big data [25]. To build on those features, we assembled two pipelines for semi-automatic and automated processing of the brain section confocal images. Pipeline 1 works on raw microscopy images. It starts by manual selection of a cell (region of interest, ROI) center with the PointPicker tool followed by manual selection of the ROI size (Figure 1E–I). Multiple cells (ROIs) can be selected within a single pipeline run. The astrocyte-containing ROI is then segmented with a pre-defined Labkit classifier, the resulting mask is filtered for the object size, and the minimum operation is applied between the raw ROI and the filtered mask. The cell mean intensity, area, perimeter, area-to-perimeter ratio, and circularity (isoperimetric) are written to the output files for further analysis. The set of the quantified parameters can be easily expanded as needed. Pipeline 2 works on a pre-selected set of ROIs, performs Labkit-based segmentation with subsequent intensity and morphometry analysis in the same way as in pipeline 1. On average, this approach improves the speed of the image analysis by 5.2 times and profoundly reduces the number of manual operations for the whole procedure.

2.3. Testing the Classifiers

The results of astrocyte segmentation performed by those classifiers exhibited consistently higher cell areas and lower mean GFAP intensities for some classifiers as compared to others (Figure 2H–J). This result suggests that LabKit classifiers can be created specifically either for the brightest GFAP cytoskeleton area (the cell “core”) or for larger and dimmer areas reflecting more closely the astrocyte area in 2D images and the astrocyte volume in 3D.
Efficient and standardized image processing implies that data from repetitive independent experiments are subjected to exactly the same image analysis procedure. Therefore, it would be crucial that we develop LabKit classifiers equally applicable to astrocyte images from independent experiments. Testing classifiers 1–3 on confocal images from different mice (three independent experiments) revealed that some cells were not segmented correctly (Figure 3). More specifically, classifiers 1 and 2 produced very blurred segmentation masks (Figure 3A–C), while classifier 3 segmented almost the entire analyzed image as an uninterrupted syncytium of processes (Figure 3A,D,E) that does not reflect the true astrocyte morphology previously described by various independent techniques in glial scars [12,30].

2.4. Selection of the Classifiers

To overcome the limited applicability of the LabKit shallow learning approach to repetitive and independent experiments, we developed an extended panel of the LabKit classifiers producing different astrocyte segmentation results (Figure 4). Altogether, we tested 100 cells from four mice (six brain sections, four independent experiments) processed with eight different classifiers. Those extensive trials allowed us to select three classifiers (numbers 4, 6, and 8), robustly and consistently performing astrocyte segmentation in microscopy data from independent experiments.

2.5. Training Rules for Successful Classifiers

Careful comparison of the foreground and background sampling (the red and blue lines in Figure 2 and Figure 4) made it possible to suggest some “rules of thumb” for the best classifier creation: (1) classifiers 4, 6, and 8 were made on cells from outside the scars; (2) the foreground line was traced through the cell body and the longest process of an astrocyte; (3) the foreground line contained both bright and dim pixels; and (4) the foreground and the background lines were traced along and next to each other. To further validate this set of rules, we created six additional classifiers: three classifiers following the rules and three classifiers trained against the rules (Figure S1). Match indices (Dice coefficient and Intersection over Union (IoU)), calculated between expert annotation masks and classifier-derived masks, were consistently higher for the three rule-compliant classifiers as compared to the three rule-violating classifiers on a dataset of 25 astrocytes from four mice (Figure 5).

2.6. GFAP Expression and Astrocyte Morphology as Quantitative Markers of the Foreign Body Response

After selecting the best classifiers, we asked whether the LabKit-assisted segmentation results can reveal specific quantitative difference in the GFAP expression between the scars and distant astrocytes outside the scars. The magnitude of standardized effects was interpreted using conventional benchmarks (small ≈ 0.2, medium ≈ 0.5, and large ≈ 0.8) originally proposed by Cohen [34] and discussed for paired designs by Lakens [35]. Across all three classifiers, cell area and perimeter measurements consistently indicated astrocyte hypertrophy in scar regions.
GFAP intensity was increased in scar tissue in all classifiers, with mean paired differences ranging from 22.35 to 30.5 and bootstrap 95% confidence intervals consistently excluding zero. Standardized effect sizes were large to very large (Cohen’s dz ranging from 2.61 to 8.97), indicating a robust elevation of GFAP signal across animals (Figure 6A).
Cell area was likewise elevated in scar regions, with mean paired differences ranging from 137.5 to 223.2 µm2 and bootstrap confidence intervals consistently above zero. Effect sizes were large across classifiers (dz = 1.02–1.51), supporting pronounced astrocyte hypertrophy (Figure 6B).
Cell perimeter showed a similar pattern, with mean paired differences between 112.6 and 210 µm and large standardized effect sizes (dz = 0.849–1.09), consistent with expansion of astrocytic cell contours (Figure 6C).
The area-to-perimeter ratio was increased in scar regions in all classifiers (mean paired differences 0.0639–0.1373), with large to very large effect sizes (dz = 2.67–7.45), indicating systematic alteration of astrocyte geometry (Figure 6D).
The isoperimetric index, in contrast, showed a modest decrease in scar regions (mean paired differences −0.015 to −0.024). While effect sizes were moderate in magnitude (dz = −0.60 to −0.88), confidence intervals indicated greater variability across classifiers compared to other parameters (Figure 6E).
Taken together, the three independent classifiers demonstrated strong gross consistency in detecting astrocyte hypertrophy and geometric remodeling in scar regions, despite moderate quantitative variation in specific shape descriptors.

2.7. GFAP Expression in the Astrocytic Processes

Astrocyte processes are a crucial cellular compartment performing highly important physiological functions within the blood–brain barrier [36], regulation of synaptic transduction and plasticity [37], and the “palisade” formation with the glial scars [13]. Being a cytoskeleton component, GFAP is expected to bear a structural function and to hold a role in shaping the astrocyte process tree. Therefore, GFAP expression in astrocytic processes may be considered as a promising distinct marker of the astrocyte functional state [38]. We first assessed what part of the whole process tree is grasped by the Labkit masks. By comparing total process length in the Labkit masks versus raw images from a random data subset, we estimate that Labkit reveals 83% of all processes on average (Figure 6A–C).
We then used the LabKit-assisted segmentation results to measure GFAP expression specifically in the astrocytic processes. At the level of astrocytic processes, classifier 4 revealed consistent alterations in scar regions.
Whole-process GFAP intensity (all pixels) was markedly increased in scar tissue (mean paired difference = 37.08; bootstrap 95% CI: 34.94–41.17). The standardized effect size was very large (Cohen’s dz = 9.1; bootstrap 95% CI: 8.24–749), indicating a highly consistent elevation of signal along astrocytic processes (Figure 7E).
When spatial compartments were analyzed separately, both distal and proximal portions exhibited increased intensity. Distal process intensity increased with a mean paired difference of 19.61 (bootstrap 95% CI: 9.864–25.82), corresponding to a large effect size (dz = 1.93; bootstrap 95% CI: 0.929–744) (Figure 7F). Proximal process intensity showed an even larger increase (mean paired difference = 58.7; bootstrap 95% CI: 46.45–72.7), with a very large, standardized effect size (dz = 3.58; bootstrap 95% CI: 2.76–10.3) (Figure 7G).
Consistent with this asymmetric increase, the distal-to-proximal intensity ratio was reduced in scar regions (mean paired difference = −0.1116; bootstrap 95% CI: −0.236 to −0.0139). The effect size was moderate to large (dz = −0.808; bootstrap 95% CI: −2.07 to −0.55), indicating relative proximal enrichment of GFAP signal (Figure 7H).
Regarding structural parameters, mean process length was increased in scar regions (mean paired difference = 42.66; bootstrap 95% CI: 1.2–91.86), with a large, standardized effect size (dz = 0.812; bootstrap 95% CI: 0.044–4.07) (Figure 7I). The number of processes also tended to increase (mean paired difference = 2.5; bootstrap 95% CI: 0–5), with a large effect size (dz = 0.866; bootstrap 95% CI: 0–4.5), although confidence intervals indicated greater variability (Figure 7J).
Taken together, process-level analysis demonstrated robust increases in GFAP signal intensity and process elaboration in scar regions, accompanied by relative proximal enrichment of cytoskeletal signal.

3. Discussion

Foreign body response remains a major factor limiting the long-term performance of intracortical neuroimplants [5,39]. Astrocytes are key contributors to this response through the formation of a dense glial scar that alters tissue mechanics, electrical properties, and neuron–electrode coupling [6,7]. In the present study, we demonstrate that shallow machine learning-assisted segmentation of GFAP immunofluorescence images provides a practical and quantitative approach for assessing implantation-induced astrogliosis at both whole-cell and process levels. Beyond its specific application to neuroimplantation, the workflow described here may also be useful for quantitative analysis of astrocyte morphology across diverse neuropathological contexts.
A major methodological challenge in this context is that GFAP-based astrocyte morphometry is highly sensitive to segmentation strategy, particularly in conventional tissue sections where astrocyte boundaries are not directly visualized and GFAP signal spans bright cores together with dimmer processes. The present study was therefore designed to quantify implantation-induced astrogliosis in a reproducible manner and to assess how different classifier training strategies affect the results of shallow learning-based segmentation for astrocyte morphometry.
Astrogliosis represents a dynamic and graded response. Early stages involve reversible GFAP upregulation and moderate morphological changes, whereas more severe injury can lead to persistent structural remodeling and scar formation [12,14,40]. The increased GFAP expression and morphological differences between scar-resident and distant astrocytes observed in this study are therefore consistent with distinct stages of astrocyte activation.
A key finding of our work is that LabKit-based random forest classifiers can reliably segment GFAP-positive astrocytes in confocal images of tissue samples without the need for extensive training datasets. This accessibility is particularly important because GFAP immunostaining remains one of the most widely used approaches for evaluating neuroinflammation in a broad range of brain pathologies and neuroimplant biocompatibility. In contrast to deep learning approaches, which require large, carefully curated ground truth datasets and specialized programming expertise with the involvement of computational specialists, the shallow learning framework implemented in LabKit offers a favorable balance between performance, accessibility, and reproducibility. Classifier training can be performed rapidly by biomedical researchers without programming expertise, making the approach well suited for iterative exploratory analysis and routine laboratory workflows. An additional practical advantage of the present workflow is that the entire analysis pipeline—including cell selection, ROI definition, segmentation, process-level annotation, and morphometric quantification—was implemented within a single Fiji-based environment. This integration facilitates reproducible analysis and reduces the need for data transfer between different software platforms, which can otherwise complicate and slow down the quantitative analysis of large numbers of cells. Importantly, this practical accessibility enables systematic comparison of multiple classifier configurations and annotation strategies within a consistent analytical framework, which was essential for achieving the aims of the present study.
At the initial stage of this work, we encountered a critical limitation: classifiers trained on one experimental dataset often failed to generalize to astrocytes from independent experiments (Figure 3). This observation highlighted the lack of robustness and transferability of segmentation models without further methodological refinement. The systematic investigation of annotation strategies presented here was therefore directly motivated by this problem. By refining annotation rules and training procedures, we were able to substantially improve classifier performance across independent datasets (Figure 4, Figure 5 and Figure 6), thereby establishing a more robust and reproducible segmentation workflow.
Our systematic comparison of multiple classifiers revealed that segmentation outcomes strongly depend on the foreground and background sampling strategy used during training. Some classifiers preferentially captured only the brightest GFAP-positive structures corresponding to the astrocytic “core,” whereas others included extended and dimmer process networks. This variability indicates that different classifiers capture distinct subsets of morphological features within the same cell image dataset, suggesting that classifier design can be tuned to emphasize specific biological aspects of cell morphology. Importantly, by testing classifiers across independent experiments and animals, we identified a subset of classifiers that performed robustly despite inherent variability between experiments. From this analysis, we derived practical “rules of thumb” for classifier generation, including training on astrocytes outside the scar, sampling both bright and dim GFAP regions, and closely juxtaposing foreground and background annotations.
Importantly, these guidelines were subsequently validated by generating additional rule-compliant and rule-violating classifiers, demonstrating that classifiers trained according to the proposed annotation strategy consistently achieved higher segmentation success rates. This result indicates that in shallow learning–based segmentation workflows, the design of the annotation strategy plays a critical role in determining classifier performance. To our knowledge, systematic validation of annotation strategies for shallow learning-based astrocyte segmentation has rarely been addressed explicitly. Thus, an important practical outcome of the present work is not merely the use of a particular plugin but the establishment of an explicit annotation framework that can be adopted, tested, and refined in future studies.
In the broader field of biomedical image segmentation, annotation variability is increasingly recognized as a key factor influencing model performance and reproducibility [27,28]. At the same time, recent advances highlight that segmentation outcomes remain sensitive to dataset design, annotation protocols, and domain-specific variability [26,41]. However, these issues have been primarily discussed in the context of deep learning and large-scale datasets, whereas in shallow learning-based workflows, and particularly in GFAP-based astrocyte morphometry, annotation strategy has received comparatively little explicit attention. Our results extend this line of reasoning by demonstrating that even within a fixed algorithmic framework, differences in annotation strategy can lead to systematically distinct segmentation outcomes. This suggests that annotation design should be considered an integral component of segmentation workflows, rather than a purely technical preprocessing step.
Using the selected robust classifiers, we detected increased GFAP expression in scar-resident astrocytes (Figure 6). This observation is consistent with multiple qualitative and semi-quantitative reports describing GFAP upregulation as a hallmark of reactive astrogliosis in foreign body response and other CNS injuries [42,43,44]. Importantly, our approach moves beyond binary or region-based assessments of GFAP intensity and instead enables single-cell-resolved quantitative analysis. Such cell-level resolution is essential for dissecting the heterogeneity of astrocyte responses within and around the glial scar.
Morphometric analysis revealed concordant enlargement of astrocytes in scar regions, including increased cell area and perimeter together with elongation of GFAP-positive processes. These findings are consistent with classical descriptions of reactive astrocyte hypertrophy involving cell body enlargement and remodeling of the process arbor [34,37]. Notably, the morphometric parameters of cell area and cell perimeter used in this study should be interpreted as measures of the GFAP-positive cytoskeletal domain rather than the full astrocyte morphology. Notably, the circularity shape descriptor exhibited greater variability across classifiers than size-related metrics. This observation indicates that parameters reflecting boundary geometry are more sensitive to segmentation differences and should therefore be interpreted cautiously. At the same time, such variability may help distinguish robust hypertrophic changes from features that depend more strongly on segmentation assumptions.
A particularly novel aspect of this study is the analysis of GFAP expression within astrocytic processes. Astrocyte processes form the primary interface with synapses, vasculature, and other glial elements and contribute critically to synaptic regulation, blood–brain barrier function, and scar organization [37,38]. Notably, the relative distribution of GFAP signal within astrocytic processes appeared shifted toward proximal compartments in scar regions, as indicated by a reduced distal-to-proximal intensity ratio (Figure 7). To our knowledge, this quantitative pattern has not been explicitly assessed before; however, it is consistent with previously reported qualitative descriptions of cytoskeletal remodeling and proximal enrichment of intermediate filaments in reactive astrocytes [34,45]. The observed decrease in the distal-to-proximal ratio may reflect increased local mechanical rigidity, redistribution of intermediate filaments toward sites of mechanical load, or formation of a structural “support core” around the implant accompanied by loss of thin distal processes [46,47]. These findings may be particularly relevant for understanding how astrocytes mechanically and biochemically contribute to electrode encapsulation.
The approach described here complements existing high-resolution 3D astrocyte reconstruction techniques, which provide exquisite morphological detail but are labor intensive, low throughput, and often rely on transgenic or viral labeling strategies. A recent study by Faust and coauthors implemented Labkit for that kind of high-resolution astrocyte imaging data analysis [48]. By contrast, our method is applicable to conventional GFAP immunostaining and low-resolution imaging, allowing for rapid analysis of large numbers of samples. This trade-off favors scalability and translational relevance, especially in studies aiming to compare implant materials, surface modifications, or pharmacological interventions across experimental cohorts.
Several limitations should be considered. GFAP labels only a subset of astrocytic cytoskeletal structures and does not capture the full extent of fine perisynaptic processes. Therefore, the metrics reported here may be relevant for quantification of the implant-induced scarring but not for accurately addressing whole-cell morphology. The presented pipeline is designed to perform several important steps in an automated manner. Nevertheless, the method remains susceptible to observer-dependent bias, as it relies on manual selection of the cell center and ROI size. Ideally, the operator should be unaware of whether the tissue originates from scar or non-scar regions. In practice, however, complete blinding is difficult to achieve because these regions are readily distinguishable based on astrocyte density. The observer-dependent bias could be partially reduced by selecting the cell square size in a blinded manner (Figure 1). To test this option, we performed additional blinded control analyses that further validated our experimental procedure (Figure S2). High cell density in scar regions may introduce an additional source of bias due to overlapping astrocytic processes. In such cases, processes from neighboring astrocytes may be included within the selected ROI as small peripheral objects, which are subsequently removed using size-based filtering. However, complete exclusion of overlap between process arbors of adjacent cells cannot be guaranteed. Additionally, the number of analyzed cells was constrained by the density of GFAP-positive astrocytes outside the scar and by the availability of well-defined scar regions. Nevertheless, the methodological framework described here is readily scalable and could be applied to hundreds or thousands of cells in future studies. Finally, while we focused on GFAP as a canonical marker of astrogliosis, the same workflow could be extended to other astrocytic markers or combined with multiplexed imaging approaches.
In summary, shallow machine learning-assisted image analysis provides a reproducible and accessible framework for quantitative assessment of astrocyte responses to neuroimplantation and a broad range of neuroinflammatory conditions. By enabling consistent single-cell and subcellular measurements across experiments, this approach supports high-throughput evaluation of foreign body response and has the potential to facilitate the development of strategies to improve neuroimplant biocompatibility. Our results demonstrate that annotation strategy represents an important determinant of segmentation outcomes in shallow learning-based workflows. The combination of shallow learning segmentation and explicit annotation rules may therefore help standardize astrocyte morphometry across studies of neuroinflammation. This may be particularly valuable for comparative analyses of implant materials, surface modifications, and anti-inflammatory interventions, as well as for broader applications in CNS injury and disease, where robust and transferable quantification of astrocyte responses is required.

4. Materials and Methods

4.1. Animals

All experimental procedures involving animals complied with Directive 2010/63/EU of the European Parliament and Council, as well as Order No. 267 of the Ministry of Health of the Russian Federation (19 June 2003). The study protocol was approved by the Commission on Biological Safety and Bioethics of ITEB RAS (Pushchino; approval No. 40/2023, 15 February 2023).

4.2. Electrode Implantation

Stereotaxic surgeries were carried out under general anesthesia using isoflurane (1–4%). Nichrome electrodes (50 μm diameter) were implanted into the primary visual cortex (V1) at the following stereotaxic coordinates: AP = 2.8 mm, ML = 2.5 mm, and DV = 0.5 mm.

4.3. Immunohistochemistry

Eight weeks after surgery, animals were deeply anesthetized and perfused transcardially with 4% paraformaldehyde prepared in 0.1 M phosphate buffer (pH 7.4). Brains were extracted and post-fixed in the same solution. Coronal sections (35 μm thickness) were obtained using a Leica VT1200 S vibratome (Leica Microsystems, Wetzlar, Germany).
Free-floating sections were subjected to double labeling for GFAP (anti-chicken, ab4674, Abcam, Cambridge, UK) and perineuronal nets using Wisteria floribunda agglutinin (Vector Laboratories, Newark, CA, USA). All staining procedures were performed in 24-well plates.
Sections were rinsed three times in PBS containing 0.5% Triton X-100 (PBS-T, pH 7.4), followed by incubation in blocking solution (1% bovine serum albumin in PBS-T) for 1 h. Endogenous biotin was blocked using a commercial Streptavidin/Biotin Blocking Kit (Vector Laboratories, USA), according to the manufacturer’s instructions.
Primary reagents (biotinylated WFA, 1:500; anti-chicken GFAP, 1:500) were diluted in 10 mM HEPES-buffered PBS (pH 7.4), and sections were incubated overnight at 4 °C. After three washes (5 min each) in PBS-T, sections were incubated with Alexa Fluor 633–conjugated streptavidin (Invitrogen; 1:100) (Thermo Fisher Scientific, Waltham, MA, USA) for 30 min, followed by washing. Subsequently, sections were incubated for 2 h with goat anti-chicken secondary antibody conjugated to Alexa Fluor 488 (A11039; 1:500), Invitrogen, Thermo Fisher Scientific, Waltham, MA, USA. After final washes, sections were mounted on glass slides, air-dried, and coverslipped.

4.4. Microscopy

Images were acquired using a Leica TCS SP5 confocal microscope (Leica, Germany). Imaging was performed with an oil immersion objective (HC X PL APO CS 20×/0.70 IMM UV; Leica Microsystems, Wetzlar, Germany) at a pixel size of 300 nm.

4.5. Image Analysis

Image processing and analysis were conducted using FIJI (software version ImageJ 1.54p) [29]. Astrocyte segmentation was performed using the random forest-based LabKit plugin, enabling implementation of a reproducible workflow integrated with subsequent morphometric analysis [25]. This setup also allowed for systematic comparison of classifiers trained using different annotation strategies across datasets.
Segmentation performance was evaluated using overlap-based metrics, including the Dice coefficient and Intersection over Union (IoU). Dice was defined as 2|A ∩ B|/(|A| + |B|) and IoU as |A ∩ B|/|A ∪ B|, where A represents the expert annotation and B the classifier output.
Astrocytic processes were manually traced using the Line tool. Fluorescence intensity profiles were extracted along each traced process. Mean intensity values were calculated for (i) the entire process, (ii) the distal segment (last 10 pixels, i.e., 3 μm), and (iii) the proximal segment (first 10 pixels, i.e., 3 μm).

4.6. Statistical Analysis

Data were analyzed using estimation statistics, reporting mean paired differences with bootstrap-derived confidence intervals, rather than relying exclusively on null-hypothesis significance testing [49,50].
Standardized paired effect sizes (Cohen’s dz) were calculated to quantify within-animal differences [35,36].
For the analyses presented in Figure 6 and Figure 7, statistical comparisons were based on per-animal averages (4 mice; N = 4 independent experiments). Cell-level measurements were averaged for at least 10 astrocytes per condition (scar-resident and non-scar-resident) per animal, yielding a total of 100 cells across 4 mice.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/ijms27083524/s1.

Author Contributions

Conceptualization, M.P. and A.A.M.; Methodology, M.P., A.A.M. and A.A.E.; Software, A.A.E., A.A.R., N.S.L., D.S.V., D.V.D., D.E.C., A.A.M. and M.P.; Validation, A.A.M., D.S.V., E.A.S. and I.Y.P.; Formal Analysis, M.P., A.A.M., A.A.E., A.A.R., D.S.V. and G.V.S.; Investigation, A.A.M., A.A.R., L.F.N., N.S.L., D.S.V., D.V.D., S.S.P., E.A.S., G.V.S., A.A.T., D.V.S., I.Y.P. and M.P.; Resources, A.A.M., A.A.E., L.F.N., S.S.P., A.A.T., R.G.K., A.P.K., D.E.C., A.V.A., D.V.S. and I.Y.P.; Data Curation, A.A.M., A.A.R., N.S.L., D.S.V., E.A.S., G.V.S., I.Y.P. and M.P.; Writing—Original Draft Preparation, M.P. and A.A.M.; Writing—Review and Editing, A.A.M., R.G.K., A.P.K., D.E.C., A.V.A., D.V.S., I.Y.P. and M.P.; Visualization, A.A.M., A.A.R., N.S.L., L.F.N., D.S.V., A.A.T., D.V.S. and M.P.; Supervision, M.P., A.A.M., A.A.E. and A.V.A.; Project Administration, M.P., A.A.M., A.A.E. and A.V.A.; Funding Acquisition, A.A.M., A.A.E., A.V.A. and M.P. All authors have read and agreed to the published version of the manuscript.

Funding

The study was supported by the Russian Science Foundation, project number 24–75-00123 (https://rscf.ru/en/project/24-75-00123/, accessed on 15 February 2023).

Institutional Review Board Statement

The study was conducted in accordance with the requirements of Directive 2010/63/EC of the European Union and Order of the Ministry of Health of Russia of 19 June 2003, No. 267, and were approved by the Commission on Biological Safety and Bioethics of ITEB RAS (Pushchino, No. 40/2023, dated 15 February 2023).

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are available upon request.

Acknowledgments

Part of the confocal microscopy investigations were carried out using the equipment of the Distributed Spectral-Analytical Center of Shared Facilities for Study of Structure, Composition and Properties of Substances and Materials of the FRC Kazan Scientific Center of RAS. LFN’s and DVS’s work is supported by the government assignment for the FRC Kazan Scientific Center of RAS.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Eisenstein, M. Seven Technologies to Watch in 2024. Nature 2024, 625, 844–848. [Google Scholar] [CrossRef]
  2. Willett, F.R.; Kunz, E.M.; Fan, C.; Avansino, D.T.; Wilson, G.H.; Choi, E.Y.; Kamdar, F.; Glasser, M.F.; Hochberg, L.R.; Druckmann, S.; et al. A High-Performance Speech Neuroprosthesis. Nature 2023, 620, 1031–1036. [Google Scholar] [CrossRef]
  3. Xu, S.; Liu, Y.; Lee, H.; Li, W. Neural Interfaces: Bridging the Brain to the World beyond Healthcare. Exploration 2024, 4, 20230146. [Google Scholar] [CrossRef]
  4. Gao, W.; Yan, Z.; Zhou, H.; Xie, Y.; Wang, H.; Yang, J.; Yu, J.; Ni, C.; Liu, P.; Xie, M.; et al. Revolutionizing Brain-computer Interfaces: Overcoming Biocompatibility Challenges in Implantable Neural Interfaces. J. Nanobiotechnol. 2025, 23, 498. [Google Scholar] [CrossRef]
  5. Wu, X.; Ye, Y.; Sun, M.; Mei, Y.; Ji, B.; Wang, M.; Song, E. Recent Progress of Soft and Bioactive Materials in Flexible Bioelectronics. Cyborg Bionic Syst. 2025, 6, 0192. [Google Scholar] [CrossRef] [PubMed]
  6. Kozai, T.D.Y.; Jaquins-Gerstl, A.S.; Vazquez, A.L.; Michael, A.C.; Cui, X.T. Brain Tissue Responses to Neural Implants Impact Signal Sensitivity and Intervention Strategies. ACS Chem. Neurosci. 2015, 6, 48–67. [Google Scholar] [CrossRef] [PubMed]
  7. Paveliev, M.; Melnikova, A.; Egorchev, A.A.; Parpura, V.; Aganov, A.V. Neuroimplants and the Glial Scar: What Makes the Brain–Computer Link Work? J. Neurochem. 2025, 169, e70203. [Google Scholar] [CrossRef] [PubMed]
  8. Polikov, V.S.; Tresco, P.A.; Reichert, W.M. Response of Brain Tissue to Chronically Implanted Neural Electrodes. J. Neurosci. Methods 2005, 148, 1–18. [Google Scholar] [CrossRef]
  9. Wellman, S.M.; Li, L.; Yaxiaer, Y.; McNamara, I.; Kozai, T.D.Y. Revealing Spatial and Temporal Patterns of Cell Death, Glial Proliferation, and Blood-Brain Barrier Dysfunction Around Implanted Intracortical Neural Interfaces. Front. Neurosci. 2019, 13, 493. [Google Scholar] [CrossRef]
  10. Wellman, S.M.; Forrest, A.M.; Douglas, M.M.; Subbaraman, A.; Zhang, G.; Kozai, T.D.Y. Dynamic Changes in the Structure and Function of Brain Mural Cells around Chronically Implanted Microelectrodes. Biomaterials 2025, 315, 122963. [Google Scholar] [CrossRef]
  11. Savya, S.P.; Li, F.; Lam, S.; Wellman, S.M.; Stieger, K.C.; Chen, K.; Eles, J.R.; Kozai, T.D.Y. In Vivo Spatiotemporal Dynamics of Astrocyte Reactivity Following Neural Electrode Implantation. Biomaterials 2022, 289, 121784. [Google Scholar] [CrossRef]
  12. Sofroniew, M.V. Molecular Dissection of Reactive Astrogliosis and Glial Scar Formation. Trends Neurosci. 2009, 32, 638–647. [Google Scholar] [CrossRef]
  13. Cieri, M.B.; Ramos, A.J. Astrocytes, Reactive Astrogliosis, and Glial Scar Formation in Traumatic Brain Injury. Neural Regen. Res. 2025, 20, 973–989. [Google Scholar] [CrossRef]
  14. Escartin, C.; Galea, E.; Lakatos, A.; O’Callaghan, J.P.; Petzold, G.C.; Serrano-Pozo, A.; Steinhäuser, C.; Volterra, A.; Carmignoto, G.; Agarwal, A.; et al. Reactive Astrocyte Nomenclature, Definitions, and Future Directions. Nat. Neurosci. 2021, 24, 312–325. [Google Scholar] [CrossRef]
  15. Verkhratsky, A.; Li, B.; Scuderi, C.; Parpura, V. Principles of Astrogliopathology. In Astrocytes in Psychiatric Disorders; Li, B., Parpura, V., Verkhratsky, A., Scuderi, C., Eds.; Advances in Neurobiology; Springer International Publishing: Cham, Switzerland, 2021; Volume 26, pp. 55–73. ISBN 978-3-030-77374-8. [Google Scholar]
  16. Kulkarni, P.M.; Barton, E.; Savelonas, M.; Padmanabhan, R.; Lu, Y.; Trett, K.; Shain, W.; Leasure, J.L.; Roysam, B. Quantitative 3-D Analysis of GFAP Labeled Astrocytes from Fluorescence Confocal Images. J. Neurosci. Methods 2015, 246, 38–51. [Google Scholar] [CrossRef] [PubMed]
  17. Zhang, A.Y.; Elias, E.; Manners, M.T. Sex-Dependent Astrocyte Reactivity: Unveiling Chronic Stress-Induced Morphological Changes across Multiple Brain Regions. Neurobiol. Dis. 2024, 200, 106610. [Google Scholar] [CrossRef]
  18. Krikid, F.; Rositi, H.; Vacavant, A. State-of-the-Art Deep Learning Methods for Microscopic Image Segmentation: Applications to Cells, Nuclei, and Tissues. J. Imaging 2024, 10, 311. [Google Scholar] [CrossRef]
  19. Yang, R.; Xue, G.; Wang, Z.; Cai, Y.; Yang, W.; Que, J.; Tan, R.; Sun, H.; Wang, P.; Xu, Z.; et al. Systematic Evaluation of Computational Methods for Cell Segmentation. Brief. Bioinform. 2026, 27, bbag066. [Google Scholar] [CrossRef]
  20. Moen, E.; Bannon, D.; Kudo, T.; Graf, W.; Covert, M.; Van Valen, D. Deep Learning for Cellular Image Analysis. Nat. Methods 2019, 16, 1233–1246. [Google Scholar] [CrossRef]
  21. Paveliev, M.; Egorchev, A.A.; Musin, F.; Lipachev, N.; Melnikova, A.; Gimadutdinov, R.M.; Kashipov, A.R.; Molotkov, D.; Chickrin, D.E.; Aganov, A.V. Perineuronal Net Microscopy: From Brain Pathology to Artificial Intelligence. Int. J. Mol. Sci. 2024, 25, 4227. [Google Scholar] [CrossRef] [PubMed]
  22. Bonato, J.; Curreli, S.; Romanzi, S.; Panzeri, S.; Fellin, T. ASTRA: A Deep Learning Algorithm for Fast Semantic Segmentation of Large-Scale Astrocytic Networks. bioRxiv. 2023. preprint.
  23. Huang, Y.; Kruyer, A.; Syed, S.; Kayasandik, C.B.; Papadakis, M.; Labate, D. Automated Detection of GFAP-Labeled Astrocytes in Micrographs Using YOLOv5. Sci. Rep. 2022, 12, 22263. [Google Scholar] [CrossRef]
  24. Berg, S.; Kutra, D.; Kroeger, T.; Straehle, C.N.; Kausler, B.X.; Haubold, C.; Schiegg, M.; Ales, J.; Beier, T.; Rudy, M.; et al. Ilastik: Interactive Machine Learning for (Bio)Image Analysis. Nat. Methods 2019, 16, 1226–1232. [Google Scholar] [CrossRef]
  25. Arzt, M.; Deschamps, J.; Schmied, C.; Pietzsch, T.; Schmidt, D.; Tomancak, P.; Haase, R.; Jug, F. LABKIT: Labeling and Segmentation Toolkit for Big Image Data. Front. Comput. Sci. 2022, 4, 777728. [Google Scholar] [CrossRef]
  26. Kuş, Z.; Aydin, M. MedSegBench: A Comprehensive Benchmark for Medical Image Segmentation in Diverse Data Modalities. Sci. Data 2024, 11, 1283. [Google Scholar] [CrossRef] [PubMed]
  27. Ostmeier, S.; Axelrod, B.; Isensee, F.; Bertels, J.; Mlynash, M.; Christensen, S.; Lansberg, M.G.; Albers, G.W.; Sheth, R.; Verhaaren, B.F.J.; et al. USE-Evaluator: Performance Metrics for Medical Image Segmentation Models Supervised by Uncertain, Small or Empty Reference Annotations in Neuroimaging. Med. Image Anal. 2023, 90, 102927. [Google Scholar] [CrossRef]
  28. Schmidt, A.; Morales-Álvarez, P.; Molina, R. Probabilistic Modeling of Inter- and Intra-Observer Variability in Medical Image Segmentation. arXiv 2023, arXiv:2307.11397. [Google Scholar] [CrossRef]
  29. Schindelin, J.; Arganda-Carreras, I.; Frise, E.; Kaynig, V.; Longair, M.; Pietzsch, T.; Preibisch, S.; Rueden, C.; Saalfeld, S.; Schmid, B.; et al. Fiji: An Open-Source Platform for Biological-Image Analysis. Nat. Methods 2012, 9, 676–682. [Google Scholar] [CrossRef]
  30. Schroeder, A.B.; Dobson, E.T.A.; Rueden, C.T.; Tomancak, P.; Jug, F.; Eliceiri, K.W. The IMAGEJ Ecosystem: Open-source Software for Image Visualization, Processing, and Analysis. Protein Sci. 2021, 30, 234–249. [Google Scholar] [CrossRef]
  31. Patai, R.; Patel, K.; Csik, B.; Gulej, R.; Nagaraja, R.Y.; Nagy, D.; Chandragiri, S.S.; Shanmugarama, S.; Kordestan, K.V.; Nagykaldi, M.; et al. Aging, Mitochondrial Dysfunction, and Cerebral Microhemorrhages: A Preclinical Evaluation of SS-31 (Elamipretide) and Development of a High-Throughput Machine Learning-Driven Imaging Pipeline for Cerebromicrovascular Protection Therapeutic Screening. GeroScience 2025, 47, 4871–4887. [Google Scholar] [CrossRef] [PubMed]
  32. Paveliev, M.; Melnikova, A.; Samigullin, D.V.; Egorchev, A.A.; Titova, A.A.; Kiyasov, A.P.; Popova, I.Y.; Parpura, V.; Aganov, A.V. Second Harmonic Generation for Brain Imaging: Pathology-Related Studies. Biophys. Rev. 2025, 17, 1563–1582. [Google Scholar] [CrossRef] [PubMed]
  33. Lipachev, N.; Arnst, N.; Melnikova, A.; Jäälinoja, H.; Kochneva, A.; Zhigalov, A.; Kulesskaya, N.; Aganov, A.V.; Mavlikeev, M.; Rauvala, H.; et al. Quantitative Changes in Perineuronal Nets in Development and Posttraumatic Condition. J. Mol. Hist. 2019, 50, 203–216. [Google Scholar] [CrossRef]
  34. Cohen, J. Statistical Power Analysis for the Behavioral Sciences, 2nd ed.; Routledge: Oxfordshire, UK, 1988; ISBN 978-1-134-74270-7. [Google Scholar]
  35. Lakens, D. Calculating and Reporting Effect Sizes to Facilitate Cumulative Science: A Practical Primer for t-Tests and ANOVAs. Front. Psychol. 2013, 4, 863. [Google Scholar] [CrossRef] [PubMed]
  36. Díaz-Castro, B.; Robel, S.; Mishra, A. Astrocyte Endfeet in Brain Function and Pathology: Open Questions. Annu. Rev. Neurosci. 2023, 46, 101–121. [Google Scholar] [CrossRef]
  37. Liu, X.; Ying, J.; Wang, X.; Zheng, Q.; Zhao, T.; Yoon, S.; Yu, W.; Yang, D.; Fang, Y.; Hua, F. Astrocytes in Neural Circuits: Key Factors in Synaptic Regulation and Potential Targets for Neurodevelopmental Disorders. Front. Mol. Neurosci. 2021, 14, 729273. [Google Scholar] [CrossRef]
  38. Sun, D.; Jakobs, T.C. Structural Remodeling of Astrocytes in the Injured CNS. Neuroscientist 2012, 18, 567–588. [Google Scholar] [CrossRef]
  39. Yan, Z.; Gao, W.; Duan, Y.; Zhou, H.; Ni, C.; Huang, L.; Ye, Z. Bidirectional Mechanisms and Emerging Strategies for Implantable Bioelectronic Interfaces. Bioact. Mater. 2025, 52, 634–667. [Google Scholar] [CrossRef] [PubMed]
  40. Parpura, V.; Heneka, M.T.; Montana, V.; Oliet, S.H.R.; Schousboe, A.; Haydon, P.G.; Stout, R.F.; Spray, D.C.; Reichenbach, A.; Pannicke, T.; et al. Glial Cells in (Patho)Physiology. J. Neurochem. 2012, 121, 4–27. [Google Scholar] [CrossRef] [PubMed]
  41. Gao, Y.; Jiang, Y.; Peng, Y.; Yuan, F.; Zhang, X.; Wang, J. Medical Image Segmentation: A Comprehensive Review of Deep Learning-Based Methods. Tomography 2025, 11, 52. [Google Scholar] [CrossRef]
  42. Luijerink, L.; Rodriguez, M.; Machaalani, R. Quantifying GFAP Immunohistochemistry in the Brain–Introduction of the Reactivity Score (R-Score) and How It Compares to Other Methodologies. J. Neurosci. Methods 2024, 402, 110025. [Google Scholar] [CrossRef] [PubMed]
  43. Yu, G.; Zhang, Y.; Ning, B. Reactive Astrocytes in Central Nervous System Injury: Subgroup and Potential Therapy. Front. Cell. Neurosci. 2021, 15, 792764. [Google Scholar] [CrossRef]
  44. Moulson, A.J.; Squair, J.W.; Franklin, R.J.M.; Tetzlaff, W.; Assinck, P. Diversity of Reactive Astrogliosis in CNS Pathology: Heterogeneity or Plasticity? Front. Cell. Neurosci. 2021, 15, 703810. [Google Scholar] [CrossRef]
  45. Sofroniew, M.V.; Vinters, H.V. Astrocytes: Biology and Pathology. Acta Neuropathol. 2010, 119, 7–35. [Google Scholar] [CrossRef] [PubMed]
  46. Wilhelmsson, U.; Li, L.; Pekna, M.; Berthold, C.-H.; Blom, S.; Eliasson, C.; Renner, O.; Bushong, E.; Ellisman, M.; Morgan, T.E.; et al. Absence of Glial Fibrillary Acidic Protein and Vimentin Prevents Hypertrophy of Astrocytic Processes and Improves Post-Traumatic Regeneration. J. Neurosci. 2004, 24, 5016–5021. [Google Scholar] [CrossRef] [PubMed]
  47. Burda, J.E.; Sofroniew, M.V. Reactive Gliosis and the Multicellular Response to CNS Damage and Disease. Neuron 2014, 81, 229–248. [Google Scholar] [CrossRef] [PubMed]
  48. Faust, T.E.; Lee, Y.-H.; O’Connor, C.D.; Boyle, M.A.; Gunner, G.; Durán-Laforet, V.; Ferrari, L.L.; Murphy, R.E.; Badimon, A.; Sakers, K.; et al. Microglia-Astrocyte Crosstalk Regulates Synapse Remodeling via Wnt Signaling. Cell 2025, 188, 5212–5230.e21. [Google Scholar] [CrossRef]
  49. Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Springer: Boston, MA, USA, 1993; ISBN 978-0-412-04231-7. [Google Scholar]
  50. Ho, J.; Tumkaya, T.; Aryal, S.; Choi, H.; Claridge-Chang, A. Moving beyond P Values: Data Analysis with Estimation Graphics. Nat. Methods 2019, 16, 565–566. [Google Scholar] [CrossRef]
Figure 1. Astrogliosis within foreign body response to neuroimplantation. (A) Schematic representation of cortical electrode implantation. (B) Scar-resident (violet) and non-resident (green) astrocytes in a mouse brain section. (C) GFAP-positive astrocytes within the glial scar at the implantation site. (D) An enlarged region of interest corresponding to the yellow rectangle in C. (E) A single astrocyte, shown in a white rectangle in D. (EI) Selection of an optimal square size for single cell image analysis.
Figure 1. Astrogliosis within foreign body response to neuroimplantation. (A) Schematic representation of cortical electrode implantation. (B) Scar-resident (violet) and non-resident (green) astrocytes in a mouse brain section. (C) GFAP-positive astrocytes within the glial scar at the implantation site. (D) An enlarged region of interest corresponding to the yellow rectangle in C. (E) A single astrocyte, shown in a white rectangle in D. (EI) Selection of an optimal square size for single cell image analysis.
Ijms 27 03524 g001
Figure 2. Training and comparison of Labkit classifiers in Fiji software. (A) Original cell images used for shallow learning. (B) Foreground (red) and background (blue) selection for shallow learning. (C) Original images for testing the classifiers. (DF) Masks by classifiers 1–3, respectively. (G) Object size threshold-filtered masks for classifier 3. (H) Single cell intensity-area scatter plot for 10 cells, classifiers 1–3. (I) Classifier 1 produces systematically higher mean GFAP fluorescence intensity results as compared to classifier 2. Data shown for the same 10 cells as in H. (J) Classifier 1 produces systematically lower GFAP-positive cell area results as compared to classifier 2.
Figure 2. Training and comparison of Labkit classifiers in Fiji software. (A) Original cell images used for shallow learning. (B) Foreground (red) and background (blue) selection for shallow learning. (C) Original images for testing the classifiers. (DF) Masks by classifiers 1–3, respectively. (G) Object size threshold-filtered masks for classifier 3. (H) Single cell intensity-area scatter plot for 10 cells, classifiers 1–3. (I) Classifier 1 produces systematically higher mean GFAP fluorescence intensity results as compared to classifier 2. Data shown for the same 10 cells as in H. (J) Classifier 1 produces systematically lower GFAP-positive cell area results as compared to classifier 2.
Ijms 27 03524 g002
Figure 3. Testing Labkit classifiers on repeated and independent experiments. (A) Original images for 3 astrocytes. (BD) Applying classifiers 1–3 (shown in Figure 2) to astrocytes from another mouse reveals systematic failure of cell border segmentation. (E) Object size threshold-filtered masks for classifier 3.
Figure 3. Testing Labkit classifiers on repeated and independent experiments. (A) Original images for 3 astrocytes. (BD) Applying classifiers 1–3 (shown in Figure 2) to astrocytes from another mouse reveals systematic failure of cell border segmentation. (E) Object size threshold-filtered masks for classifier 3.
Ijms 27 03524 g003
Figure 4. Comparison and selection of Labkit classifiers. (A) Five additional classifiers (numbers 4–8) were trained and tested with different patterns of the foreground (red) and background (blue) selection. (B) Comparison of segmentation results showed that classifiers 4, 6, and 8 systematically performed more successfully as compared to classifiers 5 and 7 on images from repeated and independent experiments.
Figure 4. Comparison and selection of Labkit classifiers. (A) Five additional classifiers (numbers 4–8) were trained and tested with different patterns of the foreground (red) and background (blue) selection. (B) Comparison of segmentation results showed that classifiers 4, 6, and 8 systematically performed more successfully as compared to classifiers 5 and 7 on images from repeated and independent experiments.
Ijms 27 03524 g004
Figure 5. Shallow learning training rules affect segmentation performance. A testing dataset of 25 astrocytes from 4 mice (an example in (A)) was segmented by two skilled experts (intensity threshold masks, examples in (B,C)), three rule-violating (RV) classifiers (DF), and three rule-compliant (RC) classifiers (GI). Two different match indices—the Dice coefficient and Intersection over Union (IoU)—were calculated, and the values were averaged across the three rule-compliant and three rule-violating classifiers (JM). Data are presented as per-animal averages for 4 mice (N = 4). The dataset included at least 5 cells from each mouse, for a total of 17 scar-resident and 8 non-scar-resident cells.
Figure 5. Shallow learning training rules affect segmentation performance. A testing dataset of 25 astrocytes from 4 mice (an example in (A)) was segmented by two skilled experts (intensity threshold masks, examples in (B,C)), three rule-violating (RV) classifiers (DF), and three rule-compliant (RC) classifiers (GI). Two different match indices—the Dice coefficient and Intersection over Union (IoU)—were calculated, and the values were averaged across the three rule-compliant and three rule-violating classifiers (JM). Data are presented as per-animal averages for 4 mice (N = 4). The dataset included at least 5 cells from each mouse, for a total of 17 scar-resident and 8 non-scar-resident cells.
Ijms 27 03524 g005
Figure 6. Comparison of GFAP intensity and morphometry parameters for scar-resident versus non-resident astrocytes. (A) GFAP intensity. (B) Cell area. (C) Cell perimeter. (D) Area-to-perimeter ratio. (E) Cell circularity (isoperimetric). Data are shown as per-animal averages for 4 mice (N = 4, with a total of 100 cells) for three classifiers (Nos. 4, 6, and 8). The same set of 100 cells was analyzed using all three classifiers.
Figure 6. Comparison of GFAP intensity and morphometry parameters for scar-resident versus non-resident astrocytes. (A) GFAP intensity. (B) Cell area. (C) Cell perimeter. (D) Area-to-perimeter ratio. (E) Cell circularity (isoperimetric). Data are shown as per-animal averages for 4 mice (N = 4, with a total of 100 cells) for three classifiers (Nos. 4, 6, and 8). The same set of 100 cells was analyzed using all three classifiers.
Ijms 27 03524 g006
Figure 7. GFAP upregulation and redistribution in the processes of the scar-resident astrocytes based on Labkit-assisted segmentation. (A). Original images for 2 astrocytes. (B) Masks by the classifier 4. (C) Result of the Fiji Image Calculator “minimum intensity” operation applied to images (A,B). (D) Astrocytes with traced processes. (EH) GFAP intensity redistribution upon scarring. (I) Process length measurements. (J) Number of processes measurements. Data are shown for classifier 4 as per-animal averages for 4 mice (N = 4, with a total of 100 cells).
Figure 7. GFAP upregulation and redistribution in the processes of the scar-resident astrocytes based on Labkit-assisted segmentation. (A). Original images for 2 astrocytes. (B) Masks by the classifier 4. (C) Result of the Fiji Image Calculator “minimum intensity” operation applied to images (A,B). (D) Astrocytes with traced processes. (EH) GFAP intensity redistribution upon scarring. (I) Process length measurements. (J) Number of processes measurements. Data are shown for classifier 4 as per-animal averages for 4 mice (N = 4, with a total of 100 cells).
Ijms 27 03524 g007
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Melnikova, A.A.; Egorchev, A.A.; Rosin, A.A.; Nurullin, L.F.; Lipachev, N.S.; Vedischeva, D.S.; Derzhavin, D.V.; Perepechenov, S.S.; Sukhodolova, E.A.; Shabernev, G.V.; et al. Foreign Body Response to Neuroimplantation: Machine Learning-Assisted Quantitative Analysis of Astrogliosis. Int. J. Mol. Sci. 2026, 27, 3524. https://doi.org/10.3390/ijms27083524

AMA Style

Melnikova AA, Egorchev AA, Rosin AA, Nurullin LF, Lipachev NS, Vedischeva DS, Derzhavin DV, Perepechenov SS, Sukhodolova EA, Shabernev GV, et al. Foreign Body Response to Neuroimplantation: Machine Learning-Assisted Quantitative Analysis of Astrogliosis. International Journal of Molecular Sciences. 2026; 27(8):3524. https://doi.org/10.3390/ijms27083524

Chicago/Turabian Style

Melnikova, Anastasiia A., Anton A. Egorchev, Alexander A. Rosin, Leniz F. Nurullin, Nikita S. Lipachev, Daria S. Vedischeva, Dmitry V. Derzhavin, Stepan S. Perepechenov, Ekaterina A. Sukhodolova, Gleb V. Shabernev, and et al. 2026. "Foreign Body Response to Neuroimplantation: Machine Learning-Assisted Quantitative Analysis of Astrogliosis" International Journal of Molecular Sciences 27, no. 8: 3524. https://doi.org/10.3390/ijms27083524

APA Style

Melnikova, A. A., Egorchev, A. A., Rosin, A. A., Nurullin, L. F., Lipachev, N. S., Vedischeva, D. S., Derzhavin, D. V., Perepechenov, S. S., Sukhodolova, E. A., Shabernev, G. V., Titova, A. A., Kiyamova, R. G., Kiyasov, A. P., Chickrin, D. E., Aganov, A. V., Samigullin, D. V., Popova, I. Y., & Paveliev, M. (2026). Foreign Body Response to Neuroimplantation: Machine Learning-Assisted Quantitative Analysis of Astrogliosis. International Journal of Molecular Sciences, 27(8), 3524. https://doi.org/10.3390/ijms27083524

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop