3pnn

Code and source data used in the article "3D printed biomimetic cochleae and machine learning co-modelling provides clinical informatics for cochlear implant patients" (Lei et al. Nature Communications, 2021). The code is used for modelling the relationship between electric field imaging (EFI) profiles and the electro-anatomical features of cochleae using a multilayer perceptron (MLP) artificial neural network (NN) model.

https://github.com/chonlei/3pnn

Science Score: 41.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.6%) to scientific vocabulary

Keywords

3d-printing auditory cochlea cochlear-implant current-spread inverse-problems mlp modelling neural-network python
Last synced: 6 months ago · JSON representation ·

Repository

Code and source data used in the article "3D printed biomimetic cochleae and machine learning co-modelling provides clinical informatics for cochlear implant patients" (Lei et al. Nature Communications, 2021). The code is used for modelling the relationship between electric field imaging (EFI) profiles and the electro-anatomical features of cochleae using a multilayer perceptron (MLP) artificial neural network (NN) model.

Basic Info
  • Host: GitHub
  • Owner: chonlei
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 57 MB
Statistics
  • Stars: 1
  • Watchers: 3
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Topics
3d-printing auditory cochlea cochlear-implant current-spread inverse-problems mlp modelling neural-network python
Created over 6 years ago · Last pushed about 4 years ago
Metadata Files
Readme License Citation

README.md

3PNN

DOI

Code and source data used in the article "3D printed biomimetic cochleae and machine learning co-modelling provides clinical informatics for cochlear implant patients" (Lei et al. Nature Communications, 2021).

This repository aims to model the relationship between electric field imaging (EFI) profiles and the electro-anatomical features of human cochleae using a multilayer perceptron (MLP) artificial neural network (NN) model. The NN model was developed by training data generated from 3D printed biomimetic cochleae. It learned the mapping from the inputs (the 5 model descriptors of the biomimetic cochleae, the stimulating electrode positions, and the recording electrode positions) to the EFI profiles (the output). Predictions of EFI profiles and the model descriptors (input parameters) can be made using this model.

Requirements

The code requires Python (3.6+ and was tested with 3.7.6) and the following dependencies: tensorflow, PINTS, scikit-learn, SALib. Installing Tensorflow in Windows may require Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. It also needs seaborn for plotting.

To install the code and the above dependencies, navigate to the path where you downloaded this repository and run: $ pip install --upgrade pip $ pip install .

Structure of the repository

NN model

  • fit-nn.py: Run fitting of a NN model, with argument [str:input_file_ids.txt] containing a list of file IDs as training data.
  • predict-nn.py: Run (forward) prediction using the trained NN model (from fit-nn.py), with arguments [str:nn_name] (by default, the file name of the [str:input_file_ids.txt]) and [str:predict_ids.txt] (a list of file IDs for prediction; their input parameters are stored in the input folder).
  • invabc-nn.py: Run (inverse) prediction using the trained NN model (from fit-nn.py), with arguments [str:nn_name] (by default, the file name of the [str:input_file_ids.txt]) and [str:predict_ids.txt] (a list of file IDs for prediction; their EFI data are stored in the data folder). It also requires fix_param.py to specify the parameters that are not fixed.
  • fix_param.py: Specify the parameters that are fixed or not fixed. Put None if it is not fixed.
  • sensitivity-nn.py: Run sensitivity analysis for the trained NN model (from fit-nn.py), with arguments [str:nn_name] (by default, the file name of the [str:input_file_ids.txt]).

Data

  • data: Contains raw EFI measurements in .txt format with tab delimiter. Rows are the readout/recording at each electrode ordered from 1 to 16; columns are the stimulation electrode numbers (again from 1 to 16). Each file name is the file ID, the ID of the measurement.
    • available-electrodes.csv: Specify the available electrodes of each raw EFI measurement.
  • input: Contains the input/printing parameters for re-creating the cochlea model, of that the file ID should match those in data. Rows from 1 to 5 are basal lumen diameter, infill density, taper ratio, cochlear width and cochlear height.

Methods

  • method: A module containing useful methods, functions, and helper classes for this project; for further details, see below.
    • feature.py: Contains functions extracting features of the EFI measurements.
    • io.py: I/O helper classes, for read and write predefined file format.
    • nn.py: Contains neural network functions for regression.
    • plot.py: Contains simple plotting functions.
    • transform.py: Contains classes for parameter transformation.

Results

  • out-nn: Contains NN model fitting and prediction results (from fit-nn.pypredict-nn.py, invabc-nn.py, and sensitivity-nn.py).

Acknowledging this work

If you publish any work based on the contents of this repository please cite (CITATION file):

Lei, I. M. et al. (2021). 3D printed biomimetic cochleae and machine learning co-modelling provides clinical informatics for cochlear implant patients. Nature Communications, 12, 6260. doi:10.1038/s41467-021-26491-6.

Owner

  • Name: Chon Lok Lei
  • Login: chonlei
  • Kind: user
  • Location: Macau
  • Company: University of Macau

Lecturer (Macao Fellow) at the University of Macau. DPhil at the University of Oxford. BSc at Imperial College.

Citation (CITATION)

To cite this repository or the article in publications, please use:

Lei, I. M., Jiang, C., Lei, C. L., de Rijk, S. R., Tam, Y. C., Swords, C., Sutcliffe, M. P. F., Malliaras, G. G., Bance, M. and Huang, Y. Y. S.
(2021).
3D printed biomimetic cochleae and machine learning co-modelling provides clinical informatics for cochlear implant patients.
Nature Communications, 12, 6260.
doi:10.1038/s41467-021-26491-6.

A BibTeX entry for LaTeX users is

@article{ Lei_2021_3PNN,
  author = {Lei, Iek Man  and Jiang, Chen  and Lei, Chon Lok  and de Rijk, Simone Rosalie  and Tam, Yu Chuen  and Swords, Chloe  and Sutcliffe, Michael P.F.  and Malliaras, George G.  and Bance, Manohar  and Huang, Yan Yan Shery },
  title = {{3D} printed biomimetic cochleae and machine learning co-modelling provides clinical informatics for cochlear implant patients},
  journal = {Nature Communications},
  volume = {12},
  pages = {6260},
  year = {2021},
  doi = {10.1038/s41467-021-26491-6},
  URL = {https://www.nature.com/articles/s41467-021-26491-6},
  eprint = {https://www.nature.com/articles/s41467-021-26491-6},
  ISSN = {2041-1723}
}

GitHub Events

Total
Last Year