Convolutional neural network for efficient estimation of regional brain strains [link of the paper]
The demo for "Instantaneous Whole-brain Strain Estimation in Dynamic Head Impact" is provided here [directory link]
This page will be updated as needed.
Shaoju Wu, Wei Zhao, Kianoosh Ghaz, and Songbai Ji
For technical questions, contact S. Wu: swu3 AT wpi dot edu
For collaboration inquries, contact S. Ji: sji AT wpi dot edu
- System: MacOS/ Linux (e.g: Ubuntu 16.04)
- Matlab 2017 or above
- Python 2.7
- Scikit-Learn
- Scipy
- Keras 2.08
- Tensorflow 1.4.0
- Resampling the impact profile to 1 ms (temporal resolution)
- Conjugate axis transform (if needed)
- Shifting based on resultant rotational velocity peak location
- Replicated padding
A data preprocessing demo is provided in /Preprocessing folder.
- Go to /Preprocessing
- Run
demo_preprocessing.m
in Matlab
Three pretrained CNN neural network models are provided based on all of the brain response samples available in the published study (N=3069). They correspond to the peak maximum principal strain (MPS) of the whole brain (WB), MPS of the corpus callosum (CC), and fiber strain (FS) of the CC, all assessed at the 95th percentile levels.
To use the pretrained CNN models for strain estimation, please check the strain prediction evaluation demo in /Strain_prediction folder
- Go to /Strain_prediction
- Run
python demo_evaluation.py
. - Input: Notice that this demo uses
Evaluation_example.mat
as an example rotational velocity profile input for evaluation. - Output: The output file will be saved as
Output.mat
in the /Strain_prediction folder.
If you need to use your own rotational velocity input profile to estimate brain strains from the pretrained CNN models
- Go to /Strain_prediction
- Input: Store your input as
pad_profile
(Checkdemo_preprocessing.m
for detail) and save it asInput.mat
- Run
python predict_all.py
- Output: The predicted outputs will be
mps_95
(MPS of WB),mps_cc_95
(MPS of CC) andfs_cc_95
(FS of CC) saved inOutput.mat
. - You can easily modify the programs to batch process.
Please cite the following studies for the model (Ref 1 and 2) and the CNN data tool (Ref 3) used if you apply in your study:
- Zhao, W., Ji, S., 2019. White matter anisotropy for impact simulation and response sampling in traumatic brain injury. J. Neurotrauma 36, 250–263. doi:10.1089/neu.2018.5634 front cover
- Ji, S., Zhao, W., Ford, J.C., Beckwith, J.G., Bolander, R.P., Greenwald, R.M., Flashman, L.A., Paulsen, K.D., McAllister, T.W., 2015. Group-wise evaluation and comparison of white matter fiber strain and maximum principal strain in sports-related concussion. J. Neurotrauma 32, 441–454. doi:10.1089/neu.2013.3268 front cover
- Wu, S., Zhao, W., Ghazi, K., Ji, S. 2019. Convolutional neural network for efficient estimation of regional brain strains. Scientific Reports 9, 17326. doi:10.1038/s41598-019-53551-1
We would appreciate it if you can send us sample head impact kinematics data so that: (1) to verify that the CNN-estimated strains are sufficiently accurate relative to the directly simulated counterparts; and (2) to allow us expanding the training dataset to further improve the CNN estimation accuracy.
Further development of the data tool will include the expansino of output variables to more complete brain regions of interest, so that to characterize brain strain distribution.
The accuracy of the trained CNN using real-world impacts is extensively reported in the published paper. Here, we further report the CNN-estimation accuracy using a separate, idealized rotational impact dataset (N=1521). This additional testing dataset is completely unseen by the trained CNN. The accuracy for MPS of the WB and CC in terms of coefficient of determination (R^2) and root mean squared error (RMSE) are shown below (dashed lines: +/- 1 RMSE):
When instead training the CNN using the idealized impacts (N=1521) with the corresponding pretrained CNN models as initial weights for intialization, the resulting 10-fold cross-validation accuracy is shown below (virtually perfect performance).
Funding is provided by the NIH Grant R01 NS092853 and the Ford University Research Program. The authors are grateful to the National Football League (NFL) Committee on Mild Traumatic Brain Injury (MTBI) and Biokinetics and Associates Ltd. for providing the reconstructed head impact data. They also thank Dr. David Camarillo at Stanford University and Dr. Adam Bartsch at Prevent Biometrics for sharing head impact data. The Titan X Pascal GPU used in this work was donated by the NVIDIA Corporation.
CNN-brain-strains is an open-source library and is licensed under the GNU General Public License (v3).