HSF


NameHSF JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://hippomnesis.dev
SummaryA simple yet exhaustive segmentation tool of the Hippocampal Subfields in T1w and T2w MRIs.
upload_time2024-03-29 12:48:39
maintainerNone
docs_urlNone
authorClément POIRET
requires_python<3.12,>=3.9.0
licenseMIT
keywords mri brain hippocampus segmentation deep learning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ======================================
Hippocampal Segmentation Factory (HSF)
======================================

Exhaustive documentation available at: `hsf.rtfd.io <https://hsf.rtfd.io/>`_

**Current Models version:** 4.0.0

.. list-table::
    :header-rows: 1

    * - Python Package
      - Code Quality
      - Misc
    * - .. image:: https://github.com/clementpoiret/HSF/actions/workflows/python-app.yml/badge.svg?branch=master
        .. image:: https://badge.fury.io/py/hsf.svg
           :target: https://badge.fury.io/py/hsf
        .. image:: https://img.shields.io/pypi/dm/hsf
           :alt: PyPI - Downloads
      - .. image:: https://app.codacy.com/project/badge/Grade/cf02d1f84739401ba695e24f333c23b7
           :target: https://www.codacy.com/gh/clementpoiret/HSF/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=clementpoiret/HSF&amp;utm_campaign=Badge_Grade
        .. image:: https://app.codacy.com/project/badge/Coverage/cf02d1f84739401ba695e24f333c23b7
           :target: https://www.codacy.com/gh/clementpoiret/HSF/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=clementpoiret/HSF&amp;utm_campaign=Badge_Grade
        .. image:: https://api.codeclimate.com/v1/badges/e0bf481dcbf3eecebefd/maintainability
           :target: https://codeclimate.com/github/clementpoiret/HSF/maintainability
           :alt: Maintainability
      - .. image:: https://readthedocs.org/projects/hsf/badge/?version=latest
           :target: https://hsf.readthedocs.io/en/latest/?badge=latest
           :alt: Documentation Status
        .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5527122.svg
           :target: https://doi.org/10.5281/zenodo.5527122


The Hippocampal Segmentation Factory (HSF) is a Python package for
the segmentation of the hippocampal subfields in raw MRI volumes.

.. image:: https://raw.githubusercontent.com/clementpoiret/HSF/master/docs/resources/header.svg

The main idea is to have a one-liner tool that allows the user to
segment the hippocampal subfields in a given raw image (T1w or T2w), while keeping
as much modularity and customization options as possible.

HSF will be able to segment the following subfields:

- Dentate gyrus (DG),
- Cornu Ammonis (CA1, CA2 & CA3) in a flexible way (e.g. you can ask to combine CA2 and CA3),
- Subiculum (SUB).

HSF will segment the hippocampus from head to tail: it will produce
an homogeneous segmentation from the anterior hippocampus (head), to
the posterior hippocampus (tail), without assigning a specific head
or tail class.

HSF results from a collaborative effort:

1. We are continuously working on improving the segmentation of the subfields,
   mainly by adding new manually segmented MRIs (feel free to send us yours if you can, thanks!)
2. HSF proposes a "Model Hub", meaning that anyone can distribute their own ONNX segmentation
   model. Just send us a small `*.yaml` config file, and the end-user will effortlessly be able to
   use HSF with your model.

Please note that the tool is still under development and is not yet
ready for production use. It uses multiple expert deep learning models
trained on 700+ manually segmented hippocampi which are not yet fully polished.

HSF uses inference sessions provided by `ONNXRuntime <https://onnxruntime.ai>`_,
which means that it can be used *theoretically* on Windows, MacOS and Linux,
and the following hardware accelerations: CPU, CUDA, DirectML, OneDNN,
OpenVINO, TensorRT, NUPHAR, Vitis AI, ACL, ArmNN, MIGraphX, and Rockchip NPU.
Please be aware that we do not tested all possible configurations, as HSF
has been tested only on CPU and CUDA on Linux (Debian-based and Arch-based distros).

