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.
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
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
Statistics
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
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).
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 (fromfit-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 (fromfit-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 requiresfix_param.pyto specify the parameters that are not fixed.fix_param.py: Specify the parameters that are fixed or not fixed. PutNoneif it is not fixed.sensitivity-nn.py: Run sensitivity analysis for the trained NN model (fromfit-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.txtformat 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 (fromfit-nn.py,predict-nn.py,invabc-nn.py, andsensitivity-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
- Website: https://chonlei.github.io
- Twitter: chonloklei
- Repositories: 5
- Profile: https://github.com/chonlei
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}
}