Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viacheslavdanilov/histology_segmentation
This repository is dedicated to the segmentation of histological features in regenerated vascular tissues obtained from tissue-engineered vascular grafts (TEVGs) implanted in sheep.
https://github.com/viacheslavdanilov/histology_segmentation
cell-segmentation deep-learning digital-pathology histological-features semantic-segmentation vascular-tissue-engineering
Last synced: 8 days ago
JSON representation
This repository is dedicated to the segmentation of histological features in regenerated vascular tissues obtained from tissue-engineered vascular grafts (TEVGs) implanted in sheep.
- Host: GitHub
- URL: https://github.com/viacheslavdanilov/histology_segmentation
- Owner: ViacheslavDanilov
- License: mit
- Created: 2023-04-23T10:14:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-25T10:51:31.000Z (22 days ago)
- Last Synced: 2024-12-25T11:28:39.460Z (22 days ago)
- Topics: cell-segmentation, deep-learning, digital-pathology, histological-features, semantic-segmentation, vascular-tissue-engineering
- Language: Python
- Homepage:
- Size: 60.1 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10838384.svg)](https://zenodo.org/doi/10.5281/zenodo.10838383)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10901377.svg)](https://zenodo.org/doi/10.5281/zenodo.10838431)
[![DOI](http://img.shields.io/badge/DOI-10.3389/fbioe.2024.1411680-B31B1B)](https://doi.org/10.3389/fbioe.2024.1411680)# ML-driven segmentation of microvascular features of tissue-engineered vascular grafts
## 📖 Contents
- [Introduction](#introduction)
- [Data](#data)
- [Methods](#methods)
- [Results](#results)
- [Conclusion](#conclusion)
- [Requirements](#requirements)
- [Installation](#installation)
- [How to Run](#how-to-run)
- [Data Access](#data-access)
- [How to Cite](#how-to-cite)
## 🎯 Introduction
This repository presents an artificial intelligence (AI)-driven approach for the precise segmentation and quantification of histological features observed during the microscopic examination of tissue-engineered vascular grafts (TEVGs). The development of next-generation TEVGs is a leading trend in translational medicine, offering minimally invasive surgical interventions and reducing the long-term risk of device failure. However, the analysis of regenerated tissue architecture poses challenges, necessitating AI-assisted tools for accurate histological evaluation.
## 📁 Data
The study utilized a dataset comprising 104 Whole Slide Images (WSIs) obtained from biodegradable TEVGs implanted into the carotid arteries of 20 sheep. After six months, the sheep were euthanized to assess vascular tissue regeneration patterns. The WSIs were automatically sliced into 99,831 patches, which underwent filtering and manual annotation by pathologists. A total of 1,401 patches were annotated, identifying nine histological features: _arteriole lumen (AL)_, _arteriole media (AM)_, _arteriole adventitia (AA)_, _venule lumen (VL)_, _venule wall (VW)_, _capillary lumen (CL)_, _capillary wall (CW)_, _immune cells (IC)_, and _nerve trunks (NT)_ (Figure 1). These annotations were meticulously verified by a senior pathologist, ensuring accuracy and consistency.
Figure 1. Annotation methodology for histology patches (top row) depicting features associated with a blood vessel regeneration (replacement of a biodegradable polymer by de novo formed vascular tissue). Histological annotations delineated with segmentation masks (bottom row) include arteriole lumen (red), arteriole media (pink), arteriole adventitia (light pink), venule lumen (blue), venule wall (light blue), capillary lumen (brown), capillary wall (tan), immune cells (lime), and nerve trunks (yellow).
## 🔬 Methods
The methodology involved two main stages: hyperparameter tuning and model training. Six deep learning models ([U-Net](https://link.springer.com/chapter/10.1007/978-3-319-24574-4_28), [LinkNet](https://ieeexplore.ieee.org/document/8305148), [FPN](http://presentations.cocodataset.org/COCO17-Stuff-FAIR.pdf), [PSPNet](https://arxiv.org/abs/1612.01105), [DeepLabV3](https://arxiv.org/abs/1706.05587), and [MA-Net](https://ieeexplore.ieee.org/document/9201310)) were rigorously tuned across 200 configurations to achieve optimal performance. Hyperparameters such as encoder architecture, input image size, optimizer, and learning rate were extensively explored using Bayesian optimization and [HyperBand](https://arxiv.org/abs/1603.06560) early termination strategies.Following the tuning stage, the models were trained and evaluated on the entire dataset using a 5-fold cross-validation approach (Figure 2). This ensured the integrity of subject groups within each subset, preventing data leakage. During training, various augmentation techniques were applied to expand the dataset and mitigate overfitting. Besides that, batch size adjusted based on GPU memory utilization (~90-100% usage).
Figure 2. Comparative analysis of loss and DSC evolution during training and testing phases over 5-fold cross-validation with 95% confidence interval.
## 📈 Results
The MA-Net model achieved the highest mean Dice Similarity Coefficient (DSC) of 0.875, excelling in arteriole segmentation (Table 1). DeepLabV3 performed well in segmenting venous and capillary structures, while FPN exhibited proficiency in identifying immune cells and nerve trunks. An ensemble of these three models attained an average DSC of 0.889, surpassing their individual performances.
Table 1. Feature-specific and average Dice Similarity Coefficients of the studied models.| Model | AL | AM | AA | VL | VW | CL | CW | IC | NT | Mean |
|:---------:|:---------:|:---------:|:---------:|:---------:|:---------:|:---------:|:---------:|:---------:|:---------:|:---------:|
| U-Net | 0.931 | **0.907** | 0.820 | 0.797 | 0.766 | 0.801 | 0.783 | 0.920 | 0.966 | 0.855 |
| LinkNet | 0.898 | 0.881 | 0.825 | 0.799 | 0.773 | 0.778 | 0.774 | 0.935 | 0.925 | 0.843 |
| FPN | 0.919 | 0.904 | 0.805 | 0.852 | 0.800 | 0.756 | 0.755 | **0.955** | **0.981** | 0.859 |
| PSPNet | 0.872 | 0.838 | 0.830 | 0.784 | 0.734 | 0.728 | 0.722 | 0.937 | 0.959 | 0.823 |
| DeepLabV3 | 0.872 | 0.861 | 0.803 | **0.900** | **0.861** | **0.815** | **0.793** | 0.895 | 0.975 | 0.864 |
| MA-Net | **0.939** | 0.893 | **0.860** | 0.848 | 0.830 | 0.806 | 0.787 | 0.937 | 0.978 | **0.875** |
Figure 3. Comparison of models for microvascular segmentation in tissue-engineered vascular grafts.To illustrate the network predictions, we provide three patches showcasing the segmentation of the studied histologic features in (Figure 4). This figure presents predictions derived from an optimal solution: an ensemble of three models (MA-Net, DeepLabV3, and FPN).
Figure 4. Comparison between ground truth segmentation and ensemble predictions.
## 🏁 Conclusion
This study demonstrates the potential of deep learning models for precise segmentation of histological features in regenerated tissues, paving the way for improved AI-assisted workflows during the analysis of tissue-engineered medical devices. The obtained findings foster further research in this field, contributing to the advancement of translational medicine and the implementation of next-generation tissue-engineered constructs.
## 💻 Requirements
- Operating System
- [x] macOS
- [x] Linux
- [x] Windows (limited testing carried out)
- Python 3.11.x
- Required core libraries: [environment.yaml](environment.yaml)
## ⚙ Installation
**Step 1:** Install MinicondaInstallation guide: https://docs.conda.io/projects/miniconda/en/latest/index.html#quick-command-line-install
**Step 2:** Clone the repository and change the current working directory
``` bash
git clone https://github.com/ViacheslavDanilov/histology_segmentation.git
cd histology_segmentation
```**Step 3:** Set up an environment and install the necessary packages
``` bash
chmod +x make_env.sh
./make_env.sh
```Specify the `data_path` and `save_dir` parameters in the [predict.yaml](configs/predict.yaml) configuration file. By default, all images within the specified `data_path` will be processed and saved to the `save_dir` directory.
Available `data_path` options:
- **Option 1** - Directory with images (default): `data/demo/input`
- **Option 2** - Single image: `data/demo/input/011_0123.jpg`To run the pipeline, execute [predict.py](src/models/smp/predict.py) from your IDE or command prompt with:
``` bash
python src/models/smp/predict.py
```
## 🔐 Data Access
All essential components of the study, including the curated source code, dataset, and trained models, are publicly available:
- **Source code:** [https://github.com/ViacheslavDanilov/histology_segmentation](https://github.com/ViacheslavDanilov/histology_segmentation)
- **Dataset:** [https://zenodo.org/doi/10.5281/zenodo.10838383](https://zenodo.org/doi/10.5281/zenodo.10838383)
- **Models:** [https://zenodo.org/doi/10.5281/zenodo.10838431](https://zenodo.org/doi/10.5281/zenodo.10838431)
## 🖊️ How to Cite
Please cite [our paper](https://www.frontiersin.org/journals/bioengineering-and-biotechnology/articles/10.3389/fbioe.2024.1411680/full) if you found our data, methods, or results helpful for your research:> Danilov V.V., Laptev V.V., Klyshnikov K.Yu., Stepanov A.D., Bogdanov L.A., Antonova L.V., Krivkina E.O., Kutikhin A.G., Ovcharenko E.A. (**2024**). _ML-driven segmentation of microvascular features during histological examination of tissue-engineered vascular grafts_. **Frontiers in Cell and Developmental Biology**. DOI: [https://doi.org/10.3389/fbioe.2024.1411680](https://doi.org/10.3389/fbioe.2024.1411680)