Since v1.0.0, HSF also provides a `DeepSparse backend <https://neuralmagic.com/technology/>`_
which can be used in conjunction with pruned and int8 quantized models
to deliver a much faster CPU inference speed (see [Hardware Acceleration](user-guide/configuration.md)
section).


Table of Contents...
====================

.. contents:: ...To guide you in the challenging world of hippocampal subfields segmentation :)


Installation
============

To install the package, first setup an environment suitable for your backend (e.g. `ONNX Runtime <https://onnxruntime.ai>`_).

If the environment isn't properly configured, you might be stuck running inference sessions on CPU, which is not optimal unless you use the DeepSparse backend.

Then, simply run:

``pip install hsf["your_hardware"]``.

You should always specify the hardware you want to use, as it will install the proper dependencies, supported choices are ``cpu``, ``gpu`` and ``sparse``.

So for example, if you want to use the GPU backend, run:

``pip install hsf["gpu"]``.


Quick start
===========

Once installed, HSF can be used simply by running the ``hsf`` command.

For example, to segment a set of T2w MRIs of 0.3*0.3*1.2, run:

``hsf files.path="~/Dataset/MRIs/" files.pattern="*T2w.nii" roiloc.contrast="t2" roiloc.margin=[10,2,10] segmentation=bagging_accurate segmentation.ca_mode="1/2/3"``

Now, let's dive into the details.

``files.path`` and ``files.pattern`` are mandatory parameters.
They specify the path to the dataset (or MRI) and the pattern to find the files.

All parameters starting with ``roiloc.`` are directly linked to our home-made ROI location algorithm.
You can find more information about it in the `related GitHub repository <https://github.com/clementpoiret/ROILoc>`_.

To date, we propose 4 different segmentation algorithms (from the fastest to the most accurate):

- ``single_fast``: a segmentation is performed on the whole volume by only one model,
- ``single_accurate``: a single model segments the same volume that has been augmented 20 times through TTA,
- ``single_sq``: like ``single_accurate``, but using int8-quantized sparse models for a fast and efficient inference,
- ``bagging_fast``: a bagging ensemble of 5 models is used to segment the volume without TTA,
- ``bagging_accurate``: a bagging ensemble of 5 models is used to segment the volume with TTA,
- ``bagging_sq``: like ``bagging_accurate``, but using int8-quantized sparse models for a fast and efficient inference.

Finally, ``segmentation.ca_mode`` is a parameter that allows to combine CA1, CA2 and CA3 subfields.
It is particularly useful when you want to segment low-resolution images where it makes no sense to
distinguish between CA's subfields.


Configuration
=============

As HSF is pretty modular, you can easily configure it to your needs thanks to Hydra.

Compose your configuration from those groups (group=option)

* augmentation: default
* files: default
* hardware: deepsparse, onnxruntime
* multispectrality: default
* roiloc: default_corot2, default_t2iso
* segmentation: bagging_accurate, bagging_fast, bagging_sq, single_accurate, single_fast, single_sq

Override anything in the config (e.g. hsf roiloc.margin=[16,2,16])

You can also add specific configs absent from the default yaml files
(e.g. hsf +augmentation.elastic.image_interpolation=sitkBSpline)

Fields set with ??? are mandatory.

   files:

   * path: ???
   * pattern: ???
   * mask_pattern: ``*mask.nii.gz``
   * output_dir: hsf_outputs

   roiloc:

   * contrast: t2
   * roi: hippocampus
   * bet: false
   * transform_type: AffineFast
   * margin: [8, 8, 8]
   * rightoffset: [0, 0, 0]
   * leftoffset: [0, 0, 0]

   segmentation:

   * ca_mode: 1/2/3
   * models_path: ~/.hsf/models
   * models:
      *  arunet_bag_0.onnx:
      *  url: https://zenodo.org/record/5524594/files/arunet_bag0.onnx?download=1
      *  xxh3_64: d0de65baa81d9382
      * segmentation:
         * test_time_augmentation: true
         * test_time_num_aug: 20

   augmentation:

   * flip:
      * axes:
         * LR
      * flip_probability: 0.5
      * affine_probability: 0.75
      * affine:
         * scales: 0.2
         * degrees: 15
         * translation: 3
         * isotropic: false
      * elastic_probability: 0.25
      * elastic:
         * num_control_points: 4
         * max_displacement: 4
         * locked_borders: 0

   multispectrality:
   
   * pattern: null
   * same_space: true
   * registration:
     * type_of_transform: Affine

   hardware:
  
   * engine: onnxruntime
   * engine_settings:
     * execution_providers: ["CUDAExecutionProvider","CPUExecutionProvider"]
     * batch_size: 1


Changelogs
==========

HSF
---

**Version 1.2.1**

* Option to override already segmented mris.
* Minor fixes and optimizations.

**Version 1.2.0**

* Released finetuning scripts,
* New models trained on more data,
* Models are now hosted on HuggingFace,
* Bug fixes and optimizations.

**Version 1.1.3**

* Lower onnxruntime dependency to min 1.8.0

**Version 1.1.2**

* ***BREAKING CHANGE***: HSF needs to be installed using extra dependencies depending on the backend you want to use.
  See the [installation guide](https://hsf.readthedocs.io/en/latest/user-guide/installation/) for more details.
* Updated dependencies
* Fixed installation on MacOS
 
**Version 1.1.1**

* Added whole-hippocampus segmentation

**Version 1.1.0**

* New optional multispectral mode de segment from both T1 AND T2 images
* Bug fixes and optimizations

**Version 1.0.1**

* Fix batch size issue

**Version 1.0.0**

* Added Uncertainty Maps for post-hoc analysis of segmentation results,
* Support for DeepSparse backend (CPU inference only),
* Introduced **HSF's Model Hub**,
* Support for batch inference (all backends),
* Check for updates at startup,
* Bug fixes and optimizations.

**Version 0.1.2**

* Added build-in support for offsets to recenter the hippocampus in ROILoc,
* Added support for the customization of Hardware Execution Providers.

**Version 0.1.1**

* Fixed CUDA Execution Provider.

**Version 0.1.0**

* Initial release.


Models
------

**Version 4.0.0**

* Models trained on hippocampal subfields from Clark et al. (2023) dataset (https://doi.org/10.1038/s41597-023-02449-9),
* Models are now hosted on HuggingFace,
* Bug fixes and optimizations.

**Version 3.0.0**

* More data (coming from the Human Connectome Project),
* New sparse and int8-quantized models.

**Version 2.1.1**

* Fixed some tails in 3T CoroT2w images (MemoDev)

**Version 2.1.0**

* Corrected incorrect T1w labels used for training,
* Trained on slightly more data (T1w @1.5T & 3T, T2w; Healthy, Epilepsy & Alzheimer)

**Version 2.0.0**

* Trained with more T1w and T2w MRIs,
* Trained on more hippocampal sclerosis and Alzheimer's disease cases,
* Updated training pipeline (hyperparameter tuning),
* `single` models are now independant from bags.

**Version 1.0.0**

* Initial release.


Documentation
==========================

For more details about HSF's configuration and internal parameters, please refer to
our `documentation <https://hsf.rtfd.io/>`_.


Authorship, Affiliations and Citations
======================================

Authorship:

* C Poiret, UNIACT-NeuroSpin, CEA, Saclay University, France,
* A Bouyeure, UNIACT-NeuroSpin, CEA, Saclay University, France,
* S Patil, UNIACT-NeuroSpin, CEA, Saclay University, France,
* C Boniteau, UNIACT-NeuroSpin, CEA, Saclay University, France,
* M Noulhiane, UNIACT-NeuroSpin, CEA, Saclay University, France.

If you use this work, please cite it as follows:

```
@ARTICLE{10.3389/fninf.2023.1130845,
AUTHOR={Poiret, Clement and Bouyeure, Antoine and Patil, Sandesh and Grigis, Antoine and Duchesnay, Edouard and Faillot, Matthieu and Bottlaender, Michel and Lemaitre, Frederic and Noulhiane, Marion},
TITLE={A fast and robust hippocampal subfields segmentation: HSF revealing lifespan volumetric dynamics},	
JOURNAL={Frontiers in Neuroinformatics},
VOLUME={17},
YEAR={2023},
URL={https://www.frontiersin.org/articles/10.3389/fninf.2023.1130845},
DOI={10.3389/fninf.2023.1130845},
ISSN={1662-5196},
ABSTRACT={The hippocampal subfields, pivotal to episodic memory, are distinct both in terms of cyto- and myeloarchitectony. Studying the structure of hippocampal subfields in vivo is crucial to understand volumetric trajectories across the lifespan, from the emergence of episodic memory during early childhood to memory impairments found in older adults. However, segmenting hippocampal subfields on conventional MRI sequences is challenging because of their small size. Furthermore, there is to date no unified segmentation protocol for the hippocampal subfields, which limits comparisons between studies. Therefore, we introduced a novel segmentation tool called HSF short for hippocampal segmentation factory, which leverages an end-to-end deep learning pipeline. First, we validated HSF against currently used tools (ASHS, HIPS, and HippUnfold). Then, we used HSF on 3,750 subjects from the HCP development, young adults, and aging datasets to study the effect of age and sex on hippocampal subfields volumes. Firstly, we showed HSF to be closer to manual segmentation than other currently used tools (p < 0.001), regarding the Dice Coefficient, Hausdorff Distance, and Volumetric Similarity. Then, we showed differential maturation and aging across subfields, with the dentate gyrus being the most affected by age. We also found faster growth and decay in men than in women for most hippocampal subfields. Thus, while we introduced a new, fast and robust end-to-end segmentation tool, our neuroanatomical results concerning the lifespan trajectories of the hippocampal subfields reconcile previous conflicting results.}
}
```

This work licensed under MIT license was supported in part by the Fondation de France and the IDRIS/GENCI for the HPE Supercomputer Jean Zay.

            

Raw data

            {
    "_id": null,
    "home_page": "https://hippomnesis.dev",
    "name": "HSF",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.9.0",
    "maintainer_email": null,
    "keywords": "mri, brain, hippocampus, segmentation, deep learning",
    "author": "Cl\u00e9ment POIRET",
    "author_email": "poiret.clement@outlook.fr",
    "download_url": "https://files.pythonhosted.org/packages/d0/0e/6f239e3178e6f7aea7b6cb9774c330c13c93818979d457fed3d8441a334c/hsf-1.2.1.tar.gz",
    "platform": null,
    "description": "======================================\nHippocampal Segmentation Factory (HSF)\n======================================\n\nExhaustive documentation available at: `hsf.rtfd.io <https://hsf.rtfd.io/>`_\n\n**Current Models version:** 4.0.0\n\n.. list-table::\n    :header-rows: 1\n\n    * - Python Package\n      - Code Quality\n      - Misc\n    * - .. image:: https://github.com/clementpoiret/HSF/actions/workflows/python-app.yml/badge.svg?branch=master\n        .. image:: https://badge.fury.io/py/hsf.svg\n           :target: https://badge.fury.io/py/hsf\n        .. image:: https://img.shields.io/pypi/dm/hsf\n           :alt: PyPI - Downloads\n      - .. image:: https://app.codacy.com/project/badge/Grade/cf02d1f84739401ba695e24f333c23b7\n           :target: https://www.codacy.com/gh/clementpoiret/HSF/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=clementpoiret/HSF&amp;utm_campaign=Badge_Grade\n        .. image:: https://app.codacy.com/project/badge/Coverage/cf02d1f84739401ba695e24f333c23b7\n           :target: https://www.codacy.com/gh/clementpoiret/HSF/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=clementpoiret/HSF&amp;utm_campaign=Badge_Grade\n        .. image:: https://api.codeclimate.com/v1/badges/e0bf481dcbf3eecebefd/maintainability\n           :target: https://codeclimate.com/github/clementpoiret/HSF/maintainability\n           :alt: Maintainability\n      - .. image:: https://readthedocs.org/projects/hsf/badge/?version=latest\n           :target: https://hsf.readthedocs.io/en/latest/?badge=latest\n           :alt: Documentation Status\n        .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5527122.svg\n           :target: https://doi.org/10.5281/zenodo.5527122\n\n\nThe Hippocampal Segmentation Factory (HSF) is a Python package for\nthe segmentation of the hippocampal subfields in raw MRI volumes.\n\n.. image:: https://raw.githubusercontent.com/clementpoiret/HSF/master/docs/resources/header.svg\n\nThe main idea is to have a one-liner tool that allows the user to\nsegment the hippocampal subfields in a given raw image (T1w or T2w), while keeping\nas much modularity and customization options as possible.\n\nHSF will be able to segment the following subfields:\n\n- Dentate gyrus (DG),\n- Cornu Ammonis (CA1, CA2 & CA3) in a flexible way (e.g. you can ask to combine CA2 and CA3),\n- Subiculum (SUB).\n\nHSF will segment the hippocampus from head to tail: it will produce\nan homogeneous segmentation from the anterior hippocampus (head), to\nthe posterior hippocampus (tail), without assigning a specific head\nor tail class.\n\nHSF results from a collaborative effort:\n\n1. We are continuously working on improving the segmentation of the subfields,\n   mainly by adding new manually segmented MRIs (feel free to send us yours if you can, thanks!)\n2. HSF proposes a \"Model Hub\", meaning that anyone can distribute their own ONNX segmentation\n   model. Just send us a small `*.yaml` config file, and the end-user will effortlessly be able to\n   use HSF with your model.\n\nPlease note that the tool is still under development and is not yet\nready for production use. It uses multiple expert deep learning models\ntrained on 700+ manually segmented hippocampi which are not yet fully polished.\n\nHSF uses inference sessions provided by `ONNXRuntime <https://onnxruntime.ai>`_,\nwhich means that it can be used *theoretically* on Windows, MacOS and Linux,\nand the following hardware accelerations: CPU, CUDA, DirectML, OneDNN,\nOpenVINO, TensorRT, NUPHAR, Vitis AI, ACL, ArmNN, MIGraphX, and Rockchip NPU.\nPlease be aware that we do not tested all possible configurations, as HSF\nhas been tested only on CPU and CUDA on Linux (Debian-based and Arch-based distros).\n\nSince v1.0.0, HSF also provides a `DeepSparse backend <https://neuralmagic.com/technology/>`_\nwhich can be used in conjunction with pruned and int8 quantized models\nto deliver a much faster CPU inference speed (see [Hardware Acceleration](user-guide/configuration.md)\nsection).\n\n\nTable of Contents...\n====================\n\n.. contents:: ...To guide you in the challenging world of hippocampal subfields segmentation :)\n\n\nInstallation\n============\n\nTo install the package, first setup an environment suitable for your backend (e.g. `ONNX Runtime <https://onnxruntime.ai>`_).\n\nIf the environment isn't properly configured, you might be stuck running inference sessions on CPU, which is not optimal unless you use the DeepSparse backend.\n\nThen, simply run:\n\n``pip install hsf[\"your_hardware\"]``.\n\nYou should always specify the hardware you want to use, as it will install the proper dependencies, supported choices are ``cpu``, ``gpu`` and ``sparse``.\n\nSo for example, if you want to use the GPU backend, run:\n\n``pip install hsf[\"gpu\"]``.\n\n\nQuick start\n===========\n\nOnce installed, HSF can be used simply by running the ``hsf`` command.\n\nFor example, to segment a set of T2w MRIs of 0.3*0.3*1.2, run:\n\n``hsf files.path=\"~/Dataset/MRIs/\" files.pattern=\"*T2w.nii\" roiloc.contrast=\"t2\" roiloc.margin=[10,2,10] segmentation=bagging_accurate segmentation.ca_mode=\"1/2/3\"``\n\nNow, let's dive into the details.\n\n``files.path`` and ``files.pattern`` are mandatory parameters.\nThey specify the path to the dataset (or MRI) and the pattern to find the files.\n\nAll parameters starting with ``roiloc.`` are directly linked to our home-made ROI location algorithm.\nYou can find more information about it in the `related GitHub repository <https://github.com/clementpoiret/ROILoc>`_.\n\nTo date, we propose 4 different segmentation algorithms (from the fastest to the most accurate):\n\n- ``single_fast``: a segmentation is performed on the whole volume by only one model,\n- ``single_accurate``: a single model segments the same volume that has been augmented 20 times through TTA,\n- ``single_sq``: like ``single_accurate``, but using int8-quantized sparse models for a fast and efficient inference,\n- ``bagging_fast``: a bagging ensemble of 5 models is used to segment the volume without TTA,\n- ``bagging_accurate``: a bagging ensemble of 5 models is used to segment the volume with TTA,\n- ``bagging_sq``: like ``bagging_accurate``, but using int8-quantized sparse models for a fast and efficient inference.\n\nFinally, ``segmentation.ca_mode`` is a parameter that allows to combine CA1, CA2 and CA3 subfields.\nIt is particularly useful when you want to segment low-resolution images where it makes no sense to\ndistinguish between CA's subfields.\n\n\nConfiguration\n=============\n\nAs HSF is pretty modular, you can easily configure it to your needs thanks to Hydra.\n\nCompose your configuration from those groups (group=option)\n\n* augmentation: default\n* files: default\n* hardware: deepsparse, onnxruntime\n* multispectrality: default\n* roiloc: default_corot2, default_t2iso\n* segmentation: bagging_accurate, bagging_fast, bagging_sq, single_accurate, single_fast, single_sq\n\nOverride anything in the config (e.g. hsf roiloc.margin=[16,2,16])\n\nYou can also add specific configs absent from the default yaml files\n(e.g. hsf +augmentation.elastic.image_interpolation=sitkBSpline)\n\nFields set with ??? are mandatory.\n\n   files:\n\n   * path: ???\n   * pattern: ???\n   * mask_pattern: ``*mask.nii.gz``\n   * output_dir: hsf_outputs\n\n   roiloc:\n\n   * contrast: t2\n   * roi: hippocampus\n   * bet: false\n   * transform_type: AffineFast\n   * margin: [8, 8, 8]\n   * rightoffset: [0, 0, 0]\n   * leftoffset: [0, 0, 0]\n\n   segmentation:\n\n   * ca_mode: 1/2/3\n   * models_path: ~/.hsf/models\n   * models:\n      *  arunet_bag_0.onnx:\n      *  url: https://zenodo.org/record/5524594/files/arunet_bag0.onnx?download=1\n      *  xxh3_64: d0de65baa81d9382\n      * segmentation:\n         * test_time_augmentation: true\n         * test_time_num_aug: 20\n\n   augmentation:\n\n   * flip:\n      * axes:\n         * LR\n      * flip_probability: 0.5\n      * affine_probability: 0.75\n      * affine:\n         * scales: 0.2\n         * degrees: 15\n         * translation: 3\n         * isotropic: false\n      * elastic_probability: 0.25\n      * elastic:\n         * num_control_points: 4\n         * max_displacement: 4\n         * locked_borders: 0\n\n   multispectrality:\n   \n   * pattern: null\n   * same_space: true\n   * registration:\n     * type_of_transform: Affine\n\n   hardware:\n  \n   * engine: onnxruntime\n   * engine_settings:\n     * execution_providers: [\"CUDAExecutionProvider\",\"CPUExecutionProvider\"]\n     * batch_size: 1\n\n\nChangelogs\n==========\n\nHSF\n---\n\n**Version 1.2.1**\n\n* Option to override already segmented mris.\n* Minor fixes and optimizations.\n\n**Version 1.2.0**\n\n* Released finetuning scripts,\n* New models trained on more data,\n* Models are now hosted on HuggingFace,\n* Bug fixes and optimizations.\n\n**Version 1.1.3**\n\n* Lower onnxruntime dependency to min 1.8.0\n\n**Version 1.1.2**\n\n* ***BREAKING CHANGE***: HSF needs to be installed using extra dependencies depending on the backend you want to use.\n  See the [installation guide](https://hsf.readthedocs.io/en/latest/user-guide/installation/) for more details.\n* Updated dependencies\n* Fixed installation on MacOS\n \n**Version 1.1.1**\n\n* Added whole-hippocampus segmentation\n\n**Version 1.1.0**\n\n* New optional multispectral mode de segment from both T1 AND T2 images\n* Bug fixes and optimizations\n\n**Version 1.0.1**\n\n* Fix batch size issue\n\n**Version 1.0.0**\n\n* Added Uncertainty Maps for post-hoc analysis of segmentation results,\n* Support for DeepSparse backend (CPU inference only),\n* Introduced **HSF's Model Hub**,\n* Support for batch inference (all backends),\n* Check for updates at startup,\n* Bug fixes and optimizations.\n\n**Version 0.1.2**\n\n* Added build-in support for offsets to recenter the hippocampus in ROILoc,\n* Added support for the customization of Hardware Execution Providers.\n\n**Version 0.1.1**\n\n* Fixed CUDA Execution Provider.\n\n**Version 0.1.0**\n\n* Initial release.\n\n\nModels\n------\n\n**Version 4.0.0**\n\n* Models trained on hippocampal subfields from Clark et al. (2023) dataset (https://doi.org/10.1038/s41597-023-02449-9),\n* Models are now hosted on HuggingFace,\n* Bug fixes and optimizations.\n\n**Version 3.0.0**\n\n* More data (coming from the Human Connectome Project),\n* New sparse and int8-quantized models.\n\n**Version 2.1.1**\n\n* Fixed some tails in 3T CoroT2w images (MemoDev)\n\n**Version 2.1.0**\n\n* Corrected incorrect T1w labels used for training,\n* Trained on slightly more data (T1w @1.5T & 3T, T2w; Healthy, Epilepsy & Alzheimer)\n\n**Version 2.0.0**\n\n* Trained with more T1w and T2w MRIs,\n* Trained on more hippocampal sclerosis and Alzheimer's disease cases,\n* Updated training pipeline (hyperparameter tuning),\n* `single` models are now independant from bags.\n\n**Version 1.0.0**\n\n* Initial release.\n\n\nDocumentation\n==========================\n\nFor more details about HSF's configuration and internal parameters, please refer to\nour `documentation <https://hsf.rtfd.io/>`_.\n\n\nAuthorship, Affiliations and Citations\n======================================\n\nAuthorship:\n\n* C Poiret, UNIACT-NeuroSpin, CEA, Saclay University, France,\n* A Bouyeure, UNIACT-NeuroSpin, CEA, Saclay University, France,\n* S Patil, UNIACT-NeuroSpin, CEA, Saclay University, France,\n* C Boniteau, UNIACT-NeuroSpin, CEA, Saclay University, France,\n* M Noulhiane, UNIACT-NeuroSpin, CEA, Saclay University, France.\n\nIf you use this work, please cite it as follows:\n\n```\n@ARTICLE{10.3389/fninf.2023.1130845,\nAUTHOR={Poiret, Clement and Bouyeure, Antoine and Patil, Sandesh and Grigis, Antoine and Duchesnay, Edouard and Faillot, Matthieu and Bottlaender, Michel and Lemaitre, Frederic and Noulhiane, Marion},\nTITLE={A fast and robust hippocampal subfields segmentation: HSF revealing lifespan volumetric dynamics},\t\nJOURNAL={Frontiers in Neuroinformatics},\nVOLUME={17},\nYEAR={2023},\nURL={https://www.frontiersin.org/articles/10.3389/fninf.2023.1130845},\nDOI={10.3389/fninf.2023.1130845},\nISSN={1662-5196},\nABSTRACT={The hippocampal subfields, pivotal to episodic memory, are distinct both in terms of cyto- and myeloarchitectony. Studying the structure of hippocampal subfields in vivo is crucial to understand volumetric trajectories across the lifespan, from the emergence of episodic memory during early childhood to memory impairments found in older adults. However, segmenting hippocampal subfields on conventional MRI sequences is challenging because of their small size. Furthermore, there is to date no unified segmentation protocol for the hippocampal subfields, which limits comparisons between studies. Therefore, we introduced a novel segmentation tool called HSF short for hippocampal segmentation factory, which leverages an end-to-end deep learning pipeline. First, we validated HSF against currently used tools (ASHS, HIPS, and HippUnfold). Then, we used HSF on 3,750 subjects from the HCP development, young adults, and aging datasets to study the effect of age and sex on hippocampal subfields volumes. Firstly, we showed HSF to be closer to manual segmentation than other currently used tools (p < 0.001), regarding the Dice Coefficient, Hausdorff Distance, and Volumetric Similarity. Then, we showed differential maturation and aging across subfields, with the dentate gyrus being the most affected by age. We also found faster growth and decay in men than in women for most hippocampal subfields. Thus, while we introduced a new, fast and robust end-to-end segmentation tool, our neuroanatomical results concerning the lifespan trajectories of the hippocampal subfields reconcile previous conflicting results.}\n}\n```\n\nThis work licensed under MIT license was supported in part by the Fondation de France and the IDRIS/GENCI for the HPE Supercomputer Jean Zay.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple yet exhaustive segmentation tool of the Hippocampal Subfields in T1w and T2w MRIs.",
    "version": "1.2.1",
    "project_urls": {
        "Homepage": "https://hippomnesis.dev",
        "Repository": "https://github.com/clementpoiret/HSF"
    },
    "split_keywords": [
        "mri",
        " brain",
        " hippocampus",
        " segmentation",
        " deep learning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0d41d88b5ac3fba6f216cbf84ed2c23e8439e8fb47fe49390512046131a07d2",
                "md5": "37ad582ce0a81b809ea9b8e5b0a0beac",
                "sha256": "3230bd782899480ac130ff15597263d42f792085e2b5c3c5fb086377497cf12e"
            },
            "downloads": -1,
            "filename": "hsf-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "37ad582ce0a81b809ea9b8e5b0a0beac",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.9.0",
            "size": 29094,
            "upload_time": "2024-03-29T12:48:37",
            "upload_time_iso_8601": "2024-03-29T12:48:37.613833Z",
            "url": "https://files.pythonhosted.org/packages/f0/d4/1d88b5ac3fba6f216cbf84ed2c23e8439e8fb47fe49390512046131a07d2/hsf-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d00e6f239e3178e6f7aea7b6cb9774c330c13c93818979d457fed3d8441a334c",
                "md5": "836ae520efedecd433b783b121c022d6",
                "sha256": "4138b6560094d6a777f5e62ae77379d573c0634439364684b4cb455823e51763"
            },
            "downloads": -1,
            "filename": "hsf-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "836ae520efedecd433b783b121c022d6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.9.0",
            "size": 24553,
            "upload_time": "2024-03-29T12:48:39",
            "upload_time_iso_8601": "2024-03-29T12:48:39.649745Z",
            "url": "https://files.pythonhosted.org/packages/d0/0e/6f239e3178e6f7aea7b6cb9774c330c13c93818979d457fed3d8441a334c/hsf-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-29 12:48:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "clementpoiret",
    "github_project": "HSF",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "hsf"
}
        
Elapsed time: 2.01875s